configure 528 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.72 for file 5.46.
  4. #
  5. # Report bugs to <christos@astron.com>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2017, 2020-2023 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. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  20. then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else case e in #(
  28. e) case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac ;;
  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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  129. then :
  130. emulate sh
  131. NULLCMD=:
  132. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  133. # is contrary to our usage. Disable this feature.
  134. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  135. setopt NO_GLOB_SUBST
  136. else case e in #(
  137. e) case \`(set -o) 2>/dev/null\` in #(
  138. *posix*) :
  139. set -o posix ;; #(
  140. *) :
  141. ;;
  142. esac ;;
  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 case e in #(
  159. e) exitcode=1; echo positional parameters were not saved. ;;
  160. esac
  161. fi
  162. test x\$exitcode = x0 || exit 1
  163. blah=\$(echo \$(echo blah))
  164. test x\"\$blah\" = xblah || exit 1
  165. test -x / || exit 1"
  166. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  167. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  168. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  169. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  170. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  171. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  172. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  173. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  174. PATH=/empty FPATH=/empty; export PATH FPATH
  175. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  176. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  177. test \$(( 1 + 1 )) = 2 || exit 1"
  178. if (eval "$as_required") 2>/dev/null
  179. then :
  180. as_have_required=yes
  181. else case e in #(
  182. e) as_have_required=no ;;
  183. esac
  184. fi
  185. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  186. then :
  187. else case e in #(
  188. e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  189. as_found=false
  190. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  191. do
  192. IFS=$as_save_IFS
  193. case $as_dir in #(((
  194. '') as_dir=./ ;;
  195. */) ;;
  196. *) as_dir=$as_dir/ ;;
  197. esac
  198. as_found=:
  199. case $as_dir in #(
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. # Try only shells that exist, to save several forks.
  203. as_shell=$as_dir$as_base
  204. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  205. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  206. then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  209. then :
  210. break 2
  211. fi
  212. fi
  213. done;;
  214. esac
  215. as_found=false
  216. done
  217. IFS=$as_save_IFS
  218. if $as_found
  219. then :
  220. else case e in #(
  221. e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  222. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  223. then :
  224. CONFIG_SHELL=$SHELL as_have_required=yes
  225. fi ;;
  226. esac
  227. fi
  228. if test "x$CONFIG_SHELL" != x
  229. then :
  230. export CONFIG_SHELL
  231. # We cannot yet assume a decent shell, so we have to provide a
  232. # neutralization value for shells without unset; and this also
  233. # works around shells that cannot unset nonexistent variables.
  234. # Preserve -v and -x to the replacement shell.
  235. BASH_ENV=/dev/null
  236. ENV=/dev/null
  237. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  238. case $- in # ((((
  239. *v*x* | *x*v* ) as_opts=-vx ;;
  240. *v* ) as_opts=-v ;;
  241. *x* ) as_opts=-x ;;
  242. * ) as_opts= ;;
  243. esac
  244. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  245. # Admittedly, this is quite paranoid, since all the known shells bail
  246. # out after a failed 'exec'.
  247. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  248. exit 255
  249. fi
  250. if test x$as_have_required = xno
  251. then :
  252. printf "%s\n" "$0: This script requires a shell more modern than all"
  253. printf "%s\n" "$0: the shells that I found on your system."
  254. if test ${ZSH_VERSION+y} ; then
  255. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
  259. $0: christos@astron.com about your system, including any
  260. $0: error possibly output before this message. Then install
  261. $0: a modern shell, or manually run the script under such a
  262. $0: shell if you do have one."
  263. fi
  264. exit 1
  265. fi ;;
  266. esac
  267. fi
  268. fi
  269. SHELL=${CONFIG_SHELL-/bin/sh}
  270. export SHELL
  271. # Unset more variables known to interfere with behavior of common tools.
  272. CLICOLOR_FORCE= GREP_OPTIONS=
  273. unset CLICOLOR_FORCE GREP_OPTIONS
  274. ## --------------------- ##
  275. ## M4sh Shell Functions. ##
  276. ## --------------------- ##
  277. # as_fn_unset VAR
  278. # ---------------
  279. # Portably unset VAR.
  280. as_fn_unset ()
  281. {
  282. { eval $1=; unset $1;}
  283. }
  284. as_unset=as_fn_unset
  285. # as_fn_set_status STATUS
  286. # -----------------------
  287. # Set $? to STATUS, without forking.
  288. as_fn_set_status ()
  289. {
  290. return $1
  291. } # as_fn_set_status
  292. # as_fn_exit STATUS
  293. # -----------------
  294. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  295. as_fn_exit ()
  296. {
  297. set +e
  298. as_fn_set_status $1
  299. exit $1
  300. } # as_fn_exit
  301. # as_fn_mkdir_p
  302. # -------------
  303. # Create "$as_dir" as a directory, including parents if necessary.
  304. as_fn_mkdir_p ()
  305. {
  306. case $as_dir in #(
  307. -*) as_dir=./$as_dir;;
  308. esac
  309. test -d "$as_dir" || eval $as_mkdir_p || {
  310. as_dirs=
  311. while :; do
  312. case $as_dir in #(
  313. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  314. *) as_qdir=$as_dir;;
  315. esac
  316. as_dirs="'$as_qdir' $as_dirs"
  317. as_dir=`$as_dirname -- "$as_dir" ||
  318. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  319. X"$as_dir" : 'X\(//\)[^/]' \| \
  320. X"$as_dir" : 'X\(//\)$' \| \
  321. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  322. printf "%s\n" X"$as_dir" |
  323. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)[^/].*/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\/\)$/{
  332. s//\1/
  333. q
  334. }
  335. /^X\(\/\).*/{
  336. s//\1/
  337. q
  338. }
  339. s/.*/./; q'`
  340. test -d "$as_dir" && break
  341. done
  342. test -z "$as_dirs" || eval "mkdir $as_dirs"
  343. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  344. } # as_fn_mkdir_p
  345. # as_fn_executable_p FILE
  346. # -----------------------
  347. # Test if FILE is an executable regular file.
  348. as_fn_executable_p ()
  349. {
  350. test -f "$1" && test -x "$1"
  351. } # as_fn_executable_p
  352. # as_fn_append VAR VALUE
  353. # ----------------------
  354. # Append the text in VALUE to the end of the definition contained in VAR. Take
  355. # advantage of any shell optimizations that allow amortized linear growth over
  356. # repeated appends, instead of the typical quadratic growth present in naive
  357. # implementations.
  358. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  359. then :
  360. eval 'as_fn_append ()
  361. {
  362. eval $1+=\$2
  363. }'
  364. else case e in #(
  365. e) as_fn_append ()
  366. {
  367. eval $1=\$$1\$2
  368. } ;;
  369. esac
  370. fi # as_fn_append
  371. # as_fn_arith ARG...
  372. # ------------------
  373. # Perform arithmetic evaluation on the ARGs, and store the result in the
  374. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  375. # must be portable across $(()) and expr.
  376. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  377. then :
  378. eval 'as_fn_arith ()
  379. {
  380. as_val=$(( $* ))
  381. }'
  382. else case e in #(
  383. e) as_fn_arith ()
  384. {
  385. as_val=`expr "$@" || test $? -eq 1`
  386. } ;;
  387. esac
  388. fi # as_fn_arith
  389. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  390. # ----------------------------------------
  391. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  392. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  393. # script with STATUS, using 1 if that was 0.
  394. as_fn_error ()
  395. {
  396. as_status=$1; test $as_status -eq 0 && as_status=1
  397. if test "$4"; then
  398. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  399. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  400. fi
  401. printf "%s\n" "$as_me: error: $2" >&2
  402. as_fn_exit $as_status
  403. } # as_fn_error
  404. if expr a : '\(a\)' >/dev/null 2>&1 &&
  405. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  406. as_expr=expr
  407. else
  408. as_expr=false
  409. fi
  410. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  411. as_basename=basename
  412. else
  413. as_basename=false
  414. fi
  415. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  416. as_dirname=dirname
  417. else
  418. as_dirname=false
  419. fi
  420. as_me=`$as_basename -- "$0" ||
  421. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  422. X"$0" : 'X\(//\)$' \| \
  423. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  424. printf "%s\n" X/"$0" |
  425. sed '/^.*\/\([^/][^/]*\)\/*$/{
  426. s//\1/
  427. q
  428. }
  429. /^X\/\(\/\/\)$/{
  430. s//\1/
  431. q
  432. }
  433. /^X\/\(\/\).*/{
  434. s//\1/
  435. q
  436. }
  437. s/.*/./; q'`
  438. # Avoid depending upon Character Ranges.
  439. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  440. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  441. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  442. as_cr_digits='0123456789'
  443. as_cr_alnum=$as_cr_Letters$as_cr_digits
  444. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  445. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  446. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  447. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  448. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  449. sed -n '
  450. p
  451. /[$]LINENO/=
  452. ' <$as_myself |
  453. sed '
  454. t clear
  455. :clear
  456. s/[$]LINENO.*/&-/
  457. t lineno
  458. b
  459. :lineno
  460. N
  461. :loop
  462. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  463. t loop
  464. s/-\n.*//
  465. ' >$as_me.lineno &&
  466. chmod +x "$as_me.lineno" ||
  467. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  468. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  469. # already done that, so ensure we don't try to do so again and fall
  470. # in an infinite loop. This has already happened in practice.
  471. _as_can_reexec=no; export _as_can_reexec
  472. # Don't try to exec as it changes $[0], causing all sort of problems
  473. # (the dirname of $[0] is not the place where we might find the
  474. # original and so on. Autoconf is especially sensitive to this).
  475. . "./$as_me.lineno"
  476. # Exit status is that of the last command.
  477. exit
  478. }
  479. # Determine whether it's possible to make 'echo' print without a newline.
  480. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  481. # for compatibility with existing Makefiles.
  482. ECHO_C= ECHO_N= ECHO_T=
  483. case `echo -n x` in #(((((
  484. -n*)
  485. case `echo 'xy\c'` in
  486. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  487. xy) ECHO_C='\c';;
  488. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  489. ECHO_T=' ';;
  490. esac;;
  491. *)
  492. ECHO_N='-n';;
  493. esac
  494. # For backward compatibility with old third-party macros, we provide
  495. # the shell variables $as_echo and $as_echo_n. New code should use
  496. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  497. as_echo='printf %s\n'
  498. as_echo_n='printf %s'
  499. rm -f conf$$ conf$$.exe conf$$.file
  500. if test -d conf$$.dir; then
  501. rm -f conf$$.dir/conf$$.file
  502. else
  503. rm -f conf$$.dir
  504. mkdir conf$$.dir 2>/dev/null
  505. fi
  506. if (echo >conf$$.file) 2>/dev/null; then
  507. if ln -s conf$$.file conf$$ 2>/dev/null; then
  508. as_ln_s='ln -s'
  509. # ... but there are two gotchas:
  510. # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
  511. # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
  512. # In both cases, we have to default to 'cp -pR'.
  513. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  514. as_ln_s='cp -pR'
  515. elif ln conf$$.file conf$$ 2>/dev/null; then
  516. as_ln_s=ln
  517. else
  518. as_ln_s='cp -pR'
  519. fi
  520. else
  521. as_ln_s='cp -pR'
  522. fi
  523. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  524. rmdir conf$$.dir 2>/dev/null
  525. if mkdir -p . 2>/dev/null; then
  526. as_mkdir_p='mkdir -p "$as_dir"'
  527. else
  528. test -d ./-p && rmdir ./-p
  529. as_mkdir_p=false
  530. fi
  531. as_test_x='test -x'
  532. as_executable_p=as_fn_executable_p
  533. # Sed expression to map a string onto a valid CPP name.
  534. as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  535. as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
  536. # Sed expression to map a string onto a valid variable name.
  537. as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  538. as_tr_sh="eval sed '$as_sed_sh'" # deprecated
  539. SHELL=${CONFIG_SHELL-/bin/sh}
  540. test -n "$DJDIR" || exec 7<&0 </dev/null
  541. exec 6>&1
  542. # Name of the host.
  543. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  544. # so uname gets run too.
  545. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  546. #
  547. # Initializations.
  548. #
  549. ac_default_prefix=/usr/local
  550. ac_clean_files=
  551. ac_config_libobj_dir=.
  552. LIBOBJS=
  553. cross_compiling=no
  554. subdirs=
  555. MFLAGS=
  556. MAKEFLAGS=
  557. # Identity of this package.
  558. PACKAGE_NAME='file'
  559. PACKAGE_TARNAME='file'
  560. PACKAGE_VERSION='5.46'
  561. PACKAGE_STRING='file 5.46'
  562. PACKAGE_BUGREPORT='christos@astron.com'
  563. PACKAGE_URL=''
  564. # Factoring default headers for most tests.
  565. ac_includes_default="\
  566. #include <stddef.h>
  567. #ifdef HAVE_STDIO_H
  568. # include <stdio.h>
  569. #endif
  570. #ifdef HAVE_STDLIB_H
  571. # include <stdlib.h>
  572. #endif
  573. #ifdef HAVE_STRING_H
  574. # include <string.h>
  575. #endif
  576. #ifdef HAVE_INTTYPES_H
  577. # include <inttypes.h>
  578. #endif
  579. #ifdef HAVE_STDINT_H
  580. # include <stdint.h>
  581. #endif
  582. #ifdef HAVE_STRINGS_H
  583. # include <strings.h>
  584. #endif
  585. #ifdef HAVE_SYS_TYPES_H
  586. # include <sys/types.h>
  587. #endif
  588. #ifdef HAVE_SYS_STAT_H
  589. # include <sys/stat.h>
  590. #endif
  591. #ifdef HAVE_UNISTD_H
  592. # include <unistd.h>
  593. #endif"
  594. ac_header_c_list=
  595. ac_func_c_list=
  596. enable_year2038=yes
  597. ac_subst_vars='am__EXEEXT_FALSE
  598. am__EXEEXT_TRUE
  599. LTLIBOBJS
  600. IS_CROSS_COMPILE_FALSE
  601. IS_CROSS_COMPILE_TRUE
  602. LIBOBJS
  603. HAVE_VISIBILITY
  604. CFLAG_VISIBILITY
  605. LT_SYS_LIBRARY_PATH
  606. OTOOL64
  607. OTOOL
  608. LIPO
  609. NMEDIT
  610. DSYMUTIL
  611. MANIFEST_TOOL
  612. RANLIB
  613. ac_ct_AR
  614. AR
  615. DLLTOOL
  616. OBJDUMP
  617. FILECMD
  618. NM
  619. ac_ct_DUMPBIN
  620. DUMPBIN
  621. LD
  622. FGREP
  623. EGREP
  624. GREP
  625. SED
  626. LIBTOOL
  627. LN_S
  628. am__fastdepCC_FALSE
  629. am__fastdepCC_TRUE
  630. CCDEPMODE
  631. am__nodep
  632. AMDEPBACKSLASH
  633. AMDEP_FALSE
  634. AMDEP_TRUE
  635. am__include
  636. DEPDIR
  637. OBJEXT
  638. EXEEXT
  639. ac_ct_CC
  640. CPPFLAGS
  641. LDFLAGS
  642. CFLAGS
  643. CC
  644. WARNINGS
  645. FSECT5_FALSE
  646. FSECT5_TRUE
  647. fsect
  648. pkgdatadir
  649. MINGW_FALSE
  650. MINGW_TRUE
  651. MINGW
  652. host_os
  653. host_vendor
  654. host_cpu
  655. host
  656. build_os
  657. build_vendor
  658. build_cpu
  659. build
  660. AM_BACKSLASH
  661. AM_DEFAULT_VERBOSITY
  662. AM_DEFAULT_V
  663. AM_V
  664. CSCOPE
  665. ETAGS
  666. CTAGS
  667. am__untar
  668. am__tar
  669. AMTAR
  670. am__leading_dot
  671. SET_MAKE
  672. AWK
  673. mkdir_p
  674. MKDIR_P
  675. INSTALL_STRIP_PROGRAM
  676. STRIP
  677. install_sh
  678. MAKEINFO
  679. AUTOHEADER
  680. AUTOMAKE
  681. AUTOCONF
  682. ACLOCAL
  683. VERSION
  684. PACKAGE
  685. CYGPATH_W
  686. am__isrc
  687. INSTALL_DATA
  688. INSTALL_SCRIPT
  689. INSTALL_PROGRAM
  690. target_alias
  691. host_alias
  692. build_alias
  693. LIBS
  694. ECHO_T
  695. ECHO_N
  696. ECHO_C
  697. DEFS
  698. mandir
  699. localedir
  700. libdir
  701. psdir
  702. pdfdir
  703. dvidir
  704. htmldir
  705. infodir
  706. docdir
  707. oldincludedir
  708. includedir
  709. runstatedir
  710. localstatedir
  711. sharedstatedir
  712. sysconfdir
  713. datadir
  714. datarootdir
  715. libexecdir
  716. sbindir
  717. bindir
  718. program_transform_name
  719. prefix
  720. exec_prefix
  721. PACKAGE_URL
  722. PACKAGE_BUGREPORT
  723. PACKAGE_STRING
  724. PACKAGE_VERSION
  725. PACKAGE_TARNAME
  726. PACKAGE_NAME
  727. PATH_SEPARATOR
  728. SHELL
  729. am__quote'
  730. ac_subst_files=''
  731. ac_user_opts='
  732. enable_option_checking
  733. enable_silent_rules
  734. enable_elf
  735. enable_elf_core
  736. enable_zlib
  737. enable_bzlib
  738. enable_xzlib
  739. enable_zstdlib
  740. enable_lzlib
  741. enable_lrziplib
  742. enable_libseccomp
  743. enable_fsect_man5
  744. enable_dependency_tracking
  745. enable_static
  746. with_pic
  747. enable_shared
  748. enable_fast_install
  749. with_aix_soname
  750. with_gnu_ld
  751. with_sysroot
  752. enable_libtool_lock
  753. enable_largefile
  754. enable_warnings
  755. enable_year2038
  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.46 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.46:";;
  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-zstdlib disable zstdlib compression support [default=auto]
  1320. --disable-lzlib disable liblz (lzip) compression support
  1321. [default=auto]
  1322. --disable-lrziplib disable liblrzip (lrzip) compression support
  1323. [default=auto]
  1324. --disable-libseccomp disable libseccomp sandboxing [default=auto]
  1325. --enable-fsect-man5 enable file formats in man section 5
  1326. --enable-dependency-tracking
  1327. do not reject slow dependency extractors
  1328. --disable-dependency-tracking
  1329. speeds up one-time build
  1330. --enable-static[=PKGS] build static libraries [default=no]
  1331. --enable-shared[=PKGS] build shared libraries [default=yes]
  1332. --enable-fast-install[=PKGS]
  1333. optimize for fast installation [default=yes]
  1334. --disable-libtool-lock avoid locking (might break parallel builds)
  1335. --disable-largefile omit support for large files
  1336. --disable-warnings disable compiler warnings
  1337. --disable-year2038 don't support timestamps after 2038
  1338. Optional Packages:
  1339. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1340. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1341. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1342. both]
  1343. --with-aix-soname=aix|svr4|both
  1344. shared library versioning (aka "SONAME") variant to
  1345. provide on AIX, [default=aix].
  1346. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1347. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1348. compiler's sysroot if not specified).
  1349. Some influential environment variables:
  1350. CC C compiler command
  1351. CFLAGS C compiler flags
  1352. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1353. nonstandard directory <lib dir>
  1354. LIBS libraries to pass to the linker, e.g. -l<library>
  1355. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1356. you have headers in a nonstandard directory <include dir>
  1357. LT_SYS_LIBRARY_PATH
  1358. User-defined run-time library search path.
  1359. Use these variables to override the choices made by 'configure' or to help
  1360. it to find libraries and programs with nonstandard names/locations.
  1361. Report bugs to <christos@astron.com>.
  1362. _ACEOF
  1363. ac_status=$?
  1364. fi
  1365. if test "$ac_init_help" = "recursive"; then
  1366. # If there are subdirs, report their specific --help.
  1367. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1368. test -d "$ac_dir" ||
  1369. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1370. continue
  1371. ac_builddir=.
  1372. case "$ac_dir" in
  1373. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1374. *)
  1375. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1376. # A ".." for each directory in $ac_dir_suffix.
  1377. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1378. case $ac_top_builddir_sub in
  1379. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1380. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1381. esac ;;
  1382. esac
  1383. ac_abs_top_builddir=$ac_pwd
  1384. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1385. # for backward compatibility:
  1386. ac_top_builddir=$ac_top_build_prefix
  1387. case $srcdir in
  1388. .) # We are building in place.
  1389. ac_srcdir=.
  1390. ac_top_srcdir=$ac_top_builddir_sub
  1391. ac_abs_top_srcdir=$ac_pwd ;;
  1392. [\\/]* | ?:[\\/]* ) # Absolute name.
  1393. ac_srcdir=$srcdir$ac_dir_suffix;
  1394. ac_top_srcdir=$srcdir
  1395. ac_abs_top_srcdir=$srcdir ;;
  1396. *) # Relative name.
  1397. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1398. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1399. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1400. esac
  1401. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1402. cd "$ac_dir" || { ac_status=$?; continue; }
  1403. # Check for configure.gnu first; this name is used for a wrapper for
  1404. # Metaconfig's "Configure" on case-insensitive file systems.
  1405. if test -f "$ac_srcdir/configure.gnu"; then
  1406. echo &&
  1407. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1408. elif test -f "$ac_srcdir/configure"; then
  1409. echo &&
  1410. $SHELL "$ac_srcdir/configure" --help=recursive
  1411. else
  1412. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1413. fi || ac_status=$?
  1414. cd "$ac_pwd" || { ac_status=$?; break; }
  1415. done
  1416. fi
  1417. test -n "$ac_init_help" && exit $ac_status
  1418. if $ac_init_version; then
  1419. cat <<\_ACEOF
  1420. file configure 5.46
  1421. generated by GNU Autoconf 2.72
  1422. Copyright (C) 2023 Free Software Foundation, Inc.
  1423. This configure script is free software; the Free Software Foundation
  1424. gives unlimited permission to copy, distribute and modify it.
  1425. _ACEOF
  1426. exit
  1427. fi
  1428. ## ------------------------ ##
  1429. ## Autoconf initialization. ##
  1430. ## ------------------------ ##
  1431. # ac_fn_c_try_compile LINENO
  1432. # --------------------------
  1433. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1434. ac_fn_c_try_compile ()
  1435. {
  1436. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1437. rm -f conftest.$ac_objext conftest.beam
  1438. if { { ac_try="$ac_compile"
  1439. case "(($ac_try" in
  1440. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1441. *) ac_try_echo=$ac_try;;
  1442. esac
  1443. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1444. printf "%s\n" "$ac_try_echo"; } >&5
  1445. (eval "$ac_compile") 2>conftest.err
  1446. ac_status=$?
  1447. if test -s conftest.err; then
  1448. grep -v '^ *+' conftest.err >conftest.er1
  1449. cat conftest.er1 >&5
  1450. mv -f conftest.er1 conftest.err
  1451. fi
  1452. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1453. test $ac_status = 0; } && {
  1454. test -z "$ac_c_werror_flag" ||
  1455. test ! -s conftest.err
  1456. } && test -s conftest.$ac_objext
  1457. then :
  1458. ac_retval=0
  1459. else case e in #(
  1460. e) printf "%s\n" "$as_me: failed program was:" >&5
  1461. sed 's/^/| /' conftest.$ac_ext >&5
  1462. ac_retval=1 ;;
  1463. esac
  1464. fi
  1465. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1466. as_fn_set_status $ac_retval
  1467. } # ac_fn_c_try_compile
  1468. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1469. # -------------------------------------------------------
  1470. # Tests whether HEADER exists and can be compiled using the include files in
  1471. # INCLUDES, setting the cache variable VAR accordingly.
  1472. ac_fn_c_check_header_compile ()
  1473. {
  1474. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1476. printf %s "checking for $2... " >&6; }
  1477. if eval test \${$3+y}
  1478. then :
  1479. printf %s "(cached) " >&6
  1480. else case e in #(
  1481. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1482. /* end confdefs.h. */
  1483. $4
  1484. #include <$2>
  1485. _ACEOF
  1486. if ac_fn_c_try_compile "$LINENO"
  1487. then :
  1488. eval "$3=yes"
  1489. else case e in #(
  1490. e) eval "$3=no" ;;
  1491. esac
  1492. fi
  1493. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1494. esac
  1495. fi
  1496. eval ac_res=\$$3
  1497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1498. printf "%s\n" "$ac_res" >&6; }
  1499. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1500. } # ac_fn_c_check_header_compile
  1501. # ac_fn_c_try_link LINENO
  1502. # -----------------------
  1503. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1504. ac_fn_c_try_link ()
  1505. {
  1506. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1507. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1508. if { { ac_try="$ac_link"
  1509. case "(($ac_try" in
  1510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1511. *) ac_try_echo=$ac_try;;
  1512. esac
  1513. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1514. printf "%s\n" "$ac_try_echo"; } >&5
  1515. (eval "$ac_link") 2>conftest.err
  1516. ac_status=$?
  1517. if test -s conftest.err; then
  1518. grep -v '^ *+' conftest.err >conftest.er1
  1519. cat conftest.er1 >&5
  1520. mv -f conftest.er1 conftest.err
  1521. fi
  1522. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1523. test $ac_status = 0; } && {
  1524. test -z "$ac_c_werror_flag" ||
  1525. test ! -s conftest.err
  1526. } && test -s conftest$ac_exeext && {
  1527. test "$cross_compiling" = yes ||
  1528. test -x conftest$ac_exeext
  1529. }
  1530. then :
  1531. ac_retval=0
  1532. else case e in #(
  1533. e) printf "%s\n" "$as_me: failed program was:" >&5
  1534. sed 's/^/| /' conftest.$ac_ext >&5
  1535. ac_retval=1 ;;
  1536. esac
  1537. fi
  1538. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1539. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1540. # interfere with the next link command; also delete a directory that is
  1541. # left behind by Apple's compiler. We do this before executing the actions.
  1542. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1543. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1544. as_fn_set_status $ac_retval
  1545. } # ac_fn_c_try_link
  1546. # ac_fn_c_try_run LINENO
  1547. # ----------------------
  1548. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  1549. # executables *can* be run.
  1550. ac_fn_c_try_run ()
  1551. {
  1552. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1553. if { { ac_try="$ac_link"
  1554. case "(($ac_try" in
  1555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1556. *) ac_try_echo=$ac_try;;
  1557. esac
  1558. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1559. printf "%s\n" "$ac_try_echo"; } >&5
  1560. (eval "$ac_link") 2>&5
  1561. ac_status=$?
  1562. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1563. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1564. { { case "(($ac_try" in
  1565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1566. *) ac_try_echo=$ac_try;;
  1567. esac
  1568. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1569. printf "%s\n" "$ac_try_echo"; } >&5
  1570. (eval "$ac_try") 2>&5
  1571. ac_status=$?
  1572. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1573. test $ac_status = 0; }; }
  1574. then :
  1575. ac_retval=0
  1576. else case e in #(
  1577. e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  1578. printf "%s\n" "$as_me: failed program was:" >&5
  1579. sed 's/^/| /' conftest.$ac_ext >&5
  1580. ac_retval=$ac_status ;;
  1581. esac
  1582. fi
  1583. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1584. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1585. as_fn_set_status $ac_retval
  1586. } # ac_fn_c_try_run
  1587. # ac_fn_c_check_func LINENO FUNC VAR
  1588. # ----------------------------------
  1589. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1590. ac_fn_c_check_func ()
  1591. {
  1592. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1594. printf %s "checking for $2... " >&6; }
  1595. if eval test \${$3+y}
  1596. then :
  1597. printf %s "(cached) " >&6
  1598. else case e in #(
  1599. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1600. /* end confdefs.h. */
  1601. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1602. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1603. #define $2 innocuous_$2
  1604. /* System header to define __stub macros and hopefully few prototypes,
  1605. which can conflict with char $2 (void); below. */
  1606. #include <limits.h>
  1607. #undef $2
  1608. /* Override any GCC internal prototype to avoid an error.
  1609. Use char because int might match the return type of a GCC
  1610. builtin and then its argument prototype would still apply. */
  1611. #ifdef __cplusplus
  1612. extern "C"
  1613. #endif
  1614. char $2 (void);
  1615. /* The GNU C library defines this for functions which it implements
  1616. to always fail with ENOSYS. Some functions are actually named
  1617. something starting with __ and the normal name is an alias. */
  1618. #if defined __stub_$2 || defined __stub___$2
  1619. choke me
  1620. #endif
  1621. int
  1622. main (void)
  1623. {
  1624. return $2 ();
  1625. ;
  1626. return 0;
  1627. }
  1628. _ACEOF
  1629. if ac_fn_c_try_link "$LINENO"
  1630. then :
  1631. eval "$3=yes"
  1632. else case e in #(
  1633. e) eval "$3=no" ;;
  1634. esac
  1635. fi
  1636. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1637. conftest$ac_exeext conftest.$ac_ext ;;
  1638. esac
  1639. fi
  1640. eval ac_res=\$$3
  1641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1642. printf "%s\n" "$ac_res" >&6; }
  1643. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1644. } # ac_fn_c_check_func
  1645. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1646. # -------------------------------------------
  1647. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1648. # variable VAR accordingly.
  1649. ac_fn_c_check_type ()
  1650. {
  1651. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1653. printf %s "checking for $2... " >&6; }
  1654. if eval test \${$3+y}
  1655. then :
  1656. printf %s "(cached) " >&6
  1657. else case e in #(
  1658. e) eval "$3=no"
  1659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1660. /* end confdefs.h. */
  1661. $4
  1662. int
  1663. main (void)
  1664. {
  1665. if (sizeof ($2))
  1666. return 0;
  1667. ;
  1668. return 0;
  1669. }
  1670. _ACEOF
  1671. if ac_fn_c_try_compile "$LINENO"
  1672. then :
  1673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1674. /* end confdefs.h. */
  1675. $4
  1676. int
  1677. main (void)
  1678. {
  1679. if (sizeof (($2)))
  1680. return 0;
  1681. ;
  1682. return 0;
  1683. }
  1684. _ACEOF
  1685. if ac_fn_c_try_compile "$LINENO"
  1686. then :
  1687. else case e in #(
  1688. e) eval "$3=yes" ;;
  1689. esac
  1690. fi
  1691. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1692. fi
  1693. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1694. esac
  1695. fi
  1696. eval ac_res=\$$3
  1697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1698. printf "%s\n" "$ac_res" >&6; }
  1699. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1700. } # ac_fn_c_check_type
  1701. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1702. # ----------------------------------------------------
  1703. # Tries to find if the field MEMBER exists in type AGGR, after including
  1704. # INCLUDES, setting cache variable VAR accordingly.
  1705. ac_fn_c_check_member ()
  1706. {
  1707. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1709. printf %s "checking for $2.$3... " >&6; }
  1710. if eval test \${$4+y}
  1711. then :
  1712. printf %s "(cached) " >&6
  1713. else case e in #(
  1714. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1715. /* end confdefs.h. */
  1716. $5
  1717. int
  1718. main (void)
  1719. {
  1720. static $2 ac_aggr;
  1721. if (ac_aggr.$3)
  1722. return 0;
  1723. ;
  1724. return 0;
  1725. }
  1726. _ACEOF
  1727. if ac_fn_c_try_compile "$LINENO"
  1728. then :
  1729. eval "$4=yes"
  1730. else case e in #(
  1731. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1732. /* end confdefs.h. */
  1733. $5
  1734. int
  1735. main (void)
  1736. {
  1737. static $2 ac_aggr;
  1738. if (sizeof ac_aggr.$3)
  1739. return 0;
  1740. ;
  1741. return 0;
  1742. }
  1743. _ACEOF
  1744. if ac_fn_c_try_compile "$LINENO"
  1745. then :
  1746. eval "$4=yes"
  1747. else case e in #(
  1748. e) eval "$4=no" ;;
  1749. esac
  1750. fi
  1751. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1752. esac
  1753. fi
  1754. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1755. esac
  1756. fi
  1757. eval ac_res=\$$4
  1758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1759. printf "%s\n" "$ac_res" >&6; }
  1760. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1761. } # ac_fn_c_check_member
  1762. # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
  1763. # ------------------------------------------------------------------
  1764. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1765. # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
  1766. ac_fn_check_decl ()
  1767. {
  1768. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1769. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1771. printf %s "checking whether $as_decl_name is declared... " >&6; }
  1772. if eval test \${$3+y}
  1773. then :
  1774. printf %s "(cached) " >&6
  1775. else case e in #(
  1776. e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1777. eval ac_save_FLAGS=\$$6
  1778. as_fn_append $6 " $5"
  1779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1780. /* end confdefs.h. */
  1781. $4
  1782. int
  1783. main (void)
  1784. {
  1785. #ifndef $as_decl_name
  1786. #ifdef __cplusplus
  1787. (void) $as_decl_use;
  1788. #else
  1789. (void) $as_decl_name;
  1790. #endif
  1791. #endif
  1792. ;
  1793. return 0;
  1794. }
  1795. _ACEOF
  1796. if ac_fn_c_try_compile "$LINENO"
  1797. then :
  1798. eval "$3=yes"
  1799. else case e in #(
  1800. e) eval "$3=no" ;;
  1801. esac
  1802. fi
  1803. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1804. eval $6=\$ac_save_FLAGS
  1805. ;;
  1806. esac
  1807. fi
  1808. eval ac_res=\$$3
  1809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1810. printf "%s\n" "$ac_res" >&6; }
  1811. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1812. } # ac_fn_check_decl
  1813. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1814. # ------------------------------------
  1815. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1816. # accordingly.
  1817. ac_fn_c_find_uintX_t ()
  1818. {
  1819. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1821. printf %s "checking for uint$2_t... " >&6; }
  1822. if eval test \${$3+y}
  1823. then :
  1824. printf %s "(cached) " >&6
  1825. else case e in #(
  1826. e) eval "$3=no"
  1827. # Order is important - never check a type that is potentially smaller
  1828. # than half of the expected target width.
  1829. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1830. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1832. /* end confdefs.h. */
  1833. $ac_includes_default
  1834. int
  1835. main (void)
  1836. {
  1837. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1838. test_array [0] = 0;
  1839. return test_array [0];
  1840. ;
  1841. return 0;
  1842. }
  1843. _ACEOF
  1844. if ac_fn_c_try_compile "$LINENO"
  1845. then :
  1846. case $ac_type in #(
  1847. uint$2_t) :
  1848. eval "$3=yes" ;; #(
  1849. *) :
  1850. eval "$3=\$ac_type" ;;
  1851. esac
  1852. fi
  1853. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1854. if eval test \"x\$"$3"\" = x"no"
  1855. then :
  1856. else case e in #(
  1857. e) break ;;
  1858. esac
  1859. fi
  1860. done ;;
  1861. esac
  1862. fi
  1863. eval ac_res=\$$3
  1864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1865. printf "%s\n" "$ac_res" >&6; }
  1866. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1867. } # ac_fn_c_find_uintX_t
  1868. # ac_fn_c_find_intX_t LINENO BITS VAR
  1869. # -----------------------------------
  1870. # Finds a signed integer type with width BITS, setting cache variable VAR
  1871. # accordingly.
  1872. ac_fn_c_find_intX_t ()
  1873. {
  1874. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1876. printf %s "checking for int$2_t... " >&6; }
  1877. if eval test \${$3+y}
  1878. then :
  1879. printf %s "(cached) " >&6
  1880. else case e in #(
  1881. e) eval "$3=no"
  1882. # Order is important - never check a type that is potentially smaller
  1883. # than half of the expected target width.
  1884. for ac_type in int$2_t 'int' 'long int' \
  1885. 'long long int' 'short int' 'signed char'; do
  1886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1887. /* end confdefs.h. */
  1888. $ac_includes_default
  1889. enum { N = $2 / 2 - 1 };
  1890. int
  1891. main (void)
  1892. {
  1893. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1894. test_array [0] = 0;
  1895. return test_array [0];
  1896. ;
  1897. return 0;
  1898. }
  1899. _ACEOF
  1900. if ac_fn_c_try_compile "$LINENO"
  1901. then :
  1902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1903. /* end confdefs.h. */
  1904. $ac_includes_default
  1905. enum { N = $2 / 2 - 1 };
  1906. int
  1907. main (void)
  1908. {
  1909. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1910. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1911. test_array [0] = 0;
  1912. return test_array [0];
  1913. ;
  1914. return 0;
  1915. }
  1916. _ACEOF
  1917. if ac_fn_c_try_compile "$LINENO"
  1918. then :
  1919. else case e in #(
  1920. e) case $ac_type in #(
  1921. int$2_t) :
  1922. eval "$3=yes" ;; #(
  1923. *) :
  1924. eval "$3=\$ac_type" ;;
  1925. esac ;;
  1926. esac
  1927. fi
  1928. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1929. fi
  1930. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1931. if eval test \"x\$"$3"\" = x"no"
  1932. then :
  1933. else case e in #(
  1934. e) break ;;
  1935. esac
  1936. fi
  1937. done ;;
  1938. esac
  1939. fi
  1940. eval ac_res=\$$3
  1941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1942. printf "%s\n" "$ac_res" >&6; }
  1943. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1944. } # ac_fn_c_find_intX_t
  1945. ac_configure_args_raw=
  1946. for ac_arg
  1947. do
  1948. case $ac_arg in
  1949. *\'*)
  1950. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1951. esac
  1952. as_fn_append ac_configure_args_raw " '$ac_arg'"
  1953. done
  1954. case $ac_configure_args_raw in
  1955. *$as_nl*)
  1956. ac_safe_unquote= ;;
  1957. *)
  1958. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  1959. ac_unsafe_a="$ac_unsafe_z#~"
  1960. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  1961. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  1962. esac
  1963. cat >config.log <<_ACEOF
  1964. This file contains any messages produced by compilers while
  1965. running configure, to aid debugging if configure makes a mistake.
  1966. It was created by file $as_me 5.46, which was
  1967. generated by GNU Autoconf 2.72. Invocation command line was
  1968. $ $0$ac_configure_args_raw
  1969. _ACEOF
  1970. exec 5>>config.log
  1971. {
  1972. cat <<_ASUNAME
  1973. ## --------- ##
  1974. ## Platform. ##
  1975. ## --------- ##
  1976. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1977. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1978. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1979. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1980. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1981. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1982. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1983. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1984. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1985. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1986. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1987. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1988. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1989. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1990. _ASUNAME
  1991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1992. for as_dir in $PATH
  1993. do
  1994. IFS=$as_save_IFS
  1995. case $as_dir in #(((
  1996. '') as_dir=./ ;;
  1997. */) ;;
  1998. *) as_dir=$as_dir/ ;;
  1999. esac
  2000. printf "%s\n" "PATH: $as_dir"
  2001. done
  2002. IFS=$as_save_IFS
  2003. } >&5
  2004. cat >&5 <<_ACEOF
  2005. ## ----------- ##
  2006. ## Core tests. ##
  2007. ## ----------- ##
  2008. _ACEOF
  2009. # Keep a trace of the command line.
  2010. # Strip out --no-create and --no-recursion so they do not pile up.
  2011. # Strip out --silent because we don't want to record it for future runs.
  2012. # Also quote any args containing shell meta-characters.
  2013. # Make two passes to allow for proper duplicate-argument suppression.
  2014. ac_configure_args=
  2015. ac_configure_args0=
  2016. ac_configure_args1=
  2017. ac_must_keep_next=false
  2018. for ac_pass in 1 2
  2019. do
  2020. for ac_arg
  2021. do
  2022. case $ac_arg in
  2023. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2024. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2025. | -silent | --silent | --silen | --sile | --sil)
  2026. continue ;;
  2027. *\'*)
  2028. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2029. esac
  2030. case $ac_pass in
  2031. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2032. 2)
  2033. as_fn_append ac_configure_args1 " '$ac_arg'"
  2034. if test $ac_must_keep_next = true; then
  2035. ac_must_keep_next=false # Got value, back to normal.
  2036. else
  2037. case $ac_arg in
  2038. *=* | --config-cache | -C | -disable-* | --disable-* \
  2039. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2040. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2041. | -with-* | --with-* | -without-* | --without-* | --x)
  2042. case "$ac_configure_args0 " in
  2043. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2044. esac
  2045. ;;
  2046. -* ) ac_must_keep_next=true ;;
  2047. esac
  2048. fi
  2049. as_fn_append ac_configure_args " '$ac_arg'"
  2050. ;;
  2051. esac
  2052. done
  2053. done
  2054. { ac_configure_args0=; unset ac_configure_args0;}
  2055. { ac_configure_args1=; unset ac_configure_args1;}
  2056. # When interrupted or exit'd, cleanup temporary files, and complete
  2057. # config.log. We remove comments because anyway the quotes in there
  2058. # would cause problems or look ugly.
  2059. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2060. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2061. trap 'exit_status=$?
  2062. # Sanitize IFS.
  2063. IFS=" "" $as_nl"
  2064. # Save into config.log some information that might help in debugging.
  2065. {
  2066. echo
  2067. printf "%s\n" "## ---------------- ##
  2068. ## Cache variables. ##
  2069. ## ---------------- ##"
  2070. echo
  2071. # The following way of writing the cache mishandles newlines in values,
  2072. (
  2073. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2074. eval ac_val=\$$ac_var
  2075. case $ac_val in #(
  2076. *${as_nl}*)
  2077. case $ac_var in #(
  2078. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2079. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2080. esac
  2081. case $ac_var in #(
  2082. _ | IFS | as_nl) ;; #(
  2083. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2084. *) { eval $ac_var=; unset $ac_var;} ;;
  2085. esac ;;
  2086. esac
  2087. done
  2088. (set) 2>&1 |
  2089. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2090. *${as_nl}ac_space=\ *)
  2091. sed -n \
  2092. "s/'\''/'\''\\\\'\'''\''/g;
  2093. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2094. ;; #(
  2095. *)
  2096. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2097. ;;
  2098. esac |
  2099. sort
  2100. )
  2101. echo
  2102. printf "%s\n" "## ----------------- ##
  2103. ## Output variables. ##
  2104. ## ----------------- ##"
  2105. echo
  2106. for ac_var in $ac_subst_vars
  2107. do
  2108. eval ac_val=\$$ac_var
  2109. case $ac_val in
  2110. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2111. esac
  2112. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2113. done | sort
  2114. echo
  2115. if test -n "$ac_subst_files"; then
  2116. printf "%s\n" "## ------------------- ##
  2117. ## File substitutions. ##
  2118. ## ------------------- ##"
  2119. echo
  2120. for ac_var in $ac_subst_files
  2121. do
  2122. eval ac_val=\$$ac_var
  2123. case $ac_val in
  2124. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2125. esac
  2126. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2127. done | sort
  2128. echo
  2129. fi
  2130. if test -s confdefs.h; then
  2131. printf "%s\n" "## ----------- ##
  2132. ## confdefs.h. ##
  2133. ## ----------- ##"
  2134. echo
  2135. cat confdefs.h
  2136. echo
  2137. fi
  2138. test "$ac_signal" != 0 &&
  2139. printf "%s\n" "$as_me: caught signal $ac_signal"
  2140. printf "%s\n" "$as_me: exit $exit_status"
  2141. } >&5
  2142. rm -f core *.core core.conftest.* &&
  2143. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2144. exit $exit_status
  2145. ' 0
  2146. for ac_signal in 1 2 13 15; do
  2147. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2148. done
  2149. ac_signal=0
  2150. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2151. rm -f -r conftest* confdefs.h
  2152. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2153. # Predefined preprocessor variables.
  2154. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2155. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2156. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2157. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2158. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2159. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2160. # Let the site file select an alternate cache file if it wants to.
  2161. # Prefer an explicitly selected file to automatically selected ones.
  2162. if test -n "$CONFIG_SITE"; then
  2163. ac_site_files="$CONFIG_SITE"
  2164. elif test "x$prefix" != xNONE; then
  2165. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2166. else
  2167. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2168. fi
  2169. for ac_site_file in $ac_site_files
  2170. do
  2171. case $ac_site_file in #(
  2172. */*) :
  2173. ;; #(
  2174. *) :
  2175. ac_site_file=./$ac_site_file ;;
  2176. esac
  2177. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2179. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2180. sed 's/^/| /' "$ac_site_file" >&5
  2181. . "$ac_site_file" \
  2182. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  2183. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  2184. as_fn_error $? "failed to load site script $ac_site_file
  2185. See 'config.log' for more details" "$LINENO" 5; }
  2186. fi
  2187. done
  2188. if test -r "$cache_file"; then
  2189. # Some versions of bash will fail to source /dev/null (special files
  2190. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2191. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2193. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2194. case $cache_file in
  2195. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2196. *) . "./$cache_file";;
  2197. esac
  2198. fi
  2199. else
  2200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2201. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2202. >$cache_file
  2203. fi
  2204. # Test code for whether the C compiler supports C89 (global declarations)
  2205. ac_c_conftest_c89_globals='
  2206. /* Does the compiler advertise C89 conformance?
  2207. Do not test the value of __STDC__, because some compilers set it to 0
  2208. while being otherwise adequately conformant. */
  2209. #if !defined __STDC__
  2210. # error "Compiler does not advertise C89 conformance"
  2211. #endif
  2212. #include <stddef.h>
  2213. #include <stdarg.h>
  2214. struct stat;
  2215. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2216. struct buf { int x; };
  2217. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2218. static char *e (char **p, int i)
  2219. {
  2220. return p[i];
  2221. }
  2222. static char *f (char * (*g) (char **, int), char **p, ...)
  2223. {
  2224. char *s;
  2225. va_list v;
  2226. va_start (v,p);
  2227. s = g (p, va_arg (v,int));
  2228. va_end (v);
  2229. return s;
  2230. }
  2231. /* C89 style stringification. */
  2232. #define noexpand_stringify(a) #a
  2233. const char *stringified = noexpand_stringify(arbitrary+token=sequence);
  2234. /* C89 style token pasting. Exercises some of the corner cases that
  2235. e.g. old MSVC gets wrong, but not very hard. */
  2236. #define noexpand_concat(a,b) a##b
  2237. #define expand_concat(a,b) noexpand_concat(a,b)
  2238. extern int vA;
  2239. extern int vbee;
  2240. #define aye A
  2241. #define bee B
  2242. int *pvA = &expand_concat(v,aye);
  2243. int *pvbee = &noexpand_concat(v,bee);
  2244. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2245. function prototypes and stuff, but not \xHH hex character constants.
  2246. These do not provoke an error unfortunately, instead are silently treated
  2247. as an "x". The following induces an error, until -std is added to get
  2248. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2249. array size at least. It is necessary to write \x00 == 0 to get something
  2250. that is true only with -std. */
  2251. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2252. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2253. inside strings and character constants. */
  2254. #define FOO(x) '\''x'\''
  2255. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2256. int test (int i, double x);
  2257. struct s1 {int (*f) (int a);};
  2258. struct s2 {int (*f) (double a);};
  2259. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2260. int, int);'
  2261. # Test code for whether the C compiler supports C89 (body of main).
  2262. ac_c_conftest_c89_main='
  2263. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2264. '
  2265. # Test code for whether the C compiler supports C99 (global declarations)
  2266. ac_c_conftest_c99_globals='
  2267. /* Does the compiler advertise C99 conformance? */
  2268. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2269. # error "Compiler does not advertise C99 conformance"
  2270. #endif
  2271. // See if C++-style comments work.
  2272. #include <stdbool.h>
  2273. extern int puts (const char *);
  2274. extern int printf (const char *, ...);
  2275. extern int dprintf (int, const char *, ...);
  2276. extern void *malloc (size_t);
  2277. extern void free (void *);
  2278. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2279. // dprintf is used instead of fprintf to avoid needing to declare
  2280. // FILE and stderr.
  2281. #define debug(...) dprintf (2, __VA_ARGS__)
  2282. #define showlist(...) puts (#__VA_ARGS__)
  2283. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2284. static void
  2285. test_varargs_macros (void)
  2286. {
  2287. int x = 1234;
  2288. int y = 5678;
  2289. debug ("Flag");
  2290. debug ("X = %d\n", x);
  2291. showlist (The first, second, and third items.);
  2292. report (x>y, "x is %d but y is %d", x, y);
  2293. }
  2294. // Check long long types.
  2295. #define BIG64 18446744073709551615ull
  2296. #define BIG32 4294967295ul
  2297. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2298. #if !BIG_OK
  2299. #error "your preprocessor is broken"
  2300. #endif
  2301. #if BIG_OK
  2302. #else
  2303. #error "your preprocessor is broken"
  2304. #endif
  2305. static long long int bignum = -9223372036854775807LL;
  2306. static unsigned long long int ubignum = BIG64;
  2307. struct incomplete_array
  2308. {
  2309. int datasize;
  2310. double data[];
  2311. };
  2312. struct named_init {
  2313. int number;
  2314. const wchar_t *name;
  2315. double average;
  2316. };
  2317. typedef const char *ccp;
  2318. static inline int
  2319. test_restrict (ccp restrict text)
  2320. {
  2321. // Iterate through items via the restricted pointer.
  2322. // Also check for declarations in for loops.
  2323. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2324. continue;
  2325. return 0;
  2326. }
  2327. // Check varargs and va_copy.
  2328. static bool
  2329. test_varargs (const char *format, ...)
  2330. {
  2331. va_list args;
  2332. va_start (args, format);
  2333. va_list args_copy;
  2334. va_copy (args_copy, args);
  2335. const char *str = "";
  2336. int number = 0;
  2337. float fnumber = 0;
  2338. while (*format)
  2339. {
  2340. switch (*format++)
  2341. {
  2342. case '\''s'\'': // string
  2343. str = va_arg (args_copy, const char *);
  2344. break;
  2345. case '\''d'\'': // int
  2346. number = va_arg (args_copy, int);
  2347. break;
  2348. case '\''f'\'': // float
  2349. fnumber = va_arg (args_copy, double);
  2350. break;
  2351. default:
  2352. break;
  2353. }
  2354. }
  2355. va_end (args_copy);
  2356. va_end (args);
  2357. return *str && number && fnumber;
  2358. }
  2359. '
  2360. # Test code for whether the C compiler supports C99 (body of main).
  2361. ac_c_conftest_c99_main='
  2362. // Check bool.
  2363. _Bool success = false;
  2364. success |= (argc != 0);
  2365. // Check restrict.
  2366. if (test_restrict ("String literal") == 0)
  2367. success = true;
  2368. char *restrict newvar = "Another string";
  2369. // Check varargs.
  2370. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2371. test_varargs_macros ();
  2372. // Check flexible array members.
  2373. struct incomplete_array *ia =
  2374. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2375. ia->datasize = 10;
  2376. for (int i = 0; i < ia->datasize; ++i)
  2377. ia->data[i] = i * 1.234;
  2378. // Work around memory leak warnings.
  2379. free (ia);
  2380. // Check named initializers.
  2381. struct named_init ni = {
  2382. .number = 34,
  2383. .name = L"Test wide string",
  2384. .average = 543.34343,
  2385. };
  2386. ni.number = 58;
  2387. int dynamic_array[ni.number];
  2388. dynamic_array[0] = argv[0][0];
  2389. dynamic_array[ni.number - 1] = 543;
  2390. // work around unused variable warnings
  2391. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2392. || dynamic_array[ni.number - 1] != 543);
  2393. '
  2394. # Test code for whether the C compiler supports C11 (global declarations)
  2395. ac_c_conftest_c11_globals='
  2396. /* Does the compiler advertise C11 conformance? */
  2397. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2398. # error "Compiler does not advertise C11 conformance"
  2399. #endif
  2400. // Check _Alignas.
  2401. char _Alignas (double) aligned_as_double;
  2402. char _Alignas (0) no_special_alignment;
  2403. extern char aligned_as_int;
  2404. char _Alignas (0) _Alignas (int) aligned_as_int;
  2405. // Check _Alignof.
  2406. enum
  2407. {
  2408. int_alignment = _Alignof (int),
  2409. int_array_alignment = _Alignof (int[100]),
  2410. char_alignment = _Alignof (char)
  2411. };
  2412. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2413. // Check _Noreturn.
  2414. int _Noreturn does_not_return (void) { for (;;) continue; }
  2415. // Check _Static_assert.
  2416. struct test_static_assert
  2417. {
  2418. int x;
  2419. _Static_assert (sizeof (int) <= sizeof (long int),
  2420. "_Static_assert does not work in struct");
  2421. long int y;
  2422. };
  2423. // Check UTF-8 literals.
  2424. #define u8 syntax error!
  2425. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2426. // Check duplicate typedefs.
  2427. typedef long *long_ptr;
  2428. typedef long int *long_ptr;
  2429. typedef long_ptr long_ptr;
  2430. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2431. struct anonymous
  2432. {
  2433. union {
  2434. struct { int i; int j; };
  2435. struct { int k; long int l; } w;
  2436. };
  2437. int m;
  2438. } v1;
  2439. '
  2440. # Test code for whether the C compiler supports C11 (body of main).
  2441. ac_c_conftest_c11_main='
  2442. _Static_assert ((offsetof (struct anonymous, i)
  2443. == offsetof (struct anonymous, w.k)),
  2444. "Anonymous union alignment botch");
  2445. v1.i = 2;
  2446. v1.w.k = 5;
  2447. ok |= v1.i != 5;
  2448. '
  2449. # Test code for whether the C compiler supports C11 (complete).
  2450. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2451. ${ac_c_conftest_c99_globals}
  2452. ${ac_c_conftest_c11_globals}
  2453. int
  2454. main (int argc, char **argv)
  2455. {
  2456. int ok = 0;
  2457. ${ac_c_conftest_c89_main}
  2458. ${ac_c_conftest_c99_main}
  2459. ${ac_c_conftest_c11_main}
  2460. return ok;
  2461. }
  2462. "
  2463. # Test code for whether the C compiler supports C99 (complete).
  2464. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2465. ${ac_c_conftest_c99_globals}
  2466. int
  2467. main (int argc, char **argv)
  2468. {
  2469. int ok = 0;
  2470. ${ac_c_conftest_c89_main}
  2471. ${ac_c_conftest_c99_main}
  2472. return ok;
  2473. }
  2474. "
  2475. # Test code for whether the C compiler supports C89 (complete).
  2476. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2477. int
  2478. main (int argc, char **argv)
  2479. {
  2480. int ok = 0;
  2481. ${ac_c_conftest_c89_main}
  2482. return ok;
  2483. }
  2484. "
  2485. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2486. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2487. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2488. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2489. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2490. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2491. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2492. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2493. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2494. as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
  2495. as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
  2496. as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
  2497. as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
  2498. as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
  2499. as_fn_append ac_func_c_list " fork HAVE_FORK"
  2500. as_fn_append ac_func_c_list " vfork HAVE_VFORK"
  2501. # Auxiliary files required by this configure script.
  2502. ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh"
  2503. # Locations in which to look for auxiliary files.
  2504. ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
  2505. # Search for a directory containing all of the required auxiliary files,
  2506. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2507. # If we don't find one directory that contains all the files we need,
  2508. # we report the set of missing files from the *first* directory in
  2509. # $ac_aux_dir_candidates and give up.
  2510. ac_missing_aux_files=""
  2511. ac_first_candidate=:
  2512. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2514. as_found=false
  2515. for as_dir in $ac_aux_dir_candidates
  2516. do
  2517. IFS=$as_save_IFS
  2518. case $as_dir in #(((
  2519. '') as_dir=./ ;;
  2520. */) ;;
  2521. *) as_dir=$as_dir/ ;;
  2522. esac
  2523. as_found=:
  2524. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2525. ac_aux_dir_found=yes
  2526. ac_install_sh=
  2527. for ac_aux in $ac_aux_files
  2528. do
  2529. # As a special case, if "install-sh" is required, that requirement
  2530. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2531. # and $ac_install_sh is set appropriately for whichever one is found.
  2532. if test x"$ac_aux" = x"install-sh"
  2533. then
  2534. if test -f "${as_dir}install-sh"; then
  2535. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2536. ac_install_sh="${as_dir}install-sh -c"
  2537. elif test -f "${as_dir}install.sh"; then
  2538. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2539. ac_install_sh="${as_dir}install.sh -c"
  2540. elif test -f "${as_dir}shtool"; then
  2541. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2542. ac_install_sh="${as_dir}shtool install -c"
  2543. else
  2544. ac_aux_dir_found=no
  2545. if $ac_first_candidate; then
  2546. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2547. else
  2548. break
  2549. fi
  2550. fi
  2551. else
  2552. if test -f "${as_dir}${ac_aux}"; then
  2553. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2554. else
  2555. ac_aux_dir_found=no
  2556. if $ac_first_candidate; then
  2557. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2558. else
  2559. break
  2560. fi
  2561. fi
  2562. fi
  2563. done
  2564. if test "$ac_aux_dir_found" = yes; then
  2565. ac_aux_dir="$as_dir"
  2566. break
  2567. fi
  2568. ac_first_candidate=false
  2569. as_found=false
  2570. done
  2571. IFS=$as_save_IFS
  2572. if $as_found
  2573. then :
  2574. else case e in #(
  2575. e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
  2576. esac
  2577. fi
  2578. # These three variables are undocumented and unsupported,
  2579. # and are intended to be withdrawn in a future Autoconf release.
  2580. # They can cause serious problems if a builder's source tree is in a directory
  2581. # whose full name contains unusual characters.
  2582. if test -f "${ac_aux_dir}config.guess"; then
  2583. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2584. fi
  2585. if test -f "${ac_aux_dir}config.sub"; then
  2586. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2587. fi
  2588. if test -f "$ac_aux_dir/configure"; then
  2589. ac_configure="$SHELL ${ac_aux_dir}configure"
  2590. fi
  2591. # Check that the precious variables saved in the cache have kept the same
  2592. # value.
  2593. ac_cache_corrupted=false
  2594. for ac_var in $ac_precious_vars; do
  2595. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2596. eval ac_new_set=\$ac_env_${ac_var}_set
  2597. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2598. eval ac_new_val=\$ac_env_${ac_var}_value
  2599. case $ac_old_set,$ac_new_set in
  2600. set,)
  2601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
  2602. printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
  2603. ac_cache_corrupted=: ;;
  2604. ,set)
  2605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
  2606. printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
  2607. ac_cache_corrupted=: ;;
  2608. ,);;
  2609. *)
  2610. if test "x$ac_old_val" != "x$ac_new_val"; then
  2611. # differences in whitespace do not lead to failure.
  2612. ac_old_val_w=`echo x $ac_old_val`
  2613. ac_new_val_w=`echo x $ac_new_val`
  2614. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
  2616. printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
  2617. ac_cache_corrupted=:
  2618. else
  2619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
  2620. printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
  2621. eval $ac_var=\$ac_old_val
  2622. fi
  2623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
  2624. printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
  2625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
  2626. printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
  2627. fi;;
  2628. esac
  2629. # Pass precious variables to config.status.
  2630. if test "$ac_new_set" = set; then
  2631. case $ac_new_val in
  2632. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2633. *) ac_arg=$ac_var=$ac_new_val ;;
  2634. esac
  2635. case " $ac_configure_args " in
  2636. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2637. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2638. esac
  2639. fi
  2640. done
  2641. if $ac_cache_corrupted; then
  2642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  2643. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  2644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2645. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2646. as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
  2647. and start over" "$LINENO" 5
  2648. fi
  2649. ## -------------------- ##
  2650. ## Main body of script. ##
  2651. ## -------------------- ##
  2652. ac_ext=c
  2653. ac_cpp='$CPP $CPPFLAGS'
  2654. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2655. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2656. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2657. am__api_version='1.16'
  2658. # Find a good install program. We prefer a C program (faster),
  2659. # so one script is as good as another. But avoid the broken or
  2660. # incompatible versions:
  2661. # SysV /etc/install, /usr/sbin/install
  2662. # SunOS /usr/etc/install
  2663. # IRIX /sbin/install
  2664. # AIX /bin/install
  2665. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2666. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2667. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2668. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2669. # OS/2's system install, which has a completely different semantic
  2670. # ./install, which can be erroneously created by make from ./install.sh.
  2671. # Reject install programs that cannot install multiple files.
  2672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2673. printf %s "checking for a BSD-compatible install... " >&6; }
  2674. if test -z "$INSTALL"; then
  2675. if test ${ac_cv_path_install+y}
  2676. then :
  2677. printf %s "(cached) " >&6
  2678. else case e in #(
  2679. e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2680. for as_dir in $PATH
  2681. do
  2682. IFS=$as_save_IFS
  2683. case $as_dir in #(((
  2684. '') as_dir=./ ;;
  2685. */) ;;
  2686. *) as_dir=$as_dir/ ;;
  2687. esac
  2688. # Account for fact that we put trailing slashes in our PATH walk.
  2689. case $as_dir in #((
  2690. ./ | /[cC]/* | \
  2691. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2692. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2693. /usr/ucb/* ) ;;
  2694. *)
  2695. # OSF1 and SCO ODT 3.0 have their own names for install.
  2696. # Don't use installbsd from OSF since it installs stuff as root
  2697. # by default.
  2698. for ac_prog in ginstall scoinst install; do
  2699. for ac_exec_ext in '' $ac_executable_extensions; do
  2700. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  2701. if test $ac_prog = install &&
  2702. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2703. # AIX install. It has an incompatible calling convention.
  2704. :
  2705. elif test $ac_prog = install &&
  2706. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2707. # program-specific install script used by HP pwplus--don't use.
  2708. :
  2709. else
  2710. rm -rf conftest.one conftest.two conftest.dir
  2711. echo one > conftest.one
  2712. echo two > conftest.two
  2713. mkdir conftest.dir
  2714. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  2715. test -s conftest.one && test -s conftest.two &&
  2716. test -s conftest.dir/conftest.one &&
  2717. test -s conftest.dir/conftest.two
  2718. then
  2719. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  2720. break 3
  2721. fi
  2722. fi
  2723. fi
  2724. done
  2725. done
  2726. ;;
  2727. esac
  2728. done
  2729. IFS=$as_save_IFS
  2730. rm -rf conftest.one conftest.two conftest.dir
  2731. ;;
  2732. esac
  2733. fi
  2734. if test ${ac_cv_path_install+y}; then
  2735. INSTALL=$ac_cv_path_install
  2736. else
  2737. # As a last resort, use the slow shell script. Don't cache a
  2738. # value for INSTALL within a source directory, because that will
  2739. # break other packages using the cache if that directory is
  2740. # removed, or if the value is a relative name.
  2741. INSTALL=$ac_install_sh
  2742. fi
  2743. fi
  2744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2745. printf "%s\n" "$INSTALL" >&6; }
  2746. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2747. # It thinks the first close brace ends the variable substitution.
  2748. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2749. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2750. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2752. printf %s "checking whether build environment is sane... " >&6; }
  2753. # Reject unsafe characters in $srcdir or the absolute working directory
  2754. # name. Accept space and tab only in the latter.
  2755. am_lf='
  2756. '
  2757. case `pwd` in
  2758. *[\\\"\#\$\&\'\`$am_lf]*)
  2759. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2760. esac
  2761. case $srcdir in
  2762. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2763. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2764. esac
  2765. # Do 'set' in a subshell so we don't clobber the current shell's
  2766. # arguments. Must try -L first in case configure is actually a
  2767. # symlink; some systems play weird games with the mod time of symlinks
  2768. # (eg FreeBSD returns the mod time of the symlink's containing
  2769. # directory).
  2770. if (
  2771. am_has_slept=no
  2772. for am_try in 1 2; do
  2773. echo "timestamp, slept: $am_has_slept" > conftest.file
  2774. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2775. if test "$*" = "X"; then
  2776. # -L didn't work.
  2777. set X `ls -t "$srcdir/configure" conftest.file`
  2778. fi
  2779. if test "$*" != "X $srcdir/configure conftest.file" \
  2780. && test "$*" != "X conftest.file $srcdir/configure"; then
  2781. # If neither matched, then we have a broken ls. This can happen
  2782. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2783. # broken ls alias from the environment. This has actually
  2784. # happened. Such a system could not be considered "sane".
  2785. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2786. alias in your environment" "$LINENO" 5
  2787. fi
  2788. if test "$2" = conftest.file || test $am_try -eq 2; then
  2789. break
  2790. fi
  2791. # Just in case.
  2792. sleep 1
  2793. am_has_slept=yes
  2794. done
  2795. test "$2" = conftest.file
  2796. )
  2797. then
  2798. # Ok.
  2799. :
  2800. else
  2801. as_fn_error $? "newly created file is older than distributed files!
  2802. Check your system clock" "$LINENO" 5
  2803. fi
  2804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2805. printf "%s\n" "yes" >&6; }
  2806. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2807. # generated files are strictly newer.
  2808. am_sleep_pid=
  2809. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2810. ( sleep 1 ) &
  2811. am_sleep_pid=$!
  2812. fi
  2813. rm -f conftest.file
  2814. test "$program_prefix" != NONE &&
  2815. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2816. # Use a double $ so make ignores it.
  2817. test "$program_suffix" != NONE &&
  2818. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2819. # Double any \ or $.
  2820. # By default was 's,x,x', remove it if useless.
  2821. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2822. program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
  2823. # Expand $ac_aux_dir to an absolute path.
  2824. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2825. if test x"${MISSING+set}" != xset; then
  2826. MISSING="\${SHELL} '$am_aux_dir/missing'"
  2827. fi
  2828. # Use eval to expand $SHELL
  2829. if eval "$MISSING --is-lightweight"; then
  2830. am_missing_run="$MISSING "
  2831. else
  2832. am_missing_run=
  2833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2834. printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2835. fi
  2836. if test x"${install_sh+set}" != xset; then
  2837. case $am_aux_dir in
  2838. *\ * | *\ *)
  2839. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2840. *)
  2841. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2842. esac
  2843. fi
  2844. # Installed binaries are usually stripped using 'strip' when the user
  2845. # run "make install-strip". However 'strip' might not be the right
  2846. # tool to use in cross-compilation environments, therefore Automake
  2847. # will honor the 'STRIP' environment variable to overrule this program.
  2848. if test "$cross_compiling" != no; then
  2849. if test -n "$ac_tool_prefix"; then
  2850. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2851. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2853. printf %s "checking for $ac_word... " >&6; }
  2854. if test ${ac_cv_prog_STRIP+y}
  2855. then :
  2856. printf %s "(cached) " >&6
  2857. else case e in #(
  2858. e) if test -n "$STRIP"; then
  2859. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2860. else
  2861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2862. for as_dir in $PATH
  2863. do
  2864. IFS=$as_save_IFS
  2865. case $as_dir in #(((
  2866. '') as_dir=./ ;;
  2867. */) ;;
  2868. *) as_dir=$as_dir/ ;;
  2869. esac
  2870. for ac_exec_ext in '' $ac_executable_extensions; do
  2871. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2872. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2873. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2874. break 2
  2875. fi
  2876. done
  2877. done
  2878. IFS=$as_save_IFS
  2879. fi ;;
  2880. esac
  2881. fi
  2882. STRIP=$ac_cv_prog_STRIP
  2883. if test -n "$STRIP"; then
  2884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2885. printf "%s\n" "$STRIP" >&6; }
  2886. else
  2887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2888. printf "%s\n" "no" >&6; }
  2889. fi
  2890. fi
  2891. if test -z "$ac_cv_prog_STRIP"; then
  2892. ac_ct_STRIP=$STRIP
  2893. # Extract the first word of "strip", so it can be a program name with args.
  2894. set dummy strip; ac_word=$2
  2895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2896. printf %s "checking for $ac_word... " >&6; }
  2897. if test ${ac_cv_prog_ac_ct_STRIP+y}
  2898. then :
  2899. printf %s "(cached) " >&6
  2900. else case e in #(
  2901. e) if test -n "$ac_ct_STRIP"; then
  2902. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2903. else
  2904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2905. for as_dir in $PATH
  2906. do
  2907. IFS=$as_save_IFS
  2908. case $as_dir in #(((
  2909. '') as_dir=./ ;;
  2910. */) ;;
  2911. *) as_dir=$as_dir/ ;;
  2912. esac
  2913. for ac_exec_ext in '' $ac_executable_extensions; do
  2914. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2915. ac_cv_prog_ac_ct_STRIP="strip"
  2916. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2917. break 2
  2918. fi
  2919. done
  2920. done
  2921. IFS=$as_save_IFS
  2922. fi ;;
  2923. esac
  2924. fi
  2925. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2926. if test -n "$ac_ct_STRIP"; then
  2927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2928. printf "%s\n" "$ac_ct_STRIP" >&6; }
  2929. else
  2930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2931. printf "%s\n" "no" >&6; }
  2932. fi
  2933. if test "x$ac_ct_STRIP" = x; then
  2934. STRIP=":"
  2935. else
  2936. case $cross_compiling:$ac_tool_warned in
  2937. yes:)
  2938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2939. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2940. ac_tool_warned=yes ;;
  2941. esac
  2942. STRIP=$ac_ct_STRIP
  2943. fi
  2944. else
  2945. STRIP="$ac_cv_prog_STRIP"
  2946. fi
  2947. fi
  2948. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
  2950. printf %s "checking for a race-free mkdir -p... " >&6; }
  2951. if test -z "$MKDIR_P"; then
  2952. if test ${ac_cv_path_mkdir+y}
  2953. then :
  2954. printf %s "(cached) " >&6
  2955. else case e in #(
  2956. e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2957. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2958. do
  2959. IFS=$as_save_IFS
  2960. case $as_dir in #(((
  2961. '') as_dir=./ ;;
  2962. */) ;;
  2963. *) as_dir=$as_dir/ ;;
  2964. esac
  2965. for ac_prog in mkdir gmkdir; do
  2966. for ac_exec_ext in '' $ac_executable_extensions; do
  2967. as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
  2968. case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2969. 'mkdir ('*'coreutils) '* | \
  2970. *'BusyBox '* | \
  2971. 'mkdir (fileutils) '4.1*)
  2972. ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
  2973. break 3;;
  2974. esac
  2975. done
  2976. done
  2977. done
  2978. IFS=$as_save_IFS
  2979. ;;
  2980. esac
  2981. fi
  2982. test -d ./--version && rmdir ./--version
  2983. if test ${ac_cv_path_mkdir+y}; then
  2984. MKDIR_P="$ac_cv_path_mkdir -p"
  2985. else
  2986. # As a last resort, use plain mkdir -p,
  2987. # in the hope it doesn't have the bugs of ancient mkdir.
  2988. MKDIR_P='mkdir -p'
  2989. fi
  2990. fi
  2991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2992. printf "%s\n" "$MKDIR_P" >&6; }
  2993. for ac_prog in gawk mawk nawk awk
  2994. do
  2995. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2996. set dummy $ac_prog; ac_word=$2
  2997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2998. printf %s "checking for $ac_word... " >&6; }
  2999. if test ${ac_cv_prog_AWK+y}
  3000. then :
  3001. printf %s "(cached) " >&6
  3002. else case e in #(
  3003. e) if test -n "$AWK"; then
  3004. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3005. else
  3006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3007. for as_dir in $PATH
  3008. do
  3009. IFS=$as_save_IFS
  3010. case $as_dir in #(((
  3011. '') as_dir=./ ;;
  3012. */) ;;
  3013. *) as_dir=$as_dir/ ;;
  3014. esac
  3015. for ac_exec_ext in '' $ac_executable_extensions; do
  3016. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3017. ac_cv_prog_AWK="$ac_prog"
  3018. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3019. break 2
  3020. fi
  3021. done
  3022. done
  3023. IFS=$as_save_IFS
  3024. fi ;;
  3025. esac
  3026. fi
  3027. AWK=$ac_cv_prog_AWK
  3028. if test -n "$AWK"; then
  3029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3030. printf "%s\n" "$AWK" >&6; }
  3031. else
  3032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3033. printf "%s\n" "no" >&6; }
  3034. fi
  3035. test -n "$AWK" && break
  3036. done
  3037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3038. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3039. set x ${MAKE-make}
  3040. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3041. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  3042. then :
  3043. printf %s "(cached) " >&6
  3044. else case e in #(
  3045. e) cat >conftest.make <<\_ACEOF
  3046. SHELL = /bin/sh
  3047. all:
  3048. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3049. _ACEOF
  3050. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3051. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3052. *@@@%%%=?*=@@@%%%*)
  3053. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3054. *)
  3055. eval ac_cv_prog_make_${ac_make}_set=no;;
  3056. esac
  3057. rm -f conftest.make ;;
  3058. esac
  3059. fi
  3060. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3062. printf "%s\n" "yes" >&6; }
  3063. SET_MAKE=
  3064. else
  3065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3066. printf "%s\n" "no" >&6; }
  3067. SET_MAKE="MAKE=${MAKE-make}"
  3068. fi
  3069. rm -rf .tst 2>/dev/null
  3070. mkdir .tst 2>/dev/null
  3071. if test -d .tst; then
  3072. am__leading_dot=.
  3073. else
  3074. am__leading_dot=_
  3075. fi
  3076. rmdir .tst 2>/dev/null
  3077. # Check whether --enable-silent-rules was given.
  3078. if test ${enable_silent_rules+y}
  3079. then :
  3080. enableval=$enable_silent_rules;
  3081. fi
  3082. case $enable_silent_rules in # (((
  3083. yes) AM_DEFAULT_VERBOSITY=0;;
  3084. no) AM_DEFAULT_VERBOSITY=1;;
  3085. *) AM_DEFAULT_VERBOSITY=1;;
  3086. esac
  3087. am_make=${MAKE-make}
  3088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3089. printf %s "checking whether $am_make supports nested variables... " >&6; }
  3090. if test ${am_cv_make_support_nested_variables+y}
  3091. then :
  3092. printf %s "(cached) " >&6
  3093. else case e in #(
  3094. e) if printf "%s\n" 'TRUE=$(BAR$(V))
  3095. BAR0=false
  3096. BAR1=true
  3097. V=1
  3098. am__doit:
  3099. @$(TRUE)
  3100. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3101. am_cv_make_support_nested_variables=yes
  3102. else
  3103. am_cv_make_support_nested_variables=no
  3104. fi ;;
  3105. esac
  3106. fi
  3107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3108. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  3109. if test $am_cv_make_support_nested_variables = yes; then
  3110. AM_V='$(V)'
  3111. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3112. else
  3113. AM_V=$AM_DEFAULT_VERBOSITY
  3114. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3115. fi
  3116. AM_BACKSLASH='\'
  3117. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3118. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3119. # is not polluted with repeated "-I."
  3120. am__isrc=' -I$(srcdir)'
  3121. # test to see if srcdir already configured
  3122. if test -f $srcdir/config.status; then
  3123. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3124. fi
  3125. fi
  3126. # test whether we have cygpath
  3127. if test -z "$CYGPATH_W"; then
  3128. if (cygpath --version) >/dev/null 2>/dev/null; then
  3129. CYGPATH_W='cygpath -w'
  3130. else
  3131. CYGPATH_W=echo
  3132. fi
  3133. fi
  3134. # Define the identity of the package.
  3135. PACKAGE='file'
  3136. VERSION='5.46'
  3137. printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
  3138. printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
  3139. # Some tools Automake needs.
  3140. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3141. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3142. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3143. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3144. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3145. # For better backward compatibility. To be removed once Automake 1.9.x
  3146. # dies out for good. For more background, see:
  3147. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3148. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3149. mkdir_p='$(MKDIR_P)'
  3150. # We need awk for the "check" target (and possibly the TAP driver). The
  3151. # system "awk" is bad on some platforms.
  3152. # Always define AMTAR for backward compatibility. Yes, it's still used
  3153. # in the wild :-( We should find a proper way to deprecate it ...
  3154. AMTAR='$${TAR-tar}'
  3155. # We'll loop over all known methods to create a tar archive until one works.
  3156. _am_tools='gnutar pax cpio none'
  3157. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3158. # Variables for tags utilities; see am/tags.am
  3159. if test -z "$CTAGS"; then
  3160. CTAGS=ctags
  3161. fi
  3162. if test -z "$ETAGS"; then
  3163. ETAGS=etags
  3164. fi
  3165. if test -z "$CSCOPE"; then
  3166. CSCOPE=cscope
  3167. fi
  3168. # POSIX will say in a future version that running "rm -f" with no argument
  3169. # is OK; and we want to be able to make that assumption in our Makefile
  3170. # recipes. So use an aggressive probe to check that the usage we want is
  3171. # actually supported "in the wild" to an acceptable degree.
  3172. # See automake bug#10828.
  3173. # To make any issue more visible, cause the running configure to be aborted
  3174. # by default if the 'rm' program in use doesn't match our expectations; the
  3175. # user can still override this though.
  3176. if rm -f && rm -fr && rm -rf; then : OK; else
  3177. cat >&2 <<'END'
  3178. Oops!
  3179. Your 'rm' program seems unable to run without file operands specified
  3180. on the command line, even when the '-f' option is present. This is contrary
  3181. to the behaviour of most rm programs out there, and not conforming with
  3182. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3183. Please tell bug-automake@gnu.org about your system, including the value
  3184. of your $PATH and any error possibly output before this message. This
  3185. can help us improve future automake versions.
  3186. END
  3187. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3188. echo 'Configuration will proceed anyway, since you have set the' >&2
  3189. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3190. echo >&2
  3191. else
  3192. cat >&2 <<'END'
  3193. Aborting the configuration process, to ensure you take notice of the issue.
  3194. You can download and install GNU coreutils to get an 'rm' implementation
  3195. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  3196. If you want to complete the configuration process using your problematic
  3197. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3198. to "yes", and re-run configure.
  3199. END
  3200. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3201. fi
  3202. fi
  3203. # Check whether --enable-silent-rules was given.
  3204. if test ${enable_silent_rules+y}
  3205. then :
  3206. enableval=$enable_silent_rules;
  3207. fi
  3208. case $enable_silent_rules in # (((
  3209. yes) AM_DEFAULT_VERBOSITY=0;;
  3210. no) AM_DEFAULT_VERBOSITY=1;;
  3211. *) AM_DEFAULT_VERBOSITY=0;;
  3212. esac
  3213. am_make=${MAKE-make}
  3214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3215. printf %s "checking whether $am_make supports nested variables... " >&6; }
  3216. if test ${am_cv_make_support_nested_variables+y}
  3217. then :
  3218. printf %s "(cached) " >&6
  3219. else case e in #(
  3220. e) if printf "%s\n" 'TRUE=$(BAR$(V))
  3221. BAR0=false
  3222. BAR1=true
  3223. V=1
  3224. am__doit:
  3225. @$(TRUE)
  3226. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3227. am_cv_make_support_nested_variables=yes
  3228. else
  3229. am_cv_make_support_nested_variables=no
  3230. fi ;;
  3231. esac
  3232. fi
  3233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3234. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  3235. if test $am_cv_make_support_nested_variables = yes; then
  3236. AM_V='$(V)'
  3237. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3238. else
  3239. AM_V=$AM_DEFAULT_VERBOSITY
  3240. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3241. fi
  3242. AM_BACKSLASH='\'
  3243. ac_config_headers="$ac_config_headers config.h"
  3244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
  3245. printf %s "checking for builtin ELF support... " >&6; }
  3246. # Check whether --enable-elf was given.
  3247. if test ${enable_elf+y}
  3248. then :
  3249. enableval=$enable_elf; if test "${enableval}" = yes; then
  3250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3251. printf "%s\n" "yes" >&6; }
  3252. printf "%s\n" "#define BUILTIN_ELF 1" >>confdefs.h
  3253. else
  3254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3255. printf "%s\n" "no" >&6; }
  3256. fi
  3257. else case e in #(
  3258. e)
  3259. # enable by default
  3260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3261. printf "%s\n" "yes" >&6; }
  3262. printf "%s\n" "#define BUILTIN_ELF 1" >>confdefs.h
  3263. ;;
  3264. esac
  3265. fi
  3266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
  3267. printf %s "checking for ELF core file support... " >&6; }
  3268. # Check whether --enable-elf-core was given.
  3269. if test ${enable_elf_core+y}
  3270. then :
  3271. enableval=$enable_elf_core; if test "${enableval}" = yes; then
  3272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3273. printf "%s\n" "yes" >&6; }
  3274. printf "%s\n" "#define ELFCORE 1" >>confdefs.h
  3275. else
  3276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3277. printf "%s\n" "no" >&6; }
  3278. fi
  3279. else case e in #(
  3280. e)
  3281. # enable by default
  3282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3283. printf "%s\n" "yes" >&6; }
  3284. printf "%s\n" "#define ELFCORE 1" >>confdefs.h
  3285. ;;
  3286. esac
  3287. fi
  3288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
  3289. printf %s "checking for zlib support... " >&6; }
  3290. # Check whether --enable-zlib was given.
  3291. if test ${enable_zlib+y}
  3292. then :
  3293. enableval=$enable_zlib;
  3294. fi
  3295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5
  3296. printf "%s\n" "$enable_zlib" >&6; }
  3297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bzlib support" >&5
  3298. printf %s "checking for bzlib support... " >&6; }
  3299. # Check whether --enable-bzlib was given.
  3300. if test ${enable_bzlib+y}
  3301. then :
  3302. enableval=$enable_bzlib;
  3303. fi
  3304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_bzlib" >&5
  3305. printf "%s\n" "$enable_bzlib" >&6; }
  3306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xzlib support" >&5
  3307. printf %s "checking for xzlib support... " >&6; }
  3308. # Check whether --enable-xzlib was given.
  3309. if test ${enable_xzlib+y}
  3310. then :
  3311. enableval=$enable_xzlib;
  3312. fi
  3313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_xzlib" >&5
  3314. printf "%s\n" "$enable_xzlib" >&6; }
  3315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zstdlib support" >&5
  3316. printf %s "checking for zstdlib support... " >&6; }
  3317. # Check whether --enable-zstdlib was given.
  3318. if test ${enable_zstdlib+y}
  3319. then :
  3320. enableval=$enable_zstdlib;
  3321. fi
  3322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_zstdlib" >&5
  3323. printf "%s\n" "$enable_zstdlib" >&6; }
  3324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzlib support" >&5
  3325. printf %s "checking for lzlib support... " >&6; }
  3326. # Check whether --enable-lzlib was given.
  3327. if test ${enable_lzlib+y}
  3328. then :
  3329. enableval=$enable_lzlib;
  3330. fi
  3331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_lzlib" >&5
  3332. printf "%s\n" "$enable_lzlib" >&6; }
  3333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lrziplib support" >&5
  3334. printf %s "checking for lrziplib support... " >&6; }
  3335. # Check whether --enable-lrziplib was given.
  3336. if test ${enable_lrziplib+y}
  3337. then :
  3338. enableval=$enable_lrziplib;
  3339. fi
  3340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_lrziplib" >&5
  3341. printf "%s\n" "$enable_lrziplib" >&6; }
  3342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libseccomp support" >&5
  3343. printf %s "checking for libseccomp support... " >&6; }
  3344. # Check whether --enable-libseccomp was given.
  3345. if test ${enable_libseccomp+y}
  3346. then :
  3347. enableval=$enable_libseccomp;
  3348. fi
  3349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_libseccomp" >&5
  3350. printf "%s\n" "$enable_libseccomp" >&6; }
  3351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
  3352. printf %s "checking for file formats in man section 5... " >&6; }
  3353. # Check whether --enable-fsect-man5 was given.
  3354. if test ${enable_fsect_man5+y}
  3355. then :
  3356. enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
  3357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3358. printf "%s\n" "yes" >&6; }
  3359. fsect=5
  3360. else
  3361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3362. printf "%s\n" "no" >&6; }
  3363. fsect=4
  3364. fi
  3365. else case e in #(
  3366. e)
  3367. # disable by default
  3368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3369. printf "%s\n" "no" >&6; }
  3370. fsect=4
  3371. ;;
  3372. esac
  3373. fi
  3374. # Make sure we can run config.sub.
  3375. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3376. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3378. printf %s "checking build system type... " >&6; }
  3379. if test ${ac_cv_build+y}
  3380. then :
  3381. printf %s "(cached) " >&6
  3382. else case e in #(
  3383. e) ac_build_alias=$build_alias
  3384. test "x$ac_build_alias" = x &&
  3385. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3386. test "x$ac_build_alias" = x &&
  3387. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3388. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3389. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3390. ;;
  3391. esac
  3392. fi
  3393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3394. printf "%s\n" "$ac_cv_build" >&6; }
  3395. case $ac_cv_build in
  3396. *-*-*) ;;
  3397. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3398. esac
  3399. build=$ac_cv_build
  3400. ac_save_IFS=$IFS; IFS='-'
  3401. set x $ac_cv_build
  3402. shift
  3403. build_cpu=$1
  3404. build_vendor=$2
  3405. shift; shift
  3406. # Remember, the first character of IFS is used to create $*,
  3407. # except with old shells:
  3408. build_os=$*
  3409. IFS=$ac_save_IFS
  3410. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3412. printf %s "checking host system type... " >&6; }
  3413. if test ${ac_cv_host+y}
  3414. then :
  3415. printf %s "(cached) " >&6
  3416. else case e in #(
  3417. e) if test "x$host_alias" = x; then
  3418. ac_cv_host=$ac_cv_build
  3419. else
  3420. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3421. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3422. fi
  3423. ;;
  3424. esac
  3425. fi
  3426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3427. printf "%s\n" "$ac_cv_host" >&6; }
  3428. case $ac_cv_host in
  3429. *-*-*) ;;
  3430. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3431. esac
  3432. host=$ac_cv_host
  3433. ac_save_IFS=$IFS; IFS='-'
  3434. set x $ac_cv_host
  3435. shift
  3436. host_cpu=$1
  3437. host_vendor=$2
  3438. shift; shift
  3439. # Remember, the first character of IFS is used to create $*,
  3440. # except with old shells:
  3441. host_os=$*
  3442. IFS=$ac_save_IFS
  3443. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3444. case "$host_os" in
  3445. mingw32*)
  3446. MINGW=1
  3447. ;;
  3448. *)
  3449. MINGW=0
  3450. ;;
  3451. esac
  3452. if test "$MINGW" = 1; then
  3453. MINGW_TRUE=
  3454. MINGW_FALSE='#'
  3455. else
  3456. MINGW_TRUE='#'
  3457. MINGW_FALSE=
  3458. fi
  3459. pkgdatadir='$(datadir)/misc'
  3460. if test x$fsect = x5; then
  3461. FSECT5_TRUE=
  3462. FSECT5_FALSE='#'
  3463. else
  3464. FSECT5_TRUE='#'
  3465. FSECT5_FALSE=
  3466. fi
  3467. ac_ext=c
  3468. ac_cpp='$CPP $CPPFLAGS'
  3469. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3470. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3471. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3472. if test -n "$ac_tool_prefix"; then
  3473. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3474. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3476. printf %s "checking for $ac_word... " >&6; }
  3477. if test ${ac_cv_prog_CC+y}
  3478. then :
  3479. printf %s "(cached) " >&6
  3480. else case e in #(
  3481. e) if test -n "$CC"; then
  3482. ac_cv_prog_CC="$CC" # Let the user override the test.
  3483. else
  3484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3485. for as_dir in $PATH
  3486. do
  3487. IFS=$as_save_IFS
  3488. case $as_dir in #(((
  3489. '') as_dir=./ ;;
  3490. */) ;;
  3491. *) as_dir=$as_dir/ ;;
  3492. esac
  3493. for ac_exec_ext in '' $ac_executable_extensions; do
  3494. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3495. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3496. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3497. break 2
  3498. fi
  3499. done
  3500. done
  3501. IFS=$as_save_IFS
  3502. fi ;;
  3503. esac
  3504. fi
  3505. CC=$ac_cv_prog_CC
  3506. if test -n "$CC"; then
  3507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3508. printf "%s\n" "$CC" >&6; }
  3509. else
  3510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3511. printf "%s\n" "no" >&6; }
  3512. fi
  3513. fi
  3514. if test -z "$ac_cv_prog_CC"; then
  3515. ac_ct_CC=$CC
  3516. # Extract the first word of "gcc", so it can be a program name with args.
  3517. set dummy gcc; ac_word=$2
  3518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3519. printf %s "checking for $ac_word... " >&6; }
  3520. if test ${ac_cv_prog_ac_ct_CC+y}
  3521. then :
  3522. printf %s "(cached) " >&6
  3523. else case e in #(
  3524. e) if test -n "$ac_ct_CC"; then
  3525. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3526. else
  3527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3528. for as_dir in $PATH
  3529. do
  3530. IFS=$as_save_IFS
  3531. case $as_dir in #(((
  3532. '') as_dir=./ ;;
  3533. */) ;;
  3534. *) as_dir=$as_dir/ ;;
  3535. esac
  3536. for ac_exec_ext in '' $ac_executable_extensions; do
  3537. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3538. ac_cv_prog_ac_ct_CC="gcc"
  3539. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3540. break 2
  3541. fi
  3542. done
  3543. done
  3544. IFS=$as_save_IFS
  3545. fi ;;
  3546. esac
  3547. fi
  3548. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3549. if test -n "$ac_ct_CC"; then
  3550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3551. printf "%s\n" "$ac_ct_CC" >&6; }
  3552. else
  3553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3554. printf "%s\n" "no" >&6; }
  3555. fi
  3556. if test "x$ac_ct_CC" = x; then
  3557. CC=""
  3558. else
  3559. case $cross_compiling:$ac_tool_warned in
  3560. yes:)
  3561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3562. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3563. ac_tool_warned=yes ;;
  3564. esac
  3565. CC=$ac_ct_CC
  3566. fi
  3567. else
  3568. CC="$ac_cv_prog_CC"
  3569. fi
  3570. if test -z "$CC"; then
  3571. if test -n "$ac_tool_prefix"; then
  3572. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3573. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3575. printf %s "checking for $ac_word... " >&6; }
  3576. if test ${ac_cv_prog_CC+y}
  3577. then :
  3578. printf %s "(cached) " >&6
  3579. else case e in #(
  3580. e) if test -n "$CC"; then
  3581. ac_cv_prog_CC="$CC" # Let the user override the test.
  3582. else
  3583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3584. for as_dir in $PATH
  3585. do
  3586. IFS=$as_save_IFS
  3587. case $as_dir in #(((
  3588. '') as_dir=./ ;;
  3589. */) ;;
  3590. *) as_dir=$as_dir/ ;;
  3591. esac
  3592. for ac_exec_ext in '' $ac_executable_extensions; do
  3593. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3594. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3595. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3596. break 2
  3597. fi
  3598. done
  3599. done
  3600. IFS=$as_save_IFS
  3601. fi ;;
  3602. esac
  3603. fi
  3604. CC=$ac_cv_prog_CC
  3605. if test -n "$CC"; then
  3606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3607. printf "%s\n" "$CC" >&6; }
  3608. else
  3609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3610. printf "%s\n" "no" >&6; }
  3611. fi
  3612. fi
  3613. fi
  3614. if test -z "$CC"; then
  3615. # Extract the first word of "cc", so it can be a program name with args.
  3616. set dummy cc; ac_word=$2
  3617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3618. printf %s "checking for $ac_word... " >&6; }
  3619. if test ${ac_cv_prog_CC+y}
  3620. then :
  3621. printf %s "(cached) " >&6
  3622. else case e in #(
  3623. e) if test -n "$CC"; then
  3624. ac_cv_prog_CC="$CC" # Let the user override the test.
  3625. else
  3626. ac_prog_rejected=no
  3627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3628. for as_dir in $PATH
  3629. do
  3630. IFS=$as_save_IFS
  3631. case $as_dir in #(((
  3632. '') as_dir=./ ;;
  3633. */) ;;
  3634. *) as_dir=$as_dir/ ;;
  3635. esac
  3636. for ac_exec_ext in '' $ac_executable_extensions; do
  3637. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3638. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3639. ac_prog_rejected=yes
  3640. continue
  3641. fi
  3642. ac_cv_prog_CC="cc"
  3643. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3644. break 2
  3645. fi
  3646. done
  3647. done
  3648. IFS=$as_save_IFS
  3649. if test $ac_prog_rejected = yes; then
  3650. # We found a bogon in the path, so make sure we never use it.
  3651. set dummy $ac_cv_prog_CC
  3652. shift
  3653. if test $# != 0; then
  3654. # We chose a different compiler from the bogus one.
  3655. # However, it has the same basename, so the bogon will be chosen
  3656. # first if we set CC to just the basename; use the full file name.
  3657. shift
  3658. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3659. fi
  3660. fi
  3661. fi ;;
  3662. esac
  3663. fi
  3664. CC=$ac_cv_prog_CC
  3665. if test -n "$CC"; then
  3666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3667. printf "%s\n" "$CC" >&6; }
  3668. else
  3669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3670. printf "%s\n" "no" >&6; }
  3671. fi
  3672. fi
  3673. if test -z "$CC"; then
  3674. if test -n "$ac_tool_prefix"; then
  3675. for ac_prog in cl.exe
  3676. do
  3677. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3678. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3680. printf %s "checking for $ac_word... " >&6; }
  3681. if test ${ac_cv_prog_CC+y}
  3682. then :
  3683. printf %s "(cached) " >&6
  3684. else case e in #(
  3685. e) if test -n "$CC"; then
  3686. ac_cv_prog_CC="$CC" # Let the user override the test.
  3687. else
  3688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3689. for as_dir in $PATH
  3690. do
  3691. IFS=$as_save_IFS
  3692. case $as_dir in #(((
  3693. '') as_dir=./ ;;
  3694. */) ;;
  3695. *) as_dir=$as_dir/ ;;
  3696. esac
  3697. for ac_exec_ext in '' $ac_executable_extensions; do
  3698. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3699. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3700. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3701. break 2
  3702. fi
  3703. done
  3704. done
  3705. IFS=$as_save_IFS
  3706. fi ;;
  3707. esac
  3708. fi
  3709. CC=$ac_cv_prog_CC
  3710. if test -n "$CC"; then
  3711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3712. printf "%s\n" "$CC" >&6; }
  3713. else
  3714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3715. printf "%s\n" "no" >&6; }
  3716. fi
  3717. test -n "$CC" && break
  3718. done
  3719. fi
  3720. if test -z "$CC"; then
  3721. ac_ct_CC=$CC
  3722. for ac_prog in cl.exe
  3723. do
  3724. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3725. set dummy $ac_prog; ac_word=$2
  3726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3727. printf %s "checking for $ac_word... " >&6; }
  3728. if test ${ac_cv_prog_ac_ct_CC+y}
  3729. then :
  3730. printf %s "(cached) " >&6
  3731. else case e in #(
  3732. e) if test -n "$ac_ct_CC"; then
  3733. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3734. else
  3735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3736. for as_dir in $PATH
  3737. do
  3738. IFS=$as_save_IFS
  3739. case $as_dir in #(((
  3740. '') as_dir=./ ;;
  3741. */) ;;
  3742. *) as_dir=$as_dir/ ;;
  3743. esac
  3744. for ac_exec_ext in '' $ac_executable_extensions; do
  3745. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3746. ac_cv_prog_ac_ct_CC="$ac_prog"
  3747. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3748. break 2
  3749. fi
  3750. done
  3751. done
  3752. IFS=$as_save_IFS
  3753. fi ;;
  3754. esac
  3755. fi
  3756. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3757. if test -n "$ac_ct_CC"; then
  3758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3759. printf "%s\n" "$ac_ct_CC" >&6; }
  3760. else
  3761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3762. printf "%s\n" "no" >&6; }
  3763. fi
  3764. test -n "$ac_ct_CC" && break
  3765. done
  3766. if test "x$ac_ct_CC" = x; then
  3767. CC=""
  3768. else
  3769. case $cross_compiling:$ac_tool_warned in
  3770. yes:)
  3771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3772. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3773. ac_tool_warned=yes ;;
  3774. esac
  3775. CC=$ac_ct_CC
  3776. fi
  3777. fi
  3778. fi
  3779. if test -z "$CC"; then
  3780. if test -n "$ac_tool_prefix"; then
  3781. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3782. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3784. printf %s "checking for $ac_word... " >&6; }
  3785. if test ${ac_cv_prog_CC+y}
  3786. then :
  3787. printf %s "(cached) " >&6
  3788. else case e in #(
  3789. e) if test -n "$CC"; then
  3790. ac_cv_prog_CC="$CC" # Let the user override the test.
  3791. else
  3792. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3793. for as_dir in $PATH
  3794. do
  3795. IFS=$as_save_IFS
  3796. case $as_dir in #(((
  3797. '') as_dir=./ ;;
  3798. */) ;;
  3799. *) as_dir=$as_dir/ ;;
  3800. esac
  3801. for ac_exec_ext in '' $ac_executable_extensions; do
  3802. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3803. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3804. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3805. break 2
  3806. fi
  3807. done
  3808. done
  3809. IFS=$as_save_IFS
  3810. fi ;;
  3811. esac
  3812. fi
  3813. CC=$ac_cv_prog_CC
  3814. if test -n "$CC"; then
  3815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3816. printf "%s\n" "$CC" >&6; }
  3817. else
  3818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3819. printf "%s\n" "no" >&6; }
  3820. fi
  3821. fi
  3822. if test -z "$ac_cv_prog_CC"; then
  3823. ac_ct_CC=$CC
  3824. # Extract the first word of "clang", so it can be a program name with args.
  3825. set dummy clang; ac_word=$2
  3826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3827. printf %s "checking for $ac_word... " >&6; }
  3828. if test ${ac_cv_prog_ac_ct_CC+y}
  3829. then :
  3830. printf %s "(cached) " >&6
  3831. else case e in #(
  3832. e) if test -n "$ac_ct_CC"; then
  3833. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3834. else
  3835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3836. for as_dir in $PATH
  3837. do
  3838. IFS=$as_save_IFS
  3839. case $as_dir in #(((
  3840. '') as_dir=./ ;;
  3841. */) ;;
  3842. *) as_dir=$as_dir/ ;;
  3843. esac
  3844. for ac_exec_ext in '' $ac_executable_extensions; do
  3845. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3846. ac_cv_prog_ac_ct_CC="clang"
  3847. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3848. break 2
  3849. fi
  3850. done
  3851. done
  3852. IFS=$as_save_IFS
  3853. fi ;;
  3854. esac
  3855. fi
  3856. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3857. if test -n "$ac_ct_CC"; then
  3858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3859. printf "%s\n" "$ac_ct_CC" >&6; }
  3860. else
  3861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3862. printf "%s\n" "no" >&6; }
  3863. fi
  3864. if test "x$ac_ct_CC" = x; then
  3865. CC=""
  3866. else
  3867. case $cross_compiling:$ac_tool_warned in
  3868. yes:)
  3869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3870. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3871. ac_tool_warned=yes ;;
  3872. esac
  3873. CC=$ac_ct_CC
  3874. fi
  3875. else
  3876. CC="$ac_cv_prog_CC"
  3877. fi
  3878. fi
  3879. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3880. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3881. as_fn_error $? "no acceptable C compiler found in \$PATH
  3882. See 'config.log' for more details" "$LINENO" 5; }
  3883. # Provide some information about the compiler.
  3884. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3885. set X $ac_compile
  3886. ac_compiler=$2
  3887. for ac_option in --version -v -V -qversion -version; do
  3888. { { ac_try="$ac_compiler $ac_option >&5"
  3889. case "(($ac_try" in
  3890. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3891. *) ac_try_echo=$ac_try;;
  3892. esac
  3893. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3894. printf "%s\n" "$ac_try_echo"; } >&5
  3895. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3896. ac_status=$?
  3897. if test -s conftest.err; then
  3898. sed '10a\
  3899. ... rest of stderr output deleted ...
  3900. 10q' conftest.err >conftest.er1
  3901. cat conftest.er1 >&5
  3902. fi
  3903. rm -f conftest.er1 conftest.err
  3904. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3905. test $ac_status = 0; }
  3906. done
  3907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3908. /* end confdefs.h. */
  3909. int
  3910. main (void)
  3911. {
  3912. ;
  3913. return 0;
  3914. }
  3915. _ACEOF
  3916. ac_clean_files_save=$ac_clean_files
  3917. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3918. # Try to create an executable without -o first, disregard a.out.
  3919. # It will help us diagnose broken compilers, and finding out an intuition
  3920. # of exeext.
  3921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3922. printf %s "checking whether the C compiler works... " >&6; }
  3923. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3924. # The possible output files:
  3925. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3926. ac_rmfiles=
  3927. for ac_file in $ac_files
  3928. do
  3929. case $ac_file in
  3930. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3931. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3932. esac
  3933. done
  3934. rm -f $ac_rmfiles
  3935. if { { ac_try="$ac_link_default"
  3936. case "(($ac_try" in
  3937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3938. *) ac_try_echo=$ac_try;;
  3939. esac
  3940. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3941. printf "%s\n" "$ac_try_echo"; } >&5
  3942. (eval "$ac_link_default") 2>&5
  3943. ac_status=$?
  3944. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3945. test $ac_status = 0; }
  3946. then :
  3947. # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
  3948. # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
  3949. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3950. # so that the user can short-circuit this test for compilers unknown to
  3951. # Autoconf.
  3952. for ac_file in $ac_files ''
  3953. do
  3954. test -f "$ac_file" || continue
  3955. case $ac_file in
  3956. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3957. ;;
  3958. [ab].out )
  3959. # We found the default executable, but exeext='' is most
  3960. # certainly right.
  3961. break;;
  3962. *.* )
  3963. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3964. then :; else
  3965. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3966. fi
  3967. # We set ac_cv_exeext here because the later test for it is not
  3968. # safe: cross compilers may not add the suffix if given an '-o'
  3969. # argument, so we may need to know it at that point already.
  3970. # Even if this section looks crufty: it has the advantage of
  3971. # actually working.
  3972. break;;
  3973. * )
  3974. break;;
  3975. esac
  3976. done
  3977. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3978. else case e in #(
  3979. e) ac_file='' ;;
  3980. esac
  3981. fi
  3982. if test -z "$ac_file"
  3983. then :
  3984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3985. printf "%s\n" "no" >&6; }
  3986. printf "%s\n" "$as_me: failed program was:" >&5
  3987. sed 's/^/| /' conftest.$ac_ext >&5
  3988. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3989. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3990. as_fn_error 77 "C compiler cannot create executables
  3991. See 'config.log' for more details" "$LINENO" 5; }
  3992. else case e in #(
  3993. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3994. printf "%s\n" "yes" >&6; } ;;
  3995. esac
  3996. fi
  3997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3998. printf %s "checking for C compiler default output file name... " >&6; }
  3999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4000. printf "%s\n" "$ac_file" >&6; }
  4001. ac_exeext=$ac_cv_exeext
  4002. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4003. ac_clean_files=$ac_clean_files_save
  4004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4005. printf %s "checking for suffix of executables... " >&6; }
  4006. if { { ac_try="$ac_link"
  4007. case "(($ac_try" in
  4008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4009. *) ac_try_echo=$ac_try;;
  4010. esac
  4011. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4012. printf "%s\n" "$ac_try_echo"; } >&5
  4013. (eval "$ac_link") 2>&5
  4014. ac_status=$?
  4015. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4016. test $ac_status = 0; }
  4017. then :
  4018. # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
  4019. # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
  4020. # work properly (i.e., refer to 'conftest.exe'), while it won't with
  4021. # 'rm'.
  4022. for ac_file in conftest.exe conftest conftest.*; do
  4023. test -f "$ac_file" || continue
  4024. case $ac_file in
  4025. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4026. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4027. break;;
  4028. * ) break;;
  4029. esac
  4030. done
  4031. else case e in #(
  4032. e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4033. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4034. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4035. See 'config.log' for more details" "$LINENO" 5; } ;;
  4036. esac
  4037. fi
  4038. rm -f conftest conftest$ac_cv_exeext
  4039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4040. printf "%s\n" "$ac_cv_exeext" >&6; }
  4041. rm -f conftest.$ac_ext
  4042. EXEEXT=$ac_cv_exeext
  4043. ac_exeext=$EXEEXT
  4044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4045. /* end confdefs.h. */
  4046. #include <stdio.h>
  4047. int
  4048. main (void)
  4049. {
  4050. FILE *f = fopen ("conftest.out", "w");
  4051. if (!f)
  4052. return 1;
  4053. return ferror (f) || fclose (f) != 0;
  4054. ;
  4055. return 0;
  4056. }
  4057. _ACEOF
  4058. ac_clean_files="$ac_clean_files conftest.out"
  4059. # Check that the compiler produces executables we can run. If not, either
  4060. # the compiler is broken, or we cross compile.
  4061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4062. printf %s "checking whether we are cross compiling... " >&6; }
  4063. if test "$cross_compiling" != yes; then
  4064. { { ac_try="$ac_link"
  4065. case "(($ac_try" in
  4066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4067. *) ac_try_echo=$ac_try;;
  4068. esac
  4069. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4070. printf "%s\n" "$ac_try_echo"; } >&5
  4071. (eval "$ac_link") 2>&5
  4072. ac_status=$?
  4073. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4074. test $ac_status = 0; }
  4075. if { ac_try='./conftest$ac_cv_exeext'
  4076. { { case "(($ac_try" in
  4077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4078. *) ac_try_echo=$ac_try;;
  4079. esac
  4080. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4081. printf "%s\n" "$ac_try_echo"; } >&5
  4082. (eval "$ac_try") 2>&5
  4083. ac_status=$?
  4084. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4085. test $ac_status = 0; }; }; then
  4086. cross_compiling=no
  4087. else
  4088. if test "$cross_compiling" = maybe; then
  4089. cross_compiling=yes
  4090. else
  4091. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4092. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4093. as_fn_error 77 "cannot run C compiled programs.
  4094. If you meant to cross compile, use '--host'.
  4095. See 'config.log' for more details" "$LINENO" 5; }
  4096. fi
  4097. fi
  4098. fi
  4099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4100. printf "%s\n" "$cross_compiling" >&6; }
  4101. rm -f conftest.$ac_ext conftest$ac_cv_exeext \
  4102. conftest.o conftest.obj conftest.out
  4103. ac_clean_files=$ac_clean_files_save
  4104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4105. printf %s "checking for suffix of object files... " >&6; }
  4106. if test ${ac_cv_objext+y}
  4107. then :
  4108. printf %s "(cached) " >&6
  4109. else case e in #(
  4110. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4111. /* end confdefs.h. */
  4112. int
  4113. main (void)
  4114. {
  4115. ;
  4116. return 0;
  4117. }
  4118. _ACEOF
  4119. rm -f conftest.o conftest.obj
  4120. if { { ac_try="$ac_compile"
  4121. case "(($ac_try" in
  4122. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4123. *) ac_try_echo=$ac_try;;
  4124. esac
  4125. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4126. printf "%s\n" "$ac_try_echo"; } >&5
  4127. (eval "$ac_compile") 2>&5
  4128. ac_status=$?
  4129. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4130. test $ac_status = 0; }
  4131. then :
  4132. for ac_file in conftest.o conftest.obj conftest.*; do
  4133. test -f "$ac_file" || continue;
  4134. case $ac_file in
  4135. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4136. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4137. break;;
  4138. esac
  4139. done
  4140. else case e in #(
  4141. e) printf "%s\n" "$as_me: failed program was:" >&5
  4142. sed 's/^/| /' conftest.$ac_ext >&5
  4143. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4144. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4145. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4146. See 'config.log' for more details" "$LINENO" 5; } ;;
  4147. esac
  4148. fi
  4149. rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
  4150. esac
  4151. fi
  4152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4153. printf "%s\n" "$ac_cv_objext" >&6; }
  4154. OBJEXT=$ac_cv_objext
  4155. ac_objext=$OBJEXT
  4156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4157. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4158. if test ${ac_cv_c_compiler_gnu+y}
  4159. then :
  4160. printf %s "(cached) " >&6
  4161. else case e in #(
  4162. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4163. /* end confdefs.h. */
  4164. int
  4165. main (void)
  4166. {
  4167. #ifndef __GNUC__
  4168. choke me
  4169. #endif
  4170. ;
  4171. return 0;
  4172. }
  4173. _ACEOF
  4174. if ac_fn_c_try_compile "$LINENO"
  4175. then :
  4176. ac_compiler_gnu=yes
  4177. else case e in #(
  4178. e) ac_compiler_gnu=no ;;
  4179. esac
  4180. fi
  4181. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4182. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4183. ;;
  4184. esac
  4185. fi
  4186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4187. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4188. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4189. if test $ac_compiler_gnu = yes; then
  4190. GCC=yes
  4191. else
  4192. GCC=
  4193. fi
  4194. ac_test_CFLAGS=${CFLAGS+y}
  4195. ac_save_CFLAGS=$CFLAGS
  4196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4197. printf %s "checking whether $CC accepts -g... " >&6; }
  4198. if test ${ac_cv_prog_cc_g+y}
  4199. then :
  4200. printf %s "(cached) " >&6
  4201. else case e in #(
  4202. e) ac_save_c_werror_flag=$ac_c_werror_flag
  4203. ac_c_werror_flag=yes
  4204. ac_cv_prog_cc_g=no
  4205. CFLAGS="-g"
  4206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4207. /* end confdefs.h. */
  4208. int
  4209. main (void)
  4210. {
  4211. ;
  4212. return 0;
  4213. }
  4214. _ACEOF
  4215. if ac_fn_c_try_compile "$LINENO"
  4216. then :
  4217. ac_cv_prog_cc_g=yes
  4218. else case e in #(
  4219. e) CFLAGS=""
  4220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4221. /* end confdefs.h. */
  4222. int
  4223. main (void)
  4224. {
  4225. ;
  4226. return 0;
  4227. }
  4228. _ACEOF
  4229. if ac_fn_c_try_compile "$LINENO"
  4230. then :
  4231. else case e in #(
  4232. e) ac_c_werror_flag=$ac_save_c_werror_flag
  4233. CFLAGS="-g"
  4234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4235. /* end confdefs.h. */
  4236. int
  4237. main (void)
  4238. {
  4239. ;
  4240. return 0;
  4241. }
  4242. _ACEOF
  4243. if ac_fn_c_try_compile "$LINENO"
  4244. then :
  4245. ac_cv_prog_cc_g=yes
  4246. fi
  4247. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  4248. esac
  4249. fi
  4250. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  4251. esac
  4252. fi
  4253. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4254. ac_c_werror_flag=$ac_save_c_werror_flag ;;
  4255. esac
  4256. fi
  4257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4258. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4259. if test $ac_test_CFLAGS; then
  4260. CFLAGS=$ac_save_CFLAGS
  4261. elif test $ac_cv_prog_cc_g = yes; then
  4262. if test "$GCC" = yes; then
  4263. CFLAGS="-g -O2"
  4264. else
  4265. CFLAGS="-g"
  4266. fi
  4267. else
  4268. if test "$GCC" = yes; then
  4269. CFLAGS="-O2"
  4270. else
  4271. CFLAGS=
  4272. fi
  4273. fi
  4274. ac_prog_cc_stdc=no
  4275. if test x$ac_prog_cc_stdc = xno
  4276. then :
  4277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4278. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4279. if test ${ac_cv_prog_cc_c11+y}
  4280. then :
  4281. printf %s "(cached) " >&6
  4282. else case e in #(
  4283. e) ac_cv_prog_cc_c11=no
  4284. ac_save_CC=$CC
  4285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4286. /* end confdefs.h. */
  4287. $ac_c_conftest_c11_program
  4288. _ACEOF
  4289. for ac_arg in '' -std=gnu11
  4290. do
  4291. CC="$ac_save_CC $ac_arg"
  4292. if ac_fn_c_try_compile "$LINENO"
  4293. then :
  4294. ac_cv_prog_cc_c11=$ac_arg
  4295. fi
  4296. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4297. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4298. done
  4299. rm -f conftest.$ac_ext
  4300. CC=$ac_save_CC ;;
  4301. esac
  4302. fi
  4303. if test "x$ac_cv_prog_cc_c11" = xno
  4304. then :
  4305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4306. printf "%s\n" "unsupported" >&6; }
  4307. else case e in #(
  4308. e) if test "x$ac_cv_prog_cc_c11" = x
  4309. then :
  4310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4311. printf "%s\n" "none needed" >&6; }
  4312. else case e in #(
  4313. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4314. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4315. CC="$CC $ac_cv_prog_cc_c11" ;;
  4316. esac
  4317. fi
  4318. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4319. ac_prog_cc_stdc=c11 ;;
  4320. esac
  4321. fi
  4322. fi
  4323. if test x$ac_prog_cc_stdc = xno
  4324. then :
  4325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4326. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4327. if test ${ac_cv_prog_cc_c99+y}
  4328. then :
  4329. printf %s "(cached) " >&6
  4330. else case e in #(
  4331. e) ac_cv_prog_cc_c99=no
  4332. ac_save_CC=$CC
  4333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4334. /* end confdefs.h. */
  4335. $ac_c_conftest_c99_program
  4336. _ACEOF
  4337. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4338. do
  4339. CC="$ac_save_CC $ac_arg"
  4340. if ac_fn_c_try_compile "$LINENO"
  4341. then :
  4342. ac_cv_prog_cc_c99=$ac_arg
  4343. fi
  4344. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4345. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4346. done
  4347. rm -f conftest.$ac_ext
  4348. CC=$ac_save_CC ;;
  4349. esac
  4350. fi
  4351. if test "x$ac_cv_prog_cc_c99" = xno
  4352. then :
  4353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4354. printf "%s\n" "unsupported" >&6; }
  4355. else case e in #(
  4356. e) if test "x$ac_cv_prog_cc_c99" = x
  4357. then :
  4358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4359. printf "%s\n" "none needed" >&6; }
  4360. else case e in #(
  4361. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4362. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4363. CC="$CC $ac_cv_prog_cc_c99" ;;
  4364. esac
  4365. fi
  4366. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4367. ac_prog_cc_stdc=c99 ;;
  4368. esac
  4369. fi
  4370. fi
  4371. if test x$ac_prog_cc_stdc = xno
  4372. then :
  4373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4374. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4375. if test ${ac_cv_prog_cc_c89+y}
  4376. then :
  4377. printf %s "(cached) " >&6
  4378. else case e in #(
  4379. e) ac_cv_prog_cc_c89=no
  4380. ac_save_CC=$CC
  4381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4382. /* end confdefs.h. */
  4383. $ac_c_conftest_c89_program
  4384. _ACEOF
  4385. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4386. do
  4387. CC="$ac_save_CC $ac_arg"
  4388. if ac_fn_c_try_compile "$LINENO"
  4389. then :
  4390. ac_cv_prog_cc_c89=$ac_arg
  4391. fi
  4392. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4393. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4394. done
  4395. rm -f conftest.$ac_ext
  4396. CC=$ac_save_CC ;;
  4397. esac
  4398. fi
  4399. if test "x$ac_cv_prog_cc_c89" = xno
  4400. then :
  4401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4402. printf "%s\n" "unsupported" >&6; }
  4403. else case e in #(
  4404. e) if test "x$ac_cv_prog_cc_c89" = x
  4405. then :
  4406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4407. printf "%s\n" "none needed" >&6; }
  4408. else case e in #(
  4409. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4410. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4411. CC="$CC $ac_cv_prog_cc_c89" ;;
  4412. esac
  4413. fi
  4414. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4415. ac_prog_cc_stdc=c89 ;;
  4416. esac
  4417. fi
  4418. fi
  4419. ac_ext=c
  4420. ac_cpp='$CPP $CPPFLAGS'
  4421. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4422. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4423. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4424. ac_ext=c
  4425. ac_cpp='$CPP $CPPFLAGS'
  4426. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4427. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4428. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4430. printf %s "checking whether $CC understands -c and -o together... " >&6; }
  4431. if test ${am_cv_prog_cc_c_o+y}
  4432. then :
  4433. printf %s "(cached) " >&6
  4434. else case e in #(
  4435. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4436. /* end confdefs.h. */
  4437. int
  4438. main (void)
  4439. {
  4440. ;
  4441. return 0;
  4442. }
  4443. _ACEOF
  4444. # Make sure it works both with $CC and with simple cc.
  4445. # Following AC_PROG_CC_C_O, we do the test twice because some
  4446. # compilers refuse to overwrite an existing .o file with -o,
  4447. # though they will create one.
  4448. am_cv_prog_cc_c_o=yes
  4449. for am_i in 1 2; do
  4450. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4451. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4452. ac_status=$?
  4453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4454. (exit $ac_status); } \
  4455. && test -f conftest2.$ac_objext; then
  4456. : OK
  4457. else
  4458. am_cv_prog_cc_c_o=no
  4459. break
  4460. fi
  4461. done
  4462. rm -f core conftest*
  4463. unset am_i ;;
  4464. esac
  4465. fi
  4466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4467. printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
  4468. if test "$am_cv_prog_cc_c_o" != yes; then
  4469. # Losing compiler, so override with the script.
  4470. # FIXME: It is wrong to rewrite CC.
  4471. # But if we don't then we get into trouble of one sort or another.
  4472. # A longer-term fix would be to have automake use am__CC in this case,
  4473. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4474. CC="$am_aux_dir/compile $CC"
  4475. fi
  4476. ac_ext=c
  4477. ac_cpp='$CPP $CPPFLAGS'
  4478. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4479. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4480. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4481. DEPDIR="${am__leading_dot}deps"
  4482. ac_config_commands="$ac_config_commands depfiles"
  4483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  4484. printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
  4485. cat > confinc.mk << 'END'
  4486. am__doit:
  4487. @echo this is the am__doit target >confinc.out
  4488. .PHONY: am__doit
  4489. END
  4490. am__include="#"
  4491. am__quote=
  4492. # BSD make does it like this.
  4493. echo '.include "confinc.mk" # ignored' > confmf.BSD
  4494. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  4495. echo 'include confinc.mk # ignored' > confmf.GNU
  4496. _am_result=no
  4497. for s in GNU BSD; do
  4498. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  4499. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  4500. ac_status=$?
  4501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4502. (exit $ac_status); }
  4503. case $?:`cat confinc.out 2>/dev/null` in #(
  4504. '0:this is the am__doit target') :
  4505. case $s in #(
  4506. BSD) :
  4507. am__include='.include' am__quote='"' ;; #(
  4508. *) :
  4509. am__include='include' am__quote='' ;;
  4510. esac ;; #(
  4511. *) :
  4512. ;;
  4513. esac
  4514. if test "$am__include" != "#"; then
  4515. _am_result="yes ($s style)"
  4516. break
  4517. fi
  4518. done
  4519. rm -f confinc.* confmf.*
  4520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  4521. printf "%s\n" "${_am_result}" >&6; }
  4522. # Check whether --enable-dependency-tracking was given.
  4523. if test ${enable_dependency_tracking+y}
  4524. then :
  4525. enableval=$enable_dependency_tracking;
  4526. fi
  4527. if test "x$enable_dependency_tracking" != xno; then
  4528. am_depcomp="$ac_aux_dir/depcomp"
  4529. AMDEPBACKSLASH='\'
  4530. am__nodep='_no'
  4531. fi
  4532. if test "x$enable_dependency_tracking" != xno; then
  4533. AMDEP_TRUE=
  4534. AMDEP_FALSE='#'
  4535. else
  4536. AMDEP_TRUE='#'
  4537. AMDEP_FALSE=
  4538. fi
  4539. depcc="$CC" am_compiler_list=
  4540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4541. printf %s "checking dependency style of $depcc... " >&6; }
  4542. if test ${am_cv_CC_dependencies_compiler_type+y}
  4543. then :
  4544. printf %s "(cached) " >&6
  4545. else case e in #(
  4546. e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4547. # We make a subdir and do the tests there. Otherwise we can end up
  4548. # making bogus files that we don't know about and never remove. For
  4549. # instance it was reported that on HP-UX the gcc test will end up
  4550. # making a dummy file named 'D' -- because '-MD' means "put the output
  4551. # in D".
  4552. rm -rf conftest.dir
  4553. mkdir conftest.dir
  4554. # Copy depcomp to subdir because otherwise we won't find it if we're
  4555. # using a relative directory.
  4556. cp "$am_depcomp" conftest.dir
  4557. cd conftest.dir
  4558. # We will build objects and dependencies in a subdirectory because
  4559. # it helps to detect inapplicable dependency modes. For instance
  4560. # both Tru64's cc and ICC support -MD to output dependencies as a
  4561. # side effect of compilation, but ICC will put the dependencies in
  4562. # the current directory while Tru64 will put them in the object
  4563. # directory.
  4564. mkdir sub
  4565. am_cv_CC_dependencies_compiler_type=none
  4566. if test "$am_compiler_list" = ""; then
  4567. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4568. fi
  4569. am__universal=false
  4570. case " $depcc " in #(
  4571. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4572. esac
  4573. for depmode in $am_compiler_list; do
  4574. # Setup a source with many dependencies, because some compilers
  4575. # like to wrap large dependency lists on column 80 (with \), and
  4576. # we should not choose a depcomp mode which is confused by this.
  4577. #
  4578. # We need to recreate these files for each test, as the compiler may
  4579. # overwrite some of them when testing with obscure command lines.
  4580. # This happens at least with the AIX C compiler.
  4581. : > sub/conftest.c
  4582. for i in 1 2 3 4 5 6; do
  4583. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4584. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4585. # Solaris 10 /bin/sh.
  4586. echo '/* dummy */' > sub/conftst$i.h
  4587. done
  4588. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4589. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4590. # mode. It turns out that the SunPro C++ compiler does not properly
  4591. # handle '-M -o', and we need to detect this. Also, some Intel
  4592. # versions had trouble with output in subdirs.
  4593. am__obj=sub/conftest.${OBJEXT-o}
  4594. am__minus_obj="-o $am__obj"
  4595. case $depmode in
  4596. gcc)
  4597. # This depmode causes a compiler race in universal mode.
  4598. test "$am__universal" = false || continue
  4599. ;;
  4600. nosideeffect)
  4601. # After this tag, mechanisms are not by side-effect, so they'll
  4602. # only be used when explicitly requested.
  4603. if test "x$enable_dependency_tracking" = xyes; then
  4604. continue
  4605. else
  4606. break
  4607. fi
  4608. ;;
  4609. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4610. # This compiler won't grok '-c -o', but also, the minuso test has
  4611. # not run yet. These depmodes are late enough in the game, and
  4612. # so weak that their functioning should not be impacted.
  4613. am__obj=conftest.${OBJEXT-o}
  4614. am__minus_obj=
  4615. ;;
  4616. none) break ;;
  4617. esac
  4618. if depmode=$depmode \
  4619. source=sub/conftest.c object=$am__obj \
  4620. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4621. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4622. >/dev/null 2>conftest.err &&
  4623. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4624. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4625. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4626. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4627. # icc doesn't choke on unknown options, it will just issue warnings
  4628. # or remarks (even with -Werror). So we grep stderr for any message
  4629. # that says an option was ignored or not supported.
  4630. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4631. # icc: Command line warning: ignoring option '-M'; no argument required
  4632. # The diagnosis changed in icc 8.0:
  4633. # icc: Command line remark: option '-MP' not supported
  4634. if (grep 'ignoring option' conftest.err ||
  4635. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4636. am_cv_CC_dependencies_compiler_type=$depmode
  4637. break
  4638. fi
  4639. fi
  4640. done
  4641. cd ..
  4642. rm -rf conftest.dir
  4643. else
  4644. am_cv_CC_dependencies_compiler_type=none
  4645. fi
  4646. ;;
  4647. esac
  4648. fi
  4649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4650. printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
  4651. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4652. if
  4653. test "x$enable_dependency_tracking" != xno \
  4654. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4655. am__fastdepCC_TRUE=
  4656. am__fastdepCC_FALSE='#'
  4657. else
  4658. am__fastdepCC_TRUE='#'
  4659. am__fastdepCC_FALSE=
  4660. fi
  4661. ac_header= ac_cache=
  4662. for ac_item in $ac_header_c_list
  4663. do
  4664. if test $ac_cache; then
  4665. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  4666. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  4667. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  4668. fi
  4669. ac_header= ac_cache=
  4670. elif test $ac_header; then
  4671. ac_cache=$ac_item
  4672. else
  4673. ac_header=$ac_item
  4674. fi
  4675. done
  4676. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  4677. then :
  4678. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  4679. fi
  4680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4681. printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4682. if test ${ac_cv_safe_to_define___extensions__+y}
  4683. then :
  4684. printf %s "(cached) " >&6
  4685. else case e in #(
  4686. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4687. /* end confdefs.h. */
  4688. # define __EXTENSIONS__ 1
  4689. $ac_includes_default
  4690. int
  4691. main (void)
  4692. {
  4693. ;
  4694. return 0;
  4695. }
  4696. _ACEOF
  4697. if ac_fn_c_try_compile "$LINENO"
  4698. then :
  4699. ac_cv_safe_to_define___extensions__=yes
  4700. else case e in #(
  4701. e) ac_cv_safe_to_define___extensions__=no ;;
  4702. esac
  4703. fi
  4704. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  4705. esac
  4706. fi
  4707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4708. printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
  4709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
  4710. printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
  4711. if test ${ac_cv_should_define__xopen_source+y}
  4712. then :
  4713. printf %s "(cached) " >&6
  4714. else case e in #(
  4715. e) ac_cv_should_define__xopen_source=no
  4716. if test $ac_cv_header_wchar_h = yes
  4717. then :
  4718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4719. /* end confdefs.h. */
  4720. #include <wchar.h>
  4721. mbstate_t x;
  4722. int
  4723. main (void)
  4724. {
  4725. ;
  4726. return 0;
  4727. }
  4728. _ACEOF
  4729. if ac_fn_c_try_compile "$LINENO"
  4730. then :
  4731. else case e in #(
  4732. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4733. /* end confdefs.h. */
  4734. #define _XOPEN_SOURCE 500
  4735. #include <wchar.h>
  4736. mbstate_t x;
  4737. int
  4738. main (void)
  4739. {
  4740. ;
  4741. return 0;
  4742. }
  4743. _ACEOF
  4744. if ac_fn_c_try_compile "$LINENO"
  4745. then :
  4746. ac_cv_should_define__xopen_source=yes
  4747. fi
  4748. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  4749. esac
  4750. fi
  4751. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4752. fi ;;
  4753. esac
  4754. fi
  4755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
  4756. printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
  4757. printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
  4758. printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
  4759. printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
  4760. printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
  4761. printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
  4762. printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
  4763. printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4764. printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
  4765. printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
  4766. printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
  4767. printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
  4768. printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
  4769. printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
  4770. printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
  4771. printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
  4772. printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
  4773. if test $ac_cv_header_minix_config_h = yes
  4774. then :
  4775. MINIX=yes
  4776. printf "%s\n" "#define _MINIX 1" >>confdefs.h
  4777. printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
  4778. printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4779. else case e in #(
  4780. e) MINIX= ;;
  4781. esac
  4782. fi
  4783. if test $ac_cv_safe_to_define___extensions__ = yes
  4784. then :
  4785. printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
  4786. fi
  4787. if test $ac_cv_should_define__xopen_source = yes
  4788. then :
  4789. printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
  4790. fi
  4791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4792. printf %s "checking whether byte ordering is bigendian... " >&6; }
  4793. if test ${ac_cv_c_bigendian+y}
  4794. then :
  4795. printf %s "(cached) " >&6
  4796. else case e in #(
  4797. e) ac_cv_c_bigendian=unknown
  4798. # See if we're dealing with a universal compiler.
  4799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4800. /* end confdefs.h. */
  4801. #ifndef __APPLE_CC__
  4802. not a universal capable compiler
  4803. #endif
  4804. typedef int dummy;
  4805. _ACEOF
  4806. if ac_fn_c_try_compile "$LINENO"
  4807. then :
  4808. # Check for potential -arch flags. It is not universal unless
  4809. # there are at least two -arch flags with different values.
  4810. ac_arch=
  4811. ac_prev=
  4812. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4813. if test -n "$ac_prev"; then
  4814. case $ac_word in
  4815. i?86 | x86_64 | ppc | ppc64)
  4816. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4817. ac_arch=$ac_word
  4818. else
  4819. ac_cv_c_bigendian=universal
  4820. break
  4821. fi
  4822. ;;
  4823. esac
  4824. ac_prev=
  4825. elif test "x$ac_word" = "x-arch"; then
  4826. ac_prev=arch
  4827. fi
  4828. done
  4829. fi
  4830. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4831. if test $ac_cv_c_bigendian = unknown; then
  4832. # See if sys/param.h defines the BYTE_ORDER macro.
  4833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4834. /* end confdefs.h. */
  4835. #include <sys/types.h>
  4836. #include <sys/param.h>
  4837. int
  4838. main (void)
  4839. {
  4840. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
  4841. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
  4842. && LITTLE_ENDIAN)
  4843. bogus endian macros
  4844. #endif
  4845. ;
  4846. return 0;
  4847. }
  4848. _ACEOF
  4849. if ac_fn_c_try_compile "$LINENO"
  4850. then :
  4851. # It does; now see whether it defined to BIG_ENDIAN or not.
  4852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4853. /* end confdefs.h. */
  4854. #include <sys/types.h>
  4855. #include <sys/param.h>
  4856. int
  4857. main (void)
  4858. {
  4859. #if BYTE_ORDER != BIG_ENDIAN
  4860. not big endian
  4861. #endif
  4862. ;
  4863. return 0;
  4864. }
  4865. _ACEOF
  4866. if ac_fn_c_try_compile "$LINENO"
  4867. then :
  4868. ac_cv_c_bigendian=yes
  4869. else case e in #(
  4870. e) ac_cv_c_bigendian=no ;;
  4871. esac
  4872. fi
  4873. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4874. fi
  4875. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4876. fi
  4877. if test $ac_cv_c_bigendian = unknown; then
  4878. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4880. /* end confdefs.h. */
  4881. #include <limits.h>
  4882. int
  4883. main (void)
  4884. {
  4885. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4886. bogus endian macros
  4887. #endif
  4888. ;
  4889. return 0;
  4890. }
  4891. _ACEOF
  4892. if ac_fn_c_try_compile "$LINENO"
  4893. then :
  4894. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4896. /* end confdefs.h. */
  4897. #include <limits.h>
  4898. int
  4899. main (void)
  4900. {
  4901. #ifndef _BIG_ENDIAN
  4902. not big endian
  4903. #endif
  4904. ;
  4905. return 0;
  4906. }
  4907. _ACEOF
  4908. if ac_fn_c_try_compile "$LINENO"
  4909. then :
  4910. ac_cv_c_bigendian=yes
  4911. else case e in #(
  4912. e) ac_cv_c_bigendian=no ;;
  4913. esac
  4914. fi
  4915. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4916. fi
  4917. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4918. fi
  4919. if test $ac_cv_c_bigendian = unknown; then
  4920. # Compile a test program.
  4921. if test "$cross_compiling" = yes
  4922. then :
  4923. # Try to guess by grepping values from an object file.
  4924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4925. /* end confdefs.h. */
  4926. unsigned short int ascii_mm[] =
  4927. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4928. unsigned short int ascii_ii[] =
  4929. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4930. int use_ascii (int i) {
  4931. return ascii_mm[i] + ascii_ii[i];
  4932. }
  4933. unsigned short int ebcdic_ii[] =
  4934. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4935. unsigned short int ebcdic_mm[] =
  4936. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4937. int use_ebcdic (int i) {
  4938. return ebcdic_mm[i] + ebcdic_ii[i];
  4939. }
  4940. int
  4941. main (int argc, char **argv)
  4942. {
  4943. /* Intimidate the compiler so that it does not
  4944. optimize the arrays away. */
  4945. char *p = argv[0];
  4946. ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
  4947. ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
  4948. return use_ascii (argc) == use_ebcdic (*p);
  4949. }
  4950. _ACEOF
  4951. if ac_fn_c_try_link "$LINENO"
  4952. then :
  4953. if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
  4954. ac_cv_c_bigendian=yes
  4955. fi
  4956. if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
  4957. if test "$ac_cv_c_bigendian" = unknown; then
  4958. ac_cv_c_bigendian=no
  4959. else
  4960. # finding both strings is unlikely to happen, but who knows?
  4961. ac_cv_c_bigendian=unknown
  4962. fi
  4963. fi
  4964. fi
  4965. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4966. conftest$ac_exeext conftest.$ac_ext
  4967. else case e in #(
  4968. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4969. /* end confdefs.h. */
  4970. $ac_includes_default
  4971. int
  4972. main (void)
  4973. {
  4974. /* Are we little or big endian? From Harbison&Steele. */
  4975. union
  4976. {
  4977. long int l;
  4978. char c[sizeof (long int)];
  4979. } u;
  4980. u.l = 1;
  4981. return u.c[sizeof (long int) - 1] == 1;
  4982. ;
  4983. return 0;
  4984. }
  4985. _ACEOF
  4986. if ac_fn_c_try_run "$LINENO"
  4987. then :
  4988. ac_cv_c_bigendian=no
  4989. else case e in #(
  4990. e) ac_cv_c_bigendian=yes ;;
  4991. esac
  4992. fi
  4993. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4994. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  4995. esac
  4996. fi
  4997. fi ;;
  4998. esac
  4999. fi
  5000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  5001. printf "%s\n" "$ac_cv_c_bigendian" >&6; }
  5002. case $ac_cv_c_bigendian in #(
  5003. yes)
  5004. printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
  5005. ;; #(
  5006. no)
  5007. ;; #(
  5008. universal)
  5009. printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  5010. ;; #(
  5011. *)
  5012. as_fn_error $? "unknown endianness
  5013. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  5014. esac
  5015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5016. printf %s "checking whether ln -s works... " >&6; }
  5017. LN_S=$as_ln_s
  5018. if test "$LN_S" = "ln -s"; then
  5019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5020. printf "%s\n" "yes" >&6; }
  5021. else
  5022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5023. printf "%s\n" "no, using $LN_S" >&6; }
  5024. fi
  5025. case `pwd` in
  5026. *\ * | *\ *)
  5027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5028. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5029. esac
  5030. macro_version='2.4.7'
  5031. macro_revision='2.4.7'
  5032. ltmain=$ac_aux_dir/ltmain.sh
  5033. # Backslashify metacharacters that are still active within
  5034. # double-quoted strings.
  5035. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5036. # Same as above, but do not quote variable references.
  5037. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5038. # Sed substitution to delay expansion of an escaped shell variable in a
  5039. # double_quote_subst'ed string.
  5040. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5041. # Sed substitution to delay expansion of an escaped single quote.
  5042. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5043. # Sed substitution to avoid accidental globbing in evaled expressions
  5044. no_glob_subst='s/\*/\\\*/g'
  5045. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5046. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5047. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5049. printf %s "checking how to print strings... " >&6; }
  5050. # Test print first, because it will be a builtin if present.
  5051. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  5052. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5053. ECHO='print -r --'
  5054. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5055. ECHO='printf %s\n'
  5056. else
  5057. # Use this function as a fallback that always works.
  5058. func_fallback_echo ()
  5059. {
  5060. eval 'cat <<_LTECHO_EOF
  5061. $1
  5062. _LTECHO_EOF'
  5063. }
  5064. ECHO='func_fallback_echo'
  5065. fi
  5066. # func_echo_all arg...
  5067. # Invoke $ECHO with all args, space-separated.
  5068. func_echo_all ()
  5069. {
  5070. $ECHO ""
  5071. }
  5072. case $ECHO in
  5073. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5074. printf "%s\n" "printf" >&6; } ;;
  5075. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5076. printf "%s\n" "print -r" >&6; } ;;
  5077. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5078. printf "%s\n" "cat" >&6; } ;;
  5079. esac
  5080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5081. printf %s "checking for a sed that does not truncate output... " >&6; }
  5082. if test ${ac_cv_path_SED+y}
  5083. then :
  5084. printf %s "(cached) " >&6
  5085. else case e in #(
  5086. e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5087. for ac_i in 1 2 3 4 5 6 7; do
  5088. ac_script="$ac_script$as_nl$ac_script"
  5089. done
  5090. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5091. { ac_script=; unset ac_script;}
  5092. if test -z "$SED"; then
  5093. ac_path_SED_found=false
  5094. # Loop through the user's path and test for each of PROGNAME-LIST
  5095. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5096. for as_dir in $PATH
  5097. do
  5098. IFS=$as_save_IFS
  5099. case $as_dir in #(((
  5100. '') as_dir=./ ;;
  5101. */) ;;
  5102. *) as_dir=$as_dir/ ;;
  5103. esac
  5104. for ac_prog in sed gsed
  5105. do
  5106. for ac_exec_ext in '' $ac_executable_extensions; do
  5107. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  5108. as_fn_executable_p "$ac_path_SED" || continue
  5109. # Check for GNU ac_path_SED and select it if it is found.
  5110. # Check for GNU $ac_path_SED
  5111. case `"$ac_path_SED" --version 2>&1` in #(
  5112. *GNU*)
  5113. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5114. #(
  5115. *)
  5116. ac_count=0
  5117. printf %s 0123456789 >"conftest.in"
  5118. while :
  5119. do
  5120. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5121. mv "conftest.tmp" "conftest.in"
  5122. cp "conftest.in" "conftest.nl"
  5123. printf "%s\n" '' >> "conftest.nl"
  5124. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5125. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5126. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5127. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5128. # Best one so far, save it but keep looking for a better one
  5129. ac_cv_path_SED="$ac_path_SED"
  5130. ac_path_SED_max=$ac_count
  5131. fi
  5132. # 10*(2^10) chars as input seems more than enough
  5133. test $ac_count -gt 10 && break
  5134. done
  5135. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5136. esac
  5137. $ac_path_SED_found && break 3
  5138. done
  5139. done
  5140. done
  5141. IFS=$as_save_IFS
  5142. if test -z "$ac_cv_path_SED"; then
  5143. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5144. fi
  5145. else
  5146. ac_cv_path_SED=$SED
  5147. fi
  5148. ;;
  5149. esac
  5150. fi
  5151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5152. printf "%s\n" "$ac_cv_path_SED" >&6; }
  5153. SED="$ac_cv_path_SED"
  5154. rm -f conftest.sed
  5155. test -z "$SED" && SED=sed
  5156. Xsed="$SED -e 1s/^X//"
  5157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5158. printf %s "checking for grep that handles long lines and -e... " >&6; }
  5159. if test ${ac_cv_path_GREP+y}
  5160. then :
  5161. printf %s "(cached) " >&6
  5162. else case e in #(
  5163. e) if test -z "$GREP"; then
  5164. ac_path_GREP_found=false
  5165. # Loop through the user's path and test for each of PROGNAME-LIST
  5166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5167. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5168. do
  5169. IFS=$as_save_IFS
  5170. case $as_dir in #(((
  5171. '') as_dir=./ ;;
  5172. */) ;;
  5173. *) as_dir=$as_dir/ ;;
  5174. esac
  5175. for ac_prog in grep ggrep
  5176. do
  5177. for ac_exec_ext in '' $ac_executable_extensions; do
  5178. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  5179. as_fn_executable_p "$ac_path_GREP" || continue
  5180. # Check for GNU ac_path_GREP and select it if it is found.
  5181. # Check for GNU $ac_path_GREP
  5182. case `"$ac_path_GREP" --version 2>&1` in #(
  5183. *GNU*)
  5184. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5185. #(
  5186. *)
  5187. ac_count=0
  5188. printf %s 0123456789 >"conftest.in"
  5189. while :
  5190. do
  5191. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5192. mv "conftest.tmp" "conftest.in"
  5193. cp "conftest.in" "conftest.nl"
  5194. printf "%s\n" 'GREP' >> "conftest.nl"
  5195. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5196. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5197. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5198. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5199. # Best one so far, save it but keep looking for a better one
  5200. ac_cv_path_GREP="$ac_path_GREP"
  5201. ac_path_GREP_max=$ac_count
  5202. fi
  5203. # 10*(2^10) chars as input seems more than enough
  5204. test $ac_count -gt 10 && break
  5205. done
  5206. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5207. esac
  5208. $ac_path_GREP_found && break 3
  5209. done
  5210. done
  5211. done
  5212. IFS=$as_save_IFS
  5213. if test -z "$ac_cv_path_GREP"; then
  5214. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5215. fi
  5216. else
  5217. ac_cv_path_GREP=$GREP
  5218. fi
  5219. ;;
  5220. esac
  5221. fi
  5222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5223. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  5224. GREP="$ac_cv_path_GREP"
  5225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5226. printf %s "checking for egrep... " >&6; }
  5227. if test ${ac_cv_path_EGREP+y}
  5228. then :
  5229. printf %s "(cached) " >&6
  5230. else case e in #(
  5231. e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5232. then ac_cv_path_EGREP="$GREP -E"
  5233. else
  5234. if test -z "$EGREP"; then
  5235. ac_path_EGREP_found=false
  5236. # Loop through the user's path and test for each of PROGNAME-LIST
  5237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5238. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5239. do
  5240. IFS=$as_save_IFS
  5241. case $as_dir in #(((
  5242. '') as_dir=./ ;;
  5243. */) ;;
  5244. *) as_dir=$as_dir/ ;;
  5245. esac
  5246. for ac_prog in egrep
  5247. do
  5248. for ac_exec_ext in '' $ac_executable_extensions; do
  5249. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  5250. as_fn_executable_p "$ac_path_EGREP" || continue
  5251. # Check for GNU ac_path_EGREP and select it if it is found.
  5252. # Check for GNU $ac_path_EGREP
  5253. case `"$ac_path_EGREP" --version 2>&1` in #(
  5254. *GNU*)
  5255. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5256. #(
  5257. *)
  5258. ac_count=0
  5259. printf %s 0123456789 >"conftest.in"
  5260. while :
  5261. do
  5262. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5263. mv "conftest.tmp" "conftest.in"
  5264. cp "conftest.in" "conftest.nl"
  5265. printf "%s\n" 'EGREP' >> "conftest.nl"
  5266. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5267. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5268. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5269. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5270. # Best one so far, save it but keep looking for a better one
  5271. ac_cv_path_EGREP="$ac_path_EGREP"
  5272. ac_path_EGREP_max=$ac_count
  5273. fi
  5274. # 10*(2^10) chars as input seems more than enough
  5275. test $ac_count -gt 10 && break
  5276. done
  5277. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5278. esac
  5279. $ac_path_EGREP_found && break 3
  5280. done
  5281. done
  5282. done
  5283. IFS=$as_save_IFS
  5284. if test -z "$ac_cv_path_EGREP"; then
  5285. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5286. fi
  5287. else
  5288. ac_cv_path_EGREP=$EGREP
  5289. fi
  5290. fi ;;
  5291. esac
  5292. fi
  5293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5294. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  5295. EGREP="$ac_cv_path_EGREP"
  5296. EGREP_TRADITIONAL=$EGREP
  5297. ac_cv_path_EGREP_TRADITIONAL=$EGREP
  5298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5299. printf %s "checking for fgrep... " >&6; }
  5300. if test ${ac_cv_path_FGREP+y}
  5301. then :
  5302. printf %s "(cached) " >&6
  5303. else case e in #(
  5304. e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5305. then ac_cv_path_FGREP="$GREP -F"
  5306. else
  5307. if test -z "$FGREP"; then
  5308. ac_path_FGREP_found=false
  5309. # Loop through the user's path and test for each of PROGNAME-LIST
  5310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5311. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5312. do
  5313. IFS=$as_save_IFS
  5314. case $as_dir in #(((
  5315. '') as_dir=./ ;;
  5316. */) ;;
  5317. *) as_dir=$as_dir/ ;;
  5318. esac
  5319. for ac_prog in fgrep
  5320. do
  5321. for ac_exec_ext in '' $ac_executable_extensions; do
  5322. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  5323. as_fn_executable_p "$ac_path_FGREP" || continue
  5324. # Check for GNU ac_path_FGREP and select it if it is found.
  5325. # Check for GNU $ac_path_FGREP
  5326. case `"$ac_path_FGREP" --version 2>&1` in #(
  5327. *GNU*)
  5328. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5329. #(
  5330. *)
  5331. ac_count=0
  5332. printf %s 0123456789 >"conftest.in"
  5333. while :
  5334. do
  5335. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5336. mv "conftest.tmp" "conftest.in"
  5337. cp "conftest.in" "conftest.nl"
  5338. printf "%s\n" 'FGREP' >> "conftest.nl"
  5339. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5340. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5341. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5342. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5343. # Best one so far, save it but keep looking for a better one
  5344. ac_cv_path_FGREP="$ac_path_FGREP"
  5345. ac_path_FGREP_max=$ac_count
  5346. fi
  5347. # 10*(2^10) chars as input seems more than enough
  5348. test $ac_count -gt 10 && break
  5349. done
  5350. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5351. esac
  5352. $ac_path_FGREP_found && break 3
  5353. done
  5354. done
  5355. done
  5356. IFS=$as_save_IFS
  5357. if test -z "$ac_cv_path_FGREP"; then
  5358. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5359. fi
  5360. else
  5361. ac_cv_path_FGREP=$FGREP
  5362. fi
  5363. fi ;;
  5364. esac
  5365. fi
  5366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5367. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  5368. FGREP="$ac_cv_path_FGREP"
  5369. test -z "$GREP" && GREP=grep
  5370. # Check whether --with-gnu-ld was given.
  5371. if test ${with_gnu_ld+y}
  5372. then :
  5373. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5374. else case e in #(
  5375. e) with_gnu_ld=no ;;
  5376. esac
  5377. fi
  5378. ac_prog=ld
  5379. if test yes = "$GCC"; then
  5380. # Check if gcc -print-prog-name=ld gives a path.
  5381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5382. printf %s "checking for ld used by $CC... " >&6; }
  5383. case $host in
  5384. *-*-mingw*)
  5385. # gcc leaves a trailing carriage return, which upsets mingw
  5386. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5387. *)
  5388. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5389. esac
  5390. case $ac_prog in
  5391. # Accept absolute paths.
  5392. [\\/]* | ?:[\\/]*)
  5393. re_direlt='/[^/][^/]*/\.\./'
  5394. # Canonicalize the pathname of ld
  5395. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5396. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5397. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5398. done
  5399. test -z "$LD" && LD=$ac_prog
  5400. ;;
  5401. "")
  5402. # If it fails, then pretend we aren't using GCC.
  5403. ac_prog=ld
  5404. ;;
  5405. *)
  5406. # If it is relative, then search for the first ld in PATH.
  5407. with_gnu_ld=unknown
  5408. ;;
  5409. esac
  5410. elif test yes = "$with_gnu_ld"; then
  5411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5412. printf %s "checking for GNU ld... " >&6; }
  5413. else
  5414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5415. printf %s "checking for non-GNU ld... " >&6; }
  5416. fi
  5417. if test ${lt_cv_path_LD+y}
  5418. then :
  5419. printf %s "(cached) " >&6
  5420. else case e in #(
  5421. e) if test -z "$LD"; then
  5422. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5423. for ac_dir in $PATH; do
  5424. IFS=$lt_save_ifs
  5425. test -z "$ac_dir" && ac_dir=.
  5426. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5427. lt_cv_path_LD=$ac_dir/$ac_prog
  5428. # Check to see if the program is GNU ld. I'd rather use --version,
  5429. # but apparently some variants of GNU ld only accept -v.
  5430. # Break only if it was the GNU/non-GNU ld that we prefer.
  5431. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5432. *GNU* | *'with BFD'*)
  5433. test no != "$with_gnu_ld" && break
  5434. ;;
  5435. *)
  5436. test yes != "$with_gnu_ld" && break
  5437. ;;
  5438. esac
  5439. fi
  5440. done
  5441. IFS=$lt_save_ifs
  5442. else
  5443. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5444. fi ;;
  5445. esac
  5446. fi
  5447. LD=$lt_cv_path_LD
  5448. if test -n "$LD"; then
  5449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5450. printf "%s\n" "$LD" >&6; }
  5451. else
  5452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5453. printf "%s\n" "no" >&6; }
  5454. fi
  5455. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5457. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  5458. if test ${lt_cv_prog_gnu_ld+y}
  5459. then :
  5460. printf %s "(cached) " >&6
  5461. else case e in #(
  5462. e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5463. case `$LD -v 2>&1 </dev/null` in
  5464. *GNU* | *'with BFD'*)
  5465. lt_cv_prog_gnu_ld=yes
  5466. ;;
  5467. *)
  5468. lt_cv_prog_gnu_ld=no
  5469. ;;
  5470. esac ;;
  5471. esac
  5472. fi
  5473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5474. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  5475. with_gnu_ld=$lt_cv_prog_gnu_ld
  5476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5477. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5478. if test ${lt_cv_path_NM+y}
  5479. then :
  5480. printf %s "(cached) " >&6
  5481. else case e in #(
  5482. e) if test -n "$NM"; then
  5483. # Let the user override the test.
  5484. lt_cv_path_NM=$NM
  5485. else
  5486. lt_nm_to_check=${ac_tool_prefix}nm
  5487. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5488. lt_nm_to_check="$lt_nm_to_check nm"
  5489. fi
  5490. for lt_tmp_nm in $lt_nm_to_check; do
  5491. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5492. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5493. IFS=$lt_save_ifs
  5494. test -z "$ac_dir" && ac_dir=.
  5495. tmp_nm=$ac_dir/$lt_tmp_nm
  5496. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5497. # Check to see if the nm accepts a BSD-compat flag.
  5498. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5499. # nm: unknown option "B" ignored
  5500. # Tru64's nm complains that /dev/null is an invalid object file
  5501. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5502. case $build_os in
  5503. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5504. *) lt_bad_file=/dev/null ;;
  5505. esac
  5506. case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
  5507. *$lt_bad_file* | *'Invalid file or object type'*)
  5508. lt_cv_path_NM="$tmp_nm -B"
  5509. break 2
  5510. ;;
  5511. *)
  5512. case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
  5513. */dev/null*)
  5514. lt_cv_path_NM="$tmp_nm -p"
  5515. break 2
  5516. ;;
  5517. *)
  5518. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5519. continue # so that we can try to find one that supports BSD flags
  5520. ;;
  5521. esac
  5522. ;;
  5523. esac
  5524. fi
  5525. done
  5526. IFS=$lt_save_ifs
  5527. done
  5528. : ${lt_cv_path_NM=no}
  5529. fi ;;
  5530. esac
  5531. fi
  5532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5533. printf "%s\n" "$lt_cv_path_NM" >&6; }
  5534. if test no != "$lt_cv_path_NM"; then
  5535. NM=$lt_cv_path_NM
  5536. else
  5537. # Didn't find any BSD compatible name lister, look for dumpbin.
  5538. if test -n "$DUMPBIN"; then :
  5539. # Let the user override the test.
  5540. else
  5541. if test -n "$ac_tool_prefix"; then
  5542. for ac_prog in dumpbin "link -dump"
  5543. do
  5544. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5545. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5547. printf %s "checking for $ac_word... " >&6; }
  5548. if test ${ac_cv_prog_DUMPBIN+y}
  5549. then :
  5550. printf %s "(cached) " >&6
  5551. else case e in #(
  5552. e) if test -n "$DUMPBIN"; then
  5553. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5554. else
  5555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5556. for as_dir in $PATH
  5557. do
  5558. IFS=$as_save_IFS
  5559. case $as_dir in #(((
  5560. '') as_dir=./ ;;
  5561. */) ;;
  5562. *) as_dir=$as_dir/ ;;
  5563. esac
  5564. for ac_exec_ext in '' $ac_executable_extensions; do
  5565. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5566. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5567. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5568. break 2
  5569. fi
  5570. done
  5571. done
  5572. IFS=$as_save_IFS
  5573. fi ;;
  5574. esac
  5575. fi
  5576. DUMPBIN=$ac_cv_prog_DUMPBIN
  5577. if test -n "$DUMPBIN"; then
  5578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5579. printf "%s\n" "$DUMPBIN" >&6; }
  5580. else
  5581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5582. printf "%s\n" "no" >&6; }
  5583. fi
  5584. test -n "$DUMPBIN" && break
  5585. done
  5586. fi
  5587. if test -z "$DUMPBIN"; then
  5588. ac_ct_DUMPBIN=$DUMPBIN
  5589. for ac_prog in dumpbin "link -dump"
  5590. do
  5591. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5592. set dummy $ac_prog; ac_word=$2
  5593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5594. printf %s "checking for $ac_word... " >&6; }
  5595. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  5596. then :
  5597. printf %s "(cached) " >&6
  5598. else case e in #(
  5599. e) if test -n "$ac_ct_DUMPBIN"; then
  5600. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5601. else
  5602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5603. for as_dir in $PATH
  5604. do
  5605. IFS=$as_save_IFS
  5606. case $as_dir in #(((
  5607. '') as_dir=./ ;;
  5608. */) ;;
  5609. *) as_dir=$as_dir/ ;;
  5610. esac
  5611. for ac_exec_ext in '' $ac_executable_extensions; do
  5612. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5613. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5614. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5615. break 2
  5616. fi
  5617. done
  5618. done
  5619. IFS=$as_save_IFS
  5620. fi ;;
  5621. esac
  5622. fi
  5623. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5624. if test -n "$ac_ct_DUMPBIN"; then
  5625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5626. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  5627. else
  5628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5629. printf "%s\n" "no" >&6; }
  5630. fi
  5631. test -n "$ac_ct_DUMPBIN" && break
  5632. done
  5633. if test "x$ac_ct_DUMPBIN" = x; then
  5634. DUMPBIN=":"
  5635. else
  5636. case $cross_compiling:$ac_tool_warned in
  5637. yes:)
  5638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5639. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5640. ac_tool_warned=yes ;;
  5641. esac
  5642. DUMPBIN=$ac_ct_DUMPBIN
  5643. fi
  5644. fi
  5645. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
  5646. *COFF*)
  5647. DUMPBIN="$DUMPBIN -symbols -headers"
  5648. ;;
  5649. *)
  5650. DUMPBIN=:
  5651. ;;
  5652. esac
  5653. fi
  5654. if test : != "$DUMPBIN"; then
  5655. NM=$DUMPBIN
  5656. fi
  5657. fi
  5658. test -z "$NM" && NM=nm
  5659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5660. printf %s "checking the name lister ($NM) interface... " >&6; }
  5661. if test ${lt_cv_nm_interface+y}
  5662. then :
  5663. printf %s "(cached) " >&6
  5664. else case e in #(
  5665. e) lt_cv_nm_interface="BSD nm"
  5666. echo "int some_variable = 0;" > conftest.$ac_ext
  5667. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5668. (eval "$ac_compile" 2>conftest.err)
  5669. cat conftest.err >&5
  5670. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5671. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5672. cat conftest.err >&5
  5673. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5674. cat conftest.out >&5
  5675. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5676. lt_cv_nm_interface="MS dumpbin"
  5677. fi
  5678. rm -f conftest* ;;
  5679. esac
  5680. fi
  5681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5682. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  5683. # find the maximum length of command line arguments
  5684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5685. printf %s "checking the maximum length of command line arguments... " >&6; }
  5686. if test ${lt_cv_sys_max_cmd_len+y}
  5687. then :
  5688. printf %s "(cached) " >&6
  5689. else case e in #(
  5690. e) i=0
  5691. teststring=ABCD
  5692. case $build_os in
  5693. msdosdjgpp*)
  5694. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5695. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5696. # during glob expansion). Even if it were fixed, the result of this
  5697. # check would be larger than it should be.
  5698. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5699. ;;
  5700. gnu*)
  5701. # Under GNU Hurd, this test is not required because there is
  5702. # no limit to the length of command line arguments.
  5703. # Libtool will interpret -1 as no limit whatsoever
  5704. lt_cv_sys_max_cmd_len=-1;
  5705. ;;
  5706. cygwin* | mingw* | cegcc*)
  5707. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5708. # about 5 minutes as the teststring grows exponentially.
  5709. # Worse, since 9x/ME are not pre-emptively multitasking,
  5710. # you end up with a "frozen" computer, even though with patience
  5711. # the test eventually succeeds (with a max line length of 256k).
  5712. # Instead, let's just punt: use the minimum linelength reported by
  5713. # all of the supported platforms: 8192 (on NT/2K/XP).
  5714. lt_cv_sys_max_cmd_len=8192;
  5715. ;;
  5716. mint*)
  5717. # On MiNT this can take a long time and run out of memory.
  5718. lt_cv_sys_max_cmd_len=8192;
  5719. ;;
  5720. amigaos*)
  5721. # On AmigaOS with pdksh, this test takes hours, literally.
  5722. # So we just punt and use a minimum line length of 8192.
  5723. lt_cv_sys_max_cmd_len=8192;
  5724. ;;
  5725. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  5726. # This has been around since 386BSD, at least. Likely further.
  5727. if test -x /sbin/sysctl; then
  5728. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5729. elif test -x /usr/sbin/sysctl; then
  5730. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5731. else
  5732. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5733. fi
  5734. # And add a safety zone
  5735. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5736. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5737. ;;
  5738. interix*)
  5739. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5740. lt_cv_sys_max_cmd_len=196608
  5741. ;;
  5742. os2*)
  5743. # The test takes a long time on OS/2.
  5744. lt_cv_sys_max_cmd_len=8192
  5745. ;;
  5746. osf*)
  5747. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5748. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5749. # nice to cause kernel panics so lets avoid the loop below.
  5750. # First set a reasonable default.
  5751. lt_cv_sys_max_cmd_len=16384
  5752. #
  5753. if test -x /sbin/sysconfig; then
  5754. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5755. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5756. esac
  5757. fi
  5758. ;;
  5759. sco3.2v5*)
  5760. lt_cv_sys_max_cmd_len=102400
  5761. ;;
  5762. sysv5* | sco5v6* | sysv4.2uw2*)
  5763. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5764. if test -n "$kargmax"; then
  5765. lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
  5766. else
  5767. lt_cv_sys_max_cmd_len=32768
  5768. fi
  5769. ;;
  5770. *)
  5771. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5772. if test -n "$lt_cv_sys_max_cmd_len" && \
  5773. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5774. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5775. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5776. else
  5777. # Make teststring a little bigger before we do anything with it.
  5778. # a 1K string should be a reasonable start.
  5779. for i in 1 2 3 4 5 6 7 8; do
  5780. teststring=$teststring$teststring
  5781. done
  5782. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5783. # If test is not a shell built-in, we'll probably end up computing a
  5784. # maximum length that is only half of the actual maximum length, but
  5785. # we can't tell.
  5786. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5787. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5788. test 17 != "$i" # 1/2 MB should be enough
  5789. do
  5790. i=`expr $i + 1`
  5791. teststring=$teststring$teststring
  5792. done
  5793. # Only check the string length outside the loop.
  5794. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5795. teststring=
  5796. # Add a significant safety factor because C++ compilers can tack on
  5797. # massive amounts of additional arguments before passing them to the
  5798. # linker. It appears as though 1/2 is a usable value.
  5799. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5800. fi
  5801. ;;
  5802. esac
  5803. ;;
  5804. esac
  5805. fi
  5806. if test -n "$lt_cv_sys_max_cmd_len"; then
  5807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5808. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  5809. else
  5810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5811. printf "%s\n" "none" >&6; }
  5812. fi
  5813. max_cmd_len=$lt_cv_sys_max_cmd_len
  5814. : ${CP="cp -f"}
  5815. : ${MV="mv -f"}
  5816. : ${RM="rm -f"}
  5817. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5818. lt_unset=unset
  5819. else
  5820. lt_unset=false
  5821. fi
  5822. # test EBCDIC or ASCII
  5823. case `echo X|tr X '\101'` in
  5824. A) # ASCII based system
  5825. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5826. lt_SP2NL='tr \040 \012'
  5827. lt_NL2SP='tr \015\012 \040\040'
  5828. ;;
  5829. *) # EBCDIC based system
  5830. lt_SP2NL='tr \100 \n'
  5831. lt_NL2SP='tr \r\n \100\100'
  5832. ;;
  5833. esac
  5834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5835. printf %s "checking how to convert $build file names to $host format... " >&6; }
  5836. if test ${lt_cv_to_host_file_cmd+y}
  5837. then :
  5838. printf %s "(cached) " >&6
  5839. else case e in #(
  5840. e) case $host in
  5841. *-*-mingw* )
  5842. case $build in
  5843. *-*-mingw* ) # actually msys
  5844. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5845. ;;
  5846. *-*-cygwin* )
  5847. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5848. ;;
  5849. * ) # otherwise, assume *nix
  5850. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5851. ;;
  5852. esac
  5853. ;;
  5854. *-*-cygwin* )
  5855. case $build in
  5856. *-*-mingw* ) # actually msys
  5857. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5858. ;;
  5859. *-*-cygwin* )
  5860. lt_cv_to_host_file_cmd=func_convert_file_noop
  5861. ;;
  5862. * ) # otherwise, assume *nix
  5863. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5864. ;;
  5865. esac
  5866. ;;
  5867. * ) # unhandled hosts (and "normal" native builds)
  5868. lt_cv_to_host_file_cmd=func_convert_file_noop
  5869. ;;
  5870. esac
  5871. ;;
  5872. esac
  5873. fi
  5874. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5876. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  5877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5878. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  5879. if test ${lt_cv_to_tool_file_cmd+y}
  5880. then :
  5881. printf %s "(cached) " >&6
  5882. else case e in #(
  5883. e) #assume ordinary cross tools, or native build.
  5884. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5885. case $host in
  5886. *-*-mingw* )
  5887. case $build in
  5888. *-*-mingw* ) # actually msys
  5889. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5890. ;;
  5891. esac
  5892. ;;
  5893. esac
  5894. ;;
  5895. esac
  5896. fi
  5897. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5899. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5901. printf %s "checking for $LD option to reload object files... " >&6; }
  5902. if test ${lt_cv_ld_reload_flag+y}
  5903. then :
  5904. printf %s "(cached) " >&6
  5905. else case e in #(
  5906. e) lt_cv_ld_reload_flag='-r' ;;
  5907. esac
  5908. fi
  5909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5910. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5911. reload_flag=$lt_cv_ld_reload_flag
  5912. case $reload_flag in
  5913. "" | " "*) ;;
  5914. *) reload_flag=" $reload_flag" ;;
  5915. esac
  5916. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5917. case $host_os in
  5918. cygwin* | mingw* | pw32* | cegcc*)
  5919. if test yes != "$GCC"; then
  5920. reload_cmds=false
  5921. fi
  5922. ;;
  5923. darwin*)
  5924. if test yes = "$GCC"; then
  5925. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5926. else
  5927. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5928. fi
  5929. ;;
  5930. esac
  5931. if test -n "$ac_tool_prefix"; then
  5932. # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
  5933. set dummy ${ac_tool_prefix}file; ac_word=$2
  5934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5935. printf %s "checking for $ac_word... " >&6; }
  5936. if test ${ac_cv_prog_FILECMD+y}
  5937. then :
  5938. printf %s "(cached) " >&6
  5939. else case e in #(
  5940. e) if test -n "$FILECMD"; then
  5941. ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
  5942. else
  5943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5944. for as_dir in $PATH
  5945. do
  5946. IFS=$as_save_IFS
  5947. case $as_dir in #(((
  5948. '') as_dir=./ ;;
  5949. */) ;;
  5950. *) as_dir=$as_dir/ ;;
  5951. esac
  5952. for ac_exec_ext in '' $ac_executable_extensions; do
  5953. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5954. ac_cv_prog_FILECMD="${ac_tool_prefix}file"
  5955. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5956. break 2
  5957. fi
  5958. done
  5959. done
  5960. IFS=$as_save_IFS
  5961. fi ;;
  5962. esac
  5963. fi
  5964. FILECMD=$ac_cv_prog_FILECMD
  5965. if test -n "$FILECMD"; then
  5966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
  5967. printf "%s\n" "$FILECMD" >&6; }
  5968. else
  5969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5970. printf "%s\n" "no" >&6; }
  5971. fi
  5972. fi
  5973. if test -z "$ac_cv_prog_FILECMD"; then
  5974. ac_ct_FILECMD=$FILECMD
  5975. # Extract the first word of "file", so it can be a program name with args.
  5976. set dummy file; ac_word=$2
  5977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5978. printf %s "checking for $ac_word... " >&6; }
  5979. if test ${ac_cv_prog_ac_ct_FILECMD+y}
  5980. then :
  5981. printf %s "(cached) " >&6
  5982. else case e in #(
  5983. e) if test -n "$ac_ct_FILECMD"; then
  5984. ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
  5985. else
  5986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5987. for as_dir in $PATH
  5988. do
  5989. IFS=$as_save_IFS
  5990. case $as_dir in #(((
  5991. '') as_dir=./ ;;
  5992. */) ;;
  5993. *) as_dir=$as_dir/ ;;
  5994. esac
  5995. for ac_exec_ext in '' $ac_executable_extensions; do
  5996. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5997. ac_cv_prog_ac_ct_FILECMD="file"
  5998. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5999. break 2
  6000. fi
  6001. done
  6002. done
  6003. IFS=$as_save_IFS
  6004. fi ;;
  6005. esac
  6006. fi
  6007. ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
  6008. if test -n "$ac_ct_FILECMD"; then
  6009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
  6010. printf "%s\n" "$ac_ct_FILECMD" >&6; }
  6011. else
  6012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6013. printf "%s\n" "no" >&6; }
  6014. fi
  6015. if test "x$ac_ct_FILECMD" = x; then
  6016. FILECMD=":"
  6017. else
  6018. case $cross_compiling:$ac_tool_warned in
  6019. yes:)
  6020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6021. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6022. ac_tool_warned=yes ;;
  6023. esac
  6024. FILECMD=$ac_ct_FILECMD
  6025. fi
  6026. else
  6027. FILECMD="$ac_cv_prog_FILECMD"
  6028. fi
  6029. if test -n "$ac_tool_prefix"; then
  6030. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6031. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6033. printf %s "checking for $ac_word... " >&6; }
  6034. if test ${ac_cv_prog_OBJDUMP+y}
  6035. then :
  6036. printf %s "(cached) " >&6
  6037. else case e in #(
  6038. e) if test -n "$OBJDUMP"; then
  6039. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6040. else
  6041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6042. for as_dir in $PATH
  6043. do
  6044. IFS=$as_save_IFS
  6045. case $as_dir in #(((
  6046. '') as_dir=./ ;;
  6047. */) ;;
  6048. *) as_dir=$as_dir/ ;;
  6049. esac
  6050. for ac_exec_ext in '' $ac_executable_extensions; do
  6051. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6052. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6053. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6054. break 2
  6055. fi
  6056. done
  6057. done
  6058. IFS=$as_save_IFS
  6059. fi ;;
  6060. esac
  6061. fi
  6062. OBJDUMP=$ac_cv_prog_OBJDUMP
  6063. if test -n "$OBJDUMP"; then
  6064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6065. printf "%s\n" "$OBJDUMP" >&6; }
  6066. else
  6067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6068. printf "%s\n" "no" >&6; }
  6069. fi
  6070. fi
  6071. if test -z "$ac_cv_prog_OBJDUMP"; then
  6072. ac_ct_OBJDUMP=$OBJDUMP
  6073. # Extract the first word of "objdump", so it can be a program name with args.
  6074. set dummy objdump; ac_word=$2
  6075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6076. printf %s "checking for $ac_word... " >&6; }
  6077. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  6078. then :
  6079. printf %s "(cached) " >&6
  6080. else case e in #(
  6081. e) if test -n "$ac_ct_OBJDUMP"; then
  6082. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6083. else
  6084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6085. for as_dir in $PATH
  6086. do
  6087. IFS=$as_save_IFS
  6088. case $as_dir in #(((
  6089. '') as_dir=./ ;;
  6090. */) ;;
  6091. *) as_dir=$as_dir/ ;;
  6092. esac
  6093. for ac_exec_ext in '' $ac_executable_extensions; do
  6094. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6095. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6096. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6097. break 2
  6098. fi
  6099. done
  6100. done
  6101. IFS=$as_save_IFS
  6102. fi ;;
  6103. esac
  6104. fi
  6105. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6106. if test -n "$ac_ct_OBJDUMP"; then
  6107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6108. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  6109. else
  6110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6111. printf "%s\n" "no" >&6; }
  6112. fi
  6113. if test "x$ac_ct_OBJDUMP" = x; then
  6114. OBJDUMP="false"
  6115. else
  6116. case $cross_compiling:$ac_tool_warned in
  6117. yes:)
  6118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6119. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6120. ac_tool_warned=yes ;;
  6121. esac
  6122. OBJDUMP=$ac_ct_OBJDUMP
  6123. fi
  6124. else
  6125. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6126. fi
  6127. test -z "$OBJDUMP" && OBJDUMP=objdump
  6128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6129. printf %s "checking how to recognize dependent libraries... " >&6; }
  6130. if test ${lt_cv_deplibs_check_method+y}
  6131. then :
  6132. printf %s "(cached) " >&6
  6133. else case e in #(
  6134. e) lt_cv_file_magic_cmd='$MAGIC_CMD'
  6135. lt_cv_file_magic_test_file=
  6136. lt_cv_deplibs_check_method='unknown'
  6137. # Need to set the preceding variable on all platforms that support
  6138. # interlibrary dependencies.
  6139. # 'none' -- dependencies not supported.
  6140. # 'unknown' -- same as none, but documents that we really don't know.
  6141. # 'pass_all' -- all dependencies passed with no checks.
  6142. # 'test_compile' -- check by making test program.
  6143. # 'file_magic [[regex]]' -- check by looking for files in library path
  6144. # that responds to the $file_magic_cmd with a given extended regex.
  6145. # If you have 'file' or equivalent on your system and you're not sure
  6146. # whether 'pass_all' will *always* work, you probably want this one.
  6147. case $host_os in
  6148. aix[4-9]*)
  6149. lt_cv_deplibs_check_method=pass_all
  6150. ;;
  6151. beos*)
  6152. lt_cv_deplibs_check_method=pass_all
  6153. ;;
  6154. bsdi[45]*)
  6155. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6156. lt_cv_file_magic_cmd='$FILECMD -L'
  6157. lt_cv_file_magic_test_file=/shlib/libc.so
  6158. ;;
  6159. cygwin*)
  6160. # func_win32_libid is a shell function defined in ltmain.sh
  6161. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6162. lt_cv_file_magic_cmd='func_win32_libid'
  6163. ;;
  6164. mingw* | pw32*)
  6165. # Base MSYS/MinGW do not provide the 'file' command needed by
  6166. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6167. # unless we find 'file', for example because we are cross-compiling.
  6168. if ( file / ) >/dev/null 2>&1; then
  6169. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6170. lt_cv_file_magic_cmd='func_win32_libid'
  6171. else
  6172. # Keep this pattern in sync with the one in func_win32_libid.
  6173. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  6174. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6175. fi
  6176. ;;
  6177. cegcc*)
  6178. # use the weaker test based on 'objdump'. See mingw*.
  6179. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6180. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6181. ;;
  6182. darwin* | rhapsody*)
  6183. lt_cv_deplibs_check_method=pass_all
  6184. ;;
  6185. freebsd* | dragonfly* | midnightbsd*)
  6186. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6187. case $host_cpu in
  6188. i*86 )
  6189. # Not sure whether the presence of OpenBSD here was a mistake.
  6190. # Let's accept both of them until this is cleared up.
  6191. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6192. lt_cv_file_magic_cmd=$FILECMD
  6193. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6194. ;;
  6195. esac
  6196. else
  6197. lt_cv_deplibs_check_method=pass_all
  6198. fi
  6199. ;;
  6200. haiku*)
  6201. lt_cv_deplibs_check_method=pass_all
  6202. ;;
  6203. hpux10.20* | hpux11*)
  6204. lt_cv_file_magic_cmd=$FILECMD
  6205. case $host_cpu in
  6206. ia64*)
  6207. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6208. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6209. ;;
  6210. hppa*64*)
  6211. 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]'
  6212. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6213. ;;
  6214. *)
  6215. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6216. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6217. ;;
  6218. esac
  6219. ;;
  6220. interix[3-9]*)
  6221. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6222. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6223. ;;
  6224. irix5* | irix6* | nonstopux*)
  6225. case $LD in
  6226. *-32|*"-32 ") libmagic=32-bit;;
  6227. *-n32|*"-n32 ") libmagic=N32;;
  6228. *-64|*"-64 ") libmagic=64-bit;;
  6229. *) libmagic=never-match;;
  6230. esac
  6231. lt_cv_deplibs_check_method=pass_all
  6232. ;;
  6233. # This must be glibc/ELF.
  6234. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6235. lt_cv_deplibs_check_method=pass_all
  6236. ;;
  6237. netbsd*)
  6238. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6239. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6240. else
  6241. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6242. fi
  6243. ;;
  6244. newos6*)
  6245. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6246. lt_cv_file_magic_cmd=$FILECMD
  6247. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6248. ;;
  6249. *nto* | *qnx*)
  6250. lt_cv_deplibs_check_method=pass_all
  6251. ;;
  6252. openbsd* | bitrig*)
  6253. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  6254. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6255. else
  6256. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6257. fi
  6258. ;;
  6259. osf3* | osf4* | osf5*)
  6260. lt_cv_deplibs_check_method=pass_all
  6261. ;;
  6262. rdos*)
  6263. lt_cv_deplibs_check_method=pass_all
  6264. ;;
  6265. solaris*)
  6266. lt_cv_deplibs_check_method=pass_all
  6267. ;;
  6268. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6269. lt_cv_deplibs_check_method=pass_all
  6270. ;;
  6271. sysv4 | sysv4.3*)
  6272. case $host_vendor in
  6273. motorola)
  6274. 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]'
  6275. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6276. ;;
  6277. ncr)
  6278. lt_cv_deplibs_check_method=pass_all
  6279. ;;
  6280. sequent)
  6281. lt_cv_file_magic_cmd='/bin/file'
  6282. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6283. ;;
  6284. sni)
  6285. lt_cv_file_magic_cmd='/bin/file'
  6286. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6287. lt_cv_file_magic_test_file=/lib/libc.so
  6288. ;;
  6289. siemens)
  6290. lt_cv_deplibs_check_method=pass_all
  6291. ;;
  6292. pc)
  6293. lt_cv_deplibs_check_method=pass_all
  6294. ;;
  6295. esac
  6296. ;;
  6297. tpf*)
  6298. lt_cv_deplibs_check_method=pass_all
  6299. ;;
  6300. os2*)
  6301. lt_cv_deplibs_check_method=pass_all
  6302. ;;
  6303. esac
  6304. ;;
  6305. esac
  6306. fi
  6307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6308. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  6309. file_magic_glob=
  6310. want_nocaseglob=no
  6311. if test "$build" = "$host"; then
  6312. case $host_os in
  6313. mingw* | pw32*)
  6314. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6315. want_nocaseglob=yes
  6316. else
  6317. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6318. fi
  6319. ;;
  6320. esac
  6321. fi
  6322. file_magic_cmd=$lt_cv_file_magic_cmd
  6323. deplibs_check_method=$lt_cv_deplibs_check_method
  6324. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6325. if test -n "$ac_tool_prefix"; then
  6326. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6327. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6329. printf %s "checking for $ac_word... " >&6; }
  6330. if test ${ac_cv_prog_DLLTOOL+y}
  6331. then :
  6332. printf %s "(cached) " >&6
  6333. else case e in #(
  6334. e) if test -n "$DLLTOOL"; then
  6335. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6336. else
  6337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6338. for as_dir in $PATH
  6339. do
  6340. IFS=$as_save_IFS
  6341. case $as_dir in #(((
  6342. '') as_dir=./ ;;
  6343. */) ;;
  6344. *) as_dir=$as_dir/ ;;
  6345. esac
  6346. for ac_exec_ext in '' $ac_executable_extensions; do
  6347. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6348. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6349. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6350. break 2
  6351. fi
  6352. done
  6353. done
  6354. IFS=$as_save_IFS
  6355. fi ;;
  6356. esac
  6357. fi
  6358. DLLTOOL=$ac_cv_prog_DLLTOOL
  6359. if test -n "$DLLTOOL"; then
  6360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6361. printf "%s\n" "$DLLTOOL" >&6; }
  6362. else
  6363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6364. printf "%s\n" "no" >&6; }
  6365. fi
  6366. fi
  6367. if test -z "$ac_cv_prog_DLLTOOL"; then
  6368. ac_ct_DLLTOOL=$DLLTOOL
  6369. # Extract the first word of "dlltool", so it can be a program name with args.
  6370. set dummy dlltool; ac_word=$2
  6371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6372. printf %s "checking for $ac_word... " >&6; }
  6373. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  6374. then :
  6375. printf %s "(cached) " >&6
  6376. else case e in #(
  6377. e) if test -n "$ac_ct_DLLTOOL"; then
  6378. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6379. else
  6380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6381. for as_dir in $PATH
  6382. do
  6383. IFS=$as_save_IFS
  6384. case $as_dir in #(((
  6385. '') as_dir=./ ;;
  6386. */) ;;
  6387. *) as_dir=$as_dir/ ;;
  6388. esac
  6389. for ac_exec_ext in '' $ac_executable_extensions; do
  6390. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6391. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6392. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6393. break 2
  6394. fi
  6395. done
  6396. done
  6397. IFS=$as_save_IFS
  6398. fi ;;
  6399. esac
  6400. fi
  6401. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6402. if test -n "$ac_ct_DLLTOOL"; then
  6403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6404. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  6405. else
  6406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6407. printf "%s\n" "no" >&6; }
  6408. fi
  6409. if test "x$ac_ct_DLLTOOL" = x; then
  6410. DLLTOOL="false"
  6411. else
  6412. case $cross_compiling:$ac_tool_warned in
  6413. yes:)
  6414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6415. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6416. ac_tool_warned=yes ;;
  6417. esac
  6418. DLLTOOL=$ac_ct_DLLTOOL
  6419. fi
  6420. else
  6421. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6422. fi
  6423. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6425. printf %s "checking how to associate runtime and link libraries... " >&6; }
  6426. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  6427. then :
  6428. printf %s "(cached) " >&6
  6429. else case e in #(
  6430. e) lt_cv_sharedlib_from_linklib_cmd='unknown'
  6431. case $host_os in
  6432. cygwin* | mingw* | pw32* | cegcc*)
  6433. # two different shell functions defined in ltmain.sh;
  6434. # decide which one to use based on capabilities of $DLLTOOL
  6435. case `$DLLTOOL --help 2>&1` in
  6436. *--identify-strict*)
  6437. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6438. ;;
  6439. *)
  6440. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6441. ;;
  6442. esac
  6443. ;;
  6444. *)
  6445. # fallback: assume linklib IS sharedlib
  6446. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  6447. ;;
  6448. esac
  6449. ;;
  6450. esac
  6451. fi
  6452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6453. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6454. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6455. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6456. if test -n "$ac_tool_prefix"; then
  6457. for ac_prog in ar
  6458. do
  6459. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6460. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6462. printf %s "checking for $ac_word... " >&6; }
  6463. if test ${ac_cv_prog_AR+y}
  6464. then :
  6465. printf %s "(cached) " >&6
  6466. else case e in #(
  6467. e) if test -n "$AR"; then
  6468. ac_cv_prog_AR="$AR" # Let the user override the test.
  6469. else
  6470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6471. for as_dir in $PATH
  6472. do
  6473. IFS=$as_save_IFS
  6474. case $as_dir in #(((
  6475. '') as_dir=./ ;;
  6476. */) ;;
  6477. *) as_dir=$as_dir/ ;;
  6478. esac
  6479. for ac_exec_ext in '' $ac_executable_extensions; do
  6480. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6481. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6482. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6483. break 2
  6484. fi
  6485. done
  6486. done
  6487. IFS=$as_save_IFS
  6488. fi ;;
  6489. esac
  6490. fi
  6491. AR=$ac_cv_prog_AR
  6492. if test -n "$AR"; then
  6493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6494. printf "%s\n" "$AR" >&6; }
  6495. else
  6496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6497. printf "%s\n" "no" >&6; }
  6498. fi
  6499. test -n "$AR" && break
  6500. done
  6501. fi
  6502. if test -z "$AR"; then
  6503. ac_ct_AR=$AR
  6504. for ac_prog in ar
  6505. do
  6506. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6507. set dummy $ac_prog; ac_word=$2
  6508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6509. printf %s "checking for $ac_word... " >&6; }
  6510. if test ${ac_cv_prog_ac_ct_AR+y}
  6511. then :
  6512. printf %s "(cached) " >&6
  6513. else case e in #(
  6514. e) if test -n "$ac_ct_AR"; then
  6515. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6516. else
  6517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6518. for as_dir in $PATH
  6519. do
  6520. IFS=$as_save_IFS
  6521. case $as_dir in #(((
  6522. '') as_dir=./ ;;
  6523. */) ;;
  6524. *) as_dir=$as_dir/ ;;
  6525. esac
  6526. for ac_exec_ext in '' $ac_executable_extensions; do
  6527. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6528. ac_cv_prog_ac_ct_AR="$ac_prog"
  6529. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6530. break 2
  6531. fi
  6532. done
  6533. done
  6534. IFS=$as_save_IFS
  6535. fi ;;
  6536. esac
  6537. fi
  6538. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6539. if test -n "$ac_ct_AR"; then
  6540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6541. printf "%s\n" "$ac_ct_AR" >&6; }
  6542. else
  6543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6544. printf "%s\n" "no" >&6; }
  6545. fi
  6546. test -n "$ac_ct_AR" && break
  6547. done
  6548. if test "x$ac_ct_AR" = x; then
  6549. AR="false"
  6550. else
  6551. case $cross_compiling:$ac_tool_warned in
  6552. yes:)
  6553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6554. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6555. ac_tool_warned=yes ;;
  6556. esac
  6557. AR=$ac_ct_AR
  6558. fi
  6559. fi
  6560. : ${AR=ar}
  6561. # Use ARFLAGS variable as AR's operation code to sync the variable naming with
  6562. # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
  6563. # higher priority because thats what people were doing historically (setting
  6564. # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
  6565. # variable obsoleted/removed.
  6566. test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
  6567. lt_ar_flags=$AR_FLAGS
  6568. # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
  6569. # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
  6570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6571. printf %s "checking for archiver @FILE support... " >&6; }
  6572. if test ${lt_cv_ar_at_file+y}
  6573. then :
  6574. printf %s "(cached) " >&6
  6575. else case e in #(
  6576. e) lt_cv_ar_at_file=no
  6577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6578. /* end confdefs.h. */
  6579. int
  6580. main (void)
  6581. {
  6582. ;
  6583. return 0;
  6584. }
  6585. _ACEOF
  6586. if ac_fn_c_try_compile "$LINENO"
  6587. then :
  6588. echo conftest.$ac_objext > conftest.lst
  6589. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6590. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6591. (eval $lt_ar_try) 2>&5
  6592. ac_status=$?
  6593. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6594. test $ac_status = 0; }
  6595. if test 0 -eq "$ac_status"; then
  6596. # Ensure the archiver fails upon bogus file names.
  6597. rm -f conftest.$ac_objext libconftest.a
  6598. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6599. (eval $lt_ar_try) 2>&5
  6600. ac_status=$?
  6601. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6602. test $ac_status = 0; }
  6603. if test 0 -ne "$ac_status"; then
  6604. lt_cv_ar_at_file=@
  6605. fi
  6606. fi
  6607. rm -f conftest.* libconftest.a
  6608. fi
  6609. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6610. ;;
  6611. esac
  6612. fi
  6613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6614. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  6615. if test no = "$lt_cv_ar_at_file"; then
  6616. archiver_list_spec=
  6617. else
  6618. archiver_list_spec=$lt_cv_ar_at_file
  6619. fi
  6620. if test -n "$ac_tool_prefix"; then
  6621. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6622. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6624. printf %s "checking for $ac_word... " >&6; }
  6625. if test ${ac_cv_prog_STRIP+y}
  6626. then :
  6627. printf %s "(cached) " >&6
  6628. else case e in #(
  6629. e) if test -n "$STRIP"; then
  6630. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6631. else
  6632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6633. for as_dir in $PATH
  6634. do
  6635. IFS=$as_save_IFS
  6636. case $as_dir in #(((
  6637. '') as_dir=./ ;;
  6638. */) ;;
  6639. *) as_dir=$as_dir/ ;;
  6640. esac
  6641. for ac_exec_ext in '' $ac_executable_extensions; do
  6642. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6643. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6644. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6645. break 2
  6646. fi
  6647. done
  6648. done
  6649. IFS=$as_save_IFS
  6650. fi ;;
  6651. esac
  6652. fi
  6653. STRIP=$ac_cv_prog_STRIP
  6654. if test -n "$STRIP"; then
  6655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6656. printf "%s\n" "$STRIP" >&6; }
  6657. else
  6658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6659. printf "%s\n" "no" >&6; }
  6660. fi
  6661. fi
  6662. if test -z "$ac_cv_prog_STRIP"; then
  6663. ac_ct_STRIP=$STRIP
  6664. # Extract the first word of "strip", so it can be a program name with args.
  6665. set dummy strip; ac_word=$2
  6666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6667. printf %s "checking for $ac_word... " >&6; }
  6668. if test ${ac_cv_prog_ac_ct_STRIP+y}
  6669. then :
  6670. printf %s "(cached) " >&6
  6671. else case e in #(
  6672. e) if test -n "$ac_ct_STRIP"; then
  6673. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6674. else
  6675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6676. for as_dir in $PATH
  6677. do
  6678. IFS=$as_save_IFS
  6679. case $as_dir in #(((
  6680. '') as_dir=./ ;;
  6681. */) ;;
  6682. *) as_dir=$as_dir/ ;;
  6683. esac
  6684. for ac_exec_ext in '' $ac_executable_extensions; do
  6685. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6686. ac_cv_prog_ac_ct_STRIP="strip"
  6687. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6688. break 2
  6689. fi
  6690. done
  6691. done
  6692. IFS=$as_save_IFS
  6693. fi ;;
  6694. esac
  6695. fi
  6696. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6697. if test -n "$ac_ct_STRIP"; then
  6698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6699. printf "%s\n" "$ac_ct_STRIP" >&6; }
  6700. else
  6701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6702. printf "%s\n" "no" >&6; }
  6703. fi
  6704. if test "x$ac_ct_STRIP" = x; then
  6705. STRIP=":"
  6706. else
  6707. case $cross_compiling:$ac_tool_warned in
  6708. yes:)
  6709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6710. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6711. ac_tool_warned=yes ;;
  6712. esac
  6713. STRIP=$ac_ct_STRIP
  6714. fi
  6715. else
  6716. STRIP="$ac_cv_prog_STRIP"
  6717. fi
  6718. test -z "$STRIP" && STRIP=:
  6719. if test -n "$ac_tool_prefix"; then
  6720. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6721. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6723. printf %s "checking for $ac_word... " >&6; }
  6724. if test ${ac_cv_prog_RANLIB+y}
  6725. then :
  6726. printf %s "(cached) " >&6
  6727. else case e in #(
  6728. e) if test -n "$RANLIB"; then
  6729. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6730. else
  6731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6732. for as_dir in $PATH
  6733. do
  6734. IFS=$as_save_IFS
  6735. case $as_dir in #(((
  6736. '') as_dir=./ ;;
  6737. */) ;;
  6738. *) as_dir=$as_dir/ ;;
  6739. esac
  6740. for ac_exec_ext in '' $ac_executable_extensions; do
  6741. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6742. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6743. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6744. break 2
  6745. fi
  6746. done
  6747. done
  6748. IFS=$as_save_IFS
  6749. fi ;;
  6750. esac
  6751. fi
  6752. RANLIB=$ac_cv_prog_RANLIB
  6753. if test -n "$RANLIB"; then
  6754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6755. printf "%s\n" "$RANLIB" >&6; }
  6756. else
  6757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6758. printf "%s\n" "no" >&6; }
  6759. fi
  6760. fi
  6761. if test -z "$ac_cv_prog_RANLIB"; then
  6762. ac_ct_RANLIB=$RANLIB
  6763. # Extract the first word of "ranlib", so it can be a program name with args.
  6764. set dummy ranlib; ac_word=$2
  6765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6766. printf %s "checking for $ac_word... " >&6; }
  6767. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  6768. then :
  6769. printf %s "(cached) " >&6
  6770. else case e in #(
  6771. e) if test -n "$ac_ct_RANLIB"; then
  6772. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6773. else
  6774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6775. for as_dir in $PATH
  6776. do
  6777. IFS=$as_save_IFS
  6778. case $as_dir in #(((
  6779. '') as_dir=./ ;;
  6780. */) ;;
  6781. *) as_dir=$as_dir/ ;;
  6782. esac
  6783. for ac_exec_ext in '' $ac_executable_extensions; do
  6784. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6785. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6786. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6787. break 2
  6788. fi
  6789. done
  6790. done
  6791. IFS=$as_save_IFS
  6792. fi ;;
  6793. esac
  6794. fi
  6795. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6796. if test -n "$ac_ct_RANLIB"; then
  6797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6798. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  6799. else
  6800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6801. printf "%s\n" "no" >&6; }
  6802. fi
  6803. if test "x$ac_ct_RANLIB" = x; then
  6804. RANLIB=":"
  6805. else
  6806. case $cross_compiling:$ac_tool_warned in
  6807. yes:)
  6808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6809. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6810. ac_tool_warned=yes ;;
  6811. esac
  6812. RANLIB=$ac_ct_RANLIB
  6813. fi
  6814. else
  6815. RANLIB="$ac_cv_prog_RANLIB"
  6816. fi
  6817. test -z "$RANLIB" && RANLIB=:
  6818. # Determine commands to create old-style static archives.
  6819. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6820. old_postinstall_cmds='chmod 644 $oldlib'
  6821. old_postuninstall_cmds=
  6822. if test -n "$RANLIB"; then
  6823. case $host_os in
  6824. bitrig* | openbsd*)
  6825. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6826. ;;
  6827. *)
  6828. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6829. ;;
  6830. esac
  6831. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6832. fi
  6833. case $host_os in
  6834. darwin*)
  6835. lock_old_archive_extraction=yes ;;
  6836. *)
  6837. lock_old_archive_extraction=no ;;
  6838. esac
  6839. # If no C compiler was specified, use CC.
  6840. LTCC=${LTCC-"$CC"}
  6841. # If no C compiler flags were specified, use CFLAGS.
  6842. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6843. # Allow CC to be a program name with arguments.
  6844. compiler=$CC
  6845. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6847. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  6848. if test ${lt_cv_sys_global_symbol_pipe+y}
  6849. then :
  6850. printf %s "(cached) " >&6
  6851. else case e in #(
  6852. e)
  6853. # These are sane defaults that work on at least a few old systems.
  6854. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6855. # Character class describing NM global symbol codes.
  6856. symcode='[BCDEGRST]'
  6857. # Regexp to match symbols that can be accessed directly from C.
  6858. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6859. # Define system-specific variables.
  6860. case $host_os in
  6861. aix*)
  6862. symcode='[BCDT]'
  6863. ;;
  6864. cygwin* | mingw* | pw32* | cegcc*)
  6865. symcode='[ABCDGISTW]'
  6866. ;;
  6867. hpux*)
  6868. if test ia64 = "$host_cpu"; then
  6869. symcode='[ABCDEGRST]'
  6870. fi
  6871. ;;
  6872. irix* | nonstopux*)
  6873. symcode='[BCDEGRST]'
  6874. ;;
  6875. osf*)
  6876. symcode='[BCDEGQRST]'
  6877. ;;
  6878. solaris*)
  6879. symcode='[BDRT]'
  6880. ;;
  6881. sco3.2v5*)
  6882. symcode='[DT]'
  6883. ;;
  6884. sysv4.2uw2*)
  6885. symcode='[DT]'
  6886. ;;
  6887. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6888. symcode='[ABDT]'
  6889. ;;
  6890. sysv4)
  6891. symcode='[DFNSTU]'
  6892. ;;
  6893. esac
  6894. # If we're using GNU nm, then use its standard symbol codes.
  6895. case `$NM -V 2>&1` in
  6896. *GNU* | *'with BFD'*)
  6897. symcode='[ABCDGIRSTW]' ;;
  6898. esac
  6899. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6900. # Gets list of data symbols to import.
  6901. lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
  6902. # Adjust the below global symbol transforms to fixup imported variables.
  6903. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6904. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6905. lt_c_name_lib_hook="\
  6906. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6907. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6908. else
  6909. # Disable hooks by default.
  6910. lt_cv_sys_global_symbol_to_import=
  6911. lt_cdecl_hook=
  6912. lt_c_name_hook=
  6913. lt_c_name_lib_hook=
  6914. fi
  6915. # Transform an extracted symbol line into a proper C declaration.
  6916. # Some systems (esp. on ia64) link data and code symbols differently,
  6917. # so use this general approach.
  6918. lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
  6919. $lt_cdecl_hook\
  6920. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6921. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6922. # Transform an extracted symbol line into symbol name and symbol address
  6923. lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
  6924. $lt_c_name_hook\
  6925. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6926. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6927. # Transform an extracted symbol line into symbol name with lib prefix and
  6928. # symbol address.
  6929. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
  6930. $lt_c_name_lib_hook\
  6931. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6932. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6933. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6934. # Handle CRLF in mingw tool chain
  6935. opt_cr=
  6936. case $build_os in
  6937. mingw*)
  6938. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6939. ;;
  6940. esac
  6941. # Try without a prefix underscore, then with it.
  6942. for ac_symprfx in "" "_"; do
  6943. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6944. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6945. # Write the raw and C identifiers.
  6946. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6947. # Fake it for dumpbin and say T for any non-static function,
  6948. # D for any global variable and I for any imported variable.
  6949. # Also find C++ and __fastcall symbols from MSVC++ or ICC,
  6950. # which start with @ or ?.
  6951. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6952. " {last_section=section; section=\$ 3};"\
  6953. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6954. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6955. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6956. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6957. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6958. " \$ 0!~/External *\|/{next};"\
  6959. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6960. " {if(hide[section]) next};"\
  6961. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6962. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6963. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6964. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6965. " ' prfx=^$ac_symprfx"
  6966. else
  6967. lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6968. fi
  6969. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
  6970. # Check to see that the pipe works correctly.
  6971. pipe_works=no
  6972. rm -f conftest*
  6973. cat > conftest.$ac_ext <<_LT_EOF
  6974. #ifdef __cplusplus
  6975. extern "C" {
  6976. #endif
  6977. char nm_test_var;
  6978. void nm_test_func(void);
  6979. void nm_test_func(void){}
  6980. #ifdef __cplusplus
  6981. }
  6982. #endif
  6983. int main(){nm_test_var='a';nm_test_func();return(0);}
  6984. _LT_EOF
  6985. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6986. (eval $ac_compile) 2>&5
  6987. ac_status=$?
  6988. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6989. test $ac_status = 0; }; then
  6990. # Now try to grab the symbols.
  6991. nlist=conftest.nm
  6992. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6993. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6994. ac_status=$?
  6995. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6996. test $ac_status = 0; } && test -s "$nlist"; then
  6997. # Try sorting and uniquifying the output.
  6998. if sort "$nlist" | uniq > "$nlist"T; then
  6999. mv -f "$nlist"T "$nlist"
  7000. else
  7001. rm -f "$nlist"T
  7002. fi
  7003. # Make sure that we snagged all the symbols we need.
  7004. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  7005. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  7006. cat <<_LT_EOF > conftest.$ac_ext
  7007. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  7008. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  7009. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  7010. relocations are performed -- see ld's documentation on pseudo-relocs. */
  7011. # define LT_DLSYM_CONST
  7012. #elif defined __osf__
  7013. /* This system does not cope well with relocations in const data. */
  7014. # define LT_DLSYM_CONST
  7015. #else
  7016. # define LT_DLSYM_CONST const
  7017. #endif
  7018. #ifdef __cplusplus
  7019. extern "C" {
  7020. #endif
  7021. _LT_EOF
  7022. # Now generate the symbol file.
  7023. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  7024. cat <<_LT_EOF >> conftest.$ac_ext
  7025. /* The mapping between symbol names and symbols. */
  7026. LT_DLSYM_CONST struct {
  7027. const char *name;
  7028. void *address;
  7029. }
  7030. lt__PROGRAM__LTX_preloaded_symbols[] =
  7031. {
  7032. { "@PROGRAM@", (void *) 0 },
  7033. _LT_EOF
  7034. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  7035. cat <<\_LT_EOF >> conftest.$ac_ext
  7036. {0, (void *) 0}
  7037. };
  7038. /* This works around a problem in FreeBSD linker */
  7039. #ifdef FREEBSD_WORKAROUND
  7040. static const void *lt_preloaded_setup() {
  7041. return lt__PROGRAM__LTX_preloaded_symbols;
  7042. }
  7043. #endif
  7044. #ifdef __cplusplus
  7045. }
  7046. #endif
  7047. _LT_EOF
  7048. # Now try linking the two files.
  7049. mv conftest.$ac_objext conftstm.$ac_objext
  7050. lt_globsym_save_LIBS=$LIBS
  7051. lt_globsym_save_CFLAGS=$CFLAGS
  7052. LIBS=conftstm.$ac_objext
  7053. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  7054. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7055. (eval $ac_link) 2>&5
  7056. ac_status=$?
  7057. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7058. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  7059. pipe_works=yes
  7060. fi
  7061. LIBS=$lt_globsym_save_LIBS
  7062. CFLAGS=$lt_globsym_save_CFLAGS
  7063. else
  7064. echo "cannot find nm_test_func in $nlist" >&5
  7065. fi
  7066. else
  7067. echo "cannot find nm_test_var in $nlist" >&5
  7068. fi
  7069. else
  7070. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  7071. fi
  7072. else
  7073. echo "$progname: failed program was:" >&5
  7074. cat conftest.$ac_ext >&5
  7075. fi
  7076. rm -rf conftest* conftst*
  7077. # Do not use the global_symbol_pipe unless it works.
  7078. if test yes = "$pipe_works"; then
  7079. break
  7080. else
  7081. lt_cv_sys_global_symbol_pipe=
  7082. fi
  7083. done
  7084. ;;
  7085. esac
  7086. fi
  7087. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7088. lt_cv_sys_global_symbol_to_cdecl=
  7089. fi
  7090. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  7091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  7092. printf "%s\n" "failed" >&6; }
  7093. else
  7094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  7095. printf "%s\n" "ok" >&6; }
  7096. fi
  7097. # Response file support.
  7098. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7099. nm_file_list_spec='@'
  7100. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  7101. nm_file_list_spec='@'
  7102. fi
  7103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  7104. printf %s "checking for sysroot... " >&6; }
  7105. # Check whether --with-sysroot was given.
  7106. if test ${with_sysroot+y}
  7107. then :
  7108. withval=$with_sysroot;
  7109. else case e in #(
  7110. e) with_sysroot=no ;;
  7111. esac
  7112. fi
  7113. lt_sysroot=
  7114. case $with_sysroot in #(
  7115. yes)
  7116. if test yes = "$GCC"; then
  7117. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  7118. fi
  7119. ;; #(
  7120. /*)
  7121. lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
  7122. ;; #(
  7123. no|'')
  7124. ;; #(
  7125. *)
  7126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  7127. printf "%s\n" "$with_sysroot" >&6; }
  7128. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  7129. ;;
  7130. esac
  7131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  7132. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  7133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  7134. printf %s "checking for a working dd... " >&6; }
  7135. if test ${ac_cv_path_lt_DD+y}
  7136. then :
  7137. printf %s "(cached) " >&6
  7138. else case e in #(
  7139. e) printf 0123456789abcdef0123456789abcdef >conftest.i
  7140. cat conftest.i conftest.i >conftest2.i
  7141. : ${lt_DD:=$DD}
  7142. if test -z "$lt_DD"; then
  7143. ac_path_lt_DD_found=false
  7144. # Loop through the user's path and test for each of PROGNAME-LIST
  7145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7146. for as_dir in $PATH
  7147. do
  7148. IFS=$as_save_IFS
  7149. case $as_dir in #(((
  7150. '') as_dir=./ ;;
  7151. */) ;;
  7152. *) as_dir=$as_dir/ ;;
  7153. esac
  7154. for ac_prog in dd
  7155. do
  7156. for ac_exec_ext in '' $ac_executable_extensions; do
  7157. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  7158. as_fn_executable_p "$ac_path_lt_DD" || continue
  7159. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7160. cmp -s conftest.i conftest.out \
  7161. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  7162. fi
  7163. $ac_path_lt_DD_found && break 3
  7164. done
  7165. done
  7166. done
  7167. IFS=$as_save_IFS
  7168. if test -z "$ac_cv_path_lt_DD"; then
  7169. :
  7170. fi
  7171. else
  7172. ac_cv_path_lt_DD=$lt_DD
  7173. fi
  7174. rm -f conftest.i conftest2.i conftest.out ;;
  7175. esac
  7176. fi
  7177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  7178. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  7179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  7180. printf %s "checking how to truncate binary pipes... " >&6; }
  7181. if test ${lt_cv_truncate_bin+y}
  7182. then :
  7183. printf %s "(cached) " >&6
  7184. else case e in #(
  7185. e) printf 0123456789abcdef0123456789abcdef >conftest.i
  7186. cat conftest.i conftest.i >conftest2.i
  7187. lt_cv_truncate_bin=
  7188. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7189. cmp -s conftest.i conftest.out \
  7190. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  7191. fi
  7192. rm -f conftest.i conftest2.i conftest.out
  7193. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
  7194. esac
  7195. fi
  7196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  7197. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  7198. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  7199. func_cc_basename ()
  7200. {
  7201. for cc_temp in $*""; do
  7202. case $cc_temp in
  7203. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7204. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7205. \-*) ;;
  7206. *) break;;
  7207. esac
  7208. done
  7209. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7210. }
  7211. # Check whether --enable-libtool-lock was given.
  7212. if test ${enable_libtool_lock+y}
  7213. then :
  7214. enableval=$enable_libtool_lock;
  7215. fi
  7216. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  7217. # Some flags need to be propagated to the compiler or linker for good
  7218. # libtool support.
  7219. case $host in
  7220. ia64-*-hpux*)
  7221. # Find out what ABI is being produced by ac_compile, and set mode
  7222. # options accordingly.
  7223. echo 'int i;' > conftest.$ac_ext
  7224. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7225. (eval $ac_compile) 2>&5
  7226. ac_status=$?
  7227. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7228. test $ac_status = 0; }; then
  7229. case `$FILECMD conftest.$ac_objext` in
  7230. *ELF-32*)
  7231. HPUX_IA64_MODE=32
  7232. ;;
  7233. *ELF-64*)
  7234. HPUX_IA64_MODE=64
  7235. ;;
  7236. esac
  7237. fi
  7238. rm -rf conftest*
  7239. ;;
  7240. *-*-irix6*)
  7241. # Find out what ABI is being produced by ac_compile, and set linker
  7242. # options accordingly.
  7243. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7244. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7245. (eval $ac_compile) 2>&5
  7246. ac_status=$?
  7247. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7248. test $ac_status = 0; }; then
  7249. if test yes = "$lt_cv_prog_gnu_ld"; then
  7250. case `$FILECMD conftest.$ac_objext` in
  7251. *32-bit*)
  7252. LD="${LD-ld} -melf32bsmip"
  7253. ;;
  7254. *N32*)
  7255. LD="${LD-ld} -melf32bmipn32"
  7256. ;;
  7257. *64-bit*)
  7258. LD="${LD-ld} -melf64bmip"
  7259. ;;
  7260. esac
  7261. else
  7262. case `$FILECMD conftest.$ac_objext` in
  7263. *32-bit*)
  7264. LD="${LD-ld} -32"
  7265. ;;
  7266. *N32*)
  7267. LD="${LD-ld} -n32"
  7268. ;;
  7269. *64-bit*)
  7270. LD="${LD-ld} -64"
  7271. ;;
  7272. esac
  7273. fi
  7274. fi
  7275. rm -rf conftest*
  7276. ;;
  7277. mips64*-*linux*)
  7278. # Find out what ABI is being produced by ac_compile, and set linker
  7279. # options accordingly.
  7280. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7281. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7282. (eval $ac_compile) 2>&5
  7283. ac_status=$?
  7284. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7285. test $ac_status = 0; }; then
  7286. emul=elf
  7287. case `$FILECMD conftest.$ac_objext` in
  7288. *32-bit*)
  7289. emul="${emul}32"
  7290. ;;
  7291. *64-bit*)
  7292. emul="${emul}64"
  7293. ;;
  7294. esac
  7295. case `$FILECMD conftest.$ac_objext` in
  7296. *MSB*)
  7297. emul="${emul}btsmip"
  7298. ;;
  7299. *LSB*)
  7300. emul="${emul}ltsmip"
  7301. ;;
  7302. esac
  7303. case `$FILECMD conftest.$ac_objext` in
  7304. *N32*)
  7305. emul="${emul}n32"
  7306. ;;
  7307. esac
  7308. LD="${LD-ld} -m $emul"
  7309. fi
  7310. rm -rf conftest*
  7311. ;;
  7312. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  7313. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7314. # Find out what ABI is being produced by ac_compile, and set linker
  7315. # options accordingly. Note that the listed cases only cover the
  7316. # situations where additional linker options are needed (such as when
  7317. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  7318. # vice versa); the common cases where no linker options are needed do
  7319. # not appear in the list.
  7320. echo 'int i;' > conftest.$ac_ext
  7321. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7322. (eval $ac_compile) 2>&5
  7323. ac_status=$?
  7324. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7325. test $ac_status = 0; }; then
  7326. case `$FILECMD conftest.o` in
  7327. *32-bit*)
  7328. case $host in
  7329. x86_64-*kfreebsd*-gnu)
  7330. LD="${LD-ld} -m elf_i386_fbsd"
  7331. ;;
  7332. x86_64-*linux*)
  7333. case `$FILECMD conftest.o` in
  7334. *x86-64*)
  7335. LD="${LD-ld} -m elf32_x86_64"
  7336. ;;
  7337. *)
  7338. LD="${LD-ld} -m elf_i386"
  7339. ;;
  7340. esac
  7341. ;;
  7342. powerpc64le-*linux*)
  7343. LD="${LD-ld} -m elf32lppclinux"
  7344. ;;
  7345. powerpc64-*linux*)
  7346. LD="${LD-ld} -m elf32ppclinux"
  7347. ;;
  7348. s390x-*linux*)
  7349. LD="${LD-ld} -m elf_s390"
  7350. ;;
  7351. sparc64-*linux*)
  7352. LD="${LD-ld} -m elf32_sparc"
  7353. ;;
  7354. esac
  7355. ;;
  7356. *64-bit*)
  7357. case $host in
  7358. x86_64-*kfreebsd*-gnu)
  7359. LD="${LD-ld} -m elf_x86_64_fbsd"
  7360. ;;
  7361. x86_64-*linux*)
  7362. LD="${LD-ld} -m elf_x86_64"
  7363. ;;
  7364. powerpcle-*linux*)
  7365. LD="${LD-ld} -m elf64lppc"
  7366. ;;
  7367. powerpc-*linux*)
  7368. LD="${LD-ld} -m elf64ppc"
  7369. ;;
  7370. s390*-*linux*|s390*-*tpf*)
  7371. LD="${LD-ld} -m elf64_s390"
  7372. ;;
  7373. sparc*-*linux*)
  7374. LD="${LD-ld} -m elf64_sparc"
  7375. ;;
  7376. esac
  7377. ;;
  7378. esac
  7379. fi
  7380. rm -rf conftest*
  7381. ;;
  7382. *-*-sco3.2v5*)
  7383. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7384. SAVE_CFLAGS=$CFLAGS
  7385. CFLAGS="$CFLAGS -belf"
  7386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7387. printf %s "checking whether the C compiler needs -belf... " >&6; }
  7388. if test ${lt_cv_cc_needs_belf+y}
  7389. then :
  7390. printf %s "(cached) " >&6
  7391. else case e in #(
  7392. e) ac_ext=c
  7393. ac_cpp='$CPP $CPPFLAGS'
  7394. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7395. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7396. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7398. /* end confdefs.h. */
  7399. int
  7400. main (void)
  7401. {
  7402. ;
  7403. return 0;
  7404. }
  7405. _ACEOF
  7406. if ac_fn_c_try_link "$LINENO"
  7407. then :
  7408. lt_cv_cc_needs_belf=yes
  7409. else case e in #(
  7410. e) lt_cv_cc_needs_belf=no ;;
  7411. esac
  7412. fi
  7413. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7414. conftest$ac_exeext conftest.$ac_ext
  7415. ac_ext=c
  7416. ac_cpp='$CPP $CPPFLAGS'
  7417. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7418. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7419. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7420. ;;
  7421. esac
  7422. fi
  7423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7424. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  7425. if test yes != "$lt_cv_cc_needs_belf"; then
  7426. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7427. CFLAGS=$SAVE_CFLAGS
  7428. fi
  7429. ;;
  7430. *-*solaris*)
  7431. # Find out what ABI is being produced by ac_compile, and set linker
  7432. # options accordingly.
  7433. echo 'int i;' > conftest.$ac_ext
  7434. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7435. (eval $ac_compile) 2>&5
  7436. ac_status=$?
  7437. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7438. test $ac_status = 0; }; then
  7439. case `$FILECMD conftest.o` in
  7440. *64-bit*)
  7441. case $lt_cv_prog_gnu_ld in
  7442. yes*)
  7443. case $host in
  7444. i?86-*-solaris*|x86_64-*-solaris*)
  7445. LD="${LD-ld} -m elf_x86_64"
  7446. ;;
  7447. sparc*-*-solaris*)
  7448. LD="${LD-ld} -m elf64_sparc"
  7449. ;;
  7450. esac
  7451. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  7452. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7453. LD=${LD-ld}_sol2
  7454. fi
  7455. ;;
  7456. *)
  7457. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7458. LD="${LD-ld} -64"
  7459. fi
  7460. ;;
  7461. esac
  7462. ;;
  7463. esac
  7464. fi
  7465. rm -rf conftest*
  7466. ;;
  7467. esac
  7468. need_locks=$enable_libtool_lock
  7469. if test -n "$ac_tool_prefix"; then
  7470. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7471. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7473. printf %s "checking for $ac_word... " >&6; }
  7474. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  7475. then :
  7476. printf %s "(cached) " >&6
  7477. else case e in #(
  7478. e) if test -n "$MANIFEST_TOOL"; then
  7479. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7480. else
  7481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7482. for as_dir in $PATH
  7483. do
  7484. IFS=$as_save_IFS
  7485. case $as_dir in #(((
  7486. '') as_dir=./ ;;
  7487. */) ;;
  7488. *) as_dir=$as_dir/ ;;
  7489. esac
  7490. for ac_exec_ext in '' $ac_executable_extensions; do
  7491. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7492. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7493. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7494. break 2
  7495. fi
  7496. done
  7497. done
  7498. IFS=$as_save_IFS
  7499. fi ;;
  7500. esac
  7501. fi
  7502. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7503. if test -n "$MANIFEST_TOOL"; then
  7504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7505. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  7506. else
  7507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7508. printf "%s\n" "no" >&6; }
  7509. fi
  7510. fi
  7511. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7512. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7513. # Extract the first word of "mt", so it can be a program name with args.
  7514. set dummy mt; ac_word=$2
  7515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7516. printf %s "checking for $ac_word... " >&6; }
  7517. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  7518. then :
  7519. printf %s "(cached) " >&6
  7520. else case e in #(
  7521. e) if test -n "$ac_ct_MANIFEST_TOOL"; then
  7522. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7523. else
  7524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7525. for as_dir in $PATH
  7526. do
  7527. IFS=$as_save_IFS
  7528. case $as_dir in #(((
  7529. '') as_dir=./ ;;
  7530. */) ;;
  7531. *) as_dir=$as_dir/ ;;
  7532. esac
  7533. for ac_exec_ext in '' $ac_executable_extensions; do
  7534. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7535. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7536. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7537. break 2
  7538. fi
  7539. done
  7540. done
  7541. IFS=$as_save_IFS
  7542. fi ;;
  7543. esac
  7544. fi
  7545. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7546. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7548. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  7549. else
  7550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7551. printf "%s\n" "no" >&6; }
  7552. fi
  7553. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7554. MANIFEST_TOOL=":"
  7555. else
  7556. case $cross_compiling:$ac_tool_warned in
  7557. yes:)
  7558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7559. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7560. ac_tool_warned=yes ;;
  7561. esac
  7562. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7563. fi
  7564. else
  7565. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7566. fi
  7567. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7569. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7570. if test ${lt_cv_path_mainfest_tool+y}
  7571. then :
  7572. printf %s "(cached) " >&6
  7573. else case e in #(
  7574. e) lt_cv_path_mainfest_tool=no
  7575. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7576. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7577. cat conftest.err >&5
  7578. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7579. lt_cv_path_mainfest_tool=yes
  7580. fi
  7581. rm -f conftest* ;;
  7582. esac
  7583. fi
  7584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7585. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  7586. if test yes != "$lt_cv_path_mainfest_tool"; then
  7587. MANIFEST_TOOL=:
  7588. fi
  7589. case $host_os in
  7590. rhapsody* | darwin*)
  7591. if test -n "$ac_tool_prefix"; then
  7592. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7593. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7595. printf %s "checking for $ac_word... " >&6; }
  7596. if test ${ac_cv_prog_DSYMUTIL+y}
  7597. then :
  7598. printf %s "(cached) " >&6
  7599. else case e in #(
  7600. e) if test -n "$DSYMUTIL"; then
  7601. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7602. else
  7603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7604. for as_dir in $PATH
  7605. do
  7606. IFS=$as_save_IFS
  7607. case $as_dir in #(((
  7608. '') as_dir=./ ;;
  7609. */) ;;
  7610. *) as_dir=$as_dir/ ;;
  7611. esac
  7612. for ac_exec_ext in '' $ac_executable_extensions; do
  7613. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7614. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7615. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7616. break 2
  7617. fi
  7618. done
  7619. done
  7620. IFS=$as_save_IFS
  7621. fi ;;
  7622. esac
  7623. fi
  7624. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7625. if test -n "$DSYMUTIL"; then
  7626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7627. printf "%s\n" "$DSYMUTIL" >&6; }
  7628. else
  7629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7630. printf "%s\n" "no" >&6; }
  7631. fi
  7632. fi
  7633. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7634. ac_ct_DSYMUTIL=$DSYMUTIL
  7635. # Extract the first word of "dsymutil", so it can be a program name with args.
  7636. set dummy dsymutil; ac_word=$2
  7637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7638. printf %s "checking for $ac_word... " >&6; }
  7639. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  7640. then :
  7641. printf %s "(cached) " >&6
  7642. else case e in #(
  7643. e) if test -n "$ac_ct_DSYMUTIL"; then
  7644. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7645. else
  7646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7647. for as_dir in $PATH
  7648. do
  7649. IFS=$as_save_IFS
  7650. case $as_dir in #(((
  7651. '') as_dir=./ ;;
  7652. */) ;;
  7653. *) as_dir=$as_dir/ ;;
  7654. esac
  7655. for ac_exec_ext in '' $ac_executable_extensions; do
  7656. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7657. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7658. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7659. break 2
  7660. fi
  7661. done
  7662. done
  7663. IFS=$as_save_IFS
  7664. fi ;;
  7665. esac
  7666. fi
  7667. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7668. if test -n "$ac_ct_DSYMUTIL"; then
  7669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7670. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  7671. else
  7672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7673. printf "%s\n" "no" >&6; }
  7674. fi
  7675. if test "x$ac_ct_DSYMUTIL" = x; then
  7676. DSYMUTIL=":"
  7677. else
  7678. case $cross_compiling:$ac_tool_warned in
  7679. yes:)
  7680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7681. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7682. ac_tool_warned=yes ;;
  7683. esac
  7684. DSYMUTIL=$ac_ct_DSYMUTIL
  7685. fi
  7686. else
  7687. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7688. fi
  7689. if test -n "$ac_tool_prefix"; then
  7690. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7691. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7693. printf %s "checking for $ac_word... " >&6; }
  7694. if test ${ac_cv_prog_NMEDIT+y}
  7695. then :
  7696. printf %s "(cached) " >&6
  7697. else case e in #(
  7698. e) if test -n "$NMEDIT"; then
  7699. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7700. else
  7701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7702. for as_dir in $PATH
  7703. do
  7704. IFS=$as_save_IFS
  7705. case $as_dir in #(((
  7706. '') as_dir=./ ;;
  7707. */) ;;
  7708. *) as_dir=$as_dir/ ;;
  7709. esac
  7710. for ac_exec_ext in '' $ac_executable_extensions; do
  7711. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7712. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7713. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7714. break 2
  7715. fi
  7716. done
  7717. done
  7718. IFS=$as_save_IFS
  7719. fi ;;
  7720. esac
  7721. fi
  7722. NMEDIT=$ac_cv_prog_NMEDIT
  7723. if test -n "$NMEDIT"; then
  7724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7725. printf "%s\n" "$NMEDIT" >&6; }
  7726. else
  7727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7728. printf "%s\n" "no" >&6; }
  7729. fi
  7730. fi
  7731. if test -z "$ac_cv_prog_NMEDIT"; then
  7732. ac_ct_NMEDIT=$NMEDIT
  7733. # Extract the first word of "nmedit", so it can be a program name with args.
  7734. set dummy nmedit; ac_word=$2
  7735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7736. printf %s "checking for $ac_word... " >&6; }
  7737. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  7738. then :
  7739. printf %s "(cached) " >&6
  7740. else case e in #(
  7741. e) if test -n "$ac_ct_NMEDIT"; then
  7742. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7743. else
  7744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7745. for as_dir in $PATH
  7746. do
  7747. IFS=$as_save_IFS
  7748. case $as_dir in #(((
  7749. '') as_dir=./ ;;
  7750. */) ;;
  7751. *) as_dir=$as_dir/ ;;
  7752. esac
  7753. for ac_exec_ext in '' $ac_executable_extensions; do
  7754. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7755. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7756. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7757. break 2
  7758. fi
  7759. done
  7760. done
  7761. IFS=$as_save_IFS
  7762. fi ;;
  7763. esac
  7764. fi
  7765. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7766. if test -n "$ac_ct_NMEDIT"; then
  7767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7768. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  7769. else
  7770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7771. printf "%s\n" "no" >&6; }
  7772. fi
  7773. if test "x$ac_ct_NMEDIT" = x; then
  7774. NMEDIT=":"
  7775. else
  7776. case $cross_compiling:$ac_tool_warned in
  7777. yes:)
  7778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7779. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7780. ac_tool_warned=yes ;;
  7781. esac
  7782. NMEDIT=$ac_ct_NMEDIT
  7783. fi
  7784. else
  7785. NMEDIT="$ac_cv_prog_NMEDIT"
  7786. fi
  7787. if test -n "$ac_tool_prefix"; then
  7788. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7789. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7791. printf %s "checking for $ac_word... " >&6; }
  7792. if test ${ac_cv_prog_LIPO+y}
  7793. then :
  7794. printf %s "(cached) " >&6
  7795. else case e in #(
  7796. e) if test -n "$LIPO"; then
  7797. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7798. else
  7799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7800. for as_dir in $PATH
  7801. do
  7802. IFS=$as_save_IFS
  7803. case $as_dir in #(((
  7804. '') as_dir=./ ;;
  7805. */) ;;
  7806. *) as_dir=$as_dir/ ;;
  7807. esac
  7808. for ac_exec_ext in '' $ac_executable_extensions; do
  7809. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7810. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7811. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7812. break 2
  7813. fi
  7814. done
  7815. done
  7816. IFS=$as_save_IFS
  7817. fi ;;
  7818. esac
  7819. fi
  7820. LIPO=$ac_cv_prog_LIPO
  7821. if test -n "$LIPO"; then
  7822. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7823. printf "%s\n" "$LIPO" >&6; }
  7824. else
  7825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7826. printf "%s\n" "no" >&6; }
  7827. fi
  7828. fi
  7829. if test -z "$ac_cv_prog_LIPO"; then
  7830. ac_ct_LIPO=$LIPO
  7831. # Extract the first word of "lipo", so it can be a program name with args.
  7832. set dummy lipo; ac_word=$2
  7833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7834. printf %s "checking for $ac_word... " >&6; }
  7835. if test ${ac_cv_prog_ac_ct_LIPO+y}
  7836. then :
  7837. printf %s "(cached) " >&6
  7838. else case e in #(
  7839. e) if test -n "$ac_ct_LIPO"; then
  7840. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7841. else
  7842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7843. for as_dir in $PATH
  7844. do
  7845. IFS=$as_save_IFS
  7846. case $as_dir in #(((
  7847. '') as_dir=./ ;;
  7848. */) ;;
  7849. *) as_dir=$as_dir/ ;;
  7850. esac
  7851. for ac_exec_ext in '' $ac_executable_extensions; do
  7852. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7853. ac_cv_prog_ac_ct_LIPO="lipo"
  7854. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7855. break 2
  7856. fi
  7857. done
  7858. done
  7859. IFS=$as_save_IFS
  7860. fi ;;
  7861. esac
  7862. fi
  7863. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7864. if test -n "$ac_ct_LIPO"; then
  7865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7866. printf "%s\n" "$ac_ct_LIPO" >&6; }
  7867. else
  7868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7869. printf "%s\n" "no" >&6; }
  7870. fi
  7871. if test "x$ac_ct_LIPO" = x; then
  7872. LIPO=":"
  7873. else
  7874. case $cross_compiling:$ac_tool_warned in
  7875. yes:)
  7876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7877. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7878. ac_tool_warned=yes ;;
  7879. esac
  7880. LIPO=$ac_ct_LIPO
  7881. fi
  7882. else
  7883. LIPO="$ac_cv_prog_LIPO"
  7884. fi
  7885. if test -n "$ac_tool_prefix"; then
  7886. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7887. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7889. printf %s "checking for $ac_word... " >&6; }
  7890. if test ${ac_cv_prog_OTOOL+y}
  7891. then :
  7892. printf %s "(cached) " >&6
  7893. else case e in #(
  7894. e) if test -n "$OTOOL"; then
  7895. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7896. else
  7897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7898. for as_dir in $PATH
  7899. do
  7900. IFS=$as_save_IFS
  7901. case $as_dir in #(((
  7902. '') as_dir=./ ;;
  7903. */) ;;
  7904. *) as_dir=$as_dir/ ;;
  7905. esac
  7906. for ac_exec_ext in '' $ac_executable_extensions; do
  7907. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7908. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7909. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7910. break 2
  7911. fi
  7912. done
  7913. done
  7914. IFS=$as_save_IFS
  7915. fi ;;
  7916. esac
  7917. fi
  7918. OTOOL=$ac_cv_prog_OTOOL
  7919. if test -n "$OTOOL"; then
  7920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7921. printf "%s\n" "$OTOOL" >&6; }
  7922. else
  7923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7924. printf "%s\n" "no" >&6; }
  7925. fi
  7926. fi
  7927. if test -z "$ac_cv_prog_OTOOL"; then
  7928. ac_ct_OTOOL=$OTOOL
  7929. # Extract the first word of "otool", so it can be a program name with args.
  7930. set dummy otool; ac_word=$2
  7931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7932. printf %s "checking for $ac_word... " >&6; }
  7933. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  7934. then :
  7935. printf %s "(cached) " >&6
  7936. else case e in #(
  7937. e) if test -n "$ac_ct_OTOOL"; then
  7938. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7939. else
  7940. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7941. for as_dir in $PATH
  7942. do
  7943. IFS=$as_save_IFS
  7944. case $as_dir in #(((
  7945. '') as_dir=./ ;;
  7946. */) ;;
  7947. *) as_dir=$as_dir/ ;;
  7948. esac
  7949. for ac_exec_ext in '' $ac_executable_extensions; do
  7950. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7951. ac_cv_prog_ac_ct_OTOOL="otool"
  7952. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7953. break 2
  7954. fi
  7955. done
  7956. done
  7957. IFS=$as_save_IFS
  7958. fi ;;
  7959. esac
  7960. fi
  7961. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7962. if test -n "$ac_ct_OTOOL"; then
  7963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7964. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  7965. else
  7966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7967. printf "%s\n" "no" >&6; }
  7968. fi
  7969. if test "x$ac_ct_OTOOL" = x; then
  7970. OTOOL=":"
  7971. else
  7972. case $cross_compiling:$ac_tool_warned in
  7973. yes:)
  7974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7975. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7976. ac_tool_warned=yes ;;
  7977. esac
  7978. OTOOL=$ac_ct_OTOOL
  7979. fi
  7980. else
  7981. OTOOL="$ac_cv_prog_OTOOL"
  7982. fi
  7983. if test -n "$ac_tool_prefix"; then
  7984. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7985. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7987. printf %s "checking for $ac_word... " >&6; }
  7988. if test ${ac_cv_prog_OTOOL64+y}
  7989. then :
  7990. printf %s "(cached) " >&6
  7991. else case e in #(
  7992. e) if test -n "$OTOOL64"; then
  7993. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7994. else
  7995. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7996. for as_dir in $PATH
  7997. do
  7998. IFS=$as_save_IFS
  7999. case $as_dir in #(((
  8000. '') as_dir=./ ;;
  8001. */) ;;
  8002. *) as_dir=$as_dir/ ;;
  8003. esac
  8004. for ac_exec_ext in '' $ac_executable_extensions; do
  8005. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8006. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  8007. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8008. break 2
  8009. fi
  8010. done
  8011. done
  8012. IFS=$as_save_IFS
  8013. fi ;;
  8014. esac
  8015. fi
  8016. OTOOL64=$ac_cv_prog_OTOOL64
  8017. if test -n "$OTOOL64"; then
  8018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  8019. printf "%s\n" "$OTOOL64" >&6; }
  8020. else
  8021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8022. printf "%s\n" "no" >&6; }
  8023. fi
  8024. fi
  8025. if test -z "$ac_cv_prog_OTOOL64"; then
  8026. ac_ct_OTOOL64=$OTOOL64
  8027. # Extract the first word of "otool64", so it can be a program name with args.
  8028. set dummy otool64; ac_word=$2
  8029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8030. printf %s "checking for $ac_word... " >&6; }
  8031. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  8032. then :
  8033. printf %s "(cached) " >&6
  8034. else case e in #(
  8035. e) if test -n "$ac_ct_OTOOL64"; then
  8036. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  8037. else
  8038. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8039. for as_dir in $PATH
  8040. do
  8041. IFS=$as_save_IFS
  8042. case $as_dir in #(((
  8043. '') as_dir=./ ;;
  8044. */) ;;
  8045. *) as_dir=$as_dir/ ;;
  8046. esac
  8047. for ac_exec_ext in '' $ac_executable_extensions; do
  8048. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8049. ac_cv_prog_ac_ct_OTOOL64="otool64"
  8050. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8051. break 2
  8052. fi
  8053. done
  8054. done
  8055. IFS=$as_save_IFS
  8056. fi ;;
  8057. esac
  8058. fi
  8059. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  8060. if test -n "$ac_ct_OTOOL64"; then
  8061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  8062. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  8063. else
  8064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8065. printf "%s\n" "no" >&6; }
  8066. fi
  8067. if test "x$ac_ct_OTOOL64" = x; then
  8068. OTOOL64=":"
  8069. else
  8070. case $cross_compiling:$ac_tool_warned in
  8071. yes:)
  8072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8073. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8074. ac_tool_warned=yes ;;
  8075. esac
  8076. OTOOL64=$ac_ct_OTOOL64
  8077. fi
  8078. else
  8079. OTOOL64="$ac_cv_prog_OTOOL64"
  8080. fi
  8081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  8082. printf %s "checking for -single_module linker flag... " >&6; }
  8083. if test ${lt_cv_apple_cc_single_mod+y}
  8084. then :
  8085. printf %s "(cached) " >&6
  8086. else case e in #(
  8087. e) lt_cv_apple_cc_single_mod=no
  8088. if test -z "$LT_MULTI_MODULE"; then
  8089. # By default we will add the -single_module flag. You can override
  8090. # by either setting the environment variable LT_MULTI_MODULE
  8091. # non-empty at configure time, or by adding -multi_module to the
  8092. # link flags.
  8093. rm -rf libconftest.dylib*
  8094. echo "int foo(void){return 1;}" > conftest.c
  8095. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8096. -dynamiclib -Wl,-single_module conftest.c" >&5
  8097. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8098. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  8099. _lt_result=$?
  8100. # If there is a non-empty error log, and "single_module"
  8101. # appears in it, assume the flag caused a linker warning
  8102. if test -s conftest.err && $GREP single_module conftest.err; then
  8103. cat conftest.err >&5
  8104. # Otherwise, if the output was created with a 0 exit code from
  8105. # the compiler, it worked.
  8106. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  8107. lt_cv_apple_cc_single_mod=yes
  8108. else
  8109. cat conftest.err >&5
  8110. fi
  8111. rm -rf libconftest.dylib*
  8112. rm -f conftest.*
  8113. fi ;;
  8114. esac
  8115. fi
  8116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  8117. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  8118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  8119. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  8120. if test ${lt_cv_ld_exported_symbols_list+y}
  8121. then :
  8122. printf %s "(cached) " >&6
  8123. else case e in #(
  8124. e) lt_cv_ld_exported_symbols_list=no
  8125. save_LDFLAGS=$LDFLAGS
  8126. echo "_main" > conftest.sym
  8127. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  8128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8129. /* end confdefs.h. */
  8130. int
  8131. main (void)
  8132. {
  8133. ;
  8134. return 0;
  8135. }
  8136. _ACEOF
  8137. if ac_fn_c_try_link "$LINENO"
  8138. then :
  8139. lt_cv_ld_exported_symbols_list=yes
  8140. else case e in #(
  8141. e) lt_cv_ld_exported_symbols_list=no ;;
  8142. esac
  8143. fi
  8144. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8145. conftest$ac_exeext conftest.$ac_ext
  8146. LDFLAGS=$save_LDFLAGS
  8147. ;;
  8148. esac
  8149. fi
  8150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  8151. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  8152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  8153. printf %s "checking for -force_load linker flag... " >&6; }
  8154. if test ${lt_cv_ld_force_load+y}
  8155. then :
  8156. printf %s "(cached) " >&6
  8157. else case e in #(
  8158. e) lt_cv_ld_force_load=no
  8159. cat > conftest.c << _LT_EOF
  8160. int forced_loaded() { return 2;}
  8161. _LT_EOF
  8162. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  8163. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  8164. echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
  8165. $AR $AR_FLAGS libconftest.a conftest.o 2>&5
  8166. echo "$RANLIB libconftest.a" >&5
  8167. $RANLIB libconftest.a 2>&5
  8168. cat > conftest.c << _LT_EOF
  8169. int main() { return 0;}
  8170. _LT_EOF
  8171. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  8172. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  8173. _lt_result=$?
  8174. if test -s conftest.err && $GREP force_load conftest.err; then
  8175. cat conftest.err >&5
  8176. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  8177. lt_cv_ld_force_load=yes
  8178. else
  8179. cat conftest.err >&5
  8180. fi
  8181. rm -f conftest.err libconftest.a conftest conftest.c
  8182. rm -rf conftest.dSYM
  8183. ;;
  8184. esac
  8185. fi
  8186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  8187. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  8188. case $host_os in
  8189. rhapsody* | darwin1.[012])
  8190. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  8191. darwin1.*)
  8192. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8193. darwin*)
  8194. case $MACOSX_DEPLOYMENT_TARGET,$host in
  8195. 10.[012],*|,*powerpc*-darwin[5-8]*)
  8196. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8197. *)
  8198. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  8199. esac
  8200. ;;
  8201. esac
  8202. if test yes = "$lt_cv_apple_cc_single_mod"; then
  8203. _lt_dar_single_mod='$single_module'
  8204. fi
  8205. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  8206. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  8207. else
  8208. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  8209. fi
  8210. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  8211. _lt_dsymutil='~$DSYMUTIL $lib || :'
  8212. else
  8213. _lt_dsymutil=
  8214. fi
  8215. ;;
  8216. esac
  8217. # func_munge_path_list VARIABLE PATH
  8218. # -----------------------------------
  8219. # VARIABLE is name of variable containing _space_ separated list of
  8220. # directories to be munged by the contents of PATH, which is string
  8221. # having a format:
  8222. # "DIR[:DIR]:"
  8223. # string "DIR[ DIR]" will be prepended to VARIABLE
  8224. # ":DIR[:DIR]"
  8225. # string "DIR[ DIR]" will be appended to VARIABLE
  8226. # "DIRP[:DIRP]::[DIRA:]DIRA"
  8227. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  8228. # "DIRA[ DIRA]" will be appended to VARIABLE
  8229. # "DIR[:DIR]"
  8230. # VARIABLE will be replaced by "DIR[ DIR]"
  8231. func_munge_path_list ()
  8232. {
  8233. case x$2 in
  8234. x)
  8235. ;;
  8236. *:)
  8237. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  8238. ;;
  8239. x:*)
  8240. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  8241. ;;
  8242. *::*)
  8243. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  8244. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  8245. ;;
  8246. *)
  8247. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  8248. ;;
  8249. esac
  8250. }
  8251. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  8252. "
  8253. if test "x$ac_cv_header_dlfcn_h" = xyes
  8254. then :
  8255. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  8256. fi
  8257. # Set options
  8258. # Check whether --enable-static was given.
  8259. if test ${enable_static+y}
  8260. then :
  8261. enableval=$enable_static; p=${PACKAGE-default}
  8262. case $enableval in
  8263. yes) enable_static=yes ;;
  8264. no) enable_static=no ;;
  8265. *)
  8266. enable_static=no
  8267. # Look at the argument we got. We use all the common list separators.
  8268. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8269. for pkg in $enableval; do
  8270. IFS=$lt_save_ifs
  8271. if test "X$pkg" = "X$p"; then
  8272. enable_static=yes
  8273. fi
  8274. done
  8275. IFS=$lt_save_ifs
  8276. ;;
  8277. esac
  8278. else case e in #(
  8279. e) enable_static=no ;;
  8280. esac
  8281. fi
  8282. # Check whether --with-pic was given.
  8283. if test ${with_pic+y}
  8284. then :
  8285. withval=$with_pic; lt_p=${PACKAGE-default}
  8286. case $withval in
  8287. yes|no) pic_mode=$withval ;;
  8288. *)
  8289. pic_mode=default
  8290. # Look at the argument we got. We use all the common list separators.
  8291. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8292. for lt_pkg in $withval; do
  8293. IFS=$lt_save_ifs
  8294. if test "X$lt_pkg" = "X$lt_p"; then
  8295. pic_mode=yes
  8296. fi
  8297. done
  8298. IFS=$lt_save_ifs
  8299. ;;
  8300. esac
  8301. else case e in #(
  8302. e) pic_mode=yes ;;
  8303. esac
  8304. fi
  8305. enable_dlopen=no
  8306. enable_win32_dll=no
  8307. # Check whether --enable-shared was given.
  8308. if test ${enable_shared+y}
  8309. then :
  8310. enableval=$enable_shared; p=${PACKAGE-default}
  8311. case $enableval in
  8312. yes) enable_shared=yes ;;
  8313. no) enable_shared=no ;;
  8314. *)
  8315. enable_shared=no
  8316. # Look at the argument we got. We use all the common list separators.
  8317. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8318. for pkg in $enableval; do
  8319. IFS=$lt_save_ifs
  8320. if test "X$pkg" = "X$p"; then
  8321. enable_shared=yes
  8322. fi
  8323. done
  8324. IFS=$lt_save_ifs
  8325. ;;
  8326. esac
  8327. else case e in #(
  8328. e) enable_shared=yes ;;
  8329. esac
  8330. fi
  8331. # Check whether --enable-fast-install was given.
  8332. if test ${enable_fast_install+y}
  8333. then :
  8334. enableval=$enable_fast_install; p=${PACKAGE-default}
  8335. case $enableval in
  8336. yes) enable_fast_install=yes ;;
  8337. no) enable_fast_install=no ;;
  8338. *)
  8339. enable_fast_install=no
  8340. # Look at the argument we got. We use all the common list separators.
  8341. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8342. for pkg in $enableval; do
  8343. IFS=$lt_save_ifs
  8344. if test "X$pkg" = "X$p"; then
  8345. enable_fast_install=yes
  8346. fi
  8347. done
  8348. IFS=$lt_save_ifs
  8349. ;;
  8350. esac
  8351. else case e in #(
  8352. e) enable_fast_install=yes ;;
  8353. esac
  8354. fi
  8355. shared_archive_member_spec=
  8356. case $host,$enable_shared in
  8357. power*-*-aix[5-9]*,yes)
  8358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  8359. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  8360. # Check whether --with-aix-soname was given.
  8361. if test ${with_aix_soname+y}
  8362. then :
  8363. withval=$with_aix_soname; case $withval in
  8364. aix|svr4|both)
  8365. ;;
  8366. *)
  8367. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  8368. ;;
  8369. esac
  8370. lt_cv_with_aix_soname=$with_aix_soname
  8371. else case e in #(
  8372. e) if test ${lt_cv_with_aix_soname+y}
  8373. then :
  8374. printf %s "(cached) " >&6
  8375. else case e in #(
  8376. e) lt_cv_with_aix_soname=aix ;;
  8377. esac
  8378. fi
  8379. with_aix_soname=$lt_cv_with_aix_soname ;;
  8380. esac
  8381. fi
  8382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  8383. printf "%s\n" "$with_aix_soname" >&6; }
  8384. if test aix != "$with_aix_soname"; then
  8385. # For the AIX way of multilib, we name the shared archive member
  8386. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  8387. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  8388. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  8389. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  8390. if test 64 = "${OBJECT_MODE-32}"; then
  8391. shared_archive_member_spec=shr_64
  8392. else
  8393. shared_archive_member_spec=shr
  8394. fi
  8395. fi
  8396. ;;
  8397. *)
  8398. with_aix_soname=aix
  8399. ;;
  8400. esac
  8401. # This can be used to rebuild libtool when needed
  8402. LIBTOOL_DEPS=$ltmain
  8403. # Always use our own libtool.
  8404. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8405. test -z "$LN_S" && LN_S="ln -s"
  8406. if test -n "${ZSH_VERSION+set}"; then
  8407. setopt NO_GLOB_SUBST
  8408. fi
  8409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8410. printf %s "checking for objdir... " >&6; }
  8411. if test ${lt_cv_objdir+y}
  8412. then :
  8413. printf %s "(cached) " >&6
  8414. else case e in #(
  8415. e) rm -f .libs 2>/dev/null
  8416. mkdir .libs 2>/dev/null
  8417. if test -d .libs; then
  8418. lt_cv_objdir=.libs
  8419. else
  8420. # MS-DOS does not allow filenames that begin with a dot.
  8421. lt_cv_objdir=_libs
  8422. fi
  8423. rmdir .libs 2>/dev/null ;;
  8424. esac
  8425. fi
  8426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8427. printf "%s\n" "$lt_cv_objdir" >&6; }
  8428. objdir=$lt_cv_objdir
  8429. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  8430. case $host_os in
  8431. aix3*)
  8432. # AIX sometimes has problems with the GCC collect2 program. For some
  8433. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8434. # vanish in a puff of smoke.
  8435. if test set != "${COLLECT_NAMES+set}"; then
  8436. COLLECT_NAMES=
  8437. export COLLECT_NAMES
  8438. fi
  8439. ;;
  8440. esac
  8441. # Global variables:
  8442. ofile=libtool
  8443. can_build_shared=yes
  8444. # All known linkers require a '.a' archive for static linking (except MSVC and
  8445. # ICC, which need '.lib').
  8446. libext=a
  8447. with_gnu_ld=$lt_cv_prog_gnu_ld
  8448. old_CC=$CC
  8449. old_CFLAGS=$CFLAGS
  8450. # Set sane defaults for various variables
  8451. test -z "$CC" && CC=cc
  8452. test -z "$LTCC" && LTCC=$CC
  8453. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8454. test -z "$LD" && LD=ld
  8455. test -z "$ac_objext" && ac_objext=o
  8456. func_cc_basename $compiler
  8457. cc_basename=$func_cc_basename_result
  8458. # Only perform the check for file, if the check method requires it
  8459. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8460. case $deplibs_check_method in
  8461. file_magic*)
  8462. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8464. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  8465. if test ${lt_cv_path_MAGIC_CMD+y}
  8466. then :
  8467. printf %s "(cached) " >&6
  8468. else case e in #(
  8469. e) case $MAGIC_CMD in
  8470. [\\/*] | ?:[\\/]*)
  8471. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8472. ;;
  8473. *)
  8474. lt_save_MAGIC_CMD=$MAGIC_CMD
  8475. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8476. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8477. for ac_dir in $ac_dummy; do
  8478. IFS=$lt_save_ifs
  8479. test -z "$ac_dir" && ac_dir=.
  8480. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8481. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8482. if test -n "$file_magic_test_file"; then
  8483. case $deplibs_check_method in
  8484. "file_magic "*)
  8485. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8486. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8487. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8488. $EGREP "$file_magic_regex" > /dev/null; then
  8489. :
  8490. else
  8491. cat <<_LT_EOF 1>&2
  8492. *** Warning: the command libtool uses to detect shared libraries,
  8493. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8494. *** The result is that libtool may fail to recognize shared libraries
  8495. *** as such. This will affect the creation of libtool libraries that
  8496. *** depend on shared libraries, but programs linked with such libtool
  8497. *** libraries will work regardless of this problem. Nevertheless, you
  8498. *** may want to report the problem to your system manager and/or to
  8499. *** bug-libtool@gnu.org
  8500. _LT_EOF
  8501. fi ;;
  8502. esac
  8503. fi
  8504. break
  8505. fi
  8506. done
  8507. IFS=$lt_save_ifs
  8508. MAGIC_CMD=$lt_save_MAGIC_CMD
  8509. ;;
  8510. esac ;;
  8511. esac
  8512. fi
  8513. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8514. if test -n "$MAGIC_CMD"; then
  8515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8516. printf "%s\n" "$MAGIC_CMD" >&6; }
  8517. else
  8518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8519. printf "%s\n" "no" >&6; }
  8520. fi
  8521. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8522. if test -n "$ac_tool_prefix"; then
  8523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8524. printf %s "checking for file... " >&6; }
  8525. if test ${lt_cv_path_MAGIC_CMD+y}
  8526. then :
  8527. printf %s "(cached) " >&6
  8528. else case e in #(
  8529. e) case $MAGIC_CMD in
  8530. [\\/*] | ?:[\\/]*)
  8531. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8532. ;;
  8533. *)
  8534. lt_save_MAGIC_CMD=$MAGIC_CMD
  8535. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8536. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8537. for ac_dir in $ac_dummy; do
  8538. IFS=$lt_save_ifs
  8539. test -z "$ac_dir" && ac_dir=.
  8540. if test -f "$ac_dir/file"; then
  8541. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8542. if test -n "$file_magic_test_file"; then
  8543. case $deplibs_check_method in
  8544. "file_magic "*)
  8545. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8546. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8547. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8548. $EGREP "$file_magic_regex" > /dev/null; then
  8549. :
  8550. else
  8551. cat <<_LT_EOF 1>&2
  8552. *** Warning: the command libtool uses to detect shared libraries,
  8553. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8554. *** The result is that libtool may fail to recognize shared libraries
  8555. *** as such. This will affect the creation of libtool libraries that
  8556. *** depend on shared libraries, but programs linked with such libtool
  8557. *** libraries will work regardless of this problem. Nevertheless, you
  8558. *** may want to report the problem to your system manager and/or to
  8559. *** bug-libtool@gnu.org
  8560. _LT_EOF
  8561. fi ;;
  8562. esac
  8563. fi
  8564. break
  8565. fi
  8566. done
  8567. IFS=$lt_save_ifs
  8568. MAGIC_CMD=$lt_save_MAGIC_CMD
  8569. ;;
  8570. esac ;;
  8571. esac
  8572. fi
  8573. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8574. if test -n "$MAGIC_CMD"; then
  8575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8576. printf "%s\n" "$MAGIC_CMD" >&6; }
  8577. else
  8578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8579. printf "%s\n" "no" >&6; }
  8580. fi
  8581. else
  8582. MAGIC_CMD=:
  8583. fi
  8584. fi
  8585. fi
  8586. ;;
  8587. esac
  8588. # Use C for the default configuration in the libtool script
  8589. lt_save_CC=$CC
  8590. ac_ext=c
  8591. ac_cpp='$CPP $CPPFLAGS'
  8592. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8593. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8594. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8595. # Source file extension for C test sources.
  8596. ac_ext=c
  8597. # Object file extension for compiled C test sources.
  8598. objext=o
  8599. objext=$objext
  8600. # Code to be used in simple compile tests
  8601. lt_simple_compile_test_code="int some_variable = 0;"
  8602. # Code to be used in simple link tests
  8603. lt_simple_link_test_code='int main(){return(0);}'
  8604. # If no C compiler was specified, use CC.
  8605. LTCC=${LTCC-"$CC"}
  8606. # If no C compiler flags were specified, use CFLAGS.
  8607. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8608. # Allow CC to be a program name with arguments.
  8609. compiler=$CC
  8610. # Save the default compiler, since it gets overwritten when the other
  8611. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8612. compiler_DEFAULT=$CC
  8613. # save warnings/boilerplate of simple test code
  8614. ac_outfile=conftest.$ac_objext
  8615. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8616. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8617. _lt_compiler_boilerplate=`cat conftest.err`
  8618. $RM conftest*
  8619. ac_outfile=conftest.$ac_objext
  8620. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8621. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8622. _lt_linker_boilerplate=`cat conftest.err`
  8623. $RM -r conftest*
  8624. ## CAVEAT EMPTOR:
  8625. ## There is no encapsulation within the following macros, do not change
  8626. ## the running order or otherwise move them around unless you know exactly
  8627. ## what you are doing...
  8628. if test -n "$compiler"; then
  8629. lt_prog_compiler_no_builtin_flag=
  8630. if test yes = "$GCC"; then
  8631. case $cc_basename in
  8632. nvcc*)
  8633. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8634. *)
  8635. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8636. esac
  8637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8638. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8639. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  8640. then :
  8641. printf %s "(cached) " >&6
  8642. else case e in #(
  8643. e) lt_cv_prog_compiler_rtti_exceptions=no
  8644. ac_outfile=conftest.$ac_objext
  8645. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8646. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8647. # Insert the option either (1) after the last *FLAGS variable, or
  8648. # (2) before a word containing "conftest.", or (3) at the end.
  8649. # Note that $ac_compile itself does not contain backslashes and begins
  8650. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8651. # The option is referenced via a variable to avoid confusing sed.
  8652. lt_compile=`echo "$ac_compile" | $SED \
  8653. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8654. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8655. -e 's:$: $lt_compiler_flag:'`
  8656. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8657. (eval "$lt_compile" 2>conftest.err)
  8658. ac_status=$?
  8659. cat conftest.err >&5
  8660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8661. if (exit $ac_status) && test -s "$ac_outfile"; then
  8662. # The compiler can only warn and ignore the option if not recognized
  8663. # So say no if there are warnings other than the usual output.
  8664. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8665. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8666. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8667. lt_cv_prog_compiler_rtti_exceptions=yes
  8668. fi
  8669. fi
  8670. $RM conftest*
  8671. ;;
  8672. esac
  8673. fi
  8674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8675. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8676. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8677. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8678. else
  8679. :
  8680. fi
  8681. fi
  8682. lt_prog_compiler_wl=
  8683. lt_prog_compiler_pic=
  8684. lt_prog_compiler_static=
  8685. if test yes = "$GCC"; then
  8686. lt_prog_compiler_wl='-Wl,'
  8687. lt_prog_compiler_static='-static'
  8688. case $host_os in
  8689. aix*)
  8690. # All AIX code is PIC.
  8691. if test ia64 = "$host_cpu"; then
  8692. # AIX 5 now supports IA64 processor
  8693. lt_prog_compiler_static='-Bstatic'
  8694. fi
  8695. lt_prog_compiler_pic='-fPIC'
  8696. ;;
  8697. amigaos*)
  8698. case $host_cpu in
  8699. powerpc)
  8700. # see comment about AmigaOS4 .so support
  8701. lt_prog_compiler_pic='-fPIC'
  8702. ;;
  8703. m68k)
  8704. # FIXME: we need at least 68020 code to build shared libraries, but
  8705. # adding the '-m68020' flag to GCC prevents building anything better,
  8706. # like '-m68040'.
  8707. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8708. ;;
  8709. esac
  8710. ;;
  8711. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8712. # PIC is the default for these OSes.
  8713. ;;
  8714. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8715. # This hack is so that the source file can tell whether it is being
  8716. # built for inclusion in a dll (and should export symbols for example).
  8717. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8718. # (--disable-auto-import) libraries
  8719. lt_prog_compiler_pic='-DDLL_EXPORT'
  8720. case $host_os in
  8721. os2*)
  8722. lt_prog_compiler_static='$wl-static'
  8723. ;;
  8724. esac
  8725. ;;
  8726. darwin* | rhapsody*)
  8727. # PIC is the default on this platform
  8728. # Common symbols not allowed in MH_DYLIB files
  8729. lt_prog_compiler_pic='-fno-common'
  8730. ;;
  8731. haiku*)
  8732. # PIC is the default for Haiku.
  8733. # The "-static" flag exists, but is broken.
  8734. lt_prog_compiler_static=
  8735. ;;
  8736. hpux*)
  8737. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8738. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8739. # sets the default TLS model and affects inlining.
  8740. case $host_cpu in
  8741. hppa*64*)
  8742. # +Z the default
  8743. ;;
  8744. *)
  8745. lt_prog_compiler_pic='-fPIC'
  8746. ;;
  8747. esac
  8748. ;;
  8749. interix[3-9]*)
  8750. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8751. # Instead, we relocate shared libraries at runtime.
  8752. ;;
  8753. msdosdjgpp*)
  8754. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8755. # on systems that don't support them.
  8756. lt_prog_compiler_can_build_shared=no
  8757. enable_shared=no
  8758. ;;
  8759. *nto* | *qnx*)
  8760. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8761. # it will coredump.
  8762. lt_prog_compiler_pic='-fPIC -shared'
  8763. ;;
  8764. sysv4*MP*)
  8765. if test -d /usr/nec; then
  8766. lt_prog_compiler_pic=-Kconform_pic
  8767. fi
  8768. ;;
  8769. *)
  8770. lt_prog_compiler_pic='-fPIC'
  8771. ;;
  8772. esac
  8773. case $cc_basename in
  8774. nvcc*) # Cuda Compiler Driver 2.2
  8775. lt_prog_compiler_wl='-Xlinker '
  8776. if test -n "$lt_prog_compiler_pic"; then
  8777. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8778. fi
  8779. ;;
  8780. esac
  8781. else
  8782. # PORTME Check for flag to pass linker flags through the system compiler.
  8783. case $host_os in
  8784. aix*)
  8785. lt_prog_compiler_wl='-Wl,'
  8786. if test ia64 = "$host_cpu"; then
  8787. # AIX 5 now supports IA64 processor
  8788. lt_prog_compiler_static='-Bstatic'
  8789. else
  8790. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8791. fi
  8792. ;;
  8793. darwin* | rhapsody*)
  8794. # PIC is the default on this platform
  8795. # Common symbols not allowed in MH_DYLIB files
  8796. lt_prog_compiler_pic='-fno-common'
  8797. case $cc_basename in
  8798. nagfor*)
  8799. # NAG Fortran compiler
  8800. lt_prog_compiler_wl='-Wl,-Wl,,'
  8801. lt_prog_compiler_pic='-PIC'
  8802. lt_prog_compiler_static='-Bstatic'
  8803. ;;
  8804. esac
  8805. ;;
  8806. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8807. # This hack is so that the source file can tell whether it is being
  8808. # built for inclusion in a dll (and should export symbols for example).
  8809. lt_prog_compiler_pic='-DDLL_EXPORT'
  8810. case $host_os in
  8811. os2*)
  8812. lt_prog_compiler_static='$wl-static'
  8813. ;;
  8814. esac
  8815. ;;
  8816. hpux9* | hpux10* | hpux11*)
  8817. lt_prog_compiler_wl='-Wl,'
  8818. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8819. # not for PA HP-UX.
  8820. case $host_cpu in
  8821. hppa*64*|ia64*)
  8822. # +Z the default
  8823. ;;
  8824. *)
  8825. lt_prog_compiler_pic='+Z'
  8826. ;;
  8827. esac
  8828. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8829. lt_prog_compiler_static='$wl-a ${wl}archive'
  8830. ;;
  8831. irix5* | irix6* | nonstopux*)
  8832. lt_prog_compiler_wl='-Wl,'
  8833. # PIC (with -KPIC) is the default.
  8834. lt_prog_compiler_static='-non_shared'
  8835. ;;
  8836. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8837. case $cc_basename in
  8838. # old Intel for x86_64, which still supported -KPIC.
  8839. ecc*)
  8840. lt_prog_compiler_wl='-Wl,'
  8841. lt_prog_compiler_pic='-KPIC'
  8842. lt_prog_compiler_static='-static'
  8843. ;;
  8844. # icc used to be incompatible with GCC.
  8845. # ICC 10 doesn't accept -KPIC any more.
  8846. icc* | ifort*)
  8847. lt_prog_compiler_wl='-Wl,'
  8848. lt_prog_compiler_pic='-fPIC'
  8849. lt_prog_compiler_static='-static'
  8850. ;;
  8851. # Lahey Fortran 8.1.
  8852. lf95*)
  8853. lt_prog_compiler_wl='-Wl,'
  8854. lt_prog_compiler_pic='--shared'
  8855. lt_prog_compiler_static='--static'
  8856. ;;
  8857. nagfor*)
  8858. # NAG Fortran compiler
  8859. lt_prog_compiler_wl='-Wl,-Wl,,'
  8860. lt_prog_compiler_pic='-PIC'
  8861. lt_prog_compiler_static='-Bstatic'
  8862. ;;
  8863. tcc*)
  8864. # Fabrice Bellard et al's Tiny C Compiler
  8865. lt_prog_compiler_wl='-Wl,'
  8866. lt_prog_compiler_pic='-fPIC'
  8867. lt_prog_compiler_static='-static'
  8868. ;;
  8869. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8870. # Portland Group compilers (*not* the Pentium gcc compiler,
  8871. # which looks to be a dead project)
  8872. lt_prog_compiler_wl='-Wl,'
  8873. lt_prog_compiler_pic='-fpic'
  8874. lt_prog_compiler_static='-Bstatic'
  8875. ;;
  8876. ccc*)
  8877. lt_prog_compiler_wl='-Wl,'
  8878. # All Alpha code is PIC.
  8879. lt_prog_compiler_static='-non_shared'
  8880. ;;
  8881. xl* | bgxl* | bgf* | mpixl*)
  8882. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8883. lt_prog_compiler_wl='-Wl,'
  8884. lt_prog_compiler_pic='-qpic'
  8885. lt_prog_compiler_static='-qstaticlink'
  8886. ;;
  8887. *)
  8888. case `$CC -V 2>&1 | $SED 5q` in
  8889. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8890. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8891. lt_prog_compiler_pic='-KPIC'
  8892. lt_prog_compiler_static='-Bstatic'
  8893. lt_prog_compiler_wl=''
  8894. ;;
  8895. *Sun\ F* | *Sun*Fortran*)
  8896. lt_prog_compiler_pic='-KPIC'
  8897. lt_prog_compiler_static='-Bstatic'
  8898. lt_prog_compiler_wl='-Qoption ld '
  8899. ;;
  8900. *Sun\ C*)
  8901. # Sun C 5.9
  8902. lt_prog_compiler_pic='-KPIC'
  8903. lt_prog_compiler_static='-Bstatic'
  8904. lt_prog_compiler_wl='-Wl,'
  8905. ;;
  8906. *Intel*\ [CF]*Compiler*)
  8907. lt_prog_compiler_wl='-Wl,'
  8908. lt_prog_compiler_pic='-fPIC'
  8909. lt_prog_compiler_static='-static'
  8910. ;;
  8911. *Portland\ Group*)
  8912. lt_prog_compiler_wl='-Wl,'
  8913. lt_prog_compiler_pic='-fpic'
  8914. lt_prog_compiler_static='-Bstatic'
  8915. ;;
  8916. esac
  8917. ;;
  8918. esac
  8919. ;;
  8920. newsos6)
  8921. lt_prog_compiler_pic='-KPIC'
  8922. lt_prog_compiler_static='-Bstatic'
  8923. ;;
  8924. *nto* | *qnx*)
  8925. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8926. # it will coredump.
  8927. lt_prog_compiler_pic='-fPIC -shared'
  8928. ;;
  8929. osf3* | osf4* | osf5*)
  8930. lt_prog_compiler_wl='-Wl,'
  8931. # All OSF/1 code is PIC.
  8932. lt_prog_compiler_static='-non_shared'
  8933. ;;
  8934. rdos*)
  8935. lt_prog_compiler_static='-non_shared'
  8936. ;;
  8937. solaris*)
  8938. lt_prog_compiler_pic='-KPIC'
  8939. lt_prog_compiler_static='-Bstatic'
  8940. case $cc_basename in
  8941. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8942. lt_prog_compiler_wl='-Qoption ld ';;
  8943. *)
  8944. lt_prog_compiler_wl='-Wl,';;
  8945. esac
  8946. ;;
  8947. sunos4*)
  8948. lt_prog_compiler_wl='-Qoption ld '
  8949. lt_prog_compiler_pic='-PIC'
  8950. lt_prog_compiler_static='-Bstatic'
  8951. ;;
  8952. sysv4 | sysv4.2uw2* | sysv4.3*)
  8953. lt_prog_compiler_wl='-Wl,'
  8954. lt_prog_compiler_pic='-KPIC'
  8955. lt_prog_compiler_static='-Bstatic'
  8956. ;;
  8957. sysv4*MP*)
  8958. if test -d /usr/nec; then
  8959. lt_prog_compiler_pic='-Kconform_pic'
  8960. lt_prog_compiler_static='-Bstatic'
  8961. fi
  8962. ;;
  8963. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8964. lt_prog_compiler_wl='-Wl,'
  8965. lt_prog_compiler_pic='-KPIC'
  8966. lt_prog_compiler_static='-Bstatic'
  8967. ;;
  8968. unicos*)
  8969. lt_prog_compiler_wl='-Wl,'
  8970. lt_prog_compiler_can_build_shared=no
  8971. ;;
  8972. uts4*)
  8973. lt_prog_compiler_pic='-pic'
  8974. lt_prog_compiler_static='-Bstatic'
  8975. ;;
  8976. *)
  8977. lt_prog_compiler_can_build_shared=no
  8978. ;;
  8979. esac
  8980. fi
  8981. case $host_os in
  8982. # For platforms that do not support PIC, -DPIC is meaningless:
  8983. *djgpp*)
  8984. lt_prog_compiler_pic=
  8985. ;;
  8986. *)
  8987. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8988. ;;
  8989. esac
  8990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8991. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8992. if test ${lt_cv_prog_compiler_pic+y}
  8993. then :
  8994. printf %s "(cached) " >&6
  8995. else case e in #(
  8996. e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
  8997. esac
  8998. fi
  8999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  9000. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  9001. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  9002. #
  9003. # Check to make sure the PIC flag actually works.
  9004. #
  9005. if test -n "$lt_prog_compiler_pic"; then
  9006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9007. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9008. if test ${lt_cv_prog_compiler_pic_works+y}
  9009. then :
  9010. printf %s "(cached) " >&6
  9011. else case e in #(
  9012. e) lt_cv_prog_compiler_pic_works=no
  9013. ac_outfile=conftest.$ac_objext
  9014. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9015. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  9016. # Insert the option either (1) after the last *FLAGS variable, or
  9017. # (2) before a word containing "conftest.", or (3) at the end.
  9018. # Note that $ac_compile itself does not contain backslashes and begins
  9019. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9020. # The option is referenced via a variable to avoid confusing sed.
  9021. lt_compile=`echo "$ac_compile" | $SED \
  9022. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9023. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9024. -e 's:$: $lt_compiler_flag:'`
  9025. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9026. (eval "$lt_compile" 2>conftest.err)
  9027. ac_status=$?
  9028. cat conftest.err >&5
  9029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9030. if (exit $ac_status) && test -s "$ac_outfile"; then
  9031. # The compiler can only warn and ignore the option if not recognized
  9032. # So say no if there are warnings other than the usual output.
  9033. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9034. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9035. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9036. lt_cv_prog_compiler_pic_works=yes
  9037. fi
  9038. fi
  9039. $RM conftest*
  9040. ;;
  9041. esac
  9042. fi
  9043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  9044. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  9045. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  9046. case $lt_prog_compiler_pic in
  9047. "" | " "*) ;;
  9048. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9049. esac
  9050. else
  9051. lt_prog_compiler_pic=
  9052. lt_prog_compiler_can_build_shared=no
  9053. fi
  9054. fi
  9055. #
  9056. # Check to make sure the static flag actually works.
  9057. #
  9058. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9060. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9061. if test ${lt_cv_prog_compiler_static_works+y}
  9062. then :
  9063. printf %s "(cached) " >&6
  9064. else case e in #(
  9065. e) lt_cv_prog_compiler_static_works=no
  9066. save_LDFLAGS=$LDFLAGS
  9067. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9068. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9069. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9070. # The linker can only warn and ignore the option if not recognized
  9071. # So say no if there are warnings
  9072. if test -s conftest.err; then
  9073. # Append any errors to the config.log.
  9074. cat conftest.err 1>&5
  9075. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9076. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9077. if diff conftest.exp conftest.er2 >/dev/null; then
  9078. lt_cv_prog_compiler_static_works=yes
  9079. fi
  9080. else
  9081. lt_cv_prog_compiler_static_works=yes
  9082. fi
  9083. fi
  9084. $RM -r conftest*
  9085. LDFLAGS=$save_LDFLAGS
  9086. ;;
  9087. esac
  9088. fi
  9089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  9090. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  9091. if test yes = "$lt_cv_prog_compiler_static_works"; then
  9092. :
  9093. else
  9094. lt_prog_compiler_static=
  9095. fi
  9096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9097. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9098. if test ${lt_cv_prog_compiler_c_o+y}
  9099. then :
  9100. printf %s "(cached) " >&6
  9101. else case e in #(
  9102. e) lt_cv_prog_compiler_c_o=no
  9103. $RM -r conftest 2>/dev/null
  9104. mkdir conftest
  9105. cd conftest
  9106. mkdir out
  9107. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9108. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9109. # Insert the option either (1) after the last *FLAGS variable, or
  9110. # (2) before a word containing "conftest.", or (3) at the end.
  9111. # Note that $ac_compile itself does not contain backslashes and begins
  9112. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9113. lt_compile=`echo "$ac_compile" | $SED \
  9114. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9115. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9116. -e 's:$: $lt_compiler_flag:'`
  9117. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9118. (eval "$lt_compile" 2>out/conftest.err)
  9119. ac_status=$?
  9120. cat out/conftest.err >&5
  9121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9122. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9123. then
  9124. # The compiler can only warn and ignore the option if not recognized
  9125. # So say no if there are warnings
  9126. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9127. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9128. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9129. lt_cv_prog_compiler_c_o=yes
  9130. fi
  9131. fi
  9132. chmod u+w . 2>&5
  9133. $RM conftest*
  9134. # SGI C++ compiler will create directory out/ii_files/ for
  9135. # template instantiation
  9136. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9137. $RM out/* && rmdir out
  9138. cd ..
  9139. $RM -r conftest
  9140. $RM conftest*
  9141. ;;
  9142. esac
  9143. fi
  9144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9145. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  9146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9147. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9148. if test ${lt_cv_prog_compiler_c_o+y}
  9149. then :
  9150. printf %s "(cached) " >&6
  9151. else case e in #(
  9152. e) lt_cv_prog_compiler_c_o=no
  9153. $RM -r conftest 2>/dev/null
  9154. mkdir conftest
  9155. cd conftest
  9156. mkdir out
  9157. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9158. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9159. # Insert the option either (1) after the last *FLAGS variable, or
  9160. # (2) before a word containing "conftest.", or (3) at the end.
  9161. # Note that $ac_compile itself does not contain backslashes and begins
  9162. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9163. lt_compile=`echo "$ac_compile" | $SED \
  9164. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9165. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9166. -e 's:$: $lt_compiler_flag:'`
  9167. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9168. (eval "$lt_compile" 2>out/conftest.err)
  9169. ac_status=$?
  9170. cat out/conftest.err >&5
  9171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9172. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9173. then
  9174. # The compiler can only warn and ignore the option if not recognized
  9175. # So say no if there are warnings
  9176. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9177. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9178. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9179. lt_cv_prog_compiler_c_o=yes
  9180. fi
  9181. fi
  9182. chmod u+w . 2>&5
  9183. $RM conftest*
  9184. # SGI C++ compiler will create directory out/ii_files/ for
  9185. # template instantiation
  9186. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9187. $RM out/* && rmdir out
  9188. cd ..
  9189. $RM -r conftest
  9190. $RM conftest*
  9191. ;;
  9192. esac
  9193. fi
  9194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9195. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  9196. hard_links=nottested
  9197. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  9198. # do not overwrite the value of need_locks provided by the user
  9199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9200. printf %s "checking if we can lock with hard links... " >&6; }
  9201. hard_links=yes
  9202. $RM conftest*
  9203. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9204. touch conftest.a
  9205. ln conftest.a conftest.b 2>&5 || hard_links=no
  9206. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9208. printf "%s\n" "$hard_links" >&6; }
  9209. if test no = "$hard_links"; then
  9210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  9211. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  9212. need_locks=warn
  9213. fi
  9214. else
  9215. need_locks=no
  9216. fi
  9217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9218. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9219. runpath_var=
  9220. allow_undefined_flag=
  9221. always_export_symbols=no
  9222. archive_cmds=
  9223. archive_expsym_cmds=
  9224. compiler_needs_object=no
  9225. enable_shared_with_static_runtimes=no
  9226. export_dynamic_flag_spec=
  9227. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9228. hardcode_automatic=no
  9229. hardcode_direct=no
  9230. hardcode_direct_absolute=no
  9231. hardcode_libdir_flag_spec=
  9232. hardcode_libdir_separator=
  9233. hardcode_minus_L=no
  9234. hardcode_shlibpath_var=unsupported
  9235. inherit_rpath=no
  9236. link_all_deplibs=unknown
  9237. module_cmds=
  9238. module_expsym_cmds=
  9239. old_archive_from_new_cmds=
  9240. old_archive_from_expsyms_cmds=
  9241. thread_safe_flag_spec=
  9242. whole_archive_flag_spec=
  9243. # include_expsyms should be a list of space-separated symbols to be *always*
  9244. # included in the symbol list
  9245. include_expsyms=
  9246. # exclude_expsyms can be an extended regexp of symbols to exclude
  9247. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  9248. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  9249. # as well as any symbol that contains 'd'.
  9250. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9251. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9252. # platforms (ab)use it in PIC code, but their linkers get confused if
  9253. # the symbol is explicitly referenced. Since portable code cannot
  9254. # rely on this symbol name, it's probably fine to never include it in
  9255. # preloaded symbol tables.
  9256. # Exclude shared library initialization/finalization symbols.
  9257. extract_expsyms_cmds=
  9258. case $host_os in
  9259. cygwin* | mingw* | pw32* | cegcc*)
  9260. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  9261. # When not using gcc, we currently assume that we are using
  9262. # Microsoft Visual C++ or Intel C++ Compiler.
  9263. if test yes != "$GCC"; then
  9264. with_gnu_ld=no
  9265. fi
  9266. ;;
  9267. interix*)
  9268. # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
  9269. with_gnu_ld=yes
  9270. ;;
  9271. openbsd* | bitrig*)
  9272. with_gnu_ld=no
  9273. ;;
  9274. esac
  9275. ld_shlibs=yes
  9276. # On some targets, GNU ld is compatible enough with the native linker
  9277. # that we're better off using the native interface for both.
  9278. lt_use_gnu_ld_interface=no
  9279. if test yes = "$with_gnu_ld"; then
  9280. case $host_os in
  9281. aix*)
  9282. # The AIX port of GNU ld has always aspired to compatibility
  9283. # with the native linker. However, as the warning in the GNU ld
  9284. # block says, versions before 2.19.5* couldn't really create working
  9285. # shared libraries, regardless of the interface used.
  9286. case `$LD -v 2>&1` in
  9287. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9288. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9289. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9290. *)
  9291. lt_use_gnu_ld_interface=yes
  9292. ;;
  9293. esac
  9294. ;;
  9295. *)
  9296. lt_use_gnu_ld_interface=yes
  9297. ;;
  9298. esac
  9299. fi
  9300. if test yes = "$lt_use_gnu_ld_interface"; then
  9301. # If archive_cmds runs LD, not CC, wlarc should be empty
  9302. wlarc='$wl'
  9303. # Set some defaults for GNU ld with shared library support. These
  9304. # are reset later if shared libraries are not supported. Putting them
  9305. # here allows them to be overridden if necessary.
  9306. runpath_var=LD_RUN_PATH
  9307. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9308. export_dynamic_flag_spec='$wl--export-dynamic'
  9309. # ancient GNU ld didn't support --whole-archive et. al.
  9310. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9311. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  9312. else
  9313. whole_archive_flag_spec=
  9314. fi
  9315. supports_anon_versioning=no
  9316. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  9317. *GNU\ gold*) supports_anon_versioning=yes ;;
  9318. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9319. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9320. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9321. *\ 2.11.*) ;; # other 2.11 versions
  9322. *) supports_anon_versioning=yes ;;
  9323. esac
  9324. # See if GNU ld supports shared libraries.
  9325. case $host_os in
  9326. aix[3-9]*)
  9327. # On AIX/PPC, the GNU linker is very broken
  9328. if test ia64 != "$host_cpu"; then
  9329. ld_shlibs=no
  9330. cat <<_LT_EOF 1>&2
  9331. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9332. *** to be unable to reliably create shared libraries on AIX.
  9333. *** Therefore, libtool is disabling shared libraries support. If you
  9334. *** really care for shared libraries, you may want to install binutils
  9335. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9336. *** You will then need to restart the configuration process.
  9337. _LT_EOF
  9338. fi
  9339. ;;
  9340. amigaos*)
  9341. case $host_cpu in
  9342. powerpc)
  9343. # see comment about AmigaOS4 .so support
  9344. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9345. archive_expsym_cmds=''
  9346. ;;
  9347. m68k)
  9348. 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)'
  9349. hardcode_libdir_flag_spec='-L$libdir'
  9350. hardcode_minus_L=yes
  9351. ;;
  9352. esac
  9353. ;;
  9354. beos*)
  9355. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9356. allow_undefined_flag=unsupported
  9357. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9358. # support --undefined. This deserves some investigation. FIXME
  9359. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9360. else
  9361. ld_shlibs=no
  9362. fi
  9363. ;;
  9364. cygwin* | mingw* | pw32* | cegcc*)
  9365. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9366. # as there is no search path for DLLs.
  9367. hardcode_libdir_flag_spec='-L$libdir'
  9368. export_dynamic_flag_spec='$wl--export-all-symbols'
  9369. allow_undefined_flag=unsupported
  9370. always_export_symbols=no
  9371. enable_shared_with_static_runtimes=yes
  9372. 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'
  9373. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9374. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9375. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9376. # If the export-symbols file already is a .def file, use it as
  9377. # is; otherwise, prepend EXPORTS...
  9378. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9379. cp $export_symbols $output_objdir/$soname.def;
  9380. else
  9381. echo EXPORTS > $output_objdir/$soname.def;
  9382. cat $export_symbols >> $output_objdir/$soname.def;
  9383. fi~
  9384. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9385. else
  9386. ld_shlibs=no
  9387. fi
  9388. ;;
  9389. haiku*)
  9390. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9391. link_all_deplibs=yes
  9392. ;;
  9393. os2*)
  9394. hardcode_libdir_flag_spec='-L$libdir'
  9395. hardcode_minus_L=yes
  9396. allow_undefined_flag=unsupported
  9397. shrext_cmds=.dll
  9398. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9399. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9400. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9401. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9402. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9403. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9404. emximp -o $lib $output_objdir/$libname.def'
  9405. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9406. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9407. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9408. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9409. prefix_cmds="$SED"~
  9410. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9411. prefix_cmds="$prefix_cmds -e 1d";
  9412. fi~
  9413. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9414. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9415. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9416. emximp -o $lib $output_objdir/$libname.def'
  9417. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9418. enable_shared_with_static_runtimes=yes
  9419. file_list_spec='@'
  9420. ;;
  9421. interix[3-9]*)
  9422. hardcode_direct=no
  9423. hardcode_shlibpath_var=no
  9424. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9425. export_dynamic_flag_spec='$wl-E'
  9426. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9427. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9428. # default) and relocated if they conflict, which is a slow very memory
  9429. # consuming and fragmenting process. To avoid this, we pick a random,
  9430. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9431. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9432. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9433. 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'
  9434. ;;
  9435. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9436. tmp_diet=no
  9437. if test linux-dietlibc = "$host_os"; then
  9438. case $cc_basename in
  9439. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9440. esac
  9441. fi
  9442. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9443. && test no = "$tmp_diet"
  9444. then
  9445. tmp_addflag=' $pic_flag'
  9446. tmp_sharedflag='-shared'
  9447. case $cc_basename,$host_cpu in
  9448. pgcc*) # Portland Group C compiler
  9449. 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'
  9450. tmp_addflag=' $pic_flag'
  9451. ;;
  9452. pgf77* | pgf90* | pgf95* | pgfortran*)
  9453. # Portland Group f77 and f90 compilers
  9454. 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'
  9455. tmp_addflag=' $pic_flag -Mnomain' ;;
  9456. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9457. tmp_addflag=' -i_dynamic' ;;
  9458. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9459. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9460. ifc* | ifort*) # Intel Fortran compiler
  9461. tmp_addflag=' -nofor_main' ;;
  9462. lf95*) # Lahey Fortran 8.1
  9463. whole_archive_flag_spec=
  9464. tmp_sharedflag='--shared' ;;
  9465. nagfor*) # NAGFOR 5.3
  9466. tmp_sharedflag='-Wl,-shared' ;;
  9467. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9468. tmp_sharedflag='-qmkshrobj'
  9469. tmp_addflag= ;;
  9470. nvcc*) # Cuda Compiler Driver 2.2
  9471. 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'
  9472. compiler_needs_object=yes
  9473. ;;
  9474. esac
  9475. case `$CC -V 2>&1 | $SED 5q` in
  9476. *Sun\ C*) # Sun C 5.9
  9477. 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'
  9478. compiler_needs_object=yes
  9479. tmp_sharedflag='-G' ;;
  9480. *Sun\ F*) # Sun Fortran 8.3
  9481. tmp_sharedflag='-G' ;;
  9482. esac
  9483. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9484. if test yes = "$supports_anon_versioning"; then
  9485. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9486. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9487. echo "local: *; };" >> $output_objdir/$libname.ver~
  9488. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9489. fi
  9490. case $cc_basename in
  9491. tcc*)
  9492. export_dynamic_flag_spec='-rdynamic'
  9493. ;;
  9494. xlf* | bgf* | bgxlf* | mpixlf*)
  9495. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9496. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9497. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9498. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9499. if test yes = "$supports_anon_versioning"; then
  9500. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9501. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9502. echo "local: *; };" >> $output_objdir/$libname.ver~
  9503. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9504. fi
  9505. ;;
  9506. esac
  9507. else
  9508. ld_shlibs=no
  9509. fi
  9510. ;;
  9511. netbsd*)
  9512. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9513. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9514. wlarc=
  9515. else
  9516. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9517. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9518. fi
  9519. ;;
  9520. solaris*)
  9521. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9522. ld_shlibs=no
  9523. cat <<_LT_EOF 1>&2
  9524. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9525. *** create shared libraries on Solaris systems. Therefore, libtool
  9526. *** is disabling shared libraries support. We urge you to upgrade GNU
  9527. *** binutils to release 2.9.1 or newer. Another option is to modify
  9528. *** your PATH or compiler configuration so that the native linker is
  9529. *** used, and then restart.
  9530. _LT_EOF
  9531. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9532. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9533. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9534. else
  9535. ld_shlibs=no
  9536. fi
  9537. ;;
  9538. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9539. case `$LD -v 2>&1` in
  9540. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9541. ld_shlibs=no
  9542. cat <<_LT_EOF 1>&2
  9543. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9544. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9545. *** is disabling shared libraries support. We urge you to upgrade GNU
  9546. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9547. *** your PATH or compiler configuration so that the native linker is
  9548. *** used, and then restart.
  9549. _LT_EOF
  9550. ;;
  9551. *)
  9552. # For security reasons, it is highly recommended that you always
  9553. # use absolute paths for naming shared libraries, and exclude the
  9554. # DT_RUNPATH tag from executables and libraries. But doing so
  9555. # requires that you compile everything twice, which is a pain.
  9556. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9557. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9558. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9559. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9560. else
  9561. ld_shlibs=no
  9562. fi
  9563. ;;
  9564. esac
  9565. ;;
  9566. sunos4*)
  9567. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9568. wlarc=
  9569. hardcode_direct=yes
  9570. hardcode_shlibpath_var=no
  9571. ;;
  9572. *)
  9573. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9574. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9575. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9576. else
  9577. ld_shlibs=no
  9578. fi
  9579. ;;
  9580. esac
  9581. if test no = "$ld_shlibs"; then
  9582. runpath_var=
  9583. hardcode_libdir_flag_spec=
  9584. export_dynamic_flag_spec=
  9585. whole_archive_flag_spec=
  9586. fi
  9587. else
  9588. # PORTME fill in a description of your system's linker (not GNU ld)
  9589. case $host_os in
  9590. aix3*)
  9591. allow_undefined_flag=unsupported
  9592. always_export_symbols=yes
  9593. 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'
  9594. # Note: this linker hardcodes the directories in LIBPATH if there
  9595. # are no directories specified by -L.
  9596. hardcode_minus_L=yes
  9597. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9598. # Neither direct hardcoding nor static linking is supported with a
  9599. # broken collect2.
  9600. hardcode_direct=unsupported
  9601. fi
  9602. ;;
  9603. aix[4-9]*)
  9604. if test ia64 = "$host_cpu"; then
  9605. # On IA64, the linker does run time linking by default, so we don't
  9606. # have to do anything special.
  9607. aix_use_runtimelinking=no
  9608. exp_sym_flag='-Bexport'
  9609. no_entry_flag=
  9610. else
  9611. # If we're using GNU nm, then we don't want the "-C" option.
  9612. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9613. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9614. # weak defined symbols like other global defined symbols, whereas
  9615. # GNU nm marks them as "W".
  9616. # While the 'weak' keyword is ignored in the Export File, we need
  9617. # it in the Import File for the 'aix-soname' feature, so we have
  9618. # to replace the "-B" option with "-P" for AIX nm.
  9619. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9620. 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'
  9621. else
  9622. 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 == "L") || (\$ 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'
  9623. fi
  9624. aix_use_runtimelinking=no
  9625. # Test if we are trying to use run time linking or normal
  9626. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9627. # have runtime linking enabled, and use it for executables.
  9628. # For shared libraries, we enable/disable runtime linking
  9629. # depending on the kind of the shared library created -
  9630. # when "with_aix_soname,aix_use_runtimelinking" is:
  9631. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9632. # "aix,yes" lib.so shared, rtl:yes, for executables
  9633. # lib.a static archive
  9634. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9635. # lib.a(lib.so.V) shared, rtl:no, for executables
  9636. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9637. # lib.a(lib.so.V) shared, rtl:no
  9638. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9639. # lib.a static archive
  9640. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9641. for ld_flag in $LDFLAGS; do
  9642. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9643. aix_use_runtimelinking=yes
  9644. break
  9645. fi
  9646. done
  9647. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9648. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9649. # so we don't have lib.a shared libs to link our executables.
  9650. # We have to force runtime linking in this case.
  9651. aix_use_runtimelinking=yes
  9652. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9653. fi
  9654. ;;
  9655. esac
  9656. exp_sym_flag='-bexport'
  9657. no_entry_flag='-bnoentry'
  9658. fi
  9659. # When large executables or shared objects are built, AIX ld can
  9660. # have problems creating the table of contents. If linking a library
  9661. # or program results in "error TOC overflow" add -mminimal-toc to
  9662. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9663. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9664. archive_cmds=''
  9665. hardcode_direct=yes
  9666. hardcode_direct_absolute=yes
  9667. hardcode_libdir_separator=':'
  9668. link_all_deplibs=yes
  9669. file_list_spec='$wl-f,'
  9670. case $with_aix_soname,$aix_use_runtimelinking in
  9671. aix,*) ;; # traditional, no import file
  9672. svr4,* | *,yes) # use import file
  9673. # The Import File defines what to hardcode.
  9674. hardcode_direct=no
  9675. hardcode_direct_absolute=no
  9676. ;;
  9677. esac
  9678. if test yes = "$GCC"; then
  9679. case $host_os in aix4.[012]|aix4.[012].*)
  9680. # We only want to do this on AIX 4.2 and lower, the check
  9681. # below for broken collect2 doesn't work under 4.3+
  9682. collect2name=`$CC -print-prog-name=collect2`
  9683. if test -f "$collect2name" &&
  9684. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9685. then
  9686. # We have reworked collect2
  9687. :
  9688. else
  9689. # We have old collect2
  9690. hardcode_direct=unsupported
  9691. # It fails to find uninstalled libraries when the uninstalled
  9692. # path is not listed in the libpath. Setting hardcode_minus_L
  9693. # to unsupported forces relinking
  9694. hardcode_minus_L=yes
  9695. hardcode_libdir_flag_spec='-L$libdir'
  9696. hardcode_libdir_separator=
  9697. fi
  9698. ;;
  9699. esac
  9700. shared_flag='-shared'
  9701. if test yes = "$aix_use_runtimelinking"; then
  9702. shared_flag="$shared_flag "'$wl-G'
  9703. fi
  9704. # Need to ensure runtime linking is disabled for the traditional
  9705. # shared library, or the linker may eventually find shared libraries
  9706. # /with/ Import File - we do not want to mix them.
  9707. shared_flag_aix='-shared'
  9708. shared_flag_svr4='-shared $wl-G'
  9709. else
  9710. # not using gcc
  9711. if test ia64 = "$host_cpu"; then
  9712. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9713. # chokes on -Wl,-G. The following line is correct:
  9714. shared_flag='-G'
  9715. else
  9716. if test yes = "$aix_use_runtimelinking"; then
  9717. shared_flag='$wl-G'
  9718. else
  9719. shared_flag='$wl-bM:SRE'
  9720. fi
  9721. shared_flag_aix='$wl-bM:SRE'
  9722. shared_flag_svr4='$wl-G'
  9723. fi
  9724. fi
  9725. export_dynamic_flag_spec='$wl-bexpall'
  9726. # It seems that -bexpall does not export symbols beginning with
  9727. # underscore (_), so it is better to generate a list of symbols to export.
  9728. always_export_symbols=yes
  9729. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9730. # Warning - without using the other runtime loading flags (-brtl),
  9731. # -berok will link without error, but may produce a broken library.
  9732. allow_undefined_flag='-berok'
  9733. # Determine the default libpath from the value encoded in an
  9734. # empty executable.
  9735. if test set = "${lt_cv_aix_libpath+set}"; then
  9736. aix_libpath=$lt_cv_aix_libpath
  9737. else
  9738. if test ${lt_cv_aix_libpath_+y}
  9739. then :
  9740. printf %s "(cached) " >&6
  9741. else case e in #(
  9742. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9743. /* end confdefs.h. */
  9744. int
  9745. main (void)
  9746. {
  9747. ;
  9748. return 0;
  9749. }
  9750. _ACEOF
  9751. if ac_fn_c_try_link "$LINENO"
  9752. then :
  9753. lt_aix_libpath_sed='
  9754. /Import File Strings/,/^$/ {
  9755. /^0/ {
  9756. s/^0 *\([^ ]*\) *$/\1/
  9757. p
  9758. }
  9759. }'
  9760. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9761. # Check for a 64-bit object if we didn't find anything.
  9762. if test -z "$lt_cv_aix_libpath_"; then
  9763. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9764. fi
  9765. fi
  9766. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9767. conftest$ac_exeext conftest.$ac_ext
  9768. if test -z "$lt_cv_aix_libpath_"; then
  9769. lt_cv_aix_libpath_=/usr/lib:/lib
  9770. fi
  9771. ;;
  9772. esac
  9773. fi
  9774. aix_libpath=$lt_cv_aix_libpath_
  9775. fi
  9776. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9777. 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
  9778. else
  9779. if test ia64 = "$host_cpu"; then
  9780. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9781. allow_undefined_flag="-z nodefs"
  9782. 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"
  9783. else
  9784. # Determine the default libpath from the value encoded in an
  9785. # empty executable.
  9786. if test set = "${lt_cv_aix_libpath+set}"; then
  9787. aix_libpath=$lt_cv_aix_libpath
  9788. else
  9789. if test ${lt_cv_aix_libpath_+y}
  9790. then :
  9791. printf %s "(cached) " >&6
  9792. else case e in #(
  9793. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9794. /* end confdefs.h. */
  9795. int
  9796. main (void)
  9797. {
  9798. ;
  9799. return 0;
  9800. }
  9801. _ACEOF
  9802. if ac_fn_c_try_link "$LINENO"
  9803. then :
  9804. lt_aix_libpath_sed='
  9805. /Import File Strings/,/^$/ {
  9806. /^0/ {
  9807. s/^0 *\([^ ]*\) *$/\1/
  9808. p
  9809. }
  9810. }'
  9811. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9812. # Check for a 64-bit object if we didn't find anything.
  9813. if test -z "$lt_cv_aix_libpath_"; then
  9814. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9815. fi
  9816. fi
  9817. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9818. conftest$ac_exeext conftest.$ac_ext
  9819. if test -z "$lt_cv_aix_libpath_"; then
  9820. lt_cv_aix_libpath_=/usr/lib:/lib
  9821. fi
  9822. ;;
  9823. esac
  9824. fi
  9825. aix_libpath=$lt_cv_aix_libpath_
  9826. fi
  9827. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9828. # Warning - without using the other run time loading flags,
  9829. # -berok will link without error, but may produce a broken library.
  9830. no_undefined_flag=' $wl-bernotok'
  9831. allow_undefined_flag=' $wl-berok'
  9832. if test yes = "$with_gnu_ld"; then
  9833. # We only use this code for GNU lds that support --whole-archive.
  9834. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9835. else
  9836. # Exported symbols can be pulled into shared objects from archives
  9837. whole_archive_flag_spec='$convenience'
  9838. fi
  9839. archive_cmds_need_lc=yes
  9840. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9841. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9842. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9843. if test svr4 != "$with_aix_soname"; then
  9844. # This is similar to how AIX traditionally builds its shared libraries.
  9845. 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'
  9846. fi
  9847. if test aix != "$with_aix_soname"; then
  9848. 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'
  9849. else
  9850. # used by -dlpreopen to get the symbols
  9851. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9852. fi
  9853. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9854. fi
  9855. fi
  9856. ;;
  9857. amigaos*)
  9858. case $host_cpu in
  9859. powerpc)
  9860. # see comment about AmigaOS4 .so support
  9861. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9862. archive_expsym_cmds=''
  9863. ;;
  9864. m68k)
  9865. 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)'
  9866. hardcode_libdir_flag_spec='-L$libdir'
  9867. hardcode_minus_L=yes
  9868. ;;
  9869. esac
  9870. ;;
  9871. bsdi[45]*)
  9872. export_dynamic_flag_spec=-rdynamic
  9873. ;;
  9874. cygwin* | mingw* | pw32* | cegcc*)
  9875. # When not using gcc, we currently assume that we are using
  9876. # Microsoft Visual C++ or Intel C++ Compiler.
  9877. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9878. # no search path for DLLs.
  9879. case $cc_basename in
  9880. cl* | icl*)
  9881. # Native MSVC or ICC
  9882. hardcode_libdir_flag_spec=' '
  9883. allow_undefined_flag=unsupported
  9884. always_export_symbols=yes
  9885. file_list_spec='@'
  9886. # Tell ltmain to make .lib files, not .a files.
  9887. libext=lib
  9888. # Tell ltmain to make .dll files, not .so files.
  9889. shrext_cmds=.dll
  9890. # FIXME: Setting linknames here is a bad hack.
  9891. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9892. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9893. cp "$export_symbols" "$output_objdir/$soname.def";
  9894. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9895. else
  9896. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9897. fi~
  9898. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9899. linknames='
  9900. # The linker will not automatically build a static lib if we build a DLL.
  9901. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9902. enable_shared_with_static_runtimes=yes
  9903. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9904. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9905. # Don't use ranlib
  9906. old_postinstall_cmds='chmod 644 $oldlib'
  9907. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9908. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9909. case $lt_outputfile in
  9910. *.exe|*.EXE) ;;
  9911. *)
  9912. lt_outputfile=$lt_outputfile.exe
  9913. lt_tool_outputfile=$lt_tool_outputfile.exe
  9914. ;;
  9915. esac~
  9916. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9917. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9918. $RM "$lt_outputfile.manifest";
  9919. fi'
  9920. ;;
  9921. *)
  9922. # Assume MSVC and ICC wrapper
  9923. hardcode_libdir_flag_spec=' '
  9924. allow_undefined_flag=unsupported
  9925. # Tell ltmain to make .lib files, not .a files.
  9926. libext=lib
  9927. # Tell ltmain to make .dll files, not .so files.
  9928. shrext_cmds=.dll
  9929. # FIXME: Setting linknames here is a bad hack.
  9930. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9931. # The linker will automatically build a .lib file if we build a DLL.
  9932. old_archive_from_new_cmds='true'
  9933. # FIXME: Should let the user specify the lib program.
  9934. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9935. enable_shared_with_static_runtimes=yes
  9936. ;;
  9937. esac
  9938. ;;
  9939. darwin* | rhapsody*)
  9940. archive_cmds_need_lc=no
  9941. hardcode_direct=no
  9942. hardcode_automatic=yes
  9943. hardcode_shlibpath_var=unsupported
  9944. if test yes = "$lt_cv_ld_force_load"; then
  9945. 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\"`'
  9946. else
  9947. whole_archive_flag_spec=''
  9948. fi
  9949. link_all_deplibs=yes
  9950. allow_undefined_flag=$_lt_dar_allow_undefined
  9951. case $cc_basename in
  9952. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9953. *) _lt_dar_can_shared=$GCC ;;
  9954. esac
  9955. if test yes = "$_lt_dar_can_shared"; then
  9956. output_verbose_link_cmd=func_echo_all
  9957. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9958. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9959. 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"
  9960. 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"
  9961. else
  9962. ld_shlibs=no
  9963. fi
  9964. ;;
  9965. dgux*)
  9966. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9967. hardcode_libdir_flag_spec='-L$libdir'
  9968. hardcode_shlibpath_var=no
  9969. ;;
  9970. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9971. # support. Future versions do this automatically, but an explicit c++rt0.o
  9972. # does not break anything, and helps significantly (at the cost of a little
  9973. # extra space).
  9974. freebsd2.2*)
  9975. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9976. hardcode_libdir_flag_spec='-R$libdir'
  9977. hardcode_direct=yes
  9978. hardcode_shlibpath_var=no
  9979. ;;
  9980. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9981. freebsd2.*)
  9982. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9983. hardcode_direct=yes
  9984. hardcode_minus_L=yes
  9985. hardcode_shlibpath_var=no
  9986. ;;
  9987. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9988. freebsd* | dragonfly* | midnightbsd*)
  9989. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9990. hardcode_libdir_flag_spec='-R$libdir'
  9991. hardcode_direct=yes
  9992. hardcode_shlibpath_var=no
  9993. ;;
  9994. hpux9*)
  9995. if test yes = "$GCC"; then
  9996. 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'
  9997. else
  9998. 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'
  9999. fi
  10000. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10001. hardcode_libdir_separator=:
  10002. hardcode_direct=yes
  10003. # hardcode_minus_L: Not really in the search PATH,
  10004. # but as the default location of the library.
  10005. hardcode_minus_L=yes
  10006. export_dynamic_flag_spec='$wl-E'
  10007. ;;
  10008. hpux10*)
  10009. if test yes,no = "$GCC,$with_gnu_ld"; then
  10010. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10011. else
  10012. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10013. fi
  10014. if test no = "$with_gnu_ld"; then
  10015. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10016. hardcode_libdir_separator=:
  10017. hardcode_direct=yes
  10018. hardcode_direct_absolute=yes
  10019. export_dynamic_flag_spec='$wl-E'
  10020. # hardcode_minus_L: Not really in the search PATH,
  10021. # but as the default location of the library.
  10022. hardcode_minus_L=yes
  10023. fi
  10024. ;;
  10025. hpux11*)
  10026. if test yes,no = "$GCC,$with_gnu_ld"; then
  10027. case $host_cpu in
  10028. hppa*64*)
  10029. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10030. ;;
  10031. ia64*)
  10032. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10033. ;;
  10034. *)
  10035. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10036. ;;
  10037. esac
  10038. else
  10039. case $host_cpu in
  10040. hppa*64*)
  10041. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10042. ;;
  10043. ia64*)
  10044. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10045. ;;
  10046. *)
  10047. # Older versions of the 11.00 compiler do not understand -b yet
  10048. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  10049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  10050. printf %s "checking if $CC understands -b... " >&6; }
  10051. if test ${lt_cv_prog_compiler__b+y}
  10052. then :
  10053. printf %s "(cached) " >&6
  10054. else case e in #(
  10055. e) lt_cv_prog_compiler__b=no
  10056. save_LDFLAGS=$LDFLAGS
  10057. LDFLAGS="$LDFLAGS -b"
  10058. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10059. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10060. # The linker can only warn and ignore the option if not recognized
  10061. # So say no if there are warnings
  10062. if test -s conftest.err; then
  10063. # Append any errors to the config.log.
  10064. cat conftest.err 1>&5
  10065. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10066. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10067. if diff conftest.exp conftest.er2 >/dev/null; then
  10068. lt_cv_prog_compiler__b=yes
  10069. fi
  10070. else
  10071. lt_cv_prog_compiler__b=yes
  10072. fi
  10073. fi
  10074. $RM -r conftest*
  10075. LDFLAGS=$save_LDFLAGS
  10076. ;;
  10077. esac
  10078. fi
  10079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  10080. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  10081. if test yes = "$lt_cv_prog_compiler__b"; then
  10082. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10083. else
  10084. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10085. fi
  10086. ;;
  10087. esac
  10088. fi
  10089. if test no = "$with_gnu_ld"; then
  10090. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10091. hardcode_libdir_separator=:
  10092. case $host_cpu in
  10093. hppa*64*|ia64*)
  10094. hardcode_direct=no
  10095. hardcode_shlibpath_var=no
  10096. ;;
  10097. *)
  10098. hardcode_direct=yes
  10099. hardcode_direct_absolute=yes
  10100. export_dynamic_flag_spec='$wl-E'
  10101. # hardcode_minus_L: Not really in the search PATH,
  10102. # but as the default location of the library.
  10103. hardcode_minus_L=yes
  10104. ;;
  10105. esac
  10106. fi
  10107. ;;
  10108. irix5* | irix6* | nonstopux*)
  10109. if test yes = "$GCC"; then
  10110. 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'
  10111. # Try to use the -exported_symbol ld option, if it does not
  10112. # work, assume that -exports_file does not work either and
  10113. # implicitly export all symbols.
  10114. # This should be the same for all languages, so no per-tag cache variable.
  10115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  10116. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  10117. if test ${lt_cv_irix_exported_symbol+y}
  10118. then :
  10119. printf %s "(cached) " >&6
  10120. else case e in #(
  10121. e) save_LDFLAGS=$LDFLAGS
  10122. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  10123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10124. /* end confdefs.h. */
  10125. int foo (void) { return 0; }
  10126. _ACEOF
  10127. if ac_fn_c_try_link "$LINENO"
  10128. then :
  10129. lt_cv_irix_exported_symbol=yes
  10130. else case e in #(
  10131. e) lt_cv_irix_exported_symbol=no ;;
  10132. esac
  10133. fi
  10134. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10135. conftest$ac_exeext conftest.$ac_ext
  10136. LDFLAGS=$save_LDFLAGS ;;
  10137. esac
  10138. fi
  10139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  10140. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  10141. if test yes = "$lt_cv_irix_exported_symbol"; then
  10142. 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'
  10143. fi
  10144. else
  10145. 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'
  10146. 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'
  10147. fi
  10148. archive_cmds_need_lc='no'
  10149. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10150. hardcode_libdir_separator=:
  10151. inherit_rpath=yes
  10152. link_all_deplibs=yes
  10153. ;;
  10154. linux*)
  10155. case $cc_basename in
  10156. tcc*)
  10157. # Fabrice Bellard et al's Tiny C Compiler
  10158. ld_shlibs=yes
  10159. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10160. ;;
  10161. esac
  10162. ;;
  10163. netbsd*)
  10164. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10165. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10166. else
  10167. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10168. fi
  10169. hardcode_libdir_flag_spec='-R$libdir'
  10170. hardcode_direct=yes
  10171. hardcode_shlibpath_var=no
  10172. ;;
  10173. newsos6)
  10174. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10175. hardcode_direct=yes
  10176. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10177. hardcode_libdir_separator=:
  10178. hardcode_shlibpath_var=no
  10179. ;;
  10180. *nto* | *qnx*)
  10181. ;;
  10182. openbsd* | bitrig*)
  10183. if test -f /usr/libexec/ld.so; then
  10184. hardcode_direct=yes
  10185. hardcode_shlibpath_var=no
  10186. hardcode_direct_absolute=yes
  10187. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10188. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10189. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  10190. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10191. export_dynamic_flag_spec='$wl-E'
  10192. else
  10193. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10194. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10195. fi
  10196. else
  10197. ld_shlibs=no
  10198. fi
  10199. ;;
  10200. os2*)
  10201. hardcode_libdir_flag_spec='-L$libdir'
  10202. hardcode_minus_L=yes
  10203. allow_undefined_flag=unsupported
  10204. shrext_cmds=.dll
  10205. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10206. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10207. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10208. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10209. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10210. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10211. emximp -o $lib $output_objdir/$libname.def'
  10212. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10213. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10214. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10215. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10216. prefix_cmds="$SED"~
  10217. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10218. prefix_cmds="$prefix_cmds -e 1d";
  10219. fi~
  10220. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10221. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10222. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10223. emximp -o $lib $output_objdir/$libname.def'
  10224. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10225. enable_shared_with_static_runtimes=yes
  10226. file_list_spec='@'
  10227. ;;
  10228. osf3*)
  10229. if test yes = "$GCC"; then
  10230. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10231. 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'
  10232. else
  10233. allow_undefined_flag=' -expect_unresolved \*'
  10234. 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'
  10235. fi
  10236. archive_cmds_need_lc='no'
  10237. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10238. hardcode_libdir_separator=:
  10239. ;;
  10240. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10241. if test yes = "$GCC"; then
  10242. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10243. 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'
  10244. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10245. else
  10246. allow_undefined_flag=' -expect_unresolved \*'
  10247. 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'
  10248. 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~
  10249. $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'
  10250. # Both c and cxx compiler support -rpath directly
  10251. hardcode_libdir_flag_spec='-rpath $libdir'
  10252. fi
  10253. archive_cmds_need_lc='no'
  10254. hardcode_libdir_separator=:
  10255. ;;
  10256. solaris*)
  10257. no_undefined_flag=' -z defs'
  10258. if test yes = "$GCC"; then
  10259. wlarc='$wl'
  10260. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10261. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10262. $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'
  10263. else
  10264. case `$CC -V 2>&1` in
  10265. *"Compilers 5.0"*)
  10266. wlarc=''
  10267. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10268. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10269. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10270. ;;
  10271. *)
  10272. wlarc='$wl'
  10273. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10274. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10275. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10276. ;;
  10277. esac
  10278. fi
  10279. hardcode_libdir_flag_spec='-R$libdir'
  10280. hardcode_shlibpath_var=no
  10281. case $host_os in
  10282. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10283. *)
  10284. # The compiler driver will combine and reorder linker options,
  10285. # but understands '-z linker_flag'. GCC discards it without '$wl',
  10286. # but is careful enough not to reorder.
  10287. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10288. if test yes = "$GCC"; then
  10289. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  10290. else
  10291. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10292. fi
  10293. ;;
  10294. esac
  10295. link_all_deplibs=yes
  10296. ;;
  10297. sunos4*)
  10298. if test sequent = "$host_vendor"; then
  10299. # Use $CC to link under sequent, because it throws in some extra .o
  10300. # files that make .init and .fini sections work.
  10301. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10302. else
  10303. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10304. fi
  10305. hardcode_libdir_flag_spec='-L$libdir'
  10306. hardcode_direct=yes
  10307. hardcode_minus_L=yes
  10308. hardcode_shlibpath_var=no
  10309. ;;
  10310. sysv4)
  10311. case $host_vendor in
  10312. sni)
  10313. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10314. hardcode_direct=yes # is this really true???
  10315. ;;
  10316. siemens)
  10317. ## LD is ld it makes a PLAMLIB
  10318. ## CC just makes a GrossModule.
  10319. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10320. reload_cmds='$CC -r -o $output$reload_objs'
  10321. hardcode_direct=no
  10322. ;;
  10323. motorola)
  10324. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10325. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10326. ;;
  10327. esac
  10328. runpath_var='LD_RUN_PATH'
  10329. hardcode_shlibpath_var=no
  10330. ;;
  10331. sysv4.3*)
  10332. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10333. hardcode_shlibpath_var=no
  10334. export_dynamic_flag_spec='-Bexport'
  10335. ;;
  10336. sysv4*MP*)
  10337. if test -d /usr/nec; then
  10338. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10339. hardcode_shlibpath_var=no
  10340. runpath_var=LD_RUN_PATH
  10341. hardcode_runpath_var=yes
  10342. ld_shlibs=yes
  10343. fi
  10344. ;;
  10345. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10346. no_undefined_flag='$wl-z,text'
  10347. archive_cmds_need_lc=no
  10348. hardcode_shlibpath_var=no
  10349. runpath_var='LD_RUN_PATH'
  10350. if test yes = "$GCC"; then
  10351. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10352. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10353. else
  10354. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10355. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10356. fi
  10357. ;;
  10358. sysv5* | sco3.2v5* | sco5v6*)
  10359. # Note: We CANNOT use -z defs as we might desire, because we do not
  10360. # link with -lc, and that would cause any symbols used from libc to
  10361. # always be unresolved, which means just about no library would
  10362. # ever link correctly. If we're not using GNU ld we use -z text
  10363. # though, which does catch some bad symbols but isn't as heavy-handed
  10364. # as -z defs.
  10365. no_undefined_flag='$wl-z,text'
  10366. allow_undefined_flag='$wl-z,nodefs'
  10367. archive_cmds_need_lc=no
  10368. hardcode_shlibpath_var=no
  10369. hardcode_libdir_flag_spec='$wl-R,$libdir'
  10370. hardcode_libdir_separator=':'
  10371. link_all_deplibs=yes
  10372. export_dynamic_flag_spec='$wl-Bexport'
  10373. runpath_var='LD_RUN_PATH'
  10374. if test yes = "$GCC"; then
  10375. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10376. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10377. else
  10378. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10379. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10380. fi
  10381. ;;
  10382. uts4*)
  10383. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10384. hardcode_libdir_flag_spec='-L$libdir'
  10385. hardcode_shlibpath_var=no
  10386. ;;
  10387. *)
  10388. ld_shlibs=no
  10389. ;;
  10390. esac
  10391. if test sni = "$host_vendor"; then
  10392. case $host in
  10393. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10394. export_dynamic_flag_spec='$wl-Blargedynsym'
  10395. ;;
  10396. esac
  10397. fi
  10398. fi
  10399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10400. printf "%s\n" "$ld_shlibs" >&6; }
  10401. test no = "$ld_shlibs" && can_build_shared=no
  10402. with_gnu_ld=$with_gnu_ld
  10403. #
  10404. # Do we need to explicitly link libc?
  10405. #
  10406. case "x$archive_cmds_need_lc" in
  10407. x|xyes)
  10408. # Assume -lc should be added
  10409. archive_cmds_need_lc=yes
  10410. if test yes,yes = "$GCC,$enable_shared"; then
  10411. case $archive_cmds in
  10412. *'~'*)
  10413. # FIXME: we may have to deal with multi-command sequences.
  10414. ;;
  10415. '$CC '*)
  10416. # Test whether the compiler implicitly links with -lc since on some
  10417. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10418. # to ld, don't add -lc before -lgcc.
  10419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10420. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  10421. if test ${lt_cv_archive_cmds_need_lc+y}
  10422. then :
  10423. printf %s "(cached) " >&6
  10424. else case e in #(
  10425. e) $RM conftest*
  10426. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10427. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10428. (eval $ac_compile) 2>&5
  10429. ac_status=$?
  10430. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10431. test $ac_status = 0; } 2>conftest.err; then
  10432. soname=conftest
  10433. lib=conftest
  10434. libobjs=conftest.$ac_objext
  10435. deplibs=
  10436. wl=$lt_prog_compiler_wl
  10437. pic_flag=$lt_prog_compiler_pic
  10438. compiler_flags=-v
  10439. linker_flags=-v
  10440. verstring=
  10441. output_objdir=.
  10442. libname=conftest
  10443. lt_save_allow_undefined_flag=$allow_undefined_flag
  10444. allow_undefined_flag=
  10445. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10446. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10447. ac_status=$?
  10448. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10449. test $ac_status = 0; }
  10450. then
  10451. lt_cv_archive_cmds_need_lc=no
  10452. else
  10453. lt_cv_archive_cmds_need_lc=yes
  10454. fi
  10455. allow_undefined_flag=$lt_save_allow_undefined_flag
  10456. else
  10457. cat conftest.err 1>&5
  10458. fi
  10459. $RM conftest*
  10460. ;;
  10461. esac
  10462. fi
  10463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10464. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  10465. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10466. ;;
  10467. esac
  10468. fi
  10469. ;;
  10470. esac
  10471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10472. printf %s "checking dynamic linker characteristics... " >&6; }
  10473. if test yes = "$GCC"; then
  10474. case $host_os in
  10475. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  10476. *) lt_awk_arg='/^libraries:/' ;;
  10477. esac
  10478. case $host_os in
  10479. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  10480. *) lt_sed_strip_eq='s|=/|/|g' ;;
  10481. esac
  10482. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10483. case $lt_search_path_spec in
  10484. *\;*)
  10485. # if the path contains ";" then we assume it to be the separator
  10486. # otherwise default to the standard path separator (i.e. ":") - it is
  10487. # assumed that no part of a normal pathname contains ";" but that should
  10488. # okay in the real world where ";" in dirpaths is itself problematic.
  10489. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10490. ;;
  10491. *)
  10492. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10493. ;;
  10494. esac
  10495. # Ok, now we have the path, separated by spaces, we can step through it
  10496. # and add multilib dir if necessary...
  10497. lt_tmp_lt_search_path_spec=
  10498. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10499. # ...but if some path component already ends with the multilib dir we assume
  10500. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10501. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10502. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10503. lt_multi_os_dir=
  10504. ;;
  10505. esac
  10506. for lt_sys_path in $lt_search_path_spec; do
  10507. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10508. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10509. elif test -n "$lt_multi_os_dir"; then
  10510. test -d "$lt_sys_path" && \
  10511. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10512. fi
  10513. done
  10514. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10515. BEGIN {RS = " "; FS = "/|\n";} {
  10516. lt_foo = "";
  10517. lt_count = 0;
  10518. for (lt_i = NF; lt_i > 0; lt_i--) {
  10519. if ($lt_i != "" && $lt_i != ".") {
  10520. if ($lt_i == "..") {
  10521. lt_count++;
  10522. } else {
  10523. if (lt_count == 0) {
  10524. lt_foo = "/" $lt_i lt_foo;
  10525. } else {
  10526. lt_count--;
  10527. }
  10528. }
  10529. }
  10530. }
  10531. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10532. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10533. }'`
  10534. # AWK program above erroneously prepends '/' to C:/dos/paths
  10535. # for these hosts.
  10536. case $host_os in
  10537. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10538. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10539. esac
  10540. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10541. else
  10542. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10543. fi
  10544. library_names_spec=
  10545. libname_spec='lib$name'
  10546. soname_spec=
  10547. shrext_cmds=.so
  10548. postinstall_cmds=
  10549. postuninstall_cmds=
  10550. finish_cmds=
  10551. finish_eval=
  10552. shlibpath_var=
  10553. shlibpath_overrides_runpath=unknown
  10554. version_type=none
  10555. dynamic_linker="$host_os ld.so"
  10556. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10557. need_lib_prefix=unknown
  10558. hardcode_into_libs=no
  10559. # when you set need_version to no, make sure it does not cause -set_version
  10560. # flags to be left without arguments
  10561. need_version=unknown
  10562. case $host_os in
  10563. aix3*)
  10564. version_type=linux # correct to gnu/linux during the next big refactor
  10565. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10566. shlibpath_var=LIBPATH
  10567. # AIX 3 has no versioning support, so we append a major version to the name.
  10568. soname_spec='$libname$release$shared_ext$major'
  10569. ;;
  10570. aix[4-9]*)
  10571. version_type=linux # correct to gnu/linux during the next big refactor
  10572. need_lib_prefix=no
  10573. need_version=no
  10574. hardcode_into_libs=yes
  10575. if test ia64 = "$host_cpu"; then
  10576. # AIX 5 supports IA64
  10577. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10578. shlibpath_var=LD_LIBRARY_PATH
  10579. else
  10580. # With GCC up to 2.95.x, collect2 would create an import file
  10581. # for dependence libraries. The import file would start with
  10582. # the line '#! .'. This would cause the generated library to
  10583. # depend on '.', always an invalid library. This was fixed in
  10584. # development snapshots of GCC prior to 3.0.
  10585. case $host_os in
  10586. aix4 | aix4.[01] | aix4.[01].*)
  10587. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10588. echo ' yes '
  10589. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10590. :
  10591. else
  10592. can_build_shared=no
  10593. fi
  10594. ;;
  10595. esac
  10596. # Using Import Files as archive members, it is possible to support
  10597. # filename-based versioning of shared library archives on AIX. While
  10598. # this would work for both with and without runtime linking, it will
  10599. # prevent static linking of such archives. So we do filename-based
  10600. # shared library versioning with .so extension only, which is used
  10601. # when both runtime linking and shared linking is enabled.
  10602. # Unfortunately, runtime linking may impact performance, so we do
  10603. # not want this to be the default eventually. Also, we use the
  10604. # versioned .so libs for executables only if there is the -brtl
  10605. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10606. # To allow for filename-based versioning support, we need to create
  10607. # libNAME.so.V as an archive file, containing:
  10608. # *) an Import File, referring to the versioned filename of the
  10609. # archive as well as the shared archive member, telling the
  10610. # bitwidth (32 or 64) of that shared object, and providing the
  10611. # list of exported symbols of that shared object, eventually
  10612. # decorated with the 'weak' keyword
  10613. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10614. # it being seen by the linker.
  10615. # At run time we better use the real file rather than another symlink,
  10616. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10617. case $with_aix_soname,$aix_use_runtimelinking in
  10618. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10619. # soname into executable. Probably we can add versioning support to
  10620. # collect2, so additional links can be useful in future.
  10621. aix,yes) # traditional libtool
  10622. dynamic_linker='AIX unversionable lib.so'
  10623. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10624. # instead of lib<name>.a to let people know that these are not
  10625. # typical AIX shared libraries.
  10626. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10627. ;;
  10628. aix,no) # traditional AIX only
  10629. dynamic_linker='AIX lib.a(lib.so.V)'
  10630. # We preserve .a as extension for shared libraries through AIX4.2
  10631. # and later when we are not doing run time linking.
  10632. library_names_spec='$libname$release.a $libname.a'
  10633. soname_spec='$libname$release$shared_ext$major'
  10634. ;;
  10635. svr4,*) # full svr4 only
  10636. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10637. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10638. # We do not specify a path in Import Files, so LIBPATH fires.
  10639. shlibpath_overrides_runpath=yes
  10640. ;;
  10641. *,yes) # both, prefer svr4
  10642. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10643. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10644. # unpreferred sharedlib libNAME.a needs extra handling
  10645. 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"'
  10646. 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"'
  10647. # We do not specify a path in Import Files, so LIBPATH fires.
  10648. shlibpath_overrides_runpath=yes
  10649. ;;
  10650. *,no) # both, prefer aix
  10651. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10652. library_names_spec='$libname$release.a $libname.a'
  10653. soname_spec='$libname$release$shared_ext$major'
  10654. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10655. 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)'
  10656. 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"'
  10657. ;;
  10658. esac
  10659. shlibpath_var=LIBPATH
  10660. fi
  10661. ;;
  10662. amigaos*)
  10663. case $host_cpu in
  10664. powerpc)
  10665. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10666. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10667. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10668. ;;
  10669. m68k)
  10670. library_names_spec='$libname.ixlibrary $libname.a'
  10671. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10672. 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'
  10673. ;;
  10674. esac
  10675. ;;
  10676. beos*)
  10677. library_names_spec='$libname$shared_ext'
  10678. dynamic_linker="$host_os ld.so"
  10679. shlibpath_var=LIBRARY_PATH
  10680. ;;
  10681. bsdi[45]*)
  10682. version_type=linux # correct to gnu/linux during the next big refactor
  10683. need_version=no
  10684. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10685. soname_spec='$libname$release$shared_ext$major'
  10686. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10687. shlibpath_var=LD_LIBRARY_PATH
  10688. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10689. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10690. # the default ld.so.conf also contains /usr/contrib/lib and
  10691. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10692. # libtool to hard-code these into programs
  10693. ;;
  10694. cygwin* | mingw* | pw32* | cegcc*)
  10695. version_type=windows
  10696. shrext_cmds=.dll
  10697. need_version=no
  10698. need_lib_prefix=no
  10699. case $GCC,$cc_basename in
  10700. yes,*)
  10701. # gcc
  10702. library_names_spec='$libname.dll.a'
  10703. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10704. postinstall_cmds='base_file=`basename \$file`~
  10705. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10706. dldir=$destdir/`dirname \$dlpath`~
  10707. test -d \$dldir || mkdir -p \$dldir~
  10708. $install_prog $dir/$dlname \$dldir/$dlname~
  10709. chmod a+x \$dldir/$dlname~
  10710. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10711. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10712. fi'
  10713. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10714. dlpath=$dir/\$dldll~
  10715. $RM \$dlpath'
  10716. shlibpath_overrides_runpath=yes
  10717. case $host_os in
  10718. cygwin*)
  10719. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10720. soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10721. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10722. ;;
  10723. mingw* | cegcc*)
  10724. # MinGW DLLs use traditional 'lib' prefix
  10725. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10726. ;;
  10727. pw32*)
  10728. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10729. library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10730. ;;
  10731. esac
  10732. dynamic_linker='Win32 ld.exe'
  10733. ;;
  10734. *,cl* | *,icl*)
  10735. # Native MSVC or ICC
  10736. libname_spec='$name'
  10737. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10738. library_names_spec='$libname.dll.lib'
  10739. case $build_os in
  10740. mingw*)
  10741. sys_lib_search_path_spec=
  10742. lt_save_ifs=$IFS
  10743. IFS=';'
  10744. for lt_path in $LIB
  10745. do
  10746. IFS=$lt_save_ifs
  10747. # Let DOS variable expansion print the short 8.3 style file name.
  10748. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10749. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10750. done
  10751. IFS=$lt_save_ifs
  10752. # Convert to MSYS style.
  10753. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10754. ;;
  10755. cygwin*)
  10756. # Convert to unix form, then to dos form, then back to unix form
  10757. # but this time dos style (no spaces!) so that the unix form looks
  10758. # like /cygdrive/c/PROGRA~1:/cygdr...
  10759. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10760. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10761. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10762. ;;
  10763. *)
  10764. sys_lib_search_path_spec=$LIB
  10765. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10766. # It is most probably a Windows format PATH.
  10767. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10768. else
  10769. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10770. fi
  10771. # FIXME: find the short name or the path components, as spaces are
  10772. # common. (e.g. "Program Files" -> "PROGRA~1")
  10773. ;;
  10774. esac
  10775. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10776. postinstall_cmds='base_file=`basename \$file`~
  10777. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10778. dldir=$destdir/`dirname \$dlpath`~
  10779. test -d \$dldir || mkdir -p \$dldir~
  10780. $install_prog $dir/$dlname \$dldir/$dlname'
  10781. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10782. dlpath=$dir/\$dldll~
  10783. $RM \$dlpath'
  10784. shlibpath_overrides_runpath=yes
  10785. dynamic_linker='Win32 link.exe'
  10786. ;;
  10787. *)
  10788. # Assume MSVC and ICC wrapper
  10789. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10790. dynamic_linker='Win32 ld.exe'
  10791. ;;
  10792. esac
  10793. # FIXME: first we should search . and the directory the executable is in
  10794. shlibpath_var=PATH
  10795. ;;
  10796. darwin* | rhapsody*)
  10797. dynamic_linker="$host_os dyld"
  10798. version_type=darwin
  10799. need_lib_prefix=no
  10800. need_version=no
  10801. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10802. soname_spec='$libname$release$major$shared_ext'
  10803. shlibpath_overrides_runpath=yes
  10804. shlibpath_var=DYLD_LIBRARY_PATH
  10805. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10806. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10807. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10808. ;;
  10809. dgux*)
  10810. version_type=linux # correct to gnu/linux during the next big refactor
  10811. need_lib_prefix=no
  10812. need_version=no
  10813. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10814. soname_spec='$libname$release$shared_ext$major'
  10815. shlibpath_var=LD_LIBRARY_PATH
  10816. ;;
  10817. freebsd* | dragonfly* | midnightbsd*)
  10818. # DragonFly does not have aout. When/if they implement a new
  10819. # versioning mechanism, adjust this.
  10820. if test -x /usr/bin/objformat; then
  10821. objformat=`/usr/bin/objformat`
  10822. else
  10823. case $host_os in
  10824. freebsd[23].*) objformat=aout ;;
  10825. *) objformat=elf ;;
  10826. esac
  10827. fi
  10828. version_type=freebsd-$objformat
  10829. case $version_type in
  10830. freebsd-elf*)
  10831. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10832. soname_spec='$libname$release$shared_ext$major'
  10833. need_version=no
  10834. need_lib_prefix=no
  10835. ;;
  10836. freebsd-*)
  10837. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10838. need_version=yes
  10839. ;;
  10840. esac
  10841. shlibpath_var=LD_LIBRARY_PATH
  10842. case $host_os in
  10843. freebsd2.*)
  10844. shlibpath_overrides_runpath=yes
  10845. ;;
  10846. freebsd3.[01]* | freebsdelf3.[01]*)
  10847. shlibpath_overrides_runpath=yes
  10848. hardcode_into_libs=yes
  10849. ;;
  10850. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10851. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10852. shlibpath_overrides_runpath=no
  10853. hardcode_into_libs=yes
  10854. ;;
  10855. *) # from 4.6 on, and DragonFly
  10856. shlibpath_overrides_runpath=yes
  10857. hardcode_into_libs=yes
  10858. ;;
  10859. esac
  10860. ;;
  10861. haiku*)
  10862. version_type=linux # correct to gnu/linux during the next big refactor
  10863. need_lib_prefix=no
  10864. need_version=no
  10865. dynamic_linker="$host_os runtime_loader"
  10866. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10867. soname_spec='$libname$release$shared_ext$major'
  10868. shlibpath_var=LIBRARY_PATH
  10869. shlibpath_overrides_runpath=no
  10870. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10871. hardcode_into_libs=yes
  10872. ;;
  10873. hpux9* | hpux10* | hpux11*)
  10874. # Give a soname corresponding to the major version so that dld.sl refuses to
  10875. # link against other versions.
  10876. version_type=sunos
  10877. need_lib_prefix=no
  10878. need_version=no
  10879. case $host_cpu in
  10880. ia64*)
  10881. shrext_cmds='.so'
  10882. hardcode_into_libs=yes
  10883. dynamic_linker="$host_os dld.so"
  10884. shlibpath_var=LD_LIBRARY_PATH
  10885. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10886. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10887. soname_spec='$libname$release$shared_ext$major'
  10888. if test 32 = "$HPUX_IA64_MODE"; then
  10889. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10890. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10891. else
  10892. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10893. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10894. fi
  10895. ;;
  10896. hppa*64*)
  10897. shrext_cmds='.sl'
  10898. hardcode_into_libs=yes
  10899. dynamic_linker="$host_os dld.sl"
  10900. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10901. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10902. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10903. soname_spec='$libname$release$shared_ext$major'
  10904. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10905. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10906. ;;
  10907. *)
  10908. shrext_cmds='.sl'
  10909. dynamic_linker="$host_os dld.sl"
  10910. shlibpath_var=SHLIB_PATH
  10911. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10912. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10913. soname_spec='$libname$release$shared_ext$major'
  10914. ;;
  10915. esac
  10916. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10917. postinstall_cmds='chmod 555 $lib'
  10918. # or fails outright, so override atomically:
  10919. install_override_mode=555
  10920. ;;
  10921. interix[3-9]*)
  10922. version_type=linux # correct to gnu/linux during the next big refactor
  10923. need_lib_prefix=no
  10924. need_version=no
  10925. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10926. soname_spec='$libname$release$shared_ext$major'
  10927. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10928. shlibpath_var=LD_LIBRARY_PATH
  10929. shlibpath_overrides_runpath=no
  10930. hardcode_into_libs=yes
  10931. ;;
  10932. irix5* | irix6* | nonstopux*)
  10933. case $host_os in
  10934. nonstopux*) version_type=nonstopux ;;
  10935. *)
  10936. if test yes = "$lt_cv_prog_gnu_ld"; then
  10937. version_type=linux # correct to gnu/linux during the next big refactor
  10938. else
  10939. version_type=irix
  10940. fi ;;
  10941. esac
  10942. need_lib_prefix=no
  10943. need_version=no
  10944. soname_spec='$libname$release$shared_ext$major'
  10945. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10946. case $host_os in
  10947. irix5* | nonstopux*)
  10948. libsuff= shlibsuff=
  10949. ;;
  10950. *)
  10951. case $LD in # libtool.m4 will add one of these switches to LD
  10952. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10953. libsuff= shlibsuff= libmagic=32-bit;;
  10954. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10955. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10956. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10957. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10958. *) libsuff= shlibsuff= libmagic=never-match;;
  10959. esac
  10960. ;;
  10961. esac
  10962. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10963. shlibpath_overrides_runpath=no
  10964. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10965. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10966. hardcode_into_libs=yes
  10967. ;;
  10968. # No shared lib support for Linux oldld, aout, or coff.
  10969. linux*oldld* | linux*aout* | linux*coff*)
  10970. dynamic_linker=no
  10971. ;;
  10972. linux*android*)
  10973. version_type=none # Android doesn't support versioned libraries.
  10974. need_lib_prefix=no
  10975. need_version=no
  10976. library_names_spec='$libname$release$shared_ext'
  10977. soname_spec='$libname$release$shared_ext'
  10978. finish_cmds=
  10979. shlibpath_var=LD_LIBRARY_PATH
  10980. shlibpath_overrides_runpath=yes
  10981. # This implies no fast_install, which is unacceptable.
  10982. # Some rework will be needed to allow for fast_install
  10983. # before this can be enabled.
  10984. hardcode_into_libs=yes
  10985. dynamic_linker='Android linker'
  10986. # Don't embed -rpath directories since the linker doesn't support them.
  10987. hardcode_libdir_flag_spec='-L$libdir'
  10988. ;;
  10989. # This must be glibc/ELF.
  10990. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10991. version_type=linux # correct to gnu/linux during the next big refactor
  10992. need_lib_prefix=no
  10993. need_version=no
  10994. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10995. soname_spec='$libname$release$shared_ext$major'
  10996. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10997. shlibpath_var=LD_LIBRARY_PATH
  10998. shlibpath_overrides_runpath=no
  10999. # Some binutils ld are patched to set DT_RUNPATH
  11000. if test ${lt_cv_shlibpath_overrides_runpath+y}
  11001. then :
  11002. printf %s "(cached) " >&6
  11003. else case e in #(
  11004. e) lt_cv_shlibpath_overrides_runpath=no
  11005. save_LDFLAGS=$LDFLAGS
  11006. save_libdir=$libdir
  11007. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  11008. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  11009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11010. /* end confdefs.h. */
  11011. int
  11012. main (void)
  11013. {
  11014. ;
  11015. return 0;
  11016. }
  11017. _ACEOF
  11018. if ac_fn_c_try_link "$LINENO"
  11019. then :
  11020. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  11021. then :
  11022. lt_cv_shlibpath_overrides_runpath=yes
  11023. fi
  11024. fi
  11025. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11026. conftest$ac_exeext conftest.$ac_ext
  11027. LDFLAGS=$save_LDFLAGS
  11028. libdir=$save_libdir
  11029. ;;
  11030. esac
  11031. fi
  11032. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  11033. # This implies no fast_install, which is unacceptable.
  11034. # Some rework will be needed to allow for fast_install
  11035. # before this can be enabled.
  11036. hardcode_into_libs=yes
  11037. # Ideally, we could use ldconfig to report *all* directores which are
  11038. # searched for libraries, however this is still not possible. Aside from not
  11039. # being certain /sbin/ldconfig is available, command
  11040. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  11041. # even though it is searched at run-time. Try to do the best guess by
  11042. # appending ld.so.conf contents (and includes) to the search path.
  11043. if test -f /etc/ld.so.conf; then
  11044. 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' ' '`
  11045. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11046. fi
  11047. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11048. # powerpc, because MkLinux only supported shared libraries with the
  11049. # GNU dynamic linker. Since this was broken with cross compilers,
  11050. # most powerpc-linux boxes support dynamic linking these days and
  11051. # people can always --disable-shared, the test was removed, and we
  11052. # assume the GNU/Linux dynamic linker is in use.
  11053. dynamic_linker='GNU/Linux ld.so'
  11054. ;;
  11055. netbsd*)
  11056. version_type=sunos
  11057. need_lib_prefix=no
  11058. need_version=no
  11059. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11060. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11061. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11062. dynamic_linker='NetBSD (a.out) ld.so'
  11063. else
  11064. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11065. soname_spec='$libname$release$shared_ext$major'
  11066. dynamic_linker='NetBSD ld.elf_so'
  11067. fi
  11068. shlibpath_var=LD_LIBRARY_PATH
  11069. shlibpath_overrides_runpath=yes
  11070. hardcode_into_libs=yes
  11071. ;;
  11072. newsos6)
  11073. version_type=linux # correct to gnu/linux during the next big refactor
  11074. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11075. shlibpath_var=LD_LIBRARY_PATH
  11076. shlibpath_overrides_runpath=yes
  11077. ;;
  11078. *nto* | *qnx*)
  11079. version_type=qnx
  11080. need_lib_prefix=no
  11081. need_version=no
  11082. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11083. soname_spec='$libname$release$shared_ext$major'
  11084. shlibpath_var=LD_LIBRARY_PATH
  11085. shlibpath_overrides_runpath=no
  11086. hardcode_into_libs=yes
  11087. dynamic_linker='ldqnx.so'
  11088. ;;
  11089. openbsd* | bitrig*)
  11090. version_type=sunos
  11091. sys_lib_dlsearch_path_spec=/usr/lib
  11092. need_lib_prefix=no
  11093. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  11094. need_version=no
  11095. else
  11096. need_version=yes
  11097. fi
  11098. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11099. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11100. shlibpath_var=LD_LIBRARY_PATH
  11101. shlibpath_overrides_runpath=yes
  11102. ;;
  11103. os2*)
  11104. libname_spec='$name'
  11105. version_type=windows
  11106. shrext_cmds=.dll
  11107. need_version=no
  11108. need_lib_prefix=no
  11109. # OS/2 can only load a DLL with a base name of 8 characters or less.
  11110. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  11111. v=$($ECHO $release$versuffix | tr -d .-);
  11112. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  11113. $ECHO $n$v`$shared_ext'
  11114. library_names_spec='${libname}_dll.$libext'
  11115. dynamic_linker='OS/2 ld.exe'
  11116. shlibpath_var=BEGINLIBPATH
  11117. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11118. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11119. postinstall_cmds='base_file=`basename \$file`~
  11120. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  11121. dldir=$destdir/`dirname \$dlpath`~
  11122. test -d \$dldir || mkdir -p \$dldir~
  11123. $install_prog $dir/$dlname \$dldir/$dlname~
  11124. chmod a+x \$dldir/$dlname~
  11125. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11126. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11127. fi'
  11128. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  11129. dlpath=$dir/\$dldll~
  11130. $RM \$dlpath'
  11131. ;;
  11132. osf3* | osf4* | osf5*)
  11133. version_type=osf
  11134. need_lib_prefix=no
  11135. need_version=no
  11136. soname_spec='$libname$release$shared_ext$major'
  11137. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11138. shlibpath_var=LD_LIBRARY_PATH
  11139. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11140. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11141. ;;
  11142. rdos*)
  11143. dynamic_linker=no
  11144. ;;
  11145. solaris*)
  11146. version_type=linux # correct to gnu/linux during the next big refactor
  11147. need_lib_prefix=no
  11148. need_version=no
  11149. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11150. soname_spec='$libname$release$shared_ext$major'
  11151. shlibpath_var=LD_LIBRARY_PATH
  11152. shlibpath_overrides_runpath=yes
  11153. hardcode_into_libs=yes
  11154. # ldd complains unless libraries are executable
  11155. postinstall_cmds='chmod +x $lib'
  11156. ;;
  11157. sunos4*)
  11158. version_type=sunos
  11159. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11160. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11161. shlibpath_var=LD_LIBRARY_PATH
  11162. shlibpath_overrides_runpath=yes
  11163. if test yes = "$with_gnu_ld"; then
  11164. need_lib_prefix=no
  11165. fi
  11166. need_version=yes
  11167. ;;
  11168. sysv4 | sysv4.3*)
  11169. version_type=linux # correct to gnu/linux during the next big refactor
  11170. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11171. soname_spec='$libname$release$shared_ext$major'
  11172. shlibpath_var=LD_LIBRARY_PATH
  11173. case $host_vendor in
  11174. sni)
  11175. shlibpath_overrides_runpath=no
  11176. need_lib_prefix=no
  11177. runpath_var=LD_RUN_PATH
  11178. ;;
  11179. siemens)
  11180. need_lib_prefix=no
  11181. ;;
  11182. motorola)
  11183. need_lib_prefix=no
  11184. need_version=no
  11185. shlibpath_overrides_runpath=no
  11186. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11187. ;;
  11188. esac
  11189. ;;
  11190. sysv4*MP*)
  11191. if test -d /usr/nec; then
  11192. version_type=linux # correct to gnu/linux during the next big refactor
  11193. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  11194. soname_spec='$libname$shared_ext.$major'
  11195. shlibpath_var=LD_LIBRARY_PATH
  11196. fi
  11197. ;;
  11198. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11199. version_type=sco
  11200. need_lib_prefix=no
  11201. need_version=no
  11202. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  11203. soname_spec='$libname$release$shared_ext$major'
  11204. shlibpath_var=LD_LIBRARY_PATH
  11205. shlibpath_overrides_runpath=yes
  11206. hardcode_into_libs=yes
  11207. if test yes = "$with_gnu_ld"; then
  11208. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11209. else
  11210. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11211. case $host_os in
  11212. sco3.2v5*)
  11213. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11214. ;;
  11215. esac
  11216. fi
  11217. sys_lib_dlsearch_path_spec='/usr/lib'
  11218. ;;
  11219. tpf*)
  11220. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11221. version_type=linux # correct to gnu/linux during the next big refactor
  11222. need_lib_prefix=no
  11223. need_version=no
  11224. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11225. shlibpath_var=LD_LIBRARY_PATH
  11226. shlibpath_overrides_runpath=no
  11227. hardcode_into_libs=yes
  11228. ;;
  11229. uts4*)
  11230. version_type=linux # correct to gnu/linux during the next big refactor
  11231. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11232. soname_spec='$libname$release$shared_ext$major'
  11233. shlibpath_var=LD_LIBRARY_PATH
  11234. ;;
  11235. *)
  11236. dynamic_linker=no
  11237. ;;
  11238. esac
  11239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11240. printf "%s\n" "$dynamic_linker" >&6; }
  11241. test no = "$dynamic_linker" && can_build_shared=no
  11242. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11243. if test yes = "$GCC"; then
  11244. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11245. fi
  11246. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  11247. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  11248. fi
  11249. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  11250. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  11251. fi
  11252. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  11253. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  11254. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  11255. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  11256. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  11257. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  11258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11259. printf %s "checking how to hardcode library paths into programs... " >&6; }
  11260. hardcode_action=
  11261. if test -n "$hardcode_libdir_flag_spec" ||
  11262. test -n "$runpath_var" ||
  11263. test yes = "$hardcode_automatic"; then
  11264. # We can hardcode non-existent directories.
  11265. if test no != "$hardcode_direct" &&
  11266. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11267. # have to relink, otherwise we might link with an installed library
  11268. # when we should be linking with a yet-to-be-installed one
  11269. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  11270. test no != "$hardcode_minus_L"; then
  11271. # Linking always hardcodes the temporary library directory.
  11272. hardcode_action=relink
  11273. else
  11274. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11275. hardcode_action=immediate
  11276. fi
  11277. else
  11278. # We cannot hardcode anything, or else we can only hardcode existing
  11279. # directories.
  11280. hardcode_action=unsupported
  11281. fi
  11282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11283. printf "%s\n" "$hardcode_action" >&6; }
  11284. if test relink = "$hardcode_action" ||
  11285. test yes = "$inherit_rpath"; then
  11286. # Fast installation is not supported
  11287. enable_fast_install=no
  11288. elif test yes = "$shlibpath_overrides_runpath" ||
  11289. test no = "$enable_shared"; then
  11290. # Fast installation is not necessary
  11291. enable_fast_install=needless
  11292. fi
  11293. if test yes != "$enable_dlopen"; then
  11294. enable_dlopen=unknown
  11295. enable_dlopen_self=unknown
  11296. enable_dlopen_self_static=unknown
  11297. else
  11298. lt_cv_dlopen=no
  11299. lt_cv_dlopen_libs=
  11300. case $host_os in
  11301. beos*)
  11302. lt_cv_dlopen=load_add_on
  11303. lt_cv_dlopen_libs=
  11304. lt_cv_dlopen_self=yes
  11305. ;;
  11306. mingw* | pw32* | cegcc*)
  11307. lt_cv_dlopen=LoadLibrary
  11308. lt_cv_dlopen_libs=
  11309. ;;
  11310. cygwin*)
  11311. lt_cv_dlopen=dlopen
  11312. lt_cv_dlopen_libs=
  11313. ;;
  11314. darwin*)
  11315. # if libdl is installed we need to link against it
  11316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11317. printf %s "checking for dlopen in -ldl... " >&6; }
  11318. if test ${ac_cv_lib_dl_dlopen+y}
  11319. then :
  11320. printf %s "(cached) " >&6
  11321. else case e in #(
  11322. e) ac_check_lib_save_LIBS=$LIBS
  11323. LIBS="-ldl $LIBS"
  11324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11325. /* end confdefs.h. */
  11326. /* Override any GCC internal prototype to avoid an error.
  11327. Use char because int might match the return type of a GCC
  11328. builtin and then its argument prototype would still apply.
  11329. The 'extern "C"' is for builds by C++ compilers;
  11330. although this is not generally supported in C code supporting it here
  11331. has little cost and some practical benefit (sr 110532). */
  11332. #ifdef __cplusplus
  11333. extern "C"
  11334. #endif
  11335. char dlopen (void);
  11336. int
  11337. main (void)
  11338. {
  11339. return dlopen ();
  11340. ;
  11341. return 0;
  11342. }
  11343. _ACEOF
  11344. if ac_fn_c_try_link "$LINENO"
  11345. then :
  11346. ac_cv_lib_dl_dlopen=yes
  11347. else case e in #(
  11348. e) ac_cv_lib_dl_dlopen=no ;;
  11349. esac
  11350. fi
  11351. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11352. conftest$ac_exeext conftest.$ac_ext
  11353. LIBS=$ac_check_lib_save_LIBS ;;
  11354. esac
  11355. fi
  11356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11357. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  11358. if test "x$ac_cv_lib_dl_dlopen" = xyes
  11359. then :
  11360. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11361. else case e in #(
  11362. e)
  11363. lt_cv_dlopen=dyld
  11364. lt_cv_dlopen_libs=
  11365. lt_cv_dlopen_self=yes
  11366. ;;
  11367. esac
  11368. fi
  11369. ;;
  11370. tpf*)
  11371. # Don't try to run any link tests for TPF. We know it's impossible
  11372. # because TPF is a cross-compiler, and we know how we open DSOs.
  11373. lt_cv_dlopen=dlopen
  11374. lt_cv_dlopen_libs=
  11375. lt_cv_dlopen_self=no
  11376. ;;
  11377. *)
  11378. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11379. if test "x$ac_cv_func_shl_load" = xyes
  11380. then :
  11381. lt_cv_dlopen=shl_load
  11382. else case e in #(
  11383. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11384. printf %s "checking for shl_load in -ldld... " >&6; }
  11385. if test ${ac_cv_lib_dld_shl_load+y}
  11386. then :
  11387. printf %s "(cached) " >&6
  11388. else case e in #(
  11389. e) ac_check_lib_save_LIBS=$LIBS
  11390. LIBS="-ldld $LIBS"
  11391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11392. /* end confdefs.h. */
  11393. /* Override any GCC internal prototype to avoid an error.
  11394. Use char because int might match the return type of a GCC
  11395. builtin and then its argument prototype would still apply.
  11396. The 'extern "C"' is for builds by C++ compilers;
  11397. although this is not generally supported in C code supporting it here
  11398. has little cost and some practical benefit (sr 110532). */
  11399. #ifdef __cplusplus
  11400. extern "C"
  11401. #endif
  11402. char shl_load (void);
  11403. int
  11404. main (void)
  11405. {
  11406. return shl_load ();
  11407. ;
  11408. return 0;
  11409. }
  11410. _ACEOF
  11411. if ac_fn_c_try_link "$LINENO"
  11412. then :
  11413. ac_cv_lib_dld_shl_load=yes
  11414. else case e in #(
  11415. e) ac_cv_lib_dld_shl_load=no ;;
  11416. esac
  11417. fi
  11418. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11419. conftest$ac_exeext conftest.$ac_ext
  11420. LIBS=$ac_check_lib_save_LIBS ;;
  11421. esac
  11422. fi
  11423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11424. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  11425. if test "x$ac_cv_lib_dld_shl_load" = xyes
  11426. then :
  11427. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  11428. else case e in #(
  11429. e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11430. if test "x$ac_cv_func_dlopen" = xyes
  11431. then :
  11432. lt_cv_dlopen=dlopen
  11433. else case e in #(
  11434. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11435. printf %s "checking for dlopen in -ldl... " >&6; }
  11436. if test ${ac_cv_lib_dl_dlopen+y}
  11437. then :
  11438. printf %s "(cached) " >&6
  11439. else case e in #(
  11440. e) ac_check_lib_save_LIBS=$LIBS
  11441. LIBS="-ldl $LIBS"
  11442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11443. /* end confdefs.h. */
  11444. /* Override any GCC internal prototype to avoid an error.
  11445. Use char because int might match the return type of a GCC
  11446. builtin and then its argument prototype would still apply.
  11447. The 'extern "C"' is for builds by C++ compilers;
  11448. although this is not generally supported in C code supporting it here
  11449. has little cost and some practical benefit (sr 110532). */
  11450. #ifdef __cplusplus
  11451. extern "C"
  11452. #endif
  11453. char dlopen (void);
  11454. int
  11455. main (void)
  11456. {
  11457. return dlopen ();
  11458. ;
  11459. return 0;
  11460. }
  11461. _ACEOF
  11462. if ac_fn_c_try_link "$LINENO"
  11463. then :
  11464. ac_cv_lib_dl_dlopen=yes
  11465. else case e in #(
  11466. e) ac_cv_lib_dl_dlopen=no ;;
  11467. esac
  11468. fi
  11469. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11470. conftest$ac_exeext conftest.$ac_ext
  11471. LIBS=$ac_check_lib_save_LIBS ;;
  11472. esac
  11473. fi
  11474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11475. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  11476. if test "x$ac_cv_lib_dl_dlopen" = xyes
  11477. then :
  11478. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11479. else case e in #(
  11480. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11481. printf %s "checking for dlopen in -lsvld... " >&6; }
  11482. if test ${ac_cv_lib_svld_dlopen+y}
  11483. then :
  11484. printf %s "(cached) " >&6
  11485. else case e in #(
  11486. e) ac_check_lib_save_LIBS=$LIBS
  11487. LIBS="-lsvld $LIBS"
  11488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11489. /* end confdefs.h. */
  11490. /* Override any GCC internal prototype to avoid an error.
  11491. Use char because int might match the return type of a GCC
  11492. builtin and then its argument prototype would still apply.
  11493. The 'extern "C"' is for builds by C++ compilers;
  11494. although this is not generally supported in C code supporting it here
  11495. has little cost and some practical benefit (sr 110532). */
  11496. #ifdef __cplusplus
  11497. extern "C"
  11498. #endif
  11499. char dlopen (void);
  11500. int
  11501. main (void)
  11502. {
  11503. return dlopen ();
  11504. ;
  11505. return 0;
  11506. }
  11507. _ACEOF
  11508. if ac_fn_c_try_link "$LINENO"
  11509. then :
  11510. ac_cv_lib_svld_dlopen=yes
  11511. else case e in #(
  11512. e) ac_cv_lib_svld_dlopen=no ;;
  11513. esac
  11514. fi
  11515. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11516. conftest$ac_exeext conftest.$ac_ext
  11517. LIBS=$ac_check_lib_save_LIBS ;;
  11518. esac
  11519. fi
  11520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11521. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  11522. if test "x$ac_cv_lib_svld_dlopen" = xyes
  11523. then :
  11524. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  11525. else case e in #(
  11526. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11527. printf %s "checking for dld_link in -ldld... " >&6; }
  11528. if test ${ac_cv_lib_dld_dld_link+y}
  11529. then :
  11530. printf %s "(cached) " >&6
  11531. else case e in #(
  11532. e) ac_check_lib_save_LIBS=$LIBS
  11533. LIBS="-ldld $LIBS"
  11534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11535. /* end confdefs.h. */
  11536. /* Override any GCC internal prototype to avoid an error.
  11537. Use char because int might match the return type of a GCC
  11538. builtin and then its argument prototype would still apply.
  11539. The 'extern "C"' is for builds by C++ compilers;
  11540. although this is not generally supported in C code supporting it here
  11541. has little cost and some practical benefit (sr 110532). */
  11542. #ifdef __cplusplus
  11543. extern "C"
  11544. #endif
  11545. char dld_link (void);
  11546. int
  11547. main (void)
  11548. {
  11549. return dld_link ();
  11550. ;
  11551. return 0;
  11552. }
  11553. _ACEOF
  11554. if ac_fn_c_try_link "$LINENO"
  11555. then :
  11556. ac_cv_lib_dld_dld_link=yes
  11557. else case e in #(
  11558. e) ac_cv_lib_dld_dld_link=no ;;
  11559. esac
  11560. fi
  11561. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11562. conftest$ac_exeext conftest.$ac_ext
  11563. LIBS=$ac_check_lib_save_LIBS ;;
  11564. esac
  11565. fi
  11566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11567. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  11568. if test "x$ac_cv_lib_dld_dld_link" = xyes
  11569. then :
  11570. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11571. fi
  11572. ;;
  11573. esac
  11574. fi
  11575. ;;
  11576. esac
  11577. fi
  11578. ;;
  11579. esac
  11580. fi
  11581. ;;
  11582. esac
  11583. fi
  11584. ;;
  11585. esac
  11586. fi
  11587. ;;
  11588. esac
  11589. if test no = "$lt_cv_dlopen"; then
  11590. enable_dlopen=no
  11591. else
  11592. enable_dlopen=yes
  11593. fi
  11594. case $lt_cv_dlopen in
  11595. dlopen)
  11596. save_CPPFLAGS=$CPPFLAGS
  11597. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11598. save_LDFLAGS=$LDFLAGS
  11599. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11600. save_LIBS=$LIBS
  11601. LIBS="$lt_cv_dlopen_libs $LIBS"
  11602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11603. printf %s "checking whether a program can dlopen itself... " >&6; }
  11604. if test ${lt_cv_dlopen_self+y}
  11605. then :
  11606. printf %s "(cached) " >&6
  11607. else case e in #(
  11608. e) if test yes = "$cross_compiling"; then :
  11609. lt_cv_dlopen_self=cross
  11610. else
  11611. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11612. lt_status=$lt_dlunknown
  11613. cat > conftest.$ac_ext <<_LT_EOF
  11614. #line $LINENO "configure"
  11615. #include "confdefs.h"
  11616. #if HAVE_DLFCN_H
  11617. #include <dlfcn.h>
  11618. #endif
  11619. #include <stdio.h>
  11620. #ifdef RTLD_GLOBAL
  11621. # define LT_DLGLOBAL RTLD_GLOBAL
  11622. #else
  11623. # ifdef DL_GLOBAL
  11624. # define LT_DLGLOBAL DL_GLOBAL
  11625. # else
  11626. # define LT_DLGLOBAL 0
  11627. # endif
  11628. #endif
  11629. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11630. find out it does not work in some platform. */
  11631. #ifndef LT_DLLAZY_OR_NOW
  11632. # ifdef RTLD_LAZY
  11633. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11634. # else
  11635. # ifdef DL_LAZY
  11636. # define LT_DLLAZY_OR_NOW DL_LAZY
  11637. # else
  11638. # ifdef RTLD_NOW
  11639. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11640. # else
  11641. # ifdef DL_NOW
  11642. # define LT_DLLAZY_OR_NOW DL_NOW
  11643. # else
  11644. # define LT_DLLAZY_OR_NOW 0
  11645. # endif
  11646. # endif
  11647. # endif
  11648. # endif
  11649. #endif
  11650. /* When -fvisibility=hidden is used, assume the code has been annotated
  11651. correspondingly for the symbols needed. */
  11652. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11653. int fnord () __attribute__((visibility("default")));
  11654. #endif
  11655. int fnord () { return 42; }
  11656. int main ()
  11657. {
  11658. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11659. int status = $lt_dlunknown;
  11660. if (self)
  11661. {
  11662. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11663. else
  11664. {
  11665. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11666. else puts (dlerror ());
  11667. }
  11668. /* dlclose (self); */
  11669. }
  11670. else
  11671. puts (dlerror ());
  11672. return status;
  11673. }
  11674. _LT_EOF
  11675. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11676. (eval $ac_link) 2>&5
  11677. ac_status=$?
  11678. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11679. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11680. (./conftest; exit; ) >&5 2>/dev/null
  11681. lt_status=$?
  11682. case x$lt_status in
  11683. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11684. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11685. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11686. esac
  11687. else :
  11688. # compilation failed
  11689. lt_cv_dlopen_self=no
  11690. fi
  11691. fi
  11692. rm -fr conftest*
  11693. ;;
  11694. esac
  11695. fi
  11696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11697. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  11698. if test yes = "$lt_cv_dlopen_self"; then
  11699. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11701. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  11702. if test ${lt_cv_dlopen_self_static+y}
  11703. then :
  11704. printf %s "(cached) " >&6
  11705. else case e in #(
  11706. e) if test yes = "$cross_compiling"; then :
  11707. lt_cv_dlopen_self_static=cross
  11708. else
  11709. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11710. lt_status=$lt_dlunknown
  11711. cat > conftest.$ac_ext <<_LT_EOF
  11712. #line $LINENO "configure"
  11713. #include "confdefs.h"
  11714. #if HAVE_DLFCN_H
  11715. #include <dlfcn.h>
  11716. #endif
  11717. #include <stdio.h>
  11718. #ifdef RTLD_GLOBAL
  11719. # define LT_DLGLOBAL RTLD_GLOBAL
  11720. #else
  11721. # ifdef DL_GLOBAL
  11722. # define LT_DLGLOBAL DL_GLOBAL
  11723. # else
  11724. # define LT_DLGLOBAL 0
  11725. # endif
  11726. #endif
  11727. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11728. find out it does not work in some platform. */
  11729. #ifndef LT_DLLAZY_OR_NOW
  11730. # ifdef RTLD_LAZY
  11731. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11732. # else
  11733. # ifdef DL_LAZY
  11734. # define LT_DLLAZY_OR_NOW DL_LAZY
  11735. # else
  11736. # ifdef RTLD_NOW
  11737. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11738. # else
  11739. # ifdef DL_NOW
  11740. # define LT_DLLAZY_OR_NOW DL_NOW
  11741. # else
  11742. # define LT_DLLAZY_OR_NOW 0
  11743. # endif
  11744. # endif
  11745. # endif
  11746. # endif
  11747. #endif
  11748. /* When -fvisibility=hidden is used, assume the code has been annotated
  11749. correspondingly for the symbols needed. */
  11750. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11751. int fnord () __attribute__((visibility("default")));
  11752. #endif
  11753. int fnord () { return 42; }
  11754. int main ()
  11755. {
  11756. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11757. int status = $lt_dlunknown;
  11758. if (self)
  11759. {
  11760. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11761. else
  11762. {
  11763. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11764. else puts (dlerror ());
  11765. }
  11766. /* dlclose (self); */
  11767. }
  11768. else
  11769. puts (dlerror ());
  11770. return status;
  11771. }
  11772. _LT_EOF
  11773. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11774. (eval $ac_link) 2>&5
  11775. ac_status=$?
  11776. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11777. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11778. (./conftest; exit; ) >&5 2>/dev/null
  11779. lt_status=$?
  11780. case x$lt_status in
  11781. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11782. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11783. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11784. esac
  11785. else :
  11786. # compilation failed
  11787. lt_cv_dlopen_self_static=no
  11788. fi
  11789. fi
  11790. rm -fr conftest*
  11791. ;;
  11792. esac
  11793. fi
  11794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11795. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11796. fi
  11797. CPPFLAGS=$save_CPPFLAGS
  11798. LDFLAGS=$save_LDFLAGS
  11799. LIBS=$save_LIBS
  11800. ;;
  11801. esac
  11802. case $lt_cv_dlopen_self in
  11803. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11804. *) enable_dlopen_self=unknown ;;
  11805. esac
  11806. case $lt_cv_dlopen_self_static in
  11807. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11808. *) enable_dlopen_self_static=unknown ;;
  11809. esac
  11810. fi
  11811. striplib=
  11812. old_striplib=
  11813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11814. printf %s "checking whether stripping libraries is possible... " >&6; }
  11815. if test -z "$STRIP"; then
  11816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11817. printf "%s\n" "no" >&6; }
  11818. else
  11819. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11820. old_striplib="$STRIP --strip-debug"
  11821. striplib="$STRIP --strip-unneeded"
  11822. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11823. printf "%s\n" "yes" >&6; }
  11824. else
  11825. case $host_os in
  11826. darwin*)
  11827. # FIXME - insert some real tests, host_os isn't really good enough
  11828. striplib="$STRIP -x"
  11829. old_striplib="$STRIP -S"
  11830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11831. printf "%s\n" "yes" >&6; }
  11832. ;;
  11833. freebsd*)
  11834. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11835. old_striplib="$STRIP --strip-debug"
  11836. striplib="$STRIP --strip-unneeded"
  11837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11838. printf "%s\n" "yes" >&6; }
  11839. else
  11840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11841. printf "%s\n" "no" >&6; }
  11842. fi
  11843. ;;
  11844. *)
  11845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11846. printf "%s\n" "no" >&6; }
  11847. ;;
  11848. esac
  11849. fi
  11850. fi
  11851. # Report what library types will actually be built
  11852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11853. printf %s "checking if libtool supports shared libraries... " >&6; }
  11854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11855. printf "%s\n" "$can_build_shared" >&6; }
  11856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11857. printf %s "checking whether to build shared libraries... " >&6; }
  11858. test no = "$can_build_shared" && enable_shared=no
  11859. # On AIX, shared libraries and static libraries use the same namespace, and
  11860. # are all built from PIC.
  11861. case $host_os in
  11862. aix3*)
  11863. test yes = "$enable_shared" && enable_static=no
  11864. if test -n "$RANLIB"; then
  11865. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11866. postinstall_cmds='$RANLIB $lib'
  11867. fi
  11868. ;;
  11869. aix[4-9]*)
  11870. if test ia64 != "$host_cpu"; then
  11871. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11872. yes,aix,yes) ;; # shared object as lib.so file only
  11873. yes,svr4,*) ;; # shared object as lib.so archive member only
  11874. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11875. esac
  11876. fi
  11877. ;;
  11878. esac
  11879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11880. printf "%s\n" "$enable_shared" >&6; }
  11881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11882. printf %s "checking whether to build static libraries... " >&6; }
  11883. # Make sure either enable_shared or enable_static is yes.
  11884. test yes = "$enable_shared" || enable_static=yes
  11885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11886. printf "%s\n" "$enable_static" >&6; }
  11887. fi
  11888. ac_ext=c
  11889. ac_cpp='$CPP $CPPFLAGS'
  11890. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11891. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11892. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11893. CC=$lt_save_CC
  11894. ac_config_commands="$ac_config_commands libtool"
  11895. # Only expand once:
  11896. CFLAG_VISIBILITY=
  11897. HAVE_VISIBILITY=0
  11898. if test -n "$GCC"; then
  11899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
  11900. printf %s "checking whether the -Werror option is usable... " >&6; }
  11901. if test ${gl_cv_cc_vis_werror+y}
  11902. then :
  11903. printf %s "(cached) " >&6
  11904. else case e in #(
  11905. e)
  11906. gl_save_CFLAGS="$CFLAGS"
  11907. CFLAGS="$CFLAGS -Werror"
  11908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11909. /* end confdefs.h. */
  11910. int
  11911. main (void)
  11912. {
  11913. ;
  11914. return 0;
  11915. }
  11916. _ACEOF
  11917. if ac_fn_c_try_compile "$LINENO"
  11918. then :
  11919. gl_cv_cc_vis_werror=yes
  11920. else case e in #(
  11921. e) gl_cv_cc_vis_werror=no ;;
  11922. esac
  11923. fi
  11924. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11925. CFLAGS="$gl_save_CFLAGS" ;;
  11926. esac
  11927. fi
  11928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
  11929. printf "%s\n" "$gl_cv_cc_vis_werror" >&6; }
  11930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  11931. printf %s "checking for simple visibility declarations... " >&6; }
  11932. if test ${gl_cv_cc_visibility+y}
  11933. then :
  11934. printf %s "(cached) " >&6
  11935. else case e in #(
  11936. e)
  11937. gl_save_CFLAGS="$CFLAGS"
  11938. CFLAGS="$CFLAGS -fvisibility=hidden"
  11939. if test $gl_cv_cc_vis_werror = yes; then
  11940. CFLAGS="$CFLAGS -Werror"
  11941. fi
  11942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11943. /* end confdefs.h. */
  11944. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  11945. extern __attribute__((__visibility__("default"))) int exportedvar;
  11946. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  11947. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  11948. void dummyfunc (void) {}
  11949. int
  11950. main (void)
  11951. {
  11952. ;
  11953. return 0;
  11954. }
  11955. _ACEOF
  11956. if ac_fn_c_try_compile "$LINENO"
  11957. then :
  11958. gl_cv_cc_visibility=yes
  11959. else case e in #(
  11960. e) gl_cv_cc_visibility=no ;;
  11961. esac
  11962. fi
  11963. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11964. CFLAGS="$gl_save_CFLAGS" ;;
  11965. esac
  11966. fi
  11967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  11968. printf "%s\n" "$gl_cv_cc_visibility" >&6; }
  11969. if test $gl_cv_cc_visibility = yes; then
  11970. CFLAG_VISIBILITY="-fvisibility=hidden"
  11971. HAVE_VISIBILITY=1
  11972. fi
  11973. fi
  11974. printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h
  11975. ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  11976. if test "x$ac_cv_header_sys_mkdev_h" = xyes
  11977. then :
  11978. printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  11979. fi
  11980. if test $ac_cv_header_sys_mkdev_h = no; then
  11981. ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  11982. if test "x$ac_cv_header_sys_sysmacros_h" = xyes
  11983. then :
  11984. printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  11985. fi
  11986. fi
  11987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  11988. printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  11989. if test ${ac_cv_header_sys_wait_h+y}
  11990. then :
  11991. printf %s "(cached) " >&6
  11992. else case e in #(
  11993. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11994. /* end confdefs.h. */
  11995. #include <sys/types.h>
  11996. #include <sys/wait.h>
  11997. #ifndef WEXITSTATUS
  11998. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  11999. #endif
  12000. #ifndef WIFEXITED
  12001. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  12002. #endif
  12003. int
  12004. main (void)
  12005. {
  12006. int s;
  12007. wait (&s);
  12008. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  12009. ;
  12010. return 0;
  12011. }
  12012. _ACEOF
  12013. if ac_fn_c_try_compile "$LINENO"
  12014. then :
  12015. ac_cv_header_sys_wait_h=yes
  12016. else case e in #(
  12017. e) ac_cv_header_sys_wait_h=no ;;
  12018. esac
  12019. fi
  12020. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  12021. esac
  12022. fi
  12023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  12024. printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
  12025. if test $ac_cv_header_sys_wait_h = yes; then
  12026. printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  12027. fi
  12028. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  12029. if test "x$ac_cv_header_stdint_h" = xyes
  12030. then :
  12031. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  12032. fi
  12033. ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
  12034. if test "x$ac_cv_header_fcntl_h" = xyes
  12035. then :
  12036. printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
  12037. fi
  12038. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  12039. if test "x$ac_cv_header_inttypes_h" = xyes
  12040. then :
  12041. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  12042. fi
  12043. ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  12044. if test "x$ac_cv_header_unistd_h" = xyes
  12045. then :
  12046. printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
  12047. fi
  12048. ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
  12049. if test "x$ac_cv_header_byteswap_h" = xyes
  12050. then :
  12051. printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
  12052. fi
  12053. ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"
  12054. if test "x$ac_cv_header_spawn_h" = xyes
  12055. then :
  12056. printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h
  12057. fi
  12058. ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
  12059. if test "x$ac_cv_header_utime_h" = xyes
  12060. then :
  12061. printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
  12062. fi
  12063. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  12064. if test "x$ac_cv_header_wchar_h" = xyes
  12065. then :
  12066. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  12067. fi
  12068. ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
  12069. if test "x$ac_cv_header_wctype_h" = xyes
  12070. then :
  12071. printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h
  12072. fi
  12073. ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
  12074. if test "x$ac_cv_header_getopt_h" = xyes
  12075. then :
  12076. printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
  12077. fi
  12078. ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
  12079. if test "x$ac_cv_header_err_h" = xyes
  12080. then :
  12081. printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
  12082. fi
  12083. ac_fn_c_check_header_compile "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
  12084. if test "x$ac_cv_header_xlocale_h" = xyes
  12085. then :
  12086. printf "%s\n" "#define HAVE_XLOCALE_H 1" >>confdefs.h
  12087. fi
  12088. ac_fn_c_check_header_compile "$LINENO" "sys/bswap.h" "ac_cv_header_sys_bswap_h" "$ac_includes_default"
  12089. if test "x$ac_cv_header_sys_bswap_h" = xyes
  12090. then :
  12091. printf "%s\n" "#define HAVE_SYS_BSWAP_H 1" >>confdefs.h
  12092. fi
  12093. ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
  12094. if test "x$ac_cv_header_sys_mman_h" = xyes
  12095. then :
  12096. printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
  12097. fi
  12098. ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
  12099. if test "x$ac_cv_header_sys_stat_h" = xyes
  12100. then :
  12101. printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
  12102. fi
  12103. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  12104. if test "x$ac_cv_header_sys_types_h" = xyes
  12105. then :
  12106. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  12107. fi
  12108. ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "$ac_includes_default"
  12109. if test "x$ac_cv_header_sys_utime_h" = xyes
  12110. then :
  12111. printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h
  12112. fi
  12113. ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  12114. if test "x$ac_cv_header_sys_time_h" = xyes
  12115. then :
  12116. printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
  12117. fi
  12118. ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  12119. if test "x$ac_cv_header_sys_sysmacros_h" = xyes
  12120. then :
  12121. printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
  12122. fi
  12123. ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
  12124. if test "x$ac_cv_header_sys_ioctl_h" = xyes
  12125. then :
  12126. printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
  12127. fi
  12128. if test "$enable_zlib" != "no"; then
  12129. ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  12130. if test "x$ac_cv_header_zlib_h" = xyes
  12131. then :
  12132. printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
  12133. fi
  12134. fi
  12135. if test "$enable_bzlib" != "no"; then
  12136. ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
  12137. if test "x$ac_cv_header_bzlib_h" = xyes
  12138. then :
  12139. printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
  12140. fi
  12141. fi
  12142. if test "$enable_xzlib" != "no"; then
  12143. ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
  12144. if test "x$ac_cv_header_lzma_h" = xyes
  12145. then :
  12146. printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h
  12147. fi
  12148. fi
  12149. if test "$enable_zstdlib" != "no"; then
  12150. ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
  12151. if test "x$ac_cv_header_zstd_h" = xyes
  12152. then :
  12153. printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h
  12154. fi
  12155. ac_fn_c_check_header_compile "$LINENO" "zstd_errors.h" "ac_cv_header_zstd_errors_h" "$ac_includes_default"
  12156. if test "x$ac_cv_header_zstd_errors_h" = xyes
  12157. then :
  12158. printf "%s\n" "#define HAVE_ZSTD_ERRORS_H 1" >>confdefs.h
  12159. fi
  12160. fi
  12161. if test "$enable_lzlib" != "no"; then
  12162. ac_fn_c_check_header_compile "$LINENO" "lzlib.h" "ac_cv_header_lzlib_h" "$ac_includes_default"
  12163. if test "x$ac_cv_header_lzlib_h" = xyes
  12164. then :
  12165. printf "%s\n" "#define HAVE_LZLIB_H 1" >>confdefs.h
  12166. fi
  12167. fi
  12168. if test "$enable_lrziplib" != "no"; then
  12169. ac_fn_c_check_header_compile "$LINENO" "Lrzip.h" "ac_cv_header_Lrzip_h" "$ac_includes_default"
  12170. if test "x$ac_cv_header_Lrzip_h" = xyes
  12171. then :
  12172. printf "%s\n" "#define HAVE_LRZIP_H 1" >>confdefs.h
  12173. fi
  12174. fi
  12175. ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <signal.h>
  12176. "
  12177. if test "x$ac_cv_type_sig_t" = xyes
  12178. then :
  12179. printf "%s\n" "#define HAVE_SIG_T 1" >>confdefs.h
  12180. fi
  12181. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  12182. if test "x$ac_cv_type_off_t" = xyes
  12183. then :
  12184. else case e in #(
  12185. e)
  12186. printf "%s\n" "#define off_t long int" >>confdefs.h
  12187. ;;
  12188. esac
  12189. fi
  12190. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  12191. if test "x$ac_cv_type_size_t" = xyes
  12192. then :
  12193. else case e in #(
  12194. e)
  12195. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  12196. ;;
  12197. esac
  12198. fi
  12199. ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
  12200. if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
  12201. then :
  12202. printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h
  12203. fi
  12204. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
  12205. "
  12206. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
  12207. then :
  12208. printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
  12209. fi
  12210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  12211. printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  12212. if test ${ac_cv_struct_tm+y}
  12213. then :
  12214. printf %s "(cached) " >&6
  12215. else case e in #(
  12216. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12217. /* end confdefs.h. */
  12218. #include <sys/types.h>
  12219. #include <time.h>
  12220. int
  12221. main (void)
  12222. {
  12223. struct tm tm;
  12224. int *p = &tm.tm_sec;
  12225. return !p;
  12226. ;
  12227. return 0;
  12228. }
  12229. _ACEOF
  12230. if ac_fn_c_try_compile "$LINENO"
  12231. then :
  12232. ac_cv_struct_tm=time.h
  12233. else case e in #(
  12234. e) ac_cv_struct_tm=sys/time.h ;;
  12235. esac
  12236. fi
  12237. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  12238. esac
  12239. fi
  12240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  12241. printf "%s\n" "$ac_cv_struct_tm" >&6; }
  12242. if test $ac_cv_struct_tm = sys/time.h; then
  12243. printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
  12244. fi
  12245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
  12246. printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
  12247. if test ${ac_cv_c_undeclared_builtin_options+y}
  12248. then :
  12249. printf %s "(cached) " >&6
  12250. else case e in #(
  12251. e) ac_save_CFLAGS=$CFLAGS
  12252. ac_cv_c_undeclared_builtin_options='cannot detect'
  12253. for ac_arg in '' -fno-builtin; do
  12254. CFLAGS="$ac_save_CFLAGS $ac_arg"
  12255. # This test program should *not* compile successfully.
  12256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12257. /* end confdefs.h. */
  12258. int
  12259. main (void)
  12260. {
  12261. (void) strchr;
  12262. ;
  12263. return 0;
  12264. }
  12265. _ACEOF
  12266. if ac_fn_c_try_compile "$LINENO"
  12267. then :
  12268. else case e in #(
  12269. e) # This test program should compile successfully.
  12270. # No library function is consistently available on
  12271. # freestanding implementations, so test against a dummy
  12272. # declaration. Include always-available headers on the
  12273. # off chance that they somehow elicit warnings.
  12274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12275. /* end confdefs.h. */
  12276. #include <float.h>
  12277. #include <limits.h>
  12278. #include <stdarg.h>
  12279. #include <stddef.h>
  12280. extern void ac_decl (int, char *);
  12281. int
  12282. main (void)
  12283. {
  12284. (void) ac_decl (0, (char *) 0);
  12285. (void) ac_decl;
  12286. ;
  12287. return 0;
  12288. }
  12289. _ACEOF
  12290. if ac_fn_c_try_compile "$LINENO"
  12291. then :
  12292. if test x"$ac_arg" = x
  12293. then :
  12294. ac_cv_c_undeclared_builtin_options='none needed'
  12295. else case e in #(
  12296. e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
  12297. esac
  12298. fi
  12299. break
  12300. fi
  12301. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  12302. esac
  12303. fi
  12304. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12305. done
  12306. CFLAGS=$ac_save_CFLAGS
  12307. ;;
  12308. esac
  12309. fi
  12310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
  12311. printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  12312. case $ac_cv_c_undeclared_builtin_options in #(
  12313. 'cannot detect') :
  12314. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  12315. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  12316. as_fn_error $? "cannot make $CC report undeclared builtins
  12317. See 'config.log' for more details" "$LINENO" 5; } ;; #(
  12318. 'none needed') :
  12319. ac_c_undeclared_builtin_options='' ;; #(
  12320. *) :
  12321. ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
  12322. esac
  12323. ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  12324. #include <$ac_cv_struct_tm>
  12325. "
  12326. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
  12327. then :
  12328. printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
  12329. fi
  12330. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  12331. printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
  12332. else
  12333. ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  12334. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  12335. if test "x$ac_cv_have_decl_tzname" = xyes
  12336. then :
  12337. ac_have_decl=1
  12338. else case e in #(
  12339. e) ac_have_decl=0 ;;
  12340. esac
  12341. fi
  12342. printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
  12343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  12344. printf %s "checking for tzname... " >&6; }
  12345. if test ${ac_cv_var_tzname+y}
  12346. then :
  12347. printf %s "(cached) " >&6
  12348. else case e in #(
  12349. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12350. /* end confdefs.h. */
  12351. #include <time.h>
  12352. #if !HAVE_DECL_TZNAME
  12353. extern char *tzname[];
  12354. #endif
  12355. int
  12356. main (void)
  12357. {
  12358. return tzname[0][0];
  12359. ;
  12360. return 0;
  12361. }
  12362. _ACEOF
  12363. if ac_fn_c_try_link "$LINENO"
  12364. then :
  12365. ac_cv_var_tzname=yes
  12366. else case e in #(
  12367. e) ac_cv_var_tzname=no ;;
  12368. esac
  12369. fi
  12370. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12371. conftest$ac_exeext conftest.$ac_ext ;;
  12372. esac
  12373. fi
  12374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  12375. printf "%s\n" "$ac_cv_var_tzname" >&6; }
  12376. if test $ac_cv_var_tzname = yes; then
  12377. printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
  12378. fi
  12379. fi
  12380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
  12381. printf %s "checking for tm_zone in struct tm... " >&6; }
  12382. if test ${ac_cv_struct_tm_zone+y}
  12383. then :
  12384. printf %s "(cached) " >&6
  12385. else case e in #(
  12386. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12387. /* end confdefs.h. */
  12388. #include <sys/types.h>
  12389. #include <$ac_cv_struct_tm>
  12390. int
  12391. main (void)
  12392. {
  12393. struct tm tm; tm.tm_zone;
  12394. ;
  12395. return 0;
  12396. }
  12397. _ACEOF
  12398. if ac_fn_c_try_compile "$LINENO"
  12399. then :
  12400. ac_cv_struct_tm_zone=yes
  12401. else case e in #(
  12402. e) ac_cv_struct_tm_zone=no ;;
  12403. esac
  12404. fi
  12405. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  12406. esac
  12407. fi
  12408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
  12409. printf "%s\n" "$ac_cv_struct_tm_zone" >&6; }
  12410. if test "$ac_cv_struct_tm_zone" = yes; then
  12411. printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
  12412. fi
  12413. # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
  12414. # consider it declared and we won't give our own extern.
  12415. ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  12416. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  12417. if test "x$ac_cv_have_decl_tzname" = xyes
  12418. then :
  12419. ac_have_decl=1
  12420. else case e in #(
  12421. e) ac_have_decl=0 ;;
  12422. esac
  12423. fi
  12424. printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
  12425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  12426. printf %s "checking for tzname... " >&6; }
  12427. if test ${ac_cv_var_tzname+y}
  12428. then :
  12429. printf %s "(cached) " >&6
  12430. else case e in #(
  12431. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12432. /* end confdefs.h. */
  12433. #include <time.h>
  12434. int
  12435. main (void)
  12436. {
  12437. #if !HAVE_DECL_TZNAME
  12438. extern char *tzname[];
  12439. #endif
  12440. return tzname[0][0];
  12441. ;
  12442. return 0;
  12443. }
  12444. _ACEOF
  12445. if ac_fn_c_try_link "$LINENO"
  12446. then :
  12447. ac_cv_var_tzname=yes
  12448. else case e in #(
  12449. e) ac_cv_var_tzname=no ;;
  12450. esac
  12451. fi
  12452. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12453. conftest$ac_exeext conftest.$ac_ext ;;
  12454. esac
  12455. fi
  12456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  12457. printf "%s\n" "$ac_cv_var_tzname" >&6; }
  12458. if test $ac_cv_var_tzname = yes; then
  12459. printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
  12460. fi
  12461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
  12462. printf %s "checking for tm_isdst in struct tm... " >&6; }
  12463. if test ${ac_cv_struct_tm_isdst+y}
  12464. then :
  12465. printf %s "(cached) " >&6
  12466. else case e in #(
  12467. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12468. /* end confdefs.h. */
  12469. #include <sys/types.h>
  12470. #include <$ac_cv_struct_tm>
  12471. int
  12472. main (void)
  12473. {
  12474. struct tm tm; tm.tm_isdst;
  12475. ;
  12476. return 0;
  12477. }
  12478. _ACEOF
  12479. if ac_fn_c_try_compile "$LINENO"
  12480. then :
  12481. ac_cv_struct_tm_isdst=yes
  12482. else case e in #(
  12483. e) ac_cv_struct_tm_isdst=no ;;
  12484. esac
  12485. fi
  12486. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  12487. esac
  12488. fi
  12489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
  12490. printf "%s\n" "$ac_cv_struct_tm_isdst" >&6; }
  12491. if test "$ac_cv_struct_tm_isdst" = yes; then
  12492. printf "%s\n" "#define HAVE_TM_ISDST 1" >>confdefs.h
  12493. fi
  12494. ac_fn_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
  12495. #include <stdlib.h>
  12496. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  12497. if test "x$ac_cv_have_decl_daylight" = xyes
  12498. then :
  12499. ac_have_decl=1
  12500. else case e in #(
  12501. e) ac_have_decl=0 ;;
  12502. esac
  12503. fi
  12504. printf "%s\n" "#define HAVE_DECL_DAYLIGHT $ac_have_decl" >>confdefs.h
  12505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
  12506. printf %s "checking for daylight... " >&6; }
  12507. if test ${ac_cv_var_daylight+y}
  12508. then :
  12509. printf %s "(cached) " >&6
  12510. else case e in #(
  12511. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12512. /* end confdefs.h. */
  12513. #include <time.h>
  12514. #include <stdlib.h>
  12515. int
  12516. main (void)
  12517. {
  12518. #if !HAVE_DECL_DAYLIGHT
  12519. extern int daylight;
  12520. #endif
  12521. daylight = atoi("1");
  12522. ;
  12523. return 0;
  12524. }
  12525. _ACEOF
  12526. if ac_fn_c_try_link "$LINENO"
  12527. then :
  12528. ac_cv_var_daylight=yes
  12529. else case e in #(
  12530. e) ac_cv_var_daylight=no ;;
  12531. esac
  12532. fi
  12533. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12534. conftest$ac_exeext conftest.$ac_ext ;;
  12535. esac
  12536. fi
  12537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
  12538. printf "%s\n" "$ac_cv_var_daylight" >&6; }
  12539. if test $ac_cv_var_daylight = yes; then
  12540. printf "%s\n" "#define HAVE_DAYLIGHT 1" >>confdefs.h
  12541. fi
  12542. # Check whether --enable-largefile was given.
  12543. if test ${enable_largefile+y}
  12544. then :
  12545. enableval=$enable_largefile;
  12546. fi
  12547. if test "$enable_largefile,$enable_year2038" != no,no
  12548. then :
  12549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
  12550. printf %s "checking for $CC option to enable large file support... " >&6; }
  12551. if test ${ac_cv_sys_largefile_opts+y}
  12552. then :
  12553. printf %s "(cached) " >&6
  12554. else case e in #(
  12555. e) ac_save_CC="$CC"
  12556. ac_opt_found=no
  12557. for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
  12558. if test x"$ac_opt" != x"none needed"
  12559. then :
  12560. CC="$ac_save_CC $ac_opt"
  12561. fi
  12562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12563. /* end confdefs.h. */
  12564. #include <sys/types.h>
  12565. #ifndef FTYPE
  12566. # define FTYPE off_t
  12567. #endif
  12568. /* Check that FTYPE can represent 2**63 - 1 correctly.
  12569. We can't simply define LARGE_FTYPE to be 9223372036854775807,
  12570. since some C++ compilers masquerading as C compilers
  12571. incorrectly reject 9223372036854775807. */
  12572. #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
  12573. int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
  12574. && LARGE_FTYPE % 2147483647 == 1)
  12575. ? 1 : -1];
  12576. int
  12577. main (void)
  12578. {
  12579. ;
  12580. return 0;
  12581. }
  12582. _ACEOF
  12583. if ac_fn_c_try_compile "$LINENO"
  12584. then :
  12585. if test x"$ac_opt" = x"none needed"
  12586. then :
  12587. # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
  12588. CC="$CC -DFTYPE=ino_t"
  12589. if ac_fn_c_try_compile "$LINENO"
  12590. then :
  12591. else case e in #(
  12592. e) CC="$CC -D_FILE_OFFSET_BITS=64"
  12593. if ac_fn_c_try_compile "$LINENO"
  12594. then :
  12595. ac_opt='-D_FILE_OFFSET_BITS=64'
  12596. fi
  12597. rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
  12598. esac
  12599. fi
  12600. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12601. fi
  12602. ac_cv_sys_largefile_opts=$ac_opt
  12603. ac_opt_found=yes
  12604. fi
  12605. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12606. test $ac_opt_found = no || break
  12607. done
  12608. CC="$ac_save_CC"
  12609. test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
  12610. esac
  12611. fi
  12612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
  12613. printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
  12614. ac_have_largefile=yes
  12615. case $ac_cv_sys_largefile_opts in #(
  12616. "none needed") :
  12617. ;; #(
  12618. "supported through gnulib") :
  12619. ;; #(
  12620. "support not detected") :
  12621. ac_have_largefile=no ;; #(
  12622. "-D_FILE_OFFSET_BITS=64") :
  12623. printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
  12624. ;; #(
  12625. "-D_LARGE_FILES=1") :
  12626. printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
  12627. ;; #(
  12628. "-n32") :
  12629. CC="$CC -n32" ;; #(
  12630. *) :
  12631. as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
  12632. esac
  12633. if test "$enable_year2038" != no
  12634. then :
  12635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
  12636. printf %s "checking for $CC option for timestamps after 2038... " >&6; }
  12637. if test ${ac_cv_sys_year2038_opts+y}
  12638. then :
  12639. printf %s "(cached) " >&6
  12640. else case e in #(
  12641. e) ac_save_CPPFLAGS="$CPPFLAGS"
  12642. ac_opt_found=no
  12643. for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
  12644. if test x"$ac_opt" != x"none needed"
  12645. then :
  12646. CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
  12647. fi
  12648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12649. /* end confdefs.h. */
  12650. #include <time.h>
  12651. /* Check that time_t can represent 2**32 - 1 correctly. */
  12652. #define LARGE_TIME_T \\
  12653. ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
  12654. int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
  12655. && LARGE_TIME_T % 65537 == 0)
  12656. ? 1 : -1];
  12657. int
  12658. main (void)
  12659. {
  12660. ;
  12661. return 0;
  12662. }
  12663. _ACEOF
  12664. if ac_fn_c_try_compile "$LINENO"
  12665. then :
  12666. ac_cv_sys_year2038_opts="$ac_opt"
  12667. ac_opt_found=yes
  12668. fi
  12669. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12670. test $ac_opt_found = no || break
  12671. done
  12672. CPPFLAGS="$ac_save_CPPFLAGS"
  12673. test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
  12674. esac
  12675. fi
  12676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
  12677. printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
  12678. ac_have_year2038=yes
  12679. case $ac_cv_sys_year2038_opts in #(
  12680. "none needed") :
  12681. ;; #(
  12682. "support not detected") :
  12683. ac_have_year2038=no ;; #(
  12684. "-D_TIME_BITS=64") :
  12685. printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
  12686. ;; #(
  12687. "-D__MINGW_USE_VC2005_COMPAT") :
  12688. printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
  12689. ;; #(
  12690. "-U_USE_32_BIT_TIME_T"*) :
  12691. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  12692. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  12693. as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
  12694. will stop working after mid-January 2038. Remove
  12695. _USE_32BIT_TIME_T from the compiler flags.
  12696. See 'config.log' for more details" "$LINENO" 5; } ;; #(
  12697. *) :
  12698. as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
  12699. esac
  12700. fi
  12701. fi
  12702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
  12703. printf %s "checking for declarations of fseeko and ftello... " >&6; }
  12704. if test ${ac_cv_func_fseeko_ftello+y}
  12705. then :
  12706. printf %s "(cached) " >&6
  12707. else case e in #(
  12708. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12709. /* end confdefs.h. */
  12710. #if defined __hpux && !defined _LARGEFILE_SOURCE
  12711. # include <limits.h>
  12712. # if LONG_MAX >> 31 == 0
  12713. # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
  12714. # endif
  12715. #endif
  12716. #include <sys/types.h> /* for off_t */
  12717. #include <stdio.h>
  12718. int
  12719. main (void)
  12720. {
  12721. int (*fp1) (FILE *, off_t, int) = fseeko;
  12722. off_t (*fp2) (FILE *) = ftello;
  12723. return fseeko (stdin, 0, 0)
  12724. && fp1 (stdin, 0, 0)
  12725. && ftello (stdin) >= 0
  12726. && fp2 (stdin) >= 0;
  12727. ;
  12728. return 0;
  12729. }
  12730. _ACEOF
  12731. if ac_fn_c_try_compile "$LINENO"
  12732. then :
  12733. ac_cv_func_fseeko_ftello=yes
  12734. else case e in #(
  12735. e) ac_save_CPPFLAGS="$CPPFLAGS"
  12736. CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
  12737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12738. /* end confdefs.h. */
  12739. #if defined __hpux && !defined _LARGEFILE_SOURCE
  12740. # include <limits.h>
  12741. # if LONG_MAX >> 31 == 0
  12742. # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
  12743. # endif
  12744. #endif
  12745. #include <sys/types.h> /* for off_t */
  12746. #include <stdio.h>
  12747. int
  12748. main (void)
  12749. {
  12750. int (*fp1) (FILE *, off_t, int) = fseeko;
  12751. off_t (*fp2) (FILE *) = ftello;
  12752. return fseeko (stdin, 0, 0)
  12753. && fp1 (stdin, 0, 0)
  12754. && ftello (stdin) >= 0
  12755. && fp2 (stdin) >= 0;
  12756. ;
  12757. return 0;
  12758. }
  12759. _ACEOF
  12760. if ac_fn_c_try_compile "$LINENO"
  12761. then :
  12762. ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
  12763. else case e in #(
  12764. e) ac_cv_func_fseeko_ftello=no ;;
  12765. esac
  12766. fi
  12767. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  12768. esac
  12769. fi
  12770. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  12771. esac
  12772. fi
  12773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
  12774. printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
  12775. if test "$ac_cv_func_fseeko_ftello" != no
  12776. then :
  12777. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  12778. fi
  12779. if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
  12780. then :
  12781. printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
  12782. fi
  12783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
  12784. printf %s "checking for mbstate_t... " >&6; }
  12785. if test ${ac_cv_type_mbstate_t+y}
  12786. then :
  12787. printf %s "(cached) " >&6
  12788. else case e in #(
  12789. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12790. /* end confdefs.h. */
  12791. $ac_includes_default
  12792. # include <wchar.h>
  12793. int
  12794. main (void)
  12795. {
  12796. mbstate_t x; return sizeof x;
  12797. ;
  12798. return 0;
  12799. }
  12800. _ACEOF
  12801. if ac_fn_c_try_compile "$LINENO"
  12802. then :
  12803. ac_cv_type_mbstate_t=yes
  12804. else case e in #(
  12805. e) ac_cv_type_mbstate_t=no ;;
  12806. esac
  12807. fi
  12808. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  12809. esac
  12810. fi
  12811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
  12812. printf "%s\n" "$ac_cv_type_mbstate_t" >&6; }
  12813. if test $ac_cv_type_mbstate_t = yes; then
  12814. printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h
  12815. else
  12816. printf "%s\n" "#define mbstate_t int" >>confdefs.h
  12817. fi
  12818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
  12819. printf %s "checking for struct option in getopt... " >&6; }
  12820. if test ${ac_cv_struct_option_getopt_h+y}
  12821. then :
  12822. printf %s "(cached) " >&6
  12823. else case e in #(
  12824. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12825. /* end confdefs.h. */
  12826. #include <getopt.h>
  12827. int
  12828. main (void)
  12829. {
  12830. struct option op; op.name;
  12831. ;
  12832. return 0;
  12833. }
  12834. _ACEOF
  12835. if ac_fn_c_try_compile "$LINENO"
  12836. then :
  12837. ac_cv_struct_option_getopt_h=yes
  12838. else case e in #(
  12839. e) ac_cv_struct_option_getopt_h=no ;;
  12840. esac
  12841. fi
  12842. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  12843. esac
  12844. fi
  12845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
  12846. printf "%s\n" "$ac_cv_struct_option_getopt_h" >&6; }
  12847. if test "$ac_cv_struct_option_getopt_h" = yes; then
  12848. printf "%s\n" "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
  12849. fi
  12850. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
  12851. "
  12852. if test "x$ac_cv_type_pid_t" = xyes
  12853. then :
  12854. else case e in #(
  12855. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12856. /* end confdefs.h. */
  12857. #if defined _WIN64 && !defined __CYGWIN__
  12858. LLP64
  12859. #endif
  12860. int
  12861. main (void)
  12862. {
  12863. ;
  12864. return 0;
  12865. }
  12866. _ACEOF
  12867. if ac_fn_c_try_compile "$LINENO"
  12868. then :
  12869. ac_pid_type='int'
  12870. else case e in #(
  12871. e) ac_pid_type='__int64' ;;
  12872. esac
  12873. fi
  12874. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12875. printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
  12876. ;;
  12877. esac
  12878. fi
  12879. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  12880. case $ac_cv_c_uint8_t in #(
  12881. no|yes) ;; #(
  12882. *)
  12883. printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
  12884. printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
  12885. ;;
  12886. esac
  12887. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  12888. case $ac_cv_c_uint16_t in #(
  12889. no|yes) ;; #(
  12890. *)
  12891. printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
  12892. ;;
  12893. esac
  12894. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  12895. case $ac_cv_c_uint32_t in #(
  12896. no|yes) ;; #(
  12897. *)
  12898. printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
  12899. printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
  12900. ;;
  12901. esac
  12902. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  12903. case $ac_cv_c_int32_t in #(
  12904. no|yes) ;; #(
  12905. *)
  12906. printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
  12907. ;;
  12908. esac
  12909. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  12910. case $ac_cv_c_uint64_t in #(
  12911. no|yes) ;; #(
  12912. *)
  12913. printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
  12914. printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
  12915. ;;
  12916. esac
  12917. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  12918. case $ac_cv_c_int64_t in #(
  12919. no|yes) ;; #(
  12920. *)
  12921. printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
  12922. ;;
  12923. esac
  12924. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  12925. if test "x$ac_cv_type_intptr_t" = xyes
  12926. then :
  12927. printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
  12928. else case e in #(
  12929. e) for ac_type in 'int' 'long int' 'long long int'; do
  12930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12931. /* end confdefs.h. */
  12932. $ac_includes_default
  12933. int
  12934. main (void)
  12935. {
  12936. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  12937. test_array [0] = 0;
  12938. return test_array [0];
  12939. ;
  12940. return 0;
  12941. }
  12942. _ACEOF
  12943. if ac_fn_c_try_compile "$LINENO"
  12944. then :
  12945. printf "%s\n" "#define intptr_t $ac_type" >>confdefs.h
  12946. ac_type=
  12947. fi
  12948. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12949. test -z "$ac_type" && break
  12950. done ;;
  12951. esac
  12952. fi
  12953. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  12954. if test "x$ac_cv_type_uintptr_t" = xyes
  12955. then :
  12956. printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
  12957. else case e in #(
  12958. e) for ac_type in 'unsigned int' 'unsigned long int' \
  12959. 'unsigned long long int'; do
  12960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12961. /* end confdefs.h. */
  12962. $ac_includes_default
  12963. int
  12964. main (void)
  12965. {
  12966. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  12967. test_array [0] = 0;
  12968. return test_array [0];
  12969. ;
  12970. return 0;
  12971. }
  12972. _ACEOF
  12973. if ac_fn_c_try_compile "$LINENO"
  12974. then :
  12975. printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
  12976. ac_type=
  12977. fi
  12978. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12979. test -z "$ac_type" && break
  12980. done ;;
  12981. esac
  12982. fi
  12983. if test "$enable_year2038,$ac_have_year2038,$cross_compiling" = yes,no,no
  12984. then :
  12985. # If we're not cross compiling and 'touch' works with a large
  12986. # timestamp, then we can presume the system supports wider time_t
  12987. # *somehow* and we just weren't able to detect it. One common
  12988. # case that we deliberately *don't* probe for is a system that
  12989. # supports both 32- and 64-bit ABIs but only the 64-bit ABI offers
  12990. # wide time_t. (It would be inappropriate for us to override an
  12991. # intentional use of -m32.) Error out, demanding use of
  12992. # --disable-year2038 if this is intentional.
  12993. if TZ=UTC0 touch -t 210602070628.15 conftest.time 2>/dev/null
  12994. then :
  12995. case `TZ=UTC0 LC_ALL=C ls -l conftest.time 2>/dev/null` in #(
  12996. *'Feb 7 2106'* | *'Feb 7 17:10'*) :
  12997. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  12998. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  12999. as_fn_error $? "this system appears to support timestamps after
  13000. mid-January 2038, but no mechanism for enabling wide
  13001. 'time_t' was detected. Did you mean to build a 64-bit
  13002. binary? (E.g., 'CC=\"${CC} -m64\"'.) To proceed with
  13003. 32-bit time_t, configure with '--disable-year2038'.
  13004. See 'config.log' for more details" "$LINENO" 5; } ;; #(
  13005. *) :
  13006. ;;
  13007. esac
  13008. fi
  13009. fi
  13010. ac_func=
  13011. for ac_item in $ac_func_c_list
  13012. do
  13013. if test $ac_func; then
  13014. ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
  13015. if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
  13016. echo "#define $ac_item 1" >> confdefs.h
  13017. fi
  13018. ac_func=
  13019. else
  13020. ac_func=$ac_item
  13021. fi
  13022. done
  13023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  13024. printf %s "checking for working mmap... " >&6; }
  13025. if test ${ac_cv_func_mmap_fixed_mapped+y}
  13026. then :
  13027. printf %s "(cached) " >&6
  13028. else case e in #(
  13029. e) if test "$cross_compiling" = yes
  13030. then :
  13031. case "$host_os" in # ((
  13032. # Guess yes on platforms where we know the result.
  13033. linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
  13034. # If we don't know, assume the worst.
  13035. *) ac_cv_func_mmap_fixed_mapped=no ;;
  13036. esac
  13037. else case e in #(
  13038. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13039. /* end confdefs.h. */
  13040. $ac_includes_default
  13041. /* malloc might have been renamed as rpl_malloc. */
  13042. #undef malloc
  13043. /* Thanks to Mike Haertel and Jim Avera for this test.
  13044. Here is a matrix of mmap possibilities:
  13045. mmap private not fixed
  13046. mmap private fixed at somewhere currently unmapped
  13047. mmap private fixed at somewhere already mapped
  13048. mmap shared not fixed
  13049. mmap shared fixed at somewhere currently unmapped
  13050. mmap shared fixed at somewhere already mapped
  13051. For private mappings, we should verify that changes cannot be read()
  13052. back from the file, nor mmap's back from the file at a different
  13053. address. (There have been systems where private was not correctly
  13054. implemented like the infamous i386 svr4.0, and systems where the
  13055. VM page cache was not coherent with the file system buffer cache
  13056. like early versions of FreeBSD and possibly contemporary NetBSD.)
  13057. For shared mappings, we should conversely verify that changes get
  13058. propagated back to all the places they're supposed to be. */
  13059. #include <fcntl.h>
  13060. #include <sys/mman.h>
  13061. #ifndef getpagesize
  13062. /* Prefer sysconf to the legacy getpagesize function, as getpagesize has
  13063. been removed from POSIX and is limited to page sizes that fit in 'int'. */
  13064. # ifdef _SC_PAGESIZE
  13065. # define getpagesize() sysconf (_SC_PAGESIZE)
  13066. # elif defined _SC_PAGE_SIZE
  13067. # define getpagesize() sysconf (_SC_PAGE_SIZE)
  13068. # elif HAVE_GETPAGESIZE
  13069. int getpagesize ();
  13070. # else
  13071. # ifdef HAVE_SYS_PARAM_H
  13072. # include <sys/param.h>
  13073. # ifdef EXEC_PAGESIZE
  13074. # define getpagesize() EXEC_PAGESIZE
  13075. # else /* no EXEC_PAGESIZE */
  13076. # ifdef NBPG
  13077. # define getpagesize() NBPG * CLSIZE
  13078. # ifndef CLSIZE
  13079. # define CLSIZE 1
  13080. # endif /* no CLSIZE */
  13081. # else /* no NBPG */
  13082. # ifdef NBPC
  13083. # define getpagesize() NBPC
  13084. # else /* no NBPC */
  13085. # ifdef PAGESIZE
  13086. # define getpagesize() PAGESIZE
  13087. # endif /* PAGESIZE */
  13088. # endif /* no NBPC */
  13089. # endif /* no NBPG */
  13090. # endif /* no EXEC_PAGESIZE */
  13091. # else /* no HAVE_SYS_PARAM_H */
  13092. # define getpagesize() 8192 /* punt totally */
  13093. # endif /* no HAVE_SYS_PARAM_H */
  13094. # endif
  13095. #endif
  13096. int
  13097. main (void)
  13098. {
  13099. char *data, *data2, *data3;
  13100. const char *cdata2;
  13101. long i, pagesize;
  13102. int fd, fd2;
  13103. pagesize = getpagesize ();
  13104. /* First, make a file with some known garbage in it. */
  13105. data = (char *) malloc (pagesize);
  13106. if (!data)
  13107. return 1;
  13108. for (i = 0; i < pagesize; ++i)
  13109. *(data + i) = rand ();
  13110. umask (0);
  13111. fd = creat ("conftest.mmap", 0600);
  13112. if (fd < 0)
  13113. return 2;
  13114. if (write (fd, data, pagesize) != pagesize)
  13115. return 3;
  13116. close (fd);
  13117. /* Next, check that the tail of a page is zero-filled. File must have
  13118. non-zero length, otherwise we risk SIGBUS for entire page. */
  13119. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  13120. if (fd2 < 0)
  13121. return 4;
  13122. cdata2 = "";
  13123. if (write (fd2, cdata2, 1) != 1)
  13124. return 5;
  13125. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  13126. if (data2 == MAP_FAILED)
  13127. return 6;
  13128. for (i = 0; i < pagesize; ++i)
  13129. if (*(data2 + i))
  13130. return 7;
  13131. close (fd2);
  13132. /* 'return 8;' not currently used. */
  13133. /* Next, try to mmap the file at a fixed address which already has
  13134. something else allocated at it. If we can, also make sure that
  13135. we see the same garbage. */
  13136. fd = open ("conftest.mmap", O_RDWR);
  13137. if (fd < 0)
  13138. return 9;
  13139. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  13140. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  13141. return 10;
  13142. for (i = 0; i < pagesize; ++i)
  13143. if (*(data + i) != *(data2 + i))
  13144. return 11;
  13145. /* Finally, make sure that changes to the mapped area do not
  13146. percolate back to the file as seen by read(). (This is a bug on
  13147. some variants of i386 svr4.0.) */
  13148. for (i = 0; i < pagesize; ++i)
  13149. *(data2 + i) = *(data2 + i) + 1;
  13150. data3 = (char *) malloc (pagesize);
  13151. if (!data3)
  13152. return 12;
  13153. if (read (fd, data3, pagesize) != pagesize)
  13154. return 13;
  13155. for (i = 0; i < pagesize; ++i)
  13156. if (*(data + i) != *(data3 + i))
  13157. return 14;
  13158. close (fd);
  13159. free (data);
  13160. free (data3);
  13161. return 0;
  13162. }
  13163. _ACEOF
  13164. if ac_fn_c_try_run "$LINENO"
  13165. then :
  13166. ac_cv_func_mmap_fixed_mapped=yes
  13167. else case e in #(
  13168. e) ac_cv_func_mmap_fixed_mapped=no ;;
  13169. esac
  13170. fi
  13171. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13172. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  13173. esac
  13174. fi
  13175. ;;
  13176. esac
  13177. fi
  13178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  13179. printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
  13180. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  13181. printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
  13182. fi
  13183. rm -f conftest.mmap conftest.txt
  13184. if test "x$ac_cv_func_fork" = xyes; then
  13185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  13186. printf %s "checking for working fork... " >&6; }
  13187. if test ${ac_cv_func_fork_works+y}
  13188. then :
  13189. printf %s "(cached) " >&6
  13190. else case e in #(
  13191. e) if test "$cross_compiling" = yes
  13192. then :
  13193. ac_cv_func_fork_works=cross
  13194. else case e in #(
  13195. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13196. /* end confdefs.h. */
  13197. $ac_includes_default
  13198. int
  13199. main (void)
  13200. {
  13201. /* By R. Kuhlmann. */
  13202. return fork () < 0;
  13203. ;
  13204. return 0;
  13205. }
  13206. _ACEOF
  13207. if ac_fn_c_try_run "$LINENO"
  13208. then :
  13209. ac_cv_func_fork_works=yes
  13210. else case e in #(
  13211. e) ac_cv_func_fork_works=no ;;
  13212. esac
  13213. fi
  13214. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13215. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  13216. esac
  13217. fi
  13218. ;;
  13219. esac
  13220. fi
  13221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  13222. printf "%s\n" "$ac_cv_func_fork_works" >&6; }
  13223. else
  13224. ac_cv_func_fork_works=$ac_cv_func_fork
  13225. fi
  13226. if test "x$ac_cv_func_fork_works" = xcross; then
  13227. case $host in
  13228. *-*-amigaos* | *-*-msdosdjgpp*)
  13229. # Override, as these systems have only a dummy fork() stub
  13230. ac_cv_func_fork_works=no
  13231. ;;
  13232. *)
  13233. ac_cv_func_fork_works=yes
  13234. ;;
  13235. esac
  13236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  13237. printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  13238. fi
  13239. ac_cv_func_vfork_works=$ac_cv_func_vfork
  13240. if test "x$ac_cv_func_vfork" = xyes; then
  13241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  13242. printf %s "checking for working vfork... " >&6; }
  13243. if test ${ac_cv_func_vfork_works+y}
  13244. then :
  13245. printf %s "(cached) " >&6
  13246. else case e in #(
  13247. e) if test "$cross_compiling" = yes
  13248. then :
  13249. ac_cv_func_vfork_works=cross
  13250. else case e in #(
  13251. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13252. /* end confdefs.h. */
  13253. /* Thanks to Paul Eggert for this test. */
  13254. $ac_includes_default
  13255. #include <signal.h>
  13256. #include <sys/wait.h>
  13257. #ifdef HAVE_VFORK_H
  13258. # include <vfork.h>
  13259. #endif
  13260. static void
  13261. do_nothing (int sig)
  13262. {
  13263. (void) sig;
  13264. }
  13265. /* On some sparc systems, changes by the child to local and incoming
  13266. argument registers are propagated back to the parent. The compiler
  13267. is told about this with #include <vfork.h>, but some compilers
  13268. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  13269. static variable whose address is put into a register that is
  13270. clobbered by the vfork. */
  13271. static void
  13272. sparc_address_test (int arg)
  13273. {
  13274. static pid_t child;
  13275. if (!child) {
  13276. child = vfork ();
  13277. if (child < 0) {
  13278. perror ("vfork");
  13279. _exit(2);
  13280. }
  13281. if (!child) {
  13282. arg = getpid();
  13283. write(-1, "", 0);
  13284. _exit (arg);
  13285. }
  13286. }
  13287. }
  13288. int
  13289. main (void)
  13290. {
  13291. pid_t parent = getpid ();
  13292. pid_t child;
  13293. sparc_address_test (0);
  13294. /* On Solaris 2.4, changes by the child to the signal handler
  13295. also munge signal handlers in the parent. To detect this,
  13296. start by putting the parent's handler in a known state. */
  13297. signal (SIGTERM, SIG_DFL);
  13298. child = vfork ();
  13299. if (child == 0) {
  13300. /* Here is another test for sparc vfork register problems. This
  13301. test uses lots of local variables, at least as many local
  13302. variables as main has allocated so far including compiler
  13303. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  13304. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  13305. reuse the register of parent for one of the local variables,
  13306. since it will think that parent can't possibly be used any more
  13307. in this routine. Assigning to the local variable will thus
  13308. munge parent in the parent process. */
  13309. pid_t
  13310. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  13311. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  13312. /* Convince the compiler that p..p7 are live; otherwise, it might
  13313. use the same hardware register for all 8 local variables. */
  13314. if (p != p1 || p != p2 || p != p3 || p != p4
  13315. || p != p5 || p != p6 || p != p7)
  13316. _exit(1);
  13317. /* Alter the child's signal handler. */
  13318. if (signal (SIGTERM, do_nothing) != SIG_DFL)
  13319. _exit(1);
  13320. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  13321. from child file descriptors. If the child closes a descriptor
  13322. before it execs or exits, this munges the parent's descriptor
  13323. as well. Test for this by closing stdout in the child. */
  13324. _exit(close(fileno(stdout)) != 0);
  13325. } else {
  13326. int status;
  13327. struct stat st;
  13328. while (wait(&status) != child)
  13329. ;
  13330. return (
  13331. /* Was there some problem with vforking? */
  13332. child < 0
  13333. /* Did the child munge the parent's signal handler? */
  13334. || signal (SIGTERM, SIG_DFL) != SIG_DFL
  13335. /* Did the child fail? (This shouldn't happen.) */
  13336. || status
  13337. /* Did the vfork/compiler bug occur? */
  13338. || parent != getpid()
  13339. /* Did the file descriptor bug occur? */
  13340. || fstat(fileno(stdout), &st) != 0
  13341. );
  13342. }
  13343. }
  13344. _ACEOF
  13345. if ac_fn_c_try_run "$LINENO"
  13346. then :
  13347. ac_cv_func_vfork_works=yes
  13348. else case e in #(
  13349. e) ac_cv_func_vfork_works=no ;;
  13350. esac
  13351. fi
  13352. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13353. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  13354. esac
  13355. fi
  13356. ;;
  13357. esac
  13358. fi
  13359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  13360. printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
  13361. fi;
  13362. if test "x$ac_cv_func_fork_works" = xcross; then
  13363. ac_cv_func_vfork_works=$ac_cv_func_vfork
  13364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  13365. printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  13366. fi
  13367. if test "x$ac_cv_func_vfork_works" = xyes; then
  13368. printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  13369. else
  13370. printf "%s\n" "#define vfork fork" >>confdefs.h
  13371. fi
  13372. if test "x$ac_cv_func_fork_works" = xyes; then
  13373. printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
  13374. fi
  13375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
  13376. printf %s "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
  13377. if test ${ac_cv_func_mbrtowc+y}
  13378. then :
  13379. printf %s "(cached) " >&6
  13380. else case e in #(
  13381. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13382. /* end confdefs.h. */
  13383. #include <wchar.h>
  13384. int
  13385. main (void)
  13386. {
  13387. wchar_t wc;
  13388. char const s[] = "";
  13389. size_t n = 1;
  13390. mbstate_t state;
  13391. return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
  13392. ;
  13393. return 0;
  13394. }
  13395. _ACEOF
  13396. if ac_fn_c_try_link "$LINENO"
  13397. then :
  13398. ac_cv_func_mbrtowc=yes
  13399. else case e in #(
  13400. e) ac_cv_func_mbrtowc=no ;;
  13401. esac
  13402. fi
  13403. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13404. conftest$ac_exeext conftest.$ac_ext ;;
  13405. esac
  13406. fi
  13407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
  13408. printf "%s\n" "$ac_cv_func_mbrtowc" >&6; }
  13409. if test $ac_cv_func_mbrtowc = yes; then
  13410. printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
  13411. fi
  13412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
  13413. printf %s "checking for gcc compiler warnings... " >&6; }
  13414. # Check whether --enable-warnings was given.
  13415. if test ${enable_warnings+y}
  13416. then :
  13417. enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
  13418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13419. printf "%s\n" "no" >&6; }
  13420. WARNINGS=
  13421. else
  13422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13423. printf "%s\n" "yes" >&6; }
  13424. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  13425. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  13426. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  13427. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  13428. fi
  13429. else case e in #(
  13430. e)
  13431. if test "$GCC" = yes; then
  13432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13433. printf "%s\n" "yes" >&6; }
  13434. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  13435. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  13436. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  13437. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  13438. else
  13439. WARNINGS=
  13440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13441. printf "%s\n" "no" >&6; }
  13442. fi ;;
  13443. esac
  13444. fi
  13445. ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
  13446. if test "x$ac_cv_func_strndup" = xyes
  13447. then :
  13448. printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
  13449. fi
  13450. ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
  13451. if test "x$ac_cv_func_mkstemp" = xyes
  13452. then :
  13453. printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
  13454. fi
  13455. ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp"
  13456. if test "x$ac_cv_func_mkostemp" = xyes
  13457. then :
  13458. printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h
  13459. fi
  13460. ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
  13461. if test "x$ac_cv_func_utimes" = xyes
  13462. then :
  13463. printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
  13464. fi
  13465. ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
  13466. if test "x$ac_cv_func_utime" = xyes
  13467. then :
  13468. printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
  13469. fi
  13470. ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth"
  13471. if test "x$ac_cv_func_wcwidth" = xyes
  13472. then :
  13473. printf "%s\n" "#define HAVE_WCWIDTH 1" >>confdefs.h
  13474. fi
  13475. ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
  13476. if test "x$ac_cv_func_strtof" = xyes
  13477. then :
  13478. printf "%s\n" "#define HAVE_STRTOF 1" >>confdefs.h
  13479. fi
  13480. ac_fn_c_check_func "$LINENO" "newlocale" "ac_cv_func_newlocale"
  13481. if test "x$ac_cv_func_newlocale" = xyes
  13482. then :
  13483. printf "%s\n" "#define HAVE_NEWLOCALE 1" >>confdefs.h
  13484. fi
  13485. ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
  13486. if test "x$ac_cv_func_uselocale" = xyes
  13487. then :
  13488. printf "%s\n" "#define HAVE_USELOCALE 1" >>confdefs.h
  13489. fi
  13490. ac_fn_c_check_func "$LINENO" "freelocale" "ac_cv_func_freelocale"
  13491. if test "x$ac_cv_func_freelocale" = xyes
  13492. then :
  13493. printf "%s\n" "#define HAVE_FREELOCALE 1" >>confdefs.h
  13494. fi
  13495. ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
  13496. if test "x$ac_cv_func_memmem" = xyes
  13497. then :
  13498. printf "%s\n" "#define HAVE_MEMMEM 1" >>confdefs.h
  13499. fi
  13500. ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2"
  13501. if test "x$ac_cv_func_pipe2" = xyes
  13502. then :
  13503. printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h
  13504. fi
  13505. ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp"
  13506. if test "x$ac_cv_func_posix_spawnp" = xyes
  13507. then :
  13508. printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h
  13509. fi
  13510. ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
  13511. if test "x$ac_cv_func_getopt_long" = xyes
  13512. then :
  13513. printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
  13514. else case e in #(
  13515. e) case " $LIBOBJS " in
  13516. *" getopt_long.$ac_objext "* ) ;;
  13517. *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
  13518. ;;
  13519. esac
  13520. ;;
  13521. esac
  13522. fi
  13523. ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
  13524. if test "x$ac_cv_func_asprintf" = xyes
  13525. then :
  13526. printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
  13527. else case e in #(
  13528. e) case " $LIBOBJS " in
  13529. *" asprintf.$ac_objext "* ) ;;
  13530. *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
  13531. ;;
  13532. esac
  13533. ;;
  13534. esac
  13535. fi
  13536. ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
  13537. if test "x$ac_cv_func_vasprintf" = xyes
  13538. then :
  13539. printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
  13540. else case e in #(
  13541. e) case " $LIBOBJS " in
  13542. *" vasprintf.$ac_objext "* ) ;;
  13543. *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
  13544. ;;
  13545. esac
  13546. ;;
  13547. esac
  13548. fi
  13549. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  13550. if test "x$ac_cv_func_strlcpy" = xyes
  13551. then :
  13552. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  13553. else case e in #(
  13554. e) case " $LIBOBJS " in
  13555. *" strlcpy.$ac_objext "* ) ;;
  13556. *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
  13557. ;;
  13558. esac
  13559. ;;
  13560. esac
  13561. fi
  13562. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  13563. if test "x$ac_cv_func_strlcat" = xyes
  13564. then :
  13565. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  13566. else case e in #(
  13567. e) case " $LIBOBJS " in
  13568. *" strlcat.$ac_objext "* ) ;;
  13569. *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
  13570. ;;
  13571. esac
  13572. ;;
  13573. esac
  13574. fi
  13575. ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
  13576. if test "x$ac_cv_func_getline" = xyes
  13577. then :
  13578. printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h
  13579. else case e in #(
  13580. e) case " $LIBOBJS " in
  13581. *" getline.$ac_objext "* ) ;;
  13582. *) LIBOBJS="$LIBOBJS getline.$ac_objext"
  13583. ;;
  13584. esac
  13585. ;;
  13586. esac
  13587. fi
  13588. ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
  13589. if test "x$ac_cv_func_ctime_r" = xyes
  13590. then :
  13591. printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h
  13592. else case e in #(
  13593. e) case " $LIBOBJS " in
  13594. *" ctime_r.$ac_objext "* ) ;;
  13595. *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
  13596. ;;
  13597. esac
  13598. ;;
  13599. esac
  13600. fi
  13601. ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  13602. if test "x$ac_cv_func_asctime_r" = xyes
  13603. then :
  13604. printf "%s\n" "#define HAVE_ASCTIME_R 1" >>confdefs.h
  13605. else case e in #(
  13606. e) case " $LIBOBJS " in
  13607. *" asctime_r.$ac_objext "* ) ;;
  13608. *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
  13609. ;;
  13610. esac
  13611. ;;
  13612. esac
  13613. fi
  13614. ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  13615. if test "x$ac_cv_func_localtime_r" = xyes
  13616. then :
  13617. printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
  13618. else case e in #(
  13619. e) case " $LIBOBJS " in
  13620. *" localtime_r.$ac_objext "* ) ;;
  13621. *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
  13622. ;;
  13623. esac
  13624. ;;
  13625. esac
  13626. fi
  13627. ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
  13628. if test "x$ac_cv_func_gmtime_r" = xyes
  13629. then :
  13630. printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
  13631. else case e in #(
  13632. e) case " $LIBOBJS " in
  13633. *" gmtime_r.$ac_objext "* ) ;;
  13634. *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
  13635. ;;
  13636. esac
  13637. ;;
  13638. esac
  13639. fi
  13640. ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
  13641. if test "x$ac_cv_func_pread" = xyes
  13642. then :
  13643. printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
  13644. else case e in #(
  13645. e) case " $LIBOBJS " in
  13646. *" pread.$ac_objext "* ) ;;
  13647. *) LIBOBJS="$LIBOBJS pread.$ac_objext"
  13648. ;;
  13649. esac
  13650. ;;
  13651. esac
  13652. fi
  13653. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  13654. if test "x$ac_cv_func_strcasestr" = xyes
  13655. then :
  13656. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  13657. else case e in #(
  13658. e) case " $LIBOBJS " in
  13659. *" strcasestr.$ac_objext "* ) ;;
  13660. *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
  13661. ;;
  13662. esac
  13663. ;;
  13664. esac
  13665. fi
  13666. ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
  13667. if test "x$ac_cv_func_fmtcheck" = xyes
  13668. then :
  13669. printf "%s\n" "#define HAVE_FMTCHECK 1" >>confdefs.h
  13670. else case e in #(
  13671. e) case " $LIBOBJS " in
  13672. *" fmtcheck.$ac_objext "* ) ;;
  13673. *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext"
  13674. ;;
  13675. esac
  13676. ;;
  13677. esac
  13678. fi
  13679. ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
  13680. if test "x$ac_cv_func_dprintf" = xyes
  13681. then :
  13682. printf "%s\n" "#define HAVE_DPRINTF 1" >>confdefs.h
  13683. else case e in #(
  13684. e) case " $LIBOBJS " in
  13685. *" dprintf.$ac_objext "* ) ;;
  13686. *) LIBOBJS="$LIBOBJS dprintf.$ac_objext"
  13687. ;;
  13688. esac
  13689. ;;
  13690. esac
  13691. fi
  13692. if test "$enable_zlib" != "no"; then
  13693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
  13694. printf %s "checking for gzopen in -lz... " >&6; }
  13695. if test ${ac_cv_lib_z_gzopen+y}
  13696. then :
  13697. printf %s "(cached) " >&6
  13698. else case e in #(
  13699. e) ac_check_lib_save_LIBS=$LIBS
  13700. LIBS="-lz $LIBS"
  13701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13702. /* end confdefs.h. */
  13703. /* Override any GCC internal prototype to avoid an error.
  13704. Use char because int might match the return type of a GCC
  13705. builtin and then its argument prototype would still apply.
  13706. The 'extern "C"' is for builds by C++ compilers;
  13707. although this is not generally supported in C code supporting it here
  13708. has little cost and some practical benefit (sr 110532). */
  13709. #ifdef __cplusplus
  13710. extern "C"
  13711. #endif
  13712. char gzopen (void);
  13713. int
  13714. main (void)
  13715. {
  13716. return gzopen ();
  13717. ;
  13718. return 0;
  13719. }
  13720. _ACEOF
  13721. if ac_fn_c_try_link "$LINENO"
  13722. then :
  13723. ac_cv_lib_z_gzopen=yes
  13724. else case e in #(
  13725. e) ac_cv_lib_z_gzopen=no ;;
  13726. esac
  13727. fi
  13728. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13729. conftest$ac_exeext conftest.$ac_ext
  13730. LIBS=$ac_check_lib_save_LIBS ;;
  13731. esac
  13732. fi
  13733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
  13734. printf "%s\n" "$ac_cv_lib_z_gzopen" >&6; }
  13735. if test "x$ac_cv_lib_z_gzopen" = xyes
  13736. then :
  13737. printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
  13738. LIBS="-lz $LIBS"
  13739. fi
  13740. fi
  13741. if test "$enable_bzlib" != "no"; then
  13742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
  13743. printf %s "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
  13744. if test ${ac_cv_lib_bz2_BZ2_bzCompressInit+y}
  13745. then :
  13746. printf %s "(cached) " >&6
  13747. else case e in #(
  13748. e) ac_check_lib_save_LIBS=$LIBS
  13749. LIBS="-lbz2 $LIBS"
  13750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13751. /* end confdefs.h. */
  13752. /* Override any GCC internal prototype to avoid an error.
  13753. Use char because int might match the return type of a GCC
  13754. builtin and then its argument prototype would still apply.
  13755. The 'extern "C"' is for builds by C++ compilers;
  13756. although this is not generally supported in C code supporting it here
  13757. has little cost and some practical benefit (sr 110532). */
  13758. #ifdef __cplusplus
  13759. extern "C"
  13760. #endif
  13761. char BZ2_bzCompressInit (void);
  13762. int
  13763. main (void)
  13764. {
  13765. return BZ2_bzCompressInit ();
  13766. ;
  13767. return 0;
  13768. }
  13769. _ACEOF
  13770. if ac_fn_c_try_link "$LINENO"
  13771. then :
  13772. ac_cv_lib_bz2_BZ2_bzCompressInit=yes
  13773. else case e in #(
  13774. e) ac_cv_lib_bz2_BZ2_bzCompressInit=no ;;
  13775. esac
  13776. fi
  13777. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13778. conftest$ac_exeext conftest.$ac_ext
  13779. LIBS=$ac_check_lib_save_LIBS ;;
  13780. esac
  13781. fi
  13782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
  13783. printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
  13784. if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes
  13785. then :
  13786. printf "%s\n" "#define HAVE_LIBBZ2 1" >>confdefs.h
  13787. LIBS="-lbz2 $LIBS"
  13788. fi
  13789. fi
  13790. if test "$enable_xzlib" != "no"; then
  13791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5
  13792. printf %s "checking for lzma_stream_decoder in -llzma... " >&6; }
  13793. if test ${ac_cv_lib_lzma_lzma_stream_decoder+y}
  13794. then :
  13795. printf %s "(cached) " >&6
  13796. else case e in #(
  13797. e) ac_check_lib_save_LIBS=$LIBS
  13798. LIBS="-llzma $LIBS"
  13799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13800. /* end confdefs.h. */
  13801. /* Override any GCC internal prototype to avoid an error.
  13802. Use char because int might match the return type of a GCC
  13803. builtin and then its argument prototype would still apply.
  13804. The 'extern "C"' is for builds by C++ compilers;
  13805. although this is not generally supported in C code supporting it here
  13806. has little cost and some practical benefit (sr 110532). */
  13807. #ifdef __cplusplus
  13808. extern "C"
  13809. #endif
  13810. char lzma_stream_decoder (void);
  13811. int
  13812. main (void)
  13813. {
  13814. return lzma_stream_decoder ();
  13815. ;
  13816. return 0;
  13817. }
  13818. _ACEOF
  13819. if ac_fn_c_try_link "$LINENO"
  13820. then :
  13821. ac_cv_lib_lzma_lzma_stream_decoder=yes
  13822. else case e in #(
  13823. e) ac_cv_lib_lzma_lzma_stream_decoder=no ;;
  13824. esac
  13825. fi
  13826. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13827. conftest$ac_exeext conftest.$ac_ext
  13828. LIBS=$ac_check_lib_save_LIBS ;;
  13829. esac
  13830. fi
  13831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5
  13832. printf "%s\n" "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }
  13833. if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes
  13834. then :
  13835. printf "%s\n" "#define HAVE_LIBLZMA 1" >>confdefs.h
  13836. LIBS="-llzma $LIBS"
  13837. fi
  13838. fi
  13839. if test "$enable_zstdlib" != "no"; then
  13840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_createDStream in -lzstd" >&5
  13841. printf %s "checking for ZSTD_createDStream in -lzstd... " >&6; }
  13842. if test ${ac_cv_lib_zstd_ZSTD_createDStream+y}
  13843. then :
  13844. printf %s "(cached) " >&6
  13845. else case e in #(
  13846. e) ac_check_lib_save_LIBS=$LIBS
  13847. LIBS="-lzstd $LIBS"
  13848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13849. /* end confdefs.h. */
  13850. /* Override any GCC internal prototype to avoid an error.
  13851. Use char because int might match the return type of a GCC
  13852. builtin and then its argument prototype would still apply.
  13853. The 'extern "C"' is for builds by C++ compilers;
  13854. although this is not generally supported in C code supporting it here
  13855. has little cost and some practical benefit (sr 110532). */
  13856. #ifdef __cplusplus
  13857. extern "C"
  13858. #endif
  13859. char ZSTD_createDStream (void);
  13860. int
  13861. main (void)
  13862. {
  13863. return ZSTD_createDStream ();
  13864. ;
  13865. return 0;
  13866. }
  13867. _ACEOF
  13868. if ac_fn_c_try_link "$LINENO"
  13869. then :
  13870. ac_cv_lib_zstd_ZSTD_createDStream=yes
  13871. else case e in #(
  13872. e) ac_cv_lib_zstd_ZSTD_createDStream=no ;;
  13873. esac
  13874. fi
  13875. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13876. conftest$ac_exeext conftest.$ac_ext
  13877. LIBS=$ac_check_lib_save_LIBS ;;
  13878. esac
  13879. fi
  13880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_createDStream" >&5
  13881. printf "%s\n" "$ac_cv_lib_zstd_ZSTD_createDStream" >&6; }
  13882. if test "x$ac_cv_lib_zstd_ZSTD_createDStream" = xyes
  13883. then :
  13884. printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h
  13885. LIBS="-lzstd $LIBS"
  13886. fi
  13887. fi
  13888. if test "$enable_lzlib" != "no"; then
  13889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LZ_decompress_open in -llz" >&5
  13890. printf %s "checking for LZ_decompress_open in -llz... " >&6; }
  13891. if test ${ac_cv_lib_lz_LZ_decompress_open+y}
  13892. then :
  13893. printf %s "(cached) " >&6
  13894. else case e in #(
  13895. e) ac_check_lib_save_LIBS=$LIBS
  13896. LIBS="-llz $LIBS"
  13897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13898. /* end confdefs.h. */
  13899. /* Override any GCC internal prototype to avoid an error.
  13900. Use char because int might match the return type of a GCC
  13901. builtin and then its argument prototype would still apply.
  13902. The 'extern "C"' is for builds by C++ compilers;
  13903. although this is not generally supported in C code supporting it here
  13904. has little cost and some practical benefit (sr 110532). */
  13905. #ifdef __cplusplus
  13906. extern "C"
  13907. #endif
  13908. char LZ_decompress_open (void);
  13909. int
  13910. main (void)
  13911. {
  13912. return LZ_decompress_open ();
  13913. ;
  13914. return 0;
  13915. }
  13916. _ACEOF
  13917. if ac_fn_c_try_link "$LINENO"
  13918. then :
  13919. ac_cv_lib_lz_LZ_decompress_open=yes
  13920. else case e in #(
  13921. e) ac_cv_lib_lz_LZ_decompress_open=no ;;
  13922. esac
  13923. fi
  13924. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13925. conftest$ac_exeext conftest.$ac_ext
  13926. LIBS=$ac_check_lib_save_LIBS ;;
  13927. esac
  13928. fi
  13929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz_LZ_decompress_open" >&5
  13930. printf "%s\n" "$ac_cv_lib_lz_LZ_decompress_open" >&6; }
  13931. if test "x$ac_cv_lib_lz_LZ_decompress_open" = xyes
  13932. then :
  13933. printf "%s\n" "#define HAVE_LIBLZ 1" >>confdefs.h
  13934. LIBS="-llz $LIBS"
  13935. fi
  13936. fi
  13937. if test "$enable_lrziplib" != "no"; then
  13938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lrzip_new in -llrzip" >&5
  13939. printf %s "checking for lrzip_new in -llrzip... " >&6; }
  13940. if test ${ac_cv_lib_lrzip_lrzip_new+y}
  13941. then :
  13942. printf %s "(cached) " >&6
  13943. else case e in #(
  13944. e) ac_check_lib_save_LIBS=$LIBS
  13945. LIBS="-llrzip $LIBS"
  13946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13947. /* end confdefs.h. */
  13948. /* Override any GCC internal prototype to avoid an error.
  13949. Use char because int might match the return type of a GCC
  13950. builtin and then its argument prototype would still apply.
  13951. The 'extern "C"' is for builds by C++ compilers;
  13952. although this is not generally supported in C code supporting it here
  13953. has little cost and some practical benefit (sr 110532). */
  13954. #ifdef __cplusplus
  13955. extern "C"
  13956. #endif
  13957. char lrzip_new (void);
  13958. int
  13959. main (void)
  13960. {
  13961. return lrzip_new ();
  13962. ;
  13963. return 0;
  13964. }
  13965. _ACEOF
  13966. if ac_fn_c_try_link "$LINENO"
  13967. then :
  13968. ac_cv_lib_lrzip_lrzip_new=yes
  13969. else case e in #(
  13970. e) ac_cv_lib_lrzip_lrzip_new=no ;;
  13971. esac
  13972. fi
  13973. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13974. conftest$ac_exeext conftest.$ac_ext
  13975. LIBS=$ac_check_lib_save_LIBS ;;
  13976. esac
  13977. fi
  13978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lrzip_lrzip_new" >&5
  13979. printf "%s\n" "$ac_cv_lib_lrzip_lrzip_new" >&6; }
  13980. if test "x$ac_cv_lib_lrzip_lrzip_new" = xyes
  13981. then :
  13982. printf "%s\n" "#define HAVE_LIBLRZIP 1" >>confdefs.h
  13983. LIBS="-llrzip $LIBS"
  13984. fi
  13985. fi
  13986. if test "$enable_libseccomp" != "no"; then
  13987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5
  13988. printf %s "checking for seccomp_init in -lseccomp... " >&6; }
  13989. if test ${ac_cv_lib_seccomp_seccomp_init+y}
  13990. then :
  13991. printf %s "(cached) " >&6
  13992. else case e in #(
  13993. e) ac_check_lib_save_LIBS=$LIBS
  13994. LIBS="-lseccomp $LIBS"
  13995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13996. /* end confdefs.h. */
  13997. /* Override any GCC internal prototype to avoid an error.
  13998. Use char because int might match the return type of a GCC
  13999. builtin and then its argument prototype would still apply.
  14000. The 'extern "C"' is for builds by C++ compilers;
  14001. although this is not generally supported in C code supporting it here
  14002. has little cost and some practical benefit (sr 110532). */
  14003. #ifdef __cplusplus
  14004. extern "C"
  14005. #endif
  14006. char seccomp_init (void);
  14007. int
  14008. main (void)
  14009. {
  14010. return seccomp_init ();
  14011. ;
  14012. return 0;
  14013. }
  14014. _ACEOF
  14015. if ac_fn_c_try_link "$LINENO"
  14016. then :
  14017. ac_cv_lib_seccomp_seccomp_init=yes
  14018. else case e in #(
  14019. e) ac_cv_lib_seccomp_seccomp_init=no ;;
  14020. esac
  14021. fi
  14022. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14023. conftest$ac_exeext conftest.$ac_ext
  14024. LIBS=$ac_check_lib_save_LIBS ;;
  14025. esac
  14026. fi
  14027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5
  14028. printf "%s\n" "$ac_cv_lib_seccomp_seccomp_init" >&6; }
  14029. if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes
  14030. then :
  14031. printf "%s\n" "#define HAVE_LIBSECCOMP 1" >>confdefs.h
  14032. LIBS="-lseccomp $LIBS"
  14033. fi
  14034. fi
  14035. if test "$MINGW" = 1; then
  14036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
  14037. printf %s "checking for regexec in -lgnurx... " >&6; }
  14038. if test ${ac_cv_lib_gnurx_regexec+y}
  14039. then :
  14040. printf %s "(cached) " >&6
  14041. else case e in #(
  14042. e) ac_check_lib_save_LIBS=$LIBS
  14043. LIBS="-lgnurx $LIBS"
  14044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14045. /* end confdefs.h. */
  14046. /* Override any GCC internal prototype to avoid an error.
  14047. Use char because int might match the return type of a GCC
  14048. builtin and then its argument prototype would still apply.
  14049. The 'extern "C"' is for builds by C++ compilers;
  14050. although this is not generally supported in C code supporting it here
  14051. has little cost and some practical benefit (sr 110532). */
  14052. #ifdef __cplusplus
  14053. extern "C"
  14054. #endif
  14055. char regexec (void);
  14056. int
  14057. main (void)
  14058. {
  14059. return regexec ();
  14060. ;
  14061. return 0;
  14062. }
  14063. _ACEOF
  14064. if ac_fn_c_try_link "$LINENO"
  14065. then :
  14066. ac_cv_lib_gnurx_regexec=yes
  14067. else case e in #(
  14068. e) ac_cv_lib_gnurx_regexec=no ;;
  14069. esac
  14070. fi
  14071. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14072. conftest$ac_exeext conftest.$ac_ext
  14073. LIBS=$ac_check_lib_save_LIBS ;;
  14074. esac
  14075. fi
  14076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
  14077. printf "%s\n" "$ac_cv_lib_gnurx_regexec" >&6; }
  14078. if test "x$ac_cv_lib_gnurx_regexec" = xyes
  14079. then :
  14080. printf "%s\n" "#define HAVE_LIBGNURX 1" >>confdefs.h
  14081. LIBS="-lgnurx $LIBS"
  14082. else case e in #(
  14083. e) as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5 ;;
  14084. esac
  14085. fi
  14086. fi
  14087. if test "$cross_compiling" = yes; then
  14088. IS_CROSS_COMPILE_TRUE=
  14089. IS_CROSS_COMPILE_FALSE='#'
  14090. else
  14091. IS_CROSS_COMPILE_TRUE='#'
  14092. IS_CROSS_COMPILE_FALSE=
  14093. fi
  14094. if test "$enable_zlib" = "yes"; then
  14095. if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then
  14096. as_fn_error $? "zlib support requested but not found" "$LINENO" 5
  14097. fi
  14098. fi
  14099. if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then
  14100. printf "%s\n" "#define ZLIBSUPPORT 1" >>confdefs.h
  14101. fi
  14102. if test "$enable_bzlib" = "yes"; then
  14103. if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" != "yesyes"; then
  14104. as_fn_error $? "bzlib support requested but not found" "$LINENO" 5
  14105. fi
  14106. fi
  14107. if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" = "yesyes"; then
  14108. printf "%s\n" "#define BZLIBSUPPORT 1" >>confdefs.h
  14109. fi
  14110. if test "$enable_xzlib" = "yes"; then
  14111. if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" != "yesyes"; then
  14112. as_fn_error $? "xzlib support requested but not found" "$LINENO" 5
  14113. fi
  14114. fi
  14115. if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" = "yesyes"; then
  14116. printf "%s\n" "#define XZLIBSUPPORT 1" >>confdefs.h
  14117. fi
  14118. if test "$enable_zstdlib" = "yes"; then
  14119. if test "$ac_cv_header_zstd_h$ac_cv_lib_zstd_ZSTD_createDStream" != "yesyes"; then
  14120. as_fn_error $? "zstdlib support requested but not found" "$LINENO" 5
  14121. fi
  14122. fi
  14123. if test "$ac_cv_header_zstd_h$ac_cv_lib_zstd_ZSTD_createDStream" = "yesyes"; then
  14124. printf "%s\n" "#define ZSTDLIBSUPPORT 1" >>confdefs.h
  14125. fi
  14126. if test "$enable_lzlib" = "yes"; then
  14127. if test "$ac_cv_header_lzlib_h$ac_cv_lib_lz_LZ_decompress_open" != "yesyes"; then
  14128. as_fn_error $? "lzlib support requested but not found" "$LINENO" 5
  14129. fi
  14130. fi
  14131. if test "$ac_cv_header_lzlib_h$ac_cv_lib_lz_LZ_decompress_open" = "yesyes"; then
  14132. printf "%s\n" "#define LZLIBSUPPORT 1" >>confdefs.h
  14133. fi
  14134. if test "$enable_lrziplib" = "yes"; then
  14135. if test "$ac_cv_header_Lrzip_h$ac_cv_lib_lrzip_lrzip_new" != "yesyes"; then
  14136. as_fn_error $? "lrzip support requested but not found" "$LINENO" 5
  14137. fi
  14138. fi
  14139. if test "$ac_cv_header_Lrzip_h$ac_cv_lib_lrzip_lrzip_new" = "yesyes"; then
  14140. printf "%s\n" "#define LRZIPLIBSUPPORT 1" >>confdefs.h
  14141. fi
  14142. ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile libmagic.pc"
  14143. cat >confcache <<\_ACEOF
  14144. # This file is a shell script that caches the results of configure
  14145. # tests run on this system so they can be shared between configure
  14146. # scripts and configure runs, see configure's option --config-cache.
  14147. # It is not useful on other systems. If it contains results you don't
  14148. # want to keep, you may remove or edit it.
  14149. #
  14150. # config.status only pays attention to the cache file if you give it
  14151. # the --recheck option to rerun configure.
  14152. #
  14153. # 'ac_cv_env_foo' variables (set or unset) will be overridden when
  14154. # loading this file, other *unset* 'ac_cv_foo' will be assigned the
  14155. # following values.
  14156. _ACEOF
  14157. # The following way of writing the cache mishandles newlines in values,
  14158. # but we know of no workaround that is simple, portable, and efficient.
  14159. # So, we kill variables containing newlines.
  14160. # Ultrix sh set writes to stderr and can't be redirected directly,
  14161. # and sets the high bit in the cache file unless we assign to the vars.
  14162. (
  14163. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14164. eval ac_val=\$$ac_var
  14165. case $ac_val in #(
  14166. *${as_nl}*)
  14167. case $ac_var in #(
  14168. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14169. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14170. esac
  14171. case $ac_var in #(
  14172. _ | IFS | as_nl) ;; #(
  14173. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14174. *) { eval $ac_var=; unset $ac_var;} ;;
  14175. esac ;;
  14176. esac
  14177. done
  14178. (set) 2>&1 |
  14179. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14180. *${as_nl}ac_space=\ *)
  14181. # 'set' does not quote correctly, so add quotes: double-quote
  14182. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14183. sed -n \
  14184. "s/'/'\\\\''/g;
  14185. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14186. ;; #(
  14187. *)
  14188. # 'set' quotes correctly as required by POSIX, so do not add quotes.
  14189. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14190. ;;
  14191. esac |
  14192. sort
  14193. ) |
  14194. sed '
  14195. /^ac_cv_env_/b end
  14196. t clear
  14197. :clear
  14198. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  14199. t end
  14200. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14201. :end' >>confcache
  14202. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14203. if test -w "$cache_file"; then
  14204. if test "x$cache_file" != "x/dev/null"; then
  14205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14206. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  14207. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14208. cat confcache >"$cache_file"
  14209. else
  14210. case $cache_file in #(
  14211. */* | ?:*)
  14212. mv -f confcache "$cache_file"$$ &&
  14213. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14214. *)
  14215. mv -f confcache "$cache_file" ;;
  14216. esac
  14217. fi
  14218. fi
  14219. else
  14220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14221. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  14222. fi
  14223. fi
  14224. rm -f confcache
  14225. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14226. # Let make expand exec_prefix.
  14227. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14228. DEFS=-DHAVE_CONFIG_H
  14229. ac_libobjs=
  14230. ac_ltlibobjs=
  14231. U=
  14232. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14233. # 1. Remove the extension, and $U if already installed.
  14234. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14235. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  14236. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14237. # will be set to the directory where LIBOBJS objects are built.
  14238. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14239. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14240. done
  14241. LIBOBJS=$ac_libobjs
  14242. LTLIBOBJS=$ac_ltlibobjs
  14243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  14244. printf %s "checking that generated files are newer than configure... " >&6; }
  14245. if test -n "$am_sleep_pid"; then
  14246. # Hide warnings about reused PIDs.
  14247. wait $am_sleep_pid 2>/dev/null
  14248. fi
  14249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
  14250. printf "%s\n" "done" >&6; }
  14251. if test -n "$EXEEXT"; then
  14252. am__EXEEXT_TRUE=
  14253. am__EXEEXT_FALSE='#'
  14254. else
  14255. am__EXEEXT_TRUE='#'
  14256. am__EXEEXT_FALSE=
  14257. fi
  14258. if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
  14259. as_fn_error $? "conditional \"MINGW\" was never defined.
  14260. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14261. fi
  14262. if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
  14263. as_fn_error $? "conditional \"FSECT5\" was never defined.
  14264. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14265. fi
  14266. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14267. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14268. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14269. fi
  14270. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14271. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14272. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14273. fi
  14274. # Check whether --enable-year2038 was given.
  14275. if test ${enable_year2038+y}
  14276. then :
  14277. enableval=$enable_year2038;
  14278. fi
  14279. if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
  14280. as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
  14281. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14282. fi
  14283. : "${CONFIG_STATUS=./config.status}"
  14284. ac_write_fail=0
  14285. ac_clean_files_save=$ac_clean_files
  14286. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14288. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  14289. as_write_fail=0
  14290. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14291. #! $SHELL
  14292. # Generated by $as_me.
  14293. # Run this file to recreate the current configuration.
  14294. # Compiler output produced by configure, useful for debugging
  14295. # configure, is in config.log if it exists.
  14296. debug=false
  14297. ac_cs_recheck=false
  14298. ac_cs_silent=false
  14299. SHELL=\${CONFIG_SHELL-$SHELL}
  14300. export SHELL
  14301. _ASEOF
  14302. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14303. ## -------------------- ##
  14304. ## M4sh Initialization. ##
  14305. ## -------------------- ##
  14306. # Be more Bourne compatible
  14307. DUALCASE=1; export DUALCASE # for MKS sh
  14308. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  14309. then :
  14310. emulate sh
  14311. NULLCMD=:
  14312. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14313. # is contrary to our usage. Disable this feature.
  14314. alias -g '${1+"$@"}'='"$@"'
  14315. setopt NO_GLOB_SUBST
  14316. else case e in #(
  14317. e) case `(set -o) 2>/dev/null` in #(
  14318. *posix*) :
  14319. set -o posix ;; #(
  14320. *) :
  14321. ;;
  14322. esac ;;
  14323. esac
  14324. fi
  14325. # Reset variables that may have inherited troublesome values from
  14326. # the environment.
  14327. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  14328. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  14329. # side effect of setting IFS to empty, thus disabling word splitting.)
  14330. # Quoting is to prevent editors from complaining about space-tab.
  14331. as_nl='
  14332. '
  14333. export as_nl
  14334. IFS=" "" $as_nl"
  14335. PS1='$ '
  14336. PS2='> '
  14337. PS4='+ '
  14338. # Ensure predictable behavior from utilities with locale-dependent output.
  14339. LC_ALL=C
  14340. export LC_ALL
  14341. LANGUAGE=C
  14342. export LANGUAGE
  14343. # We cannot yet rely on "unset" to work, but we need these variables
  14344. # to be unset--not just set to an empty or harmless value--now, to
  14345. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  14346. # also avoids known problems related to "unset" and subshell syntax
  14347. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  14348. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  14349. do eval test \${$as_var+y} \
  14350. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14351. done
  14352. # Ensure that fds 0, 1, and 2 are open.
  14353. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  14354. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  14355. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  14356. # The user is always right.
  14357. if ${PATH_SEPARATOR+false} :; then
  14358. PATH_SEPARATOR=:
  14359. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14360. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14361. PATH_SEPARATOR=';'
  14362. }
  14363. fi
  14364. # Find who we are. Look in the path if we contain no directory separator.
  14365. as_myself=
  14366. case $0 in #((
  14367. *[\\/]* ) as_myself=$0 ;;
  14368. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14369. for as_dir in $PATH
  14370. do
  14371. IFS=$as_save_IFS
  14372. case $as_dir in #(((
  14373. '') as_dir=./ ;;
  14374. */) ;;
  14375. *) as_dir=$as_dir/ ;;
  14376. esac
  14377. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  14378. done
  14379. IFS=$as_save_IFS
  14380. ;;
  14381. esac
  14382. # We did not find ourselves, most probably we were run as 'sh COMMAND'
  14383. # in which case we are not to be found in the path.
  14384. if test "x$as_myself" = x; then
  14385. as_myself=$0
  14386. fi
  14387. if test ! -f "$as_myself"; then
  14388. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14389. exit 1
  14390. fi
  14391. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14392. # ----------------------------------------
  14393. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14394. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14395. # script with STATUS, using 1 if that was 0.
  14396. as_fn_error ()
  14397. {
  14398. as_status=$1; test $as_status -eq 0 && as_status=1
  14399. if test "$4"; then
  14400. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14401. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14402. fi
  14403. printf "%s\n" "$as_me: error: $2" >&2
  14404. as_fn_exit $as_status
  14405. } # as_fn_error
  14406. # as_fn_set_status STATUS
  14407. # -----------------------
  14408. # Set $? to STATUS, without forking.
  14409. as_fn_set_status ()
  14410. {
  14411. return $1
  14412. } # as_fn_set_status
  14413. # as_fn_exit STATUS
  14414. # -----------------
  14415. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14416. as_fn_exit ()
  14417. {
  14418. set +e
  14419. as_fn_set_status $1
  14420. exit $1
  14421. } # as_fn_exit
  14422. # as_fn_unset VAR
  14423. # ---------------
  14424. # Portably unset VAR.
  14425. as_fn_unset ()
  14426. {
  14427. { eval $1=; unset $1;}
  14428. }
  14429. as_unset=as_fn_unset
  14430. # as_fn_append VAR VALUE
  14431. # ----------------------
  14432. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14433. # advantage of any shell optimizations that allow amortized linear growth over
  14434. # repeated appends, instead of the typical quadratic growth present in naive
  14435. # implementations.
  14436. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  14437. then :
  14438. eval 'as_fn_append ()
  14439. {
  14440. eval $1+=\$2
  14441. }'
  14442. else case e in #(
  14443. e) as_fn_append ()
  14444. {
  14445. eval $1=\$$1\$2
  14446. } ;;
  14447. esac
  14448. fi # as_fn_append
  14449. # as_fn_arith ARG...
  14450. # ------------------
  14451. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14452. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14453. # must be portable across $(()) and expr.
  14454. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  14455. then :
  14456. eval 'as_fn_arith ()
  14457. {
  14458. as_val=$(( $* ))
  14459. }'
  14460. else case e in #(
  14461. e) as_fn_arith ()
  14462. {
  14463. as_val=`expr "$@" || test $? -eq 1`
  14464. } ;;
  14465. esac
  14466. fi # as_fn_arith
  14467. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14468. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14469. as_expr=expr
  14470. else
  14471. as_expr=false
  14472. fi
  14473. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14474. as_basename=basename
  14475. else
  14476. as_basename=false
  14477. fi
  14478. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14479. as_dirname=dirname
  14480. else
  14481. as_dirname=false
  14482. fi
  14483. as_me=`$as_basename -- "$0" ||
  14484. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14485. X"$0" : 'X\(//\)$' \| \
  14486. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14487. printf "%s\n" X/"$0" |
  14488. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14489. s//\1/
  14490. q
  14491. }
  14492. /^X\/\(\/\/\)$/{
  14493. s//\1/
  14494. q
  14495. }
  14496. /^X\/\(\/\).*/{
  14497. s//\1/
  14498. q
  14499. }
  14500. s/.*/./; q'`
  14501. # Avoid depending upon Character Ranges.
  14502. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14503. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14504. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14505. as_cr_digits='0123456789'
  14506. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14507. # Determine whether it's possible to make 'echo' print without a newline.
  14508. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  14509. # for compatibility with existing Makefiles.
  14510. ECHO_C= ECHO_N= ECHO_T=
  14511. case `echo -n x` in #(((((
  14512. -n*)
  14513. case `echo 'xy\c'` in
  14514. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14515. xy) ECHO_C='\c';;
  14516. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14517. ECHO_T=' ';;
  14518. esac;;
  14519. *)
  14520. ECHO_N='-n';;
  14521. esac
  14522. # For backward compatibility with old third-party macros, we provide
  14523. # the shell variables $as_echo and $as_echo_n. New code should use
  14524. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  14525. as_echo='printf %s\n'
  14526. as_echo_n='printf %s'
  14527. rm -f conf$$ conf$$.exe conf$$.file
  14528. if test -d conf$$.dir; then
  14529. rm -f conf$$.dir/conf$$.file
  14530. else
  14531. rm -f conf$$.dir
  14532. mkdir conf$$.dir 2>/dev/null
  14533. fi
  14534. if (echo >conf$$.file) 2>/dev/null; then
  14535. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14536. as_ln_s='ln -s'
  14537. # ... but there are two gotchas:
  14538. # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
  14539. # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
  14540. # In both cases, we have to default to 'cp -pR'.
  14541. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14542. as_ln_s='cp -pR'
  14543. elif ln conf$$.file conf$$ 2>/dev/null; then
  14544. as_ln_s=ln
  14545. else
  14546. as_ln_s='cp -pR'
  14547. fi
  14548. else
  14549. as_ln_s='cp -pR'
  14550. fi
  14551. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14552. rmdir conf$$.dir 2>/dev/null
  14553. # as_fn_mkdir_p
  14554. # -------------
  14555. # Create "$as_dir" as a directory, including parents if necessary.
  14556. as_fn_mkdir_p ()
  14557. {
  14558. case $as_dir in #(
  14559. -*) as_dir=./$as_dir;;
  14560. esac
  14561. test -d "$as_dir" || eval $as_mkdir_p || {
  14562. as_dirs=
  14563. while :; do
  14564. case $as_dir in #(
  14565. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14566. *) as_qdir=$as_dir;;
  14567. esac
  14568. as_dirs="'$as_qdir' $as_dirs"
  14569. as_dir=`$as_dirname -- "$as_dir" ||
  14570. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14571. X"$as_dir" : 'X\(//\)[^/]' \| \
  14572. X"$as_dir" : 'X\(//\)$' \| \
  14573. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14574. printf "%s\n" X"$as_dir" |
  14575. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14576. s//\1/
  14577. q
  14578. }
  14579. /^X\(\/\/\)[^/].*/{
  14580. s//\1/
  14581. q
  14582. }
  14583. /^X\(\/\/\)$/{
  14584. s//\1/
  14585. q
  14586. }
  14587. /^X\(\/\).*/{
  14588. s//\1/
  14589. q
  14590. }
  14591. s/.*/./; q'`
  14592. test -d "$as_dir" && break
  14593. done
  14594. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14595. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14596. } # as_fn_mkdir_p
  14597. if mkdir -p . 2>/dev/null; then
  14598. as_mkdir_p='mkdir -p "$as_dir"'
  14599. else
  14600. test -d ./-p && rmdir ./-p
  14601. as_mkdir_p=false
  14602. fi
  14603. # as_fn_executable_p FILE
  14604. # -----------------------
  14605. # Test if FILE is an executable regular file.
  14606. as_fn_executable_p ()
  14607. {
  14608. test -f "$1" && test -x "$1"
  14609. } # as_fn_executable_p
  14610. as_test_x='test -x'
  14611. as_executable_p=as_fn_executable_p
  14612. # Sed expression to map a string onto a valid CPP name.
  14613. as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  14614. as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
  14615. # Sed expression to map a string onto a valid variable name.
  14616. as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  14617. as_tr_sh="eval sed '$as_sed_sh'" # deprecated
  14618. exec 6>&1
  14619. ## ----------------------------------- ##
  14620. ## Main body of $CONFIG_STATUS script. ##
  14621. ## ----------------------------------- ##
  14622. _ASEOF
  14623. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14624. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14625. # Save the log message, to keep $0 and so on meaningful, and to
  14626. # report actual input values of CONFIG_FILES etc. instead of their
  14627. # values after options handling.
  14628. ac_log="
  14629. This file was extended by file $as_me 5.46, which was
  14630. generated by GNU Autoconf 2.72. Invocation command line was
  14631. CONFIG_FILES = $CONFIG_FILES
  14632. CONFIG_HEADERS = $CONFIG_HEADERS
  14633. CONFIG_LINKS = $CONFIG_LINKS
  14634. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14635. $ $0 $@
  14636. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14637. "
  14638. _ACEOF
  14639. case $ac_config_files in *"
  14640. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14641. esac
  14642. case $ac_config_headers in *"
  14643. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14644. esac
  14645. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14646. # Files that config.status was made for.
  14647. config_files="$ac_config_files"
  14648. config_headers="$ac_config_headers"
  14649. config_commands="$ac_config_commands"
  14650. _ACEOF
  14651. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14652. ac_cs_usage="\
  14653. '$as_me' instantiates files and other configuration actions
  14654. from templates according to the current configuration. Unless the files
  14655. and actions are specified as TAGs, all are instantiated by default.
  14656. Usage: $0 [OPTION]... [TAG]...
  14657. -h, --help print this help, then exit
  14658. -V, --version print version number and configuration settings, then exit
  14659. --config print configuration, then exit
  14660. -q, --quiet, --silent
  14661. do not print progress messages
  14662. -d, --debug don't remove temporary files
  14663. --recheck update $as_me by reconfiguring in the same conditions
  14664. --file=FILE[:TEMPLATE]
  14665. instantiate the configuration file FILE
  14666. --header=FILE[:TEMPLATE]
  14667. instantiate the configuration header FILE
  14668. Configuration files:
  14669. $config_files
  14670. Configuration headers:
  14671. $config_headers
  14672. Configuration commands:
  14673. $config_commands
  14674. Report bugs to <christos@astron.com>."
  14675. _ACEOF
  14676. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  14677. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  14678. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14679. ac_cs_config='$ac_cs_config_escaped'
  14680. ac_cs_version="\\
  14681. file config.status 5.46
  14682. configured by $0, generated by GNU Autoconf 2.72,
  14683. with options \\"\$ac_cs_config\\"
  14684. Copyright (C) 2023 Free Software Foundation, Inc.
  14685. This config.status script is free software; the Free Software Foundation
  14686. gives unlimited permission to copy, distribute and modify it."
  14687. ac_pwd='$ac_pwd'
  14688. srcdir='$srcdir'
  14689. INSTALL='$INSTALL'
  14690. MKDIR_P='$MKDIR_P'
  14691. AWK='$AWK'
  14692. test -n "\$AWK" || AWK=awk
  14693. _ACEOF
  14694. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14695. # The default lists apply if the user does not specify any file.
  14696. ac_need_defaults=:
  14697. while test $# != 0
  14698. do
  14699. case $1 in
  14700. --*=?*)
  14701. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14702. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14703. ac_shift=:
  14704. ;;
  14705. --*=)
  14706. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14707. ac_optarg=
  14708. ac_shift=:
  14709. ;;
  14710. *)
  14711. ac_option=$1
  14712. ac_optarg=$2
  14713. ac_shift=shift
  14714. ;;
  14715. esac
  14716. case $ac_option in
  14717. # Handling of the options.
  14718. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14719. ac_cs_recheck=: ;;
  14720. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14721. printf "%s\n" "$ac_cs_version"; exit ;;
  14722. --config | --confi | --conf | --con | --co | --c )
  14723. printf "%s\n" "$ac_cs_config"; exit ;;
  14724. --debug | --debu | --deb | --de | --d | -d )
  14725. debug=: ;;
  14726. --file | --fil | --fi | --f )
  14727. $ac_shift
  14728. case $ac_optarg in
  14729. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14730. '') as_fn_error $? "missing file argument" ;;
  14731. esac
  14732. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14733. ac_need_defaults=false;;
  14734. --header | --heade | --head | --hea )
  14735. $ac_shift
  14736. case $ac_optarg in
  14737. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14738. esac
  14739. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14740. ac_need_defaults=false;;
  14741. --he | --h)
  14742. # Conflict between --help and --header
  14743. as_fn_error $? "ambiguous option: '$1'
  14744. Try '$0 --help' for more information.";;
  14745. --help | --hel | -h )
  14746. printf "%s\n" "$ac_cs_usage"; exit ;;
  14747. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14748. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14749. ac_cs_silent=: ;;
  14750. # This is an error.
  14751. -*) as_fn_error $? "unrecognized option: '$1'
  14752. Try '$0 --help' for more information." ;;
  14753. *) as_fn_append ac_config_targets " $1"
  14754. ac_need_defaults=false ;;
  14755. esac
  14756. shift
  14757. done
  14758. ac_configure_extra_args=
  14759. if $ac_cs_silent; then
  14760. exec 6>/dev/null
  14761. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14762. fi
  14763. _ACEOF
  14764. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14765. if \$ac_cs_recheck; then
  14766. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14767. shift
  14768. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  14769. CONFIG_SHELL='$SHELL'
  14770. export CONFIG_SHELL
  14771. exec "\$@"
  14772. fi
  14773. _ACEOF
  14774. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14775. exec 5>>config.log
  14776. {
  14777. echo
  14778. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14779. ## Running $as_me. ##
  14780. _ASBOX
  14781. printf "%s\n" "$ac_log"
  14782. } >&5
  14783. _ACEOF
  14784. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14785. #
  14786. # INIT-COMMANDS
  14787. #
  14788. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  14789. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14790. # if CDPATH is set.
  14791. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14792. sed_quote_subst='$sed_quote_subst'
  14793. double_quote_subst='$double_quote_subst'
  14794. delay_variable_subst='$delay_variable_subst'
  14795. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14796. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14797. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14798. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14799. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14800. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14801. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  14802. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14803. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14804. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  14805. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14806. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14807. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14808. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14809. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14810. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14811. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14812. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14813. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14814. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14815. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14816. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14817. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14818. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14819. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14820. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14821. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14822. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14823. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14824. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14825. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  14826. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  14827. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14828. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14829. FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
  14830. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14831. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14832. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14833. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  14834. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  14835. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  14836. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  14837. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14838. lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
  14839. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14840. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  14841. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14842. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14843. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14844. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14845. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14846. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14847. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14848. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14849. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14850. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14851. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14852. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14853. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  14854. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14855. 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"`'
  14856. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  14857. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  14858. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  14859. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  14860. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14861. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14862. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14863. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14864. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14865. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14866. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14867. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14868. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  14869. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14870. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14871. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14872. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14873. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14874. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14875. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14876. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14877. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14878. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14879. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14880. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14881. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14882. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14883. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14884. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14885. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14886. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14887. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14888. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14889. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14890. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14891. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14892. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14893. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14894. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14895. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14896. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14897. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14898. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14899. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14900. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14901. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14902. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14903. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14904. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14905. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  14906. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14907. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14908. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14909. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14910. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14911. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14912. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14913. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14914. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14915. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14916. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14917. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14918. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14919. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14920. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14921. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14922. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14923. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14924. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  14925. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  14926. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14927. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14928. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14929. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14930. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14931. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14932. LTCC='$LTCC'
  14933. LTCFLAGS='$LTCFLAGS'
  14934. compiler='$compiler_DEFAULT'
  14935. # A function that is used when there is no print builtin or printf.
  14936. func_fallback_echo ()
  14937. {
  14938. eval 'cat <<_LTECHO_EOF
  14939. \$1
  14940. _LTECHO_EOF'
  14941. }
  14942. # Quote evaled strings.
  14943. for var in SHELL \
  14944. ECHO \
  14945. PATH_SEPARATOR \
  14946. SED \
  14947. GREP \
  14948. EGREP \
  14949. FGREP \
  14950. LD \
  14951. NM \
  14952. LN_S \
  14953. lt_SP2NL \
  14954. lt_NL2SP \
  14955. reload_flag \
  14956. FILECMD \
  14957. OBJDUMP \
  14958. deplibs_check_method \
  14959. file_magic_cmd \
  14960. file_magic_glob \
  14961. want_nocaseglob \
  14962. DLLTOOL \
  14963. sharedlib_from_linklib_cmd \
  14964. AR \
  14965. archiver_list_spec \
  14966. STRIP \
  14967. RANLIB \
  14968. CC \
  14969. CFLAGS \
  14970. compiler \
  14971. lt_cv_sys_global_symbol_pipe \
  14972. lt_cv_sys_global_symbol_to_cdecl \
  14973. lt_cv_sys_global_symbol_to_import \
  14974. lt_cv_sys_global_symbol_to_c_name_address \
  14975. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14976. lt_cv_nm_interface \
  14977. nm_file_list_spec \
  14978. lt_cv_truncate_bin \
  14979. lt_prog_compiler_no_builtin_flag \
  14980. lt_prog_compiler_pic \
  14981. lt_prog_compiler_wl \
  14982. lt_prog_compiler_static \
  14983. lt_cv_prog_compiler_c_o \
  14984. need_locks \
  14985. MANIFEST_TOOL \
  14986. DSYMUTIL \
  14987. NMEDIT \
  14988. LIPO \
  14989. OTOOL \
  14990. OTOOL64 \
  14991. shrext_cmds \
  14992. export_dynamic_flag_spec \
  14993. whole_archive_flag_spec \
  14994. compiler_needs_object \
  14995. with_gnu_ld \
  14996. allow_undefined_flag \
  14997. no_undefined_flag \
  14998. hardcode_libdir_flag_spec \
  14999. hardcode_libdir_separator \
  15000. exclude_expsyms \
  15001. include_expsyms \
  15002. file_list_spec \
  15003. variables_saved_for_relink \
  15004. libname_spec \
  15005. library_names_spec \
  15006. soname_spec \
  15007. install_override_mode \
  15008. finish_eval \
  15009. old_striplib \
  15010. striplib; do
  15011. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15012. *[\\\\\\\`\\"\\\$]*)
  15013. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  15014. ;;
  15015. *)
  15016. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15017. ;;
  15018. esac
  15019. done
  15020. # Double-quote double-evaled strings.
  15021. for var in reload_cmds \
  15022. old_postinstall_cmds \
  15023. old_postuninstall_cmds \
  15024. old_archive_cmds \
  15025. extract_expsyms_cmds \
  15026. old_archive_from_new_cmds \
  15027. old_archive_from_expsyms_cmds \
  15028. archive_cmds \
  15029. archive_expsym_cmds \
  15030. module_cmds \
  15031. module_expsym_cmds \
  15032. export_symbols_cmds \
  15033. prelink_cmds \
  15034. postlink_cmds \
  15035. postinstall_cmds \
  15036. postuninstall_cmds \
  15037. finish_cmds \
  15038. sys_lib_search_path_spec \
  15039. configure_time_dlsearch_path \
  15040. configure_time_lt_sys_library_path; do
  15041. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15042. *[\\\\\\\`\\"\\\$]*)
  15043. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  15044. ;;
  15045. *)
  15046. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15047. ;;
  15048. esac
  15049. done
  15050. ac_aux_dir='$ac_aux_dir'
  15051. # See if we are running on zsh, and set the options that allow our
  15052. # commands through without removal of \ escapes INIT.
  15053. if test -n "\${ZSH_VERSION+set}"; then
  15054. setopt NO_GLOB_SUBST
  15055. fi
  15056. PACKAGE='$PACKAGE'
  15057. VERSION='$VERSION'
  15058. RM='$RM'
  15059. ofile='$ofile'
  15060. _ACEOF
  15061. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15062. # Handling of arguments.
  15063. for ac_config_target in $ac_config_targets
  15064. do
  15065. case $ac_config_target in
  15066. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15067. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15068. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15069. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15070. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  15071. "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
  15072. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  15073. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  15074. "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  15075. "libmagic.pc") CONFIG_FILES="$CONFIG_FILES libmagic.pc" ;;
  15076. *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
  15077. esac
  15078. done
  15079. # If the user did not use the arguments to specify the items to instantiate,
  15080. # then the envvar interface is used. Set only those that are not.
  15081. # We use the long form for the default assignment because of an extremely
  15082. # bizarre bug on SunOS 4.1.3.
  15083. if $ac_need_defaults; then
  15084. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  15085. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  15086. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  15087. fi
  15088. # Have a temporary directory for convenience. Make it in the build tree
  15089. # simply because there is no reason against having it here, and in addition,
  15090. # creating and moving files from /tmp can sometimes cause problems.
  15091. # Hook for its removal unless debugging.
  15092. # Note that there is a small window in which the directory will not be cleaned:
  15093. # after its creation but before its name has been assigned to '$tmp'.
  15094. $debug ||
  15095. {
  15096. tmp= ac_tmp=
  15097. trap 'exit_status=$?
  15098. : "${ac_tmp:=$tmp}"
  15099. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15100. ' 0
  15101. trap 'as_fn_exit 1' 1 2 13 15
  15102. }
  15103. # Create a (secure) tmp directory for tmp files.
  15104. {
  15105. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15106. test -d "$tmp"
  15107. } ||
  15108. {
  15109. tmp=./conf$$-$RANDOM
  15110. (umask 077 && mkdir "$tmp")
  15111. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15112. ac_tmp=$tmp
  15113. # Set up the scripts for CONFIG_FILES section.
  15114. # No need to generate them if there are no CONFIG_FILES.
  15115. # This happens for instance with './config.status config.h'.
  15116. if test -n "$CONFIG_FILES"; then
  15117. ac_cr=`echo X | tr X '\015'`
  15118. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15119. # But we know of no other shell where ac_cr would be empty at this
  15120. # point, so we can use a bashism as a fallback.
  15121. if test "x$ac_cr" = x; then
  15122. eval ac_cr=\$\'\\r\'
  15123. fi
  15124. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15125. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15126. ac_cs_awk_cr='\\r'
  15127. else
  15128. ac_cs_awk_cr=$ac_cr
  15129. fi
  15130. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15131. _ACEOF
  15132. {
  15133. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15134. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15135. echo "_ACEOF"
  15136. } >conf$$subs.sh ||
  15137. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15138. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15139. ac_delim='%!_!# '
  15140. for ac_last_try in false false false false false :; do
  15141. . ./conf$$subs.sh ||
  15142. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15143. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15144. if test $ac_delim_n = $ac_delim_num; then
  15145. break
  15146. elif $ac_last_try; then
  15147. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15148. else
  15149. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15150. fi
  15151. done
  15152. rm -f conf$$subs.sh
  15153. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15154. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15155. _ACEOF
  15156. sed -n '
  15157. h
  15158. s/^/S["/; s/!.*/"]=/
  15159. p
  15160. g
  15161. s/^[^!]*!//
  15162. :repl
  15163. t repl
  15164. s/'"$ac_delim"'$//
  15165. t delim
  15166. :nl
  15167. h
  15168. s/\(.\{148\}\)..*/\1/
  15169. t more1
  15170. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15171. p
  15172. n
  15173. b repl
  15174. :more1
  15175. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15176. p
  15177. g
  15178. s/.\{148\}//
  15179. t nl
  15180. :delim
  15181. h
  15182. s/\(.\{148\}\)..*/\1/
  15183. t more2
  15184. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15185. p
  15186. b
  15187. :more2
  15188. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15189. p
  15190. g
  15191. s/.\{148\}//
  15192. t delim
  15193. ' <conf$$subs.awk | sed '
  15194. /^[^""]/{
  15195. N
  15196. s/\n//
  15197. }
  15198. ' >>$CONFIG_STATUS || ac_write_fail=1
  15199. rm -f conf$$subs.awk
  15200. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15201. _ACAWK
  15202. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15203. for (key in S) S_is_set[key] = 1
  15204. FS = ""
  15205. }
  15206. {
  15207. line = $ 0
  15208. nfields = split(line, field, "@")
  15209. substed = 0
  15210. len = length(field[1])
  15211. for (i = 2; i < nfields; i++) {
  15212. key = field[i]
  15213. keylen = length(key)
  15214. if (S_is_set[key]) {
  15215. value = S[key]
  15216. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15217. len += length(value) + length(field[++i])
  15218. substed = 1
  15219. } else
  15220. len += 1 + keylen
  15221. }
  15222. print line
  15223. }
  15224. _ACAWK
  15225. _ACEOF
  15226. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15227. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15228. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15229. else
  15230. cat
  15231. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15232. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15233. _ACEOF
  15234. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15235. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15236. # trailing colons and then remove the whole line if VPATH becomes empty
  15237. # (actually we leave an empty line to preserve line numbers).
  15238. if test "x$srcdir" = x.; then
  15239. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15240. h
  15241. s///
  15242. s/^/:/
  15243. s/[ ]*$/:/
  15244. s/:\$(srcdir):/:/g
  15245. s/:\${srcdir}:/:/g
  15246. s/:@srcdir@:/:/g
  15247. s/^:*//
  15248. s/:*$//
  15249. x
  15250. s/\(=[ ]*\).*/\1/
  15251. G
  15252. s/\n//
  15253. s/^[^=]*=[ ]*$//
  15254. }'
  15255. fi
  15256. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15257. fi # test -n "$CONFIG_FILES"
  15258. # Set up the scripts for CONFIG_HEADERS section.
  15259. # No need to generate them if there are no CONFIG_HEADERS.
  15260. # This happens for instance with './config.status Makefile'.
  15261. if test -n "$CONFIG_HEADERS"; then
  15262. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15263. BEGIN {
  15264. _ACEOF
  15265. # Transform confdefs.h into an awk script 'defines.awk', embedded as
  15266. # here-document in config.status, that substitutes the proper values into
  15267. # config.h.in to produce config.h.
  15268. # Create a delimiter string that does not exist in confdefs.h, to ease
  15269. # handling of long lines.
  15270. ac_delim='%!_!# '
  15271. for ac_last_try in false false :; do
  15272. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15273. if test -z "$ac_tt"; then
  15274. break
  15275. elif $ac_last_try; then
  15276. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15277. else
  15278. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15279. fi
  15280. done
  15281. # For the awk script, D is an array of macro values keyed by name,
  15282. # likewise P contains macro parameters if any. Preserve backslash
  15283. # newline sequences.
  15284. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15285. sed -n '
  15286. s/.\{148\}/&'"$ac_delim"'/g
  15287. t rset
  15288. :rset
  15289. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15290. t def
  15291. d
  15292. :def
  15293. s/\\$//
  15294. t bsnl
  15295. s/["\\]/\\&/g
  15296. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15297. D["\1"]=" \3"/p
  15298. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15299. d
  15300. :bsnl
  15301. s/["\\]/\\&/g
  15302. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15303. D["\1"]=" \3\\\\\\n"\\/p
  15304. t cont
  15305. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15306. t cont
  15307. d
  15308. :cont
  15309. n
  15310. s/.\{148\}/&'"$ac_delim"'/g
  15311. t clear
  15312. :clear
  15313. s/\\$//
  15314. t bsnlc
  15315. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15316. d
  15317. :bsnlc
  15318. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15319. b cont
  15320. ' <confdefs.h | sed '
  15321. s/'"$ac_delim"'/"\\\
  15322. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15323. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15324. for (key in D) D_is_set[key] = 1
  15325. FS = ""
  15326. }
  15327. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15328. line = \$ 0
  15329. split(line, arg, " ")
  15330. if (arg[1] == "#") {
  15331. defundef = arg[2]
  15332. mac1 = arg[3]
  15333. } else {
  15334. defundef = substr(arg[1], 2)
  15335. mac1 = arg[2]
  15336. }
  15337. split(mac1, mac2, "(") #)
  15338. macro = mac2[1]
  15339. prefix = substr(line, 1, index(line, defundef) - 1)
  15340. if (D_is_set[macro]) {
  15341. # Preserve the white space surrounding the "#".
  15342. print prefix "define", macro P[macro] D[macro]
  15343. next
  15344. } else {
  15345. # Replace #undef with comments. This is necessary, for example,
  15346. # in the case of _POSIX_SOURCE, which is predefined and required
  15347. # on some systems where configure will not decide to define it.
  15348. if (defundef == "undef") {
  15349. print "/*", prefix defundef, macro, "*/"
  15350. next
  15351. }
  15352. }
  15353. }
  15354. { print }
  15355. _ACAWK
  15356. _ACEOF
  15357. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15358. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15359. fi # test -n "$CONFIG_HEADERS"
  15360. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15361. shift
  15362. for ac_tag
  15363. do
  15364. case $ac_tag in
  15365. :[FHLC]) ac_mode=$ac_tag; continue;;
  15366. esac
  15367. case $ac_mode$ac_tag in
  15368. :[FHL]*:*);;
  15369. :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
  15370. :[FH]-) ac_tag=-:-;;
  15371. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15372. esac
  15373. ac_save_IFS=$IFS
  15374. IFS=:
  15375. set x $ac_tag
  15376. IFS=$ac_save_IFS
  15377. shift
  15378. ac_file=$1
  15379. shift
  15380. case $ac_mode in
  15381. :L) ac_source=$1;;
  15382. :[FH])
  15383. ac_file_inputs=
  15384. for ac_f
  15385. do
  15386. case $ac_f in
  15387. -) ac_f="$ac_tmp/stdin";;
  15388. *) # Look for the file first in the build tree, then in the source tree
  15389. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15390. # because $ac_f cannot contain ':'.
  15391. test -f "$ac_f" ||
  15392. case $ac_f in
  15393. [\\/$]*) false;;
  15394. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15395. esac ||
  15396. as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
  15397. esac
  15398. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15399. as_fn_append ac_file_inputs " '$ac_f'"
  15400. done
  15401. # Let's still pretend it is 'configure' which instantiates (i.e., don't
  15402. # use $as_me), people would be surprised to read:
  15403. # /* config.h. Generated by config.status. */
  15404. configure_input='Generated from '`
  15405. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15406. `' by configure.'
  15407. if test x"$ac_file" != x-; then
  15408. configure_input="$ac_file. $configure_input"
  15409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15410. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  15411. fi
  15412. # Neutralize special characters interpreted by sed in replacement strings.
  15413. case $configure_input in #(
  15414. *\&* | *\|* | *\\* )
  15415. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  15416. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15417. *) ac_sed_conf_input=$configure_input;;
  15418. esac
  15419. case $ac_tag in
  15420. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15421. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15422. esac
  15423. ;;
  15424. esac
  15425. ac_dir=`$as_dirname -- "$ac_file" ||
  15426. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15427. X"$ac_file" : 'X\(//\)[^/]' \| \
  15428. X"$ac_file" : 'X\(//\)$' \| \
  15429. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15430. printf "%s\n" X"$ac_file" |
  15431. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15432. s//\1/
  15433. q
  15434. }
  15435. /^X\(\/\/\)[^/].*/{
  15436. s//\1/
  15437. q
  15438. }
  15439. /^X\(\/\/\)$/{
  15440. s//\1/
  15441. q
  15442. }
  15443. /^X\(\/\).*/{
  15444. s//\1/
  15445. q
  15446. }
  15447. s/.*/./; q'`
  15448. as_dir="$ac_dir"; as_fn_mkdir_p
  15449. ac_builddir=.
  15450. case "$ac_dir" in
  15451. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15452. *)
  15453. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  15454. # A ".." for each directory in $ac_dir_suffix.
  15455. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15456. case $ac_top_builddir_sub in
  15457. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15458. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15459. esac ;;
  15460. esac
  15461. ac_abs_top_builddir=$ac_pwd
  15462. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15463. # for backward compatibility:
  15464. ac_top_builddir=$ac_top_build_prefix
  15465. case $srcdir in
  15466. .) # We are building in place.
  15467. ac_srcdir=.
  15468. ac_top_srcdir=$ac_top_builddir_sub
  15469. ac_abs_top_srcdir=$ac_pwd ;;
  15470. [\\/]* | ?:[\\/]* ) # Absolute name.
  15471. ac_srcdir=$srcdir$ac_dir_suffix;
  15472. ac_top_srcdir=$srcdir
  15473. ac_abs_top_srcdir=$srcdir ;;
  15474. *) # Relative name.
  15475. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15476. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15477. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15478. esac
  15479. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15480. case $ac_mode in
  15481. :F)
  15482. #
  15483. # CONFIG_FILE
  15484. #
  15485. case $INSTALL in
  15486. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15487. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15488. esac
  15489. ac_MKDIR_P=$MKDIR_P
  15490. case $MKDIR_P in
  15491. [\\/$]* | ?:[\\/]* ) ;;
  15492. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15493. esac
  15494. _ACEOF
  15495. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15496. # If the template does not know about datarootdir, expand it.
  15497. # FIXME: This hack should be removed a few years after 2.60.
  15498. ac_datarootdir_hack=; ac_datarootdir_seen=
  15499. ac_sed_dataroot='
  15500. /datarootdir/ {
  15501. p
  15502. q
  15503. }
  15504. /@datadir@/p
  15505. /@docdir@/p
  15506. /@infodir@/p
  15507. /@localedir@/p
  15508. /@mandir@/p'
  15509. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15510. *datarootdir*) ac_datarootdir_seen=yes;;
  15511. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15513. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15514. _ACEOF
  15515. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15516. ac_datarootdir_hack='
  15517. s&@datadir@&$datadir&g
  15518. s&@docdir@&$docdir&g
  15519. s&@infodir@&$infodir&g
  15520. s&@localedir@&$localedir&g
  15521. s&@mandir@&$mandir&g
  15522. s&\\\${datarootdir}&$datarootdir&g' ;;
  15523. esac
  15524. _ACEOF
  15525. # Neutralize VPATH when '$srcdir' = '.'.
  15526. # Shell code in configure.ac might set extrasub.
  15527. # FIXME: do we really want to maintain this feature?
  15528. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15529. ac_sed_extra="$ac_vpsub
  15530. $extrasub
  15531. _ACEOF
  15532. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15533. :t
  15534. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15535. s|@configure_input@|$ac_sed_conf_input|;t t
  15536. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15537. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15538. s&@srcdir@&$ac_srcdir&;t t
  15539. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15540. s&@top_srcdir@&$ac_top_srcdir&;t t
  15541. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15542. s&@builddir@&$ac_builddir&;t t
  15543. s&@abs_builddir@&$ac_abs_builddir&;t t
  15544. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15545. s&@INSTALL@&$ac_INSTALL&;t t
  15546. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15547. $ac_datarootdir_hack
  15548. "
  15549. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15550. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15551. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15552. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15553. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15554. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
  15556. which seems to be undefined. Please make sure it is defined" >&5
  15557. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
  15558. which seems to be undefined. Please make sure it is defined" >&2;}
  15559. rm -f "$ac_tmp/stdin"
  15560. case $ac_file in
  15561. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15562. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15563. esac \
  15564. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15565. ;;
  15566. :H)
  15567. #
  15568. # CONFIG_HEADER
  15569. #
  15570. if test x"$ac_file" != x-; then
  15571. {
  15572. printf "%s\n" "/* $configure_input */" >&1 \
  15573. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  15574. } >"$ac_tmp/config.h" \
  15575. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15576. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  15577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15578. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  15579. else
  15580. rm -f "$ac_file"
  15581. mv "$ac_tmp/config.h" "$ac_file" \
  15582. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15583. fi
  15584. else
  15585. printf "%s\n" "/* $configure_input */" >&1 \
  15586. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  15587. || as_fn_error $? "could not create -" "$LINENO" 5
  15588. fi
  15589. # Compute "$ac_file"'s index in $config_headers.
  15590. _am_arg="$ac_file"
  15591. _am_stamp_count=1
  15592. for _am_header in $config_headers :; do
  15593. case $_am_header in
  15594. $_am_arg | $_am_arg:* )
  15595. break ;;
  15596. * )
  15597. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15598. esac
  15599. done
  15600. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15601. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15602. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15603. X"$_am_arg" : 'X\(//\)$' \| \
  15604. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15605. printf "%s\n" X"$_am_arg" |
  15606. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15607. s//\1/
  15608. q
  15609. }
  15610. /^X\(\/\/\)[^/].*/{
  15611. s//\1/
  15612. q
  15613. }
  15614. /^X\(\/\/\)$/{
  15615. s//\1/
  15616. q
  15617. }
  15618. /^X\(\/\).*/{
  15619. s//\1/
  15620. q
  15621. }
  15622. s/.*/./; q'`/stamp-h$_am_stamp_count
  15623. ;;
  15624. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15625. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  15626. ;;
  15627. esac
  15628. case $ac_file$ac_mode in
  15629. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15630. # Older Autoconf quotes --file arguments for eval, but not when files
  15631. # are listed without --file. Let's play safe and only enable the eval
  15632. # if we detect the quoting.
  15633. # TODO: see whether this extra hack can be removed once we start
  15634. # requiring Autoconf 2.70 or later.
  15635. case $CONFIG_FILES in #(
  15636. *\'*) :
  15637. eval set x "$CONFIG_FILES" ;; #(
  15638. *) :
  15639. set x $CONFIG_FILES ;; #(
  15640. *) :
  15641. ;;
  15642. esac
  15643. shift
  15644. # Used to flag and report bootstrapping failures.
  15645. am_rc=0
  15646. for am_mf
  15647. do
  15648. # Strip MF so we end up with the name of the file.
  15649. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
  15650. # Check whether this is an Automake generated Makefile which includes
  15651. # dependency-tracking related rules and includes.
  15652. # Grep'ing the whole file directly is not great: AIX grep has a line
  15653. # limit of 2048, but all sed's we know have understand at least 4000.
  15654. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  15655. || continue
  15656. am_dirpart=`$as_dirname -- "$am_mf" ||
  15657. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15658. X"$am_mf" : 'X\(//\)[^/]' \| \
  15659. X"$am_mf" : 'X\(//\)$' \| \
  15660. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  15661. printf "%s\n" X"$am_mf" |
  15662. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15663. s//\1/
  15664. q
  15665. }
  15666. /^X\(\/\/\)[^/].*/{
  15667. s//\1/
  15668. q
  15669. }
  15670. /^X\(\/\/\)$/{
  15671. s//\1/
  15672. q
  15673. }
  15674. /^X\(\/\).*/{
  15675. s//\1/
  15676. q
  15677. }
  15678. s/.*/./; q'`
  15679. am_filepart=`$as_basename -- "$am_mf" ||
  15680. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  15681. X"$am_mf" : 'X\(//\)$' \| \
  15682. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  15683. printf "%s\n" X/"$am_mf" |
  15684. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15685. s//\1/
  15686. q
  15687. }
  15688. /^X\/\(\/\/\)$/{
  15689. s//\1/
  15690. q
  15691. }
  15692. /^X\/\(\/\).*/{
  15693. s//\1/
  15694. q
  15695. }
  15696. s/.*/./; q'`
  15697. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  15698. && sed -e '/# am--include-marker/d' "$am_filepart" \
  15699. | $MAKE -f - am--depfiles" >&5
  15700. (cd "$am_dirpart" \
  15701. && sed -e '/# am--include-marker/d' "$am_filepart" \
  15702. | $MAKE -f - am--depfiles) >&5 2>&5
  15703. ac_status=$?
  15704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15705. (exit $ac_status); } || am_rc=$?
  15706. done
  15707. if test $am_rc -ne 0; then
  15708. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  15709. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  15710. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  15711. for automatic dependency tracking. If GNU make was not used, consider
  15712. re-running the configure script with MAKE=\"gmake\" (or whatever is
  15713. necessary). You can also try re-running configure with the
  15714. '--disable-dependency-tracking' option to at least be able to build
  15715. the package (albeit without support for automatic dependency tracking).
  15716. See 'config.log' for more details" "$LINENO" 5; }
  15717. fi
  15718. { am_dirpart=; unset am_dirpart;}
  15719. { am_filepart=; unset am_filepart;}
  15720. { am_mf=; unset am_mf;}
  15721. { am_rc=; unset am_rc;}
  15722. rm -f conftest-deps.mk
  15723. }
  15724. ;;
  15725. "libtool":C)
  15726. # See if we are running on zsh, and set the options that allow our
  15727. # commands through without removal of \ escapes.
  15728. if test -n "${ZSH_VERSION+set}"; then
  15729. setopt NO_GLOB_SUBST
  15730. fi
  15731. cfgfile=${ofile}T
  15732. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15733. $RM "$cfgfile"
  15734. cat <<_LT_EOF >> "$cfgfile"
  15735. #! $SHELL
  15736. # Generated automatically by $as_me ($PACKAGE) $VERSION
  15737. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15738. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15739. # Provide generalized library-building support services.
  15740. # Written by Gordon Matzigkeit, 1996
  15741. # Copyright (C) 2014 Free Software Foundation, Inc.
  15742. # This is free software; see the source for copying conditions. There is NO
  15743. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15744. # GNU Libtool is free software; you can redistribute it and/or modify
  15745. # it under the terms of the GNU General Public License as published by
  15746. # the Free Software Foundation; either version 2 of of the License, or
  15747. # (at your option) any later version.
  15748. #
  15749. # As a special exception to the GNU General Public License, if you
  15750. # distribute this file as part of a program or library that is built
  15751. # using GNU Libtool, you may include this file under the same
  15752. # distribution terms that you use for the rest of that program.
  15753. #
  15754. # GNU Libtool is distributed in the hope that it will be useful, but
  15755. # WITHOUT ANY WARRANTY; without even the implied warranty of
  15756. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15757. # GNU General Public License for more details.
  15758. #
  15759. # You should have received a copy of the GNU General Public License
  15760. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  15761. # The names of the tagged configurations supported by this script.
  15762. available_tags=''
  15763. # Configured defaults for sys_lib_dlsearch_path munging.
  15764. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  15765. # ### BEGIN LIBTOOL CONFIG
  15766. # Which release of libtool.m4 was used?
  15767. macro_version=$macro_version
  15768. macro_revision=$macro_revision
  15769. # Whether or not to build static libraries.
  15770. build_old_libs=$enable_static
  15771. # What type of objects to build.
  15772. pic_mode=$pic_mode
  15773. # Whether or not to build shared libraries.
  15774. build_libtool_libs=$enable_shared
  15775. # Whether or not to optimize for fast installation.
  15776. fast_install=$enable_fast_install
  15777. # Shared archive member basename,for filename based shared library versioning on AIX.
  15778. shared_archive_member_spec=$shared_archive_member_spec
  15779. # Shell to use when invoking shell scripts.
  15780. SHELL=$lt_SHELL
  15781. # An echo program that protects backslashes.
  15782. ECHO=$lt_ECHO
  15783. # The PATH separator for the build system.
  15784. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  15785. # The host system.
  15786. host_alias=$host_alias
  15787. host=$host
  15788. host_os=$host_os
  15789. # The build system.
  15790. build_alias=$build_alias
  15791. build=$build
  15792. build_os=$build_os
  15793. # A sed program that does not truncate output.
  15794. SED=$lt_SED
  15795. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15796. Xsed="\$SED -e 1s/^X//"
  15797. # A grep program that handles long lines.
  15798. GREP=$lt_GREP
  15799. # An ERE matcher.
  15800. EGREP=$lt_EGREP
  15801. # A literal string matcher.
  15802. FGREP=$lt_FGREP
  15803. # A BSD- or MS-compatible name lister.
  15804. NM=$lt_NM
  15805. # Whether we need soft or hard links.
  15806. LN_S=$lt_LN_S
  15807. # What is the maximum length of a command?
  15808. max_cmd_len=$max_cmd_len
  15809. # Object file suffix (normally "o").
  15810. objext=$ac_objext
  15811. # Executable file suffix (normally "").
  15812. exeext=$exeext
  15813. # whether the shell understands "unset".
  15814. lt_unset=$lt_unset
  15815. # turn spaces into newlines.
  15816. SP2NL=$lt_lt_SP2NL
  15817. # turn newlines into spaces.
  15818. NL2SP=$lt_lt_NL2SP
  15819. # convert \$build file names to \$host format.
  15820. to_host_file_cmd=$lt_cv_to_host_file_cmd
  15821. # convert \$build files to toolchain format.
  15822. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  15823. # A file(cmd) program that detects file types.
  15824. FILECMD=$lt_FILECMD
  15825. # An object symbol dumper.
  15826. OBJDUMP=$lt_OBJDUMP
  15827. # Method to check whether dependent libraries are shared objects.
  15828. deplibs_check_method=$lt_deplibs_check_method
  15829. # Command to use when deplibs_check_method = "file_magic".
  15830. file_magic_cmd=$lt_file_magic_cmd
  15831. # How to find potential files when deplibs_check_method = "file_magic".
  15832. file_magic_glob=$lt_file_magic_glob
  15833. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  15834. want_nocaseglob=$lt_want_nocaseglob
  15835. # DLL creation program.
  15836. DLLTOOL=$lt_DLLTOOL
  15837. # Command to associate shared and link libraries.
  15838. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  15839. # The archiver.
  15840. AR=$lt_AR
  15841. # Flags to create an archive (by configure).
  15842. lt_ar_flags=$lt_ar_flags
  15843. # Flags to create an archive.
  15844. AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
  15845. # How to feed a file listing to the archiver.
  15846. archiver_list_spec=$lt_archiver_list_spec
  15847. # A symbol stripping program.
  15848. STRIP=$lt_STRIP
  15849. # Commands used to install an old-style archive.
  15850. RANLIB=$lt_RANLIB
  15851. old_postinstall_cmds=$lt_old_postinstall_cmds
  15852. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15853. # Whether to use a lock for old archive extraction.
  15854. lock_old_archive_extraction=$lock_old_archive_extraction
  15855. # A C compiler.
  15856. LTCC=$lt_CC
  15857. # LTCC compiler flags.
  15858. LTCFLAGS=$lt_CFLAGS
  15859. # Take the output of nm and produce a listing of raw symbols and C names.
  15860. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15861. # Transform the output of nm in a proper C declaration.
  15862. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15863. # Transform the output of nm into a list of symbols to manually relocate.
  15864. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  15865. # Transform the output of nm in a C name address pair.
  15866. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15867. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15868. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15869. # The name lister interface.
  15870. nm_interface=$lt_lt_cv_nm_interface
  15871. # Specify filename containing input files for \$NM.
  15872. nm_file_list_spec=$lt_nm_file_list_spec
  15873. # The root where to search for dependent libraries,and where our libraries should be installed.
  15874. lt_sysroot=$lt_sysroot
  15875. # Command to truncate a binary pipe.
  15876. lt_truncate_bin=$lt_lt_cv_truncate_bin
  15877. # The name of the directory that contains temporary libtool files.
  15878. objdir=$objdir
  15879. # Used to examine libraries when file_magic_cmd begins with "file".
  15880. MAGIC_CMD=$MAGIC_CMD
  15881. # Must we lock files when doing compilation?
  15882. need_locks=$lt_need_locks
  15883. # Manifest tool.
  15884. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  15885. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15886. DSYMUTIL=$lt_DSYMUTIL
  15887. # Tool to change global to local symbols on Mac OS X.
  15888. NMEDIT=$lt_NMEDIT
  15889. # Tool to manipulate fat objects and archives on Mac OS X.
  15890. LIPO=$lt_LIPO
  15891. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15892. OTOOL=$lt_OTOOL
  15893. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15894. OTOOL64=$lt_OTOOL64
  15895. # Old archive suffix (normally "a").
  15896. libext=$libext
  15897. # Shared library suffix (normally ".so").
  15898. shrext_cmds=$lt_shrext_cmds
  15899. # The commands to extract the exported symbol list from a shared archive.
  15900. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15901. # Variables whose values should be saved in libtool wrapper scripts and
  15902. # restored at link time.
  15903. variables_saved_for_relink=$lt_variables_saved_for_relink
  15904. # Do we need the "lib" prefix for modules?
  15905. need_lib_prefix=$need_lib_prefix
  15906. # Do we need a version for libraries?
  15907. need_version=$need_version
  15908. # Library versioning type.
  15909. version_type=$version_type
  15910. # Shared library runtime path variable.
  15911. runpath_var=$runpath_var
  15912. # Shared library path variable.
  15913. shlibpath_var=$shlibpath_var
  15914. # Is shlibpath searched before the hard-coded library search path?
  15915. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15916. # Format of library name prefix.
  15917. libname_spec=$lt_libname_spec
  15918. # List of archive names. First name is the real one, the rest are links.
  15919. # The last name is the one that the linker finds with -lNAME
  15920. library_names_spec=$lt_library_names_spec
  15921. # The coded name of the library, if different from the real name.
  15922. soname_spec=$lt_soname_spec
  15923. # Permission mode override for installation of shared libraries.
  15924. install_override_mode=$lt_install_override_mode
  15925. # Command to use after installation of a shared archive.
  15926. postinstall_cmds=$lt_postinstall_cmds
  15927. # Command to use after uninstallation of a shared archive.
  15928. postuninstall_cmds=$lt_postuninstall_cmds
  15929. # Commands used to finish a libtool library installation in a directory.
  15930. finish_cmds=$lt_finish_cmds
  15931. # As "finish_cmds", except a single script fragment to be evaled but
  15932. # not shown.
  15933. finish_eval=$lt_finish_eval
  15934. # Whether we should hardcode library paths into libraries.
  15935. hardcode_into_libs=$hardcode_into_libs
  15936. # Compile-time system search path for libraries.
  15937. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15938. # Detected run-time system search path for libraries.
  15939. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  15940. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  15941. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  15942. # Whether dlopen is supported.
  15943. dlopen_support=$enable_dlopen
  15944. # Whether dlopen of programs is supported.
  15945. dlopen_self=$enable_dlopen_self
  15946. # Whether dlopen of statically linked programs is supported.
  15947. dlopen_self_static=$enable_dlopen_self_static
  15948. # Commands to strip libraries.
  15949. old_striplib=$lt_old_striplib
  15950. striplib=$lt_striplib
  15951. # The linker used to build libraries.
  15952. LD=$lt_LD
  15953. # How to create reloadable object files.
  15954. reload_flag=$lt_reload_flag
  15955. reload_cmds=$lt_reload_cmds
  15956. # Commands used to build an old-style archive.
  15957. old_archive_cmds=$lt_old_archive_cmds
  15958. # A language specific compiler.
  15959. CC=$lt_compiler
  15960. # Is the compiler the GNU compiler?
  15961. with_gcc=$GCC
  15962. # Compiler flag to turn off builtin functions.
  15963. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15964. # Additional compiler flags for building library objects.
  15965. pic_flag=$lt_lt_prog_compiler_pic
  15966. # How to pass a linker flag through the compiler.
  15967. wl=$lt_lt_prog_compiler_wl
  15968. # Compiler flag to prevent dynamic linking.
  15969. link_static_flag=$lt_lt_prog_compiler_static
  15970. # Does compiler simultaneously support -c and -o options?
  15971. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15972. # Whether or not to add -lc for building shared libraries.
  15973. build_libtool_need_lc=$archive_cmds_need_lc
  15974. # Whether or not to disallow shared libs when runtime libs are static.
  15975. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15976. # Compiler flag to allow reflexive dlopens.
  15977. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15978. # Compiler flag to generate shared objects directly from archives.
  15979. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15980. # Whether the compiler copes with passing no objects directly.
  15981. compiler_needs_object=$lt_compiler_needs_object
  15982. # Create an old-style archive from a shared archive.
  15983. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15984. # Create a temporary old-style archive to link instead of a shared archive.
  15985. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15986. # Commands used to build a shared archive.
  15987. archive_cmds=$lt_archive_cmds
  15988. archive_expsym_cmds=$lt_archive_expsym_cmds
  15989. # Commands used to build a loadable module if different from building
  15990. # a shared archive.
  15991. module_cmds=$lt_module_cmds
  15992. module_expsym_cmds=$lt_module_expsym_cmds
  15993. # Whether we are building with GNU ld or not.
  15994. with_gnu_ld=$lt_with_gnu_ld
  15995. # Flag that allows shared libraries with undefined symbols to be built.
  15996. allow_undefined_flag=$lt_allow_undefined_flag
  15997. # Flag that enforces no undefined symbols.
  15998. no_undefined_flag=$lt_no_undefined_flag
  15999. # Flag to hardcode \$libdir into a binary during linking.
  16000. # This must work even if \$libdir does not exist
  16001. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16002. # Whether we need a single "-rpath" flag with a separated argument.
  16003. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16004. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  16005. # DIR into the resulting binary.
  16006. hardcode_direct=$hardcode_direct
  16007. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  16008. # DIR into the resulting binary and the resulting library dependency is
  16009. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  16010. # library is relocated.
  16011. hardcode_direct_absolute=$hardcode_direct_absolute
  16012. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16013. # into the resulting binary.
  16014. hardcode_minus_L=$hardcode_minus_L
  16015. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16016. # into the resulting binary.
  16017. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16018. # Set to "yes" if building a shared library automatically hardcodes DIR
  16019. # into the library and all subsequent libraries and executables linked
  16020. # against it.
  16021. hardcode_automatic=$hardcode_automatic
  16022. # Set to yes if linker adds runtime paths of dependent libraries
  16023. # to runtime path list.
  16024. inherit_rpath=$inherit_rpath
  16025. # Whether libtool must link a program against all its dependency libraries.
  16026. link_all_deplibs=$link_all_deplibs
  16027. # Set to "yes" if exported symbols are required.
  16028. always_export_symbols=$always_export_symbols
  16029. # The commands to list exported symbols.
  16030. export_symbols_cmds=$lt_export_symbols_cmds
  16031. # Symbols that should not be listed in the preloaded symbols.
  16032. exclude_expsyms=$lt_exclude_expsyms
  16033. # Symbols that must always be exported.
  16034. include_expsyms=$lt_include_expsyms
  16035. # Commands necessary for linking programs (against libraries) with templates.
  16036. prelink_cmds=$lt_prelink_cmds
  16037. # Commands necessary for finishing linking programs.
  16038. postlink_cmds=$lt_postlink_cmds
  16039. # Specify filename containing input files.
  16040. file_list_spec=$lt_file_list_spec
  16041. # How to hardcode a shared library path into an executable.
  16042. hardcode_action=$hardcode_action
  16043. # ### END LIBTOOL CONFIG
  16044. _LT_EOF
  16045. cat <<'_LT_EOF' >> "$cfgfile"
  16046. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  16047. # func_munge_path_list VARIABLE PATH
  16048. # -----------------------------------
  16049. # VARIABLE is name of variable containing _space_ separated list of
  16050. # directories to be munged by the contents of PATH, which is string
  16051. # having a format:
  16052. # "DIR[:DIR]:"
  16053. # string "DIR[ DIR]" will be prepended to VARIABLE
  16054. # ":DIR[:DIR]"
  16055. # string "DIR[ DIR]" will be appended to VARIABLE
  16056. # "DIRP[:DIRP]::[DIRA:]DIRA"
  16057. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  16058. # "DIRA[ DIRA]" will be appended to VARIABLE
  16059. # "DIR[:DIR]"
  16060. # VARIABLE will be replaced by "DIR[ DIR]"
  16061. func_munge_path_list ()
  16062. {
  16063. case x$2 in
  16064. x)
  16065. ;;
  16066. *:)
  16067. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  16068. ;;
  16069. x:*)
  16070. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  16071. ;;
  16072. *::*)
  16073. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  16074. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  16075. ;;
  16076. *)
  16077. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  16078. ;;
  16079. esac
  16080. }
  16081. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  16082. func_cc_basename ()
  16083. {
  16084. for cc_temp in $*""; do
  16085. case $cc_temp in
  16086. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16087. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16088. \-*) ;;
  16089. *) break;;
  16090. esac
  16091. done
  16092. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  16093. }
  16094. # ### END FUNCTIONS SHARED WITH CONFIGURE
  16095. _LT_EOF
  16096. case $host_os in
  16097. aix3*)
  16098. cat <<\_LT_EOF >> "$cfgfile"
  16099. # AIX sometimes has problems with the GCC collect2 program. For some
  16100. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16101. # vanish in a puff of smoke.
  16102. if test set != "${COLLECT_NAMES+set}"; then
  16103. COLLECT_NAMES=
  16104. export COLLECT_NAMES
  16105. fi
  16106. _LT_EOF
  16107. ;;
  16108. esac
  16109. ltmain=$ac_aux_dir/ltmain.sh
  16110. # We use sed instead of cat because bash on DJGPP gets confused if
  16111. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16112. # text mode, it properly converts lines to CR/LF. This bash problem
  16113. # is reportedly fixed, but why not run on old versions too?
  16114. $SED '$q' "$ltmain" >> "$cfgfile" \
  16115. || (rm -f "$cfgfile"; exit 1)
  16116. mv -f "$cfgfile" "$ofile" ||
  16117. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16118. chmod +x "$ofile"
  16119. ;;
  16120. esac
  16121. done # for ac_tag
  16122. as_fn_exit 0
  16123. _ACEOF
  16124. ac_clean_files=$ac_clean_files_save
  16125. test $ac_write_fail = 0 ||
  16126. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16127. # configure is writing to config.log, and then calls config.status.
  16128. # config.status does its own redirection, appending to config.log.
  16129. # Unfortunately, on DOS this fails, as config.log is still kept open
  16130. # by configure, so config.status won't be able to write to it; its
  16131. # output is simply discarded. So we exec the FD to /dev/null,
  16132. # effectively closing config.log, so it can be properly (re)opened and
  16133. # appended to by config.status. When coming back to configure, we
  16134. # need to make the FD available again.
  16135. if test "$no_create" != yes; then
  16136. ac_cs_success=:
  16137. ac_config_status_args=
  16138. test "$silent" = yes &&
  16139. ac_config_status_args="$ac_config_status_args --quiet"
  16140. exec 5>/dev/null
  16141. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16142. exec 5>>config.log
  16143. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16144. # would make configure fail if this is the last instruction.
  16145. $ac_cs_success || as_fn_exit 1
  16146. fi
  16147. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16149. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16150. fi