configure 514 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71 for file 5.45.
  4. #
  5. # Report bugs to <christos@astron.com>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  9. # Inc.
  10. #
  11. #
  12. # This configure script is free software; the Free Software Foundation
  13. # gives unlimited permission to copy, distribute and modify it.
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. as_nop=:
  20. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  21. then :
  22. emulate sh
  23. NULLCMD=:
  24. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25. # is contrary to our usage. Disable this feature.
  26. alias -g '${1+"$@"}'='"$@"'
  27. setopt NO_GLOB_SUBST
  28. else $as_nop
  29. case `(set -o) 2>/dev/null` in #(
  30. *posix*) :
  31. set -o posix ;; #(
  32. *) :
  33. ;;
  34. esac
  35. fi
  36. # Reset variables that may have inherited troublesome values from
  37. # the environment.
  38. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  39. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  40. # side effect of setting IFS to empty, thus disabling word splitting.)
  41. # Quoting is to prevent editors from complaining about space-tab.
  42. as_nl='
  43. '
  44. export as_nl
  45. IFS=" "" $as_nl"
  46. PS1='$ '
  47. PS2='> '
  48. PS4='+ '
  49. # Ensure predictable behavior from utilities with locale-dependent output.
  50. LC_ALL=C
  51. export LC_ALL
  52. LANGUAGE=C
  53. export LANGUAGE
  54. # We cannot yet rely on "unset" to work, but we need these variables
  55. # to be unset--not just set to an empty or harmless value--now, to
  56. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  57. # also avoids known problems related to "unset" and subshell syntax
  58. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  59. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  60. do eval test \${$as_var+y} \
  61. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  62. done
  63. # Ensure that fds 0, 1, and 2 are open.
  64. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  65. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  66. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  67. # The user is always right.
  68. if ${PATH_SEPARATOR+false} :; then
  69. PATH_SEPARATOR=:
  70. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  71. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  72. PATH_SEPARATOR=';'
  73. }
  74. fi
  75. # Find who we are. Look in the path if we contain no directory separator.
  76. as_myself=
  77. case $0 in #((
  78. *[\\/]* ) as_myself=$0 ;;
  79. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  80. for as_dir in $PATH
  81. do
  82. IFS=$as_save_IFS
  83. case $as_dir in #(((
  84. '') as_dir=./ ;;
  85. */) ;;
  86. *) as_dir=$as_dir/ ;;
  87. esac
  88. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  89. done
  90. IFS=$as_save_IFS
  91. ;;
  92. esac
  93. # We did not find ourselves, most probably we were run as `sh COMMAND'
  94. # in which case we are not to be found in the path.
  95. if test "x$as_myself" = x; then
  96. as_myself=$0
  97. fi
  98. if test ! -f "$as_myself"; then
  99. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  100. exit 1
  101. fi
  102. # Use a proper internal environment variable to ensure we don't fall
  103. # into an infinite loop, continuously re-executing ourselves.
  104. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  105. _as_can_reexec=no; export _as_can_reexec;
  106. # We cannot yet assume a decent shell, so we have to provide a
  107. # neutralization value for shells without unset; and this also
  108. # works around shells that cannot unset nonexistent variables.
  109. # Preserve -v and -x to the replacement shell.
  110. BASH_ENV=/dev/null
  111. ENV=/dev/null
  112. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  113. case $- in # ((((
  114. *v*x* | *x*v* ) as_opts=-vx ;;
  115. *v* ) as_opts=-v ;;
  116. *x* ) as_opts=-x ;;
  117. * ) as_opts= ;;
  118. esac
  119. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  120. # Admittedly, this is quite paranoid, since all the known shells bail
  121. # out after a failed `exec'.
  122. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  123. exit 255
  124. fi
  125. # We don't want this to propagate to other subprocesses.
  126. { _as_can_reexec=; unset _as_can_reexec;}
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="as_nop=:
  129. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  130. then :
  131. emulate sh
  132. NULLCMD=:
  133. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  134. # is contrary to our usage. Disable this feature.
  135. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  136. setopt NO_GLOB_SUBST
  137. else \$as_nop
  138. case \`(set -o) 2>/dev/null\` in #(
  139. *posix*) :
  140. set -o posix ;; #(
  141. *) :
  142. ;;
  143. esac
  144. fi
  145. "
  146. as_required="as_fn_return () { (exit \$1); }
  147. as_fn_success () { as_fn_return 0; }
  148. as_fn_failure () { as_fn_return 1; }
  149. as_fn_ret_success () { return 0; }
  150. as_fn_ret_failure () { return 1; }
  151. exitcode=0
  152. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  153. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  154. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  155. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  156. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  157. then :
  158. else \$as_nop
  159. exitcode=1; echo positional parameters were not saved.
  160. fi
  161. test x\$exitcode = x0 || exit 1
  162. blah=\$(echo \$(echo blah))
  163. test x\"\$blah\" = xblah || exit 1
  164. test -x / || exit 1"
  165. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  166. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  167. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  168. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  169. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  170. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  171. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  172. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  173. PATH=/empty FPATH=/empty; export PATH FPATH
  174. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  175. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  176. test \$(( 1 + 1 )) = 2 || exit 1"
  177. if (eval "$as_required") 2>/dev/null
  178. then :
  179. as_have_required=yes
  180. else $as_nop
  181. as_have_required=no
  182. fi
  183. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  184. then :
  185. else $as_nop
  186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  187. as_found=false
  188. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  189. do
  190. IFS=$as_save_IFS
  191. case $as_dir in #(((
  192. '') as_dir=./ ;;
  193. */) ;;
  194. *) as_dir=$as_dir/ ;;
  195. esac
  196. as_found=:
  197. case $as_dir in #(
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. # Try only shells that exist, to save several forks.
  201. as_shell=$as_dir$as_base
  202. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  203. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  204. then :
  205. CONFIG_SHELL=$as_shell as_have_required=yes
  206. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  207. then :
  208. break 2
  209. fi
  210. fi
  211. done;;
  212. esac
  213. as_found=false
  214. done
  215. IFS=$as_save_IFS
  216. if $as_found
  217. then :
  218. else $as_nop
  219. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  220. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  221. then :
  222. CONFIG_SHELL=$SHELL as_have_required=yes
  223. fi
  224. fi
  225. if test "x$CONFIG_SHELL" != x
  226. then :
  227. export CONFIG_SHELL
  228. # We cannot yet assume a decent shell, so we have to provide a
  229. # neutralization value for shells without unset; and this also
  230. # works around shells that cannot unset nonexistent variables.
  231. # Preserve -v and -x to the replacement shell.
  232. BASH_ENV=/dev/null
  233. ENV=/dev/null
  234. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  235. case $- in # ((((
  236. *v*x* | *x*v* ) as_opts=-vx ;;
  237. *v* ) as_opts=-v ;;
  238. *x* ) as_opts=-x ;;
  239. * ) as_opts= ;;
  240. esac
  241. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  242. # Admittedly, this is quite paranoid, since all the known shells bail
  243. # out after a failed `exec'.
  244. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  245. exit 255
  246. fi
  247. if test x$as_have_required = xno
  248. then :
  249. printf "%s\n" "$0: This script requires a shell more modern than all"
  250. printf "%s\n" "$0: the shells that I found on your system."
  251. if test ${ZSH_VERSION+y} ; then
  252. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  253. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  254. else
  255. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
  256. $0: christos@astron.com about your system, including any
  257. $0: error possibly output before this message. Then install
  258. $0: a modern shell, or manually run the script under such a
  259. $0: shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_nop
  298. # ---------
  299. # Do nothing but, unlike ":", preserve the value of $?.
  300. as_fn_nop ()
  301. {
  302. return $?
  303. }
  304. as_nop=as_fn_nop
  305. # as_fn_mkdir_p
  306. # -------------
  307. # Create "$as_dir" as a directory, including parents if necessary.
  308. as_fn_mkdir_p ()
  309. {
  310. case $as_dir in #(
  311. -*) as_dir=./$as_dir;;
  312. esac
  313. test -d "$as_dir" || eval $as_mkdir_p || {
  314. as_dirs=
  315. while :; do
  316. case $as_dir in #(
  317. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  318. *) as_qdir=$as_dir;;
  319. esac
  320. as_dirs="'$as_qdir' $as_dirs"
  321. as_dir=`$as_dirname -- "$as_dir" ||
  322. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  323. X"$as_dir" : 'X\(//\)[^/]' \| \
  324. X"$as_dir" : 'X\(//\)$' \| \
  325. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  326. printf "%s\n" X"$as_dir" |
  327. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\/\)[^/].*/{
  332. s//\1/
  333. q
  334. }
  335. /^X\(\/\/\)$/{
  336. s//\1/
  337. q
  338. }
  339. /^X\(\/\).*/{
  340. s//\1/
  341. q
  342. }
  343. s/.*/./; q'`
  344. test -d "$as_dir" && break
  345. done
  346. test -z "$as_dirs" || eval "mkdir $as_dirs"
  347. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  348. } # as_fn_mkdir_p
  349. # as_fn_executable_p FILE
  350. # -----------------------
  351. # Test if FILE is an executable regular file.
  352. as_fn_executable_p ()
  353. {
  354. test -f "$1" && test -x "$1"
  355. } # as_fn_executable_p
  356. # as_fn_append VAR VALUE
  357. # ----------------------
  358. # Append the text in VALUE to the end of the definition contained in VAR. Take
  359. # advantage of any shell optimizations that allow amortized linear growth over
  360. # repeated appends, instead of the typical quadratic growth present in naive
  361. # implementations.
  362. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  363. then :
  364. eval 'as_fn_append ()
  365. {
  366. eval $1+=\$2
  367. }'
  368. else $as_nop
  369. as_fn_append ()
  370. {
  371. eval $1=\$$1\$2
  372. }
  373. fi # as_fn_append
  374. # as_fn_arith ARG...
  375. # ------------------
  376. # Perform arithmetic evaluation on the ARGs, and store the result in the
  377. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  378. # must be portable across $(()) and expr.
  379. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  380. then :
  381. eval 'as_fn_arith ()
  382. {
  383. as_val=$(( $* ))
  384. }'
  385. else $as_nop
  386. as_fn_arith ()
  387. {
  388. as_val=`expr "$@" || test $? -eq 1`
  389. }
  390. fi # as_fn_arith
  391. # as_fn_nop
  392. # ---------
  393. # Do nothing but, unlike ":", preserve the value of $?.
  394. as_fn_nop ()
  395. {
  396. return $?
  397. }
  398. as_nop=as_fn_nop
  399. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  400. # ----------------------------------------
  401. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  402. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  403. # script with STATUS, using 1 if that was 0.
  404. as_fn_error ()
  405. {
  406. as_status=$1; test $as_status -eq 0 && as_status=1
  407. if test "$4"; then
  408. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  409. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  410. fi
  411. printf "%s\n" "$as_me: error: $2" >&2
  412. as_fn_exit $as_status
  413. } # as_fn_error
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  421. as_basename=basename
  422. else
  423. as_basename=false
  424. fi
  425. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  426. as_dirname=dirname
  427. else
  428. as_dirname=false
  429. fi
  430. as_me=`$as_basename -- "$0" ||
  431. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  432. X"$0" : 'X\(//\)$' \| \
  433. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  434. printf "%s\n" X/"$0" |
  435. sed '/^.*\/\([^/][^/]*\)\/*$/{
  436. s//\1/
  437. q
  438. }
  439. /^X\/\(\/\/\)$/{
  440. s//\1/
  441. q
  442. }
  443. /^X\/\(\/\).*/{
  444. s//\1/
  445. q
  446. }
  447. s/.*/./; q'`
  448. # Avoid depending upon Character Ranges.
  449. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  450. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  451. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  452. as_cr_digits='0123456789'
  453. as_cr_alnum=$as_cr_Letters$as_cr_digits
  454. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  455. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  456. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  457. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  458. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  459. sed -n '
  460. p
  461. /[$]LINENO/=
  462. ' <$as_myself |
  463. sed '
  464. s/[$]LINENO.*/&-/
  465. t lineno
  466. b
  467. :lineno
  468. N
  469. :loop
  470. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  471. t loop
  472. s/-\n.*//
  473. ' >$as_me.lineno &&
  474. chmod +x "$as_me.lineno" ||
  475. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  476. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  477. # already done that, so ensure we don't try to do so again and fall
  478. # in an infinite loop. This has already happened in practice.
  479. _as_can_reexec=no; export _as_can_reexec
  480. # Don't try to exec as it changes $[0], causing all sort of problems
  481. # (the dirname of $[0] is not the place where we might find the
  482. # original and so on. Autoconf is especially sensitive to this).
  483. . "./$as_me.lineno"
  484. # Exit status is that of the last command.
  485. exit
  486. }
  487. # Determine whether it's possible to make 'echo' print without a newline.
  488. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  489. # for compatibility with existing Makefiles.
  490. ECHO_C= ECHO_N= ECHO_T=
  491. case `echo -n x` in #(((((
  492. -n*)
  493. case `echo 'xy\c'` in
  494. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  495. xy) ECHO_C='\c';;
  496. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  497. ECHO_T=' ';;
  498. esac;;
  499. *)
  500. ECHO_N='-n';;
  501. esac
  502. # For backward compatibility with old third-party macros, we provide
  503. # the shell variables $as_echo and $as_echo_n. New code should use
  504. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  505. as_echo='printf %s\n'
  506. as_echo_n='printf %s'
  507. rm -f conf$$ conf$$.exe conf$$.file
  508. if test -d conf$$.dir; then
  509. rm -f conf$$.dir/conf$$.file
  510. else
  511. rm -f conf$$.dir
  512. mkdir conf$$.dir 2>/dev/null
  513. fi
  514. if (echo >conf$$.file) 2>/dev/null; then
  515. if ln -s conf$$.file conf$$ 2>/dev/null; then
  516. as_ln_s='ln -s'
  517. # ... but there are two gotchas:
  518. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  519. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  520. # In both cases, we have to default to `cp -pR'.
  521. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  522. as_ln_s='cp -pR'
  523. elif ln conf$$.file conf$$ 2>/dev/null; then
  524. as_ln_s=ln
  525. else
  526. as_ln_s='cp -pR'
  527. fi
  528. else
  529. as_ln_s='cp -pR'
  530. fi
  531. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  532. rmdir conf$$.dir 2>/dev/null
  533. if mkdir -p . 2>/dev/null; then
  534. as_mkdir_p='mkdir -p "$as_dir"'
  535. else
  536. test -d ./-p && rmdir ./-p
  537. as_mkdir_p=false
  538. fi
  539. as_test_x='test -x'
  540. as_executable_p=as_fn_executable_p
  541. # Sed expression to map a string onto a valid CPP name.
  542. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  543. # Sed expression to map a string onto a valid variable name.
  544. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  545. SHELL=${CONFIG_SHELL-/bin/sh}
  546. test -n "$DJDIR" || exec 7<&0 </dev/null
  547. exec 6>&1
  548. # Name of the host.
  549. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  550. # so uname gets run too.
  551. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  552. #
  553. # Initializations.
  554. #
  555. ac_default_prefix=/usr/local
  556. ac_clean_files=
  557. ac_config_libobj_dir=.
  558. LIBOBJS=
  559. cross_compiling=no
  560. subdirs=
  561. MFLAGS=
  562. MAKEFLAGS=
  563. # Identity of this package.
  564. PACKAGE_NAME='file'
  565. PACKAGE_TARNAME='file'
  566. PACKAGE_VERSION='5.45'
  567. PACKAGE_STRING='file 5.45'
  568. PACKAGE_BUGREPORT='christos@astron.com'
  569. PACKAGE_URL=''
  570. # Factoring default headers for most tests.
  571. ac_includes_default="\
  572. #include <stddef.h>
  573. #ifdef HAVE_STDIO_H
  574. # include <stdio.h>
  575. #endif
  576. #ifdef HAVE_STDLIB_H
  577. # include <stdlib.h>
  578. #endif
  579. #ifdef HAVE_STRING_H
  580. # include <string.h>
  581. #endif
  582. #ifdef HAVE_INTTYPES_H
  583. # include <inttypes.h>
  584. #endif
  585. #ifdef HAVE_STDINT_H
  586. # include <stdint.h>
  587. #endif
  588. #ifdef HAVE_STRINGS_H
  589. # include <strings.h>
  590. #endif
  591. #ifdef HAVE_SYS_TYPES_H
  592. # include <sys/types.h>
  593. #endif
  594. #ifdef HAVE_SYS_STAT_H
  595. # include <sys/stat.h>
  596. #endif
  597. #ifdef HAVE_UNISTD_H
  598. # include <unistd.h>
  599. #endif"
  600. ac_header_c_list=
  601. ac_func_c_list=
  602. ac_subst_vars='am__EXEEXT_FALSE
  603. am__EXEEXT_TRUE
  604. LTLIBOBJS
  605. IS_CROSS_COMPILE_FALSE
  606. IS_CROSS_COMPILE_TRUE
  607. LIBOBJS
  608. HAVE_VISIBILITY
  609. CFLAG_VISIBILITY
  610. LT_SYS_LIBRARY_PATH
  611. OTOOL64
  612. OTOOL
  613. LIPO
  614. NMEDIT
  615. DSYMUTIL
  616. MANIFEST_TOOL
  617. RANLIB
  618. ac_ct_AR
  619. AR
  620. DLLTOOL
  621. OBJDUMP
  622. NM
  623. ac_ct_DUMPBIN
  624. DUMPBIN
  625. LD
  626. FGREP
  627. EGREP
  628. GREP
  629. SED
  630. LIBTOOL
  631. LN_S
  632. am__fastdepCC_FALSE
  633. am__fastdepCC_TRUE
  634. CCDEPMODE
  635. am__nodep
  636. AMDEPBACKSLASH
  637. AMDEP_FALSE
  638. AMDEP_TRUE
  639. am__include
  640. DEPDIR
  641. OBJEXT
  642. EXEEXT
  643. ac_ct_CC
  644. CPPFLAGS
  645. LDFLAGS
  646. CFLAGS
  647. CC
  648. WARNINGS
  649. FSECT5_FALSE
  650. FSECT5_TRUE
  651. fsect
  652. pkgdatadir
  653. MINGW_FALSE
  654. MINGW_TRUE
  655. MINGW
  656. host_os
  657. host_vendor
  658. host_cpu
  659. host
  660. build_os
  661. build_vendor
  662. build_cpu
  663. build
  664. AM_BACKSLASH
  665. AM_DEFAULT_VERBOSITY
  666. AM_DEFAULT_V
  667. AM_V
  668. CSCOPE
  669. ETAGS
  670. CTAGS
  671. am__untar
  672. am__tar
  673. AMTAR
  674. am__leading_dot
  675. SET_MAKE
  676. AWK
  677. mkdir_p
  678. MKDIR_P
  679. INSTALL_STRIP_PROGRAM
  680. STRIP
  681. install_sh
  682. MAKEINFO
  683. AUTOHEADER
  684. AUTOMAKE
  685. AUTOCONF
  686. ACLOCAL
  687. VERSION
  688. PACKAGE
  689. CYGPATH_W
  690. am__isrc
  691. INSTALL_DATA
  692. INSTALL_SCRIPT
  693. INSTALL_PROGRAM
  694. target_alias
  695. host_alias
  696. build_alias
  697. LIBS
  698. ECHO_T
  699. ECHO_N
  700. ECHO_C
  701. DEFS
  702. mandir
  703. localedir
  704. libdir
  705. psdir
  706. pdfdir
  707. dvidir
  708. htmldir
  709. infodir
  710. docdir
  711. oldincludedir
  712. includedir
  713. runstatedir
  714. localstatedir
  715. sharedstatedir
  716. sysconfdir
  717. datadir
  718. datarootdir
  719. libexecdir
  720. sbindir
  721. bindir
  722. program_transform_name
  723. prefix
  724. exec_prefix
  725. PACKAGE_URL
  726. PACKAGE_BUGREPORT
  727. PACKAGE_STRING
  728. PACKAGE_VERSION
  729. PACKAGE_TARNAME
  730. PACKAGE_NAME
  731. PATH_SEPARATOR
  732. SHELL
  733. am__quote'
  734. ac_subst_files=''
  735. ac_user_opts='
  736. enable_option_checking
  737. enable_silent_rules
  738. enable_elf
  739. enable_elf_core
  740. enable_zlib
  741. enable_bzlib
  742. enable_xzlib
  743. enable_zstdlib
  744. enable_lzlib
  745. enable_libseccomp
  746. enable_fsect_man5
  747. enable_dependency_tracking
  748. enable_static
  749. with_pic
  750. enable_shared
  751. enable_fast_install
  752. with_aix_soname
  753. with_gnu_ld
  754. with_sysroot
  755. enable_libtool_lock
  756. enable_largefile
  757. enable_warnings
  758. '
  759. ac_precious_vars='build_alias
  760. host_alias
  761. target_alias
  762. CC
  763. CFLAGS
  764. LDFLAGS
  765. LIBS
  766. CPPFLAGS
  767. LT_SYS_LIBRARY_PATH'
  768. # Initialize some variables set by options.
  769. ac_init_help=
  770. ac_init_version=false
  771. ac_unrecognized_opts=
  772. ac_unrecognized_sep=
  773. # The variables have the same names as the options, with
  774. # dashes changed to underlines.
  775. cache_file=/dev/null
  776. exec_prefix=NONE
  777. no_create=
  778. no_recursion=
  779. prefix=NONE
  780. program_prefix=NONE
  781. program_suffix=NONE
  782. program_transform_name=s,x,x,
  783. silent=
  784. site=
  785. srcdir=
  786. verbose=
  787. x_includes=NONE
  788. x_libraries=NONE
  789. # Installation directory options.
  790. # These are left unexpanded so users can "make install exec_prefix=/foo"
  791. # and all the variables that are supposed to be based on exec_prefix
  792. # by default will actually change.
  793. # Use braces instead of parens because sh, perl, etc. also accept them.
  794. # (The list follows the same order as the GNU Coding Standards.)
  795. bindir='${exec_prefix}/bin'
  796. sbindir='${exec_prefix}/sbin'
  797. libexecdir='${exec_prefix}/libexec'
  798. datarootdir='${prefix}/share'
  799. datadir='${datarootdir}'
  800. sysconfdir='${prefix}/etc'
  801. sharedstatedir='${prefix}/com'
  802. localstatedir='${prefix}/var'
  803. runstatedir='${localstatedir}/run'
  804. includedir='${prefix}/include'
  805. oldincludedir='/usr/include'
  806. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  807. infodir='${datarootdir}/info'
  808. htmldir='${docdir}'
  809. dvidir='${docdir}'
  810. pdfdir='${docdir}'
  811. psdir='${docdir}'
  812. libdir='${exec_prefix}/lib'
  813. localedir='${datarootdir}/locale'
  814. mandir='${datarootdir}/man'
  815. ac_prev=
  816. ac_dashdash=
  817. for ac_option
  818. do
  819. # If the previous option needs an argument, assign it.
  820. if test -n "$ac_prev"; then
  821. eval $ac_prev=\$ac_option
  822. ac_prev=
  823. continue
  824. fi
  825. case $ac_option in
  826. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  827. *=) ac_optarg= ;;
  828. *) ac_optarg=yes ;;
  829. esac
  830. case $ac_dashdash$ac_option in
  831. --)
  832. ac_dashdash=yes ;;
  833. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  834. ac_prev=bindir ;;
  835. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  836. bindir=$ac_optarg ;;
  837. -build | --build | --buil | --bui | --bu)
  838. ac_prev=build_alias ;;
  839. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  840. build_alias=$ac_optarg ;;
  841. -cache-file | --cache-file | --cache-fil | --cache-fi \
  842. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  843. ac_prev=cache_file ;;
  844. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  845. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  846. cache_file=$ac_optarg ;;
  847. --config-cache | -C)
  848. cache_file=config.cache ;;
  849. -datadir | --datadir | --datadi | --datad)
  850. ac_prev=datadir ;;
  851. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  852. datadir=$ac_optarg ;;
  853. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  854. | --dataroo | --dataro | --datar)
  855. ac_prev=datarootdir ;;
  856. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  857. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  858. datarootdir=$ac_optarg ;;
  859. -disable-* | --disable-*)
  860. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  861. # Reject names that are not valid shell variable names.
  862. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  863. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  864. ac_useropt_orig=$ac_useropt
  865. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  866. case $ac_user_opts in
  867. *"
  868. "enable_$ac_useropt"
  869. "*) ;;
  870. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  871. ac_unrecognized_sep=', ';;
  872. esac
  873. eval enable_$ac_useropt=no ;;
  874. -docdir | --docdir | --docdi | --doc | --do)
  875. ac_prev=docdir ;;
  876. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  877. docdir=$ac_optarg ;;
  878. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  879. ac_prev=dvidir ;;
  880. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  881. dvidir=$ac_optarg ;;
  882. -enable-* | --enable-*)
  883. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  884. # Reject names that are not valid shell variable names.
  885. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  886. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  887. ac_useropt_orig=$ac_useropt
  888. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  889. case $ac_user_opts in
  890. *"
  891. "enable_$ac_useropt"
  892. "*) ;;
  893. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  894. ac_unrecognized_sep=', ';;
  895. esac
  896. eval enable_$ac_useropt=\$ac_optarg ;;
  897. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  898. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  899. | --exec | --exe | --ex)
  900. ac_prev=exec_prefix ;;
  901. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  902. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  903. | --exec=* | --exe=* | --ex=*)
  904. exec_prefix=$ac_optarg ;;
  905. -gas | --gas | --ga | --g)
  906. # Obsolete; use --with-gas.
  907. with_gas=yes ;;
  908. -help | --help | --hel | --he | -h)
  909. ac_init_help=long ;;
  910. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  911. ac_init_help=recursive ;;
  912. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  913. ac_init_help=short ;;
  914. -host | --host | --hos | --ho)
  915. ac_prev=host_alias ;;
  916. -host=* | --host=* | --hos=* | --ho=*)
  917. host_alias=$ac_optarg ;;
  918. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  919. ac_prev=htmldir ;;
  920. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  921. | --ht=*)
  922. htmldir=$ac_optarg ;;
  923. -includedir | --includedir | --includedi | --included | --include \
  924. | --includ | --inclu | --incl | --inc)
  925. ac_prev=includedir ;;
  926. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  927. | --includ=* | --inclu=* | --incl=* | --inc=*)
  928. includedir=$ac_optarg ;;
  929. -infodir | --infodir | --infodi | --infod | --info | --inf)
  930. ac_prev=infodir ;;
  931. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  932. infodir=$ac_optarg ;;
  933. -libdir | --libdir | --libdi | --libd)
  934. ac_prev=libdir ;;
  935. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  936. libdir=$ac_optarg ;;
  937. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  938. | --libexe | --libex | --libe)
  939. ac_prev=libexecdir ;;
  940. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  941. | --libexe=* | --libex=* | --libe=*)
  942. libexecdir=$ac_optarg ;;
  943. -localedir | --localedir | --localedi | --localed | --locale)
  944. ac_prev=localedir ;;
  945. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  946. localedir=$ac_optarg ;;
  947. -localstatedir | --localstatedir | --localstatedi | --localstated \
  948. | --localstate | --localstat | --localsta | --localst | --locals)
  949. ac_prev=localstatedir ;;
  950. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  951. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  952. localstatedir=$ac_optarg ;;
  953. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  954. ac_prev=mandir ;;
  955. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  956. mandir=$ac_optarg ;;
  957. -nfp | --nfp | --nf)
  958. # Obsolete; use --without-fp.
  959. with_fp=no ;;
  960. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  961. | --no-cr | --no-c | -n)
  962. no_create=yes ;;
  963. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  964. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  965. no_recursion=yes ;;
  966. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  967. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  968. | --oldin | --oldi | --old | --ol | --o)
  969. ac_prev=oldincludedir ;;
  970. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  971. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  972. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  973. oldincludedir=$ac_optarg ;;
  974. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  975. ac_prev=prefix ;;
  976. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  977. prefix=$ac_optarg ;;
  978. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  979. | --program-pre | --program-pr | --program-p)
  980. ac_prev=program_prefix ;;
  981. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  982. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  983. program_prefix=$ac_optarg ;;
  984. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  985. | --program-suf | --program-su | --program-s)
  986. ac_prev=program_suffix ;;
  987. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  988. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  989. program_suffix=$ac_optarg ;;
  990. -program-transform-name | --program-transform-name \
  991. | --program-transform-nam | --program-transform-na \
  992. | --program-transform-n | --program-transform- \
  993. | --program-transform | --program-transfor \
  994. | --program-transfo | --program-transf \
  995. | --program-trans | --program-tran \
  996. | --progr-tra | --program-tr | --program-t)
  997. ac_prev=program_transform_name ;;
  998. -program-transform-name=* | --program-transform-name=* \
  999. | --program-transform-nam=* | --program-transform-na=* \
  1000. | --program-transform-n=* | --program-transform-=* \
  1001. | --program-transform=* | --program-transfor=* \
  1002. | --program-transfo=* | --program-transf=* \
  1003. | --program-trans=* | --program-tran=* \
  1004. | --progr-tra=* | --program-tr=* | --program-t=*)
  1005. program_transform_name=$ac_optarg ;;
  1006. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1007. ac_prev=pdfdir ;;
  1008. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1009. pdfdir=$ac_optarg ;;
  1010. -psdir | --psdir | --psdi | --psd | --ps)
  1011. ac_prev=psdir ;;
  1012. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1013. psdir=$ac_optarg ;;
  1014. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1015. | -silent | --silent | --silen | --sile | --sil)
  1016. silent=yes ;;
  1017. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1018. | --runstate | --runstat | --runsta | --runst | --runs \
  1019. | --run | --ru | --r)
  1020. ac_prev=runstatedir ;;
  1021. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1022. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1023. | --run=* | --ru=* | --r=*)
  1024. runstatedir=$ac_optarg ;;
  1025. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1026. ac_prev=sbindir ;;
  1027. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1028. | --sbi=* | --sb=*)
  1029. sbindir=$ac_optarg ;;
  1030. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1031. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1032. | --sharedst | --shareds | --shared | --share | --shar \
  1033. | --sha | --sh)
  1034. ac_prev=sharedstatedir ;;
  1035. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1036. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1037. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1038. | --sha=* | --sh=*)
  1039. sharedstatedir=$ac_optarg ;;
  1040. -site | --site | --sit)
  1041. ac_prev=site ;;
  1042. -site=* | --site=* | --sit=*)
  1043. site=$ac_optarg ;;
  1044. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1045. ac_prev=srcdir ;;
  1046. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1047. srcdir=$ac_optarg ;;
  1048. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1049. | --syscon | --sysco | --sysc | --sys | --sy)
  1050. ac_prev=sysconfdir ;;
  1051. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1052. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1053. sysconfdir=$ac_optarg ;;
  1054. -target | --target | --targe | --targ | --tar | --ta | --t)
  1055. ac_prev=target_alias ;;
  1056. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1057. target_alias=$ac_optarg ;;
  1058. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1059. verbose=yes ;;
  1060. -version | --version | --versio | --versi | --vers | -V)
  1061. ac_init_version=: ;;
  1062. -with-* | --with-*)
  1063. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1064. # Reject names that are not valid shell variable names.
  1065. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1066. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1067. ac_useropt_orig=$ac_useropt
  1068. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1069. case $ac_user_opts in
  1070. *"
  1071. "with_$ac_useropt"
  1072. "*) ;;
  1073. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1074. ac_unrecognized_sep=', ';;
  1075. esac
  1076. eval with_$ac_useropt=\$ac_optarg ;;
  1077. -without-* | --without-*)
  1078. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1079. # Reject names that are not valid shell variable names.
  1080. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1081. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1082. ac_useropt_orig=$ac_useropt
  1083. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1084. case $ac_user_opts in
  1085. *"
  1086. "with_$ac_useropt"
  1087. "*) ;;
  1088. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1089. ac_unrecognized_sep=', ';;
  1090. esac
  1091. eval with_$ac_useropt=no ;;
  1092. --x)
  1093. # Obsolete; use --with-x.
  1094. with_x=yes ;;
  1095. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1096. | --x-incl | --x-inc | --x-in | --x-i)
  1097. ac_prev=x_includes ;;
  1098. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1099. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1100. x_includes=$ac_optarg ;;
  1101. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1102. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1103. ac_prev=x_libraries ;;
  1104. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1105. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1106. x_libraries=$ac_optarg ;;
  1107. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1108. Try \`$0 --help' for more information"
  1109. ;;
  1110. *=*)
  1111. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1112. # Reject names that are not valid shell variable names.
  1113. case $ac_envvar in #(
  1114. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1115. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1116. esac
  1117. eval $ac_envvar=\$ac_optarg
  1118. export $ac_envvar ;;
  1119. *)
  1120. # FIXME: should be removed in autoconf 3.0.
  1121. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1122. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1123. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1124. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1125. ;;
  1126. esac
  1127. done
  1128. if test -n "$ac_prev"; then
  1129. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1130. as_fn_error $? "missing argument to $ac_option"
  1131. fi
  1132. if test -n "$ac_unrecognized_opts"; then
  1133. case $enable_option_checking in
  1134. no) ;;
  1135. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1136. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1137. esac
  1138. fi
  1139. # Check all directory arguments for consistency.
  1140. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1141. datadir sysconfdir sharedstatedir localstatedir includedir \
  1142. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1143. libdir localedir mandir runstatedir
  1144. do
  1145. eval ac_val=\$$ac_var
  1146. # Remove trailing slashes.
  1147. case $ac_val in
  1148. */ )
  1149. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1150. eval $ac_var=\$ac_val;;
  1151. esac
  1152. # Be sure to have absolute directory names.
  1153. case $ac_val in
  1154. [\\/$]* | ?:[\\/]* ) continue;;
  1155. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1156. esac
  1157. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1158. done
  1159. # There might be people who depend on the old broken behavior: `$host'
  1160. # used to hold the argument of --host etc.
  1161. # FIXME: To remove some day.
  1162. build=$build_alias
  1163. host=$host_alias
  1164. target=$target_alias
  1165. # FIXME: To remove some day.
  1166. if test "x$host_alias" != x; then
  1167. if test "x$build_alias" = x; then
  1168. cross_compiling=maybe
  1169. elif test "x$build_alias" != "x$host_alias"; then
  1170. cross_compiling=yes
  1171. fi
  1172. fi
  1173. ac_tool_prefix=
  1174. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1175. test "$silent" = yes && exec 6>/dev/null
  1176. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1177. ac_ls_di=`ls -di .` &&
  1178. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1179. as_fn_error $? "working directory cannot be determined"
  1180. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1181. as_fn_error $? "pwd does not report name of working directory"
  1182. # Find the source files, if location was not specified.
  1183. if test -z "$srcdir"; then
  1184. ac_srcdir_defaulted=yes
  1185. # Try the directory containing this script, then the parent directory.
  1186. ac_confdir=`$as_dirname -- "$as_myself" ||
  1187. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1188. X"$as_myself" : 'X\(//\)[^/]' \| \
  1189. X"$as_myself" : 'X\(//\)$' \| \
  1190. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1191. printf "%s\n" X"$as_myself" |
  1192. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1193. s//\1/
  1194. q
  1195. }
  1196. /^X\(\/\/\)[^/].*/{
  1197. s//\1/
  1198. q
  1199. }
  1200. /^X\(\/\/\)$/{
  1201. s//\1/
  1202. q
  1203. }
  1204. /^X\(\/\).*/{
  1205. s//\1/
  1206. q
  1207. }
  1208. s/.*/./; q'`
  1209. srcdir=$ac_confdir
  1210. if test ! -r "$srcdir/$ac_unique_file"; then
  1211. srcdir=..
  1212. fi
  1213. else
  1214. ac_srcdir_defaulted=no
  1215. fi
  1216. if test ! -r "$srcdir/$ac_unique_file"; then
  1217. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1218. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1219. fi
  1220. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1221. ac_abs_confdir=`(
  1222. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1223. pwd)`
  1224. # When building in place, set srcdir=.
  1225. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1226. srcdir=.
  1227. fi
  1228. # Remove unnecessary trailing slashes from srcdir.
  1229. # Double slashes in file names in object file debugging info
  1230. # mess up M-x gdb in Emacs.
  1231. case $srcdir in
  1232. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1233. esac
  1234. for ac_var in $ac_precious_vars; do
  1235. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1236. eval ac_env_${ac_var}_value=\$${ac_var}
  1237. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1238. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1239. done
  1240. #
  1241. # Report the --help message.
  1242. #
  1243. if test "$ac_init_help" = "long"; then
  1244. # Omit some internal or obsolete options to make the list less imposing.
  1245. # This message is too long to be a string in the A/UX 3.1 sh.
  1246. cat <<_ACEOF
  1247. \`configure' configures file 5.45 to adapt to many kinds of systems.
  1248. Usage: $0 [OPTION]... [VAR=VALUE]...
  1249. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1250. VAR=VALUE. See below for descriptions of some of the useful variables.
  1251. Defaults for the options are specified in brackets.
  1252. Configuration:
  1253. -h, --help display this help and exit
  1254. --help=short display options specific to this package
  1255. --help=recursive display the short help of all the included packages
  1256. -V, --version display version information and exit
  1257. -q, --quiet, --silent do not print \`checking ...' messages
  1258. --cache-file=FILE cache test results in FILE [disabled]
  1259. -C, --config-cache alias for \`--cache-file=config.cache'
  1260. -n, --no-create do not create output files
  1261. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1262. Installation directories:
  1263. --prefix=PREFIX install architecture-independent files in PREFIX
  1264. [$ac_default_prefix]
  1265. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1266. [PREFIX]
  1267. By default, \`make install' will install all the files in
  1268. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1269. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1270. for instance \`--prefix=\$HOME'.
  1271. For better control, use the options below.
  1272. Fine tuning of the installation directories:
  1273. --bindir=DIR user executables [EPREFIX/bin]
  1274. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1275. --libexecdir=DIR program executables [EPREFIX/libexec]
  1276. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1277. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1278. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1279. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1280. --libdir=DIR object code libraries [EPREFIX/lib]
  1281. --includedir=DIR C header files [PREFIX/include]
  1282. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1283. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1284. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1285. --infodir=DIR info documentation [DATAROOTDIR/info]
  1286. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1287. --mandir=DIR man documentation [DATAROOTDIR/man]
  1288. --docdir=DIR documentation root [DATAROOTDIR/doc/file]
  1289. --htmldir=DIR html documentation [DOCDIR]
  1290. --dvidir=DIR dvi documentation [DOCDIR]
  1291. --pdfdir=DIR pdf documentation [DOCDIR]
  1292. --psdir=DIR ps documentation [DOCDIR]
  1293. _ACEOF
  1294. cat <<\_ACEOF
  1295. Program names:
  1296. --program-prefix=PREFIX prepend PREFIX to installed program names
  1297. --program-suffix=SUFFIX append SUFFIX to installed program names
  1298. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1299. System types:
  1300. --build=BUILD configure for building on BUILD [guessed]
  1301. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1302. _ACEOF
  1303. fi
  1304. if test -n "$ac_init_help"; then
  1305. case $ac_init_help in
  1306. short | recursive ) echo "Configuration of file 5.45:";;
  1307. esac
  1308. cat <<\_ACEOF
  1309. Optional Features:
  1310. --disable-option-checking ignore unrecognized --enable/--with options
  1311. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1312. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1313. --enable-silent-rules less verbose build output (undo: "make V=1")
  1314. --disable-silent-rules verbose build output (undo: "make V=0")
  1315. --disable-elf disable builtin ELF support
  1316. --disable-elf-core disable ELF core file support
  1317. --disable-zlib disable zlib compression support [default=auto]
  1318. --disable-bzlib disable bz2lib compression support [default=auto]
  1319. --disable-xzlib disable liblzma/xz compression support
  1320. [default=auto]
  1321. --disable-zstdlib disable zstdlib compression support [default=auto]
  1322. --disable-lzlib disable liblz (lzip) 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. Optional Packages:
  1338. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1339. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1340. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1341. both]
  1342. --with-aix-soname=aix|svr4|both
  1343. shared library versioning (aka "SONAME") variant to
  1344. provide on AIX, [default=aix].
  1345. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1346. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1347. compiler's sysroot if not specified).
  1348. Some influential environment variables:
  1349. CC C compiler command
  1350. CFLAGS C compiler flags
  1351. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1352. nonstandard directory <lib dir>
  1353. LIBS libraries to pass to the linker, e.g. -l<library>
  1354. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1355. you have headers in a nonstandard directory <include dir>
  1356. LT_SYS_LIBRARY_PATH
  1357. User-defined run-time library search path.
  1358. Use these variables to override the choices made by `configure' or to help
  1359. it to find libraries and programs with nonstandard names/locations.
  1360. Report bugs to <christos@astron.com>.
  1361. _ACEOF
  1362. ac_status=$?
  1363. fi
  1364. if test "$ac_init_help" = "recursive"; then
  1365. # If there are subdirs, report their specific --help.
  1366. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1367. test -d "$ac_dir" ||
  1368. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1369. continue
  1370. ac_builddir=.
  1371. case "$ac_dir" in
  1372. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1373. *)
  1374. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1375. # A ".." for each directory in $ac_dir_suffix.
  1376. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1377. case $ac_top_builddir_sub in
  1378. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1379. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1380. esac ;;
  1381. esac
  1382. ac_abs_top_builddir=$ac_pwd
  1383. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1384. # for backward compatibility:
  1385. ac_top_builddir=$ac_top_build_prefix
  1386. case $srcdir in
  1387. .) # We are building in place.
  1388. ac_srcdir=.
  1389. ac_top_srcdir=$ac_top_builddir_sub
  1390. ac_abs_top_srcdir=$ac_pwd ;;
  1391. [\\/]* | ?:[\\/]* ) # Absolute name.
  1392. ac_srcdir=$srcdir$ac_dir_suffix;
  1393. ac_top_srcdir=$srcdir
  1394. ac_abs_top_srcdir=$srcdir ;;
  1395. *) # Relative name.
  1396. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1397. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1398. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1399. esac
  1400. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1401. cd "$ac_dir" || { ac_status=$?; continue; }
  1402. # Check for configure.gnu first; this name is used for a wrapper for
  1403. # Metaconfig's "Configure" on case-insensitive file systems.
  1404. if test -f "$ac_srcdir/configure.gnu"; then
  1405. echo &&
  1406. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1407. elif test -f "$ac_srcdir/configure"; then
  1408. echo &&
  1409. $SHELL "$ac_srcdir/configure" --help=recursive
  1410. else
  1411. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1412. fi || ac_status=$?
  1413. cd "$ac_pwd" || { ac_status=$?; break; }
  1414. done
  1415. fi
  1416. test -n "$ac_init_help" && exit $ac_status
  1417. if $ac_init_version; then
  1418. cat <<\_ACEOF
  1419. file configure 5.45
  1420. generated by GNU Autoconf 2.71
  1421. Copyright (C) 2021 Free Software Foundation, Inc.
  1422. This configure script is free software; the Free Software Foundation
  1423. gives unlimited permission to copy, distribute and modify it.
  1424. _ACEOF
  1425. exit
  1426. fi
  1427. ## ------------------------ ##
  1428. ## Autoconf initialization. ##
  1429. ## ------------------------ ##
  1430. # ac_fn_c_try_compile LINENO
  1431. # --------------------------
  1432. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1433. ac_fn_c_try_compile ()
  1434. {
  1435. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1436. rm -f conftest.$ac_objext conftest.beam
  1437. if { { ac_try="$ac_compile"
  1438. case "(($ac_try" in
  1439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1440. *) ac_try_echo=$ac_try;;
  1441. esac
  1442. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1443. printf "%s\n" "$ac_try_echo"; } >&5
  1444. (eval "$ac_compile") 2>conftest.err
  1445. ac_status=$?
  1446. if test -s conftest.err; then
  1447. grep -v '^ *+' conftest.err >conftest.er1
  1448. cat conftest.er1 >&5
  1449. mv -f conftest.er1 conftest.err
  1450. fi
  1451. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1452. test $ac_status = 0; } && {
  1453. test -z "$ac_c_werror_flag" ||
  1454. test ! -s conftest.err
  1455. } && test -s conftest.$ac_objext
  1456. then :
  1457. ac_retval=0
  1458. else $as_nop
  1459. printf "%s\n" "$as_me: failed program was:" >&5
  1460. sed 's/^/| /' conftest.$ac_ext >&5
  1461. ac_retval=1
  1462. fi
  1463. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1464. as_fn_set_status $ac_retval
  1465. } # ac_fn_c_try_compile
  1466. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1467. # -------------------------------------------------------
  1468. # Tests whether HEADER exists and can be compiled using the include files in
  1469. # INCLUDES, setting the cache variable VAR accordingly.
  1470. ac_fn_c_check_header_compile ()
  1471. {
  1472. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1474. printf %s "checking for $2... " >&6; }
  1475. if eval test \${$3+y}
  1476. then :
  1477. printf %s "(cached) " >&6
  1478. else $as_nop
  1479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1480. /* end confdefs.h. */
  1481. $4
  1482. #include <$2>
  1483. _ACEOF
  1484. if ac_fn_c_try_compile "$LINENO"
  1485. then :
  1486. eval "$3=yes"
  1487. else $as_nop
  1488. eval "$3=no"
  1489. fi
  1490. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1491. fi
  1492. eval ac_res=\$$3
  1493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1494. printf "%s\n" "$ac_res" >&6; }
  1495. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1496. } # ac_fn_c_check_header_compile
  1497. # ac_fn_c_try_run LINENO
  1498. # ----------------------
  1499. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  1500. # executables *can* be run.
  1501. ac_fn_c_try_run ()
  1502. {
  1503. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1504. if { { ac_try="$ac_link"
  1505. case "(($ac_try" in
  1506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1507. *) ac_try_echo=$ac_try;;
  1508. esac
  1509. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1510. printf "%s\n" "$ac_try_echo"; } >&5
  1511. (eval "$ac_link") 2>&5
  1512. ac_status=$?
  1513. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1514. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1515. { { case "(($ac_try" in
  1516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1517. *) ac_try_echo=$ac_try;;
  1518. esac
  1519. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1520. printf "%s\n" "$ac_try_echo"; } >&5
  1521. (eval "$ac_try") 2>&5
  1522. ac_status=$?
  1523. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1524. test $ac_status = 0; }; }
  1525. then :
  1526. ac_retval=0
  1527. else $as_nop
  1528. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  1529. printf "%s\n" "$as_me: failed program was:" >&5
  1530. sed 's/^/| /' conftest.$ac_ext >&5
  1531. ac_retval=$ac_status
  1532. fi
  1533. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1534. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1535. as_fn_set_status $ac_retval
  1536. } # ac_fn_c_try_run
  1537. # ac_fn_c_try_link LINENO
  1538. # -----------------------
  1539. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1540. ac_fn_c_try_link ()
  1541. {
  1542. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1543. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1544. if { { ac_try="$ac_link"
  1545. case "(($ac_try" in
  1546. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1547. *) ac_try_echo=$ac_try;;
  1548. esac
  1549. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1550. printf "%s\n" "$ac_try_echo"; } >&5
  1551. (eval "$ac_link") 2>conftest.err
  1552. ac_status=$?
  1553. if test -s conftest.err; then
  1554. grep -v '^ *+' conftest.err >conftest.er1
  1555. cat conftest.er1 >&5
  1556. mv -f conftest.er1 conftest.err
  1557. fi
  1558. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1559. test $ac_status = 0; } && {
  1560. test -z "$ac_c_werror_flag" ||
  1561. test ! -s conftest.err
  1562. } && test -s conftest$ac_exeext && {
  1563. test "$cross_compiling" = yes ||
  1564. test -x conftest$ac_exeext
  1565. }
  1566. then :
  1567. ac_retval=0
  1568. else $as_nop
  1569. printf "%s\n" "$as_me: failed program was:" >&5
  1570. sed 's/^/| /' conftest.$ac_ext >&5
  1571. ac_retval=1
  1572. fi
  1573. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1574. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1575. # interfere with the next link command; also delete a directory that is
  1576. # left behind by Apple's compiler. We do this before executing the actions.
  1577. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1578. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1579. as_fn_set_status $ac_retval
  1580. } # ac_fn_c_try_link
  1581. # ac_fn_c_check_func LINENO FUNC VAR
  1582. # ----------------------------------
  1583. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1584. ac_fn_c_check_func ()
  1585. {
  1586. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1588. printf %s "checking for $2... " >&6; }
  1589. if eval test \${$3+y}
  1590. then :
  1591. printf %s "(cached) " >&6
  1592. else $as_nop
  1593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1594. /* end confdefs.h. */
  1595. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1596. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1597. #define $2 innocuous_$2
  1598. /* System header to define __stub macros and hopefully few prototypes,
  1599. which can conflict with char $2 (); below. */
  1600. #include <limits.h>
  1601. #undef $2
  1602. /* Override any GCC internal prototype to avoid an error.
  1603. Use char because int might match the return type of a GCC
  1604. builtin and then its argument prototype would still apply. */
  1605. #ifdef __cplusplus
  1606. extern "C"
  1607. #endif
  1608. char $2 ();
  1609. /* The GNU C library defines this for functions which it implements
  1610. to always fail with ENOSYS. Some functions are actually named
  1611. something starting with __ and the normal name is an alias. */
  1612. #if defined __stub_$2 || defined __stub___$2
  1613. choke me
  1614. #endif
  1615. int
  1616. main (void)
  1617. {
  1618. return $2 ();
  1619. ;
  1620. return 0;
  1621. }
  1622. _ACEOF
  1623. if ac_fn_c_try_link "$LINENO"
  1624. then :
  1625. eval "$3=yes"
  1626. else $as_nop
  1627. eval "$3=no"
  1628. fi
  1629. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1630. conftest$ac_exeext conftest.$ac_ext
  1631. fi
  1632. eval ac_res=\$$3
  1633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1634. printf "%s\n" "$ac_res" >&6; }
  1635. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1636. } # ac_fn_c_check_func
  1637. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1638. # -------------------------------------------
  1639. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1640. # variable VAR accordingly.
  1641. ac_fn_c_check_type ()
  1642. {
  1643. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1645. printf %s "checking for $2... " >&6; }
  1646. if eval test \${$3+y}
  1647. then :
  1648. printf %s "(cached) " >&6
  1649. else $as_nop
  1650. eval "$3=no"
  1651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1652. /* end confdefs.h. */
  1653. $4
  1654. int
  1655. main (void)
  1656. {
  1657. if (sizeof ($2))
  1658. return 0;
  1659. ;
  1660. return 0;
  1661. }
  1662. _ACEOF
  1663. if ac_fn_c_try_compile "$LINENO"
  1664. then :
  1665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1666. /* end confdefs.h. */
  1667. $4
  1668. int
  1669. main (void)
  1670. {
  1671. if (sizeof (($2)))
  1672. return 0;
  1673. ;
  1674. return 0;
  1675. }
  1676. _ACEOF
  1677. if ac_fn_c_try_compile "$LINENO"
  1678. then :
  1679. else $as_nop
  1680. eval "$3=yes"
  1681. fi
  1682. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1683. fi
  1684. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1685. fi
  1686. eval ac_res=\$$3
  1687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1688. printf "%s\n" "$ac_res" >&6; }
  1689. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1690. } # ac_fn_c_check_type
  1691. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1692. # ----------------------------------------------------
  1693. # Tries to find if the field MEMBER exists in type AGGR, after including
  1694. # INCLUDES, setting cache variable VAR accordingly.
  1695. ac_fn_c_check_member ()
  1696. {
  1697. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1699. printf %s "checking for $2.$3... " >&6; }
  1700. if eval test \${$4+y}
  1701. then :
  1702. printf %s "(cached) " >&6
  1703. else $as_nop
  1704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1705. /* end confdefs.h. */
  1706. $5
  1707. int
  1708. main (void)
  1709. {
  1710. static $2 ac_aggr;
  1711. if (ac_aggr.$3)
  1712. return 0;
  1713. ;
  1714. return 0;
  1715. }
  1716. _ACEOF
  1717. if ac_fn_c_try_compile "$LINENO"
  1718. then :
  1719. eval "$4=yes"
  1720. else $as_nop
  1721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1722. /* end confdefs.h. */
  1723. $5
  1724. int
  1725. main (void)
  1726. {
  1727. static $2 ac_aggr;
  1728. if (sizeof ac_aggr.$3)
  1729. return 0;
  1730. ;
  1731. return 0;
  1732. }
  1733. _ACEOF
  1734. if ac_fn_c_try_compile "$LINENO"
  1735. then :
  1736. eval "$4=yes"
  1737. else $as_nop
  1738. eval "$4=no"
  1739. fi
  1740. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1741. fi
  1742. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1743. fi
  1744. eval ac_res=\$$4
  1745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1746. printf "%s\n" "$ac_res" >&6; }
  1747. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1748. } # ac_fn_c_check_member
  1749. # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
  1750. # ------------------------------------------------------------------
  1751. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1752. # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
  1753. ac_fn_check_decl ()
  1754. {
  1755. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1756. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1758. printf %s "checking whether $as_decl_name is declared... " >&6; }
  1759. if eval test \${$3+y}
  1760. then :
  1761. printf %s "(cached) " >&6
  1762. else $as_nop
  1763. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1764. eval ac_save_FLAGS=\$$6
  1765. as_fn_append $6 " $5"
  1766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1767. /* end confdefs.h. */
  1768. $4
  1769. int
  1770. main (void)
  1771. {
  1772. #ifndef $as_decl_name
  1773. #ifdef __cplusplus
  1774. (void) $as_decl_use;
  1775. #else
  1776. (void) $as_decl_name;
  1777. #endif
  1778. #endif
  1779. ;
  1780. return 0;
  1781. }
  1782. _ACEOF
  1783. if ac_fn_c_try_compile "$LINENO"
  1784. then :
  1785. eval "$3=yes"
  1786. else $as_nop
  1787. eval "$3=no"
  1788. fi
  1789. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1790. eval $6=\$ac_save_FLAGS
  1791. fi
  1792. eval ac_res=\$$3
  1793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1794. printf "%s\n" "$ac_res" >&6; }
  1795. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1796. } # ac_fn_check_decl
  1797. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1798. # ------------------------------------
  1799. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1800. # accordingly.
  1801. ac_fn_c_find_uintX_t ()
  1802. {
  1803. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1805. printf %s "checking for uint$2_t... " >&6; }
  1806. if eval test \${$3+y}
  1807. then :
  1808. printf %s "(cached) " >&6
  1809. else $as_nop
  1810. eval "$3=no"
  1811. # Order is important - never check a type that is potentially smaller
  1812. # than half of the expected target width.
  1813. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1814. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1816. /* end confdefs.h. */
  1817. $ac_includes_default
  1818. int
  1819. main (void)
  1820. {
  1821. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1822. test_array [0] = 0;
  1823. return test_array [0];
  1824. ;
  1825. return 0;
  1826. }
  1827. _ACEOF
  1828. if ac_fn_c_try_compile "$LINENO"
  1829. then :
  1830. case $ac_type in #(
  1831. uint$2_t) :
  1832. eval "$3=yes" ;; #(
  1833. *) :
  1834. eval "$3=\$ac_type" ;;
  1835. esac
  1836. fi
  1837. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1838. if eval test \"x\$"$3"\" = x"no"
  1839. then :
  1840. else $as_nop
  1841. break
  1842. fi
  1843. done
  1844. fi
  1845. eval ac_res=\$$3
  1846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1847. printf "%s\n" "$ac_res" >&6; }
  1848. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1849. } # ac_fn_c_find_uintX_t
  1850. # ac_fn_c_find_intX_t LINENO BITS VAR
  1851. # -----------------------------------
  1852. # Finds a signed integer type with width BITS, setting cache variable VAR
  1853. # accordingly.
  1854. ac_fn_c_find_intX_t ()
  1855. {
  1856. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1858. printf %s "checking for int$2_t... " >&6; }
  1859. if eval test \${$3+y}
  1860. then :
  1861. printf %s "(cached) " >&6
  1862. else $as_nop
  1863. eval "$3=no"
  1864. # Order is important - never check a type that is potentially smaller
  1865. # than half of the expected target width.
  1866. for ac_type in int$2_t 'int' 'long int' \
  1867. 'long long int' 'short int' 'signed char'; do
  1868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1869. /* end confdefs.h. */
  1870. $ac_includes_default
  1871. enum { N = $2 / 2 - 1 };
  1872. int
  1873. main (void)
  1874. {
  1875. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1876. test_array [0] = 0;
  1877. return test_array [0];
  1878. ;
  1879. return 0;
  1880. }
  1881. _ACEOF
  1882. if ac_fn_c_try_compile "$LINENO"
  1883. then :
  1884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1885. /* end confdefs.h. */
  1886. $ac_includes_default
  1887. enum { N = $2 / 2 - 1 };
  1888. int
  1889. main (void)
  1890. {
  1891. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1892. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1893. test_array [0] = 0;
  1894. return test_array [0];
  1895. ;
  1896. return 0;
  1897. }
  1898. _ACEOF
  1899. if ac_fn_c_try_compile "$LINENO"
  1900. then :
  1901. else $as_nop
  1902. case $ac_type in #(
  1903. int$2_t) :
  1904. eval "$3=yes" ;; #(
  1905. *) :
  1906. eval "$3=\$ac_type" ;;
  1907. esac
  1908. fi
  1909. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1910. fi
  1911. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1912. if eval test \"x\$"$3"\" = x"no"
  1913. then :
  1914. else $as_nop
  1915. break
  1916. fi
  1917. done
  1918. fi
  1919. eval ac_res=\$$3
  1920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1921. printf "%s\n" "$ac_res" >&6; }
  1922. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1923. } # ac_fn_c_find_intX_t
  1924. ac_configure_args_raw=
  1925. for ac_arg
  1926. do
  1927. case $ac_arg in
  1928. *\'*)
  1929. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1930. esac
  1931. as_fn_append ac_configure_args_raw " '$ac_arg'"
  1932. done
  1933. case $ac_configure_args_raw in
  1934. *$as_nl*)
  1935. ac_safe_unquote= ;;
  1936. *)
  1937. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  1938. ac_unsafe_a="$ac_unsafe_z#~"
  1939. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  1940. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  1941. esac
  1942. cat >config.log <<_ACEOF
  1943. This file contains any messages produced by compilers while
  1944. running configure, to aid debugging if configure makes a mistake.
  1945. It was created by file $as_me 5.45, which was
  1946. generated by GNU Autoconf 2.71. Invocation command line was
  1947. $ $0$ac_configure_args_raw
  1948. _ACEOF
  1949. exec 5>>config.log
  1950. {
  1951. cat <<_ASUNAME
  1952. ## --------- ##
  1953. ## Platform. ##
  1954. ## --------- ##
  1955. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1956. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1957. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1958. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1959. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1960. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1961. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1962. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1963. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1964. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1965. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1966. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1967. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1968. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1969. _ASUNAME
  1970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1971. for as_dir in $PATH
  1972. do
  1973. IFS=$as_save_IFS
  1974. case $as_dir in #(((
  1975. '') as_dir=./ ;;
  1976. */) ;;
  1977. *) as_dir=$as_dir/ ;;
  1978. esac
  1979. printf "%s\n" "PATH: $as_dir"
  1980. done
  1981. IFS=$as_save_IFS
  1982. } >&5
  1983. cat >&5 <<_ACEOF
  1984. ## ----------- ##
  1985. ## Core tests. ##
  1986. ## ----------- ##
  1987. _ACEOF
  1988. # Keep a trace of the command line.
  1989. # Strip out --no-create and --no-recursion so they do not pile up.
  1990. # Strip out --silent because we don't want to record it for future runs.
  1991. # Also quote any args containing shell meta-characters.
  1992. # Make two passes to allow for proper duplicate-argument suppression.
  1993. ac_configure_args=
  1994. ac_configure_args0=
  1995. ac_configure_args1=
  1996. ac_must_keep_next=false
  1997. for ac_pass in 1 2
  1998. do
  1999. for ac_arg
  2000. do
  2001. case $ac_arg in
  2002. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2003. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2004. | -silent | --silent | --silen | --sile | --sil)
  2005. continue ;;
  2006. *\'*)
  2007. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2008. esac
  2009. case $ac_pass in
  2010. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2011. 2)
  2012. as_fn_append ac_configure_args1 " '$ac_arg'"
  2013. if test $ac_must_keep_next = true; then
  2014. ac_must_keep_next=false # Got value, back to normal.
  2015. else
  2016. case $ac_arg in
  2017. *=* | --config-cache | -C | -disable-* | --disable-* \
  2018. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2019. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2020. | -with-* | --with-* | -without-* | --without-* | --x)
  2021. case "$ac_configure_args0 " in
  2022. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2023. esac
  2024. ;;
  2025. -* ) ac_must_keep_next=true ;;
  2026. esac
  2027. fi
  2028. as_fn_append ac_configure_args " '$ac_arg'"
  2029. ;;
  2030. esac
  2031. done
  2032. done
  2033. { ac_configure_args0=; unset ac_configure_args0;}
  2034. { ac_configure_args1=; unset ac_configure_args1;}
  2035. # When interrupted or exit'd, cleanup temporary files, and complete
  2036. # config.log. We remove comments because anyway the quotes in there
  2037. # would cause problems or look ugly.
  2038. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2039. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2040. trap 'exit_status=$?
  2041. # Sanitize IFS.
  2042. IFS=" "" $as_nl"
  2043. # Save into config.log some information that might help in debugging.
  2044. {
  2045. echo
  2046. printf "%s\n" "## ---------------- ##
  2047. ## Cache variables. ##
  2048. ## ---------------- ##"
  2049. echo
  2050. # The following way of writing the cache mishandles newlines in values,
  2051. (
  2052. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2053. eval ac_val=\$$ac_var
  2054. case $ac_val in #(
  2055. *${as_nl}*)
  2056. case $ac_var in #(
  2057. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2058. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2059. esac
  2060. case $ac_var in #(
  2061. _ | IFS | as_nl) ;; #(
  2062. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2063. *) { eval $ac_var=; unset $ac_var;} ;;
  2064. esac ;;
  2065. esac
  2066. done
  2067. (set) 2>&1 |
  2068. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2069. *${as_nl}ac_space=\ *)
  2070. sed -n \
  2071. "s/'\''/'\''\\\\'\'''\''/g;
  2072. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2073. ;; #(
  2074. *)
  2075. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2076. ;;
  2077. esac |
  2078. sort
  2079. )
  2080. echo
  2081. printf "%s\n" "## ----------------- ##
  2082. ## Output variables. ##
  2083. ## ----------------- ##"
  2084. echo
  2085. for ac_var in $ac_subst_vars
  2086. do
  2087. eval ac_val=\$$ac_var
  2088. case $ac_val in
  2089. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2090. esac
  2091. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2092. done | sort
  2093. echo
  2094. if test -n "$ac_subst_files"; then
  2095. printf "%s\n" "## ------------------- ##
  2096. ## File substitutions. ##
  2097. ## ------------------- ##"
  2098. echo
  2099. for ac_var in $ac_subst_files
  2100. do
  2101. eval ac_val=\$$ac_var
  2102. case $ac_val in
  2103. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2104. esac
  2105. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2106. done | sort
  2107. echo
  2108. fi
  2109. if test -s confdefs.h; then
  2110. printf "%s\n" "## ----------- ##
  2111. ## confdefs.h. ##
  2112. ## ----------- ##"
  2113. echo
  2114. cat confdefs.h
  2115. echo
  2116. fi
  2117. test "$ac_signal" != 0 &&
  2118. printf "%s\n" "$as_me: caught signal $ac_signal"
  2119. printf "%s\n" "$as_me: exit $exit_status"
  2120. } >&5
  2121. rm -f core *.core core.conftest.* &&
  2122. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2123. exit $exit_status
  2124. ' 0
  2125. for ac_signal in 1 2 13 15; do
  2126. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2127. done
  2128. ac_signal=0
  2129. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2130. rm -f -r conftest* confdefs.h
  2131. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2132. # Predefined preprocessor variables.
  2133. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2134. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2135. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2136. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2137. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2138. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2139. # Let the site file select an alternate cache file if it wants to.
  2140. # Prefer an explicitly selected file to automatically selected ones.
  2141. if test -n "$CONFIG_SITE"; then
  2142. ac_site_files="$CONFIG_SITE"
  2143. elif test "x$prefix" != xNONE; then
  2144. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2145. else
  2146. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2147. fi
  2148. for ac_site_file in $ac_site_files
  2149. do
  2150. case $ac_site_file in #(
  2151. */*) :
  2152. ;; #(
  2153. *) :
  2154. ac_site_file=./$ac_site_file ;;
  2155. esac
  2156. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2158. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2159. sed 's/^/| /' "$ac_site_file" >&5
  2160. . "$ac_site_file" \
  2161. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2162. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2163. as_fn_error $? "failed to load site script $ac_site_file
  2164. See \`config.log' for more details" "$LINENO" 5; }
  2165. fi
  2166. done
  2167. if test -r "$cache_file"; then
  2168. # Some versions of bash will fail to source /dev/null (special files
  2169. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2170. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2172. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2173. case $cache_file in
  2174. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2175. *) . "./$cache_file";;
  2176. esac
  2177. fi
  2178. else
  2179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2180. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2181. >$cache_file
  2182. fi
  2183. # Test code for whether the C compiler supports C89 (global declarations)
  2184. ac_c_conftest_c89_globals='
  2185. /* Does the compiler advertise C89 conformance?
  2186. Do not test the value of __STDC__, because some compilers set it to 0
  2187. while being otherwise adequately conformant. */
  2188. #if !defined __STDC__
  2189. # error "Compiler does not advertise C89 conformance"
  2190. #endif
  2191. #include <stddef.h>
  2192. #include <stdarg.h>
  2193. struct stat;
  2194. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2195. struct buf { int x; };
  2196. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2197. static char *e (p, i)
  2198. char **p;
  2199. int i;
  2200. {
  2201. return p[i];
  2202. }
  2203. static char *f (char * (*g) (char **, int), char **p, ...)
  2204. {
  2205. char *s;
  2206. va_list v;
  2207. va_start (v,p);
  2208. s = g (p, va_arg (v,int));
  2209. va_end (v);
  2210. return s;
  2211. }
  2212. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2213. function prototypes and stuff, but not \xHH hex character constants.
  2214. These do not provoke an error unfortunately, instead are silently treated
  2215. as an "x". The following induces an error, until -std is added to get
  2216. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2217. array size at least. It is necessary to write \x00 == 0 to get something
  2218. that is true only with -std. */
  2219. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2220. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2221. inside strings and character constants. */
  2222. #define FOO(x) '\''x'\''
  2223. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2224. int test (int i, double x);
  2225. struct s1 {int (*f) (int a);};
  2226. struct s2 {int (*f) (double a);};
  2227. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2228. int, int);'
  2229. # Test code for whether the C compiler supports C89 (body of main).
  2230. ac_c_conftest_c89_main='
  2231. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2232. '
  2233. # Test code for whether the C compiler supports C99 (global declarations)
  2234. ac_c_conftest_c99_globals='
  2235. // Does the compiler advertise C99 conformance?
  2236. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2237. # error "Compiler does not advertise C99 conformance"
  2238. #endif
  2239. #include <stdbool.h>
  2240. extern int puts (const char *);
  2241. extern int printf (const char *, ...);
  2242. extern int dprintf (int, const char *, ...);
  2243. extern void *malloc (size_t);
  2244. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2245. // dprintf is used instead of fprintf to avoid needing to declare
  2246. // FILE and stderr.
  2247. #define debug(...) dprintf (2, __VA_ARGS__)
  2248. #define showlist(...) puts (#__VA_ARGS__)
  2249. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2250. static void
  2251. test_varargs_macros (void)
  2252. {
  2253. int x = 1234;
  2254. int y = 5678;
  2255. debug ("Flag");
  2256. debug ("X = %d\n", x);
  2257. showlist (The first, second, and third items.);
  2258. report (x>y, "x is %d but y is %d", x, y);
  2259. }
  2260. // Check long long types.
  2261. #define BIG64 18446744073709551615ull
  2262. #define BIG32 4294967295ul
  2263. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2264. #if !BIG_OK
  2265. #error "your preprocessor is broken"
  2266. #endif
  2267. #if BIG_OK
  2268. #else
  2269. #error "your preprocessor is broken"
  2270. #endif
  2271. static long long int bignum = -9223372036854775807LL;
  2272. static unsigned long long int ubignum = BIG64;
  2273. struct incomplete_array
  2274. {
  2275. int datasize;
  2276. double data[];
  2277. };
  2278. struct named_init {
  2279. int number;
  2280. const wchar_t *name;
  2281. double average;
  2282. };
  2283. typedef const char *ccp;
  2284. static inline int
  2285. test_restrict (ccp restrict text)
  2286. {
  2287. // See if C++-style comments work.
  2288. // Iterate through items via the restricted pointer.
  2289. // Also check for declarations in for loops.
  2290. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2291. continue;
  2292. return 0;
  2293. }
  2294. // Check varargs and va_copy.
  2295. static bool
  2296. test_varargs (const char *format, ...)
  2297. {
  2298. va_list args;
  2299. va_start (args, format);
  2300. va_list args_copy;
  2301. va_copy (args_copy, args);
  2302. const char *str = "";
  2303. int number = 0;
  2304. float fnumber = 0;
  2305. while (*format)
  2306. {
  2307. switch (*format++)
  2308. {
  2309. case '\''s'\'': // string
  2310. str = va_arg (args_copy, const char *);
  2311. break;
  2312. case '\''d'\'': // int
  2313. number = va_arg (args_copy, int);
  2314. break;
  2315. case '\''f'\'': // float
  2316. fnumber = va_arg (args_copy, double);
  2317. break;
  2318. default:
  2319. break;
  2320. }
  2321. }
  2322. va_end (args_copy);
  2323. va_end (args);
  2324. return *str && number && fnumber;
  2325. }
  2326. '
  2327. # Test code for whether the C compiler supports C99 (body of main).
  2328. ac_c_conftest_c99_main='
  2329. // Check bool.
  2330. _Bool success = false;
  2331. success |= (argc != 0);
  2332. // Check restrict.
  2333. if (test_restrict ("String literal") == 0)
  2334. success = true;
  2335. char *restrict newvar = "Another string";
  2336. // Check varargs.
  2337. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2338. test_varargs_macros ();
  2339. // Check flexible array members.
  2340. struct incomplete_array *ia =
  2341. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2342. ia->datasize = 10;
  2343. for (int i = 0; i < ia->datasize; ++i)
  2344. ia->data[i] = i * 1.234;
  2345. // Check named initializers.
  2346. struct named_init ni = {
  2347. .number = 34,
  2348. .name = L"Test wide string",
  2349. .average = 543.34343,
  2350. };
  2351. ni.number = 58;
  2352. int dynamic_array[ni.number];
  2353. dynamic_array[0] = argv[0][0];
  2354. dynamic_array[ni.number - 1] = 543;
  2355. // work around unused variable warnings
  2356. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2357. || dynamic_array[ni.number - 1] != 543);
  2358. '
  2359. # Test code for whether the C compiler supports C11 (global declarations)
  2360. ac_c_conftest_c11_globals='
  2361. // Does the compiler advertise C11 conformance?
  2362. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2363. # error "Compiler does not advertise C11 conformance"
  2364. #endif
  2365. // Check _Alignas.
  2366. char _Alignas (double) aligned_as_double;
  2367. char _Alignas (0) no_special_alignment;
  2368. extern char aligned_as_int;
  2369. char _Alignas (0) _Alignas (int) aligned_as_int;
  2370. // Check _Alignof.
  2371. enum
  2372. {
  2373. int_alignment = _Alignof (int),
  2374. int_array_alignment = _Alignof (int[100]),
  2375. char_alignment = _Alignof (char)
  2376. };
  2377. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2378. // Check _Noreturn.
  2379. int _Noreturn does_not_return (void) { for (;;) continue; }
  2380. // Check _Static_assert.
  2381. struct test_static_assert
  2382. {
  2383. int x;
  2384. _Static_assert (sizeof (int) <= sizeof (long int),
  2385. "_Static_assert does not work in struct");
  2386. long int y;
  2387. };
  2388. // Check UTF-8 literals.
  2389. #define u8 syntax error!
  2390. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2391. // Check duplicate typedefs.
  2392. typedef long *long_ptr;
  2393. typedef long int *long_ptr;
  2394. typedef long_ptr long_ptr;
  2395. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2396. struct anonymous
  2397. {
  2398. union {
  2399. struct { int i; int j; };
  2400. struct { int k; long int l; } w;
  2401. };
  2402. int m;
  2403. } v1;
  2404. '
  2405. # Test code for whether the C compiler supports C11 (body of main).
  2406. ac_c_conftest_c11_main='
  2407. _Static_assert ((offsetof (struct anonymous, i)
  2408. == offsetof (struct anonymous, w.k)),
  2409. "Anonymous union alignment botch");
  2410. v1.i = 2;
  2411. v1.w.k = 5;
  2412. ok |= v1.i != 5;
  2413. '
  2414. # Test code for whether the C compiler supports C11 (complete).
  2415. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2416. ${ac_c_conftest_c99_globals}
  2417. ${ac_c_conftest_c11_globals}
  2418. int
  2419. main (int argc, char **argv)
  2420. {
  2421. int ok = 0;
  2422. ${ac_c_conftest_c89_main}
  2423. ${ac_c_conftest_c99_main}
  2424. ${ac_c_conftest_c11_main}
  2425. return ok;
  2426. }
  2427. "
  2428. # Test code for whether the C compiler supports C99 (complete).
  2429. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2430. ${ac_c_conftest_c99_globals}
  2431. int
  2432. main (int argc, char **argv)
  2433. {
  2434. int ok = 0;
  2435. ${ac_c_conftest_c89_main}
  2436. ${ac_c_conftest_c99_main}
  2437. return ok;
  2438. }
  2439. "
  2440. # Test code for whether the C compiler supports C89 (complete).
  2441. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2442. int
  2443. main (int argc, char **argv)
  2444. {
  2445. int ok = 0;
  2446. ${ac_c_conftest_c89_main}
  2447. return ok;
  2448. }
  2449. "
  2450. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2451. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2452. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2453. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2454. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2455. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2456. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2457. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2458. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2459. as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
  2460. as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
  2461. as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
  2462. as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
  2463. as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
  2464. as_fn_append ac_func_c_list " fork HAVE_FORK"
  2465. as_fn_append ac_func_c_list " vfork HAVE_VFORK"
  2466. # Auxiliary files required by this configure script.
  2467. ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh"
  2468. # Locations in which to look for auxiliary files.
  2469. ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
  2470. # Search for a directory containing all of the required auxiliary files,
  2471. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2472. # If we don't find one directory that contains all the files we need,
  2473. # we report the set of missing files from the *first* directory in
  2474. # $ac_aux_dir_candidates and give up.
  2475. ac_missing_aux_files=""
  2476. ac_first_candidate=:
  2477. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2479. as_found=false
  2480. for as_dir in $ac_aux_dir_candidates
  2481. do
  2482. IFS=$as_save_IFS
  2483. case $as_dir in #(((
  2484. '') as_dir=./ ;;
  2485. */) ;;
  2486. *) as_dir=$as_dir/ ;;
  2487. esac
  2488. as_found=:
  2489. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2490. ac_aux_dir_found=yes
  2491. ac_install_sh=
  2492. for ac_aux in $ac_aux_files
  2493. do
  2494. # As a special case, if "install-sh" is required, that requirement
  2495. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2496. # and $ac_install_sh is set appropriately for whichever one is found.
  2497. if test x"$ac_aux" = x"install-sh"
  2498. then
  2499. if test -f "${as_dir}install-sh"; then
  2500. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2501. ac_install_sh="${as_dir}install-sh -c"
  2502. elif test -f "${as_dir}install.sh"; then
  2503. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2504. ac_install_sh="${as_dir}install.sh -c"
  2505. elif test -f "${as_dir}shtool"; then
  2506. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2507. ac_install_sh="${as_dir}shtool install -c"
  2508. else
  2509. ac_aux_dir_found=no
  2510. if $ac_first_candidate; then
  2511. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2512. else
  2513. break
  2514. fi
  2515. fi
  2516. else
  2517. if test -f "${as_dir}${ac_aux}"; then
  2518. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2519. else
  2520. ac_aux_dir_found=no
  2521. if $ac_first_candidate; then
  2522. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2523. else
  2524. break
  2525. fi
  2526. fi
  2527. fi
  2528. done
  2529. if test "$ac_aux_dir_found" = yes; then
  2530. ac_aux_dir="$as_dir"
  2531. break
  2532. fi
  2533. ac_first_candidate=false
  2534. as_found=false
  2535. done
  2536. IFS=$as_save_IFS
  2537. if $as_found
  2538. then :
  2539. else $as_nop
  2540. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  2541. fi
  2542. # These three variables are undocumented and unsupported,
  2543. # and are intended to be withdrawn in a future Autoconf release.
  2544. # They can cause serious problems if a builder's source tree is in a directory
  2545. # whose full name contains unusual characters.
  2546. if test -f "${ac_aux_dir}config.guess"; then
  2547. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2548. fi
  2549. if test -f "${ac_aux_dir}config.sub"; then
  2550. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2551. fi
  2552. if test -f "$ac_aux_dir/configure"; then
  2553. ac_configure="$SHELL ${ac_aux_dir}configure"
  2554. fi
  2555. # Check that the precious variables saved in the cache have kept the same
  2556. # value.
  2557. ac_cache_corrupted=false
  2558. for ac_var in $ac_precious_vars; do
  2559. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2560. eval ac_new_set=\$ac_env_${ac_var}_set
  2561. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2562. eval ac_new_val=\$ac_env_${ac_var}_value
  2563. case $ac_old_set,$ac_new_set in
  2564. set,)
  2565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2566. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2567. ac_cache_corrupted=: ;;
  2568. ,set)
  2569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2570. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2571. ac_cache_corrupted=: ;;
  2572. ,);;
  2573. *)
  2574. if test "x$ac_old_val" != "x$ac_new_val"; then
  2575. # differences in whitespace do not lead to failure.
  2576. ac_old_val_w=`echo x $ac_old_val`
  2577. ac_new_val_w=`echo x $ac_new_val`
  2578. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2580. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2581. ac_cache_corrupted=:
  2582. else
  2583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2584. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2585. eval $ac_var=\$ac_old_val
  2586. fi
  2587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2588. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  2589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2590. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  2591. fi;;
  2592. esac
  2593. # Pass precious variables to config.status.
  2594. if test "$ac_new_set" = set; then
  2595. case $ac_new_val in
  2596. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2597. *) ac_arg=$ac_var=$ac_new_val ;;
  2598. esac
  2599. case " $ac_configure_args " in
  2600. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2601. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2602. esac
  2603. fi
  2604. done
  2605. if $ac_cache_corrupted; then
  2606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2607. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2609. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2610. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  2611. and start over" "$LINENO" 5
  2612. fi
  2613. ## -------------------- ##
  2614. ## Main body of script. ##
  2615. ## -------------------- ##
  2616. ac_ext=c
  2617. ac_cpp='$CPP $CPPFLAGS'
  2618. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2619. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2620. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2621. am__api_version='1.16'
  2622. # Find a good install program. We prefer a C program (faster),
  2623. # so one script is as good as another. But avoid the broken or
  2624. # incompatible versions:
  2625. # SysV /etc/install, /usr/sbin/install
  2626. # SunOS /usr/etc/install
  2627. # IRIX /sbin/install
  2628. # AIX /bin/install
  2629. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2630. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2631. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2632. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2633. # OS/2's system install, which has a completely different semantic
  2634. # ./install, which can be erroneously created by make from ./install.sh.
  2635. # Reject install programs that cannot install multiple files.
  2636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2637. printf %s "checking for a BSD-compatible install... " >&6; }
  2638. if test -z "$INSTALL"; then
  2639. if test ${ac_cv_path_install+y}
  2640. then :
  2641. printf %s "(cached) " >&6
  2642. else $as_nop
  2643. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2644. for as_dir in $PATH
  2645. do
  2646. IFS=$as_save_IFS
  2647. case $as_dir in #(((
  2648. '') as_dir=./ ;;
  2649. */) ;;
  2650. *) as_dir=$as_dir/ ;;
  2651. esac
  2652. # Account for fact that we put trailing slashes in our PATH walk.
  2653. case $as_dir in #((
  2654. ./ | /[cC]/* | \
  2655. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2656. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2657. /usr/ucb/* ) ;;
  2658. *)
  2659. # OSF1 and SCO ODT 3.0 have their own names for install.
  2660. # Don't use installbsd from OSF since it installs stuff as root
  2661. # by default.
  2662. for ac_prog in ginstall scoinst install; do
  2663. for ac_exec_ext in '' $ac_executable_extensions; do
  2664. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  2665. if test $ac_prog = install &&
  2666. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2667. # AIX install. It has an incompatible calling convention.
  2668. :
  2669. elif test $ac_prog = install &&
  2670. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2671. # program-specific install script used by HP pwplus--don't use.
  2672. :
  2673. else
  2674. rm -rf conftest.one conftest.two conftest.dir
  2675. echo one > conftest.one
  2676. echo two > conftest.two
  2677. mkdir conftest.dir
  2678. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  2679. test -s conftest.one && test -s conftest.two &&
  2680. test -s conftest.dir/conftest.one &&
  2681. test -s conftest.dir/conftest.two
  2682. then
  2683. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  2684. break 3
  2685. fi
  2686. fi
  2687. fi
  2688. done
  2689. done
  2690. ;;
  2691. esac
  2692. done
  2693. IFS=$as_save_IFS
  2694. rm -rf conftest.one conftest.two conftest.dir
  2695. fi
  2696. if test ${ac_cv_path_install+y}; then
  2697. INSTALL=$ac_cv_path_install
  2698. else
  2699. # As a last resort, use the slow shell script. Don't cache a
  2700. # value for INSTALL within a source directory, because that will
  2701. # break other packages using the cache if that directory is
  2702. # removed, or if the value is a relative name.
  2703. INSTALL=$ac_install_sh
  2704. fi
  2705. fi
  2706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2707. printf "%s\n" "$INSTALL" >&6; }
  2708. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2709. # It thinks the first close brace ends the variable substitution.
  2710. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2711. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2712. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2714. printf %s "checking whether build environment is sane... " >&6; }
  2715. # Reject unsafe characters in $srcdir or the absolute working directory
  2716. # name. Accept space and tab only in the latter.
  2717. am_lf='
  2718. '
  2719. case `pwd` in
  2720. *[\\\"\#\$\&\'\`$am_lf]*)
  2721. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2722. esac
  2723. case $srcdir in
  2724. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2725. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2726. esac
  2727. # Do 'set' in a subshell so we don't clobber the current shell's
  2728. # arguments. Must try -L first in case configure is actually a
  2729. # symlink; some systems play weird games with the mod time of symlinks
  2730. # (eg FreeBSD returns the mod time of the symlink's containing
  2731. # directory).
  2732. if (
  2733. am_has_slept=no
  2734. for am_try in 1 2; do
  2735. echo "timestamp, slept: $am_has_slept" > conftest.file
  2736. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2737. if test "$*" = "X"; then
  2738. # -L didn't work.
  2739. set X `ls -t "$srcdir/configure" conftest.file`
  2740. fi
  2741. if test "$*" != "X $srcdir/configure conftest.file" \
  2742. && test "$*" != "X conftest.file $srcdir/configure"; then
  2743. # If neither matched, then we have a broken ls. This can happen
  2744. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2745. # broken ls alias from the environment. This has actually
  2746. # happened. Such a system could not be considered "sane".
  2747. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2748. alias in your environment" "$LINENO" 5
  2749. fi
  2750. if test "$2" = conftest.file || test $am_try -eq 2; then
  2751. break
  2752. fi
  2753. # Just in case.
  2754. sleep 1
  2755. am_has_slept=yes
  2756. done
  2757. test "$2" = conftest.file
  2758. )
  2759. then
  2760. # Ok.
  2761. :
  2762. else
  2763. as_fn_error $? "newly created file is older than distributed files!
  2764. Check your system clock" "$LINENO" 5
  2765. fi
  2766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2767. printf "%s\n" "yes" >&6; }
  2768. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2769. # generated files are strictly newer.
  2770. am_sleep_pid=
  2771. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2772. ( sleep 1 ) &
  2773. am_sleep_pid=$!
  2774. fi
  2775. rm -f conftest.file
  2776. test "$program_prefix" != NONE &&
  2777. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2778. # Use a double $ so make ignores it.
  2779. test "$program_suffix" != NONE &&
  2780. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2781. # Double any \ or $.
  2782. # By default was `s,x,x', remove it if useless.
  2783. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2784. program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
  2785. # Expand $ac_aux_dir to an absolute path.
  2786. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2787. if test x"${MISSING+set}" != xset; then
  2788. MISSING="\${SHELL} '$am_aux_dir/missing'"
  2789. fi
  2790. # Use eval to expand $SHELL
  2791. if eval "$MISSING --is-lightweight"; then
  2792. am_missing_run="$MISSING "
  2793. else
  2794. am_missing_run=
  2795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2796. printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2797. fi
  2798. if test x"${install_sh+set}" != xset; then
  2799. case $am_aux_dir in
  2800. *\ * | *\ *)
  2801. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2802. *)
  2803. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2804. esac
  2805. fi
  2806. # Installed binaries are usually stripped using 'strip' when the user
  2807. # run "make install-strip". However 'strip' might not be the right
  2808. # tool to use in cross-compilation environments, therefore Automake
  2809. # will honor the 'STRIP' environment variable to overrule this program.
  2810. if test "$cross_compiling" != no; then
  2811. if test -n "$ac_tool_prefix"; then
  2812. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2813. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2815. printf %s "checking for $ac_word... " >&6; }
  2816. if test ${ac_cv_prog_STRIP+y}
  2817. then :
  2818. printf %s "(cached) " >&6
  2819. else $as_nop
  2820. if test -n "$STRIP"; then
  2821. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2822. else
  2823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2824. for as_dir in $PATH
  2825. do
  2826. IFS=$as_save_IFS
  2827. case $as_dir in #(((
  2828. '') as_dir=./ ;;
  2829. */) ;;
  2830. *) as_dir=$as_dir/ ;;
  2831. esac
  2832. for ac_exec_ext in '' $ac_executable_extensions; do
  2833. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2834. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2835. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2836. break 2
  2837. fi
  2838. done
  2839. done
  2840. IFS=$as_save_IFS
  2841. fi
  2842. fi
  2843. STRIP=$ac_cv_prog_STRIP
  2844. if test -n "$STRIP"; then
  2845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2846. printf "%s\n" "$STRIP" >&6; }
  2847. else
  2848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2849. printf "%s\n" "no" >&6; }
  2850. fi
  2851. fi
  2852. if test -z "$ac_cv_prog_STRIP"; then
  2853. ac_ct_STRIP=$STRIP
  2854. # Extract the first word of "strip", so it can be a program name with args.
  2855. set dummy strip; ac_word=$2
  2856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2857. printf %s "checking for $ac_word... " >&6; }
  2858. if test ${ac_cv_prog_ac_ct_STRIP+y}
  2859. then :
  2860. printf %s "(cached) " >&6
  2861. else $as_nop
  2862. if test -n "$ac_ct_STRIP"; then
  2863. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2864. else
  2865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2866. for as_dir in $PATH
  2867. do
  2868. IFS=$as_save_IFS
  2869. case $as_dir in #(((
  2870. '') as_dir=./ ;;
  2871. */) ;;
  2872. *) as_dir=$as_dir/ ;;
  2873. esac
  2874. for ac_exec_ext in '' $ac_executable_extensions; do
  2875. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2876. ac_cv_prog_ac_ct_STRIP="strip"
  2877. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2878. break 2
  2879. fi
  2880. done
  2881. done
  2882. IFS=$as_save_IFS
  2883. fi
  2884. fi
  2885. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2886. if test -n "$ac_ct_STRIP"; then
  2887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2888. printf "%s\n" "$ac_ct_STRIP" >&6; }
  2889. else
  2890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2891. printf "%s\n" "no" >&6; }
  2892. fi
  2893. if test "x$ac_ct_STRIP" = x; then
  2894. STRIP=":"
  2895. else
  2896. case $cross_compiling:$ac_tool_warned in
  2897. yes:)
  2898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2899. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2900. ac_tool_warned=yes ;;
  2901. esac
  2902. STRIP=$ac_ct_STRIP
  2903. fi
  2904. else
  2905. STRIP="$ac_cv_prog_STRIP"
  2906. fi
  2907. fi
  2908. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
  2910. printf %s "checking for a race-free mkdir -p... " >&6; }
  2911. if test -z "$MKDIR_P"; then
  2912. if test ${ac_cv_path_mkdir+y}
  2913. then :
  2914. printf %s "(cached) " >&6
  2915. else $as_nop
  2916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2917. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2918. do
  2919. IFS=$as_save_IFS
  2920. case $as_dir in #(((
  2921. '') as_dir=./ ;;
  2922. */) ;;
  2923. *) as_dir=$as_dir/ ;;
  2924. esac
  2925. for ac_prog in mkdir gmkdir; do
  2926. for ac_exec_ext in '' $ac_executable_extensions; do
  2927. as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
  2928. case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2929. 'mkdir ('*'coreutils) '* | \
  2930. 'BusyBox '* | \
  2931. 'mkdir (fileutils) '4.1*)
  2932. ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
  2933. break 3;;
  2934. esac
  2935. done
  2936. done
  2937. done
  2938. IFS=$as_save_IFS
  2939. fi
  2940. test -d ./--version && rmdir ./--version
  2941. if test ${ac_cv_path_mkdir+y}; then
  2942. MKDIR_P="$ac_cv_path_mkdir -p"
  2943. else
  2944. # As a last resort, use the slow shell script. Don't cache a
  2945. # value for MKDIR_P within a source directory, because that will
  2946. # break other packages using the cache if that directory is
  2947. # removed, or if the value is a relative name.
  2948. MKDIR_P="$ac_install_sh -d"
  2949. fi
  2950. fi
  2951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2952. printf "%s\n" "$MKDIR_P" >&6; }
  2953. for ac_prog in gawk mawk nawk awk
  2954. do
  2955. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2956. set dummy $ac_prog; ac_word=$2
  2957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2958. printf %s "checking for $ac_word... " >&6; }
  2959. if test ${ac_cv_prog_AWK+y}
  2960. then :
  2961. printf %s "(cached) " >&6
  2962. else $as_nop
  2963. if test -n "$AWK"; then
  2964. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2965. else
  2966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2967. for as_dir in $PATH
  2968. do
  2969. IFS=$as_save_IFS
  2970. case $as_dir in #(((
  2971. '') as_dir=./ ;;
  2972. */) ;;
  2973. *) as_dir=$as_dir/ ;;
  2974. esac
  2975. for ac_exec_ext in '' $ac_executable_extensions; do
  2976. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2977. ac_cv_prog_AWK="$ac_prog"
  2978. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2979. break 2
  2980. fi
  2981. done
  2982. done
  2983. IFS=$as_save_IFS
  2984. fi
  2985. fi
  2986. AWK=$ac_cv_prog_AWK
  2987. if test -n "$AWK"; then
  2988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2989. printf "%s\n" "$AWK" >&6; }
  2990. else
  2991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2992. printf "%s\n" "no" >&6; }
  2993. fi
  2994. test -n "$AWK" && break
  2995. done
  2996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2997. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2998. set x ${MAKE-make}
  2999. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3000. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  3001. then :
  3002. printf %s "(cached) " >&6
  3003. else $as_nop
  3004. cat >conftest.make <<\_ACEOF
  3005. SHELL = /bin/sh
  3006. all:
  3007. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3008. _ACEOF
  3009. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3010. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3011. *@@@%%%=?*=@@@%%%*)
  3012. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3013. *)
  3014. eval ac_cv_prog_make_${ac_make}_set=no;;
  3015. esac
  3016. rm -f conftest.make
  3017. fi
  3018. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3020. printf "%s\n" "yes" >&6; }
  3021. SET_MAKE=
  3022. else
  3023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3024. printf "%s\n" "no" >&6; }
  3025. SET_MAKE="MAKE=${MAKE-make}"
  3026. fi
  3027. rm -rf .tst 2>/dev/null
  3028. mkdir .tst 2>/dev/null
  3029. if test -d .tst; then
  3030. am__leading_dot=.
  3031. else
  3032. am__leading_dot=_
  3033. fi
  3034. rmdir .tst 2>/dev/null
  3035. # Check whether --enable-silent-rules was given.
  3036. if test ${enable_silent_rules+y}
  3037. then :
  3038. enableval=$enable_silent_rules;
  3039. fi
  3040. case $enable_silent_rules in # (((
  3041. yes) AM_DEFAULT_VERBOSITY=0;;
  3042. no) AM_DEFAULT_VERBOSITY=1;;
  3043. *) AM_DEFAULT_VERBOSITY=1;;
  3044. esac
  3045. am_make=${MAKE-make}
  3046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3047. printf %s "checking whether $am_make supports nested variables... " >&6; }
  3048. if test ${am_cv_make_support_nested_variables+y}
  3049. then :
  3050. printf %s "(cached) " >&6
  3051. else $as_nop
  3052. if printf "%s\n" 'TRUE=$(BAR$(V))
  3053. BAR0=false
  3054. BAR1=true
  3055. V=1
  3056. am__doit:
  3057. @$(TRUE)
  3058. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3059. am_cv_make_support_nested_variables=yes
  3060. else
  3061. am_cv_make_support_nested_variables=no
  3062. fi
  3063. fi
  3064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3065. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  3066. if test $am_cv_make_support_nested_variables = yes; then
  3067. AM_V='$(V)'
  3068. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3069. else
  3070. AM_V=$AM_DEFAULT_VERBOSITY
  3071. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3072. fi
  3073. AM_BACKSLASH='\'
  3074. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3075. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3076. # is not polluted with repeated "-I."
  3077. am__isrc=' -I$(srcdir)'
  3078. # test to see if srcdir already configured
  3079. if test -f $srcdir/config.status; then
  3080. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3081. fi
  3082. fi
  3083. # test whether we have cygpath
  3084. if test -z "$CYGPATH_W"; then
  3085. if (cygpath --version) >/dev/null 2>/dev/null; then
  3086. CYGPATH_W='cygpath -w'
  3087. else
  3088. CYGPATH_W=echo
  3089. fi
  3090. fi
  3091. # Define the identity of the package.
  3092. PACKAGE='file'
  3093. VERSION='5.45'
  3094. printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
  3095. printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
  3096. # Some tools Automake needs.
  3097. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3098. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3099. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3100. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3101. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3102. # For better backward compatibility. To be removed once Automake 1.9.x
  3103. # dies out for good. For more background, see:
  3104. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3105. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3106. mkdir_p='$(MKDIR_P)'
  3107. # We need awk for the "check" target (and possibly the TAP driver). The
  3108. # system "awk" is bad on some platforms.
  3109. # Always define AMTAR for backward compatibility. Yes, it's still used
  3110. # in the wild :-( We should find a proper way to deprecate it ...
  3111. AMTAR='$${TAR-tar}'
  3112. # We'll loop over all known methods to create a tar archive until one works.
  3113. _am_tools='gnutar pax cpio none'
  3114. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3115. # Variables for tags utilities; see am/tags.am
  3116. if test -z "$CTAGS"; then
  3117. CTAGS=ctags
  3118. fi
  3119. if test -z "$ETAGS"; then
  3120. ETAGS=etags
  3121. fi
  3122. if test -z "$CSCOPE"; then
  3123. CSCOPE=cscope
  3124. fi
  3125. # POSIX will say in a future version that running "rm -f" with no argument
  3126. # is OK; and we want to be able to make that assumption in our Makefile
  3127. # recipes. So use an aggressive probe to check that the usage we want is
  3128. # actually supported "in the wild" to an acceptable degree.
  3129. # See automake bug#10828.
  3130. # To make any issue more visible, cause the running configure to be aborted
  3131. # by default if the 'rm' program in use doesn't match our expectations; the
  3132. # user can still override this though.
  3133. if rm -f && rm -fr && rm -rf; then : OK; else
  3134. cat >&2 <<'END'
  3135. Oops!
  3136. Your 'rm' program seems unable to run without file operands specified
  3137. on the command line, even when the '-f' option is present. This is contrary
  3138. to the behaviour of most rm programs out there, and not conforming with
  3139. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3140. Please tell bug-automake@gnu.org about your system, including the value
  3141. of your $PATH and any error possibly output before this message. This
  3142. can help us improve future automake versions.
  3143. END
  3144. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3145. echo 'Configuration will proceed anyway, since you have set the' >&2
  3146. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3147. echo >&2
  3148. else
  3149. cat >&2 <<'END'
  3150. Aborting the configuration process, to ensure you take notice of the issue.
  3151. You can download and install GNU coreutils to get an 'rm' implementation
  3152. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  3153. If you want to complete the configuration process using your problematic
  3154. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3155. to "yes", and re-run configure.
  3156. END
  3157. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3158. fi
  3159. fi
  3160. # Check whether --enable-silent-rules was given.
  3161. if test ${enable_silent_rules+y}
  3162. then :
  3163. enableval=$enable_silent_rules;
  3164. fi
  3165. case $enable_silent_rules in # (((
  3166. yes) AM_DEFAULT_VERBOSITY=0;;
  3167. no) AM_DEFAULT_VERBOSITY=1;;
  3168. *) AM_DEFAULT_VERBOSITY=0;;
  3169. esac
  3170. am_make=${MAKE-make}
  3171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3172. printf %s "checking whether $am_make supports nested variables... " >&6; }
  3173. if test ${am_cv_make_support_nested_variables+y}
  3174. then :
  3175. printf %s "(cached) " >&6
  3176. else $as_nop
  3177. if printf "%s\n" 'TRUE=$(BAR$(V))
  3178. BAR0=false
  3179. BAR1=true
  3180. V=1
  3181. am__doit:
  3182. @$(TRUE)
  3183. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3184. am_cv_make_support_nested_variables=yes
  3185. else
  3186. am_cv_make_support_nested_variables=no
  3187. fi
  3188. fi
  3189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3190. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  3191. if test $am_cv_make_support_nested_variables = yes; then
  3192. AM_V='$(V)'
  3193. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3194. else
  3195. AM_V=$AM_DEFAULT_VERBOSITY
  3196. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3197. fi
  3198. AM_BACKSLASH='\'
  3199. ac_config_headers="$ac_config_headers config.h"
  3200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
  3201. printf %s "checking for builtin ELF support... " >&6; }
  3202. # Check whether --enable-elf was given.
  3203. if test ${enable_elf+y}
  3204. then :
  3205. enableval=$enable_elf; if test "${enableval}" = yes; then
  3206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3207. printf "%s\n" "yes" >&6; }
  3208. printf "%s\n" "#define BUILTIN_ELF 1" >>confdefs.h
  3209. else
  3210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3211. printf "%s\n" "no" >&6; }
  3212. fi
  3213. else $as_nop
  3214. # enable by default
  3215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3216. printf "%s\n" "yes" >&6; }
  3217. printf "%s\n" "#define BUILTIN_ELF 1" >>confdefs.h
  3218. fi
  3219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
  3220. printf %s "checking for ELF core file support... " >&6; }
  3221. # Check whether --enable-elf-core was given.
  3222. if test ${enable_elf_core+y}
  3223. then :
  3224. enableval=$enable_elf_core; if test "${enableval}" = yes; then
  3225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3226. printf "%s\n" "yes" >&6; }
  3227. printf "%s\n" "#define ELFCORE 1" >>confdefs.h
  3228. else
  3229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3230. printf "%s\n" "no" >&6; }
  3231. fi
  3232. else $as_nop
  3233. # enable by default
  3234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3235. printf "%s\n" "yes" >&6; }
  3236. printf "%s\n" "#define ELFCORE 1" >>confdefs.h
  3237. fi
  3238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
  3239. printf %s "checking for zlib support... " >&6; }
  3240. # Check whether --enable-zlib was given.
  3241. if test ${enable_zlib+y}
  3242. then :
  3243. enableval=$enable_zlib;
  3244. fi
  3245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5
  3246. printf "%s\n" "$enable_zlib" >&6; }
  3247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bzlib support" >&5
  3248. printf %s "checking for bzlib support... " >&6; }
  3249. # Check whether --enable-bzlib was given.
  3250. if test ${enable_bzlib+y}
  3251. then :
  3252. enableval=$enable_bzlib;
  3253. fi
  3254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_bzlib" >&5
  3255. printf "%s\n" "$enable_bzlib" >&6; }
  3256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xzlib support" >&5
  3257. printf %s "checking for xzlib support... " >&6; }
  3258. # Check whether --enable-xzlib was given.
  3259. if test ${enable_xzlib+y}
  3260. then :
  3261. enableval=$enable_xzlib;
  3262. fi
  3263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_xzlib" >&5
  3264. printf "%s\n" "$enable_xzlib" >&6; }
  3265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zstdlib support" >&5
  3266. printf %s "checking for zstdlib support... " >&6; }
  3267. # Check whether --enable-zstdlib was given.
  3268. if test ${enable_zstdlib+y}
  3269. then :
  3270. enableval=$enable_zstdlib;
  3271. fi
  3272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_zstdlib" >&5
  3273. printf "%s\n" "$enable_zstdlib" >&6; }
  3274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzlib support" >&5
  3275. printf %s "checking for lzlib support... " >&6; }
  3276. # Check whether --enable-lzlib was given.
  3277. if test ${enable_lzlib+y}
  3278. then :
  3279. enableval=$enable_lzlib;
  3280. fi
  3281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_lzlib" >&5
  3282. printf "%s\n" "$enable_lzlib" >&6; }
  3283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libseccomp support" >&5
  3284. printf %s "checking for libseccomp support... " >&6; }
  3285. # Check whether --enable-libseccomp was given.
  3286. if test ${enable_libseccomp+y}
  3287. then :
  3288. enableval=$enable_libseccomp;
  3289. fi
  3290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_libseccomp" >&5
  3291. printf "%s\n" "$enable_libseccomp" >&6; }
  3292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
  3293. printf %s "checking for file formats in man section 5... " >&6; }
  3294. # Check whether --enable-fsect-man5 was given.
  3295. if test ${enable_fsect_man5+y}
  3296. then :
  3297. enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
  3298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3299. printf "%s\n" "yes" >&6; }
  3300. fsect=5
  3301. else
  3302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3303. printf "%s\n" "no" >&6; }
  3304. fsect=4
  3305. fi
  3306. else $as_nop
  3307. # disable by default
  3308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3309. printf "%s\n" "no" >&6; }
  3310. fsect=4
  3311. fi
  3312. # Make sure we can run config.sub.
  3313. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3314. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3316. printf %s "checking build system type... " >&6; }
  3317. if test ${ac_cv_build+y}
  3318. then :
  3319. printf %s "(cached) " >&6
  3320. else $as_nop
  3321. ac_build_alias=$build_alias
  3322. test "x$ac_build_alias" = x &&
  3323. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3324. test "x$ac_build_alias" = x &&
  3325. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3326. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3327. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3328. fi
  3329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3330. printf "%s\n" "$ac_cv_build" >&6; }
  3331. case $ac_cv_build in
  3332. *-*-*) ;;
  3333. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3334. esac
  3335. build=$ac_cv_build
  3336. ac_save_IFS=$IFS; IFS='-'
  3337. set x $ac_cv_build
  3338. shift
  3339. build_cpu=$1
  3340. build_vendor=$2
  3341. shift; shift
  3342. # Remember, the first character of IFS is used to create $*,
  3343. # except with old shells:
  3344. build_os=$*
  3345. IFS=$ac_save_IFS
  3346. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3348. printf %s "checking host system type... " >&6; }
  3349. if test ${ac_cv_host+y}
  3350. then :
  3351. printf %s "(cached) " >&6
  3352. else $as_nop
  3353. if test "x$host_alias" = x; then
  3354. ac_cv_host=$ac_cv_build
  3355. else
  3356. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3357. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3358. fi
  3359. fi
  3360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3361. printf "%s\n" "$ac_cv_host" >&6; }
  3362. case $ac_cv_host in
  3363. *-*-*) ;;
  3364. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3365. esac
  3366. host=$ac_cv_host
  3367. ac_save_IFS=$IFS; IFS='-'
  3368. set x $ac_cv_host
  3369. shift
  3370. host_cpu=$1
  3371. host_vendor=$2
  3372. shift; shift
  3373. # Remember, the first character of IFS is used to create $*,
  3374. # except with old shells:
  3375. host_os=$*
  3376. IFS=$ac_save_IFS
  3377. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3378. case "$host_os" in
  3379. mingw32*)
  3380. MINGW=1
  3381. ;;
  3382. *)
  3383. MINGW=0
  3384. ;;
  3385. esac
  3386. if test "$MINGW" = 1; then
  3387. MINGW_TRUE=
  3388. MINGW_FALSE='#'
  3389. else
  3390. MINGW_TRUE='#'
  3391. MINGW_FALSE=
  3392. fi
  3393. pkgdatadir='$(datadir)/misc'
  3394. if test x$fsect = x5; then
  3395. FSECT5_TRUE=
  3396. FSECT5_FALSE='#'
  3397. else
  3398. FSECT5_TRUE='#'
  3399. FSECT5_FALSE=
  3400. fi
  3401. ac_ext=c
  3402. ac_cpp='$CPP $CPPFLAGS'
  3403. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3404. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3405. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3406. if test -n "$ac_tool_prefix"; then
  3407. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3408. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3410. printf %s "checking for $ac_word... " >&6; }
  3411. if test ${ac_cv_prog_CC+y}
  3412. then :
  3413. printf %s "(cached) " >&6
  3414. else $as_nop
  3415. if test -n "$CC"; then
  3416. ac_cv_prog_CC="$CC" # Let the user override the test.
  3417. else
  3418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3419. for as_dir in $PATH
  3420. do
  3421. IFS=$as_save_IFS
  3422. case $as_dir in #(((
  3423. '') as_dir=./ ;;
  3424. */) ;;
  3425. *) as_dir=$as_dir/ ;;
  3426. esac
  3427. for ac_exec_ext in '' $ac_executable_extensions; do
  3428. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3429. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3430. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3431. break 2
  3432. fi
  3433. done
  3434. done
  3435. IFS=$as_save_IFS
  3436. fi
  3437. fi
  3438. CC=$ac_cv_prog_CC
  3439. if test -n "$CC"; then
  3440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3441. printf "%s\n" "$CC" >&6; }
  3442. else
  3443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3444. printf "%s\n" "no" >&6; }
  3445. fi
  3446. fi
  3447. if test -z "$ac_cv_prog_CC"; then
  3448. ac_ct_CC=$CC
  3449. # Extract the first word of "gcc", so it can be a program name with args.
  3450. set dummy gcc; ac_word=$2
  3451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3452. printf %s "checking for $ac_word... " >&6; }
  3453. if test ${ac_cv_prog_ac_ct_CC+y}
  3454. then :
  3455. printf %s "(cached) " >&6
  3456. else $as_nop
  3457. if test -n "$ac_ct_CC"; then
  3458. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3459. else
  3460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3461. for as_dir in $PATH
  3462. do
  3463. IFS=$as_save_IFS
  3464. case $as_dir in #(((
  3465. '') as_dir=./ ;;
  3466. */) ;;
  3467. *) as_dir=$as_dir/ ;;
  3468. esac
  3469. for ac_exec_ext in '' $ac_executable_extensions; do
  3470. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3471. ac_cv_prog_ac_ct_CC="gcc"
  3472. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3473. break 2
  3474. fi
  3475. done
  3476. done
  3477. IFS=$as_save_IFS
  3478. fi
  3479. fi
  3480. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3481. if test -n "$ac_ct_CC"; then
  3482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3483. printf "%s\n" "$ac_ct_CC" >&6; }
  3484. else
  3485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3486. printf "%s\n" "no" >&6; }
  3487. fi
  3488. if test "x$ac_ct_CC" = x; then
  3489. CC=""
  3490. else
  3491. case $cross_compiling:$ac_tool_warned in
  3492. yes:)
  3493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3494. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3495. ac_tool_warned=yes ;;
  3496. esac
  3497. CC=$ac_ct_CC
  3498. fi
  3499. else
  3500. CC="$ac_cv_prog_CC"
  3501. fi
  3502. if test -z "$CC"; then
  3503. if test -n "$ac_tool_prefix"; then
  3504. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3505. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3507. printf %s "checking for $ac_word... " >&6; }
  3508. if test ${ac_cv_prog_CC+y}
  3509. then :
  3510. printf %s "(cached) " >&6
  3511. else $as_nop
  3512. if test -n "$CC"; then
  3513. ac_cv_prog_CC="$CC" # Let the user override the test.
  3514. else
  3515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3516. for as_dir in $PATH
  3517. do
  3518. IFS=$as_save_IFS
  3519. case $as_dir in #(((
  3520. '') as_dir=./ ;;
  3521. */) ;;
  3522. *) as_dir=$as_dir/ ;;
  3523. esac
  3524. for ac_exec_ext in '' $ac_executable_extensions; do
  3525. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3526. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3527. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3528. break 2
  3529. fi
  3530. done
  3531. done
  3532. IFS=$as_save_IFS
  3533. fi
  3534. fi
  3535. CC=$ac_cv_prog_CC
  3536. if test -n "$CC"; then
  3537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3538. printf "%s\n" "$CC" >&6; }
  3539. else
  3540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3541. printf "%s\n" "no" >&6; }
  3542. fi
  3543. fi
  3544. fi
  3545. if test -z "$CC"; then
  3546. # Extract the first word of "cc", so it can be a program name with args.
  3547. set dummy cc; ac_word=$2
  3548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3549. printf %s "checking for $ac_word... " >&6; }
  3550. if test ${ac_cv_prog_CC+y}
  3551. then :
  3552. printf %s "(cached) " >&6
  3553. else $as_nop
  3554. if test -n "$CC"; then
  3555. ac_cv_prog_CC="$CC" # Let the user override the test.
  3556. else
  3557. ac_prog_rejected=no
  3558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3559. for as_dir in $PATH
  3560. do
  3561. IFS=$as_save_IFS
  3562. case $as_dir in #(((
  3563. '') as_dir=./ ;;
  3564. */) ;;
  3565. *) as_dir=$as_dir/ ;;
  3566. esac
  3567. for ac_exec_ext in '' $ac_executable_extensions; do
  3568. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3569. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3570. ac_prog_rejected=yes
  3571. continue
  3572. fi
  3573. ac_cv_prog_CC="cc"
  3574. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3575. break 2
  3576. fi
  3577. done
  3578. done
  3579. IFS=$as_save_IFS
  3580. if test $ac_prog_rejected = yes; then
  3581. # We found a bogon in the path, so make sure we never use it.
  3582. set dummy $ac_cv_prog_CC
  3583. shift
  3584. if test $# != 0; then
  3585. # We chose a different compiler from the bogus one.
  3586. # However, it has the same basename, so the bogon will be chosen
  3587. # first if we set CC to just the basename; use the full file name.
  3588. shift
  3589. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3590. fi
  3591. fi
  3592. fi
  3593. fi
  3594. CC=$ac_cv_prog_CC
  3595. if test -n "$CC"; then
  3596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3597. printf "%s\n" "$CC" >&6; }
  3598. else
  3599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3600. printf "%s\n" "no" >&6; }
  3601. fi
  3602. fi
  3603. if test -z "$CC"; then
  3604. if test -n "$ac_tool_prefix"; then
  3605. for ac_prog in cl.exe
  3606. do
  3607. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3608. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3610. printf %s "checking for $ac_word... " >&6; }
  3611. if test ${ac_cv_prog_CC+y}
  3612. then :
  3613. printf %s "(cached) " >&6
  3614. else $as_nop
  3615. if test -n "$CC"; then
  3616. ac_cv_prog_CC="$CC" # Let the user override the test.
  3617. else
  3618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3619. for as_dir in $PATH
  3620. do
  3621. IFS=$as_save_IFS
  3622. case $as_dir in #(((
  3623. '') as_dir=./ ;;
  3624. */) ;;
  3625. *) as_dir=$as_dir/ ;;
  3626. esac
  3627. for ac_exec_ext in '' $ac_executable_extensions; do
  3628. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3629. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3630. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3631. break 2
  3632. fi
  3633. done
  3634. done
  3635. IFS=$as_save_IFS
  3636. fi
  3637. fi
  3638. CC=$ac_cv_prog_CC
  3639. if test -n "$CC"; then
  3640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3641. printf "%s\n" "$CC" >&6; }
  3642. else
  3643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3644. printf "%s\n" "no" >&6; }
  3645. fi
  3646. test -n "$CC" && break
  3647. done
  3648. fi
  3649. if test -z "$CC"; then
  3650. ac_ct_CC=$CC
  3651. for ac_prog in cl.exe
  3652. do
  3653. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3654. set dummy $ac_prog; ac_word=$2
  3655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3656. printf %s "checking for $ac_word... " >&6; }
  3657. if test ${ac_cv_prog_ac_ct_CC+y}
  3658. then :
  3659. printf %s "(cached) " >&6
  3660. else $as_nop
  3661. if test -n "$ac_ct_CC"; then
  3662. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3663. else
  3664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3665. for as_dir in $PATH
  3666. do
  3667. IFS=$as_save_IFS
  3668. case $as_dir in #(((
  3669. '') as_dir=./ ;;
  3670. */) ;;
  3671. *) as_dir=$as_dir/ ;;
  3672. esac
  3673. for ac_exec_ext in '' $ac_executable_extensions; do
  3674. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3675. ac_cv_prog_ac_ct_CC="$ac_prog"
  3676. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3677. break 2
  3678. fi
  3679. done
  3680. done
  3681. IFS=$as_save_IFS
  3682. fi
  3683. fi
  3684. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3685. if test -n "$ac_ct_CC"; then
  3686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3687. printf "%s\n" "$ac_ct_CC" >&6; }
  3688. else
  3689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3690. printf "%s\n" "no" >&6; }
  3691. fi
  3692. test -n "$ac_ct_CC" && break
  3693. done
  3694. if test "x$ac_ct_CC" = x; then
  3695. CC=""
  3696. else
  3697. case $cross_compiling:$ac_tool_warned in
  3698. yes:)
  3699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3700. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3701. ac_tool_warned=yes ;;
  3702. esac
  3703. CC=$ac_ct_CC
  3704. fi
  3705. fi
  3706. fi
  3707. if test -z "$CC"; then
  3708. if test -n "$ac_tool_prefix"; then
  3709. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3710. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3712. printf %s "checking for $ac_word... " >&6; }
  3713. if test ${ac_cv_prog_CC+y}
  3714. then :
  3715. printf %s "(cached) " >&6
  3716. else $as_nop
  3717. if test -n "$CC"; then
  3718. ac_cv_prog_CC="$CC" # Let the user override the test.
  3719. else
  3720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3721. for as_dir in $PATH
  3722. do
  3723. IFS=$as_save_IFS
  3724. case $as_dir in #(((
  3725. '') as_dir=./ ;;
  3726. */) ;;
  3727. *) as_dir=$as_dir/ ;;
  3728. esac
  3729. for ac_exec_ext in '' $ac_executable_extensions; do
  3730. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3731. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3732. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3733. break 2
  3734. fi
  3735. done
  3736. done
  3737. IFS=$as_save_IFS
  3738. fi
  3739. fi
  3740. CC=$ac_cv_prog_CC
  3741. if test -n "$CC"; then
  3742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3743. printf "%s\n" "$CC" >&6; }
  3744. else
  3745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3746. printf "%s\n" "no" >&6; }
  3747. fi
  3748. fi
  3749. if test -z "$ac_cv_prog_CC"; then
  3750. ac_ct_CC=$CC
  3751. # Extract the first word of "clang", so it can be a program name with args.
  3752. set dummy clang; ac_word=$2
  3753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3754. printf %s "checking for $ac_word... " >&6; }
  3755. if test ${ac_cv_prog_ac_ct_CC+y}
  3756. then :
  3757. printf %s "(cached) " >&6
  3758. else $as_nop
  3759. if test -n "$ac_ct_CC"; then
  3760. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3761. else
  3762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3763. for as_dir in $PATH
  3764. do
  3765. IFS=$as_save_IFS
  3766. case $as_dir in #(((
  3767. '') as_dir=./ ;;
  3768. */) ;;
  3769. *) as_dir=$as_dir/ ;;
  3770. esac
  3771. for ac_exec_ext in '' $ac_executable_extensions; do
  3772. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3773. ac_cv_prog_ac_ct_CC="clang"
  3774. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3775. break 2
  3776. fi
  3777. done
  3778. done
  3779. IFS=$as_save_IFS
  3780. fi
  3781. fi
  3782. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3783. if test -n "$ac_ct_CC"; then
  3784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3785. printf "%s\n" "$ac_ct_CC" >&6; }
  3786. else
  3787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3788. printf "%s\n" "no" >&6; }
  3789. fi
  3790. if test "x$ac_ct_CC" = x; then
  3791. CC=""
  3792. else
  3793. case $cross_compiling:$ac_tool_warned in
  3794. yes:)
  3795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3796. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3797. ac_tool_warned=yes ;;
  3798. esac
  3799. CC=$ac_ct_CC
  3800. fi
  3801. else
  3802. CC="$ac_cv_prog_CC"
  3803. fi
  3804. fi
  3805. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3806. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3807. as_fn_error $? "no acceptable C compiler found in \$PATH
  3808. See \`config.log' for more details" "$LINENO" 5; }
  3809. # Provide some information about the compiler.
  3810. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3811. set X $ac_compile
  3812. ac_compiler=$2
  3813. for ac_option in --version -v -V -qversion -version; do
  3814. { { ac_try="$ac_compiler $ac_option >&5"
  3815. case "(($ac_try" in
  3816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3817. *) ac_try_echo=$ac_try;;
  3818. esac
  3819. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3820. printf "%s\n" "$ac_try_echo"; } >&5
  3821. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3822. ac_status=$?
  3823. if test -s conftest.err; then
  3824. sed '10a\
  3825. ... rest of stderr output deleted ...
  3826. 10q' conftest.err >conftest.er1
  3827. cat conftest.er1 >&5
  3828. fi
  3829. rm -f conftest.er1 conftest.err
  3830. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3831. test $ac_status = 0; }
  3832. done
  3833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3834. /* end confdefs.h. */
  3835. int
  3836. main (void)
  3837. {
  3838. ;
  3839. return 0;
  3840. }
  3841. _ACEOF
  3842. ac_clean_files_save=$ac_clean_files
  3843. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3844. # Try to create an executable without -o first, disregard a.out.
  3845. # It will help us diagnose broken compilers, and finding out an intuition
  3846. # of exeext.
  3847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3848. printf %s "checking whether the C compiler works... " >&6; }
  3849. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3850. # The possible output files:
  3851. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3852. ac_rmfiles=
  3853. for ac_file in $ac_files
  3854. do
  3855. case $ac_file in
  3856. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3857. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3858. esac
  3859. done
  3860. rm -f $ac_rmfiles
  3861. if { { ac_try="$ac_link_default"
  3862. case "(($ac_try" in
  3863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3864. *) ac_try_echo=$ac_try;;
  3865. esac
  3866. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3867. printf "%s\n" "$ac_try_echo"; } >&5
  3868. (eval "$ac_link_default") 2>&5
  3869. ac_status=$?
  3870. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3871. test $ac_status = 0; }
  3872. then :
  3873. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3874. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3875. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3876. # so that the user can short-circuit this test for compilers unknown to
  3877. # Autoconf.
  3878. for ac_file in $ac_files ''
  3879. do
  3880. test -f "$ac_file" || continue
  3881. case $ac_file in
  3882. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3883. ;;
  3884. [ab].out )
  3885. # We found the default executable, but exeext='' is most
  3886. # certainly right.
  3887. break;;
  3888. *.* )
  3889. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3890. then :; else
  3891. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3892. fi
  3893. # We set ac_cv_exeext here because the later test for it is not
  3894. # safe: cross compilers may not add the suffix if given an `-o'
  3895. # argument, so we may need to know it at that point already.
  3896. # Even if this section looks crufty: it has the advantage of
  3897. # actually working.
  3898. break;;
  3899. * )
  3900. break;;
  3901. esac
  3902. done
  3903. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3904. else $as_nop
  3905. ac_file=''
  3906. fi
  3907. if test -z "$ac_file"
  3908. then :
  3909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3910. printf "%s\n" "no" >&6; }
  3911. printf "%s\n" "$as_me: failed program was:" >&5
  3912. sed 's/^/| /' conftest.$ac_ext >&5
  3913. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3914. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3915. as_fn_error 77 "C compiler cannot create executables
  3916. See \`config.log' for more details" "$LINENO" 5; }
  3917. else $as_nop
  3918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3919. printf "%s\n" "yes" >&6; }
  3920. fi
  3921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3922. printf %s "checking for C compiler default output file name... " >&6; }
  3923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3924. printf "%s\n" "$ac_file" >&6; }
  3925. ac_exeext=$ac_cv_exeext
  3926. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3927. ac_clean_files=$ac_clean_files_save
  3928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3929. printf %s "checking for suffix of executables... " >&6; }
  3930. if { { ac_try="$ac_link"
  3931. case "(($ac_try" in
  3932. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3933. *) ac_try_echo=$ac_try;;
  3934. esac
  3935. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3936. printf "%s\n" "$ac_try_echo"; } >&5
  3937. (eval "$ac_link") 2>&5
  3938. ac_status=$?
  3939. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3940. test $ac_status = 0; }
  3941. then :
  3942. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3943. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3944. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3945. # `rm'.
  3946. for ac_file in conftest.exe conftest conftest.*; do
  3947. test -f "$ac_file" || continue
  3948. case $ac_file in
  3949. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3950. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3951. break;;
  3952. * ) break;;
  3953. esac
  3954. done
  3955. else $as_nop
  3956. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3957. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3958. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3959. See \`config.log' for more details" "$LINENO" 5; }
  3960. fi
  3961. rm -f conftest conftest$ac_cv_exeext
  3962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3963. printf "%s\n" "$ac_cv_exeext" >&6; }
  3964. rm -f conftest.$ac_ext
  3965. EXEEXT=$ac_cv_exeext
  3966. ac_exeext=$EXEEXT
  3967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3968. /* end confdefs.h. */
  3969. #include <stdio.h>
  3970. int
  3971. main (void)
  3972. {
  3973. FILE *f = fopen ("conftest.out", "w");
  3974. return ferror (f) || fclose (f) != 0;
  3975. ;
  3976. return 0;
  3977. }
  3978. _ACEOF
  3979. ac_clean_files="$ac_clean_files conftest.out"
  3980. # Check that the compiler produces executables we can run. If not, either
  3981. # the compiler is broken, or we cross compile.
  3982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3983. printf %s "checking whether we are cross compiling... " >&6; }
  3984. if test "$cross_compiling" != yes; then
  3985. { { ac_try="$ac_link"
  3986. case "(($ac_try" in
  3987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3988. *) ac_try_echo=$ac_try;;
  3989. esac
  3990. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3991. printf "%s\n" "$ac_try_echo"; } >&5
  3992. (eval "$ac_link") 2>&5
  3993. ac_status=$?
  3994. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3995. test $ac_status = 0; }
  3996. if { ac_try='./conftest$ac_cv_exeext'
  3997. { { case "(($ac_try" in
  3998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3999. *) ac_try_echo=$ac_try;;
  4000. esac
  4001. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4002. printf "%s\n" "$ac_try_echo"; } >&5
  4003. (eval "$ac_try") 2>&5
  4004. ac_status=$?
  4005. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4006. test $ac_status = 0; }; }; then
  4007. cross_compiling=no
  4008. else
  4009. if test "$cross_compiling" = maybe; then
  4010. cross_compiling=yes
  4011. else
  4012. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4013. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4014. as_fn_error 77 "cannot run C compiled programs.
  4015. If you meant to cross compile, use \`--host'.
  4016. See \`config.log' for more details" "$LINENO" 5; }
  4017. fi
  4018. fi
  4019. fi
  4020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4021. printf "%s\n" "$cross_compiling" >&6; }
  4022. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4023. ac_clean_files=$ac_clean_files_save
  4024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4025. printf %s "checking for suffix of object files... " >&6; }
  4026. if test ${ac_cv_objext+y}
  4027. then :
  4028. printf %s "(cached) " >&6
  4029. else $as_nop
  4030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4031. /* end confdefs.h. */
  4032. int
  4033. main (void)
  4034. {
  4035. ;
  4036. return 0;
  4037. }
  4038. _ACEOF
  4039. rm -f conftest.o conftest.obj
  4040. if { { ac_try="$ac_compile"
  4041. case "(($ac_try" in
  4042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4043. *) ac_try_echo=$ac_try;;
  4044. esac
  4045. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4046. printf "%s\n" "$ac_try_echo"; } >&5
  4047. (eval "$ac_compile") 2>&5
  4048. ac_status=$?
  4049. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4050. test $ac_status = 0; }
  4051. then :
  4052. for ac_file in conftest.o conftest.obj conftest.*; do
  4053. test -f "$ac_file" || continue;
  4054. case $ac_file in
  4055. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4056. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4057. break;;
  4058. esac
  4059. done
  4060. else $as_nop
  4061. printf "%s\n" "$as_me: failed program was:" >&5
  4062. sed 's/^/| /' conftest.$ac_ext >&5
  4063. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4064. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4065. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4066. See \`config.log' for more details" "$LINENO" 5; }
  4067. fi
  4068. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4069. fi
  4070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4071. printf "%s\n" "$ac_cv_objext" >&6; }
  4072. OBJEXT=$ac_cv_objext
  4073. ac_objext=$OBJEXT
  4074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4075. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4076. if test ${ac_cv_c_compiler_gnu+y}
  4077. then :
  4078. printf %s "(cached) " >&6
  4079. else $as_nop
  4080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4081. /* end confdefs.h. */
  4082. int
  4083. main (void)
  4084. {
  4085. #ifndef __GNUC__
  4086. choke me
  4087. #endif
  4088. ;
  4089. return 0;
  4090. }
  4091. _ACEOF
  4092. if ac_fn_c_try_compile "$LINENO"
  4093. then :
  4094. ac_compiler_gnu=yes
  4095. else $as_nop
  4096. ac_compiler_gnu=no
  4097. fi
  4098. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4099. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4100. fi
  4101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4102. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4103. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4104. if test $ac_compiler_gnu = yes; then
  4105. GCC=yes
  4106. else
  4107. GCC=
  4108. fi
  4109. ac_test_CFLAGS=${CFLAGS+y}
  4110. ac_save_CFLAGS=$CFLAGS
  4111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4112. printf %s "checking whether $CC accepts -g... " >&6; }
  4113. if test ${ac_cv_prog_cc_g+y}
  4114. then :
  4115. printf %s "(cached) " >&6
  4116. else $as_nop
  4117. ac_save_c_werror_flag=$ac_c_werror_flag
  4118. ac_c_werror_flag=yes
  4119. ac_cv_prog_cc_g=no
  4120. CFLAGS="-g"
  4121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4122. /* end confdefs.h. */
  4123. int
  4124. main (void)
  4125. {
  4126. ;
  4127. return 0;
  4128. }
  4129. _ACEOF
  4130. if ac_fn_c_try_compile "$LINENO"
  4131. then :
  4132. ac_cv_prog_cc_g=yes
  4133. else $as_nop
  4134. CFLAGS=""
  4135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4136. /* end confdefs.h. */
  4137. int
  4138. main (void)
  4139. {
  4140. ;
  4141. return 0;
  4142. }
  4143. _ACEOF
  4144. if ac_fn_c_try_compile "$LINENO"
  4145. then :
  4146. else $as_nop
  4147. ac_c_werror_flag=$ac_save_c_werror_flag
  4148. CFLAGS="-g"
  4149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4150. /* end confdefs.h. */
  4151. int
  4152. main (void)
  4153. {
  4154. ;
  4155. return 0;
  4156. }
  4157. _ACEOF
  4158. if ac_fn_c_try_compile "$LINENO"
  4159. then :
  4160. ac_cv_prog_cc_g=yes
  4161. fi
  4162. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4163. fi
  4164. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4165. fi
  4166. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4167. ac_c_werror_flag=$ac_save_c_werror_flag
  4168. fi
  4169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4170. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4171. if test $ac_test_CFLAGS; then
  4172. CFLAGS=$ac_save_CFLAGS
  4173. elif test $ac_cv_prog_cc_g = yes; then
  4174. if test "$GCC" = yes; then
  4175. CFLAGS="-g -O2"
  4176. else
  4177. CFLAGS="-g"
  4178. fi
  4179. else
  4180. if test "$GCC" = yes; then
  4181. CFLAGS="-O2"
  4182. else
  4183. CFLAGS=
  4184. fi
  4185. fi
  4186. ac_prog_cc_stdc=no
  4187. if test x$ac_prog_cc_stdc = xno
  4188. then :
  4189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4190. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4191. if test ${ac_cv_prog_cc_c11+y}
  4192. then :
  4193. printf %s "(cached) " >&6
  4194. else $as_nop
  4195. ac_cv_prog_cc_c11=no
  4196. ac_save_CC=$CC
  4197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4198. /* end confdefs.h. */
  4199. $ac_c_conftest_c11_program
  4200. _ACEOF
  4201. for ac_arg in '' -std=gnu11
  4202. do
  4203. CC="$ac_save_CC $ac_arg"
  4204. if ac_fn_c_try_compile "$LINENO"
  4205. then :
  4206. ac_cv_prog_cc_c11=$ac_arg
  4207. fi
  4208. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4209. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4210. done
  4211. rm -f conftest.$ac_ext
  4212. CC=$ac_save_CC
  4213. fi
  4214. if test "x$ac_cv_prog_cc_c11" = xno
  4215. then :
  4216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4217. printf "%s\n" "unsupported" >&6; }
  4218. else $as_nop
  4219. if test "x$ac_cv_prog_cc_c11" = x
  4220. then :
  4221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4222. printf "%s\n" "none needed" >&6; }
  4223. else $as_nop
  4224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4225. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4226. CC="$CC $ac_cv_prog_cc_c11"
  4227. fi
  4228. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4229. ac_prog_cc_stdc=c11
  4230. fi
  4231. fi
  4232. if test x$ac_prog_cc_stdc = xno
  4233. then :
  4234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4235. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4236. if test ${ac_cv_prog_cc_c99+y}
  4237. then :
  4238. printf %s "(cached) " >&6
  4239. else $as_nop
  4240. ac_cv_prog_cc_c99=no
  4241. ac_save_CC=$CC
  4242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4243. /* end confdefs.h. */
  4244. $ac_c_conftest_c99_program
  4245. _ACEOF
  4246. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4247. do
  4248. CC="$ac_save_CC $ac_arg"
  4249. if ac_fn_c_try_compile "$LINENO"
  4250. then :
  4251. ac_cv_prog_cc_c99=$ac_arg
  4252. fi
  4253. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4254. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4255. done
  4256. rm -f conftest.$ac_ext
  4257. CC=$ac_save_CC
  4258. fi
  4259. if test "x$ac_cv_prog_cc_c99" = xno
  4260. then :
  4261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4262. printf "%s\n" "unsupported" >&6; }
  4263. else $as_nop
  4264. if test "x$ac_cv_prog_cc_c99" = x
  4265. then :
  4266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4267. printf "%s\n" "none needed" >&6; }
  4268. else $as_nop
  4269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4270. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4271. CC="$CC $ac_cv_prog_cc_c99"
  4272. fi
  4273. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4274. ac_prog_cc_stdc=c99
  4275. fi
  4276. fi
  4277. if test x$ac_prog_cc_stdc = xno
  4278. then :
  4279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4280. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4281. if test ${ac_cv_prog_cc_c89+y}
  4282. then :
  4283. printf %s "(cached) " >&6
  4284. else $as_nop
  4285. ac_cv_prog_cc_c89=no
  4286. ac_save_CC=$CC
  4287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4288. /* end confdefs.h. */
  4289. $ac_c_conftest_c89_program
  4290. _ACEOF
  4291. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4292. do
  4293. CC="$ac_save_CC $ac_arg"
  4294. if ac_fn_c_try_compile "$LINENO"
  4295. then :
  4296. ac_cv_prog_cc_c89=$ac_arg
  4297. fi
  4298. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4299. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4300. done
  4301. rm -f conftest.$ac_ext
  4302. CC=$ac_save_CC
  4303. fi
  4304. if test "x$ac_cv_prog_cc_c89" = xno
  4305. then :
  4306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4307. printf "%s\n" "unsupported" >&6; }
  4308. else $as_nop
  4309. if test "x$ac_cv_prog_cc_c89" = x
  4310. then :
  4311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4312. printf "%s\n" "none needed" >&6; }
  4313. else $as_nop
  4314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4315. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4316. CC="$CC $ac_cv_prog_cc_c89"
  4317. fi
  4318. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4319. ac_prog_cc_stdc=c89
  4320. fi
  4321. fi
  4322. ac_ext=c
  4323. ac_cpp='$CPP $CPPFLAGS'
  4324. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4325. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4326. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4327. ac_ext=c
  4328. ac_cpp='$CPP $CPPFLAGS'
  4329. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4330. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4331. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4333. printf %s "checking whether $CC understands -c and -o together... " >&6; }
  4334. if test ${am_cv_prog_cc_c_o+y}
  4335. then :
  4336. printf %s "(cached) " >&6
  4337. else $as_nop
  4338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4339. /* end confdefs.h. */
  4340. int
  4341. main (void)
  4342. {
  4343. ;
  4344. return 0;
  4345. }
  4346. _ACEOF
  4347. # Make sure it works both with $CC and with simple cc.
  4348. # Following AC_PROG_CC_C_O, we do the test twice because some
  4349. # compilers refuse to overwrite an existing .o file with -o,
  4350. # though they will create one.
  4351. am_cv_prog_cc_c_o=yes
  4352. for am_i in 1 2; do
  4353. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4354. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4355. ac_status=$?
  4356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4357. (exit $ac_status); } \
  4358. && test -f conftest2.$ac_objext; then
  4359. : OK
  4360. else
  4361. am_cv_prog_cc_c_o=no
  4362. break
  4363. fi
  4364. done
  4365. rm -f core conftest*
  4366. unset am_i
  4367. fi
  4368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4369. printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
  4370. if test "$am_cv_prog_cc_c_o" != yes; then
  4371. # Losing compiler, so override with the script.
  4372. # FIXME: It is wrong to rewrite CC.
  4373. # But if we don't then we get into trouble of one sort or another.
  4374. # A longer-term fix would be to have automake use am__CC in this case,
  4375. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4376. CC="$am_aux_dir/compile $CC"
  4377. fi
  4378. ac_ext=c
  4379. ac_cpp='$CPP $CPPFLAGS'
  4380. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4381. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4382. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4383. DEPDIR="${am__leading_dot}deps"
  4384. ac_config_commands="$ac_config_commands depfiles"
  4385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  4386. printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
  4387. cat > confinc.mk << 'END'
  4388. am__doit:
  4389. @echo this is the am__doit target >confinc.out
  4390. .PHONY: am__doit
  4391. END
  4392. am__include="#"
  4393. am__quote=
  4394. # BSD make does it like this.
  4395. echo '.include "confinc.mk" # ignored' > confmf.BSD
  4396. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  4397. echo 'include confinc.mk # ignored' > confmf.GNU
  4398. _am_result=no
  4399. for s in GNU BSD; do
  4400. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  4401. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  4402. ac_status=$?
  4403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4404. (exit $ac_status); }
  4405. case $?:`cat confinc.out 2>/dev/null` in #(
  4406. '0:this is the am__doit target') :
  4407. case $s in #(
  4408. BSD) :
  4409. am__include='.include' am__quote='"' ;; #(
  4410. *) :
  4411. am__include='include' am__quote='' ;;
  4412. esac ;; #(
  4413. *) :
  4414. ;;
  4415. esac
  4416. if test "$am__include" != "#"; then
  4417. _am_result="yes ($s style)"
  4418. break
  4419. fi
  4420. done
  4421. rm -f confinc.* confmf.*
  4422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  4423. printf "%s\n" "${_am_result}" >&6; }
  4424. # Check whether --enable-dependency-tracking was given.
  4425. if test ${enable_dependency_tracking+y}
  4426. then :
  4427. enableval=$enable_dependency_tracking;
  4428. fi
  4429. if test "x$enable_dependency_tracking" != xno; then
  4430. am_depcomp="$ac_aux_dir/depcomp"
  4431. AMDEPBACKSLASH='\'
  4432. am__nodep='_no'
  4433. fi
  4434. if test "x$enable_dependency_tracking" != xno; then
  4435. AMDEP_TRUE=
  4436. AMDEP_FALSE='#'
  4437. else
  4438. AMDEP_TRUE='#'
  4439. AMDEP_FALSE=
  4440. fi
  4441. depcc="$CC" am_compiler_list=
  4442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4443. printf %s "checking dependency style of $depcc... " >&6; }
  4444. if test ${am_cv_CC_dependencies_compiler_type+y}
  4445. then :
  4446. printf %s "(cached) " >&6
  4447. else $as_nop
  4448. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4449. # We make a subdir and do the tests there. Otherwise we can end up
  4450. # making bogus files that we don't know about and never remove. For
  4451. # instance it was reported that on HP-UX the gcc test will end up
  4452. # making a dummy file named 'D' -- because '-MD' means "put the output
  4453. # in D".
  4454. rm -rf conftest.dir
  4455. mkdir conftest.dir
  4456. # Copy depcomp to subdir because otherwise we won't find it if we're
  4457. # using a relative directory.
  4458. cp "$am_depcomp" conftest.dir
  4459. cd conftest.dir
  4460. # We will build objects and dependencies in a subdirectory because
  4461. # it helps to detect inapplicable dependency modes. For instance
  4462. # both Tru64's cc and ICC support -MD to output dependencies as a
  4463. # side effect of compilation, but ICC will put the dependencies in
  4464. # the current directory while Tru64 will put them in the object
  4465. # directory.
  4466. mkdir sub
  4467. am_cv_CC_dependencies_compiler_type=none
  4468. if test "$am_compiler_list" = ""; then
  4469. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4470. fi
  4471. am__universal=false
  4472. case " $depcc " in #(
  4473. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4474. esac
  4475. for depmode in $am_compiler_list; do
  4476. # Setup a source with many dependencies, because some compilers
  4477. # like to wrap large dependency lists on column 80 (with \), and
  4478. # we should not choose a depcomp mode which is confused by this.
  4479. #
  4480. # We need to recreate these files for each test, as the compiler may
  4481. # overwrite some of them when testing with obscure command lines.
  4482. # This happens at least with the AIX C compiler.
  4483. : > sub/conftest.c
  4484. for i in 1 2 3 4 5 6; do
  4485. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4486. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4487. # Solaris 10 /bin/sh.
  4488. echo '/* dummy */' > sub/conftst$i.h
  4489. done
  4490. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4491. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4492. # mode. It turns out that the SunPro C++ compiler does not properly
  4493. # handle '-M -o', and we need to detect this. Also, some Intel
  4494. # versions had trouble with output in subdirs.
  4495. am__obj=sub/conftest.${OBJEXT-o}
  4496. am__minus_obj="-o $am__obj"
  4497. case $depmode in
  4498. gcc)
  4499. # This depmode causes a compiler race in universal mode.
  4500. test "$am__universal" = false || continue
  4501. ;;
  4502. nosideeffect)
  4503. # After this tag, mechanisms are not by side-effect, so they'll
  4504. # only be used when explicitly requested.
  4505. if test "x$enable_dependency_tracking" = xyes; then
  4506. continue
  4507. else
  4508. break
  4509. fi
  4510. ;;
  4511. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4512. # This compiler won't grok '-c -o', but also, the minuso test has
  4513. # not run yet. These depmodes are late enough in the game, and
  4514. # so weak that their functioning should not be impacted.
  4515. am__obj=conftest.${OBJEXT-o}
  4516. am__minus_obj=
  4517. ;;
  4518. none) break ;;
  4519. esac
  4520. if depmode=$depmode \
  4521. source=sub/conftest.c object=$am__obj \
  4522. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4523. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4524. >/dev/null 2>conftest.err &&
  4525. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4526. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4527. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4528. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4529. # icc doesn't choke on unknown options, it will just issue warnings
  4530. # or remarks (even with -Werror). So we grep stderr for any message
  4531. # that says an option was ignored or not supported.
  4532. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4533. # icc: Command line warning: ignoring option '-M'; no argument required
  4534. # The diagnosis changed in icc 8.0:
  4535. # icc: Command line remark: option '-MP' not supported
  4536. if (grep 'ignoring option' conftest.err ||
  4537. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4538. am_cv_CC_dependencies_compiler_type=$depmode
  4539. break
  4540. fi
  4541. fi
  4542. done
  4543. cd ..
  4544. rm -rf conftest.dir
  4545. else
  4546. am_cv_CC_dependencies_compiler_type=none
  4547. fi
  4548. fi
  4549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4550. printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
  4551. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4552. if
  4553. test "x$enable_dependency_tracking" != xno \
  4554. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4555. am__fastdepCC_TRUE=
  4556. am__fastdepCC_FALSE='#'
  4557. else
  4558. am__fastdepCC_TRUE='#'
  4559. am__fastdepCC_FALSE=
  4560. fi
  4561. ac_header= ac_cache=
  4562. for ac_item in $ac_header_c_list
  4563. do
  4564. if test $ac_cache; then
  4565. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  4566. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  4567. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  4568. fi
  4569. ac_header= ac_cache=
  4570. elif test $ac_header; then
  4571. ac_cache=$ac_item
  4572. else
  4573. ac_header=$ac_item
  4574. fi
  4575. done
  4576. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  4577. then :
  4578. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  4579. fi
  4580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4581. printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4582. if test ${ac_cv_safe_to_define___extensions__+y}
  4583. then :
  4584. printf %s "(cached) " >&6
  4585. else $as_nop
  4586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4587. /* end confdefs.h. */
  4588. # define __EXTENSIONS__ 1
  4589. $ac_includes_default
  4590. int
  4591. main (void)
  4592. {
  4593. ;
  4594. return 0;
  4595. }
  4596. _ACEOF
  4597. if ac_fn_c_try_compile "$LINENO"
  4598. then :
  4599. ac_cv_safe_to_define___extensions__=yes
  4600. else $as_nop
  4601. ac_cv_safe_to_define___extensions__=no
  4602. fi
  4603. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4604. fi
  4605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4606. printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
  4607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
  4608. printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
  4609. if test ${ac_cv_should_define__xopen_source+y}
  4610. then :
  4611. printf %s "(cached) " >&6
  4612. else $as_nop
  4613. ac_cv_should_define__xopen_source=no
  4614. if test $ac_cv_header_wchar_h = yes
  4615. then :
  4616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4617. /* end confdefs.h. */
  4618. #include <wchar.h>
  4619. mbstate_t x;
  4620. int
  4621. main (void)
  4622. {
  4623. ;
  4624. return 0;
  4625. }
  4626. _ACEOF
  4627. if ac_fn_c_try_compile "$LINENO"
  4628. then :
  4629. else $as_nop
  4630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4631. /* end confdefs.h. */
  4632. #define _XOPEN_SOURCE 500
  4633. #include <wchar.h>
  4634. mbstate_t x;
  4635. int
  4636. main (void)
  4637. {
  4638. ;
  4639. return 0;
  4640. }
  4641. _ACEOF
  4642. if ac_fn_c_try_compile "$LINENO"
  4643. then :
  4644. ac_cv_should_define__xopen_source=yes
  4645. fi
  4646. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4647. fi
  4648. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4649. fi
  4650. fi
  4651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
  4652. printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
  4653. printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
  4654. printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
  4655. printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
  4656. printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
  4657. printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
  4658. printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
  4659. printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4660. printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
  4661. printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
  4662. printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
  4663. printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
  4664. printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
  4665. printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
  4666. printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
  4667. printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
  4668. if test $ac_cv_header_minix_config_h = yes
  4669. then :
  4670. MINIX=yes
  4671. printf "%s\n" "#define _MINIX 1" >>confdefs.h
  4672. printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
  4673. printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4674. else $as_nop
  4675. MINIX=
  4676. fi
  4677. if test $ac_cv_safe_to_define___extensions__ = yes
  4678. then :
  4679. printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
  4680. fi
  4681. if test $ac_cv_should_define__xopen_source = yes
  4682. then :
  4683. printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
  4684. fi
  4685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4686. printf %s "checking whether byte ordering is bigendian... " >&6; }
  4687. if test ${ac_cv_c_bigendian+y}
  4688. then :
  4689. printf %s "(cached) " >&6
  4690. else $as_nop
  4691. ac_cv_c_bigendian=unknown
  4692. # See if we're dealing with a universal compiler.
  4693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4694. /* end confdefs.h. */
  4695. #ifndef __APPLE_CC__
  4696. not a universal capable compiler
  4697. #endif
  4698. typedef int dummy;
  4699. _ACEOF
  4700. if ac_fn_c_try_compile "$LINENO"
  4701. then :
  4702. # Check for potential -arch flags. It is not universal unless
  4703. # there are at least two -arch flags with different values.
  4704. ac_arch=
  4705. ac_prev=
  4706. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4707. if test -n "$ac_prev"; then
  4708. case $ac_word in
  4709. i?86 | x86_64 | ppc | ppc64)
  4710. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4711. ac_arch=$ac_word
  4712. else
  4713. ac_cv_c_bigendian=universal
  4714. break
  4715. fi
  4716. ;;
  4717. esac
  4718. ac_prev=
  4719. elif test "x$ac_word" = "x-arch"; then
  4720. ac_prev=arch
  4721. fi
  4722. done
  4723. fi
  4724. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4725. if test $ac_cv_c_bigendian = unknown; then
  4726. # See if sys/param.h defines the BYTE_ORDER macro.
  4727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4728. /* end confdefs.h. */
  4729. #include <sys/types.h>
  4730. #include <sys/param.h>
  4731. int
  4732. main (void)
  4733. {
  4734. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4735. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4736. && LITTLE_ENDIAN)
  4737. bogus endian macros
  4738. #endif
  4739. ;
  4740. return 0;
  4741. }
  4742. _ACEOF
  4743. if ac_fn_c_try_compile "$LINENO"
  4744. then :
  4745. # It does; now see whether it defined to BIG_ENDIAN or not.
  4746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4747. /* end confdefs.h. */
  4748. #include <sys/types.h>
  4749. #include <sys/param.h>
  4750. int
  4751. main (void)
  4752. {
  4753. #if BYTE_ORDER != BIG_ENDIAN
  4754. not big endian
  4755. #endif
  4756. ;
  4757. return 0;
  4758. }
  4759. _ACEOF
  4760. if ac_fn_c_try_compile "$LINENO"
  4761. then :
  4762. ac_cv_c_bigendian=yes
  4763. else $as_nop
  4764. ac_cv_c_bigendian=no
  4765. fi
  4766. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4767. fi
  4768. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4769. fi
  4770. if test $ac_cv_c_bigendian = unknown; then
  4771. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4773. /* end confdefs.h. */
  4774. #include <limits.h>
  4775. int
  4776. main (void)
  4777. {
  4778. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4779. bogus endian macros
  4780. #endif
  4781. ;
  4782. return 0;
  4783. }
  4784. _ACEOF
  4785. if ac_fn_c_try_compile "$LINENO"
  4786. then :
  4787. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4789. /* end confdefs.h. */
  4790. #include <limits.h>
  4791. int
  4792. main (void)
  4793. {
  4794. #ifndef _BIG_ENDIAN
  4795. not big endian
  4796. #endif
  4797. ;
  4798. return 0;
  4799. }
  4800. _ACEOF
  4801. if ac_fn_c_try_compile "$LINENO"
  4802. then :
  4803. ac_cv_c_bigendian=yes
  4804. else $as_nop
  4805. ac_cv_c_bigendian=no
  4806. fi
  4807. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4808. fi
  4809. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4810. fi
  4811. if test $ac_cv_c_bigendian = unknown; then
  4812. # Compile a test program.
  4813. if test "$cross_compiling" = yes
  4814. then :
  4815. # Try to guess by grepping values from an object file.
  4816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4817. /* end confdefs.h. */
  4818. unsigned short int ascii_mm[] =
  4819. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4820. unsigned short int ascii_ii[] =
  4821. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4822. int use_ascii (int i) {
  4823. return ascii_mm[i] + ascii_ii[i];
  4824. }
  4825. unsigned short int ebcdic_ii[] =
  4826. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4827. unsigned short int ebcdic_mm[] =
  4828. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4829. int use_ebcdic (int i) {
  4830. return ebcdic_mm[i] + ebcdic_ii[i];
  4831. }
  4832. extern int foo;
  4833. int
  4834. main (void)
  4835. {
  4836. return use_ascii (foo) == use_ebcdic (foo);
  4837. ;
  4838. return 0;
  4839. }
  4840. _ACEOF
  4841. if ac_fn_c_try_compile "$LINENO"
  4842. then :
  4843. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4844. ac_cv_c_bigendian=yes
  4845. fi
  4846. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4847. if test "$ac_cv_c_bigendian" = unknown; then
  4848. ac_cv_c_bigendian=no
  4849. else
  4850. # finding both strings is unlikely to happen, but who knows?
  4851. ac_cv_c_bigendian=unknown
  4852. fi
  4853. fi
  4854. fi
  4855. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4856. else $as_nop
  4857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4858. /* end confdefs.h. */
  4859. $ac_includes_default
  4860. int
  4861. main (void)
  4862. {
  4863. /* Are we little or big endian? From Harbison&Steele. */
  4864. union
  4865. {
  4866. long int l;
  4867. char c[sizeof (long int)];
  4868. } u;
  4869. u.l = 1;
  4870. return u.c[sizeof (long int) - 1] == 1;
  4871. ;
  4872. return 0;
  4873. }
  4874. _ACEOF
  4875. if ac_fn_c_try_run "$LINENO"
  4876. then :
  4877. ac_cv_c_bigendian=no
  4878. else $as_nop
  4879. ac_cv_c_bigendian=yes
  4880. fi
  4881. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4882. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4883. fi
  4884. fi
  4885. fi
  4886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4887. printf "%s\n" "$ac_cv_c_bigendian" >&6; }
  4888. case $ac_cv_c_bigendian in #(
  4889. yes)
  4890. printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4891. ;; #(
  4892. no)
  4893. ;; #(
  4894. universal)
  4895. printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4896. ;; #(
  4897. *)
  4898. as_fn_error $? "unknown endianness
  4899. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4900. esac
  4901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4902. printf %s "checking whether ln -s works... " >&6; }
  4903. LN_S=$as_ln_s
  4904. if test "$LN_S" = "ln -s"; then
  4905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4906. printf "%s\n" "yes" >&6; }
  4907. else
  4908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4909. printf "%s\n" "no, using $LN_S" >&6; }
  4910. fi
  4911. case `pwd` in
  4912. *\ * | *\ *)
  4913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4914. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4915. esac
  4916. macro_version='2.4.6'
  4917. macro_revision='2.4.6'
  4918. ltmain=$ac_aux_dir/ltmain.sh
  4919. # Backslashify metacharacters that are still active within
  4920. # double-quoted strings.
  4921. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4922. # Same as above, but do not quote variable references.
  4923. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4924. # Sed substitution to delay expansion of an escaped shell variable in a
  4925. # double_quote_subst'ed string.
  4926. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4927. # Sed substitution to delay expansion of an escaped single quote.
  4928. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4929. # Sed substitution to avoid accidental globbing in evaled expressions
  4930. no_glob_subst='s/\*/\\\*/g'
  4931. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4932. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4933. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4935. printf %s "checking how to print strings... " >&6; }
  4936. # Test print first, because it will be a builtin if present.
  4937. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4938. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4939. ECHO='print -r --'
  4940. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4941. ECHO='printf %s\n'
  4942. else
  4943. # Use this function as a fallback that always works.
  4944. func_fallback_echo ()
  4945. {
  4946. eval 'cat <<_LTECHO_EOF
  4947. $1
  4948. _LTECHO_EOF'
  4949. }
  4950. ECHO='func_fallback_echo'
  4951. fi
  4952. # func_echo_all arg...
  4953. # Invoke $ECHO with all args, space-separated.
  4954. func_echo_all ()
  4955. {
  4956. $ECHO ""
  4957. }
  4958. case $ECHO in
  4959. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4960. printf "%s\n" "printf" >&6; } ;;
  4961. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4962. printf "%s\n" "print -r" >&6; } ;;
  4963. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4964. printf "%s\n" "cat" >&6; } ;;
  4965. esac
  4966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4967. printf %s "checking for a sed that does not truncate output... " >&6; }
  4968. if test ${ac_cv_path_SED+y}
  4969. then :
  4970. printf %s "(cached) " >&6
  4971. else $as_nop
  4972. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4973. for ac_i in 1 2 3 4 5 6 7; do
  4974. ac_script="$ac_script$as_nl$ac_script"
  4975. done
  4976. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4977. { ac_script=; unset ac_script;}
  4978. if test -z "$SED"; then
  4979. ac_path_SED_found=false
  4980. # Loop through the user's path and test for each of PROGNAME-LIST
  4981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4982. for as_dir in $PATH
  4983. do
  4984. IFS=$as_save_IFS
  4985. case $as_dir in #(((
  4986. '') as_dir=./ ;;
  4987. */) ;;
  4988. *) as_dir=$as_dir/ ;;
  4989. esac
  4990. for ac_prog in sed gsed
  4991. do
  4992. for ac_exec_ext in '' $ac_executable_extensions; do
  4993. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4994. as_fn_executable_p "$ac_path_SED" || continue
  4995. # Check for GNU ac_path_SED and select it if it is found.
  4996. # Check for GNU $ac_path_SED
  4997. case `"$ac_path_SED" --version 2>&1` in
  4998. *GNU*)
  4999. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5000. *)
  5001. ac_count=0
  5002. printf %s 0123456789 >"conftest.in"
  5003. while :
  5004. do
  5005. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5006. mv "conftest.tmp" "conftest.in"
  5007. cp "conftest.in" "conftest.nl"
  5008. printf "%s\n" '' >> "conftest.nl"
  5009. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5010. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5011. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5012. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5013. # Best one so far, save it but keep looking for a better one
  5014. ac_cv_path_SED="$ac_path_SED"
  5015. ac_path_SED_max=$ac_count
  5016. fi
  5017. # 10*(2^10) chars as input seems more than enough
  5018. test $ac_count -gt 10 && break
  5019. done
  5020. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5021. esac
  5022. $ac_path_SED_found && break 3
  5023. done
  5024. done
  5025. done
  5026. IFS=$as_save_IFS
  5027. if test -z "$ac_cv_path_SED"; then
  5028. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5029. fi
  5030. else
  5031. ac_cv_path_SED=$SED
  5032. fi
  5033. fi
  5034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5035. printf "%s\n" "$ac_cv_path_SED" >&6; }
  5036. SED="$ac_cv_path_SED"
  5037. rm -f conftest.sed
  5038. test -z "$SED" && SED=sed
  5039. Xsed="$SED -e 1s/^X//"
  5040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5041. printf %s "checking for grep that handles long lines and -e... " >&6; }
  5042. if test ${ac_cv_path_GREP+y}
  5043. then :
  5044. printf %s "(cached) " >&6
  5045. else $as_nop
  5046. if test -z "$GREP"; then
  5047. ac_path_GREP_found=false
  5048. # Loop through the user's path and test for each of PROGNAME-LIST
  5049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5050. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5051. do
  5052. IFS=$as_save_IFS
  5053. case $as_dir in #(((
  5054. '') as_dir=./ ;;
  5055. */) ;;
  5056. *) as_dir=$as_dir/ ;;
  5057. esac
  5058. for ac_prog in grep ggrep
  5059. do
  5060. for ac_exec_ext in '' $ac_executable_extensions; do
  5061. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  5062. as_fn_executable_p "$ac_path_GREP" || continue
  5063. # Check for GNU ac_path_GREP and select it if it is found.
  5064. # Check for GNU $ac_path_GREP
  5065. case `"$ac_path_GREP" --version 2>&1` in
  5066. *GNU*)
  5067. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5068. *)
  5069. ac_count=0
  5070. printf %s 0123456789 >"conftest.in"
  5071. while :
  5072. do
  5073. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5074. mv "conftest.tmp" "conftest.in"
  5075. cp "conftest.in" "conftest.nl"
  5076. printf "%s\n" 'GREP' >> "conftest.nl"
  5077. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5078. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5079. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5080. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5081. # Best one so far, save it but keep looking for a better one
  5082. ac_cv_path_GREP="$ac_path_GREP"
  5083. ac_path_GREP_max=$ac_count
  5084. fi
  5085. # 10*(2^10) chars as input seems more than enough
  5086. test $ac_count -gt 10 && break
  5087. done
  5088. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5089. esac
  5090. $ac_path_GREP_found && break 3
  5091. done
  5092. done
  5093. done
  5094. IFS=$as_save_IFS
  5095. if test -z "$ac_cv_path_GREP"; then
  5096. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5097. fi
  5098. else
  5099. ac_cv_path_GREP=$GREP
  5100. fi
  5101. fi
  5102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5103. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  5104. GREP="$ac_cv_path_GREP"
  5105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5106. printf %s "checking for egrep... " >&6; }
  5107. if test ${ac_cv_path_EGREP+y}
  5108. then :
  5109. printf %s "(cached) " >&6
  5110. else $as_nop
  5111. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5112. then ac_cv_path_EGREP="$GREP -E"
  5113. else
  5114. if test -z "$EGREP"; then
  5115. ac_path_EGREP_found=false
  5116. # Loop through the user's path and test for each of PROGNAME-LIST
  5117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5118. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5119. do
  5120. IFS=$as_save_IFS
  5121. case $as_dir in #(((
  5122. '') as_dir=./ ;;
  5123. */) ;;
  5124. *) as_dir=$as_dir/ ;;
  5125. esac
  5126. for ac_prog in egrep
  5127. do
  5128. for ac_exec_ext in '' $ac_executable_extensions; do
  5129. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  5130. as_fn_executable_p "$ac_path_EGREP" || continue
  5131. # Check for GNU ac_path_EGREP and select it if it is found.
  5132. # Check for GNU $ac_path_EGREP
  5133. case `"$ac_path_EGREP" --version 2>&1` in
  5134. *GNU*)
  5135. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5136. *)
  5137. ac_count=0
  5138. printf %s 0123456789 >"conftest.in"
  5139. while :
  5140. do
  5141. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5142. mv "conftest.tmp" "conftest.in"
  5143. cp "conftest.in" "conftest.nl"
  5144. printf "%s\n" 'EGREP' >> "conftest.nl"
  5145. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5146. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5147. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5148. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5149. # Best one so far, save it but keep looking for a better one
  5150. ac_cv_path_EGREP="$ac_path_EGREP"
  5151. ac_path_EGREP_max=$ac_count
  5152. fi
  5153. # 10*(2^10) chars as input seems more than enough
  5154. test $ac_count -gt 10 && break
  5155. done
  5156. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5157. esac
  5158. $ac_path_EGREP_found && break 3
  5159. done
  5160. done
  5161. done
  5162. IFS=$as_save_IFS
  5163. if test -z "$ac_cv_path_EGREP"; then
  5164. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5165. fi
  5166. else
  5167. ac_cv_path_EGREP=$EGREP
  5168. fi
  5169. fi
  5170. fi
  5171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5172. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  5173. EGREP="$ac_cv_path_EGREP"
  5174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5175. printf %s "checking for fgrep... " >&6; }
  5176. if test ${ac_cv_path_FGREP+y}
  5177. then :
  5178. printf %s "(cached) " >&6
  5179. else $as_nop
  5180. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5181. then ac_cv_path_FGREP="$GREP -F"
  5182. else
  5183. if test -z "$FGREP"; then
  5184. ac_path_FGREP_found=false
  5185. # Loop through the user's path and test for each of PROGNAME-LIST
  5186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5187. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5188. do
  5189. IFS=$as_save_IFS
  5190. case $as_dir in #(((
  5191. '') as_dir=./ ;;
  5192. */) ;;
  5193. *) as_dir=$as_dir/ ;;
  5194. esac
  5195. for ac_prog in fgrep
  5196. do
  5197. for ac_exec_ext in '' $ac_executable_extensions; do
  5198. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  5199. as_fn_executable_p "$ac_path_FGREP" || continue
  5200. # Check for GNU ac_path_FGREP and select it if it is found.
  5201. # Check for GNU $ac_path_FGREP
  5202. case `"$ac_path_FGREP" --version 2>&1` in
  5203. *GNU*)
  5204. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5205. *)
  5206. ac_count=0
  5207. printf %s 0123456789 >"conftest.in"
  5208. while :
  5209. do
  5210. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5211. mv "conftest.tmp" "conftest.in"
  5212. cp "conftest.in" "conftest.nl"
  5213. printf "%s\n" 'FGREP' >> "conftest.nl"
  5214. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5215. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5216. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5217. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5218. # Best one so far, save it but keep looking for a better one
  5219. ac_cv_path_FGREP="$ac_path_FGREP"
  5220. ac_path_FGREP_max=$ac_count
  5221. fi
  5222. # 10*(2^10) chars as input seems more than enough
  5223. test $ac_count -gt 10 && break
  5224. done
  5225. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5226. esac
  5227. $ac_path_FGREP_found && break 3
  5228. done
  5229. done
  5230. done
  5231. IFS=$as_save_IFS
  5232. if test -z "$ac_cv_path_FGREP"; then
  5233. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5234. fi
  5235. else
  5236. ac_cv_path_FGREP=$FGREP
  5237. fi
  5238. fi
  5239. fi
  5240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5241. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  5242. FGREP="$ac_cv_path_FGREP"
  5243. test -z "$GREP" && GREP=grep
  5244. # Check whether --with-gnu-ld was given.
  5245. if test ${with_gnu_ld+y}
  5246. then :
  5247. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5248. else $as_nop
  5249. with_gnu_ld=no
  5250. fi
  5251. ac_prog=ld
  5252. if test yes = "$GCC"; then
  5253. # Check if gcc -print-prog-name=ld gives a path.
  5254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5255. printf %s "checking for ld used by $CC... " >&6; }
  5256. case $host in
  5257. *-*-mingw*)
  5258. # gcc leaves a trailing carriage return, which upsets mingw
  5259. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5260. *)
  5261. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5262. esac
  5263. case $ac_prog in
  5264. # Accept absolute paths.
  5265. [\\/]* | ?:[\\/]*)
  5266. re_direlt='/[^/][^/]*/\.\./'
  5267. # Canonicalize the pathname of ld
  5268. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5269. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5270. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5271. done
  5272. test -z "$LD" && LD=$ac_prog
  5273. ;;
  5274. "")
  5275. # If it fails, then pretend we aren't using GCC.
  5276. ac_prog=ld
  5277. ;;
  5278. *)
  5279. # If it is relative, then search for the first ld in PATH.
  5280. with_gnu_ld=unknown
  5281. ;;
  5282. esac
  5283. elif test yes = "$with_gnu_ld"; then
  5284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5285. printf %s "checking for GNU ld... " >&6; }
  5286. else
  5287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5288. printf %s "checking for non-GNU ld... " >&6; }
  5289. fi
  5290. if test ${lt_cv_path_LD+y}
  5291. then :
  5292. printf %s "(cached) " >&6
  5293. else $as_nop
  5294. if test -z "$LD"; then
  5295. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5296. for ac_dir in $PATH; do
  5297. IFS=$lt_save_ifs
  5298. test -z "$ac_dir" && ac_dir=.
  5299. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5300. lt_cv_path_LD=$ac_dir/$ac_prog
  5301. # Check to see if the program is GNU ld. I'd rather use --version,
  5302. # but apparently some variants of GNU ld only accept -v.
  5303. # Break only if it was the GNU/non-GNU ld that we prefer.
  5304. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5305. *GNU* | *'with BFD'*)
  5306. test no != "$with_gnu_ld" && break
  5307. ;;
  5308. *)
  5309. test yes != "$with_gnu_ld" && break
  5310. ;;
  5311. esac
  5312. fi
  5313. done
  5314. IFS=$lt_save_ifs
  5315. else
  5316. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5317. fi
  5318. fi
  5319. LD=$lt_cv_path_LD
  5320. if test -n "$LD"; then
  5321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5322. printf "%s\n" "$LD" >&6; }
  5323. else
  5324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5325. printf "%s\n" "no" >&6; }
  5326. fi
  5327. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5329. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  5330. if test ${lt_cv_prog_gnu_ld+y}
  5331. then :
  5332. printf %s "(cached) " >&6
  5333. else $as_nop
  5334. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5335. case `$LD -v 2>&1 </dev/null` in
  5336. *GNU* | *'with BFD'*)
  5337. lt_cv_prog_gnu_ld=yes
  5338. ;;
  5339. *)
  5340. lt_cv_prog_gnu_ld=no
  5341. ;;
  5342. esac
  5343. fi
  5344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5345. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  5346. with_gnu_ld=$lt_cv_prog_gnu_ld
  5347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5348. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5349. if test ${lt_cv_path_NM+y}
  5350. then :
  5351. printf %s "(cached) " >&6
  5352. else $as_nop
  5353. if test -n "$NM"; then
  5354. # Let the user override the test.
  5355. lt_cv_path_NM=$NM
  5356. else
  5357. lt_nm_to_check=${ac_tool_prefix}nm
  5358. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5359. lt_nm_to_check="$lt_nm_to_check nm"
  5360. fi
  5361. for lt_tmp_nm in $lt_nm_to_check; do
  5362. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5363. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5364. IFS=$lt_save_ifs
  5365. test -z "$ac_dir" && ac_dir=.
  5366. tmp_nm=$ac_dir/$lt_tmp_nm
  5367. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5368. # Check to see if the nm accepts a BSD-compat flag.
  5369. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5370. # nm: unknown option "B" ignored
  5371. # Tru64's nm complains that /dev/null is an invalid object file
  5372. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5373. case $build_os in
  5374. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5375. *) lt_bad_file=/dev/null ;;
  5376. esac
  5377. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5378. *$lt_bad_file* | *'Invalid file or object type'*)
  5379. lt_cv_path_NM="$tmp_nm -B"
  5380. break 2
  5381. ;;
  5382. *)
  5383. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5384. */dev/null*)
  5385. lt_cv_path_NM="$tmp_nm -p"
  5386. break 2
  5387. ;;
  5388. *)
  5389. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5390. continue # so that we can try to find one that supports BSD flags
  5391. ;;
  5392. esac
  5393. ;;
  5394. esac
  5395. fi
  5396. done
  5397. IFS=$lt_save_ifs
  5398. done
  5399. : ${lt_cv_path_NM=no}
  5400. fi
  5401. fi
  5402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5403. printf "%s\n" "$lt_cv_path_NM" >&6; }
  5404. if test no != "$lt_cv_path_NM"; then
  5405. NM=$lt_cv_path_NM
  5406. else
  5407. # Didn't find any BSD compatible name lister, look for dumpbin.
  5408. if test -n "$DUMPBIN"; then :
  5409. # Let the user override the test.
  5410. else
  5411. if test -n "$ac_tool_prefix"; then
  5412. for ac_prog in dumpbin "link -dump"
  5413. do
  5414. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5415. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5417. printf %s "checking for $ac_word... " >&6; }
  5418. if test ${ac_cv_prog_DUMPBIN+y}
  5419. then :
  5420. printf %s "(cached) " >&6
  5421. else $as_nop
  5422. if test -n "$DUMPBIN"; then
  5423. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5424. else
  5425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5426. for as_dir in $PATH
  5427. do
  5428. IFS=$as_save_IFS
  5429. case $as_dir in #(((
  5430. '') as_dir=./ ;;
  5431. */) ;;
  5432. *) as_dir=$as_dir/ ;;
  5433. esac
  5434. for ac_exec_ext in '' $ac_executable_extensions; do
  5435. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5436. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5437. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5438. break 2
  5439. fi
  5440. done
  5441. done
  5442. IFS=$as_save_IFS
  5443. fi
  5444. fi
  5445. DUMPBIN=$ac_cv_prog_DUMPBIN
  5446. if test -n "$DUMPBIN"; then
  5447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5448. printf "%s\n" "$DUMPBIN" >&6; }
  5449. else
  5450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5451. printf "%s\n" "no" >&6; }
  5452. fi
  5453. test -n "$DUMPBIN" && break
  5454. done
  5455. fi
  5456. if test -z "$DUMPBIN"; then
  5457. ac_ct_DUMPBIN=$DUMPBIN
  5458. for ac_prog in dumpbin "link -dump"
  5459. do
  5460. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5461. set dummy $ac_prog; ac_word=$2
  5462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5463. printf %s "checking for $ac_word... " >&6; }
  5464. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  5465. then :
  5466. printf %s "(cached) " >&6
  5467. else $as_nop
  5468. if test -n "$ac_ct_DUMPBIN"; then
  5469. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5470. else
  5471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5472. for as_dir in $PATH
  5473. do
  5474. IFS=$as_save_IFS
  5475. case $as_dir in #(((
  5476. '') as_dir=./ ;;
  5477. */) ;;
  5478. *) as_dir=$as_dir/ ;;
  5479. esac
  5480. for ac_exec_ext in '' $ac_executable_extensions; do
  5481. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5482. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5483. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5484. break 2
  5485. fi
  5486. done
  5487. done
  5488. IFS=$as_save_IFS
  5489. fi
  5490. fi
  5491. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5492. if test -n "$ac_ct_DUMPBIN"; then
  5493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5494. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  5495. else
  5496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5497. printf "%s\n" "no" >&6; }
  5498. fi
  5499. test -n "$ac_ct_DUMPBIN" && break
  5500. done
  5501. if test "x$ac_ct_DUMPBIN" = x; then
  5502. DUMPBIN=":"
  5503. else
  5504. case $cross_compiling:$ac_tool_warned in
  5505. yes:)
  5506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5507. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5508. ac_tool_warned=yes ;;
  5509. esac
  5510. DUMPBIN=$ac_ct_DUMPBIN
  5511. fi
  5512. fi
  5513. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5514. *COFF*)
  5515. DUMPBIN="$DUMPBIN -symbols -headers"
  5516. ;;
  5517. *)
  5518. DUMPBIN=:
  5519. ;;
  5520. esac
  5521. fi
  5522. if test : != "$DUMPBIN"; then
  5523. NM=$DUMPBIN
  5524. fi
  5525. fi
  5526. test -z "$NM" && NM=nm
  5527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5528. printf %s "checking the name lister ($NM) interface... " >&6; }
  5529. if test ${lt_cv_nm_interface+y}
  5530. then :
  5531. printf %s "(cached) " >&6
  5532. else $as_nop
  5533. lt_cv_nm_interface="BSD nm"
  5534. echo "int some_variable = 0;" > conftest.$ac_ext
  5535. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5536. (eval "$ac_compile" 2>conftest.err)
  5537. cat conftest.err >&5
  5538. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5539. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5540. cat conftest.err >&5
  5541. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5542. cat conftest.out >&5
  5543. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5544. lt_cv_nm_interface="MS dumpbin"
  5545. fi
  5546. rm -f conftest*
  5547. fi
  5548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5549. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  5550. # find the maximum length of command line arguments
  5551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5552. printf %s "checking the maximum length of command line arguments... " >&6; }
  5553. if test ${lt_cv_sys_max_cmd_len+y}
  5554. then :
  5555. printf %s "(cached) " >&6
  5556. else $as_nop
  5557. i=0
  5558. teststring=ABCD
  5559. case $build_os in
  5560. msdosdjgpp*)
  5561. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5562. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5563. # during glob expansion). Even if it were fixed, the result of this
  5564. # check would be larger than it should be.
  5565. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5566. ;;
  5567. gnu*)
  5568. # Under GNU Hurd, this test is not required because there is
  5569. # no limit to the length of command line arguments.
  5570. # Libtool will interpret -1 as no limit whatsoever
  5571. lt_cv_sys_max_cmd_len=-1;
  5572. ;;
  5573. cygwin* | mingw* | cegcc*)
  5574. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5575. # about 5 minutes as the teststring grows exponentially.
  5576. # Worse, since 9x/ME are not pre-emptively multitasking,
  5577. # you end up with a "frozen" computer, even though with patience
  5578. # the test eventually succeeds (with a max line length of 256k).
  5579. # Instead, let's just punt: use the minimum linelength reported by
  5580. # all of the supported platforms: 8192 (on NT/2K/XP).
  5581. lt_cv_sys_max_cmd_len=8192;
  5582. ;;
  5583. mint*)
  5584. # On MiNT this can take a long time and run out of memory.
  5585. lt_cv_sys_max_cmd_len=8192;
  5586. ;;
  5587. amigaos*)
  5588. # On AmigaOS with pdksh, this test takes hours, literally.
  5589. # So we just punt and use a minimum line length of 8192.
  5590. lt_cv_sys_max_cmd_len=8192;
  5591. ;;
  5592. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5593. # This has been around since 386BSD, at least. Likely further.
  5594. if test -x /sbin/sysctl; then
  5595. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5596. elif test -x /usr/sbin/sysctl; then
  5597. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5598. else
  5599. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5600. fi
  5601. # And add a safety zone
  5602. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5603. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5604. ;;
  5605. interix*)
  5606. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5607. lt_cv_sys_max_cmd_len=196608
  5608. ;;
  5609. os2*)
  5610. # The test takes a long time on OS/2.
  5611. lt_cv_sys_max_cmd_len=8192
  5612. ;;
  5613. osf*)
  5614. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5615. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5616. # nice to cause kernel panics so lets avoid the loop below.
  5617. # First set a reasonable default.
  5618. lt_cv_sys_max_cmd_len=16384
  5619. #
  5620. if test -x /sbin/sysconfig; then
  5621. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5622. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5623. esac
  5624. fi
  5625. ;;
  5626. sco3.2v5*)
  5627. lt_cv_sys_max_cmd_len=102400
  5628. ;;
  5629. sysv5* | sco5v6* | sysv4.2uw2*)
  5630. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5631. if test -n "$kargmax"; then
  5632. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5633. else
  5634. lt_cv_sys_max_cmd_len=32768
  5635. fi
  5636. ;;
  5637. *)
  5638. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5639. if test -n "$lt_cv_sys_max_cmd_len" && \
  5640. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5641. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5642. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5643. else
  5644. # Make teststring a little bigger before we do anything with it.
  5645. # a 1K string should be a reasonable start.
  5646. for i in 1 2 3 4 5 6 7 8; do
  5647. teststring=$teststring$teststring
  5648. done
  5649. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5650. # If test is not a shell built-in, we'll probably end up computing a
  5651. # maximum length that is only half of the actual maximum length, but
  5652. # we can't tell.
  5653. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5654. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5655. test 17 != "$i" # 1/2 MB should be enough
  5656. do
  5657. i=`expr $i + 1`
  5658. teststring=$teststring$teststring
  5659. done
  5660. # Only check the string length outside the loop.
  5661. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5662. teststring=
  5663. # Add a significant safety factor because C++ compilers can tack on
  5664. # massive amounts of additional arguments before passing them to the
  5665. # linker. It appears as though 1/2 is a usable value.
  5666. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5667. fi
  5668. ;;
  5669. esac
  5670. fi
  5671. if test -n "$lt_cv_sys_max_cmd_len"; then
  5672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5673. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  5674. else
  5675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5676. printf "%s\n" "none" >&6; }
  5677. fi
  5678. max_cmd_len=$lt_cv_sys_max_cmd_len
  5679. : ${CP="cp -f"}
  5680. : ${MV="mv -f"}
  5681. : ${RM="rm -f"}
  5682. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5683. lt_unset=unset
  5684. else
  5685. lt_unset=false
  5686. fi
  5687. # test EBCDIC or ASCII
  5688. case `echo X|tr X '\101'` in
  5689. A) # ASCII based system
  5690. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5691. lt_SP2NL='tr \040 \012'
  5692. lt_NL2SP='tr \015\012 \040\040'
  5693. ;;
  5694. *) # EBCDIC based system
  5695. lt_SP2NL='tr \100 \n'
  5696. lt_NL2SP='tr \r\n \100\100'
  5697. ;;
  5698. esac
  5699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5700. printf %s "checking how to convert $build file names to $host format... " >&6; }
  5701. if test ${lt_cv_to_host_file_cmd+y}
  5702. then :
  5703. printf %s "(cached) " >&6
  5704. else $as_nop
  5705. case $host in
  5706. *-*-mingw* )
  5707. case $build in
  5708. *-*-mingw* ) # actually msys
  5709. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5710. ;;
  5711. *-*-cygwin* )
  5712. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5713. ;;
  5714. * ) # otherwise, assume *nix
  5715. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5716. ;;
  5717. esac
  5718. ;;
  5719. *-*-cygwin* )
  5720. case $build in
  5721. *-*-mingw* ) # actually msys
  5722. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5723. ;;
  5724. *-*-cygwin* )
  5725. lt_cv_to_host_file_cmd=func_convert_file_noop
  5726. ;;
  5727. * ) # otherwise, assume *nix
  5728. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5729. ;;
  5730. esac
  5731. ;;
  5732. * ) # unhandled hosts (and "normal" native builds)
  5733. lt_cv_to_host_file_cmd=func_convert_file_noop
  5734. ;;
  5735. esac
  5736. fi
  5737. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5739. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  5740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5741. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  5742. if test ${lt_cv_to_tool_file_cmd+y}
  5743. then :
  5744. printf %s "(cached) " >&6
  5745. else $as_nop
  5746. #assume ordinary cross tools, or native build.
  5747. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5748. case $host in
  5749. *-*-mingw* )
  5750. case $build in
  5751. *-*-mingw* ) # actually msys
  5752. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5753. ;;
  5754. esac
  5755. ;;
  5756. esac
  5757. fi
  5758. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5760. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5762. printf %s "checking for $LD option to reload object files... " >&6; }
  5763. if test ${lt_cv_ld_reload_flag+y}
  5764. then :
  5765. printf %s "(cached) " >&6
  5766. else $as_nop
  5767. lt_cv_ld_reload_flag='-r'
  5768. fi
  5769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5770. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5771. reload_flag=$lt_cv_ld_reload_flag
  5772. case $reload_flag in
  5773. "" | " "*) ;;
  5774. *) reload_flag=" $reload_flag" ;;
  5775. esac
  5776. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5777. case $host_os in
  5778. cygwin* | mingw* | pw32* | cegcc*)
  5779. if test yes != "$GCC"; then
  5780. reload_cmds=false
  5781. fi
  5782. ;;
  5783. darwin*)
  5784. if test yes = "$GCC"; then
  5785. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5786. else
  5787. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5788. fi
  5789. ;;
  5790. esac
  5791. if test -n "$ac_tool_prefix"; then
  5792. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5793. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5795. printf %s "checking for $ac_word... " >&6; }
  5796. if test ${ac_cv_prog_OBJDUMP+y}
  5797. then :
  5798. printf %s "(cached) " >&6
  5799. else $as_nop
  5800. if test -n "$OBJDUMP"; then
  5801. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5802. else
  5803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5804. for as_dir in $PATH
  5805. do
  5806. IFS=$as_save_IFS
  5807. case $as_dir in #(((
  5808. '') as_dir=./ ;;
  5809. */) ;;
  5810. *) as_dir=$as_dir/ ;;
  5811. esac
  5812. for ac_exec_ext in '' $ac_executable_extensions; do
  5813. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5814. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5815. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5816. break 2
  5817. fi
  5818. done
  5819. done
  5820. IFS=$as_save_IFS
  5821. fi
  5822. fi
  5823. OBJDUMP=$ac_cv_prog_OBJDUMP
  5824. if test -n "$OBJDUMP"; then
  5825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5826. printf "%s\n" "$OBJDUMP" >&6; }
  5827. else
  5828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5829. printf "%s\n" "no" >&6; }
  5830. fi
  5831. fi
  5832. if test -z "$ac_cv_prog_OBJDUMP"; then
  5833. ac_ct_OBJDUMP=$OBJDUMP
  5834. # Extract the first word of "objdump", so it can be a program name with args.
  5835. set dummy objdump; ac_word=$2
  5836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5837. printf %s "checking for $ac_word... " >&6; }
  5838. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5839. then :
  5840. printf %s "(cached) " >&6
  5841. else $as_nop
  5842. if test -n "$ac_ct_OBJDUMP"; then
  5843. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5844. else
  5845. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5846. for as_dir in $PATH
  5847. do
  5848. IFS=$as_save_IFS
  5849. case $as_dir in #(((
  5850. '') as_dir=./ ;;
  5851. */) ;;
  5852. *) as_dir=$as_dir/ ;;
  5853. esac
  5854. for ac_exec_ext in '' $ac_executable_extensions; do
  5855. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5856. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5857. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5858. break 2
  5859. fi
  5860. done
  5861. done
  5862. IFS=$as_save_IFS
  5863. fi
  5864. fi
  5865. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5866. if test -n "$ac_ct_OBJDUMP"; then
  5867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5868. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5869. else
  5870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5871. printf "%s\n" "no" >&6; }
  5872. fi
  5873. if test "x$ac_ct_OBJDUMP" = x; then
  5874. OBJDUMP="false"
  5875. else
  5876. case $cross_compiling:$ac_tool_warned in
  5877. yes:)
  5878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5879. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5880. ac_tool_warned=yes ;;
  5881. esac
  5882. OBJDUMP=$ac_ct_OBJDUMP
  5883. fi
  5884. else
  5885. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5886. fi
  5887. test -z "$OBJDUMP" && OBJDUMP=objdump
  5888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5889. printf %s "checking how to recognize dependent libraries... " >&6; }
  5890. if test ${lt_cv_deplibs_check_method+y}
  5891. then :
  5892. printf %s "(cached) " >&6
  5893. else $as_nop
  5894. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5895. lt_cv_file_magic_test_file=
  5896. lt_cv_deplibs_check_method='unknown'
  5897. # Need to set the preceding variable on all platforms that support
  5898. # interlibrary dependencies.
  5899. # 'none' -- dependencies not supported.
  5900. # 'unknown' -- same as none, but documents that we really don't know.
  5901. # 'pass_all' -- all dependencies passed with no checks.
  5902. # 'test_compile' -- check by making test program.
  5903. # 'file_magic [[regex]]' -- check by looking for files in library path
  5904. # that responds to the $file_magic_cmd with a given extended regex.
  5905. # If you have 'file' or equivalent on your system and you're not sure
  5906. # whether 'pass_all' will *always* work, you probably want this one.
  5907. case $host_os in
  5908. aix[4-9]*)
  5909. lt_cv_deplibs_check_method=pass_all
  5910. ;;
  5911. beos*)
  5912. lt_cv_deplibs_check_method=pass_all
  5913. ;;
  5914. bsdi[45]*)
  5915. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5916. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5917. lt_cv_file_magic_test_file=/shlib/libc.so
  5918. ;;
  5919. cygwin*)
  5920. # func_win32_libid is a shell function defined in ltmain.sh
  5921. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5922. lt_cv_file_magic_cmd='func_win32_libid'
  5923. ;;
  5924. mingw* | pw32*)
  5925. # Base MSYS/MinGW do not provide the 'file' command needed by
  5926. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5927. # unless we find 'file', for example because we are cross-compiling.
  5928. if ( file / ) >/dev/null 2>&1; then
  5929. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5930. lt_cv_file_magic_cmd='func_win32_libid'
  5931. else
  5932. # Keep this pattern in sync with the one in func_win32_libid.
  5933. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5934. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5935. fi
  5936. ;;
  5937. cegcc*)
  5938. # use the weaker test based on 'objdump'. See mingw*.
  5939. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5940. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5941. ;;
  5942. darwin* | rhapsody*)
  5943. lt_cv_deplibs_check_method=pass_all
  5944. ;;
  5945. freebsd* | dragonfly*)
  5946. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5947. case $host_cpu in
  5948. i*86 )
  5949. # Not sure whether the presence of OpenBSD here was a mistake.
  5950. # Let's accept both of them until this is cleared up.
  5951. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5952. lt_cv_file_magic_cmd=/usr/bin/file
  5953. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5954. ;;
  5955. esac
  5956. else
  5957. lt_cv_deplibs_check_method=pass_all
  5958. fi
  5959. ;;
  5960. haiku*)
  5961. lt_cv_deplibs_check_method=pass_all
  5962. ;;
  5963. hpux10.20* | hpux11*)
  5964. lt_cv_file_magic_cmd=/usr/bin/file
  5965. case $host_cpu in
  5966. ia64*)
  5967. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5968. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5969. ;;
  5970. hppa*64*)
  5971. 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]'
  5972. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5973. ;;
  5974. *)
  5975. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5976. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5977. ;;
  5978. esac
  5979. ;;
  5980. interix[3-9]*)
  5981. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5982. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5983. ;;
  5984. irix5* | irix6* | nonstopux*)
  5985. case $LD in
  5986. *-32|*"-32 ") libmagic=32-bit;;
  5987. *-n32|*"-n32 ") libmagic=N32;;
  5988. *-64|*"-64 ") libmagic=64-bit;;
  5989. *) libmagic=never-match;;
  5990. esac
  5991. lt_cv_deplibs_check_method=pass_all
  5992. ;;
  5993. # This must be glibc/ELF.
  5994. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5995. lt_cv_deplibs_check_method=pass_all
  5996. ;;
  5997. netbsd*)
  5998. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5999. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6000. else
  6001. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6002. fi
  6003. ;;
  6004. newos6*)
  6005. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6006. lt_cv_file_magic_cmd=/usr/bin/file
  6007. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6008. ;;
  6009. *nto* | *qnx*)
  6010. lt_cv_deplibs_check_method=pass_all
  6011. ;;
  6012. openbsd* | bitrig*)
  6013. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  6014. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6015. else
  6016. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6017. fi
  6018. ;;
  6019. osf3* | osf4* | osf5*)
  6020. lt_cv_deplibs_check_method=pass_all
  6021. ;;
  6022. rdos*)
  6023. lt_cv_deplibs_check_method=pass_all
  6024. ;;
  6025. solaris*)
  6026. lt_cv_deplibs_check_method=pass_all
  6027. ;;
  6028. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6029. lt_cv_deplibs_check_method=pass_all
  6030. ;;
  6031. sysv4 | sysv4.3*)
  6032. case $host_vendor in
  6033. motorola)
  6034. 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]'
  6035. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6036. ;;
  6037. ncr)
  6038. lt_cv_deplibs_check_method=pass_all
  6039. ;;
  6040. sequent)
  6041. lt_cv_file_magic_cmd='/bin/file'
  6042. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6043. ;;
  6044. sni)
  6045. lt_cv_file_magic_cmd='/bin/file'
  6046. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6047. lt_cv_file_magic_test_file=/lib/libc.so
  6048. ;;
  6049. siemens)
  6050. lt_cv_deplibs_check_method=pass_all
  6051. ;;
  6052. pc)
  6053. lt_cv_deplibs_check_method=pass_all
  6054. ;;
  6055. esac
  6056. ;;
  6057. tpf*)
  6058. lt_cv_deplibs_check_method=pass_all
  6059. ;;
  6060. os2*)
  6061. lt_cv_deplibs_check_method=pass_all
  6062. ;;
  6063. esac
  6064. fi
  6065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6066. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  6067. file_magic_glob=
  6068. want_nocaseglob=no
  6069. if test "$build" = "$host"; then
  6070. case $host_os in
  6071. mingw* | pw32*)
  6072. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6073. want_nocaseglob=yes
  6074. else
  6075. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6076. fi
  6077. ;;
  6078. esac
  6079. fi
  6080. file_magic_cmd=$lt_cv_file_magic_cmd
  6081. deplibs_check_method=$lt_cv_deplibs_check_method
  6082. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6083. if test -n "$ac_tool_prefix"; then
  6084. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6085. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6087. printf %s "checking for $ac_word... " >&6; }
  6088. if test ${ac_cv_prog_DLLTOOL+y}
  6089. then :
  6090. printf %s "(cached) " >&6
  6091. else $as_nop
  6092. if test -n "$DLLTOOL"; then
  6093. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6094. else
  6095. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6096. for as_dir in $PATH
  6097. do
  6098. IFS=$as_save_IFS
  6099. case $as_dir in #(((
  6100. '') as_dir=./ ;;
  6101. */) ;;
  6102. *) as_dir=$as_dir/ ;;
  6103. esac
  6104. for ac_exec_ext in '' $ac_executable_extensions; do
  6105. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6106. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6107. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6108. break 2
  6109. fi
  6110. done
  6111. done
  6112. IFS=$as_save_IFS
  6113. fi
  6114. fi
  6115. DLLTOOL=$ac_cv_prog_DLLTOOL
  6116. if test -n "$DLLTOOL"; then
  6117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6118. printf "%s\n" "$DLLTOOL" >&6; }
  6119. else
  6120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6121. printf "%s\n" "no" >&6; }
  6122. fi
  6123. fi
  6124. if test -z "$ac_cv_prog_DLLTOOL"; then
  6125. ac_ct_DLLTOOL=$DLLTOOL
  6126. # Extract the first word of "dlltool", so it can be a program name with args.
  6127. set dummy dlltool; ac_word=$2
  6128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6129. printf %s "checking for $ac_word... " >&6; }
  6130. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  6131. then :
  6132. printf %s "(cached) " >&6
  6133. else $as_nop
  6134. if test -n "$ac_ct_DLLTOOL"; then
  6135. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6136. else
  6137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6138. for as_dir in $PATH
  6139. do
  6140. IFS=$as_save_IFS
  6141. case $as_dir in #(((
  6142. '') as_dir=./ ;;
  6143. */) ;;
  6144. *) as_dir=$as_dir/ ;;
  6145. esac
  6146. for ac_exec_ext in '' $ac_executable_extensions; do
  6147. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6148. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6149. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6150. break 2
  6151. fi
  6152. done
  6153. done
  6154. IFS=$as_save_IFS
  6155. fi
  6156. fi
  6157. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6158. if test -n "$ac_ct_DLLTOOL"; then
  6159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6160. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  6161. else
  6162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6163. printf "%s\n" "no" >&6; }
  6164. fi
  6165. if test "x$ac_ct_DLLTOOL" = x; then
  6166. DLLTOOL="false"
  6167. else
  6168. case $cross_compiling:$ac_tool_warned in
  6169. yes:)
  6170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6171. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6172. ac_tool_warned=yes ;;
  6173. esac
  6174. DLLTOOL=$ac_ct_DLLTOOL
  6175. fi
  6176. else
  6177. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6178. fi
  6179. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6181. printf %s "checking how to associate runtime and link libraries... " >&6; }
  6182. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  6183. then :
  6184. printf %s "(cached) " >&6
  6185. else $as_nop
  6186. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6187. case $host_os in
  6188. cygwin* | mingw* | pw32* | cegcc*)
  6189. # two different shell functions defined in ltmain.sh;
  6190. # decide which one to use based on capabilities of $DLLTOOL
  6191. case `$DLLTOOL --help 2>&1` in
  6192. *--identify-strict*)
  6193. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6194. ;;
  6195. *)
  6196. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6197. ;;
  6198. esac
  6199. ;;
  6200. *)
  6201. # fallback: assume linklib IS sharedlib
  6202. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  6203. ;;
  6204. esac
  6205. fi
  6206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6207. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6208. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6209. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6210. if test -n "$ac_tool_prefix"; then
  6211. for ac_prog in ar
  6212. do
  6213. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6214. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6216. printf %s "checking for $ac_word... " >&6; }
  6217. if test ${ac_cv_prog_AR+y}
  6218. then :
  6219. printf %s "(cached) " >&6
  6220. else $as_nop
  6221. if test -n "$AR"; then
  6222. ac_cv_prog_AR="$AR" # Let the user override the test.
  6223. else
  6224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6225. for as_dir in $PATH
  6226. do
  6227. IFS=$as_save_IFS
  6228. case $as_dir in #(((
  6229. '') as_dir=./ ;;
  6230. */) ;;
  6231. *) as_dir=$as_dir/ ;;
  6232. esac
  6233. for ac_exec_ext in '' $ac_executable_extensions; do
  6234. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6235. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6236. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6237. break 2
  6238. fi
  6239. done
  6240. done
  6241. IFS=$as_save_IFS
  6242. fi
  6243. fi
  6244. AR=$ac_cv_prog_AR
  6245. if test -n "$AR"; then
  6246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6247. printf "%s\n" "$AR" >&6; }
  6248. else
  6249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6250. printf "%s\n" "no" >&6; }
  6251. fi
  6252. test -n "$AR" && break
  6253. done
  6254. fi
  6255. if test -z "$AR"; then
  6256. ac_ct_AR=$AR
  6257. for ac_prog in ar
  6258. do
  6259. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6260. set dummy $ac_prog; ac_word=$2
  6261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6262. printf %s "checking for $ac_word... " >&6; }
  6263. if test ${ac_cv_prog_ac_ct_AR+y}
  6264. then :
  6265. printf %s "(cached) " >&6
  6266. else $as_nop
  6267. if test -n "$ac_ct_AR"; then
  6268. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6269. else
  6270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6271. for as_dir in $PATH
  6272. do
  6273. IFS=$as_save_IFS
  6274. case $as_dir in #(((
  6275. '') as_dir=./ ;;
  6276. */) ;;
  6277. *) as_dir=$as_dir/ ;;
  6278. esac
  6279. for ac_exec_ext in '' $ac_executable_extensions; do
  6280. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6281. ac_cv_prog_ac_ct_AR="$ac_prog"
  6282. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6283. break 2
  6284. fi
  6285. done
  6286. done
  6287. IFS=$as_save_IFS
  6288. fi
  6289. fi
  6290. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6291. if test -n "$ac_ct_AR"; then
  6292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6293. printf "%s\n" "$ac_ct_AR" >&6; }
  6294. else
  6295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6296. printf "%s\n" "no" >&6; }
  6297. fi
  6298. test -n "$ac_ct_AR" && break
  6299. done
  6300. if test "x$ac_ct_AR" = x; then
  6301. AR="false"
  6302. else
  6303. case $cross_compiling:$ac_tool_warned in
  6304. yes:)
  6305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6306. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6307. ac_tool_warned=yes ;;
  6308. esac
  6309. AR=$ac_ct_AR
  6310. fi
  6311. fi
  6312. : ${AR=ar}
  6313. : ${AR_FLAGS=cru}
  6314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6315. printf %s "checking for archiver @FILE support... " >&6; }
  6316. if test ${lt_cv_ar_at_file+y}
  6317. then :
  6318. printf %s "(cached) " >&6
  6319. else $as_nop
  6320. lt_cv_ar_at_file=no
  6321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6322. /* end confdefs.h. */
  6323. int
  6324. main (void)
  6325. {
  6326. ;
  6327. return 0;
  6328. }
  6329. _ACEOF
  6330. if ac_fn_c_try_compile "$LINENO"
  6331. then :
  6332. echo conftest.$ac_objext > conftest.lst
  6333. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6334. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6335. (eval $lt_ar_try) 2>&5
  6336. ac_status=$?
  6337. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6338. test $ac_status = 0; }
  6339. if test 0 -eq "$ac_status"; then
  6340. # Ensure the archiver fails upon bogus file names.
  6341. rm -f conftest.$ac_objext libconftest.a
  6342. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6343. (eval $lt_ar_try) 2>&5
  6344. ac_status=$?
  6345. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6346. test $ac_status = 0; }
  6347. if test 0 -ne "$ac_status"; then
  6348. lt_cv_ar_at_file=@
  6349. fi
  6350. fi
  6351. rm -f conftest.* libconftest.a
  6352. fi
  6353. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6354. fi
  6355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6356. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  6357. if test no = "$lt_cv_ar_at_file"; then
  6358. archiver_list_spec=
  6359. else
  6360. archiver_list_spec=$lt_cv_ar_at_file
  6361. fi
  6362. if test -n "$ac_tool_prefix"; then
  6363. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6364. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6366. printf %s "checking for $ac_word... " >&6; }
  6367. if test ${ac_cv_prog_STRIP+y}
  6368. then :
  6369. printf %s "(cached) " >&6
  6370. else $as_nop
  6371. if test -n "$STRIP"; then
  6372. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6373. else
  6374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6375. for as_dir in $PATH
  6376. do
  6377. IFS=$as_save_IFS
  6378. case $as_dir in #(((
  6379. '') as_dir=./ ;;
  6380. */) ;;
  6381. *) as_dir=$as_dir/ ;;
  6382. esac
  6383. for ac_exec_ext in '' $ac_executable_extensions; do
  6384. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6385. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6386. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6387. break 2
  6388. fi
  6389. done
  6390. done
  6391. IFS=$as_save_IFS
  6392. fi
  6393. fi
  6394. STRIP=$ac_cv_prog_STRIP
  6395. if test -n "$STRIP"; then
  6396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6397. printf "%s\n" "$STRIP" >&6; }
  6398. else
  6399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6400. printf "%s\n" "no" >&6; }
  6401. fi
  6402. fi
  6403. if test -z "$ac_cv_prog_STRIP"; then
  6404. ac_ct_STRIP=$STRIP
  6405. # Extract the first word of "strip", so it can be a program name with args.
  6406. set dummy strip; ac_word=$2
  6407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6408. printf %s "checking for $ac_word... " >&6; }
  6409. if test ${ac_cv_prog_ac_ct_STRIP+y}
  6410. then :
  6411. printf %s "(cached) " >&6
  6412. else $as_nop
  6413. if test -n "$ac_ct_STRIP"; then
  6414. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6415. else
  6416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6417. for as_dir in $PATH
  6418. do
  6419. IFS=$as_save_IFS
  6420. case $as_dir in #(((
  6421. '') as_dir=./ ;;
  6422. */) ;;
  6423. *) as_dir=$as_dir/ ;;
  6424. esac
  6425. for ac_exec_ext in '' $ac_executable_extensions; do
  6426. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6427. ac_cv_prog_ac_ct_STRIP="strip"
  6428. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6429. break 2
  6430. fi
  6431. done
  6432. done
  6433. IFS=$as_save_IFS
  6434. fi
  6435. fi
  6436. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6437. if test -n "$ac_ct_STRIP"; then
  6438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6439. printf "%s\n" "$ac_ct_STRIP" >&6; }
  6440. else
  6441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6442. printf "%s\n" "no" >&6; }
  6443. fi
  6444. if test "x$ac_ct_STRIP" = x; then
  6445. STRIP=":"
  6446. else
  6447. case $cross_compiling:$ac_tool_warned in
  6448. yes:)
  6449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6450. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6451. ac_tool_warned=yes ;;
  6452. esac
  6453. STRIP=$ac_ct_STRIP
  6454. fi
  6455. else
  6456. STRIP="$ac_cv_prog_STRIP"
  6457. fi
  6458. test -z "$STRIP" && STRIP=:
  6459. if test -n "$ac_tool_prefix"; then
  6460. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6461. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6463. printf %s "checking for $ac_word... " >&6; }
  6464. if test ${ac_cv_prog_RANLIB+y}
  6465. then :
  6466. printf %s "(cached) " >&6
  6467. else $as_nop
  6468. if test -n "$RANLIB"; then
  6469. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6470. else
  6471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6472. for as_dir in $PATH
  6473. do
  6474. IFS=$as_save_IFS
  6475. case $as_dir in #(((
  6476. '') as_dir=./ ;;
  6477. */) ;;
  6478. *) as_dir=$as_dir/ ;;
  6479. esac
  6480. for ac_exec_ext in '' $ac_executable_extensions; do
  6481. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6482. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6483. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6484. break 2
  6485. fi
  6486. done
  6487. done
  6488. IFS=$as_save_IFS
  6489. fi
  6490. fi
  6491. RANLIB=$ac_cv_prog_RANLIB
  6492. if test -n "$RANLIB"; then
  6493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6494. printf "%s\n" "$RANLIB" >&6; }
  6495. else
  6496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6497. printf "%s\n" "no" >&6; }
  6498. fi
  6499. fi
  6500. if test -z "$ac_cv_prog_RANLIB"; then
  6501. ac_ct_RANLIB=$RANLIB
  6502. # Extract the first word of "ranlib", so it can be a program name with args.
  6503. set dummy ranlib; ac_word=$2
  6504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6505. printf %s "checking for $ac_word... " >&6; }
  6506. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  6507. then :
  6508. printf %s "(cached) " >&6
  6509. else $as_nop
  6510. if test -n "$ac_ct_RANLIB"; then
  6511. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6512. else
  6513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6514. for as_dir in $PATH
  6515. do
  6516. IFS=$as_save_IFS
  6517. case $as_dir in #(((
  6518. '') as_dir=./ ;;
  6519. */) ;;
  6520. *) as_dir=$as_dir/ ;;
  6521. esac
  6522. for ac_exec_ext in '' $ac_executable_extensions; do
  6523. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6524. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6525. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6526. break 2
  6527. fi
  6528. done
  6529. done
  6530. IFS=$as_save_IFS
  6531. fi
  6532. fi
  6533. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6534. if test -n "$ac_ct_RANLIB"; then
  6535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6536. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  6537. else
  6538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6539. printf "%s\n" "no" >&6; }
  6540. fi
  6541. if test "x$ac_ct_RANLIB" = x; then
  6542. RANLIB=":"
  6543. else
  6544. case $cross_compiling:$ac_tool_warned in
  6545. yes:)
  6546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6547. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6548. ac_tool_warned=yes ;;
  6549. esac
  6550. RANLIB=$ac_ct_RANLIB
  6551. fi
  6552. else
  6553. RANLIB="$ac_cv_prog_RANLIB"
  6554. fi
  6555. test -z "$RANLIB" && RANLIB=:
  6556. # Determine commands to create old-style static archives.
  6557. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6558. old_postinstall_cmds='chmod 644 $oldlib'
  6559. old_postuninstall_cmds=
  6560. if test -n "$RANLIB"; then
  6561. case $host_os in
  6562. bitrig* | openbsd*)
  6563. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6564. ;;
  6565. *)
  6566. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6567. ;;
  6568. esac
  6569. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6570. fi
  6571. case $host_os in
  6572. darwin*)
  6573. lock_old_archive_extraction=yes ;;
  6574. *)
  6575. lock_old_archive_extraction=no ;;
  6576. esac
  6577. # If no C compiler was specified, use CC.
  6578. LTCC=${LTCC-"$CC"}
  6579. # If no C compiler flags were specified, use CFLAGS.
  6580. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6581. # Allow CC to be a program name with arguments.
  6582. compiler=$CC
  6583. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6585. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  6586. if test ${lt_cv_sys_global_symbol_pipe+y}
  6587. then :
  6588. printf %s "(cached) " >&6
  6589. else $as_nop
  6590. # These are sane defaults that work on at least a few old systems.
  6591. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6592. # Character class describing NM global symbol codes.
  6593. symcode='[BCDEGRST]'
  6594. # Regexp to match symbols that can be accessed directly from C.
  6595. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6596. # Define system-specific variables.
  6597. case $host_os in
  6598. aix*)
  6599. symcode='[BCDT]'
  6600. ;;
  6601. cygwin* | mingw* | pw32* | cegcc*)
  6602. symcode='[ABCDGISTW]'
  6603. ;;
  6604. hpux*)
  6605. if test ia64 = "$host_cpu"; then
  6606. symcode='[ABCDEGRST]'
  6607. fi
  6608. ;;
  6609. irix* | nonstopux*)
  6610. symcode='[BCDEGRST]'
  6611. ;;
  6612. osf*)
  6613. symcode='[BCDEGQRST]'
  6614. ;;
  6615. solaris*)
  6616. symcode='[BDRT]'
  6617. ;;
  6618. sco3.2v5*)
  6619. symcode='[DT]'
  6620. ;;
  6621. sysv4.2uw2*)
  6622. symcode='[DT]'
  6623. ;;
  6624. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6625. symcode='[ABDT]'
  6626. ;;
  6627. sysv4)
  6628. symcode='[DFNSTU]'
  6629. ;;
  6630. esac
  6631. # If we're using GNU nm, then use its standard symbol codes.
  6632. case `$NM -V 2>&1` in
  6633. *GNU* | *'with BFD'*)
  6634. symcode='[ABCDGIRSTW]' ;;
  6635. esac
  6636. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6637. # Gets list of data symbols to import.
  6638. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6639. # Adjust the below global symbol transforms to fixup imported variables.
  6640. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6641. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6642. lt_c_name_lib_hook="\
  6643. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6644. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6645. else
  6646. # Disable hooks by default.
  6647. lt_cv_sys_global_symbol_to_import=
  6648. lt_cdecl_hook=
  6649. lt_c_name_hook=
  6650. lt_c_name_lib_hook=
  6651. fi
  6652. # Transform an extracted symbol line into a proper C declaration.
  6653. # Some systems (esp. on ia64) link data and code symbols differently,
  6654. # so use this general approach.
  6655. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6656. $lt_cdecl_hook\
  6657. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6658. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6659. # Transform an extracted symbol line into symbol name and symbol address
  6660. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6661. $lt_c_name_hook\
  6662. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6663. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6664. # Transform an extracted symbol line into symbol name with lib prefix and
  6665. # symbol address.
  6666. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6667. $lt_c_name_lib_hook\
  6668. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6669. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6670. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6671. # Handle CRLF in mingw tool chain
  6672. opt_cr=
  6673. case $build_os in
  6674. mingw*)
  6675. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6676. ;;
  6677. esac
  6678. # Try without a prefix underscore, then with it.
  6679. for ac_symprfx in "" "_"; do
  6680. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6681. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6682. # Write the raw and C identifiers.
  6683. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6684. # Fake it for dumpbin and say T for any non-static function,
  6685. # D for any global variable and I for any imported variable.
  6686. # Also find C++ and __fastcall symbols from MSVC++,
  6687. # which start with @ or ?.
  6688. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6689. " {last_section=section; section=\$ 3};"\
  6690. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6691. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6692. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6693. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6694. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6695. " \$ 0!~/External *\|/{next};"\
  6696. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6697. " {if(hide[section]) next};"\
  6698. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6699. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6700. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6701. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6702. " ' prfx=^$ac_symprfx"
  6703. else
  6704. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6705. fi
  6706. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6707. # Check to see that the pipe works correctly.
  6708. pipe_works=no
  6709. rm -f conftest*
  6710. cat > conftest.$ac_ext <<_LT_EOF
  6711. #ifdef __cplusplus
  6712. extern "C" {
  6713. #endif
  6714. char nm_test_var;
  6715. void nm_test_func(void);
  6716. void nm_test_func(void){}
  6717. #ifdef __cplusplus
  6718. }
  6719. #endif
  6720. int main(){nm_test_var='a';nm_test_func();return(0);}
  6721. _LT_EOF
  6722. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6723. (eval $ac_compile) 2>&5
  6724. ac_status=$?
  6725. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6726. test $ac_status = 0; }; then
  6727. # Now try to grab the symbols.
  6728. nlist=conftest.nm
  6729. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6730. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6731. ac_status=$?
  6732. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6733. test $ac_status = 0; } && test -s "$nlist"; then
  6734. # Try sorting and uniquifying the output.
  6735. if sort "$nlist" | uniq > "$nlist"T; then
  6736. mv -f "$nlist"T "$nlist"
  6737. else
  6738. rm -f "$nlist"T
  6739. fi
  6740. # Make sure that we snagged all the symbols we need.
  6741. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6742. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6743. cat <<_LT_EOF > conftest.$ac_ext
  6744. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6745. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6746. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6747. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6748. # define LT_DLSYM_CONST
  6749. #elif defined __osf__
  6750. /* This system does not cope well with relocations in const data. */
  6751. # define LT_DLSYM_CONST
  6752. #else
  6753. # define LT_DLSYM_CONST const
  6754. #endif
  6755. #ifdef __cplusplus
  6756. extern "C" {
  6757. #endif
  6758. _LT_EOF
  6759. # Now generate the symbol file.
  6760. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6761. cat <<_LT_EOF >> conftest.$ac_ext
  6762. /* The mapping between symbol names and symbols. */
  6763. LT_DLSYM_CONST struct {
  6764. const char *name;
  6765. void *address;
  6766. }
  6767. lt__PROGRAM__LTX_preloaded_symbols[] =
  6768. {
  6769. { "@PROGRAM@", (void *) 0 },
  6770. _LT_EOF
  6771. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6772. cat <<\_LT_EOF >> conftest.$ac_ext
  6773. {0, (void *) 0}
  6774. };
  6775. /* This works around a problem in FreeBSD linker */
  6776. #ifdef FREEBSD_WORKAROUND
  6777. static const void *lt_preloaded_setup() {
  6778. return lt__PROGRAM__LTX_preloaded_symbols;
  6779. }
  6780. #endif
  6781. #ifdef __cplusplus
  6782. }
  6783. #endif
  6784. _LT_EOF
  6785. # Now try linking the two files.
  6786. mv conftest.$ac_objext conftstm.$ac_objext
  6787. lt_globsym_save_LIBS=$LIBS
  6788. lt_globsym_save_CFLAGS=$CFLAGS
  6789. LIBS=conftstm.$ac_objext
  6790. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6791. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6792. (eval $ac_link) 2>&5
  6793. ac_status=$?
  6794. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6795. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6796. pipe_works=yes
  6797. fi
  6798. LIBS=$lt_globsym_save_LIBS
  6799. CFLAGS=$lt_globsym_save_CFLAGS
  6800. else
  6801. echo "cannot find nm_test_func in $nlist" >&5
  6802. fi
  6803. else
  6804. echo "cannot find nm_test_var in $nlist" >&5
  6805. fi
  6806. else
  6807. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6808. fi
  6809. else
  6810. echo "$progname: failed program was:" >&5
  6811. cat conftest.$ac_ext >&5
  6812. fi
  6813. rm -rf conftest* conftst*
  6814. # Do not use the global_symbol_pipe unless it works.
  6815. if test yes = "$pipe_works"; then
  6816. break
  6817. else
  6818. lt_cv_sys_global_symbol_pipe=
  6819. fi
  6820. done
  6821. fi
  6822. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6823. lt_cv_sys_global_symbol_to_cdecl=
  6824. fi
  6825. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6827. printf "%s\n" "failed" >&6; }
  6828. else
  6829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6830. printf "%s\n" "ok" >&6; }
  6831. fi
  6832. # Response file support.
  6833. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6834. nm_file_list_spec='@'
  6835. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6836. nm_file_list_spec='@'
  6837. fi
  6838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6839. printf %s "checking for sysroot... " >&6; }
  6840. # Check whether --with-sysroot was given.
  6841. if test ${with_sysroot+y}
  6842. then :
  6843. withval=$with_sysroot;
  6844. else $as_nop
  6845. with_sysroot=no
  6846. fi
  6847. lt_sysroot=
  6848. case $with_sysroot in #(
  6849. yes)
  6850. if test yes = "$GCC"; then
  6851. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6852. fi
  6853. ;; #(
  6854. /*)
  6855. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6856. ;; #(
  6857. no|'')
  6858. ;; #(
  6859. *)
  6860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6861. printf "%s\n" "$with_sysroot" >&6; }
  6862. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6863. ;;
  6864. esac
  6865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6866. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6868. printf %s "checking for a working dd... " >&6; }
  6869. if test ${ac_cv_path_lt_DD+y}
  6870. then :
  6871. printf %s "(cached) " >&6
  6872. else $as_nop
  6873. printf 0123456789abcdef0123456789abcdef >conftest.i
  6874. cat conftest.i conftest.i >conftest2.i
  6875. : ${lt_DD:=$DD}
  6876. if test -z "$lt_DD"; then
  6877. ac_path_lt_DD_found=false
  6878. # Loop through the user's path and test for each of PROGNAME-LIST
  6879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6880. for as_dir in $PATH
  6881. do
  6882. IFS=$as_save_IFS
  6883. case $as_dir in #(((
  6884. '') as_dir=./ ;;
  6885. */) ;;
  6886. *) as_dir=$as_dir/ ;;
  6887. esac
  6888. for ac_prog in dd
  6889. do
  6890. for ac_exec_ext in '' $ac_executable_extensions; do
  6891. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6892. as_fn_executable_p "$ac_path_lt_DD" || continue
  6893. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6894. cmp -s conftest.i conftest.out \
  6895. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6896. fi
  6897. $ac_path_lt_DD_found && break 3
  6898. done
  6899. done
  6900. done
  6901. IFS=$as_save_IFS
  6902. if test -z "$ac_cv_path_lt_DD"; then
  6903. :
  6904. fi
  6905. else
  6906. ac_cv_path_lt_DD=$lt_DD
  6907. fi
  6908. rm -f conftest.i conftest2.i conftest.out
  6909. fi
  6910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6911. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6913. printf %s "checking how to truncate binary pipes... " >&6; }
  6914. if test ${lt_cv_truncate_bin+y}
  6915. then :
  6916. printf %s "(cached) " >&6
  6917. else $as_nop
  6918. printf 0123456789abcdef0123456789abcdef >conftest.i
  6919. cat conftest.i conftest.i >conftest2.i
  6920. lt_cv_truncate_bin=
  6921. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6922. cmp -s conftest.i conftest.out \
  6923. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6924. fi
  6925. rm -f conftest.i conftest2.i conftest.out
  6926. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6927. fi
  6928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6929. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6930. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6931. func_cc_basename ()
  6932. {
  6933. for cc_temp in $*""; do
  6934. case $cc_temp in
  6935. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6936. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6937. \-*) ;;
  6938. *) break;;
  6939. esac
  6940. done
  6941. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6942. }
  6943. # Check whether --enable-libtool-lock was given.
  6944. if test ${enable_libtool_lock+y}
  6945. then :
  6946. enableval=$enable_libtool_lock;
  6947. fi
  6948. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6949. # Some flags need to be propagated to the compiler or linker for good
  6950. # libtool support.
  6951. case $host in
  6952. ia64-*-hpux*)
  6953. # Find out what ABI is being produced by ac_compile, and set mode
  6954. # options accordingly.
  6955. echo 'int i;' > conftest.$ac_ext
  6956. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6957. (eval $ac_compile) 2>&5
  6958. ac_status=$?
  6959. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6960. test $ac_status = 0; }; then
  6961. case `/usr/bin/file conftest.$ac_objext` in
  6962. *ELF-32*)
  6963. HPUX_IA64_MODE=32
  6964. ;;
  6965. *ELF-64*)
  6966. HPUX_IA64_MODE=64
  6967. ;;
  6968. esac
  6969. fi
  6970. rm -rf conftest*
  6971. ;;
  6972. *-*-irix6*)
  6973. # Find out what ABI is being produced by ac_compile, and set linker
  6974. # options accordingly.
  6975. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6976. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6977. (eval $ac_compile) 2>&5
  6978. ac_status=$?
  6979. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6980. test $ac_status = 0; }; then
  6981. if test yes = "$lt_cv_prog_gnu_ld"; then
  6982. case `/usr/bin/file conftest.$ac_objext` in
  6983. *32-bit*)
  6984. LD="${LD-ld} -melf32bsmip"
  6985. ;;
  6986. *N32*)
  6987. LD="${LD-ld} -melf32bmipn32"
  6988. ;;
  6989. *64-bit*)
  6990. LD="${LD-ld} -melf64bmip"
  6991. ;;
  6992. esac
  6993. else
  6994. case `/usr/bin/file conftest.$ac_objext` in
  6995. *32-bit*)
  6996. LD="${LD-ld} -32"
  6997. ;;
  6998. *N32*)
  6999. LD="${LD-ld} -n32"
  7000. ;;
  7001. *64-bit*)
  7002. LD="${LD-ld} -64"
  7003. ;;
  7004. esac
  7005. fi
  7006. fi
  7007. rm -rf conftest*
  7008. ;;
  7009. mips64*-*linux*)
  7010. # Find out what ABI is being produced by ac_compile, and set linker
  7011. # options accordingly.
  7012. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7013. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7014. (eval $ac_compile) 2>&5
  7015. ac_status=$?
  7016. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7017. test $ac_status = 0; }; then
  7018. emul=elf
  7019. case `/usr/bin/file conftest.$ac_objext` in
  7020. *32-bit*)
  7021. emul="${emul}32"
  7022. ;;
  7023. *64-bit*)
  7024. emul="${emul}64"
  7025. ;;
  7026. esac
  7027. case `/usr/bin/file conftest.$ac_objext` in
  7028. *MSB*)
  7029. emul="${emul}btsmip"
  7030. ;;
  7031. *LSB*)
  7032. emul="${emul}ltsmip"
  7033. ;;
  7034. esac
  7035. case `/usr/bin/file conftest.$ac_objext` in
  7036. *N32*)
  7037. emul="${emul}n32"
  7038. ;;
  7039. esac
  7040. LD="${LD-ld} -m $emul"
  7041. fi
  7042. rm -rf conftest*
  7043. ;;
  7044. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  7045. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7046. # Find out what ABI is being produced by ac_compile, and set linker
  7047. # options accordingly. Note that the listed cases only cover the
  7048. # situations where additional linker options are needed (such as when
  7049. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  7050. # vice versa); the common cases where no linker options are needed do
  7051. # not appear in the list.
  7052. echo 'int i;' > conftest.$ac_ext
  7053. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7054. (eval $ac_compile) 2>&5
  7055. ac_status=$?
  7056. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7057. test $ac_status = 0; }; then
  7058. case `/usr/bin/file conftest.o` in
  7059. *32-bit*)
  7060. case $host in
  7061. x86_64-*kfreebsd*-gnu)
  7062. LD="${LD-ld} -m elf_i386_fbsd"
  7063. ;;
  7064. x86_64-*linux*)
  7065. case `/usr/bin/file conftest.o` in
  7066. *x86-64*)
  7067. LD="${LD-ld} -m elf32_x86_64"
  7068. ;;
  7069. *)
  7070. LD="${LD-ld} -m elf_i386"
  7071. ;;
  7072. esac
  7073. ;;
  7074. powerpc64le-*linux*)
  7075. LD="${LD-ld} -m elf32lppclinux"
  7076. ;;
  7077. powerpc64-*linux*)
  7078. LD="${LD-ld} -m elf32ppclinux"
  7079. ;;
  7080. s390x-*linux*)
  7081. LD="${LD-ld} -m elf_s390"
  7082. ;;
  7083. sparc64-*linux*)
  7084. LD="${LD-ld} -m elf32_sparc"
  7085. ;;
  7086. esac
  7087. ;;
  7088. *64-bit*)
  7089. case $host in
  7090. x86_64-*kfreebsd*-gnu)
  7091. LD="${LD-ld} -m elf_x86_64_fbsd"
  7092. ;;
  7093. x86_64-*linux*)
  7094. LD="${LD-ld} -m elf_x86_64"
  7095. ;;
  7096. powerpcle-*linux*)
  7097. LD="${LD-ld} -m elf64lppc"
  7098. ;;
  7099. powerpc-*linux*)
  7100. LD="${LD-ld} -m elf64ppc"
  7101. ;;
  7102. s390*-*linux*|s390*-*tpf*)
  7103. LD="${LD-ld} -m elf64_s390"
  7104. ;;
  7105. sparc*-*linux*)
  7106. LD="${LD-ld} -m elf64_sparc"
  7107. ;;
  7108. esac
  7109. ;;
  7110. esac
  7111. fi
  7112. rm -rf conftest*
  7113. ;;
  7114. *-*-sco3.2v5*)
  7115. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7116. SAVE_CFLAGS=$CFLAGS
  7117. CFLAGS="$CFLAGS -belf"
  7118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7119. printf %s "checking whether the C compiler needs -belf... " >&6; }
  7120. if test ${lt_cv_cc_needs_belf+y}
  7121. then :
  7122. printf %s "(cached) " >&6
  7123. else $as_nop
  7124. ac_ext=c
  7125. ac_cpp='$CPP $CPPFLAGS'
  7126. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7127. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7128. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7130. /* end confdefs.h. */
  7131. int
  7132. main (void)
  7133. {
  7134. ;
  7135. return 0;
  7136. }
  7137. _ACEOF
  7138. if ac_fn_c_try_link "$LINENO"
  7139. then :
  7140. lt_cv_cc_needs_belf=yes
  7141. else $as_nop
  7142. lt_cv_cc_needs_belf=no
  7143. fi
  7144. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7145. conftest$ac_exeext conftest.$ac_ext
  7146. ac_ext=c
  7147. ac_cpp='$CPP $CPPFLAGS'
  7148. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7149. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7150. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7151. fi
  7152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7153. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  7154. if test yes != "$lt_cv_cc_needs_belf"; then
  7155. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7156. CFLAGS=$SAVE_CFLAGS
  7157. fi
  7158. ;;
  7159. *-*solaris*)
  7160. # Find out what ABI is being produced by ac_compile, and set linker
  7161. # options accordingly.
  7162. echo 'int i;' > conftest.$ac_ext
  7163. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7164. (eval $ac_compile) 2>&5
  7165. ac_status=$?
  7166. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7167. test $ac_status = 0; }; then
  7168. case `/usr/bin/file conftest.o` in
  7169. *64-bit*)
  7170. case $lt_cv_prog_gnu_ld in
  7171. yes*)
  7172. case $host in
  7173. i?86-*-solaris*|x86_64-*-solaris*)
  7174. LD="${LD-ld} -m elf_x86_64"
  7175. ;;
  7176. sparc*-*-solaris*)
  7177. LD="${LD-ld} -m elf64_sparc"
  7178. ;;
  7179. esac
  7180. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  7181. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7182. LD=${LD-ld}_sol2
  7183. fi
  7184. ;;
  7185. *)
  7186. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7187. LD="${LD-ld} -64"
  7188. fi
  7189. ;;
  7190. esac
  7191. ;;
  7192. esac
  7193. fi
  7194. rm -rf conftest*
  7195. ;;
  7196. esac
  7197. need_locks=$enable_libtool_lock
  7198. if test -n "$ac_tool_prefix"; then
  7199. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7200. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7202. printf %s "checking for $ac_word... " >&6; }
  7203. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  7204. then :
  7205. printf %s "(cached) " >&6
  7206. else $as_nop
  7207. if test -n "$MANIFEST_TOOL"; then
  7208. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7209. else
  7210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7211. for as_dir in $PATH
  7212. do
  7213. IFS=$as_save_IFS
  7214. case $as_dir in #(((
  7215. '') as_dir=./ ;;
  7216. */) ;;
  7217. *) as_dir=$as_dir/ ;;
  7218. esac
  7219. for ac_exec_ext in '' $ac_executable_extensions; do
  7220. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7221. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7222. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7223. break 2
  7224. fi
  7225. done
  7226. done
  7227. IFS=$as_save_IFS
  7228. fi
  7229. fi
  7230. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7231. if test -n "$MANIFEST_TOOL"; then
  7232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7233. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  7234. else
  7235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7236. printf "%s\n" "no" >&6; }
  7237. fi
  7238. fi
  7239. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7240. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7241. # Extract the first word of "mt", so it can be a program name with args.
  7242. set dummy mt; ac_word=$2
  7243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7244. printf %s "checking for $ac_word... " >&6; }
  7245. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  7246. then :
  7247. printf %s "(cached) " >&6
  7248. else $as_nop
  7249. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7250. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7251. else
  7252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7253. for as_dir in $PATH
  7254. do
  7255. IFS=$as_save_IFS
  7256. case $as_dir in #(((
  7257. '') as_dir=./ ;;
  7258. */) ;;
  7259. *) as_dir=$as_dir/ ;;
  7260. esac
  7261. for ac_exec_ext in '' $ac_executable_extensions; do
  7262. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7263. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7264. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7265. break 2
  7266. fi
  7267. done
  7268. done
  7269. IFS=$as_save_IFS
  7270. fi
  7271. fi
  7272. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7273. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7275. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  7276. else
  7277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7278. printf "%s\n" "no" >&6; }
  7279. fi
  7280. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7281. MANIFEST_TOOL=":"
  7282. else
  7283. case $cross_compiling:$ac_tool_warned in
  7284. yes:)
  7285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7286. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7287. ac_tool_warned=yes ;;
  7288. esac
  7289. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7290. fi
  7291. else
  7292. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7293. fi
  7294. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7296. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7297. if test ${lt_cv_path_mainfest_tool+y}
  7298. then :
  7299. printf %s "(cached) " >&6
  7300. else $as_nop
  7301. lt_cv_path_mainfest_tool=no
  7302. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7303. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7304. cat conftest.err >&5
  7305. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7306. lt_cv_path_mainfest_tool=yes
  7307. fi
  7308. rm -f conftest*
  7309. fi
  7310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7311. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  7312. if test yes != "$lt_cv_path_mainfest_tool"; then
  7313. MANIFEST_TOOL=:
  7314. fi
  7315. case $host_os in
  7316. rhapsody* | darwin*)
  7317. if test -n "$ac_tool_prefix"; then
  7318. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7319. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7321. printf %s "checking for $ac_word... " >&6; }
  7322. if test ${ac_cv_prog_DSYMUTIL+y}
  7323. then :
  7324. printf %s "(cached) " >&6
  7325. else $as_nop
  7326. if test -n "$DSYMUTIL"; then
  7327. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7328. else
  7329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7330. for as_dir in $PATH
  7331. do
  7332. IFS=$as_save_IFS
  7333. case $as_dir in #(((
  7334. '') as_dir=./ ;;
  7335. */) ;;
  7336. *) as_dir=$as_dir/ ;;
  7337. esac
  7338. for ac_exec_ext in '' $ac_executable_extensions; do
  7339. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7340. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7341. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7342. break 2
  7343. fi
  7344. done
  7345. done
  7346. IFS=$as_save_IFS
  7347. fi
  7348. fi
  7349. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7350. if test -n "$DSYMUTIL"; then
  7351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7352. printf "%s\n" "$DSYMUTIL" >&6; }
  7353. else
  7354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7355. printf "%s\n" "no" >&6; }
  7356. fi
  7357. fi
  7358. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7359. ac_ct_DSYMUTIL=$DSYMUTIL
  7360. # Extract the first word of "dsymutil", so it can be a program name with args.
  7361. set dummy dsymutil; ac_word=$2
  7362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7363. printf %s "checking for $ac_word... " >&6; }
  7364. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  7365. then :
  7366. printf %s "(cached) " >&6
  7367. else $as_nop
  7368. if test -n "$ac_ct_DSYMUTIL"; then
  7369. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7370. else
  7371. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7372. for as_dir in $PATH
  7373. do
  7374. IFS=$as_save_IFS
  7375. case $as_dir in #(((
  7376. '') as_dir=./ ;;
  7377. */) ;;
  7378. *) as_dir=$as_dir/ ;;
  7379. esac
  7380. for ac_exec_ext in '' $ac_executable_extensions; do
  7381. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7382. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7383. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7384. break 2
  7385. fi
  7386. done
  7387. done
  7388. IFS=$as_save_IFS
  7389. fi
  7390. fi
  7391. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7392. if test -n "$ac_ct_DSYMUTIL"; then
  7393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7394. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  7395. else
  7396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7397. printf "%s\n" "no" >&6; }
  7398. fi
  7399. if test "x$ac_ct_DSYMUTIL" = x; then
  7400. DSYMUTIL=":"
  7401. else
  7402. case $cross_compiling:$ac_tool_warned in
  7403. yes:)
  7404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7405. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7406. ac_tool_warned=yes ;;
  7407. esac
  7408. DSYMUTIL=$ac_ct_DSYMUTIL
  7409. fi
  7410. else
  7411. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7412. fi
  7413. if test -n "$ac_tool_prefix"; then
  7414. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7415. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7417. printf %s "checking for $ac_word... " >&6; }
  7418. if test ${ac_cv_prog_NMEDIT+y}
  7419. then :
  7420. printf %s "(cached) " >&6
  7421. else $as_nop
  7422. if test -n "$NMEDIT"; then
  7423. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7424. else
  7425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7426. for as_dir in $PATH
  7427. do
  7428. IFS=$as_save_IFS
  7429. case $as_dir in #(((
  7430. '') as_dir=./ ;;
  7431. */) ;;
  7432. *) as_dir=$as_dir/ ;;
  7433. esac
  7434. for ac_exec_ext in '' $ac_executable_extensions; do
  7435. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7436. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7437. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7438. break 2
  7439. fi
  7440. done
  7441. done
  7442. IFS=$as_save_IFS
  7443. fi
  7444. fi
  7445. NMEDIT=$ac_cv_prog_NMEDIT
  7446. if test -n "$NMEDIT"; then
  7447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7448. printf "%s\n" "$NMEDIT" >&6; }
  7449. else
  7450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7451. printf "%s\n" "no" >&6; }
  7452. fi
  7453. fi
  7454. if test -z "$ac_cv_prog_NMEDIT"; then
  7455. ac_ct_NMEDIT=$NMEDIT
  7456. # Extract the first word of "nmedit", so it can be a program name with args.
  7457. set dummy nmedit; ac_word=$2
  7458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7459. printf %s "checking for $ac_word... " >&6; }
  7460. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  7461. then :
  7462. printf %s "(cached) " >&6
  7463. else $as_nop
  7464. if test -n "$ac_ct_NMEDIT"; then
  7465. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7466. else
  7467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7468. for as_dir in $PATH
  7469. do
  7470. IFS=$as_save_IFS
  7471. case $as_dir in #(((
  7472. '') as_dir=./ ;;
  7473. */) ;;
  7474. *) as_dir=$as_dir/ ;;
  7475. esac
  7476. for ac_exec_ext in '' $ac_executable_extensions; do
  7477. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7478. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7479. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7480. break 2
  7481. fi
  7482. done
  7483. done
  7484. IFS=$as_save_IFS
  7485. fi
  7486. fi
  7487. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7488. if test -n "$ac_ct_NMEDIT"; then
  7489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7490. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  7491. else
  7492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7493. printf "%s\n" "no" >&6; }
  7494. fi
  7495. if test "x$ac_ct_NMEDIT" = x; then
  7496. NMEDIT=":"
  7497. else
  7498. case $cross_compiling:$ac_tool_warned in
  7499. yes:)
  7500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7501. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7502. ac_tool_warned=yes ;;
  7503. esac
  7504. NMEDIT=$ac_ct_NMEDIT
  7505. fi
  7506. else
  7507. NMEDIT="$ac_cv_prog_NMEDIT"
  7508. fi
  7509. if test -n "$ac_tool_prefix"; then
  7510. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7511. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7513. printf %s "checking for $ac_word... " >&6; }
  7514. if test ${ac_cv_prog_LIPO+y}
  7515. then :
  7516. printf %s "(cached) " >&6
  7517. else $as_nop
  7518. if test -n "$LIPO"; then
  7519. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7520. else
  7521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7522. for as_dir in $PATH
  7523. do
  7524. IFS=$as_save_IFS
  7525. case $as_dir in #(((
  7526. '') as_dir=./ ;;
  7527. */) ;;
  7528. *) as_dir=$as_dir/ ;;
  7529. esac
  7530. for ac_exec_ext in '' $ac_executable_extensions; do
  7531. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7532. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7533. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7534. break 2
  7535. fi
  7536. done
  7537. done
  7538. IFS=$as_save_IFS
  7539. fi
  7540. fi
  7541. LIPO=$ac_cv_prog_LIPO
  7542. if test -n "$LIPO"; then
  7543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7544. printf "%s\n" "$LIPO" >&6; }
  7545. else
  7546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7547. printf "%s\n" "no" >&6; }
  7548. fi
  7549. fi
  7550. if test -z "$ac_cv_prog_LIPO"; then
  7551. ac_ct_LIPO=$LIPO
  7552. # Extract the first word of "lipo", so it can be a program name with args.
  7553. set dummy lipo; ac_word=$2
  7554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7555. printf %s "checking for $ac_word... " >&6; }
  7556. if test ${ac_cv_prog_ac_ct_LIPO+y}
  7557. then :
  7558. printf %s "(cached) " >&6
  7559. else $as_nop
  7560. if test -n "$ac_ct_LIPO"; then
  7561. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7562. else
  7563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7564. for as_dir in $PATH
  7565. do
  7566. IFS=$as_save_IFS
  7567. case $as_dir in #(((
  7568. '') as_dir=./ ;;
  7569. */) ;;
  7570. *) as_dir=$as_dir/ ;;
  7571. esac
  7572. for ac_exec_ext in '' $ac_executable_extensions; do
  7573. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7574. ac_cv_prog_ac_ct_LIPO="lipo"
  7575. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7576. break 2
  7577. fi
  7578. done
  7579. done
  7580. IFS=$as_save_IFS
  7581. fi
  7582. fi
  7583. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7584. if test -n "$ac_ct_LIPO"; then
  7585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7586. printf "%s\n" "$ac_ct_LIPO" >&6; }
  7587. else
  7588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7589. printf "%s\n" "no" >&6; }
  7590. fi
  7591. if test "x$ac_ct_LIPO" = x; then
  7592. LIPO=":"
  7593. else
  7594. case $cross_compiling:$ac_tool_warned in
  7595. yes:)
  7596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7597. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7598. ac_tool_warned=yes ;;
  7599. esac
  7600. LIPO=$ac_ct_LIPO
  7601. fi
  7602. else
  7603. LIPO="$ac_cv_prog_LIPO"
  7604. fi
  7605. if test -n "$ac_tool_prefix"; then
  7606. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7607. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7609. printf %s "checking for $ac_word... " >&6; }
  7610. if test ${ac_cv_prog_OTOOL+y}
  7611. then :
  7612. printf %s "(cached) " >&6
  7613. else $as_nop
  7614. if test -n "$OTOOL"; then
  7615. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7616. else
  7617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7618. for as_dir in $PATH
  7619. do
  7620. IFS=$as_save_IFS
  7621. case $as_dir in #(((
  7622. '') as_dir=./ ;;
  7623. */) ;;
  7624. *) as_dir=$as_dir/ ;;
  7625. esac
  7626. for ac_exec_ext in '' $ac_executable_extensions; do
  7627. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7628. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7629. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7630. break 2
  7631. fi
  7632. done
  7633. done
  7634. IFS=$as_save_IFS
  7635. fi
  7636. fi
  7637. OTOOL=$ac_cv_prog_OTOOL
  7638. if test -n "$OTOOL"; then
  7639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7640. printf "%s\n" "$OTOOL" >&6; }
  7641. else
  7642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7643. printf "%s\n" "no" >&6; }
  7644. fi
  7645. fi
  7646. if test -z "$ac_cv_prog_OTOOL"; then
  7647. ac_ct_OTOOL=$OTOOL
  7648. # Extract the first word of "otool", so it can be a program name with args.
  7649. set dummy otool; ac_word=$2
  7650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7651. printf %s "checking for $ac_word... " >&6; }
  7652. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  7653. then :
  7654. printf %s "(cached) " >&6
  7655. else $as_nop
  7656. if test -n "$ac_ct_OTOOL"; then
  7657. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7658. else
  7659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7660. for as_dir in $PATH
  7661. do
  7662. IFS=$as_save_IFS
  7663. case $as_dir in #(((
  7664. '') as_dir=./ ;;
  7665. */) ;;
  7666. *) as_dir=$as_dir/ ;;
  7667. esac
  7668. for ac_exec_ext in '' $ac_executable_extensions; do
  7669. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7670. ac_cv_prog_ac_ct_OTOOL="otool"
  7671. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7672. break 2
  7673. fi
  7674. done
  7675. done
  7676. IFS=$as_save_IFS
  7677. fi
  7678. fi
  7679. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7680. if test -n "$ac_ct_OTOOL"; then
  7681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7682. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  7683. else
  7684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7685. printf "%s\n" "no" >&6; }
  7686. fi
  7687. if test "x$ac_ct_OTOOL" = x; then
  7688. OTOOL=":"
  7689. else
  7690. case $cross_compiling:$ac_tool_warned in
  7691. yes:)
  7692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7693. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7694. ac_tool_warned=yes ;;
  7695. esac
  7696. OTOOL=$ac_ct_OTOOL
  7697. fi
  7698. else
  7699. OTOOL="$ac_cv_prog_OTOOL"
  7700. fi
  7701. if test -n "$ac_tool_prefix"; then
  7702. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7703. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7705. printf %s "checking for $ac_word... " >&6; }
  7706. if test ${ac_cv_prog_OTOOL64+y}
  7707. then :
  7708. printf %s "(cached) " >&6
  7709. else $as_nop
  7710. if test -n "$OTOOL64"; then
  7711. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7712. else
  7713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7714. for as_dir in $PATH
  7715. do
  7716. IFS=$as_save_IFS
  7717. case $as_dir in #(((
  7718. '') as_dir=./ ;;
  7719. */) ;;
  7720. *) as_dir=$as_dir/ ;;
  7721. esac
  7722. for ac_exec_ext in '' $ac_executable_extensions; do
  7723. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7724. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7725. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7726. break 2
  7727. fi
  7728. done
  7729. done
  7730. IFS=$as_save_IFS
  7731. fi
  7732. fi
  7733. OTOOL64=$ac_cv_prog_OTOOL64
  7734. if test -n "$OTOOL64"; then
  7735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7736. printf "%s\n" "$OTOOL64" >&6; }
  7737. else
  7738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7739. printf "%s\n" "no" >&6; }
  7740. fi
  7741. fi
  7742. if test -z "$ac_cv_prog_OTOOL64"; then
  7743. ac_ct_OTOOL64=$OTOOL64
  7744. # Extract the first word of "otool64", so it can be a program name with args.
  7745. set dummy otool64; ac_word=$2
  7746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7747. printf %s "checking for $ac_word... " >&6; }
  7748. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7749. then :
  7750. printf %s "(cached) " >&6
  7751. else $as_nop
  7752. if test -n "$ac_ct_OTOOL64"; then
  7753. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7754. else
  7755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7756. for as_dir in $PATH
  7757. do
  7758. IFS=$as_save_IFS
  7759. case $as_dir in #(((
  7760. '') as_dir=./ ;;
  7761. */) ;;
  7762. *) as_dir=$as_dir/ ;;
  7763. esac
  7764. for ac_exec_ext in '' $ac_executable_extensions; do
  7765. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7766. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7767. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7768. break 2
  7769. fi
  7770. done
  7771. done
  7772. IFS=$as_save_IFS
  7773. fi
  7774. fi
  7775. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7776. if test -n "$ac_ct_OTOOL64"; then
  7777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7778. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7779. else
  7780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7781. printf "%s\n" "no" >&6; }
  7782. fi
  7783. if test "x$ac_ct_OTOOL64" = x; then
  7784. OTOOL64=":"
  7785. else
  7786. case $cross_compiling:$ac_tool_warned in
  7787. yes:)
  7788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7789. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7790. ac_tool_warned=yes ;;
  7791. esac
  7792. OTOOL64=$ac_ct_OTOOL64
  7793. fi
  7794. else
  7795. OTOOL64="$ac_cv_prog_OTOOL64"
  7796. fi
  7797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7798. printf %s "checking for -single_module linker flag... " >&6; }
  7799. if test ${lt_cv_apple_cc_single_mod+y}
  7800. then :
  7801. printf %s "(cached) " >&6
  7802. else $as_nop
  7803. lt_cv_apple_cc_single_mod=no
  7804. if test -z "$LT_MULTI_MODULE"; then
  7805. # By default we will add the -single_module flag. You can override
  7806. # by either setting the environment variable LT_MULTI_MODULE
  7807. # non-empty at configure time, or by adding -multi_module to the
  7808. # link flags.
  7809. rm -rf libconftest.dylib*
  7810. echo "int foo(void){return 1;}" > conftest.c
  7811. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7812. -dynamiclib -Wl,-single_module conftest.c" >&5
  7813. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7814. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7815. _lt_result=$?
  7816. # If there is a non-empty error log, and "single_module"
  7817. # appears in it, assume the flag caused a linker warning
  7818. if test -s conftest.err && $GREP single_module conftest.err; then
  7819. cat conftest.err >&5
  7820. # Otherwise, if the output was created with a 0 exit code from
  7821. # the compiler, it worked.
  7822. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7823. lt_cv_apple_cc_single_mod=yes
  7824. else
  7825. cat conftest.err >&5
  7826. fi
  7827. rm -rf libconftest.dylib*
  7828. rm -f conftest.*
  7829. fi
  7830. fi
  7831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7832. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7834. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7835. if test ${lt_cv_ld_exported_symbols_list+y}
  7836. then :
  7837. printf %s "(cached) " >&6
  7838. else $as_nop
  7839. lt_cv_ld_exported_symbols_list=no
  7840. save_LDFLAGS=$LDFLAGS
  7841. echo "_main" > conftest.sym
  7842. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7844. /* end confdefs.h. */
  7845. int
  7846. main (void)
  7847. {
  7848. ;
  7849. return 0;
  7850. }
  7851. _ACEOF
  7852. if ac_fn_c_try_link "$LINENO"
  7853. then :
  7854. lt_cv_ld_exported_symbols_list=yes
  7855. else $as_nop
  7856. lt_cv_ld_exported_symbols_list=no
  7857. fi
  7858. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7859. conftest$ac_exeext conftest.$ac_ext
  7860. LDFLAGS=$save_LDFLAGS
  7861. fi
  7862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7863. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7865. printf %s "checking for -force_load linker flag... " >&6; }
  7866. if test ${lt_cv_ld_force_load+y}
  7867. then :
  7868. printf %s "(cached) " >&6
  7869. else $as_nop
  7870. lt_cv_ld_force_load=no
  7871. cat > conftest.c << _LT_EOF
  7872. int forced_loaded() { return 2;}
  7873. _LT_EOF
  7874. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7875. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7876. echo "$AR cru libconftest.a conftest.o" >&5
  7877. $AR cru libconftest.a conftest.o 2>&5
  7878. echo "$RANLIB libconftest.a" >&5
  7879. $RANLIB libconftest.a 2>&5
  7880. cat > conftest.c << _LT_EOF
  7881. int main() { return 0;}
  7882. _LT_EOF
  7883. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7884. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7885. _lt_result=$?
  7886. if test -s conftest.err && $GREP force_load conftest.err; then
  7887. cat conftest.err >&5
  7888. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7889. lt_cv_ld_force_load=yes
  7890. else
  7891. cat conftest.err >&5
  7892. fi
  7893. rm -f conftest.err libconftest.a conftest conftest.c
  7894. rm -rf conftest.dSYM
  7895. fi
  7896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7897. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7898. case $host_os in
  7899. rhapsody* | darwin1.[012])
  7900. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7901. darwin1.*)
  7902. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7903. darwin*) # darwin 5.x on
  7904. # if running on 10.5 or later, the deployment target defaults
  7905. # to the OS version, if on x86, and 10.4, the deployment
  7906. # target defaults to 10.4. Don't you love it?
  7907. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7908. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7909. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7910. 10.[012][,.]*)
  7911. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7912. 10.*)
  7913. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7914. esac
  7915. ;;
  7916. esac
  7917. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7918. _lt_dar_single_mod='$single_module'
  7919. fi
  7920. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7921. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7922. else
  7923. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7924. fi
  7925. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7926. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7927. else
  7928. _lt_dsymutil=
  7929. fi
  7930. ;;
  7931. esac
  7932. # func_munge_path_list VARIABLE PATH
  7933. # -----------------------------------
  7934. # VARIABLE is name of variable containing _space_ separated list of
  7935. # directories to be munged by the contents of PATH, which is string
  7936. # having a format:
  7937. # "DIR[:DIR]:"
  7938. # string "DIR[ DIR]" will be prepended to VARIABLE
  7939. # ":DIR[:DIR]"
  7940. # string "DIR[ DIR]" will be appended to VARIABLE
  7941. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7942. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7943. # "DIRA[ DIRA]" will be appended to VARIABLE
  7944. # "DIR[:DIR]"
  7945. # VARIABLE will be replaced by "DIR[ DIR]"
  7946. func_munge_path_list ()
  7947. {
  7948. case x$2 in
  7949. x)
  7950. ;;
  7951. *:)
  7952. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7953. ;;
  7954. x:*)
  7955. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7956. ;;
  7957. *::*)
  7958. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7959. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7960. ;;
  7961. *)
  7962. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7963. ;;
  7964. esac
  7965. }
  7966. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7967. "
  7968. if test "x$ac_cv_header_dlfcn_h" = xyes
  7969. then :
  7970. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7971. fi
  7972. # Set options
  7973. # Check whether --enable-static was given.
  7974. if test ${enable_static+y}
  7975. then :
  7976. enableval=$enable_static; p=${PACKAGE-default}
  7977. case $enableval in
  7978. yes) enable_static=yes ;;
  7979. no) enable_static=no ;;
  7980. *)
  7981. enable_static=no
  7982. # Look at the argument we got. We use all the common list separators.
  7983. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7984. for pkg in $enableval; do
  7985. IFS=$lt_save_ifs
  7986. if test "X$pkg" = "X$p"; then
  7987. enable_static=yes
  7988. fi
  7989. done
  7990. IFS=$lt_save_ifs
  7991. ;;
  7992. esac
  7993. else $as_nop
  7994. enable_static=no
  7995. fi
  7996. # Check whether --with-pic was given.
  7997. if test ${with_pic+y}
  7998. then :
  7999. withval=$with_pic; lt_p=${PACKAGE-default}
  8000. case $withval in
  8001. yes|no) pic_mode=$withval ;;
  8002. *)
  8003. pic_mode=default
  8004. # Look at the argument we got. We use all the common list separators.
  8005. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8006. for lt_pkg in $withval; do
  8007. IFS=$lt_save_ifs
  8008. if test "X$lt_pkg" = "X$lt_p"; then
  8009. pic_mode=yes
  8010. fi
  8011. done
  8012. IFS=$lt_save_ifs
  8013. ;;
  8014. esac
  8015. else $as_nop
  8016. pic_mode=yes
  8017. fi
  8018. enable_dlopen=no
  8019. enable_win32_dll=no
  8020. # Check whether --enable-shared was given.
  8021. if test ${enable_shared+y}
  8022. then :
  8023. enableval=$enable_shared; p=${PACKAGE-default}
  8024. case $enableval in
  8025. yes) enable_shared=yes ;;
  8026. no) enable_shared=no ;;
  8027. *)
  8028. enable_shared=no
  8029. # Look at the argument we got. We use all the common list separators.
  8030. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8031. for pkg in $enableval; do
  8032. IFS=$lt_save_ifs
  8033. if test "X$pkg" = "X$p"; then
  8034. enable_shared=yes
  8035. fi
  8036. done
  8037. IFS=$lt_save_ifs
  8038. ;;
  8039. esac
  8040. else $as_nop
  8041. enable_shared=yes
  8042. fi
  8043. # Check whether --enable-fast-install was given.
  8044. if test ${enable_fast_install+y}
  8045. then :
  8046. enableval=$enable_fast_install; p=${PACKAGE-default}
  8047. case $enableval in
  8048. yes) enable_fast_install=yes ;;
  8049. no) enable_fast_install=no ;;
  8050. *)
  8051. enable_fast_install=no
  8052. # Look at the argument we got. We use all the common list separators.
  8053. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8054. for pkg in $enableval; do
  8055. IFS=$lt_save_ifs
  8056. if test "X$pkg" = "X$p"; then
  8057. enable_fast_install=yes
  8058. fi
  8059. done
  8060. IFS=$lt_save_ifs
  8061. ;;
  8062. esac
  8063. else $as_nop
  8064. enable_fast_install=yes
  8065. fi
  8066. shared_archive_member_spec=
  8067. case $host,$enable_shared in
  8068. power*-*-aix[5-9]*,yes)
  8069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  8070. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  8071. # Check whether --with-aix-soname was given.
  8072. if test ${with_aix_soname+y}
  8073. then :
  8074. withval=$with_aix_soname; case $withval in
  8075. aix|svr4|both)
  8076. ;;
  8077. *)
  8078. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  8079. ;;
  8080. esac
  8081. lt_cv_with_aix_soname=$with_aix_soname
  8082. else $as_nop
  8083. if test ${lt_cv_with_aix_soname+y}
  8084. then :
  8085. printf %s "(cached) " >&6
  8086. else $as_nop
  8087. lt_cv_with_aix_soname=aix
  8088. fi
  8089. with_aix_soname=$lt_cv_with_aix_soname
  8090. fi
  8091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  8092. printf "%s\n" "$with_aix_soname" >&6; }
  8093. if test aix != "$with_aix_soname"; then
  8094. # For the AIX way of multilib, we name the shared archive member
  8095. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  8096. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  8097. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  8098. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  8099. if test 64 = "${OBJECT_MODE-32}"; then
  8100. shared_archive_member_spec=shr_64
  8101. else
  8102. shared_archive_member_spec=shr
  8103. fi
  8104. fi
  8105. ;;
  8106. *)
  8107. with_aix_soname=aix
  8108. ;;
  8109. esac
  8110. # This can be used to rebuild libtool when needed
  8111. LIBTOOL_DEPS=$ltmain
  8112. # Always use our own libtool.
  8113. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8114. test -z "$LN_S" && LN_S="ln -s"
  8115. if test -n "${ZSH_VERSION+set}"; then
  8116. setopt NO_GLOB_SUBST
  8117. fi
  8118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8119. printf %s "checking for objdir... " >&6; }
  8120. if test ${lt_cv_objdir+y}
  8121. then :
  8122. printf %s "(cached) " >&6
  8123. else $as_nop
  8124. rm -f .libs 2>/dev/null
  8125. mkdir .libs 2>/dev/null
  8126. if test -d .libs; then
  8127. lt_cv_objdir=.libs
  8128. else
  8129. # MS-DOS does not allow filenames that begin with a dot.
  8130. lt_cv_objdir=_libs
  8131. fi
  8132. rmdir .libs 2>/dev/null
  8133. fi
  8134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8135. printf "%s\n" "$lt_cv_objdir" >&6; }
  8136. objdir=$lt_cv_objdir
  8137. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  8138. case $host_os in
  8139. aix3*)
  8140. # AIX sometimes has problems with the GCC collect2 program. For some
  8141. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8142. # vanish in a puff of smoke.
  8143. if test set != "${COLLECT_NAMES+set}"; then
  8144. COLLECT_NAMES=
  8145. export COLLECT_NAMES
  8146. fi
  8147. ;;
  8148. esac
  8149. # Global variables:
  8150. ofile=libtool
  8151. can_build_shared=yes
  8152. # All known linkers require a '.a' archive for static linking (except MSVC,
  8153. # which needs '.lib').
  8154. libext=a
  8155. with_gnu_ld=$lt_cv_prog_gnu_ld
  8156. old_CC=$CC
  8157. old_CFLAGS=$CFLAGS
  8158. # Set sane defaults for various variables
  8159. test -z "$CC" && CC=cc
  8160. test -z "$LTCC" && LTCC=$CC
  8161. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8162. test -z "$LD" && LD=ld
  8163. test -z "$ac_objext" && ac_objext=o
  8164. func_cc_basename $compiler
  8165. cc_basename=$func_cc_basename_result
  8166. # Only perform the check for file, if the check method requires it
  8167. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8168. case $deplibs_check_method in
  8169. file_magic*)
  8170. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8172. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  8173. if test ${lt_cv_path_MAGIC_CMD+y}
  8174. then :
  8175. printf %s "(cached) " >&6
  8176. else $as_nop
  8177. case $MAGIC_CMD in
  8178. [\\/*] | ?:[\\/]*)
  8179. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8180. ;;
  8181. *)
  8182. lt_save_MAGIC_CMD=$MAGIC_CMD
  8183. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8184. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8185. for ac_dir in $ac_dummy; do
  8186. IFS=$lt_save_ifs
  8187. test -z "$ac_dir" && ac_dir=.
  8188. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8189. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8190. if test -n "$file_magic_test_file"; then
  8191. case $deplibs_check_method in
  8192. "file_magic "*)
  8193. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8194. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8195. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8196. $EGREP "$file_magic_regex" > /dev/null; then
  8197. :
  8198. else
  8199. cat <<_LT_EOF 1>&2
  8200. *** Warning: the command libtool uses to detect shared libraries,
  8201. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8202. *** The result is that libtool may fail to recognize shared libraries
  8203. *** as such. This will affect the creation of libtool libraries that
  8204. *** depend on shared libraries, but programs linked with such libtool
  8205. *** libraries will work regardless of this problem. Nevertheless, you
  8206. *** may want to report the problem to your system manager and/or to
  8207. *** bug-libtool@gnu.org
  8208. _LT_EOF
  8209. fi ;;
  8210. esac
  8211. fi
  8212. break
  8213. fi
  8214. done
  8215. IFS=$lt_save_ifs
  8216. MAGIC_CMD=$lt_save_MAGIC_CMD
  8217. ;;
  8218. esac
  8219. fi
  8220. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8221. if test -n "$MAGIC_CMD"; then
  8222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8223. printf "%s\n" "$MAGIC_CMD" >&6; }
  8224. else
  8225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8226. printf "%s\n" "no" >&6; }
  8227. fi
  8228. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8229. if test -n "$ac_tool_prefix"; then
  8230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8231. printf %s "checking for file... " >&6; }
  8232. if test ${lt_cv_path_MAGIC_CMD+y}
  8233. then :
  8234. printf %s "(cached) " >&6
  8235. else $as_nop
  8236. case $MAGIC_CMD in
  8237. [\\/*] | ?:[\\/]*)
  8238. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8239. ;;
  8240. *)
  8241. lt_save_MAGIC_CMD=$MAGIC_CMD
  8242. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8243. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8244. for ac_dir in $ac_dummy; do
  8245. IFS=$lt_save_ifs
  8246. test -z "$ac_dir" && ac_dir=.
  8247. if test -f "$ac_dir/file"; then
  8248. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8249. if test -n "$file_magic_test_file"; then
  8250. case $deplibs_check_method in
  8251. "file_magic "*)
  8252. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8253. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8254. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8255. $EGREP "$file_magic_regex" > /dev/null; then
  8256. :
  8257. else
  8258. cat <<_LT_EOF 1>&2
  8259. *** Warning: the command libtool uses to detect shared libraries,
  8260. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8261. *** The result is that libtool may fail to recognize shared libraries
  8262. *** as such. This will affect the creation of libtool libraries that
  8263. *** depend on shared libraries, but programs linked with such libtool
  8264. *** libraries will work regardless of this problem. Nevertheless, you
  8265. *** may want to report the problem to your system manager and/or to
  8266. *** bug-libtool@gnu.org
  8267. _LT_EOF
  8268. fi ;;
  8269. esac
  8270. fi
  8271. break
  8272. fi
  8273. done
  8274. IFS=$lt_save_ifs
  8275. MAGIC_CMD=$lt_save_MAGIC_CMD
  8276. ;;
  8277. esac
  8278. fi
  8279. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8280. if test -n "$MAGIC_CMD"; then
  8281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8282. printf "%s\n" "$MAGIC_CMD" >&6; }
  8283. else
  8284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8285. printf "%s\n" "no" >&6; }
  8286. fi
  8287. else
  8288. MAGIC_CMD=:
  8289. fi
  8290. fi
  8291. fi
  8292. ;;
  8293. esac
  8294. # Use C for the default configuration in the libtool script
  8295. lt_save_CC=$CC
  8296. ac_ext=c
  8297. ac_cpp='$CPP $CPPFLAGS'
  8298. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8299. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8300. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8301. # Source file extension for C test sources.
  8302. ac_ext=c
  8303. # Object file extension for compiled C test sources.
  8304. objext=o
  8305. objext=$objext
  8306. # Code to be used in simple compile tests
  8307. lt_simple_compile_test_code="int some_variable = 0;"
  8308. # Code to be used in simple link tests
  8309. lt_simple_link_test_code='int main(){return(0);}'
  8310. # If no C compiler was specified, use CC.
  8311. LTCC=${LTCC-"$CC"}
  8312. # If no C compiler flags were specified, use CFLAGS.
  8313. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8314. # Allow CC to be a program name with arguments.
  8315. compiler=$CC
  8316. # Save the default compiler, since it gets overwritten when the other
  8317. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8318. compiler_DEFAULT=$CC
  8319. # save warnings/boilerplate of simple test code
  8320. ac_outfile=conftest.$ac_objext
  8321. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8322. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8323. _lt_compiler_boilerplate=`cat conftest.err`
  8324. $RM conftest*
  8325. ac_outfile=conftest.$ac_objext
  8326. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8327. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8328. _lt_linker_boilerplate=`cat conftest.err`
  8329. $RM -r conftest*
  8330. ## CAVEAT EMPTOR:
  8331. ## There is no encapsulation within the following macros, do not change
  8332. ## the running order or otherwise move them around unless you know exactly
  8333. ## what you are doing...
  8334. if test -n "$compiler"; then
  8335. lt_prog_compiler_no_builtin_flag=
  8336. if test yes = "$GCC"; then
  8337. case $cc_basename in
  8338. nvcc*)
  8339. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8340. *)
  8341. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8342. esac
  8343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8344. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8345. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  8346. then :
  8347. printf %s "(cached) " >&6
  8348. else $as_nop
  8349. lt_cv_prog_compiler_rtti_exceptions=no
  8350. ac_outfile=conftest.$ac_objext
  8351. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8352. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8353. # Insert the option either (1) after the last *FLAGS variable, or
  8354. # (2) before a word containing "conftest.", or (3) at the end.
  8355. # Note that $ac_compile itself does not contain backslashes and begins
  8356. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8357. # The option is referenced via a variable to avoid confusing sed.
  8358. lt_compile=`echo "$ac_compile" | $SED \
  8359. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8360. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8361. -e 's:$: $lt_compiler_flag:'`
  8362. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8363. (eval "$lt_compile" 2>conftest.err)
  8364. ac_status=$?
  8365. cat conftest.err >&5
  8366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8367. if (exit $ac_status) && test -s "$ac_outfile"; then
  8368. # The compiler can only warn and ignore the option if not recognized
  8369. # So say no if there are warnings other than the usual output.
  8370. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8371. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8372. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8373. lt_cv_prog_compiler_rtti_exceptions=yes
  8374. fi
  8375. fi
  8376. $RM conftest*
  8377. fi
  8378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8379. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8380. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8381. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8382. else
  8383. :
  8384. fi
  8385. fi
  8386. lt_prog_compiler_wl=
  8387. lt_prog_compiler_pic=
  8388. lt_prog_compiler_static=
  8389. if test yes = "$GCC"; then
  8390. lt_prog_compiler_wl='-Wl,'
  8391. lt_prog_compiler_static='-static'
  8392. case $host_os in
  8393. aix*)
  8394. # All AIX code is PIC.
  8395. if test ia64 = "$host_cpu"; then
  8396. # AIX 5 now supports IA64 processor
  8397. lt_prog_compiler_static='-Bstatic'
  8398. fi
  8399. lt_prog_compiler_pic='-fPIC'
  8400. ;;
  8401. amigaos*)
  8402. case $host_cpu in
  8403. powerpc)
  8404. # see comment about AmigaOS4 .so support
  8405. lt_prog_compiler_pic='-fPIC'
  8406. ;;
  8407. m68k)
  8408. # FIXME: we need at least 68020 code to build shared libraries, but
  8409. # adding the '-m68020' flag to GCC prevents building anything better,
  8410. # like '-m68040'.
  8411. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8412. ;;
  8413. esac
  8414. ;;
  8415. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8416. # PIC is the default for these OSes.
  8417. ;;
  8418. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8419. # This hack is so that the source file can tell whether it is being
  8420. # built for inclusion in a dll (and should export symbols for example).
  8421. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8422. # (--disable-auto-import) libraries
  8423. lt_prog_compiler_pic='-DDLL_EXPORT'
  8424. case $host_os in
  8425. os2*)
  8426. lt_prog_compiler_static='$wl-static'
  8427. ;;
  8428. esac
  8429. ;;
  8430. darwin* | rhapsody*)
  8431. # PIC is the default on this platform
  8432. # Common symbols not allowed in MH_DYLIB files
  8433. lt_prog_compiler_pic='-fno-common'
  8434. ;;
  8435. haiku*)
  8436. # PIC is the default for Haiku.
  8437. # The "-static" flag exists, but is broken.
  8438. lt_prog_compiler_static=
  8439. ;;
  8440. hpux*)
  8441. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8442. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8443. # sets the default TLS model and affects inlining.
  8444. case $host_cpu in
  8445. hppa*64*)
  8446. # +Z the default
  8447. ;;
  8448. *)
  8449. lt_prog_compiler_pic='-fPIC'
  8450. ;;
  8451. esac
  8452. ;;
  8453. interix[3-9]*)
  8454. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8455. # Instead, we relocate shared libraries at runtime.
  8456. ;;
  8457. msdosdjgpp*)
  8458. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8459. # on systems that don't support them.
  8460. lt_prog_compiler_can_build_shared=no
  8461. enable_shared=no
  8462. ;;
  8463. *nto* | *qnx*)
  8464. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8465. # it will coredump.
  8466. lt_prog_compiler_pic='-fPIC -shared'
  8467. ;;
  8468. sysv4*MP*)
  8469. if test -d /usr/nec; then
  8470. lt_prog_compiler_pic=-Kconform_pic
  8471. fi
  8472. ;;
  8473. *)
  8474. lt_prog_compiler_pic='-fPIC'
  8475. ;;
  8476. esac
  8477. case $cc_basename in
  8478. nvcc*) # Cuda Compiler Driver 2.2
  8479. lt_prog_compiler_wl='-Xlinker '
  8480. if test -n "$lt_prog_compiler_pic"; then
  8481. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8482. fi
  8483. ;;
  8484. esac
  8485. else
  8486. # PORTME Check for flag to pass linker flags through the system compiler.
  8487. case $host_os in
  8488. aix*)
  8489. lt_prog_compiler_wl='-Wl,'
  8490. if test ia64 = "$host_cpu"; then
  8491. # AIX 5 now supports IA64 processor
  8492. lt_prog_compiler_static='-Bstatic'
  8493. else
  8494. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8495. fi
  8496. ;;
  8497. darwin* | rhapsody*)
  8498. # PIC is the default on this platform
  8499. # Common symbols not allowed in MH_DYLIB files
  8500. lt_prog_compiler_pic='-fno-common'
  8501. case $cc_basename in
  8502. nagfor*)
  8503. # NAG Fortran compiler
  8504. lt_prog_compiler_wl='-Wl,-Wl,,'
  8505. lt_prog_compiler_pic='-PIC'
  8506. lt_prog_compiler_static='-Bstatic'
  8507. ;;
  8508. esac
  8509. ;;
  8510. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8511. # This hack is so that the source file can tell whether it is being
  8512. # built for inclusion in a dll (and should export symbols for example).
  8513. lt_prog_compiler_pic='-DDLL_EXPORT'
  8514. case $host_os in
  8515. os2*)
  8516. lt_prog_compiler_static='$wl-static'
  8517. ;;
  8518. esac
  8519. ;;
  8520. hpux9* | hpux10* | hpux11*)
  8521. lt_prog_compiler_wl='-Wl,'
  8522. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8523. # not for PA HP-UX.
  8524. case $host_cpu in
  8525. hppa*64*|ia64*)
  8526. # +Z the default
  8527. ;;
  8528. *)
  8529. lt_prog_compiler_pic='+Z'
  8530. ;;
  8531. esac
  8532. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8533. lt_prog_compiler_static='$wl-a ${wl}archive'
  8534. ;;
  8535. irix5* | irix6* | nonstopux*)
  8536. lt_prog_compiler_wl='-Wl,'
  8537. # PIC (with -KPIC) is the default.
  8538. lt_prog_compiler_static='-non_shared'
  8539. ;;
  8540. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8541. case $cc_basename in
  8542. # old Intel for x86_64, which still supported -KPIC.
  8543. ecc*)
  8544. lt_prog_compiler_wl='-Wl,'
  8545. lt_prog_compiler_pic='-KPIC'
  8546. lt_prog_compiler_static='-static'
  8547. ;;
  8548. # icc used to be incompatible with GCC.
  8549. # ICC 10 doesn't accept -KPIC any more.
  8550. icc* | ifort*)
  8551. lt_prog_compiler_wl='-Wl,'
  8552. lt_prog_compiler_pic='-fPIC'
  8553. lt_prog_compiler_static='-static'
  8554. ;;
  8555. # Lahey Fortran 8.1.
  8556. lf95*)
  8557. lt_prog_compiler_wl='-Wl,'
  8558. lt_prog_compiler_pic='--shared'
  8559. lt_prog_compiler_static='--static'
  8560. ;;
  8561. nagfor*)
  8562. # NAG Fortran compiler
  8563. lt_prog_compiler_wl='-Wl,-Wl,,'
  8564. lt_prog_compiler_pic='-PIC'
  8565. lt_prog_compiler_static='-Bstatic'
  8566. ;;
  8567. tcc*)
  8568. # Fabrice Bellard et al's Tiny C Compiler
  8569. lt_prog_compiler_wl='-Wl,'
  8570. lt_prog_compiler_pic='-fPIC'
  8571. lt_prog_compiler_static='-static'
  8572. ;;
  8573. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8574. # Portland Group compilers (*not* the Pentium gcc compiler,
  8575. # which looks to be a dead project)
  8576. lt_prog_compiler_wl='-Wl,'
  8577. lt_prog_compiler_pic='-fpic'
  8578. lt_prog_compiler_static='-Bstatic'
  8579. ;;
  8580. ccc*)
  8581. lt_prog_compiler_wl='-Wl,'
  8582. # All Alpha code is PIC.
  8583. lt_prog_compiler_static='-non_shared'
  8584. ;;
  8585. xl* | bgxl* | bgf* | mpixl*)
  8586. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8587. lt_prog_compiler_wl='-Wl,'
  8588. lt_prog_compiler_pic='-qpic'
  8589. lt_prog_compiler_static='-qstaticlink'
  8590. ;;
  8591. *)
  8592. case `$CC -V 2>&1 | sed 5q` in
  8593. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8594. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8595. lt_prog_compiler_pic='-KPIC'
  8596. lt_prog_compiler_static='-Bstatic'
  8597. lt_prog_compiler_wl=''
  8598. ;;
  8599. *Sun\ F* | *Sun*Fortran*)
  8600. lt_prog_compiler_pic='-KPIC'
  8601. lt_prog_compiler_static='-Bstatic'
  8602. lt_prog_compiler_wl='-Qoption ld '
  8603. ;;
  8604. *Sun\ C*)
  8605. # Sun C 5.9
  8606. lt_prog_compiler_pic='-KPIC'
  8607. lt_prog_compiler_static='-Bstatic'
  8608. lt_prog_compiler_wl='-Wl,'
  8609. ;;
  8610. *Intel*\ [CF]*Compiler*)
  8611. lt_prog_compiler_wl='-Wl,'
  8612. lt_prog_compiler_pic='-fPIC'
  8613. lt_prog_compiler_static='-static'
  8614. ;;
  8615. *Portland\ Group*)
  8616. lt_prog_compiler_wl='-Wl,'
  8617. lt_prog_compiler_pic='-fpic'
  8618. lt_prog_compiler_static='-Bstatic'
  8619. ;;
  8620. esac
  8621. ;;
  8622. esac
  8623. ;;
  8624. newsos6)
  8625. lt_prog_compiler_pic='-KPIC'
  8626. lt_prog_compiler_static='-Bstatic'
  8627. ;;
  8628. *nto* | *qnx*)
  8629. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8630. # it will coredump.
  8631. lt_prog_compiler_pic='-fPIC -shared'
  8632. ;;
  8633. osf3* | osf4* | osf5*)
  8634. lt_prog_compiler_wl='-Wl,'
  8635. # All OSF/1 code is PIC.
  8636. lt_prog_compiler_static='-non_shared'
  8637. ;;
  8638. rdos*)
  8639. lt_prog_compiler_static='-non_shared'
  8640. ;;
  8641. solaris*)
  8642. lt_prog_compiler_pic='-KPIC'
  8643. lt_prog_compiler_static='-Bstatic'
  8644. case $cc_basename in
  8645. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8646. lt_prog_compiler_wl='-Qoption ld ';;
  8647. *)
  8648. lt_prog_compiler_wl='-Wl,';;
  8649. esac
  8650. ;;
  8651. sunos4*)
  8652. lt_prog_compiler_wl='-Qoption ld '
  8653. lt_prog_compiler_pic='-PIC'
  8654. lt_prog_compiler_static='-Bstatic'
  8655. ;;
  8656. sysv4 | sysv4.2uw2* | sysv4.3*)
  8657. lt_prog_compiler_wl='-Wl,'
  8658. lt_prog_compiler_pic='-KPIC'
  8659. lt_prog_compiler_static='-Bstatic'
  8660. ;;
  8661. sysv4*MP*)
  8662. if test -d /usr/nec; then
  8663. lt_prog_compiler_pic='-Kconform_pic'
  8664. lt_prog_compiler_static='-Bstatic'
  8665. fi
  8666. ;;
  8667. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8668. lt_prog_compiler_wl='-Wl,'
  8669. lt_prog_compiler_pic='-KPIC'
  8670. lt_prog_compiler_static='-Bstatic'
  8671. ;;
  8672. unicos*)
  8673. lt_prog_compiler_wl='-Wl,'
  8674. lt_prog_compiler_can_build_shared=no
  8675. ;;
  8676. uts4*)
  8677. lt_prog_compiler_pic='-pic'
  8678. lt_prog_compiler_static='-Bstatic'
  8679. ;;
  8680. *)
  8681. lt_prog_compiler_can_build_shared=no
  8682. ;;
  8683. esac
  8684. fi
  8685. case $host_os in
  8686. # For platforms that do not support PIC, -DPIC is meaningless:
  8687. *djgpp*)
  8688. lt_prog_compiler_pic=
  8689. ;;
  8690. *)
  8691. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8692. ;;
  8693. esac
  8694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8695. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8696. if test ${lt_cv_prog_compiler_pic+y}
  8697. then :
  8698. printf %s "(cached) " >&6
  8699. else $as_nop
  8700. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8701. fi
  8702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8703. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8704. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8705. #
  8706. # Check to make sure the PIC flag actually works.
  8707. #
  8708. if test -n "$lt_prog_compiler_pic"; then
  8709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8710. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8711. if test ${lt_cv_prog_compiler_pic_works+y}
  8712. then :
  8713. printf %s "(cached) " >&6
  8714. else $as_nop
  8715. lt_cv_prog_compiler_pic_works=no
  8716. ac_outfile=conftest.$ac_objext
  8717. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8718. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8719. # Insert the option either (1) after the last *FLAGS variable, or
  8720. # (2) before a word containing "conftest.", or (3) at the end.
  8721. # Note that $ac_compile itself does not contain backslashes and begins
  8722. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8723. # The option is referenced via a variable to avoid confusing sed.
  8724. lt_compile=`echo "$ac_compile" | $SED \
  8725. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8726. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8727. -e 's:$: $lt_compiler_flag:'`
  8728. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8729. (eval "$lt_compile" 2>conftest.err)
  8730. ac_status=$?
  8731. cat conftest.err >&5
  8732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8733. if (exit $ac_status) && test -s "$ac_outfile"; then
  8734. # The compiler can only warn and ignore the option if not recognized
  8735. # So say no if there are warnings other than the usual output.
  8736. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8737. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8738. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8739. lt_cv_prog_compiler_pic_works=yes
  8740. fi
  8741. fi
  8742. $RM conftest*
  8743. fi
  8744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8745. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8746. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8747. case $lt_prog_compiler_pic in
  8748. "" | " "*) ;;
  8749. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8750. esac
  8751. else
  8752. lt_prog_compiler_pic=
  8753. lt_prog_compiler_can_build_shared=no
  8754. fi
  8755. fi
  8756. #
  8757. # Check to make sure the static flag actually works.
  8758. #
  8759. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8761. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8762. if test ${lt_cv_prog_compiler_static_works+y}
  8763. then :
  8764. printf %s "(cached) " >&6
  8765. else $as_nop
  8766. lt_cv_prog_compiler_static_works=no
  8767. save_LDFLAGS=$LDFLAGS
  8768. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8769. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8770. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8771. # The linker can only warn and ignore the option if not recognized
  8772. # So say no if there are warnings
  8773. if test -s conftest.err; then
  8774. # Append any errors to the config.log.
  8775. cat conftest.err 1>&5
  8776. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8777. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8778. if diff conftest.exp conftest.er2 >/dev/null; then
  8779. lt_cv_prog_compiler_static_works=yes
  8780. fi
  8781. else
  8782. lt_cv_prog_compiler_static_works=yes
  8783. fi
  8784. fi
  8785. $RM -r conftest*
  8786. LDFLAGS=$save_LDFLAGS
  8787. fi
  8788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8789. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8790. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8791. :
  8792. else
  8793. lt_prog_compiler_static=
  8794. fi
  8795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8796. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8797. if test ${lt_cv_prog_compiler_c_o+y}
  8798. then :
  8799. printf %s "(cached) " >&6
  8800. else $as_nop
  8801. lt_cv_prog_compiler_c_o=no
  8802. $RM -r conftest 2>/dev/null
  8803. mkdir conftest
  8804. cd conftest
  8805. mkdir out
  8806. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8807. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8808. # Insert the option either (1) after the last *FLAGS variable, or
  8809. # (2) before a word containing "conftest.", or (3) at the end.
  8810. # Note that $ac_compile itself does not contain backslashes and begins
  8811. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8812. lt_compile=`echo "$ac_compile" | $SED \
  8813. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8814. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8815. -e 's:$: $lt_compiler_flag:'`
  8816. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8817. (eval "$lt_compile" 2>out/conftest.err)
  8818. ac_status=$?
  8819. cat out/conftest.err >&5
  8820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8821. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8822. then
  8823. # The compiler can only warn and ignore the option if not recognized
  8824. # So say no if there are warnings
  8825. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8826. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8827. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8828. lt_cv_prog_compiler_c_o=yes
  8829. fi
  8830. fi
  8831. chmod u+w . 2>&5
  8832. $RM conftest*
  8833. # SGI C++ compiler will create directory out/ii_files/ for
  8834. # template instantiation
  8835. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8836. $RM out/* && rmdir out
  8837. cd ..
  8838. $RM -r conftest
  8839. $RM conftest*
  8840. fi
  8841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8842. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8844. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8845. if test ${lt_cv_prog_compiler_c_o+y}
  8846. then :
  8847. printf %s "(cached) " >&6
  8848. else $as_nop
  8849. lt_cv_prog_compiler_c_o=no
  8850. $RM -r conftest 2>/dev/null
  8851. mkdir conftest
  8852. cd conftest
  8853. mkdir out
  8854. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8855. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8856. # Insert the option either (1) after the last *FLAGS variable, or
  8857. # (2) before a word containing "conftest.", or (3) at the end.
  8858. # Note that $ac_compile itself does not contain backslashes and begins
  8859. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8860. lt_compile=`echo "$ac_compile" | $SED \
  8861. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8862. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8863. -e 's:$: $lt_compiler_flag:'`
  8864. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8865. (eval "$lt_compile" 2>out/conftest.err)
  8866. ac_status=$?
  8867. cat out/conftest.err >&5
  8868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8869. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8870. then
  8871. # The compiler can only warn and ignore the option if not recognized
  8872. # So say no if there are warnings
  8873. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8874. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8875. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8876. lt_cv_prog_compiler_c_o=yes
  8877. fi
  8878. fi
  8879. chmod u+w . 2>&5
  8880. $RM conftest*
  8881. # SGI C++ compiler will create directory out/ii_files/ for
  8882. # template instantiation
  8883. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8884. $RM out/* && rmdir out
  8885. cd ..
  8886. $RM -r conftest
  8887. $RM conftest*
  8888. fi
  8889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8890. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8891. hard_links=nottested
  8892. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8893. # do not overwrite the value of need_locks provided by the user
  8894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8895. printf %s "checking if we can lock with hard links... " >&6; }
  8896. hard_links=yes
  8897. $RM conftest*
  8898. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8899. touch conftest.a
  8900. ln conftest.a conftest.b 2>&5 || hard_links=no
  8901. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8903. printf "%s\n" "$hard_links" >&6; }
  8904. if test no = "$hard_links"; then
  8905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8906. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8907. need_locks=warn
  8908. fi
  8909. else
  8910. need_locks=no
  8911. fi
  8912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8913. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8914. runpath_var=
  8915. allow_undefined_flag=
  8916. always_export_symbols=no
  8917. archive_cmds=
  8918. archive_expsym_cmds=
  8919. compiler_needs_object=no
  8920. enable_shared_with_static_runtimes=no
  8921. export_dynamic_flag_spec=
  8922. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8923. hardcode_automatic=no
  8924. hardcode_direct=no
  8925. hardcode_direct_absolute=no
  8926. hardcode_libdir_flag_spec=
  8927. hardcode_libdir_separator=
  8928. hardcode_minus_L=no
  8929. hardcode_shlibpath_var=unsupported
  8930. inherit_rpath=no
  8931. link_all_deplibs=unknown
  8932. module_cmds=
  8933. module_expsym_cmds=
  8934. old_archive_from_new_cmds=
  8935. old_archive_from_expsyms_cmds=
  8936. thread_safe_flag_spec=
  8937. whole_archive_flag_spec=
  8938. # include_expsyms should be a list of space-separated symbols to be *always*
  8939. # included in the symbol list
  8940. include_expsyms=
  8941. # exclude_expsyms can be an extended regexp of symbols to exclude
  8942. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8943. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8944. # as well as any symbol that contains 'd'.
  8945. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8946. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8947. # platforms (ab)use it in PIC code, but their linkers get confused if
  8948. # the symbol is explicitly referenced. Since portable code cannot
  8949. # rely on this symbol name, it's probably fine to never include it in
  8950. # preloaded symbol tables.
  8951. # Exclude shared library initialization/finalization symbols.
  8952. extract_expsyms_cmds=
  8953. case $host_os in
  8954. cygwin* | mingw* | pw32* | cegcc*)
  8955. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8956. # When not using gcc, we currently assume that we are using
  8957. # Microsoft Visual C++.
  8958. if test yes != "$GCC"; then
  8959. with_gnu_ld=no
  8960. fi
  8961. ;;
  8962. interix*)
  8963. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8964. with_gnu_ld=yes
  8965. ;;
  8966. openbsd* | bitrig*)
  8967. with_gnu_ld=no
  8968. ;;
  8969. esac
  8970. ld_shlibs=yes
  8971. # On some targets, GNU ld is compatible enough with the native linker
  8972. # that we're better off using the native interface for both.
  8973. lt_use_gnu_ld_interface=no
  8974. if test yes = "$with_gnu_ld"; then
  8975. case $host_os in
  8976. aix*)
  8977. # The AIX port of GNU ld has always aspired to compatibility
  8978. # with the native linker. However, as the warning in the GNU ld
  8979. # block says, versions before 2.19.5* couldn't really create working
  8980. # shared libraries, regardless of the interface used.
  8981. case `$LD -v 2>&1` in
  8982. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8983. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8984. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8985. *)
  8986. lt_use_gnu_ld_interface=yes
  8987. ;;
  8988. esac
  8989. ;;
  8990. *)
  8991. lt_use_gnu_ld_interface=yes
  8992. ;;
  8993. esac
  8994. fi
  8995. if test yes = "$lt_use_gnu_ld_interface"; then
  8996. # If archive_cmds runs LD, not CC, wlarc should be empty
  8997. wlarc='$wl'
  8998. # Set some defaults for GNU ld with shared library support. These
  8999. # are reset later if shared libraries are not supported. Putting them
  9000. # here allows them to be overridden if necessary.
  9001. runpath_var=LD_RUN_PATH
  9002. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9003. export_dynamic_flag_spec='$wl--export-dynamic'
  9004. # ancient GNU ld didn't support --whole-archive et. al.
  9005. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9006. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  9007. else
  9008. whole_archive_flag_spec=
  9009. fi
  9010. supports_anon_versioning=no
  9011. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  9012. *GNU\ gold*) supports_anon_versioning=yes ;;
  9013. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9014. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9015. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9016. *\ 2.11.*) ;; # other 2.11 versions
  9017. *) supports_anon_versioning=yes ;;
  9018. esac
  9019. # See if GNU ld supports shared libraries.
  9020. case $host_os in
  9021. aix[3-9]*)
  9022. # On AIX/PPC, the GNU linker is very broken
  9023. if test ia64 != "$host_cpu"; then
  9024. ld_shlibs=no
  9025. cat <<_LT_EOF 1>&2
  9026. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9027. *** to be unable to reliably create shared libraries on AIX.
  9028. *** Therefore, libtool is disabling shared libraries support. If you
  9029. *** really care for shared libraries, you may want to install binutils
  9030. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9031. *** You will then need to restart the configuration process.
  9032. _LT_EOF
  9033. fi
  9034. ;;
  9035. amigaos*)
  9036. case $host_cpu in
  9037. powerpc)
  9038. # see comment about AmigaOS4 .so support
  9039. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9040. archive_expsym_cmds=''
  9041. ;;
  9042. m68k)
  9043. 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)'
  9044. hardcode_libdir_flag_spec='-L$libdir'
  9045. hardcode_minus_L=yes
  9046. ;;
  9047. esac
  9048. ;;
  9049. beos*)
  9050. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9051. allow_undefined_flag=unsupported
  9052. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9053. # support --undefined. This deserves some investigation. FIXME
  9054. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9055. else
  9056. ld_shlibs=no
  9057. fi
  9058. ;;
  9059. cygwin* | mingw* | pw32* | cegcc*)
  9060. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9061. # as there is no search path for DLLs.
  9062. hardcode_libdir_flag_spec='-L$libdir'
  9063. export_dynamic_flag_spec='$wl--export-all-symbols'
  9064. allow_undefined_flag=unsupported
  9065. always_export_symbols=no
  9066. enable_shared_with_static_runtimes=yes
  9067. 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'
  9068. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9069. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9070. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9071. # If the export-symbols file already is a .def file, use it as
  9072. # is; otherwise, prepend EXPORTS...
  9073. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9074. cp $export_symbols $output_objdir/$soname.def;
  9075. else
  9076. echo EXPORTS > $output_objdir/$soname.def;
  9077. cat $export_symbols >> $output_objdir/$soname.def;
  9078. fi~
  9079. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9080. else
  9081. ld_shlibs=no
  9082. fi
  9083. ;;
  9084. haiku*)
  9085. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9086. link_all_deplibs=yes
  9087. ;;
  9088. os2*)
  9089. hardcode_libdir_flag_spec='-L$libdir'
  9090. hardcode_minus_L=yes
  9091. allow_undefined_flag=unsupported
  9092. shrext_cmds=.dll
  9093. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9094. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9095. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9096. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9097. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9098. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9099. emximp -o $lib $output_objdir/$libname.def'
  9100. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9101. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9102. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9103. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9104. prefix_cmds="$SED"~
  9105. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9106. prefix_cmds="$prefix_cmds -e 1d";
  9107. fi~
  9108. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9109. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9110. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9111. emximp -o $lib $output_objdir/$libname.def'
  9112. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9113. enable_shared_with_static_runtimes=yes
  9114. ;;
  9115. interix[3-9]*)
  9116. hardcode_direct=no
  9117. hardcode_shlibpath_var=no
  9118. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9119. export_dynamic_flag_spec='$wl-E'
  9120. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9121. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9122. # default) and relocated if they conflict, which is a slow very memory
  9123. # consuming and fragmenting process. To avoid this, we pick a random,
  9124. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9125. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9126. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9127. 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'
  9128. ;;
  9129. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9130. tmp_diet=no
  9131. if test linux-dietlibc = "$host_os"; then
  9132. case $cc_basename in
  9133. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9134. esac
  9135. fi
  9136. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9137. && test no = "$tmp_diet"
  9138. then
  9139. tmp_addflag=' $pic_flag'
  9140. tmp_sharedflag='-shared'
  9141. case $cc_basename,$host_cpu in
  9142. pgcc*) # Portland Group C compiler
  9143. 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'
  9144. tmp_addflag=' $pic_flag'
  9145. ;;
  9146. pgf77* | pgf90* | pgf95* | pgfortran*)
  9147. # Portland Group f77 and f90 compilers
  9148. 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'
  9149. tmp_addflag=' $pic_flag -Mnomain' ;;
  9150. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9151. tmp_addflag=' -i_dynamic' ;;
  9152. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9153. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9154. ifc* | ifort*) # Intel Fortran compiler
  9155. tmp_addflag=' -nofor_main' ;;
  9156. lf95*) # Lahey Fortran 8.1
  9157. whole_archive_flag_spec=
  9158. tmp_sharedflag='--shared' ;;
  9159. nagfor*) # NAGFOR 5.3
  9160. tmp_sharedflag='-Wl,-shared' ;;
  9161. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9162. tmp_sharedflag='-qmkshrobj'
  9163. tmp_addflag= ;;
  9164. nvcc*) # Cuda Compiler Driver 2.2
  9165. 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'
  9166. compiler_needs_object=yes
  9167. ;;
  9168. esac
  9169. case `$CC -V 2>&1 | sed 5q` in
  9170. *Sun\ C*) # Sun C 5.9
  9171. 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'
  9172. compiler_needs_object=yes
  9173. tmp_sharedflag='-G' ;;
  9174. *Sun\ F*) # Sun Fortran 8.3
  9175. tmp_sharedflag='-G' ;;
  9176. esac
  9177. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9178. if test yes = "$supports_anon_versioning"; then
  9179. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9180. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9181. echo "local: *; };" >> $output_objdir/$libname.ver~
  9182. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9183. fi
  9184. case $cc_basename in
  9185. tcc*)
  9186. export_dynamic_flag_spec='-rdynamic'
  9187. ;;
  9188. xlf* | bgf* | bgxlf* | mpixlf*)
  9189. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9190. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9191. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9192. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9193. if test yes = "$supports_anon_versioning"; then
  9194. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9195. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9196. echo "local: *; };" >> $output_objdir/$libname.ver~
  9197. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9198. fi
  9199. ;;
  9200. esac
  9201. else
  9202. ld_shlibs=no
  9203. fi
  9204. ;;
  9205. netbsd*)
  9206. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9207. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9208. wlarc=
  9209. else
  9210. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9211. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9212. fi
  9213. ;;
  9214. solaris*)
  9215. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9216. ld_shlibs=no
  9217. cat <<_LT_EOF 1>&2
  9218. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9219. *** create shared libraries on Solaris systems. Therefore, libtool
  9220. *** is disabling shared libraries support. We urge you to upgrade GNU
  9221. *** binutils to release 2.9.1 or newer. Another option is to modify
  9222. *** your PATH or compiler configuration so that the native linker is
  9223. *** used, and then restart.
  9224. _LT_EOF
  9225. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9226. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9227. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9228. else
  9229. ld_shlibs=no
  9230. fi
  9231. ;;
  9232. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9233. case `$LD -v 2>&1` in
  9234. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9235. ld_shlibs=no
  9236. cat <<_LT_EOF 1>&2
  9237. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9238. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9239. *** is disabling shared libraries support. We urge you to upgrade GNU
  9240. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9241. *** your PATH or compiler configuration so that the native linker is
  9242. *** used, and then restart.
  9243. _LT_EOF
  9244. ;;
  9245. *)
  9246. # For security reasons, it is highly recommended that you always
  9247. # use absolute paths for naming shared libraries, and exclude the
  9248. # DT_RUNPATH tag from executables and libraries. But doing so
  9249. # requires that you compile everything twice, which is a pain.
  9250. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9251. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9252. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9253. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9254. else
  9255. ld_shlibs=no
  9256. fi
  9257. ;;
  9258. esac
  9259. ;;
  9260. sunos4*)
  9261. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9262. wlarc=
  9263. hardcode_direct=yes
  9264. hardcode_shlibpath_var=no
  9265. ;;
  9266. *)
  9267. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9268. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9269. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9270. else
  9271. ld_shlibs=no
  9272. fi
  9273. ;;
  9274. esac
  9275. if test no = "$ld_shlibs"; then
  9276. runpath_var=
  9277. hardcode_libdir_flag_spec=
  9278. export_dynamic_flag_spec=
  9279. whole_archive_flag_spec=
  9280. fi
  9281. else
  9282. # PORTME fill in a description of your system's linker (not GNU ld)
  9283. case $host_os in
  9284. aix3*)
  9285. allow_undefined_flag=unsupported
  9286. always_export_symbols=yes
  9287. 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'
  9288. # Note: this linker hardcodes the directories in LIBPATH if there
  9289. # are no directories specified by -L.
  9290. hardcode_minus_L=yes
  9291. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9292. # Neither direct hardcoding nor static linking is supported with a
  9293. # broken collect2.
  9294. hardcode_direct=unsupported
  9295. fi
  9296. ;;
  9297. aix[4-9]*)
  9298. if test ia64 = "$host_cpu"; then
  9299. # On IA64, the linker does run time linking by default, so we don't
  9300. # have to do anything special.
  9301. aix_use_runtimelinking=no
  9302. exp_sym_flag='-Bexport'
  9303. no_entry_flag=
  9304. else
  9305. # If we're using GNU nm, then we don't want the "-C" option.
  9306. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9307. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9308. # weak defined symbols like other global defined symbols, whereas
  9309. # GNU nm marks them as "W".
  9310. # While the 'weak' keyword is ignored in the Export File, we need
  9311. # it in the Import File for the 'aix-soname' feature, so we have
  9312. # to replace the "-B" option with "-P" for AIX nm.
  9313. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9314. 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'
  9315. else
  9316. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  9317. fi
  9318. aix_use_runtimelinking=no
  9319. # Test if we are trying to use run time linking or normal
  9320. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9321. # have runtime linking enabled, and use it for executables.
  9322. # For shared libraries, we enable/disable runtime linking
  9323. # depending on the kind of the shared library created -
  9324. # when "with_aix_soname,aix_use_runtimelinking" is:
  9325. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9326. # "aix,yes" lib.so shared, rtl:yes, for executables
  9327. # lib.a static archive
  9328. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9329. # lib.a(lib.so.V) shared, rtl:no, for executables
  9330. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9331. # lib.a(lib.so.V) shared, rtl:no
  9332. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9333. # lib.a static archive
  9334. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9335. for ld_flag in $LDFLAGS; do
  9336. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9337. aix_use_runtimelinking=yes
  9338. break
  9339. fi
  9340. done
  9341. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9342. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9343. # so we don't have lib.a shared libs to link our executables.
  9344. # We have to force runtime linking in this case.
  9345. aix_use_runtimelinking=yes
  9346. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9347. fi
  9348. ;;
  9349. esac
  9350. exp_sym_flag='-bexport'
  9351. no_entry_flag='-bnoentry'
  9352. fi
  9353. # When large executables or shared objects are built, AIX ld can
  9354. # have problems creating the table of contents. If linking a library
  9355. # or program results in "error TOC overflow" add -mminimal-toc to
  9356. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9357. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9358. archive_cmds=''
  9359. hardcode_direct=yes
  9360. hardcode_direct_absolute=yes
  9361. hardcode_libdir_separator=':'
  9362. link_all_deplibs=yes
  9363. file_list_spec='$wl-f,'
  9364. case $with_aix_soname,$aix_use_runtimelinking in
  9365. aix,*) ;; # traditional, no import file
  9366. svr4,* | *,yes) # use import file
  9367. # The Import File defines what to hardcode.
  9368. hardcode_direct=no
  9369. hardcode_direct_absolute=no
  9370. ;;
  9371. esac
  9372. if test yes = "$GCC"; then
  9373. case $host_os in aix4.[012]|aix4.[012].*)
  9374. # We only want to do this on AIX 4.2 and lower, the check
  9375. # below for broken collect2 doesn't work under 4.3+
  9376. collect2name=`$CC -print-prog-name=collect2`
  9377. if test -f "$collect2name" &&
  9378. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9379. then
  9380. # We have reworked collect2
  9381. :
  9382. else
  9383. # We have old collect2
  9384. hardcode_direct=unsupported
  9385. # It fails to find uninstalled libraries when the uninstalled
  9386. # path is not listed in the libpath. Setting hardcode_minus_L
  9387. # to unsupported forces relinking
  9388. hardcode_minus_L=yes
  9389. hardcode_libdir_flag_spec='-L$libdir'
  9390. hardcode_libdir_separator=
  9391. fi
  9392. ;;
  9393. esac
  9394. shared_flag='-shared'
  9395. if test yes = "$aix_use_runtimelinking"; then
  9396. shared_flag="$shared_flag "'$wl-G'
  9397. fi
  9398. # Need to ensure runtime linking is disabled for the traditional
  9399. # shared library, or the linker may eventually find shared libraries
  9400. # /with/ Import File - we do not want to mix them.
  9401. shared_flag_aix='-shared'
  9402. shared_flag_svr4='-shared $wl-G'
  9403. else
  9404. # not using gcc
  9405. if test ia64 = "$host_cpu"; then
  9406. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9407. # chokes on -Wl,-G. The following line is correct:
  9408. shared_flag='-G'
  9409. else
  9410. if test yes = "$aix_use_runtimelinking"; then
  9411. shared_flag='$wl-G'
  9412. else
  9413. shared_flag='$wl-bM:SRE'
  9414. fi
  9415. shared_flag_aix='$wl-bM:SRE'
  9416. shared_flag_svr4='$wl-G'
  9417. fi
  9418. fi
  9419. export_dynamic_flag_spec='$wl-bexpall'
  9420. # It seems that -bexpall does not export symbols beginning with
  9421. # underscore (_), so it is better to generate a list of symbols to export.
  9422. always_export_symbols=yes
  9423. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9424. # Warning - without using the other runtime loading flags (-brtl),
  9425. # -berok will link without error, but may produce a broken library.
  9426. allow_undefined_flag='-berok'
  9427. # Determine the default libpath from the value encoded in an
  9428. # empty executable.
  9429. if test set = "${lt_cv_aix_libpath+set}"; then
  9430. aix_libpath=$lt_cv_aix_libpath
  9431. else
  9432. if test ${lt_cv_aix_libpath_+y}
  9433. then :
  9434. printf %s "(cached) " >&6
  9435. else $as_nop
  9436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9437. /* end confdefs.h. */
  9438. int
  9439. main (void)
  9440. {
  9441. ;
  9442. return 0;
  9443. }
  9444. _ACEOF
  9445. if ac_fn_c_try_link "$LINENO"
  9446. then :
  9447. lt_aix_libpath_sed='
  9448. /Import File Strings/,/^$/ {
  9449. /^0/ {
  9450. s/^0 *\([^ ]*\) *$/\1/
  9451. p
  9452. }
  9453. }'
  9454. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9455. # Check for a 64-bit object if we didn't find anything.
  9456. if test -z "$lt_cv_aix_libpath_"; then
  9457. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9458. fi
  9459. fi
  9460. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9461. conftest$ac_exeext conftest.$ac_ext
  9462. if test -z "$lt_cv_aix_libpath_"; then
  9463. lt_cv_aix_libpath_=/usr/lib:/lib
  9464. fi
  9465. fi
  9466. aix_libpath=$lt_cv_aix_libpath_
  9467. fi
  9468. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9469. 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
  9470. else
  9471. if test ia64 = "$host_cpu"; then
  9472. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9473. allow_undefined_flag="-z nodefs"
  9474. 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"
  9475. else
  9476. # Determine the default libpath from the value encoded in an
  9477. # empty executable.
  9478. if test set = "${lt_cv_aix_libpath+set}"; then
  9479. aix_libpath=$lt_cv_aix_libpath
  9480. else
  9481. if test ${lt_cv_aix_libpath_+y}
  9482. then :
  9483. printf %s "(cached) " >&6
  9484. else $as_nop
  9485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9486. /* end confdefs.h. */
  9487. int
  9488. main (void)
  9489. {
  9490. ;
  9491. return 0;
  9492. }
  9493. _ACEOF
  9494. if ac_fn_c_try_link "$LINENO"
  9495. then :
  9496. lt_aix_libpath_sed='
  9497. /Import File Strings/,/^$/ {
  9498. /^0/ {
  9499. s/^0 *\([^ ]*\) *$/\1/
  9500. p
  9501. }
  9502. }'
  9503. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9504. # Check for a 64-bit object if we didn't find anything.
  9505. if test -z "$lt_cv_aix_libpath_"; then
  9506. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9507. fi
  9508. fi
  9509. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9510. conftest$ac_exeext conftest.$ac_ext
  9511. if test -z "$lt_cv_aix_libpath_"; then
  9512. lt_cv_aix_libpath_=/usr/lib:/lib
  9513. fi
  9514. fi
  9515. aix_libpath=$lt_cv_aix_libpath_
  9516. fi
  9517. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9518. # Warning - without using the other run time loading flags,
  9519. # -berok will link without error, but may produce a broken library.
  9520. no_undefined_flag=' $wl-bernotok'
  9521. allow_undefined_flag=' $wl-berok'
  9522. if test yes = "$with_gnu_ld"; then
  9523. # We only use this code for GNU lds that support --whole-archive.
  9524. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9525. else
  9526. # Exported symbols can be pulled into shared objects from archives
  9527. whole_archive_flag_spec='$convenience'
  9528. fi
  9529. archive_cmds_need_lc=yes
  9530. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9531. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9532. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9533. if test svr4 != "$with_aix_soname"; then
  9534. # This is similar to how AIX traditionally builds its shared libraries.
  9535. 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'
  9536. fi
  9537. if test aix != "$with_aix_soname"; then
  9538. 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'
  9539. else
  9540. # used by -dlpreopen to get the symbols
  9541. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9542. fi
  9543. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9544. fi
  9545. fi
  9546. ;;
  9547. amigaos*)
  9548. case $host_cpu in
  9549. powerpc)
  9550. # see comment about AmigaOS4 .so support
  9551. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9552. archive_expsym_cmds=''
  9553. ;;
  9554. m68k)
  9555. 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)'
  9556. hardcode_libdir_flag_spec='-L$libdir'
  9557. hardcode_minus_L=yes
  9558. ;;
  9559. esac
  9560. ;;
  9561. bsdi[45]*)
  9562. export_dynamic_flag_spec=-rdynamic
  9563. ;;
  9564. cygwin* | mingw* | pw32* | cegcc*)
  9565. # When not using gcc, we currently assume that we are using
  9566. # Microsoft Visual C++.
  9567. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9568. # no search path for DLLs.
  9569. case $cc_basename in
  9570. cl*)
  9571. # Native MSVC
  9572. hardcode_libdir_flag_spec=' '
  9573. allow_undefined_flag=unsupported
  9574. always_export_symbols=yes
  9575. file_list_spec='@'
  9576. # Tell ltmain to make .lib files, not .a files.
  9577. libext=lib
  9578. # Tell ltmain to make .dll files, not .so files.
  9579. shrext_cmds=.dll
  9580. # FIXME: Setting linknames here is a bad hack.
  9581. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9582. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9583. cp "$export_symbols" "$output_objdir/$soname.def";
  9584. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9585. else
  9586. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9587. fi~
  9588. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9589. linknames='
  9590. # The linker will not automatically build a static lib if we build a DLL.
  9591. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9592. enable_shared_with_static_runtimes=yes
  9593. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9594. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9595. # Don't use ranlib
  9596. old_postinstall_cmds='chmod 644 $oldlib'
  9597. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9598. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9599. case $lt_outputfile in
  9600. *.exe|*.EXE) ;;
  9601. *)
  9602. lt_outputfile=$lt_outputfile.exe
  9603. lt_tool_outputfile=$lt_tool_outputfile.exe
  9604. ;;
  9605. esac~
  9606. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9607. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9608. $RM "$lt_outputfile.manifest";
  9609. fi'
  9610. ;;
  9611. *)
  9612. # Assume MSVC wrapper
  9613. hardcode_libdir_flag_spec=' '
  9614. allow_undefined_flag=unsupported
  9615. # Tell ltmain to make .lib files, not .a files.
  9616. libext=lib
  9617. # Tell ltmain to make .dll files, not .so files.
  9618. shrext_cmds=.dll
  9619. # FIXME: Setting linknames here is a bad hack.
  9620. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9621. # The linker will automatically build a .lib file if we build a DLL.
  9622. old_archive_from_new_cmds='true'
  9623. # FIXME: Should let the user specify the lib program.
  9624. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9625. enable_shared_with_static_runtimes=yes
  9626. ;;
  9627. esac
  9628. ;;
  9629. darwin* | rhapsody*)
  9630. archive_cmds_need_lc=no
  9631. hardcode_direct=no
  9632. hardcode_automatic=yes
  9633. hardcode_shlibpath_var=unsupported
  9634. if test yes = "$lt_cv_ld_force_load"; then
  9635. 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\"`'
  9636. else
  9637. whole_archive_flag_spec=''
  9638. fi
  9639. link_all_deplibs=yes
  9640. allow_undefined_flag=$_lt_dar_allow_undefined
  9641. case $cc_basename in
  9642. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9643. *) _lt_dar_can_shared=$GCC ;;
  9644. esac
  9645. if test yes = "$_lt_dar_can_shared"; then
  9646. output_verbose_link_cmd=func_echo_all
  9647. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9648. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9649. 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"
  9650. 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"
  9651. else
  9652. ld_shlibs=no
  9653. fi
  9654. ;;
  9655. dgux*)
  9656. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9657. hardcode_libdir_flag_spec='-L$libdir'
  9658. hardcode_shlibpath_var=no
  9659. ;;
  9660. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9661. # support. Future versions do this automatically, but an explicit c++rt0.o
  9662. # does not break anything, and helps significantly (at the cost of a little
  9663. # extra space).
  9664. freebsd2.2*)
  9665. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9666. hardcode_libdir_flag_spec='-R$libdir'
  9667. hardcode_direct=yes
  9668. hardcode_shlibpath_var=no
  9669. ;;
  9670. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9671. freebsd2.*)
  9672. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9673. hardcode_direct=yes
  9674. hardcode_minus_L=yes
  9675. hardcode_shlibpath_var=no
  9676. ;;
  9677. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9678. freebsd* | dragonfly*)
  9679. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9680. hardcode_libdir_flag_spec='-R$libdir'
  9681. hardcode_direct=yes
  9682. hardcode_shlibpath_var=no
  9683. ;;
  9684. hpux9*)
  9685. if test yes = "$GCC"; then
  9686. 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'
  9687. else
  9688. 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'
  9689. fi
  9690. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9691. hardcode_libdir_separator=:
  9692. hardcode_direct=yes
  9693. # hardcode_minus_L: Not really in the search PATH,
  9694. # but as the default location of the library.
  9695. hardcode_minus_L=yes
  9696. export_dynamic_flag_spec='$wl-E'
  9697. ;;
  9698. hpux10*)
  9699. if test yes,no = "$GCC,$with_gnu_ld"; then
  9700. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9701. else
  9702. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9703. fi
  9704. if test no = "$with_gnu_ld"; then
  9705. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9706. hardcode_libdir_separator=:
  9707. hardcode_direct=yes
  9708. hardcode_direct_absolute=yes
  9709. export_dynamic_flag_spec='$wl-E'
  9710. # hardcode_minus_L: Not really in the search PATH,
  9711. # but as the default location of the library.
  9712. hardcode_minus_L=yes
  9713. fi
  9714. ;;
  9715. hpux11*)
  9716. if test yes,no = "$GCC,$with_gnu_ld"; then
  9717. case $host_cpu in
  9718. hppa*64*)
  9719. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9720. ;;
  9721. ia64*)
  9722. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9723. ;;
  9724. *)
  9725. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9726. ;;
  9727. esac
  9728. else
  9729. case $host_cpu in
  9730. hppa*64*)
  9731. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9732. ;;
  9733. ia64*)
  9734. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9735. ;;
  9736. *)
  9737. # Older versions of the 11.00 compiler do not understand -b yet
  9738. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9740. printf %s "checking if $CC understands -b... " >&6; }
  9741. if test ${lt_cv_prog_compiler__b+y}
  9742. then :
  9743. printf %s "(cached) " >&6
  9744. else $as_nop
  9745. lt_cv_prog_compiler__b=no
  9746. save_LDFLAGS=$LDFLAGS
  9747. LDFLAGS="$LDFLAGS -b"
  9748. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9749. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9750. # The linker can only warn and ignore the option if not recognized
  9751. # So say no if there are warnings
  9752. if test -s conftest.err; then
  9753. # Append any errors to the config.log.
  9754. cat conftest.err 1>&5
  9755. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9756. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9757. if diff conftest.exp conftest.er2 >/dev/null; then
  9758. lt_cv_prog_compiler__b=yes
  9759. fi
  9760. else
  9761. lt_cv_prog_compiler__b=yes
  9762. fi
  9763. fi
  9764. $RM -r conftest*
  9765. LDFLAGS=$save_LDFLAGS
  9766. fi
  9767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9768. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9769. if test yes = "$lt_cv_prog_compiler__b"; then
  9770. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9771. else
  9772. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9773. fi
  9774. ;;
  9775. esac
  9776. fi
  9777. if test no = "$with_gnu_ld"; then
  9778. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9779. hardcode_libdir_separator=:
  9780. case $host_cpu in
  9781. hppa*64*|ia64*)
  9782. hardcode_direct=no
  9783. hardcode_shlibpath_var=no
  9784. ;;
  9785. *)
  9786. hardcode_direct=yes
  9787. hardcode_direct_absolute=yes
  9788. export_dynamic_flag_spec='$wl-E'
  9789. # hardcode_minus_L: Not really in the search PATH,
  9790. # but as the default location of the library.
  9791. hardcode_minus_L=yes
  9792. ;;
  9793. esac
  9794. fi
  9795. ;;
  9796. irix5* | irix6* | nonstopux*)
  9797. if test yes = "$GCC"; then
  9798. 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'
  9799. # Try to use the -exported_symbol ld option, if it does not
  9800. # work, assume that -exports_file does not work either and
  9801. # implicitly export all symbols.
  9802. # This should be the same for all languages, so no per-tag cache variable.
  9803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9804. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9805. if test ${lt_cv_irix_exported_symbol+y}
  9806. then :
  9807. printf %s "(cached) " >&6
  9808. else $as_nop
  9809. save_LDFLAGS=$LDFLAGS
  9810. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9812. /* end confdefs.h. */
  9813. int foo (void) { return 0; }
  9814. _ACEOF
  9815. if ac_fn_c_try_link "$LINENO"
  9816. then :
  9817. lt_cv_irix_exported_symbol=yes
  9818. else $as_nop
  9819. lt_cv_irix_exported_symbol=no
  9820. fi
  9821. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9822. conftest$ac_exeext conftest.$ac_ext
  9823. LDFLAGS=$save_LDFLAGS
  9824. fi
  9825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9826. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9827. if test yes = "$lt_cv_irix_exported_symbol"; then
  9828. 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'
  9829. fi
  9830. else
  9831. 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'
  9832. 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'
  9833. fi
  9834. archive_cmds_need_lc='no'
  9835. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9836. hardcode_libdir_separator=:
  9837. inherit_rpath=yes
  9838. link_all_deplibs=yes
  9839. ;;
  9840. linux*)
  9841. case $cc_basename in
  9842. tcc*)
  9843. # Fabrice Bellard et al's Tiny C Compiler
  9844. ld_shlibs=yes
  9845. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9846. ;;
  9847. esac
  9848. ;;
  9849. netbsd*)
  9850. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9851. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9852. else
  9853. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9854. fi
  9855. hardcode_libdir_flag_spec='-R$libdir'
  9856. hardcode_direct=yes
  9857. hardcode_shlibpath_var=no
  9858. ;;
  9859. newsos6)
  9860. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9861. hardcode_direct=yes
  9862. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9863. hardcode_libdir_separator=:
  9864. hardcode_shlibpath_var=no
  9865. ;;
  9866. *nto* | *qnx*)
  9867. ;;
  9868. openbsd* | bitrig*)
  9869. if test -f /usr/libexec/ld.so; then
  9870. hardcode_direct=yes
  9871. hardcode_shlibpath_var=no
  9872. hardcode_direct_absolute=yes
  9873. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9874. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9875. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9876. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9877. export_dynamic_flag_spec='$wl-E'
  9878. else
  9879. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9880. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9881. fi
  9882. else
  9883. ld_shlibs=no
  9884. fi
  9885. ;;
  9886. os2*)
  9887. hardcode_libdir_flag_spec='-L$libdir'
  9888. hardcode_minus_L=yes
  9889. allow_undefined_flag=unsupported
  9890. shrext_cmds=.dll
  9891. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9892. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9893. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9894. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9895. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9896. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9897. emximp -o $lib $output_objdir/$libname.def'
  9898. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9899. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9900. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9901. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9902. prefix_cmds="$SED"~
  9903. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9904. prefix_cmds="$prefix_cmds -e 1d";
  9905. fi~
  9906. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9907. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9908. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9909. emximp -o $lib $output_objdir/$libname.def'
  9910. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9911. enable_shared_with_static_runtimes=yes
  9912. ;;
  9913. osf3*)
  9914. if test yes = "$GCC"; then
  9915. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9916. 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'
  9917. else
  9918. allow_undefined_flag=' -expect_unresolved \*'
  9919. 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'
  9920. fi
  9921. archive_cmds_need_lc='no'
  9922. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9923. hardcode_libdir_separator=:
  9924. ;;
  9925. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9926. if test yes = "$GCC"; then
  9927. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9928. 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'
  9929. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9930. else
  9931. allow_undefined_flag=' -expect_unresolved \*'
  9932. 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'
  9933. 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~
  9934. $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'
  9935. # Both c and cxx compiler support -rpath directly
  9936. hardcode_libdir_flag_spec='-rpath $libdir'
  9937. fi
  9938. archive_cmds_need_lc='no'
  9939. hardcode_libdir_separator=:
  9940. ;;
  9941. solaris*)
  9942. no_undefined_flag=' -z defs'
  9943. if test yes = "$GCC"; then
  9944. wlarc='$wl'
  9945. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9946. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9947. $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'
  9948. else
  9949. case `$CC -V 2>&1` in
  9950. *"Compilers 5.0"*)
  9951. wlarc=''
  9952. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9953. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9954. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9955. ;;
  9956. *)
  9957. wlarc='$wl'
  9958. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9959. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9960. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9961. ;;
  9962. esac
  9963. fi
  9964. hardcode_libdir_flag_spec='-R$libdir'
  9965. hardcode_shlibpath_var=no
  9966. case $host_os in
  9967. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9968. *)
  9969. # The compiler driver will combine and reorder linker options,
  9970. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9971. # but is careful enough not to reorder.
  9972. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9973. if test yes = "$GCC"; then
  9974. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9975. else
  9976. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9977. fi
  9978. ;;
  9979. esac
  9980. link_all_deplibs=yes
  9981. ;;
  9982. sunos4*)
  9983. if test sequent = "$host_vendor"; then
  9984. # Use $CC to link under sequent, because it throws in some extra .o
  9985. # files that make .init and .fini sections work.
  9986. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9987. else
  9988. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9989. fi
  9990. hardcode_libdir_flag_spec='-L$libdir'
  9991. hardcode_direct=yes
  9992. hardcode_minus_L=yes
  9993. hardcode_shlibpath_var=no
  9994. ;;
  9995. sysv4)
  9996. case $host_vendor in
  9997. sni)
  9998. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9999. hardcode_direct=yes # is this really true???
  10000. ;;
  10001. siemens)
  10002. ## LD is ld it makes a PLAMLIB
  10003. ## CC just makes a GrossModule.
  10004. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10005. reload_cmds='$CC -r -o $output$reload_objs'
  10006. hardcode_direct=no
  10007. ;;
  10008. motorola)
  10009. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10010. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10011. ;;
  10012. esac
  10013. runpath_var='LD_RUN_PATH'
  10014. hardcode_shlibpath_var=no
  10015. ;;
  10016. sysv4.3*)
  10017. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10018. hardcode_shlibpath_var=no
  10019. export_dynamic_flag_spec='-Bexport'
  10020. ;;
  10021. sysv4*MP*)
  10022. if test -d /usr/nec; then
  10023. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10024. hardcode_shlibpath_var=no
  10025. runpath_var=LD_RUN_PATH
  10026. hardcode_runpath_var=yes
  10027. ld_shlibs=yes
  10028. fi
  10029. ;;
  10030. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10031. no_undefined_flag='$wl-z,text'
  10032. archive_cmds_need_lc=no
  10033. hardcode_shlibpath_var=no
  10034. runpath_var='LD_RUN_PATH'
  10035. if test yes = "$GCC"; then
  10036. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10037. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10038. else
  10039. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10040. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10041. fi
  10042. ;;
  10043. sysv5* | sco3.2v5* | sco5v6*)
  10044. # Note: We CANNOT use -z defs as we might desire, because we do not
  10045. # link with -lc, and that would cause any symbols used from libc to
  10046. # always be unresolved, which means just about no library would
  10047. # ever link correctly. If we're not using GNU ld we use -z text
  10048. # though, which does catch some bad symbols but isn't as heavy-handed
  10049. # as -z defs.
  10050. no_undefined_flag='$wl-z,text'
  10051. allow_undefined_flag='$wl-z,nodefs'
  10052. archive_cmds_need_lc=no
  10053. hardcode_shlibpath_var=no
  10054. hardcode_libdir_flag_spec='$wl-R,$libdir'
  10055. hardcode_libdir_separator=':'
  10056. link_all_deplibs=yes
  10057. export_dynamic_flag_spec='$wl-Bexport'
  10058. runpath_var='LD_RUN_PATH'
  10059. if test yes = "$GCC"; then
  10060. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10061. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10062. else
  10063. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10064. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10065. fi
  10066. ;;
  10067. uts4*)
  10068. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10069. hardcode_libdir_flag_spec='-L$libdir'
  10070. hardcode_shlibpath_var=no
  10071. ;;
  10072. *)
  10073. ld_shlibs=no
  10074. ;;
  10075. esac
  10076. if test sni = "$host_vendor"; then
  10077. case $host in
  10078. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10079. export_dynamic_flag_spec='$wl-Blargedynsym'
  10080. ;;
  10081. esac
  10082. fi
  10083. fi
  10084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10085. printf "%s\n" "$ld_shlibs" >&6; }
  10086. test no = "$ld_shlibs" && can_build_shared=no
  10087. with_gnu_ld=$with_gnu_ld
  10088. #
  10089. # Do we need to explicitly link libc?
  10090. #
  10091. case "x$archive_cmds_need_lc" in
  10092. x|xyes)
  10093. # Assume -lc should be added
  10094. archive_cmds_need_lc=yes
  10095. if test yes,yes = "$GCC,$enable_shared"; then
  10096. case $archive_cmds in
  10097. *'~'*)
  10098. # FIXME: we may have to deal with multi-command sequences.
  10099. ;;
  10100. '$CC '*)
  10101. # Test whether the compiler implicitly links with -lc since on some
  10102. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10103. # to ld, don't add -lc before -lgcc.
  10104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10105. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  10106. if test ${lt_cv_archive_cmds_need_lc+y}
  10107. then :
  10108. printf %s "(cached) " >&6
  10109. else $as_nop
  10110. $RM conftest*
  10111. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10112. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10113. (eval $ac_compile) 2>&5
  10114. ac_status=$?
  10115. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10116. test $ac_status = 0; } 2>conftest.err; then
  10117. soname=conftest
  10118. lib=conftest
  10119. libobjs=conftest.$ac_objext
  10120. deplibs=
  10121. wl=$lt_prog_compiler_wl
  10122. pic_flag=$lt_prog_compiler_pic
  10123. compiler_flags=-v
  10124. linker_flags=-v
  10125. verstring=
  10126. output_objdir=.
  10127. libname=conftest
  10128. lt_save_allow_undefined_flag=$allow_undefined_flag
  10129. allow_undefined_flag=
  10130. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10131. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10132. ac_status=$?
  10133. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10134. test $ac_status = 0; }
  10135. then
  10136. lt_cv_archive_cmds_need_lc=no
  10137. else
  10138. lt_cv_archive_cmds_need_lc=yes
  10139. fi
  10140. allow_undefined_flag=$lt_save_allow_undefined_flag
  10141. else
  10142. cat conftest.err 1>&5
  10143. fi
  10144. $RM conftest*
  10145. fi
  10146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10147. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  10148. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10149. ;;
  10150. esac
  10151. fi
  10152. ;;
  10153. esac
  10154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10155. printf %s "checking dynamic linker characteristics... " >&6; }
  10156. if test yes = "$GCC"; then
  10157. case $host_os in
  10158. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  10159. *) lt_awk_arg='/^libraries:/' ;;
  10160. esac
  10161. case $host_os in
  10162. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  10163. *) lt_sed_strip_eq='s|=/|/|g' ;;
  10164. esac
  10165. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10166. case $lt_search_path_spec in
  10167. *\;*)
  10168. # if the path contains ";" then we assume it to be the separator
  10169. # otherwise default to the standard path separator (i.e. ":") - it is
  10170. # assumed that no part of a normal pathname contains ";" but that should
  10171. # okay in the real world where ";" in dirpaths is itself problematic.
  10172. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10173. ;;
  10174. *)
  10175. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10176. ;;
  10177. esac
  10178. # Ok, now we have the path, separated by spaces, we can step through it
  10179. # and add multilib dir if necessary...
  10180. lt_tmp_lt_search_path_spec=
  10181. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10182. # ...but if some path component already ends with the multilib dir we assume
  10183. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10184. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10185. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10186. lt_multi_os_dir=
  10187. ;;
  10188. esac
  10189. for lt_sys_path in $lt_search_path_spec; do
  10190. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10191. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10192. elif test -n "$lt_multi_os_dir"; then
  10193. test -d "$lt_sys_path" && \
  10194. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10195. fi
  10196. done
  10197. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10198. BEGIN {RS = " "; FS = "/|\n";} {
  10199. lt_foo = "";
  10200. lt_count = 0;
  10201. for (lt_i = NF; lt_i > 0; lt_i--) {
  10202. if ($lt_i != "" && $lt_i != ".") {
  10203. if ($lt_i == "..") {
  10204. lt_count++;
  10205. } else {
  10206. if (lt_count == 0) {
  10207. lt_foo = "/" $lt_i lt_foo;
  10208. } else {
  10209. lt_count--;
  10210. }
  10211. }
  10212. }
  10213. }
  10214. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10215. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10216. }'`
  10217. # AWK program above erroneously prepends '/' to C:/dos/paths
  10218. # for these hosts.
  10219. case $host_os in
  10220. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10221. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10222. esac
  10223. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10224. else
  10225. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10226. fi
  10227. library_names_spec=
  10228. libname_spec='lib$name'
  10229. soname_spec=
  10230. shrext_cmds=.so
  10231. postinstall_cmds=
  10232. postuninstall_cmds=
  10233. finish_cmds=
  10234. finish_eval=
  10235. shlibpath_var=
  10236. shlibpath_overrides_runpath=unknown
  10237. version_type=none
  10238. dynamic_linker="$host_os ld.so"
  10239. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10240. need_lib_prefix=unknown
  10241. hardcode_into_libs=no
  10242. # when you set need_version to no, make sure it does not cause -set_version
  10243. # flags to be left without arguments
  10244. need_version=unknown
  10245. case $host_os in
  10246. aix3*)
  10247. version_type=linux # correct to gnu/linux during the next big refactor
  10248. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10249. shlibpath_var=LIBPATH
  10250. # AIX 3 has no versioning support, so we append a major version to the name.
  10251. soname_spec='$libname$release$shared_ext$major'
  10252. ;;
  10253. aix[4-9]*)
  10254. version_type=linux # correct to gnu/linux during the next big refactor
  10255. need_lib_prefix=no
  10256. need_version=no
  10257. hardcode_into_libs=yes
  10258. if test ia64 = "$host_cpu"; then
  10259. # AIX 5 supports IA64
  10260. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10261. shlibpath_var=LD_LIBRARY_PATH
  10262. else
  10263. # With GCC up to 2.95.x, collect2 would create an import file
  10264. # for dependence libraries. The import file would start with
  10265. # the line '#! .'. This would cause the generated library to
  10266. # depend on '.', always an invalid library. This was fixed in
  10267. # development snapshots of GCC prior to 3.0.
  10268. case $host_os in
  10269. aix4 | aix4.[01] | aix4.[01].*)
  10270. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10271. echo ' yes '
  10272. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10273. :
  10274. else
  10275. can_build_shared=no
  10276. fi
  10277. ;;
  10278. esac
  10279. # Using Import Files as archive members, it is possible to support
  10280. # filename-based versioning of shared library archives on AIX. While
  10281. # this would work for both with and without runtime linking, it will
  10282. # prevent static linking of such archives. So we do filename-based
  10283. # shared library versioning with .so extension only, which is used
  10284. # when both runtime linking and shared linking is enabled.
  10285. # Unfortunately, runtime linking may impact performance, so we do
  10286. # not want this to be the default eventually. Also, we use the
  10287. # versioned .so libs for executables only if there is the -brtl
  10288. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10289. # To allow for filename-based versioning support, we need to create
  10290. # libNAME.so.V as an archive file, containing:
  10291. # *) an Import File, referring to the versioned filename of the
  10292. # archive as well as the shared archive member, telling the
  10293. # bitwidth (32 or 64) of that shared object, and providing the
  10294. # list of exported symbols of that shared object, eventually
  10295. # decorated with the 'weak' keyword
  10296. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10297. # it being seen by the linker.
  10298. # At run time we better use the real file rather than another symlink,
  10299. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10300. case $with_aix_soname,$aix_use_runtimelinking in
  10301. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10302. # soname into executable. Probably we can add versioning support to
  10303. # collect2, so additional links can be useful in future.
  10304. aix,yes) # traditional libtool
  10305. dynamic_linker='AIX unversionable lib.so'
  10306. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10307. # instead of lib<name>.a to let people know that these are not
  10308. # typical AIX shared libraries.
  10309. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10310. ;;
  10311. aix,no) # traditional AIX only
  10312. dynamic_linker='AIX lib.a(lib.so.V)'
  10313. # We preserve .a as extension for shared libraries through AIX4.2
  10314. # and later when we are not doing run time linking.
  10315. library_names_spec='$libname$release.a $libname.a'
  10316. soname_spec='$libname$release$shared_ext$major'
  10317. ;;
  10318. svr4,*) # full svr4 only
  10319. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10320. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10321. # We do not specify a path in Import Files, so LIBPATH fires.
  10322. shlibpath_overrides_runpath=yes
  10323. ;;
  10324. *,yes) # both, prefer svr4
  10325. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10326. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10327. # unpreferred sharedlib libNAME.a needs extra handling
  10328. 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"'
  10329. 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"'
  10330. # We do not specify a path in Import Files, so LIBPATH fires.
  10331. shlibpath_overrides_runpath=yes
  10332. ;;
  10333. *,no) # both, prefer aix
  10334. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10335. library_names_spec='$libname$release.a $libname.a'
  10336. soname_spec='$libname$release$shared_ext$major'
  10337. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10338. 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)'
  10339. 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"'
  10340. ;;
  10341. esac
  10342. shlibpath_var=LIBPATH
  10343. fi
  10344. ;;
  10345. amigaos*)
  10346. case $host_cpu in
  10347. powerpc)
  10348. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10349. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10350. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10351. ;;
  10352. m68k)
  10353. library_names_spec='$libname.ixlibrary $libname.a'
  10354. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10355. 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'
  10356. ;;
  10357. esac
  10358. ;;
  10359. beos*)
  10360. library_names_spec='$libname$shared_ext'
  10361. dynamic_linker="$host_os ld.so"
  10362. shlibpath_var=LIBRARY_PATH
  10363. ;;
  10364. bsdi[45]*)
  10365. version_type=linux # correct to gnu/linux during the next big refactor
  10366. need_version=no
  10367. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10368. soname_spec='$libname$release$shared_ext$major'
  10369. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10370. shlibpath_var=LD_LIBRARY_PATH
  10371. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10372. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10373. # the default ld.so.conf also contains /usr/contrib/lib and
  10374. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10375. # libtool to hard-code these into programs
  10376. ;;
  10377. cygwin* | mingw* | pw32* | cegcc*)
  10378. version_type=windows
  10379. shrext_cmds=.dll
  10380. need_version=no
  10381. need_lib_prefix=no
  10382. case $GCC,$cc_basename in
  10383. yes,*)
  10384. # gcc
  10385. library_names_spec='$libname.dll.a'
  10386. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10387. postinstall_cmds='base_file=`basename \$file`~
  10388. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10389. dldir=$destdir/`dirname \$dlpath`~
  10390. test -d \$dldir || mkdir -p \$dldir~
  10391. $install_prog $dir/$dlname \$dldir/$dlname~
  10392. chmod a+x \$dldir/$dlname~
  10393. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10394. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10395. fi'
  10396. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10397. dlpath=$dir/\$dldll~
  10398. $RM \$dlpath'
  10399. shlibpath_overrides_runpath=yes
  10400. case $host_os in
  10401. cygwin*)
  10402. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10403. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10404. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10405. ;;
  10406. mingw* | cegcc*)
  10407. # MinGW DLLs use traditional 'lib' prefix
  10408. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10409. ;;
  10410. pw32*)
  10411. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10412. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10413. ;;
  10414. esac
  10415. dynamic_linker='Win32 ld.exe'
  10416. ;;
  10417. *,cl*)
  10418. # Native MSVC
  10419. libname_spec='$name'
  10420. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10421. library_names_spec='$libname.dll.lib'
  10422. case $build_os in
  10423. mingw*)
  10424. sys_lib_search_path_spec=
  10425. lt_save_ifs=$IFS
  10426. IFS=';'
  10427. for lt_path in $LIB
  10428. do
  10429. IFS=$lt_save_ifs
  10430. # Let DOS variable expansion print the short 8.3 style file name.
  10431. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10432. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10433. done
  10434. IFS=$lt_save_ifs
  10435. # Convert to MSYS style.
  10436. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10437. ;;
  10438. cygwin*)
  10439. # Convert to unix form, then to dos form, then back to unix form
  10440. # but this time dos style (no spaces!) so that the unix form looks
  10441. # like /cygdrive/c/PROGRA~1:/cygdr...
  10442. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10443. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10444. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10445. ;;
  10446. *)
  10447. sys_lib_search_path_spec=$LIB
  10448. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10449. # It is most probably a Windows format PATH.
  10450. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10451. else
  10452. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10453. fi
  10454. # FIXME: find the short name or the path components, as spaces are
  10455. # common. (e.g. "Program Files" -> "PROGRA~1")
  10456. ;;
  10457. esac
  10458. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10459. postinstall_cmds='base_file=`basename \$file`~
  10460. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10461. dldir=$destdir/`dirname \$dlpath`~
  10462. test -d \$dldir || mkdir -p \$dldir~
  10463. $install_prog $dir/$dlname \$dldir/$dlname'
  10464. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10465. dlpath=$dir/\$dldll~
  10466. $RM \$dlpath'
  10467. shlibpath_overrides_runpath=yes
  10468. dynamic_linker='Win32 link.exe'
  10469. ;;
  10470. *)
  10471. # Assume MSVC wrapper
  10472. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10473. dynamic_linker='Win32 ld.exe'
  10474. ;;
  10475. esac
  10476. # FIXME: first we should search . and the directory the executable is in
  10477. shlibpath_var=PATH
  10478. ;;
  10479. darwin* | rhapsody*)
  10480. dynamic_linker="$host_os dyld"
  10481. version_type=darwin
  10482. need_lib_prefix=no
  10483. need_version=no
  10484. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10485. soname_spec='$libname$release$major$shared_ext'
  10486. shlibpath_overrides_runpath=yes
  10487. shlibpath_var=DYLD_LIBRARY_PATH
  10488. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10489. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10490. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10491. ;;
  10492. dgux*)
  10493. version_type=linux # correct to gnu/linux during the next big refactor
  10494. need_lib_prefix=no
  10495. need_version=no
  10496. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10497. soname_spec='$libname$release$shared_ext$major'
  10498. shlibpath_var=LD_LIBRARY_PATH
  10499. ;;
  10500. freebsd* | dragonfly*)
  10501. # DragonFly does not have aout. When/if they implement a new
  10502. # versioning mechanism, adjust this.
  10503. if test -x /usr/bin/objformat; then
  10504. objformat=`/usr/bin/objformat`
  10505. else
  10506. case $host_os in
  10507. freebsd[23].*) objformat=aout ;;
  10508. *) objformat=elf ;;
  10509. esac
  10510. fi
  10511. version_type=freebsd-$objformat
  10512. case $version_type in
  10513. freebsd-elf*)
  10514. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10515. soname_spec='$libname$release$shared_ext$major'
  10516. need_version=no
  10517. need_lib_prefix=no
  10518. ;;
  10519. freebsd-*)
  10520. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10521. need_version=yes
  10522. ;;
  10523. esac
  10524. shlibpath_var=LD_LIBRARY_PATH
  10525. case $host_os in
  10526. freebsd2.*)
  10527. shlibpath_overrides_runpath=yes
  10528. ;;
  10529. freebsd3.[01]* | freebsdelf3.[01]*)
  10530. shlibpath_overrides_runpath=yes
  10531. hardcode_into_libs=yes
  10532. ;;
  10533. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10534. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10535. shlibpath_overrides_runpath=no
  10536. hardcode_into_libs=yes
  10537. ;;
  10538. *) # from 4.6 on, and DragonFly
  10539. shlibpath_overrides_runpath=yes
  10540. hardcode_into_libs=yes
  10541. ;;
  10542. esac
  10543. ;;
  10544. haiku*)
  10545. version_type=linux # correct to gnu/linux during the next big refactor
  10546. need_lib_prefix=no
  10547. need_version=no
  10548. dynamic_linker="$host_os runtime_loader"
  10549. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10550. soname_spec='$libname$release$shared_ext$major'
  10551. shlibpath_var=LIBRARY_PATH
  10552. shlibpath_overrides_runpath=no
  10553. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10554. hardcode_into_libs=yes
  10555. ;;
  10556. hpux9* | hpux10* | hpux11*)
  10557. # Give a soname corresponding to the major version so that dld.sl refuses to
  10558. # link against other versions.
  10559. version_type=sunos
  10560. need_lib_prefix=no
  10561. need_version=no
  10562. case $host_cpu in
  10563. ia64*)
  10564. shrext_cmds='.so'
  10565. hardcode_into_libs=yes
  10566. dynamic_linker="$host_os dld.so"
  10567. shlibpath_var=LD_LIBRARY_PATH
  10568. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10569. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10570. soname_spec='$libname$release$shared_ext$major'
  10571. if test 32 = "$HPUX_IA64_MODE"; then
  10572. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10573. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10574. else
  10575. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10576. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10577. fi
  10578. ;;
  10579. hppa*64*)
  10580. shrext_cmds='.sl'
  10581. hardcode_into_libs=yes
  10582. dynamic_linker="$host_os dld.sl"
  10583. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10584. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10585. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10586. soname_spec='$libname$release$shared_ext$major'
  10587. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10588. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10589. ;;
  10590. *)
  10591. shrext_cmds='.sl'
  10592. dynamic_linker="$host_os dld.sl"
  10593. shlibpath_var=SHLIB_PATH
  10594. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10595. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10596. soname_spec='$libname$release$shared_ext$major'
  10597. ;;
  10598. esac
  10599. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10600. postinstall_cmds='chmod 555 $lib'
  10601. # or fails outright, so override atomically:
  10602. install_override_mode=555
  10603. ;;
  10604. interix[3-9]*)
  10605. version_type=linux # correct to gnu/linux during the next big refactor
  10606. need_lib_prefix=no
  10607. need_version=no
  10608. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10609. soname_spec='$libname$release$shared_ext$major'
  10610. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10611. shlibpath_var=LD_LIBRARY_PATH
  10612. shlibpath_overrides_runpath=no
  10613. hardcode_into_libs=yes
  10614. ;;
  10615. irix5* | irix6* | nonstopux*)
  10616. case $host_os in
  10617. nonstopux*) version_type=nonstopux ;;
  10618. *)
  10619. if test yes = "$lt_cv_prog_gnu_ld"; then
  10620. version_type=linux # correct to gnu/linux during the next big refactor
  10621. else
  10622. version_type=irix
  10623. fi ;;
  10624. esac
  10625. need_lib_prefix=no
  10626. need_version=no
  10627. soname_spec='$libname$release$shared_ext$major'
  10628. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10629. case $host_os in
  10630. irix5* | nonstopux*)
  10631. libsuff= shlibsuff=
  10632. ;;
  10633. *)
  10634. case $LD in # libtool.m4 will add one of these switches to LD
  10635. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10636. libsuff= shlibsuff= libmagic=32-bit;;
  10637. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10638. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10639. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10640. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10641. *) libsuff= shlibsuff= libmagic=never-match;;
  10642. esac
  10643. ;;
  10644. esac
  10645. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10646. shlibpath_overrides_runpath=no
  10647. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10648. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10649. hardcode_into_libs=yes
  10650. ;;
  10651. # No shared lib support for Linux oldld, aout, or coff.
  10652. linux*oldld* | linux*aout* | linux*coff*)
  10653. dynamic_linker=no
  10654. ;;
  10655. linux*android*)
  10656. version_type=none # Android doesn't support versioned libraries.
  10657. need_lib_prefix=no
  10658. need_version=no
  10659. library_names_spec='$libname$release$shared_ext'
  10660. soname_spec='$libname$release$shared_ext'
  10661. finish_cmds=
  10662. shlibpath_var=LD_LIBRARY_PATH
  10663. shlibpath_overrides_runpath=yes
  10664. # This implies no fast_install, which is unacceptable.
  10665. # Some rework will be needed to allow for fast_install
  10666. # before this can be enabled.
  10667. hardcode_into_libs=yes
  10668. dynamic_linker='Android linker'
  10669. # Don't embed -rpath directories since the linker doesn't support them.
  10670. hardcode_libdir_flag_spec='-L$libdir'
  10671. ;;
  10672. # This must be glibc/ELF.
  10673. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10674. version_type=linux # correct to gnu/linux during the next big refactor
  10675. need_lib_prefix=no
  10676. need_version=no
  10677. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10678. soname_spec='$libname$release$shared_ext$major'
  10679. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10680. shlibpath_var=LD_LIBRARY_PATH
  10681. shlibpath_overrides_runpath=no
  10682. # Some binutils ld are patched to set DT_RUNPATH
  10683. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10684. then :
  10685. printf %s "(cached) " >&6
  10686. else $as_nop
  10687. lt_cv_shlibpath_overrides_runpath=no
  10688. save_LDFLAGS=$LDFLAGS
  10689. save_libdir=$libdir
  10690. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10691. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10693. /* end confdefs.h. */
  10694. int
  10695. main (void)
  10696. {
  10697. ;
  10698. return 0;
  10699. }
  10700. _ACEOF
  10701. if ac_fn_c_try_link "$LINENO"
  10702. then :
  10703. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10704. then :
  10705. lt_cv_shlibpath_overrides_runpath=yes
  10706. fi
  10707. fi
  10708. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10709. conftest$ac_exeext conftest.$ac_ext
  10710. LDFLAGS=$save_LDFLAGS
  10711. libdir=$save_libdir
  10712. fi
  10713. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10714. # This implies no fast_install, which is unacceptable.
  10715. # Some rework will be needed to allow for fast_install
  10716. # before this can be enabled.
  10717. hardcode_into_libs=yes
  10718. # Ideally, we could use ldconfig to report *all* directores which are
  10719. # searched for libraries, however this is still not possible. Aside from not
  10720. # being certain /sbin/ldconfig is available, command
  10721. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10722. # even though it is searched at run-time. Try to do the best guess by
  10723. # appending ld.so.conf contents (and includes) to the search path.
  10724. if test -f /etc/ld.so.conf; then
  10725. 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' ' '`
  10726. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10727. fi
  10728. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10729. # powerpc, because MkLinux only supported shared libraries with the
  10730. # GNU dynamic linker. Since this was broken with cross compilers,
  10731. # most powerpc-linux boxes support dynamic linking these days and
  10732. # people can always --disable-shared, the test was removed, and we
  10733. # assume the GNU/Linux dynamic linker is in use.
  10734. dynamic_linker='GNU/Linux ld.so'
  10735. ;;
  10736. netbsd*)
  10737. version_type=sunos
  10738. need_lib_prefix=no
  10739. need_version=no
  10740. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10741. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10742. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10743. dynamic_linker='NetBSD (a.out) ld.so'
  10744. else
  10745. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10746. soname_spec='$libname$release$shared_ext$major'
  10747. dynamic_linker='NetBSD ld.elf_so'
  10748. fi
  10749. shlibpath_var=LD_LIBRARY_PATH
  10750. shlibpath_overrides_runpath=yes
  10751. hardcode_into_libs=yes
  10752. ;;
  10753. newsos6)
  10754. version_type=linux # correct to gnu/linux during the next big refactor
  10755. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10756. shlibpath_var=LD_LIBRARY_PATH
  10757. shlibpath_overrides_runpath=yes
  10758. ;;
  10759. *nto* | *qnx*)
  10760. version_type=qnx
  10761. need_lib_prefix=no
  10762. need_version=no
  10763. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10764. soname_spec='$libname$release$shared_ext$major'
  10765. shlibpath_var=LD_LIBRARY_PATH
  10766. shlibpath_overrides_runpath=no
  10767. hardcode_into_libs=yes
  10768. dynamic_linker='ldqnx.so'
  10769. ;;
  10770. openbsd* | bitrig*)
  10771. version_type=sunos
  10772. sys_lib_dlsearch_path_spec=/usr/lib
  10773. need_lib_prefix=no
  10774. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10775. need_version=no
  10776. else
  10777. need_version=yes
  10778. fi
  10779. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10780. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10781. shlibpath_var=LD_LIBRARY_PATH
  10782. shlibpath_overrides_runpath=yes
  10783. ;;
  10784. os2*)
  10785. libname_spec='$name'
  10786. version_type=windows
  10787. shrext_cmds=.dll
  10788. need_version=no
  10789. need_lib_prefix=no
  10790. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10791. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10792. v=$($ECHO $release$versuffix | tr -d .-);
  10793. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10794. $ECHO $n$v`$shared_ext'
  10795. library_names_spec='${libname}_dll.$libext'
  10796. dynamic_linker='OS/2 ld.exe'
  10797. shlibpath_var=BEGINLIBPATH
  10798. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10799. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10800. postinstall_cmds='base_file=`basename \$file`~
  10801. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10802. dldir=$destdir/`dirname \$dlpath`~
  10803. test -d \$dldir || mkdir -p \$dldir~
  10804. $install_prog $dir/$dlname \$dldir/$dlname~
  10805. chmod a+x \$dldir/$dlname~
  10806. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10807. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10808. fi'
  10809. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10810. dlpath=$dir/\$dldll~
  10811. $RM \$dlpath'
  10812. ;;
  10813. osf3* | osf4* | osf5*)
  10814. version_type=osf
  10815. need_lib_prefix=no
  10816. need_version=no
  10817. soname_spec='$libname$release$shared_ext$major'
  10818. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10819. shlibpath_var=LD_LIBRARY_PATH
  10820. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10821. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10822. ;;
  10823. rdos*)
  10824. dynamic_linker=no
  10825. ;;
  10826. solaris*)
  10827. version_type=linux # correct to gnu/linux during the next big refactor
  10828. need_lib_prefix=no
  10829. need_version=no
  10830. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10831. soname_spec='$libname$release$shared_ext$major'
  10832. shlibpath_var=LD_LIBRARY_PATH
  10833. shlibpath_overrides_runpath=yes
  10834. hardcode_into_libs=yes
  10835. # ldd complains unless libraries are executable
  10836. postinstall_cmds='chmod +x $lib'
  10837. ;;
  10838. sunos4*)
  10839. version_type=sunos
  10840. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10841. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10842. shlibpath_var=LD_LIBRARY_PATH
  10843. shlibpath_overrides_runpath=yes
  10844. if test yes = "$with_gnu_ld"; then
  10845. need_lib_prefix=no
  10846. fi
  10847. need_version=yes
  10848. ;;
  10849. sysv4 | sysv4.3*)
  10850. version_type=linux # correct to gnu/linux during the next big refactor
  10851. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10852. soname_spec='$libname$release$shared_ext$major'
  10853. shlibpath_var=LD_LIBRARY_PATH
  10854. case $host_vendor in
  10855. sni)
  10856. shlibpath_overrides_runpath=no
  10857. need_lib_prefix=no
  10858. runpath_var=LD_RUN_PATH
  10859. ;;
  10860. siemens)
  10861. need_lib_prefix=no
  10862. ;;
  10863. motorola)
  10864. need_lib_prefix=no
  10865. need_version=no
  10866. shlibpath_overrides_runpath=no
  10867. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10868. ;;
  10869. esac
  10870. ;;
  10871. sysv4*MP*)
  10872. if test -d /usr/nec; then
  10873. version_type=linux # correct to gnu/linux during the next big refactor
  10874. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10875. soname_spec='$libname$shared_ext.$major'
  10876. shlibpath_var=LD_LIBRARY_PATH
  10877. fi
  10878. ;;
  10879. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10880. version_type=sco
  10881. need_lib_prefix=no
  10882. need_version=no
  10883. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10884. soname_spec='$libname$release$shared_ext$major'
  10885. shlibpath_var=LD_LIBRARY_PATH
  10886. shlibpath_overrides_runpath=yes
  10887. hardcode_into_libs=yes
  10888. if test yes = "$with_gnu_ld"; then
  10889. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10890. else
  10891. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10892. case $host_os in
  10893. sco3.2v5*)
  10894. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10895. ;;
  10896. esac
  10897. fi
  10898. sys_lib_dlsearch_path_spec='/usr/lib'
  10899. ;;
  10900. tpf*)
  10901. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10902. version_type=linux # correct to gnu/linux during the next big refactor
  10903. need_lib_prefix=no
  10904. need_version=no
  10905. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10906. shlibpath_var=LD_LIBRARY_PATH
  10907. shlibpath_overrides_runpath=no
  10908. hardcode_into_libs=yes
  10909. ;;
  10910. uts4*)
  10911. version_type=linux # correct to gnu/linux during the next big refactor
  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. shlibpath_var=LD_LIBRARY_PATH
  10915. ;;
  10916. *)
  10917. dynamic_linker=no
  10918. ;;
  10919. esac
  10920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10921. printf "%s\n" "$dynamic_linker" >&6; }
  10922. test no = "$dynamic_linker" && can_build_shared=no
  10923. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10924. if test yes = "$GCC"; then
  10925. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10926. fi
  10927. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10928. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10929. fi
  10930. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10931. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10932. fi
  10933. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10934. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10935. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10936. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10937. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10938. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10940. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10941. hardcode_action=
  10942. if test -n "$hardcode_libdir_flag_spec" ||
  10943. test -n "$runpath_var" ||
  10944. test yes = "$hardcode_automatic"; then
  10945. # We can hardcode non-existent directories.
  10946. if test no != "$hardcode_direct" &&
  10947. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10948. # have to relink, otherwise we might link with an installed library
  10949. # when we should be linking with a yet-to-be-installed one
  10950. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10951. test no != "$hardcode_minus_L"; then
  10952. # Linking always hardcodes the temporary library directory.
  10953. hardcode_action=relink
  10954. else
  10955. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10956. hardcode_action=immediate
  10957. fi
  10958. else
  10959. # We cannot hardcode anything, or else we can only hardcode existing
  10960. # directories.
  10961. hardcode_action=unsupported
  10962. fi
  10963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10964. printf "%s\n" "$hardcode_action" >&6; }
  10965. if test relink = "$hardcode_action" ||
  10966. test yes = "$inherit_rpath"; then
  10967. # Fast installation is not supported
  10968. enable_fast_install=no
  10969. elif test yes = "$shlibpath_overrides_runpath" ||
  10970. test no = "$enable_shared"; then
  10971. # Fast installation is not necessary
  10972. enable_fast_install=needless
  10973. fi
  10974. if test yes != "$enable_dlopen"; then
  10975. enable_dlopen=unknown
  10976. enable_dlopen_self=unknown
  10977. enable_dlopen_self_static=unknown
  10978. else
  10979. lt_cv_dlopen=no
  10980. lt_cv_dlopen_libs=
  10981. case $host_os in
  10982. beos*)
  10983. lt_cv_dlopen=load_add_on
  10984. lt_cv_dlopen_libs=
  10985. lt_cv_dlopen_self=yes
  10986. ;;
  10987. mingw* | pw32* | cegcc*)
  10988. lt_cv_dlopen=LoadLibrary
  10989. lt_cv_dlopen_libs=
  10990. ;;
  10991. cygwin*)
  10992. lt_cv_dlopen=dlopen
  10993. lt_cv_dlopen_libs=
  10994. ;;
  10995. darwin*)
  10996. # if libdl is installed we need to link against it
  10997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10998. printf %s "checking for dlopen in -ldl... " >&6; }
  10999. if test ${ac_cv_lib_dl_dlopen+y}
  11000. then :
  11001. printf %s "(cached) " >&6
  11002. else $as_nop
  11003. ac_check_lib_save_LIBS=$LIBS
  11004. LIBS="-ldl $LIBS"
  11005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11006. /* end confdefs.h. */
  11007. /* Override any GCC internal prototype to avoid an error.
  11008. Use char because int might match the return type of a GCC
  11009. builtin and then its argument prototype would still apply. */
  11010. char dlopen ();
  11011. int
  11012. main (void)
  11013. {
  11014. return dlopen ();
  11015. ;
  11016. return 0;
  11017. }
  11018. _ACEOF
  11019. if ac_fn_c_try_link "$LINENO"
  11020. then :
  11021. ac_cv_lib_dl_dlopen=yes
  11022. else $as_nop
  11023. ac_cv_lib_dl_dlopen=no
  11024. fi
  11025. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11026. conftest$ac_exeext conftest.$ac_ext
  11027. LIBS=$ac_check_lib_save_LIBS
  11028. fi
  11029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11030. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  11031. if test "x$ac_cv_lib_dl_dlopen" = xyes
  11032. then :
  11033. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11034. else $as_nop
  11035. lt_cv_dlopen=dyld
  11036. lt_cv_dlopen_libs=
  11037. lt_cv_dlopen_self=yes
  11038. fi
  11039. ;;
  11040. tpf*)
  11041. # Don't try to run any link tests for TPF. We know it's impossible
  11042. # because TPF is a cross-compiler, and we know how we open DSOs.
  11043. lt_cv_dlopen=dlopen
  11044. lt_cv_dlopen_libs=
  11045. lt_cv_dlopen_self=no
  11046. ;;
  11047. *)
  11048. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11049. if test "x$ac_cv_func_shl_load" = xyes
  11050. then :
  11051. lt_cv_dlopen=shl_load
  11052. else $as_nop
  11053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11054. printf %s "checking for shl_load in -ldld... " >&6; }
  11055. if test ${ac_cv_lib_dld_shl_load+y}
  11056. then :
  11057. printf %s "(cached) " >&6
  11058. else $as_nop
  11059. ac_check_lib_save_LIBS=$LIBS
  11060. LIBS="-ldld $LIBS"
  11061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11062. /* end confdefs.h. */
  11063. /* Override any GCC internal prototype to avoid an error.
  11064. Use char because int might match the return type of a GCC
  11065. builtin and then its argument prototype would still apply. */
  11066. char shl_load ();
  11067. int
  11068. main (void)
  11069. {
  11070. return shl_load ();
  11071. ;
  11072. return 0;
  11073. }
  11074. _ACEOF
  11075. if ac_fn_c_try_link "$LINENO"
  11076. then :
  11077. ac_cv_lib_dld_shl_load=yes
  11078. else $as_nop
  11079. ac_cv_lib_dld_shl_load=no
  11080. fi
  11081. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11082. conftest$ac_exeext conftest.$ac_ext
  11083. LIBS=$ac_check_lib_save_LIBS
  11084. fi
  11085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11086. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  11087. if test "x$ac_cv_lib_dld_shl_load" = xyes
  11088. then :
  11089. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  11090. else $as_nop
  11091. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11092. if test "x$ac_cv_func_dlopen" = xyes
  11093. then :
  11094. lt_cv_dlopen=dlopen
  11095. else $as_nop
  11096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11097. printf %s "checking for dlopen in -ldl... " >&6; }
  11098. if test ${ac_cv_lib_dl_dlopen+y}
  11099. then :
  11100. printf %s "(cached) " >&6
  11101. else $as_nop
  11102. ac_check_lib_save_LIBS=$LIBS
  11103. LIBS="-ldl $LIBS"
  11104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11105. /* end confdefs.h. */
  11106. /* Override any GCC internal prototype to avoid an error.
  11107. Use char because int might match the return type of a GCC
  11108. builtin and then its argument prototype would still apply. */
  11109. char dlopen ();
  11110. int
  11111. main (void)
  11112. {
  11113. return dlopen ();
  11114. ;
  11115. return 0;
  11116. }
  11117. _ACEOF
  11118. if ac_fn_c_try_link "$LINENO"
  11119. then :
  11120. ac_cv_lib_dl_dlopen=yes
  11121. else $as_nop
  11122. ac_cv_lib_dl_dlopen=no
  11123. fi
  11124. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11125. conftest$ac_exeext conftest.$ac_ext
  11126. LIBS=$ac_check_lib_save_LIBS
  11127. fi
  11128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11129. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  11130. if test "x$ac_cv_lib_dl_dlopen" = xyes
  11131. then :
  11132. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11133. else $as_nop
  11134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11135. printf %s "checking for dlopen in -lsvld... " >&6; }
  11136. if test ${ac_cv_lib_svld_dlopen+y}
  11137. then :
  11138. printf %s "(cached) " >&6
  11139. else $as_nop
  11140. ac_check_lib_save_LIBS=$LIBS
  11141. LIBS="-lsvld $LIBS"
  11142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11143. /* end confdefs.h. */
  11144. /* Override any GCC internal prototype to avoid an error.
  11145. Use char because int might match the return type of a GCC
  11146. builtin and then its argument prototype would still apply. */
  11147. char dlopen ();
  11148. int
  11149. main (void)
  11150. {
  11151. return dlopen ();
  11152. ;
  11153. return 0;
  11154. }
  11155. _ACEOF
  11156. if ac_fn_c_try_link "$LINENO"
  11157. then :
  11158. ac_cv_lib_svld_dlopen=yes
  11159. else $as_nop
  11160. ac_cv_lib_svld_dlopen=no
  11161. fi
  11162. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11163. conftest$ac_exeext conftest.$ac_ext
  11164. LIBS=$ac_check_lib_save_LIBS
  11165. fi
  11166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11167. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  11168. if test "x$ac_cv_lib_svld_dlopen" = xyes
  11169. then :
  11170. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  11171. else $as_nop
  11172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11173. printf %s "checking for dld_link in -ldld... " >&6; }
  11174. if test ${ac_cv_lib_dld_dld_link+y}
  11175. then :
  11176. printf %s "(cached) " >&6
  11177. else $as_nop
  11178. ac_check_lib_save_LIBS=$LIBS
  11179. LIBS="-ldld $LIBS"
  11180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11181. /* end confdefs.h. */
  11182. /* Override any GCC internal prototype to avoid an error.
  11183. Use char because int might match the return type of a GCC
  11184. builtin and then its argument prototype would still apply. */
  11185. char dld_link ();
  11186. int
  11187. main (void)
  11188. {
  11189. return dld_link ();
  11190. ;
  11191. return 0;
  11192. }
  11193. _ACEOF
  11194. if ac_fn_c_try_link "$LINENO"
  11195. then :
  11196. ac_cv_lib_dld_dld_link=yes
  11197. else $as_nop
  11198. ac_cv_lib_dld_dld_link=no
  11199. fi
  11200. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11201. conftest$ac_exeext conftest.$ac_ext
  11202. LIBS=$ac_check_lib_save_LIBS
  11203. fi
  11204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11205. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  11206. if test "x$ac_cv_lib_dld_dld_link" = xyes
  11207. then :
  11208. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11209. fi
  11210. fi
  11211. fi
  11212. fi
  11213. fi
  11214. fi
  11215. ;;
  11216. esac
  11217. if test no = "$lt_cv_dlopen"; then
  11218. enable_dlopen=no
  11219. else
  11220. enable_dlopen=yes
  11221. fi
  11222. case $lt_cv_dlopen in
  11223. dlopen)
  11224. save_CPPFLAGS=$CPPFLAGS
  11225. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11226. save_LDFLAGS=$LDFLAGS
  11227. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11228. save_LIBS=$LIBS
  11229. LIBS="$lt_cv_dlopen_libs $LIBS"
  11230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11231. printf %s "checking whether a program can dlopen itself... " >&6; }
  11232. if test ${lt_cv_dlopen_self+y}
  11233. then :
  11234. printf %s "(cached) " >&6
  11235. else $as_nop
  11236. if test yes = "$cross_compiling"; then :
  11237. lt_cv_dlopen_self=cross
  11238. else
  11239. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11240. lt_status=$lt_dlunknown
  11241. cat > conftest.$ac_ext <<_LT_EOF
  11242. #line $LINENO "configure"
  11243. #include "confdefs.h"
  11244. #if HAVE_DLFCN_H
  11245. #include <dlfcn.h>
  11246. #endif
  11247. #include <stdio.h>
  11248. #ifdef RTLD_GLOBAL
  11249. # define LT_DLGLOBAL RTLD_GLOBAL
  11250. #else
  11251. # ifdef DL_GLOBAL
  11252. # define LT_DLGLOBAL DL_GLOBAL
  11253. # else
  11254. # define LT_DLGLOBAL 0
  11255. # endif
  11256. #endif
  11257. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11258. find out it does not work in some platform. */
  11259. #ifndef LT_DLLAZY_OR_NOW
  11260. # ifdef RTLD_LAZY
  11261. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11262. # else
  11263. # ifdef DL_LAZY
  11264. # define LT_DLLAZY_OR_NOW DL_LAZY
  11265. # else
  11266. # ifdef RTLD_NOW
  11267. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11268. # else
  11269. # ifdef DL_NOW
  11270. # define LT_DLLAZY_OR_NOW DL_NOW
  11271. # else
  11272. # define LT_DLLAZY_OR_NOW 0
  11273. # endif
  11274. # endif
  11275. # endif
  11276. # endif
  11277. #endif
  11278. /* When -fvisibility=hidden is used, assume the code has been annotated
  11279. correspondingly for the symbols needed. */
  11280. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11281. int fnord () __attribute__((visibility("default")));
  11282. #endif
  11283. int fnord () { return 42; }
  11284. int main ()
  11285. {
  11286. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11287. int status = $lt_dlunknown;
  11288. if (self)
  11289. {
  11290. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11291. else
  11292. {
  11293. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11294. else puts (dlerror ());
  11295. }
  11296. /* dlclose (self); */
  11297. }
  11298. else
  11299. puts (dlerror ());
  11300. return status;
  11301. }
  11302. _LT_EOF
  11303. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11304. (eval $ac_link) 2>&5
  11305. ac_status=$?
  11306. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11307. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11308. (./conftest; exit; ) >&5 2>/dev/null
  11309. lt_status=$?
  11310. case x$lt_status in
  11311. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11312. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11313. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11314. esac
  11315. else :
  11316. # compilation failed
  11317. lt_cv_dlopen_self=no
  11318. fi
  11319. fi
  11320. rm -fr conftest*
  11321. fi
  11322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11323. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  11324. if test yes = "$lt_cv_dlopen_self"; then
  11325. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11327. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  11328. if test ${lt_cv_dlopen_self_static+y}
  11329. then :
  11330. printf %s "(cached) " >&6
  11331. else $as_nop
  11332. if test yes = "$cross_compiling"; then :
  11333. lt_cv_dlopen_self_static=cross
  11334. else
  11335. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11336. lt_status=$lt_dlunknown
  11337. cat > conftest.$ac_ext <<_LT_EOF
  11338. #line $LINENO "configure"
  11339. #include "confdefs.h"
  11340. #if HAVE_DLFCN_H
  11341. #include <dlfcn.h>
  11342. #endif
  11343. #include <stdio.h>
  11344. #ifdef RTLD_GLOBAL
  11345. # define LT_DLGLOBAL RTLD_GLOBAL
  11346. #else
  11347. # ifdef DL_GLOBAL
  11348. # define LT_DLGLOBAL DL_GLOBAL
  11349. # else
  11350. # define LT_DLGLOBAL 0
  11351. # endif
  11352. #endif
  11353. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11354. find out it does not work in some platform. */
  11355. #ifndef LT_DLLAZY_OR_NOW
  11356. # ifdef RTLD_LAZY
  11357. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11358. # else
  11359. # ifdef DL_LAZY
  11360. # define LT_DLLAZY_OR_NOW DL_LAZY
  11361. # else
  11362. # ifdef RTLD_NOW
  11363. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11364. # else
  11365. # ifdef DL_NOW
  11366. # define LT_DLLAZY_OR_NOW DL_NOW
  11367. # else
  11368. # define LT_DLLAZY_OR_NOW 0
  11369. # endif
  11370. # endif
  11371. # endif
  11372. # endif
  11373. #endif
  11374. /* When -fvisibility=hidden is used, assume the code has been annotated
  11375. correspondingly for the symbols needed. */
  11376. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11377. int fnord () __attribute__((visibility("default")));
  11378. #endif
  11379. int fnord () { return 42; }
  11380. int main ()
  11381. {
  11382. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11383. int status = $lt_dlunknown;
  11384. if (self)
  11385. {
  11386. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11387. else
  11388. {
  11389. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11390. else puts (dlerror ());
  11391. }
  11392. /* dlclose (self); */
  11393. }
  11394. else
  11395. puts (dlerror ());
  11396. return status;
  11397. }
  11398. _LT_EOF
  11399. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11400. (eval $ac_link) 2>&5
  11401. ac_status=$?
  11402. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11403. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11404. (./conftest; exit; ) >&5 2>/dev/null
  11405. lt_status=$?
  11406. case x$lt_status in
  11407. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11408. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11409. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11410. esac
  11411. else :
  11412. # compilation failed
  11413. lt_cv_dlopen_self_static=no
  11414. fi
  11415. fi
  11416. rm -fr conftest*
  11417. fi
  11418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11419. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11420. fi
  11421. CPPFLAGS=$save_CPPFLAGS
  11422. LDFLAGS=$save_LDFLAGS
  11423. LIBS=$save_LIBS
  11424. ;;
  11425. esac
  11426. case $lt_cv_dlopen_self in
  11427. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11428. *) enable_dlopen_self=unknown ;;
  11429. esac
  11430. case $lt_cv_dlopen_self_static in
  11431. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11432. *) enable_dlopen_self_static=unknown ;;
  11433. esac
  11434. fi
  11435. striplib=
  11436. old_striplib=
  11437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11438. printf %s "checking whether stripping libraries is possible... " >&6; }
  11439. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11440. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11441. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11443. printf "%s\n" "yes" >&6; }
  11444. else
  11445. # FIXME - insert some real tests, host_os isn't really good enough
  11446. case $host_os in
  11447. darwin*)
  11448. if test -n "$STRIP"; then
  11449. striplib="$STRIP -x"
  11450. old_striplib="$STRIP -S"
  11451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11452. printf "%s\n" "yes" >&6; }
  11453. else
  11454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11455. printf "%s\n" "no" >&6; }
  11456. fi
  11457. ;;
  11458. *)
  11459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11460. printf "%s\n" "no" >&6; }
  11461. ;;
  11462. esac
  11463. fi
  11464. # Report what library types will actually be built
  11465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11466. printf %s "checking if libtool supports shared libraries... " >&6; }
  11467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11468. printf "%s\n" "$can_build_shared" >&6; }
  11469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11470. printf %s "checking whether to build shared libraries... " >&6; }
  11471. test no = "$can_build_shared" && enable_shared=no
  11472. # On AIX, shared libraries and static libraries use the same namespace, and
  11473. # are all built from PIC.
  11474. case $host_os in
  11475. aix3*)
  11476. test yes = "$enable_shared" && enable_static=no
  11477. if test -n "$RANLIB"; then
  11478. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11479. postinstall_cmds='$RANLIB $lib'
  11480. fi
  11481. ;;
  11482. aix[4-9]*)
  11483. if test ia64 != "$host_cpu"; then
  11484. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11485. yes,aix,yes) ;; # shared object as lib.so file only
  11486. yes,svr4,*) ;; # shared object as lib.so archive member only
  11487. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11488. esac
  11489. fi
  11490. ;;
  11491. esac
  11492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11493. printf "%s\n" "$enable_shared" >&6; }
  11494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11495. printf %s "checking whether to build static libraries... " >&6; }
  11496. # Make sure either enable_shared or enable_static is yes.
  11497. test yes = "$enable_shared" || enable_static=yes
  11498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11499. printf "%s\n" "$enable_static" >&6; }
  11500. fi
  11501. ac_ext=c
  11502. ac_cpp='$CPP $CPPFLAGS'
  11503. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11504. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11505. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11506. CC=$lt_save_CC
  11507. ac_config_commands="$ac_config_commands libtool"
  11508. # Only expand once:
  11509. CFLAG_VISIBILITY=
  11510. HAVE_VISIBILITY=0
  11511. if test -n "$GCC"; then
  11512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
  11513. printf %s "checking whether the -Werror option is usable... " >&6; }
  11514. if test ${gl_cv_cc_vis_werror+y}
  11515. then :
  11516. printf %s "(cached) " >&6
  11517. else $as_nop
  11518. gl_save_CFLAGS="$CFLAGS"
  11519. CFLAGS="$CFLAGS -Werror"
  11520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11521. /* end confdefs.h. */
  11522. int
  11523. main (void)
  11524. {
  11525. ;
  11526. return 0;
  11527. }
  11528. _ACEOF
  11529. if ac_fn_c_try_compile "$LINENO"
  11530. then :
  11531. gl_cv_cc_vis_werror=yes
  11532. else $as_nop
  11533. gl_cv_cc_vis_werror=no
  11534. fi
  11535. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11536. CFLAGS="$gl_save_CFLAGS"
  11537. fi
  11538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
  11539. printf "%s\n" "$gl_cv_cc_vis_werror" >&6; }
  11540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  11541. printf %s "checking for simple visibility declarations... " >&6; }
  11542. if test ${gl_cv_cc_visibility+y}
  11543. then :
  11544. printf %s "(cached) " >&6
  11545. else $as_nop
  11546. gl_save_CFLAGS="$CFLAGS"
  11547. CFLAGS="$CFLAGS -fvisibility=hidden"
  11548. if test $gl_cv_cc_vis_werror = yes; then
  11549. CFLAGS="$CFLAGS -Werror"
  11550. fi
  11551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11552. /* end confdefs.h. */
  11553. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  11554. extern __attribute__((__visibility__("default"))) int exportedvar;
  11555. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  11556. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  11557. void dummyfunc (void) {}
  11558. int
  11559. main (void)
  11560. {
  11561. ;
  11562. return 0;
  11563. }
  11564. _ACEOF
  11565. if ac_fn_c_try_compile "$LINENO"
  11566. then :
  11567. gl_cv_cc_visibility=yes
  11568. else $as_nop
  11569. gl_cv_cc_visibility=no
  11570. fi
  11571. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11572. CFLAGS="$gl_save_CFLAGS"
  11573. fi
  11574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  11575. printf "%s\n" "$gl_cv_cc_visibility" >&6; }
  11576. if test $gl_cv_cc_visibility = yes; then
  11577. CFLAG_VISIBILITY="-fvisibility=hidden"
  11578. HAVE_VISIBILITY=1
  11579. fi
  11580. fi
  11581. printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h
  11582. ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  11583. if test "x$ac_cv_header_sys_mkdev_h" = xyes
  11584. then :
  11585. printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  11586. fi
  11587. if test $ac_cv_header_sys_mkdev_h = no; then
  11588. ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  11589. if test "x$ac_cv_header_sys_sysmacros_h" = xyes
  11590. then :
  11591. printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  11592. fi
  11593. fi
  11594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  11595. printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  11596. if test ${ac_cv_header_sys_wait_h+y}
  11597. then :
  11598. printf %s "(cached) " >&6
  11599. else $as_nop
  11600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11601. /* end confdefs.h. */
  11602. #include <sys/types.h>
  11603. #include <sys/wait.h>
  11604. #ifndef WEXITSTATUS
  11605. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  11606. #endif
  11607. #ifndef WIFEXITED
  11608. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  11609. #endif
  11610. int
  11611. main (void)
  11612. {
  11613. int s;
  11614. wait (&s);
  11615. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  11616. ;
  11617. return 0;
  11618. }
  11619. _ACEOF
  11620. if ac_fn_c_try_compile "$LINENO"
  11621. then :
  11622. ac_cv_header_sys_wait_h=yes
  11623. else $as_nop
  11624. ac_cv_header_sys_wait_h=no
  11625. fi
  11626. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11627. fi
  11628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  11629. printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
  11630. if test $ac_cv_header_sys_wait_h = yes; then
  11631. printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  11632. fi
  11633. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  11634. if test "x$ac_cv_header_stdint_h" = xyes
  11635. then :
  11636. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  11637. fi
  11638. ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
  11639. if test "x$ac_cv_header_fcntl_h" = xyes
  11640. then :
  11641. printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
  11642. fi
  11643. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  11644. if test "x$ac_cv_header_inttypes_h" = xyes
  11645. then :
  11646. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  11647. fi
  11648. ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  11649. if test "x$ac_cv_header_unistd_h" = xyes
  11650. then :
  11651. printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
  11652. fi
  11653. ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
  11654. if test "x$ac_cv_header_byteswap_h" = xyes
  11655. then :
  11656. printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
  11657. fi
  11658. ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"
  11659. if test "x$ac_cv_header_spawn_h" = xyes
  11660. then :
  11661. printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h
  11662. fi
  11663. ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
  11664. if test "x$ac_cv_header_utime_h" = xyes
  11665. then :
  11666. printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
  11667. fi
  11668. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  11669. if test "x$ac_cv_header_wchar_h" = xyes
  11670. then :
  11671. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  11672. fi
  11673. ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
  11674. if test "x$ac_cv_header_wctype_h" = xyes
  11675. then :
  11676. printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h
  11677. fi
  11678. ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
  11679. if test "x$ac_cv_header_getopt_h" = xyes
  11680. then :
  11681. printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
  11682. fi
  11683. ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
  11684. if test "x$ac_cv_header_err_h" = xyes
  11685. then :
  11686. printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
  11687. fi
  11688. ac_fn_c_check_header_compile "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
  11689. if test "x$ac_cv_header_xlocale_h" = xyes
  11690. then :
  11691. printf "%s\n" "#define HAVE_XLOCALE_H 1" >>confdefs.h
  11692. fi
  11693. ac_fn_c_check_header_compile "$LINENO" "sys/bswap.h" "ac_cv_header_sys_bswap_h" "$ac_includes_default"
  11694. if test "x$ac_cv_header_sys_bswap_h" = xyes
  11695. then :
  11696. printf "%s\n" "#define HAVE_SYS_BSWAP_H 1" >>confdefs.h
  11697. fi
  11698. ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
  11699. if test "x$ac_cv_header_sys_mman_h" = xyes
  11700. then :
  11701. printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
  11702. fi
  11703. ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
  11704. if test "x$ac_cv_header_sys_stat_h" = xyes
  11705. then :
  11706. printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
  11707. fi
  11708. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  11709. if test "x$ac_cv_header_sys_types_h" = xyes
  11710. then :
  11711. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  11712. fi
  11713. ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "$ac_includes_default"
  11714. if test "x$ac_cv_header_sys_utime_h" = xyes
  11715. then :
  11716. printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h
  11717. fi
  11718. ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  11719. if test "x$ac_cv_header_sys_time_h" = xyes
  11720. then :
  11721. printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
  11722. fi
  11723. ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  11724. if test "x$ac_cv_header_sys_sysmacros_h" = xyes
  11725. then :
  11726. printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
  11727. fi
  11728. ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
  11729. if test "x$ac_cv_header_sys_ioctl_h" = xyes
  11730. then :
  11731. printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
  11732. fi
  11733. if test "$enable_zlib" != "no"; then
  11734. ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  11735. if test "x$ac_cv_header_zlib_h" = xyes
  11736. then :
  11737. printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
  11738. fi
  11739. fi
  11740. if test "$enable_bzlib" != "no"; then
  11741. ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
  11742. if test "x$ac_cv_header_bzlib_h" = xyes
  11743. then :
  11744. printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
  11745. fi
  11746. fi
  11747. if test "$enable_xzlib" != "no"; then
  11748. ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
  11749. if test "x$ac_cv_header_lzma_h" = xyes
  11750. then :
  11751. printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h
  11752. fi
  11753. fi
  11754. if test "$enable_zstdlib" != "no"; then
  11755. ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
  11756. if test "x$ac_cv_header_zstd_h" = xyes
  11757. then :
  11758. printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h
  11759. fi
  11760. ac_fn_c_check_header_compile "$LINENO" "zstd_errors.h" "ac_cv_header_zstd_errors_h" "$ac_includes_default"
  11761. if test "x$ac_cv_header_zstd_errors_h" = xyes
  11762. then :
  11763. printf "%s\n" "#define HAVE_ZSTD_ERRORS_H 1" >>confdefs.h
  11764. fi
  11765. fi
  11766. if test "$enable_lzlib" != "no"; then
  11767. ac_fn_c_check_header_compile "$LINENO" "lzlib.h" "ac_cv_header_lzlib_h" "$ac_includes_default"
  11768. if test "x$ac_cv_header_lzlib_h" = xyes
  11769. then :
  11770. printf "%s\n" "#define HAVE_LZLIB_H 1" >>confdefs.h
  11771. fi
  11772. fi
  11773. ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <signal.h>
  11774. "
  11775. if test "x$ac_cv_type_sig_t" = xyes
  11776. then :
  11777. printf "%s\n" "#define HAVE_SIG_T 1" >>confdefs.h
  11778. fi
  11779. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  11780. if test "x$ac_cv_type_off_t" = xyes
  11781. then :
  11782. else $as_nop
  11783. printf "%s\n" "#define off_t long int" >>confdefs.h
  11784. fi
  11785. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  11786. if test "x$ac_cv_type_size_t" = xyes
  11787. then :
  11788. else $as_nop
  11789. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  11790. fi
  11791. ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
  11792. if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
  11793. then :
  11794. printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h
  11795. fi
  11796. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
  11797. "
  11798. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
  11799. then :
  11800. printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
  11801. fi
  11802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  11803. printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  11804. if test ${ac_cv_struct_tm+y}
  11805. then :
  11806. printf %s "(cached) " >&6
  11807. else $as_nop
  11808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11809. /* end confdefs.h. */
  11810. #include <sys/types.h>
  11811. #include <time.h>
  11812. int
  11813. main (void)
  11814. {
  11815. struct tm tm;
  11816. int *p = &tm.tm_sec;
  11817. return !p;
  11818. ;
  11819. return 0;
  11820. }
  11821. _ACEOF
  11822. if ac_fn_c_try_compile "$LINENO"
  11823. then :
  11824. ac_cv_struct_tm=time.h
  11825. else $as_nop
  11826. ac_cv_struct_tm=sys/time.h
  11827. fi
  11828. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11829. fi
  11830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  11831. printf "%s\n" "$ac_cv_struct_tm" >&6; }
  11832. if test $ac_cv_struct_tm = sys/time.h; then
  11833. printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
  11834. fi
  11835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
  11836. printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
  11837. if test ${ac_cv_c_undeclared_builtin_options+y}
  11838. then :
  11839. printf %s "(cached) " >&6
  11840. else $as_nop
  11841. ac_save_CFLAGS=$CFLAGS
  11842. ac_cv_c_undeclared_builtin_options='cannot detect'
  11843. for ac_arg in '' -fno-builtin; do
  11844. CFLAGS="$ac_save_CFLAGS $ac_arg"
  11845. # This test program should *not* compile successfully.
  11846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11847. /* end confdefs.h. */
  11848. int
  11849. main (void)
  11850. {
  11851. (void) strchr;
  11852. ;
  11853. return 0;
  11854. }
  11855. _ACEOF
  11856. if ac_fn_c_try_compile "$LINENO"
  11857. then :
  11858. else $as_nop
  11859. # This test program should compile successfully.
  11860. # No library function is consistently available on
  11861. # freestanding implementations, so test against a dummy
  11862. # declaration. Include always-available headers on the
  11863. # off chance that they somehow elicit warnings.
  11864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11865. /* end confdefs.h. */
  11866. #include <float.h>
  11867. #include <limits.h>
  11868. #include <stdarg.h>
  11869. #include <stddef.h>
  11870. extern void ac_decl (int, char *);
  11871. int
  11872. main (void)
  11873. {
  11874. (void) ac_decl (0, (char *) 0);
  11875. (void) ac_decl;
  11876. ;
  11877. return 0;
  11878. }
  11879. _ACEOF
  11880. if ac_fn_c_try_compile "$LINENO"
  11881. then :
  11882. if test x"$ac_arg" = x
  11883. then :
  11884. ac_cv_c_undeclared_builtin_options='none needed'
  11885. else $as_nop
  11886. ac_cv_c_undeclared_builtin_options=$ac_arg
  11887. fi
  11888. break
  11889. fi
  11890. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11891. fi
  11892. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11893. done
  11894. CFLAGS=$ac_save_CFLAGS
  11895. fi
  11896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
  11897. printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  11898. case $ac_cv_c_undeclared_builtin_options in #(
  11899. 'cannot detect') :
  11900. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11901. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11902. as_fn_error $? "cannot make $CC report undeclared builtins
  11903. See \`config.log' for more details" "$LINENO" 5; } ;; #(
  11904. 'none needed') :
  11905. ac_c_undeclared_builtin_options='' ;; #(
  11906. *) :
  11907. ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
  11908. esac
  11909. ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  11910. #include <$ac_cv_struct_tm>
  11911. "
  11912. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
  11913. then :
  11914. printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
  11915. fi
  11916. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  11917. printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
  11918. else
  11919. ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  11920. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  11921. if test "x$ac_cv_have_decl_tzname" = xyes
  11922. then :
  11923. ac_have_decl=1
  11924. else $as_nop
  11925. ac_have_decl=0
  11926. fi
  11927. printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
  11928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  11929. printf %s "checking for tzname... " >&6; }
  11930. if test ${ac_cv_var_tzname+y}
  11931. then :
  11932. printf %s "(cached) " >&6
  11933. else $as_nop
  11934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11935. /* end confdefs.h. */
  11936. #include <time.h>
  11937. #if !HAVE_DECL_TZNAME
  11938. extern char *tzname[];
  11939. #endif
  11940. int
  11941. main (void)
  11942. {
  11943. return tzname[0][0];
  11944. ;
  11945. return 0;
  11946. }
  11947. _ACEOF
  11948. if ac_fn_c_try_link "$LINENO"
  11949. then :
  11950. ac_cv_var_tzname=yes
  11951. else $as_nop
  11952. ac_cv_var_tzname=no
  11953. fi
  11954. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11955. conftest$ac_exeext conftest.$ac_ext
  11956. fi
  11957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  11958. printf "%s\n" "$ac_cv_var_tzname" >&6; }
  11959. if test $ac_cv_var_tzname = yes; then
  11960. printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
  11961. fi
  11962. fi
  11963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
  11964. printf %s "checking for tm_zone in struct tm... " >&6; }
  11965. if test ${ac_cv_struct_tm_zone+y}
  11966. then :
  11967. printf %s "(cached) " >&6
  11968. else $as_nop
  11969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11970. /* end confdefs.h. */
  11971. #include <sys/types.h>
  11972. #include <$ac_cv_struct_tm>
  11973. int
  11974. main (void)
  11975. {
  11976. struct tm tm; tm.tm_zone;
  11977. ;
  11978. return 0;
  11979. }
  11980. _ACEOF
  11981. if ac_fn_c_try_compile "$LINENO"
  11982. then :
  11983. ac_cv_struct_tm_zone=yes
  11984. else $as_nop
  11985. ac_cv_struct_tm_zone=no
  11986. fi
  11987. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11988. fi
  11989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
  11990. printf "%s\n" "$ac_cv_struct_tm_zone" >&6; }
  11991. if test "$ac_cv_struct_tm_zone" = yes; then
  11992. printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
  11993. fi
  11994. # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
  11995. # consider it declared and we won't give our own extern.
  11996. ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  11997. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  11998. if test "x$ac_cv_have_decl_tzname" = xyes
  11999. then :
  12000. ac_have_decl=1
  12001. else $as_nop
  12002. ac_have_decl=0
  12003. fi
  12004. printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
  12005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  12006. printf %s "checking for tzname... " >&6; }
  12007. if test ${ac_cv_var_tzname+y}
  12008. then :
  12009. printf %s "(cached) " >&6
  12010. else $as_nop
  12011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12012. /* end confdefs.h. */
  12013. #include <time.h>
  12014. int
  12015. main (void)
  12016. {
  12017. #if !HAVE_DECL_TZNAME
  12018. extern char *tzname[];
  12019. #endif
  12020. return tzname[0][0];
  12021. ;
  12022. return 0;
  12023. }
  12024. _ACEOF
  12025. if ac_fn_c_try_link "$LINENO"
  12026. then :
  12027. ac_cv_var_tzname=yes
  12028. else $as_nop
  12029. ac_cv_var_tzname=no
  12030. fi
  12031. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12032. conftest$ac_exeext conftest.$ac_ext
  12033. fi
  12034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  12035. printf "%s\n" "$ac_cv_var_tzname" >&6; }
  12036. if test $ac_cv_var_tzname = yes; then
  12037. printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
  12038. fi
  12039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
  12040. printf %s "checking for tm_isdst in struct tm... " >&6; }
  12041. if test ${ac_cv_struct_tm_isdst+y}
  12042. then :
  12043. printf %s "(cached) " >&6
  12044. else $as_nop
  12045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12046. /* end confdefs.h. */
  12047. #include <sys/types.h>
  12048. #include <$ac_cv_struct_tm>
  12049. int
  12050. main (void)
  12051. {
  12052. struct tm tm; tm.tm_isdst;
  12053. ;
  12054. return 0;
  12055. }
  12056. _ACEOF
  12057. if ac_fn_c_try_compile "$LINENO"
  12058. then :
  12059. ac_cv_struct_tm_isdst=yes
  12060. else $as_nop
  12061. ac_cv_struct_tm_isdst=no
  12062. fi
  12063. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12064. fi
  12065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
  12066. printf "%s\n" "$ac_cv_struct_tm_isdst" >&6; }
  12067. if test "$ac_cv_struct_tm_isdst" = yes; then
  12068. printf "%s\n" "#define HAVE_TM_ISDST 1" >>confdefs.h
  12069. fi
  12070. ac_fn_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
  12071. #include <stdlib.h>
  12072. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  12073. if test "x$ac_cv_have_decl_daylight" = xyes
  12074. then :
  12075. ac_have_decl=1
  12076. else $as_nop
  12077. ac_have_decl=0
  12078. fi
  12079. printf "%s\n" "#define HAVE_DECL_DAYLIGHT $ac_have_decl" >>confdefs.h
  12080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
  12081. printf %s "checking for daylight... " >&6; }
  12082. if test ${ac_cv_var_daylight+y}
  12083. then :
  12084. printf %s "(cached) " >&6
  12085. else $as_nop
  12086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12087. /* end confdefs.h. */
  12088. #include <time.h>
  12089. #include <stdlib.h>
  12090. int
  12091. main (void)
  12092. {
  12093. #if !HAVE_DECL_DAYLIGHT
  12094. extern int daylight;
  12095. #endif
  12096. daylight = atoi("1");
  12097. ;
  12098. return 0;
  12099. }
  12100. _ACEOF
  12101. if ac_fn_c_try_link "$LINENO"
  12102. then :
  12103. ac_cv_var_daylight=yes
  12104. else $as_nop
  12105. ac_cv_var_daylight=no
  12106. fi
  12107. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12108. conftest$ac_exeext conftest.$ac_ext
  12109. fi
  12110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
  12111. printf "%s\n" "$ac_cv_var_daylight" >&6; }
  12112. if test $ac_cv_var_daylight = yes; then
  12113. printf "%s\n" "#define HAVE_DAYLIGHT 1" >>confdefs.h
  12114. fi
  12115. # Check whether --enable-largefile was given.
  12116. if test ${enable_largefile+y}
  12117. then :
  12118. enableval=$enable_largefile;
  12119. fi
  12120. if test "$enable_largefile" != no; then
  12121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  12122. printf %s "checking for special C compiler options needed for large files... " >&6; }
  12123. if test ${ac_cv_sys_largefile_CC+y}
  12124. then :
  12125. printf %s "(cached) " >&6
  12126. else $as_nop
  12127. ac_cv_sys_largefile_CC=no
  12128. if test "$GCC" != yes; then
  12129. ac_save_CC=$CC
  12130. while :; do
  12131. # IRIX 6.2 and later do not support large files by default,
  12132. # so use the C compiler's -n32 option if that helps.
  12133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12134. /* end confdefs.h. */
  12135. #include <sys/types.h>
  12136. /* Check that off_t can represent 2**63 - 1 correctly.
  12137. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12138. since some C++ compilers masquerading as C compilers
  12139. incorrectly reject 9223372036854775807. */
  12140. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  12141. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12142. && LARGE_OFF_T % 2147483647 == 1)
  12143. ? 1 : -1];
  12144. int
  12145. main (void)
  12146. {
  12147. ;
  12148. return 0;
  12149. }
  12150. _ACEOF
  12151. if ac_fn_c_try_compile "$LINENO"
  12152. then :
  12153. break
  12154. fi
  12155. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12156. CC="$CC -n32"
  12157. if ac_fn_c_try_compile "$LINENO"
  12158. then :
  12159. ac_cv_sys_largefile_CC=' -n32'; break
  12160. fi
  12161. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12162. break
  12163. done
  12164. CC=$ac_save_CC
  12165. rm -f conftest.$ac_ext
  12166. fi
  12167. fi
  12168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  12169. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  12170. if test "$ac_cv_sys_largefile_CC" != no; then
  12171. CC=$CC$ac_cv_sys_largefile_CC
  12172. fi
  12173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  12174. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  12175. if test ${ac_cv_sys_file_offset_bits+y}
  12176. then :
  12177. printf %s "(cached) " >&6
  12178. else $as_nop
  12179. while :; do
  12180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12181. /* end confdefs.h. */
  12182. #include <sys/types.h>
  12183. /* Check that off_t can represent 2**63 - 1 correctly.
  12184. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12185. since some C++ compilers masquerading as C compilers
  12186. incorrectly reject 9223372036854775807. */
  12187. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  12188. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12189. && LARGE_OFF_T % 2147483647 == 1)
  12190. ? 1 : -1];
  12191. int
  12192. main (void)
  12193. {
  12194. ;
  12195. return 0;
  12196. }
  12197. _ACEOF
  12198. if ac_fn_c_try_compile "$LINENO"
  12199. then :
  12200. ac_cv_sys_file_offset_bits=no; break
  12201. fi
  12202. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12204. /* end confdefs.h. */
  12205. #define _FILE_OFFSET_BITS 64
  12206. #include <sys/types.h>
  12207. /* Check that off_t can represent 2**63 - 1 correctly.
  12208. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12209. since some C++ compilers masquerading as C compilers
  12210. incorrectly reject 9223372036854775807. */
  12211. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  12212. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12213. && LARGE_OFF_T % 2147483647 == 1)
  12214. ? 1 : -1];
  12215. int
  12216. main (void)
  12217. {
  12218. ;
  12219. return 0;
  12220. }
  12221. _ACEOF
  12222. if ac_fn_c_try_compile "$LINENO"
  12223. then :
  12224. ac_cv_sys_file_offset_bits=64; break
  12225. fi
  12226. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12227. ac_cv_sys_file_offset_bits=unknown
  12228. break
  12229. done
  12230. fi
  12231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  12232. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  12233. case $ac_cv_sys_file_offset_bits in #(
  12234. no | unknown) ;;
  12235. *)
  12236. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  12237. ;;
  12238. esac
  12239. rm -rf conftest*
  12240. if test $ac_cv_sys_file_offset_bits = unknown; then
  12241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  12242. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  12243. if test ${ac_cv_sys_large_files+y}
  12244. then :
  12245. printf %s "(cached) " >&6
  12246. else $as_nop
  12247. while :; do
  12248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12249. /* end confdefs.h. */
  12250. #include <sys/types.h>
  12251. /* Check that off_t can represent 2**63 - 1 correctly.
  12252. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12253. since some C++ compilers masquerading as C compilers
  12254. incorrectly reject 9223372036854775807. */
  12255. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  12256. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12257. && LARGE_OFF_T % 2147483647 == 1)
  12258. ? 1 : -1];
  12259. int
  12260. main (void)
  12261. {
  12262. ;
  12263. return 0;
  12264. }
  12265. _ACEOF
  12266. if ac_fn_c_try_compile "$LINENO"
  12267. then :
  12268. ac_cv_sys_large_files=no; break
  12269. fi
  12270. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12272. /* end confdefs.h. */
  12273. #define _LARGE_FILES 1
  12274. #include <sys/types.h>
  12275. /* Check that off_t can represent 2**63 - 1 correctly.
  12276. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12277. since some C++ compilers masquerading as C compilers
  12278. incorrectly reject 9223372036854775807. */
  12279. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  12280. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12281. && LARGE_OFF_T % 2147483647 == 1)
  12282. ? 1 : -1];
  12283. int
  12284. main (void)
  12285. {
  12286. ;
  12287. return 0;
  12288. }
  12289. _ACEOF
  12290. if ac_fn_c_try_compile "$LINENO"
  12291. then :
  12292. ac_cv_sys_large_files=1; break
  12293. fi
  12294. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12295. ac_cv_sys_large_files=unknown
  12296. break
  12297. done
  12298. fi
  12299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  12300. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  12301. case $ac_cv_sys_large_files in #(
  12302. no | unknown) ;;
  12303. *)
  12304. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  12305. ;;
  12306. esac
  12307. rm -rf conftest*
  12308. fi
  12309. fi
  12310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  12311. printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  12312. if test ${ac_cv_sys_largefile_source+y}
  12313. then :
  12314. printf %s "(cached) " >&6
  12315. else $as_nop
  12316. while :; do
  12317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12318. /* end confdefs.h. */
  12319. #include <sys/types.h> /* for off_t */
  12320. #include <stdio.h>
  12321. int
  12322. main (void)
  12323. {
  12324. int (*fp) (FILE *, off_t, int) = fseeko;
  12325. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  12326. ;
  12327. return 0;
  12328. }
  12329. _ACEOF
  12330. if ac_fn_c_try_link "$LINENO"
  12331. then :
  12332. ac_cv_sys_largefile_source=no; break
  12333. fi
  12334. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12335. conftest$ac_exeext conftest.$ac_ext
  12336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12337. /* end confdefs.h. */
  12338. #define _LARGEFILE_SOURCE 1
  12339. #include <sys/types.h> /* for off_t */
  12340. #include <stdio.h>
  12341. int
  12342. main (void)
  12343. {
  12344. int (*fp) (FILE *, off_t, int) = fseeko;
  12345. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  12346. ;
  12347. return 0;
  12348. }
  12349. _ACEOF
  12350. if ac_fn_c_try_link "$LINENO"
  12351. then :
  12352. ac_cv_sys_largefile_source=1; break
  12353. fi
  12354. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12355. conftest$ac_exeext conftest.$ac_ext
  12356. ac_cv_sys_largefile_source=unknown
  12357. break
  12358. done
  12359. fi
  12360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  12361. printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
  12362. case $ac_cv_sys_largefile_source in #(
  12363. no | unknown) ;;
  12364. *)
  12365. printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
  12366. ;;
  12367. esac
  12368. rm -rf conftest*
  12369. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  12370. # in glibc 2.1.3, but that breaks too many other things.
  12371. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  12372. if test $ac_cv_sys_largefile_source != unknown; then
  12373. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  12374. fi
  12375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
  12376. printf %s "checking for mbstate_t... " >&6; }
  12377. if test ${ac_cv_type_mbstate_t+y}
  12378. then :
  12379. printf %s "(cached) " >&6
  12380. else $as_nop
  12381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12382. /* end confdefs.h. */
  12383. $ac_includes_default
  12384. # include <wchar.h>
  12385. int
  12386. main (void)
  12387. {
  12388. mbstate_t x; return sizeof x;
  12389. ;
  12390. return 0;
  12391. }
  12392. _ACEOF
  12393. if ac_fn_c_try_compile "$LINENO"
  12394. then :
  12395. ac_cv_type_mbstate_t=yes
  12396. else $as_nop
  12397. ac_cv_type_mbstate_t=no
  12398. fi
  12399. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12400. fi
  12401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
  12402. printf "%s\n" "$ac_cv_type_mbstate_t" >&6; }
  12403. if test $ac_cv_type_mbstate_t = yes; then
  12404. printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h
  12405. else
  12406. printf "%s\n" "#define mbstate_t int" >>confdefs.h
  12407. fi
  12408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
  12409. printf %s "checking for struct option in getopt... " >&6; }
  12410. if test ${ac_cv_struct_option_getopt_h+y}
  12411. then :
  12412. printf %s "(cached) " >&6
  12413. else $as_nop
  12414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12415. /* end confdefs.h. */
  12416. #include <getopt.h>
  12417. int
  12418. main (void)
  12419. {
  12420. struct option op; op.name;
  12421. ;
  12422. return 0;
  12423. }
  12424. _ACEOF
  12425. if ac_fn_c_try_compile "$LINENO"
  12426. then :
  12427. ac_cv_struct_option_getopt_h=yes
  12428. else $as_nop
  12429. ac_cv_struct_option_getopt_h=no
  12430. fi
  12431. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12432. fi
  12433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
  12434. printf "%s\n" "$ac_cv_struct_option_getopt_h" >&6; }
  12435. if test "$ac_cv_struct_option_getopt_h" = yes; then
  12436. printf "%s\n" "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
  12437. fi
  12438. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
  12439. "
  12440. if test "x$ac_cv_type_pid_t" = xyes
  12441. then :
  12442. else $as_nop
  12443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12444. /* end confdefs.h. */
  12445. #if defined _WIN64 && !defined __CYGWIN__
  12446. LLP64
  12447. #endif
  12448. int
  12449. main (void)
  12450. {
  12451. ;
  12452. return 0;
  12453. }
  12454. _ACEOF
  12455. if ac_fn_c_try_compile "$LINENO"
  12456. then :
  12457. ac_pid_type='int'
  12458. else $as_nop
  12459. ac_pid_type='__int64'
  12460. fi
  12461. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12462. printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
  12463. fi
  12464. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  12465. case $ac_cv_c_uint8_t in #(
  12466. no|yes) ;; #(
  12467. *)
  12468. printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
  12469. printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
  12470. ;;
  12471. esac
  12472. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  12473. case $ac_cv_c_uint16_t in #(
  12474. no|yes) ;; #(
  12475. *)
  12476. printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
  12477. ;;
  12478. esac
  12479. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  12480. case $ac_cv_c_uint32_t in #(
  12481. no|yes) ;; #(
  12482. *)
  12483. printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
  12484. printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
  12485. ;;
  12486. esac
  12487. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  12488. case $ac_cv_c_int32_t in #(
  12489. no|yes) ;; #(
  12490. *)
  12491. printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
  12492. ;;
  12493. esac
  12494. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  12495. case $ac_cv_c_uint64_t in #(
  12496. no|yes) ;; #(
  12497. *)
  12498. printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
  12499. printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
  12500. ;;
  12501. esac
  12502. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  12503. case $ac_cv_c_int64_t in #(
  12504. no|yes) ;; #(
  12505. *)
  12506. printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
  12507. ;;
  12508. esac
  12509. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  12510. if test "x$ac_cv_type_intptr_t" = xyes
  12511. then :
  12512. printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
  12513. else $as_nop
  12514. for ac_type in 'int' 'long int' 'long long int'; do
  12515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12516. /* end confdefs.h. */
  12517. $ac_includes_default
  12518. int
  12519. main (void)
  12520. {
  12521. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  12522. test_array [0] = 0;
  12523. return test_array [0];
  12524. ;
  12525. return 0;
  12526. }
  12527. _ACEOF
  12528. if ac_fn_c_try_compile "$LINENO"
  12529. then :
  12530. printf "%s\n" "#define intptr_t $ac_type" >>confdefs.h
  12531. ac_type=
  12532. fi
  12533. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12534. test -z "$ac_type" && break
  12535. done
  12536. fi
  12537. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  12538. if test "x$ac_cv_type_uintptr_t" = xyes
  12539. then :
  12540. printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
  12541. else $as_nop
  12542. for ac_type in 'unsigned int' 'unsigned long int' \
  12543. 'unsigned long long int'; do
  12544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12545. /* end confdefs.h. */
  12546. $ac_includes_default
  12547. int
  12548. main (void)
  12549. {
  12550. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  12551. test_array [0] = 0;
  12552. return test_array [0];
  12553. ;
  12554. return 0;
  12555. }
  12556. _ACEOF
  12557. if ac_fn_c_try_compile "$LINENO"
  12558. then :
  12559. printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
  12560. ac_type=
  12561. fi
  12562. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12563. test -z "$ac_type" && break
  12564. done
  12565. fi
  12566. ac_func=
  12567. for ac_item in $ac_func_c_list
  12568. do
  12569. if test $ac_func; then
  12570. ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
  12571. if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
  12572. echo "#define $ac_item 1" >> confdefs.h
  12573. fi
  12574. ac_func=
  12575. else
  12576. ac_func=$ac_item
  12577. fi
  12578. done
  12579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  12580. printf %s "checking for working mmap... " >&6; }
  12581. if test ${ac_cv_func_mmap_fixed_mapped+y}
  12582. then :
  12583. printf %s "(cached) " >&6
  12584. else $as_nop
  12585. if test "$cross_compiling" = yes
  12586. then :
  12587. case "$host_os" in # ((
  12588. # Guess yes on platforms where we know the result.
  12589. linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
  12590. # If we don't know, assume the worst.
  12591. *) ac_cv_func_mmap_fixed_mapped=no ;;
  12592. esac
  12593. else $as_nop
  12594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12595. /* end confdefs.h. */
  12596. $ac_includes_default
  12597. /* malloc might have been renamed as rpl_malloc. */
  12598. #undef malloc
  12599. /* Thanks to Mike Haertel and Jim Avera for this test.
  12600. Here is a matrix of mmap possibilities:
  12601. mmap private not fixed
  12602. mmap private fixed at somewhere currently unmapped
  12603. mmap private fixed at somewhere already mapped
  12604. mmap shared not fixed
  12605. mmap shared fixed at somewhere currently unmapped
  12606. mmap shared fixed at somewhere already mapped
  12607. For private mappings, we should verify that changes cannot be read()
  12608. back from the file, nor mmap's back from the file at a different
  12609. address. (There have been systems where private was not correctly
  12610. implemented like the infamous i386 svr4.0, and systems where the
  12611. VM page cache was not coherent with the file system buffer cache
  12612. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12613. For shared mappings, we should conversely verify that changes get
  12614. propagated back to all the places they're supposed to be.
  12615. Grep wants private fixed already mapped.
  12616. The main things grep needs to know about mmap are:
  12617. * does it exist and is it safe to write into the mmap'd area
  12618. * how to use it (BSD variants) */
  12619. #include <fcntl.h>
  12620. #include <sys/mman.h>
  12621. /* This mess was copied from the GNU getpagesize.h. */
  12622. #ifndef HAVE_GETPAGESIZE
  12623. # ifdef _SC_PAGESIZE
  12624. # define getpagesize() sysconf(_SC_PAGESIZE)
  12625. # else /* no _SC_PAGESIZE */
  12626. # ifdef HAVE_SYS_PARAM_H
  12627. # include <sys/param.h>
  12628. # ifdef EXEC_PAGESIZE
  12629. # define getpagesize() EXEC_PAGESIZE
  12630. # else /* no EXEC_PAGESIZE */
  12631. # ifdef NBPG
  12632. # define getpagesize() NBPG * CLSIZE
  12633. # ifndef CLSIZE
  12634. # define CLSIZE 1
  12635. # endif /* no CLSIZE */
  12636. # else /* no NBPG */
  12637. # ifdef NBPC
  12638. # define getpagesize() NBPC
  12639. # else /* no NBPC */
  12640. # ifdef PAGESIZE
  12641. # define getpagesize() PAGESIZE
  12642. # endif /* PAGESIZE */
  12643. # endif /* no NBPC */
  12644. # endif /* no NBPG */
  12645. # endif /* no EXEC_PAGESIZE */
  12646. # else /* no HAVE_SYS_PARAM_H */
  12647. # define getpagesize() 8192 /* punt totally */
  12648. # endif /* no HAVE_SYS_PARAM_H */
  12649. # endif /* no _SC_PAGESIZE */
  12650. #endif /* no HAVE_GETPAGESIZE */
  12651. int
  12652. main (void)
  12653. {
  12654. char *data, *data2, *data3;
  12655. const char *cdata2;
  12656. int i, pagesize;
  12657. int fd, fd2;
  12658. pagesize = getpagesize ();
  12659. /* First, make a file with some known garbage in it. */
  12660. data = (char *) malloc (pagesize);
  12661. if (!data)
  12662. return 1;
  12663. for (i = 0; i < pagesize; ++i)
  12664. *(data + i) = rand ();
  12665. umask (0);
  12666. fd = creat ("conftest.mmap", 0600);
  12667. if (fd < 0)
  12668. return 2;
  12669. if (write (fd, data, pagesize) != pagesize)
  12670. return 3;
  12671. close (fd);
  12672. /* Next, check that the tail of a page is zero-filled. File must have
  12673. non-zero length, otherwise we risk SIGBUS for entire page. */
  12674. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  12675. if (fd2 < 0)
  12676. return 4;
  12677. cdata2 = "";
  12678. if (write (fd2, cdata2, 1) != 1)
  12679. return 5;
  12680. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  12681. if (data2 == MAP_FAILED)
  12682. return 6;
  12683. for (i = 0; i < pagesize; ++i)
  12684. if (*(data2 + i))
  12685. return 7;
  12686. close (fd2);
  12687. if (munmap (data2, pagesize))
  12688. return 8;
  12689. /* Next, try to mmap the file at a fixed address which already has
  12690. something else allocated at it. If we can, also make sure that
  12691. we see the same garbage. */
  12692. fd = open ("conftest.mmap", O_RDWR);
  12693. if (fd < 0)
  12694. return 9;
  12695. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12696. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12697. return 10;
  12698. for (i = 0; i < pagesize; ++i)
  12699. if (*(data + i) != *(data2 + i))
  12700. return 11;
  12701. /* Finally, make sure that changes to the mapped area do not
  12702. percolate back to the file as seen by read(). (This is a bug on
  12703. some variants of i386 svr4.0.) */
  12704. for (i = 0; i < pagesize; ++i)
  12705. *(data2 + i) = *(data2 + i) + 1;
  12706. data3 = (char *) malloc (pagesize);
  12707. if (!data3)
  12708. return 12;
  12709. if (read (fd, data3, pagesize) != pagesize)
  12710. return 13;
  12711. for (i = 0; i < pagesize; ++i)
  12712. if (*(data + i) != *(data3 + i))
  12713. return 14;
  12714. close (fd);
  12715. free (data);
  12716. free (data3);
  12717. return 0;
  12718. }
  12719. _ACEOF
  12720. if ac_fn_c_try_run "$LINENO"
  12721. then :
  12722. ac_cv_func_mmap_fixed_mapped=yes
  12723. else $as_nop
  12724. ac_cv_func_mmap_fixed_mapped=no
  12725. fi
  12726. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12727. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12728. fi
  12729. fi
  12730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12731. printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12732. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12733. printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
  12734. fi
  12735. rm -f conftest.mmap conftest.txt
  12736. if test "x$ac_cv_func_fork" = xyes; then
  12737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  12738. printf %s "checking for working fork... " >&6; }
  12739. if test ${ac_cv_func_fork_works+y}
  12740. then :
  12741. printf %s "(cached) " >&6
  12742. else $as_nop
  12743. if test "$cross_compiling" = yes
  12744. then :
  12745. ac_cv_func_fork_works=cross
  12746. else $as_nop
  12747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12748. /* end confdefs.h. */
  12749. $ac_includes_default
  12750. int
  12751. main (void)
  12752. {
  12753. /* By Ruediger Kuhlmann. */
  12754. return fork () < 0;
  12755. ;
  12756. return 0;
  12757. }
  12758. _ACEOF
  12759. if ac_fn_c_try_run "$LINENO"
  12760. then :
  12761. ac_cv_func_fork_works=yes
  12762. else $as_nop
  12763. ac_cv_func_fork_works=no
  12764. fi
  12765. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12766. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12767. fi
  12768. fi
  12769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  12770. printf "%s\n" "$ac_cv_func_fork_works" >&6; }
  12771. else
  12772. ac_cv_func_fork_works=$ac_cv_func_fork
  12773. fi
  12774. if test "x$ac_cv_func_fork_works" = xcross; then
  12775. case $host in
  12776. *-*-amigaos* | *-*-msdosdjgpp*)
  12777. # Override, as these systems have only a dummy fork() stub
  12778. ac_cv_func_fork_works=no
  12779. ;;
  12780. *)
  12781. ac_cv_func_fork_works=yes
  12782. ;;
  12783. esac
  12784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  12785. printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  12786. fi
  12787. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12788. if test "x$ac_cv_func_vfork" = xyes; then
  12789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  12790. printf %s "checking for working vfork... " >&6; }
  12791. if test ${ac_cv_func_vfork_works+y}
  12792. then :
  12793. printf %s "(cached) " >&6
  12794. else $as_nop
  12795. if test "$cross_compiling" = yes
  12796. then :
  12797. ac_cv_func_vfork_works=cross
  12798. else $as_nop
  12799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12800. /* end confdefs.h. */
  12801. /* Thanks to Paul Eggert for this test. */
  12802. $ac_includes_default
  12803. #include <signal.h>
  12804. #include <sys/wait.h>
  12805. #ifdef HAVE_VFORK_H
  12806. # include <vfork.h>
  12807. #endif
  12808. static void
  12809. do_nothing (int sig)
  12810. {
  12811. (void) sig;
  12812. }
  12813. /* On some sparc systems, changes by the child to local and incoming
  12814. argument registers are propagated back to the parent. The compiler
  12815. is told about this with #include <vfork.h>, but some compilers
  12816. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12817. static variable whose address is put into a register that is
  12818. clobbered by the vfork. */
  12819. static void
  12820. sparc_address_test (int arg)
  12821. {
  12822. static pid_t child;
  12823. if (!child) {
  12824. child = vfork ();
  12825. if (child < 0) {
  12826. perror ("vfork");
  12827. _exit(2);
  12828. }
  12829. if (!child) {
  12830. arg = getpid();
  12831. write(-1, "", 0);
  12832. _exit (arg);
  12833. }
  12834. }
  12835. }
  12836. int
  12837. main (void)
  12838. {
  12839. pid_t parent = getpid ();
  12840. pid_t child;
  12841. sparc_address_test (0);
  12842. /* On Solaris 2.4, changes by the child to the signal handler
  12843. also munge signal handlers in the parent. To detect this,
  12844. start by putting the parent's handler in a known state. */
  12845. signal (SIGTERM, SIG_DFL);
  12846. child = vfork ();
  12847. if (child == 0) {
  12848. /* Here is another test for sparc vfork register problems. This
  12849. test uses lots of local variables, at least as many local
  12850. variables as main has allocated so far including compiler
  12851. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12852. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12853. reuse the register of parent for one of the local variables,
  12854. since it will think that parent can't possibly be used any more
  12855. in this routine. Assigning to the local variable will thus
  12856. munge parent in the parent process. */
  12857. pid_t
  12858. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12859. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12860. /* Convince the compiler that p..p7 are live; otherwise, it might
  12861. use the same hardware register for all 8 local variables. */
  12862. if (p != p1 || p != p2 || p != p3 || p != p4
  12863. || p != p5 || p != p6 || p != p7)
  12864. _exit(1);
  12865. /* Alter the child's signal handler. */
  12866. if (signal (SIGTERM, do_nothing) != SIG_DFL)
  12867. _exit(1);
  12868. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12869. from child file descriptors. If the child closes a descriptor
  12870. before it execs or exits, this munges the parent's descriptor
  12871. as well. Test for this by closing stdout in the child. */
  12872. _exit(close(fileno(stdout)) != 0);
  12873. } else {
  12874. int status;
  12875. struct stat st;
  12876. while (wait(&status) != child)
  12877. ;
  12878. return (
  12879. /* Was there some problem with vforking? */
  12880. child < 0
  12881. /* Did the child munge the parent's signal handler? */
  12882. || signal (SIGTERM, SIG_DFL) != SIG_DFL
  12883. /* Did the child fail? (This shouldn't happen.) */
  12884. || status
  12885. /* Did the vfork/compiler bug occur? */
  12886. || parent != getpid()
  12887. /* Did the file descriptor bug occur? */
  12888. || fstat(fileno(stdout), &st) != 0
  12889. );
  12890. }
  12891. }
  12892. _ACEOF
  12893. if ac_fn_c_try_run "$LINENO"
  12894. then :
  12895. ac_cv_func_vfork_works=yes
  12896. else $as_nop
  12897. ac_cv_func_vfork_works=no
  12898. fi
  12899. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12900. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12901. fi
  12902. fi
  12903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12904. printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
  12905. fi;
  12906. if test "x$ac_cv_func_fork_works" = xcross; then
  12907. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12909. printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12910. fi
  12911. if test "x$ac_cv_func_vfork_works" = xyes; then
  12912. printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12913. else
  12914. printf "%s\n" "#define vfork fork" >>confdefs.h
  12915. fi
  12916. if test "x$ac_cv_func_fork_works" = xyes; then
  12917. printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12918. fi
  12919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
  12920. printf %s "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
  12921. if test ${ac_cv_func_mbrtowc+y}
  12922. then :
  12923. printf %s "(cached) " >&6
  12924. else $as_nop
  12925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12926. /* end confdefs.h. */
  12927. #include <wchar.h>
  12928. int
  12929. main (void)
  12930. {
  12931. wchar_t wc;
  12932. char const s[] = "";
  12933. size_t n = 1;
  12934. mbstate_t state;
  12935. return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
  12936. ;
  12937. return 0;
  12938. }
  12939. _ACEOF
  12940. if ac_fn_c_try_link "$LINENO"
  12941. then :
  12942. ac_cv_func_mbrtowc=yes
  12943. else $as_nop
  12944. ac_cv_func_mbrtowc=no
  12945. fi
  12946. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12947. conftest$ac_exeext conftest.$ac_ext
  12948. fi
  12949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
  12950. printf "%s\n" "$ac_cv_func_mbrtowc" >&6; }
  12951. if test $ac_cv_func_mbrtowc = yes; then
  12952. printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
  12953. fi
  12954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
  12955. printf %s "checking for gcc compiler warnings... " >&6; }
  12956. # Check whether --enable-warnings was given.
  12957. if test ${enable_warnings+y}
  12958. then :
  12959. enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
  12960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12961. printf "%s\n" "no" >&6; }
  12962. WARNINGS=
  12963. else
  12964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12965. printf "%s\n" "yes" >&6; }
  12966. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  12967. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  12968. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  12969. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  12970. fi
  12971. else $as_nop
  12972. if test "$GCC" = yes; then
  12973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12974. printf "%s\n" "yes" >&6; }
  12975. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  12976. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  12977. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  12978. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  12979. else
  12980. WARNINGS=
  12981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12982. printf "%s\n" "no" >&6; }
  12983. fi
  12984. fi
  12985. ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
  12986. if test "x$ac_cv_func_strndup" = xyes
  12987. then :
  12988. printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
  12989. fi
  12990. ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
  12991. if test "x$ac_cv_func_mkstemp" = xyes
  12992. then :
  12993. printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
  12994. fi
  12995. ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp"
  12996. if test "x$ac_cv_func_mkostemp" = xyes
  12997. then :
  12998. printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h
  12999. fi
  13000. ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
  13001. if test "x$ac_cv_func_utimes" = xyes
  13002. then :
  13003. printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
  13004. fi
  13005. ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
  13006. if test "x$ac_cv_func_utime" = xyes
  13007. then :
  13008. printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
  13009. fi
  13010. ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth"
  13011. if test "x$ac_cv_func_wcwidth" = xyes
  13012. then :
  13013. printf "%s\n" "#define HAVE_WCWIDTH 1" >>confdefs.h
  13014. fi
  13015. ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
  13016. if test "x$ac_cv_func_strtof" = xyes
  13017. then :
  13018. printf "%s\n" "#define HAVE_STRTOF 1" >>confdefs.h
  13019. fi
  13020. ac_fn_c_check_func "$LINENO" "newlocale" "ac_cv_func_newlocale"
  13021. if test "x$ac_cv_func_newlocale" = xyes
  13022. then :
  13023. printf "%s\n" "#define HAVE_NEWLOCALE 1" >>confdefs.h
  13024. fi
  13025. ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
  13026. if test "x$ac_cv_func_uselocale" = xyes
  13027. then :
  13028. printf "%s\n" "#define HAVE_USELOCALE 1" >>confdefs.h
  13029. fi
  13030. ac_fn_c_check_func "$LINENO" "freelocale" "ac_cv_func_freelocale"
  13031. if test "x$ac_cv_func_freelocale" = xyes
  13032. then :
  13033. printf "%s\n" "#define HAVE_FREELOCALE 1" >>confdefs.h
  13034. fi
  13035. ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
  13036. if test "x$ac_cv_func_memmem" = xyes
  13037. then :
  13038. printf "%s\n" "#define HAVE_MEMMEM 1" >>confdefs.h
  13039. fi
  13040. ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2"
  13041. if test "x$ac_cv_func_pipe2" = xyes
  13042. then :
  13043. printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h
  13044. fi
  13045. ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp"
  13046. if test "x$ac_cv_func_posix_spawnp" = xyes
  13047. then :
  13048. printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h
  13049. fi
  13050. ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
  13051. if test "x$ac_cv_func_getopt_long" = xyes
  13052. then :
  13053. printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
  13054. else $as_nop
  13055. case " $LIBOBJS " in
  13056. *" getopt_long.$ac_objext "* ) ;;
  13057. *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
  13058. ;;
  13059. esac
  13060. fi
  13061. ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
  13062. if test "x$ac_cv_func_asprintf" = xyes
  13063. then :
  13064. printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
  13065. else $as_nop
  13066. case " $LIBOBJS " in
  13067. *" asprintf.$ac_objext "* ) ;;
  13068. *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
  13069. ;;
  13070. esac
  13071. fi
  13072. ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
  13073. if test "x$ac_cv_func_vasprintf" = xyes
  13074. then :
  13075. printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
  13076. else $as_nop
  13077. case " $LIBOBJS " in
  13078. *" vasprintf.$ac_objext "* ) ;;
  13079. *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
  13080. ;;
  13081. esac
  13082. fi
  13083. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  13084. if test "x$ac_cv_func_strlcpy" = xyes
  13085. then :
  13086. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  13087. else $as_nop
  13088. case " $LIBOBJS " in
  13089. *" strlcpy.$ac_objext "* ) ;;
  13090. *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
  13091. ;;
  13092. esac
  13093. fi
  13094. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  13095. if test "x$ac_cv_func_strlcat" = xyes
  13096. then :
  13097. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  13098. else $as_nop
  13099. case " $LIBOBJS " in
  13100. *" strlcat.$ac_objext "* ) ;;
  13101. *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
  13102. ;;
  13103. esac
  13104. fi
  13105. ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
  13106. if test "x$ac_cv_func_getline" = xyes
  13107. then :
  13108. printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h
  13109. else $as_nop
  13110. case " $LIBOBJS " in
  13111. *" getline.$ac_objext "* ) ;;
  13112. *) LIBOBJS="$LIBOBJS getline.$ac_objext"
  13113. ;;
  13114. esac
  13115. fi
  13116. ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
  13117. if test "x$ac_cv_func_ctime_r" = xyes
  13118. then :
  13119. printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h
  13120. else $as_nop
  13121. case " $LIBOBJS " in
  13122. *" ctime_r.$ac_objext "* ) ;;
  13123. *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
  13124. ;;
  13125. esac
  13126. fi
  13127. ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  13128. if test "x$ac_cv_func_asctime_r" = xyes
  13129. then :
  13130. printf "%s\n" "#define HAVE_ASCTIME_R 1" >>confdefs.h
  13131. else $as_nop
  13132. case " $LIBOBJS " in
  13133. *" asctime_r.$ac_objext "* ) ;;
  13134. *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
  13135. ;;
  13136. esac
  13137. fi
  13138. ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  13139. if test "x$ac_cv_func_localtime_r" = xyes
  13140. then :
  13141. printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
  13142. else $as_nop
  13143. case " $LIBOBJS " in
  13144. *" localtime_r.$ac_objext "* ) ;;
  13145. *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
  13146. ;;
  13147. esac
  13148. fi
  13149. ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
  13150. if test "x$ac_cv_func_gmtime_r" = xyes
  13151. then :
  13152. printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
  13153. else $as_nop
  13154. case " $LIBOBJS " in
  13155. *" gmtime_r.$ac_objext "* ) ;;
  13156. *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
  13157. ;;
  13158. esac
  13159. fi
  13160. ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
  13161. if test "x$ac_cv_func_pread" = xyes
  13162. then :
  13163. printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
  13164. else $as_nop
  13165. case " $LIBOBJS " in
  13166. *" pread.$ac_objext "* ) ;;
  13167. *) LIBOBJS="$LIBOBJS pread.$ac_objext"
  13168. ;;
  13169. esac
  13170. fi
  13171. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  13172. if test "x$ac_cv_func_strcasestr" = xyes
  13173. then :
  13174. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  13175. else $as_nop
  13176. case " $LIBOBJS " in
  13177. *" strcasestr.$ac_objext "* ) ;;
  13178. *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
  13179. ;;
  13180. esac
  13181. fi
  13182. ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
  13183. if test "x$ac_cv_func_fmtcheck" = xyes
  13184. then :
  13185. printf "%s\n" "#define HAVE_FMTCHECK 1" >>confdefs.h
  13186. else $as_nop
  13187. case " $LIBOBJS " in
  13188. *" fmtcheck.$ac_objext "* ) ;;
  13189. *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext"
  13190. ;;
  13191. esac
  13192. fi
  13193. ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
  13194. if test "x$ac_cv_func_dprintf" = xyes
  13195. then :
  13196. printf "%s\n" "#define HAVE_DPRINTF 1" >>confdefs.h
  13197. else $as_nop
  13198. case " $LIBOBJS " in
  13199. *" dprintf.$ac_objext "* ) ;;
  13200. *) LIBOBJS="$LIBOBJS dprintf.$ac_objext"
  13201. ;;
  13202. esac
  13203. fi
  13204. if test "$enable_zlib" != "no"; then
  13205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
  13206. printf %s "checking for gzopen in -lz... " >&6; }
  13207. if test ${ac_cv_lib_z_gzopen+y}
  13208. then :
  13209. printf %s "(cached) " >&6
  13210. else $as_nop
  13211. ac_check_lib_save_LIBS=$LIBS
  13212. LIBS="-lz $LIBS"
  13213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13214. /* end confdefs.h. */
  13215. /* Override any GCC internal prototype to avoid an error.
  13216. Use char because int might match the return type of a GCC
  13217. builtin and then its argument prototype would still apply. */
  13218. char gzopen ();
  13219. int
  13220. main (void)
  13221. {
  13222. return gzopen ();
  13223. ;
  13224. return 0;
  13225. }
  13226. _ACEOF
  13227. if ac_fn_c_try_link "$LINENO"
  13228. then :
  13229. ac_cv_lib_z_gzopen=yes
  13230. else $as_nop
  13231. ac_cv_lib_z_gzopen=no
  13232. fi
  13233. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13234. conftest$ac_exeext conftest.$ac_ext
  13235. LIBS=$ac_check_lib_save_LIBS
  13236. fi
  13237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
  13238. printf "%s\n" "$ac_cv_lib_z_gzopen" >&6; }
  13239. if test "x$ac_cv_lib_z_gzopen" = xyes
  13240. then :
  13241. printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
  13242. LIBS="-lz $LIBS"
  13243. fi
  13244. fi
  13245. if test "$enable_bzlib" != "no"; then
  13246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
  13247. printf %s "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
  13248. if test ${ac_cv_lib_bz2_BZ2_bzCompressInit+y}
  13249. then :
  13250. printf %s "(cached) " >&6
  13251. else $as_nop
  13252. ac_check_lib_save_LIBS=$LIBS
  13253. LIBS="-lbz2 $LIBS"
  13254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13255. /* end confdefs.h. */
  13256. /* Override any GCC internal prototype to avoid an error.
  13257. Use char because int might match the return type of a GCC
  13258. builtin and then its argument prototype would still apply. */
  13259. char BZ2_bzCompressInit ();
  13260. int
  13261. main (void)
  13262. {
  13263. return BZ2_bzCompressInit ();
  13264. ;
  13265. return 0;
  13266. }
  13267. _ACEOF
  13268. if ac_fn_c_try_link "$LINENO"
  13269. then :
  13270. ac_cv_lib_bz2_BZ2_bzCompressInit=yes
  13271. else $as_nop
  13272. ac_cv_lib_bz2_BZ2_bzCompressInit=no
  13273. fi
  13274. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13275. conftest$ac_exeext conftest.$ac_ext
  13276. LIBS=$ac_check_lib_save_LIBS
  13277. fi
  13278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
  13279. printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
  13280. if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes
  13281. then :
  13282. printf "%s\n" "#define HAVE_LIBBZ2 1" >>confdefs.h
  13283. LIBS="-lbz2 $LIBS"
  13284. fi
  13285. fi
  13286. if test "$enable_xzlib" != "no"; then
  13287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5
  13288. printf %s "checking for lzma_stream_decoder in -llzma... " >&6; }
  13289. if test ${ac_cv_lib_lzma_lzma_stream_decoder+y}
  13290. then :
  13291. printf %s "(cached) " >&6
  13292. else $as_nop
  13293. ac_check_lib_save_LIBS=$LIBS
  13294. LIBS="-llzma $LIBS"
  13295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13296. /* end confdefs.h. */
  13297. /* Override any GCC internal prototype to avoid an error.
  13298. Use char because int might match the return type of a GCC
  13299. builtin and then its argument prototype would still apply. */
  13300. char lzma_stream_decoder ();
  13301. int
  13302. main (void)
  13303. {
  13304. return lzma_stream_decoder ();
  13305. ;
  13306. return 0;
  13307. }
  13308. _ACEOF
  13309. if ac_fn_c_try_link "$LINENO"
  13310. then :
  13311. ac_cv_lib_lzma_lzma_stream_decoder=yes
  13312. else $as_nop
  13313. ac_cv_lib_lzma_lzma_stream_decoder=no
  13314. fi
  13315. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13316. conftest$ac_exeext conftest.$ac_ext
  13317. LIBS=$ac_check_lib_save_LIBS
  13318. fi
  13319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5
  13320. printf "%s\n" "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }
  13321. if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes
  13322. then :
  13323. printf "%s\n" "#define HAVE_LIBLZMA 1" >>confdefs.h
  13324. LIBS="-llzma $LIBS"
  13325. fi
  13326. fi
  13327. if test "$enable_zstdlib" != "no"; then
  13328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_createDStream in -lzstd" >&5
  13329. printf %s "checking for ZSTD_createDStream in -lzstd... " >&6; }
  13330. if test ${ac_cv_lib_zstd_ZSTD_createDStream+y}
  13331. then :
  13332. printf %s "(cached) " >&6
  13333. else $as_nop
  13334. ac_check_lib_save_LIBS=$LIBS
  13335. LIBS="-lzstd $LIBS"
  13336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13337. /* end confdefs.h. */
  13338. /* Override any GCC internal prototype to avoid an error.
  13339. Use char because int might match the return type of a GCC
  13340. builtin and then its argument prototype would still apply. */
  13341. char ZSTD_createDStream ();
  13342. int
  13343. main (void)
  13344. {
  13345. return ZSTD_createDStream ();
  13346. ;
  13347. return 0;
  13348. }
  13349. _ACEOF
  13350. if ac_fn_c_try_link "$LINENO"
  13351. then :
  13352. ac_cv_lib_zstd_ZSTD_createDStream=yes
  13353. else $as_nop
  13354. ac_cv_lib_zstd_ZSTD_createDStream=no
  13355. fi
  13356. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13357. conftest$ac_exeext conftest.$ac_ext
  13358. LIBS=$ac_check_lib_save_LIBS
  13359. fi
  13360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_createDStream" >&5
  13361. printf "%s\n" "$ac_cv_lib_zstd_ZSTD_createDStream" >&6; }
  13362. if test "x$ac_cv_lib_zstd_ZSTD_createDStream" = xyes
  13363. then :
  13364. printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h
  13365. LIBS="-lzstd $LIBS"
  13366. fi
  13367. fi
  13368. if test "$enable_lzlib" != "no"; then
  13369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LZ_decompress_open in -llz" >&5
  13370. printf %s "checking for LZ_decompress_open in -llz... " >&6; }
  13371. if test ${ac_cv_lib_lz_LZ_decompress_open+y}
  13372. then :
  13373. printf %s "(cached) " >&6
  13374. else $as_nop
  13375. ac_check_lib_save_LIBS=$LIBS
  13376. LIBS="-llz $LIBS"
  13377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13378. /* end confdefs.h. */
  13379. /* Override any GCC internal prototype to avoid an error.
  13380. Use char because int might match the return type of a GCC
  13381. builtin and then its argument prototype would still apply. */
  13382. char LZ_decompress_open ();
  13383. int
  13384. main (void)
  13385. {
  13386. return LZ_decompress_open ();
  13387. ;
  13388. return 0;
  13389. }
  13390. _ACEOF
  13391. if ac_fn_c_try_link "$LINENO"
  13392. then :
  13393. ac_cv_lib_lz_LZ_decompress_open=yes
  13394. else $as_nop
  13395. ac_cv_lib_lz_LZ_decompress_open=no
  13396. fi
  13397. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13398. conftest$ac_exeext conftest.$ac_ext
  13399. LIBS=$ac_check_lib_save_LIBS
  13400. fi
  13401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz_LZ_decompress_open" >&5
  13402. printf "%s\n" "$ac_cv_lib_lz_LZ_decompress_open" >&6; }
  13403. if test "x$ac_cv_lib_lz_LZ_decompress_open" = xyes
  13404. then :
  13405. printf "%s\n" "#define HAVE_LIBLZ 1" >>confdefs.h
  13406. LIBS="-llz $LIBS"
  13407. fi
  13408. fi
  13409. if test "$enable_libseccomp" != "no"; then
  13410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5
  13411. printf %s "checking for seccomp_init in -lseccomp... " >&6; }
  13412. if test ${ac_cv_lib_seccomp_seccomp_init+y}
  13413. then :
  13414. printf %s "(cached) " >&6
  13415. else $as_nop
  13416. ac_check_lib_save_LIBS=$LIBS
  13417. LIBS="-lseccomp $LIBS"
  13418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13419. /* end confdefs.h. */
  13420. /* Override any GCC internal prototype to avoid an error.
  13421. Use char because int might match the return type of a GCC
  13422. builtin and then its argument prototype would still apply. */
  13423. char seccomp_init ();
  13424. int
  13425. main (void)
  13426. {
  13427. return seccomp_init ();
  13428. ;
  13429. return 0;
  13430. }
  13431. _ACEOF
  13432. if ac_fn_c_try_link "$LINENO"
  13433. then :
  13434. ac_cv_lib_seccomp_seccomp_init=yes
  13435. else $as_nop
  13436. ac_cv_lib_seccomp_seccomp_init=no
  13437. fi
  13438. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13439. conftest$ac_exeext conftest.$ac_ext
  13440. LIBS=$ac_check_lib_save_LIBS
  13441. fi
  13442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5
  13443. printf "%s\n" "$ac_cv_lib_seccomp_seccomp_init" >&6; }
  13444. if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes
  13445. then :
  13446. printf "%s\n" "#define HAVE_LIBSECCOMP 1" >>confdefs.h
  13447. LIBS="-lseccomp $LIBS"
  13448. fi
  13449. fi
  13450. if test "$MINGW" = 1; then
  13451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
  13452. printf %s "checking for regexec in -lgnurx... " >&6; }
  13453. if test ${ac_cv_lib_gnurx_regexec+y}
  13454. then :
  13455. printf %s "(cached) " >&6
  13456. else $as_nop
  13457. ac_check_lib_save_LIBS=$LIBS
  13458. LIBS="-lgnurx $LIBS"
  13459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13460. /* end confdefs.h. */
  13461. /* Override any GCC internal prototype to avoid an error.
  13462. Use char because int might match the return type of a GCC
  13463. builtin and then its argument prototype would still apply. */
  13464. char regexec ();
  13465. int
  13466. main (void)
  13467. {
  13468. return regexec ();
  13469. ;
  13470. return 0;
  13471. }
  13472. _ACEOF
  13473. if ac_fn_c_try_link "$LINENO"
  13474. then :
  13475. ac_cv_lib_gnurx_regexec=yes
  13476. else $as_nop
  13477. ac_cv_lib_gnurx_regexec=no
  13478. fi
  13479. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13480. conftest$ac_exeext conftest.$ac_ext
  13481. LIBS=$ac_check_lib_save_LIBS
  13482. fi
  13483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
  13484. printf "%s\n" "$ac_cv_lib_gnurx_regexec" >&6; }
  13485. if test "x$ac_cv_lib_gnurx_regexec" = xyes
  13486. then :
  13487. printf "%s\n" "#define HAVE_LIBGNURX 1" >>confdefs.h
  13488. LIBS="-lgnurx $LIBS"
  13489. else $as_nop
  13490. as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
  13491. fi
  13492. fi
  13493. if test "$cross_compiling" = yes; then
  13494. IS_CROSS_COMPILE_TRUE=
  13495. IS_CROSS_COMPILE_FALSE='#'
  13496. else
  13497. IS_CROSS_COMPILE_TRUE='#'
  13498. IS_CROSS_COMPILE_FALSE=
  13499. fi
  13500. if test "$enable_zlib" = "yes"; then
  13501. if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then
  13502. as_fn_error $? "zlib support requested but not found" "$LINENO" 5
  13503. fi
  13504. fi
  13505. if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then
  13506. printf "%s\n" "#define ZLIBSUPPORT 1" >>confdefs.h
  13507. fi
  13508. if test "$enable_bzlib" = "yes"; then
  13509. if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" != "yesyes"; then
  13510. as_fn_error $? "bzlib support requested but not found" "$LINENO" 5
  13511. fi
  13512. fi
  13513. if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" = "yesyes"; then
  13514. printf "%s\n" "#define BZLIBSUPPORT 1" >>confdefs.h
  13515. fi
  13516. if test "$enable_xzlib" = "yes"; then
  13517. if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" != "yesyes"; then
  13518. as_fn_error $? "xzlib support requested but not found" "$LINENO" 5
  13519. fi
  13520. fi
  13521. if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" = "yesyes"; then
  13522. printf "%s\n" "#define XZLIBSUPPORT 1" >>confdefs.h
  13523. fi
  13524. if test "$enable_zstdlib" = "yes"; then
  13525. if test "$ac_cv_header_zstd_h$ac_cv_lib_zstd_ZSTD_createDStream" != "yesyes"; then
  13526. as_fn_error $? "zstdlib support requested but not found" "$LINENO" 5
  13527. fi
  13528. fi
  13529. if test "$ac_cv_header_zstd_h$ac_cv_lib_zstd_ZSTD_createDStream" = "yesyes"; then
  13530. printf "%s\n" "#define ZSTDLIBSUPPORT 1" >>confdefs.h
  13531. fi
  13532. if test "$enable_lzlib" = "yes"; then
  13533. if test "$ac_cv_header_lzlib_h$ac_cv_lib_lz_LZ_decompress_open" != "yesyes"; then
  13534. as_fn_error $? "lzlib support requested but not found" "$LINENO" 5
  13535. fi
  13536. fi
  13537. if test "$ac_cv_header_lzlib_h$ac_cv_lib_lz_LZ_decompress_open" = "yesyes"; then
  13538. printf "%s\n" "#define LZLIBSUPPORT 1" >>confdefs.h
  13539. fi
  13540. ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile libmagic.pc"
  13541. cat >confcache <<\_ACEOF
  13542. # This file is a shell script that caches the results of configure
  13543. # tests run on this system so they can be shared between configure
  13544. # scripts and configure runs, see configure's option --config-cache.
  13545. # It is not useful on other systems. If it contains results you don't
  13546. # want to keep, you may remove or edit it.
  13547. #
  13548. # config.status only pays attention to the cache file if you give it
  13549. # the --recheck option to rerun configure.
  13550. #
  13551. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13552. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13553. # following values.
  13554. _ACEOF
  13555. # The following way of writing the cache mishandles newlines in values,
  13556. # but we know of no workaround that is simple, portable, and efficient.
  13557. # So, we kill variables containing newlines.
  13558. # Ultrix sh set writes to stderr and can't be redirected directly,
  13559. # and sets the high bit in the cache file unless we assign to the vars.
  13560. (
  13561. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13562. eval ac_val=\$$ac_var
  13563. case $ac_val in #(
  13564. *${as_nl}*)
  13565. case $ac_var in #(
  13566. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13567. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13568. esac
  13569. case $ac_var in #(
  13570. _ | IFS | as_nl) ;; #(
  13571. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13572. *) { eval $ac_var=; unset $ac_var;} ;;
  13573. esac ;;
  13574. esac
  13575. done
  13576. (set) 2>&1 |
  13577. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13578. *${as_nl}ac_space=\ *)
  13579. # `set' does not quote correctly, so add quotes: double-quote
  13580. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13581. sed -n \
  13582. "s/'/'\\\\''/g;
  13583. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13584. ;; #(
  13585. *)
  13586. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13587. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13588. ;;
  13589. esac |
  13590. sort
  13591. ) |
  13592. sed '
  13593. /^ac_cv_env_/b end
  13594. t clear
  13595. :clear
  13596. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  13597. t end
  13598. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13599. :end' >>confcache
  13600. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13601. if test -w "$cache_file"; then
  13602. if test "x$cache_file" != "x/dev/null"; then
  13603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13604. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  13605. if test ! -f "$cache_file" || test -h "$cache_file"; then
  13606. cat confcache >"$cache_file"
  13607. else
  13608. case $cache_file in #(
  13609. */* | ?:*)
  13610. mv -f confcache "$cache_file"$$ &&
  13611. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13612. *)
  13613. mv -f confcache "$cache_file" ;;
  13614. esac
  13615. fi
  13616. fi
  13617. else
  13618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13619. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  13620. fi
  13621. fi
  13622. rm -f confcache
  13623. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13624. # Let make expand exec_prefix.
  13625. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13626. DEFS=-DHAVE_CONFIG_H
  13627. ac_libobjs=
  13628. ac_ltlibobjs=
  13629. U=
  13630. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13631. # 1. Remove the extension, and $U if already installed.
  13632. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13633. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  13634. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13635. # will be set to the directory where LIBOBJS objects are built.
  13636. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13637. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13638. done
  13639. LIBOBJS=$ac_libobjs
  13640. LTLIBOBJS=$ac_ltlibobjs
  13641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  13642. printf %s "checking that generated files are newer than configure... " >&6; }
  13643. if test -n "$am_sleep_pid"; then
  13644. # Hide warnings about reused PIDs.
  13645. wait $am_sleep_pid 2>/dev/null
  13646. fi
  13647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
  13648. printf "%s\n" "done" >&6; }
  13649. if test -n "$EXEEXT"; then
  13650. am__EXEEXT_TRUE=
  13651. am__EXEEXT_FALSE='#'
  13652. else
  13653. am__EXEEXT_TRUE='#'
  13654. am__EXEEXT_FALSE=
  13655. fi
  13656. if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
  13657. as_fn_error $? "conditional \"MINGW\" was never defined.
  13658. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13659. fi
  13660. if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
  13661. as_fn_error $? "conditional \"FSECT5\" was never defined.
  13662. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13663. fi
  13664. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13665. as_fn_error $? "conditional \"AMDEP\" was never defined.
  13666. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13667. fi
  13668. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13669. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13670. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13671. fi
  13672. if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
  13673. as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
  13674. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13675. fi
  13676. : "${CONFIG_STATUS=./config.status}"
  13677. ac_write_fail=0
  13678. ac_clean_files_save=$ac_clean_files
  13679. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13681. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  13682. as_write_fail=0
  13683. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13684. #! $SHELL
  13685. # Generated by $as_me.
  13686. # Run this file to recreate the current configuration.
  13687. # Compiler output produced by configure, useful for debugging
  13688. # configure, is in config.log if it exists.
  13689. debug=false
  13690. ac_cs_recheck=false
  13691. ac_cs_silent=false
  13692. SHELL=\${CONFIG_SHELL-$SHELL}
  13693. export SHELL
  13694. _ASEOF
  13695. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13696. ## -------------------- ##
  13697. ## M4sh Initialization. ##
  13698. ## -------------------- ##
  13699. # Be more Bourne compatible
  13700. DUALCASE=1; export DUALCASE # for MKS sh
  13701. as_nop=:
  13702. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  13703. then :
  13704. emulate sh
  13705. NULLCMD=:
  13706. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13707. # is contrary to our usage. Disable this feature.
  13708. alias -g '${1+"$@"}'='"$@"'
  13709. setopt NO_GLOB_SUBST
  13710. else $as_nop
  13711. case `(set -o) 2>/dev/null` in #(
  13712. *posix*) :
  13713. set -o posix ;; #(
  13714. *) :
  13715. ;;
  13716. esac
  13717. fi
  13718. # Reset variables that may have inherited troublesome values from
  13719. # the environment.
  13720. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  13721. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  13722. # side effect of setting IFS to empty, thus disabling word splitting.)
  13723. # Quoting is to prevent editors from complaining about space-tab.
  13724. as_nl='
  13725. '
  13726. export as_nl
  13727. IFS=" "" $as_nl"
  13728. PS1='$ '
  13729. PS2='> '
  13730. PS4='+ '
  13731. # Ensure predictable behavior from utilities with locale-dependent output.
  13732. LC_ALL=C
  13733. export LC_ALL
  13734. LANGUAGE=C
  13735. export LANGUAGE
  13736. # We cannot yet rely on "unset" to work, but we need these variables
  13737. # to be unset--not just set to an empty or harmless value--now, to
  13738. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  13739. # also avoids known problems related to "unset" and subshell syntax
  13740. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  13741. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  13742. do eval test \${$as_var+y} \
  13743. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13744. done
  13745. # Ensure that fds 0, 1, and 2 are open.
  13746. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  13747. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  13748. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  13749. # The user is always right.
  13750. if ${PATH_SEPARATOR+false} :; then
  13751. PATH_SEPARATOR=:
  13752. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13753. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13754. PATH_SEPARATOR=';'
  13755. }
  13756. fi
  13757. # Find who we are. Look in the path if we contain no directory separator.
  13758. as_myself=
  13759. case $0 in #((
  13760. *[\\/]* ) as_myself=$0 ;;
  13761. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13762. for as_dir in $PATH
  13763. do
  13764. IFS=$as_save_IFS
  13765. case $as_dir in #(((
  13766. '') as_dir=./ ;;
  13767. */) ;;
  13768. *) as_dir=$as_dir/ ;;
  13769. esac
  13770. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  13771. done
  13772. IFS=$as_save_IFS
  13773. ;;
  13774. esac
  13775. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13776. # in which case we are not to be found in the path.
  13777. if test "x$as_myself" = x; then
  13778. as_myself=$0
  13779. fi
  13780. if test ! -f "$as_myself"; then
  13781. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13782. exit 1
  13783. fi
  13784. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13785. # ----------------------------------------
  13786. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13787. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13788. # script with STATUS, using 1 if that was 0.
  13789. as_fn_error ()
  13790. {
  13791. as_status=$1; test $as_status -eq 0 && as_status=1
  13792. if test "$4"; then
  13793. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13794. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13795. fi
  13796. printf "%s\n" "$as_me: error: $2" >&2
  13797. as_fn_exit $as_status
  13798. } # as_fn_error
  13799. # as_fn_set_status STATUS
  13800. # -----------------------
  13801. # Set $? to STATUS, without forking.
  13802. as_fn_set_status ()
  13803. {
  13804. return $1
  13805. } # as_fn_set_status
  13806. # as_fn_exit STATUS
  13807. # -----------------
  13808. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13809. as_fn_exit ()
  13810. {
  13811. set +e
  13812. as_fn_set_status $1
  13813. exit $1
  13814. } # as_fn_exit
  13815. # as_fn_unset VAR
  13816. # ---------------
  13817. # Portably unset VAR.
  13818. as_fn_unset ()
  13819. {
  13820. { eval $1=; unset $1;}
  13821. }
  13822. as_unset=as_fn_unset
  13823. # as_fn_append VAR VALUE
  13824. # ----------------------
  13825. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13826. # advantage of any shell optimizations that allow amortized linear growth over
  13827. # repeated appends, instead of the typical quadratic growth present in naive
  13828. # implementations.
  13829. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  13830. then :
  13831. eval 'as_fn_append ()
  13832. {
  13833. eval $1+=\$2
  13834. }'
  13835. else $as_nop
  13836. as_fn_append ()
  13837. {
  13838. eval $1=\$$1\$2
  13839. }
  13840. fi # as_fn_append
  13841. # as_fn_arith ARG...
  13842. # ------------------
  13843. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13844. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13845. # must be portable across $(()) and expr.
  13846. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  13847. then :
  13848. eval 'as_fn_arith ()
  13849. {
  13850. as_val=$(( $* ))
  13851. }'
  13852. else $as_nop
  13853. as_fn_arith ()
  13854. {
  13855. as_val=`expr "$@" || test $? -eq 1`
  13856. }
  13857. fi # as_fn_arith
  13858. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13859. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13860. as_expr=expr
  13861. else
  13862. as_expr=false
  13863. fi
  13864. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13865. as_basename=basename
  13866. else
  13867. as_basename=false
  13868. fi
  13869. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13870. as_dirname=dirname
  13871. else
  13872. as_dirname=false
  13873. fi
  13874. as_me=`$as_basename -- "$0" ||
  13875. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13876. X"$0" : 'X\(//\)$' \| \
  13877. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13878. printf "%s\n" X/"$0" |
  13879. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13880. s//\1/
  13881. q
  13882. }
  13883. /^X\/\(\/\/\)$/{
  13884. s//\1/
  13885. q
  13886. }
  13887. /^X\/\(\/\).*/{
  13888. s//\1/
  13889. q
  13890. }
  13891. s/.*/./; q'`
  13892. # Avoid depending upon Character Ranges.
  13893. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13894. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13895. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13896. as_cr_digits='0123456789'
  13897. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13898. # Determine whether it's possible to make 'echo' print without a newline.
  13899. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  13900. # for compatibility with existing Makefiles.
  13901. ECHO_C= ECHO_N= ECHO_T=
  13902. case `echo -n x` in #(((((
  13903. -n*)
  13904. case `echo 'xy\c'` in
  13905. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13906. xy) ECHO_C='\c';;
  13907. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13908. ECHO_T=' ';;
  13909. esac;;
  13910. *)
  13911. ECHO_N='-n';;
  13912. esac
  13913. # For backward compatibility with old third-party macros, we provide
  13914. # the shell variables $as_echo and $as_echo_n. New code should use
  13915. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  13916. as_echo='printf %s\n'
  13917. as_echo_n='printf %s'
  13918. rm -f conf$$ conf$$.exe conf$$.file
  13919. if test -d conf$$.dir; then
  13920. rm -f conf$$.dir/conf$$.file
  13921. else
  13922. rm -f conf$$.dir
  13923. mkdir conf$$.dir 2>/dev/null
  13924. fi
  13925. if (echo >conf$$.file) 2>/dev/null; then
  13926. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13927. as_ln_s='ln -s'
  13928. # ... but there are two gotchas:
  13929. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13930. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13931. # In both cases, we have to default to `cp -pR'.
  13932. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13933. as_ln_s='cp -pR'
  13934. elif ln conf$$.file conf$$ 2>/dev/null; then
  13935. as_ln_s=ln
  13936. else
  13937. as_ln_s='cp -pR'
  13938. fi
  13939. else
  13940. as_ln_s='cp -pR'
  13941. fi
  13942. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13943. rmdir conf$$.dir 2>/dev/null
  13944. # as_fn_mkdir_p
  13945. # -------------
  13946. # Create "$as_dir" as a directory, including parents if necessary.
  13947. as_fn_mkdir_p ()
  13948. {
  13949. case $as_dir in #(
  13950. -*) as_dir=./$as_dir;;
  13951. esac
  13952. test -d "$as_dir" || eval $as_mkdir_p || {
  13953. as_dirs=
  13954. while :; do
  13955. case $as_dir in #(
  13956. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13957. *) as_qdir=$as_dir;;
  13958. esac
  13959. as_dirs="'$as_qdir' $as_dirs"
  13960. as_dir=`$as_dirname -- "$as_dir" ||
  13961. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13962. X"$as_dir" : 'X\(//\)[^/]' \| \
  13963. X"$as_dir" : 'X\(//\)$' \| \
  13964. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13965. printf "%s\n" X"$as_dir" |
  13966. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13967. s//\1/
  13968. q
  13969. }
  13970. /^X\(\/\/\)[^/].*/{
  13971. s//\1/
  13972. q
  13973. }
  13974. /^X\(\/\/\)$/{
  13975. s//\1/
  13976. q
  13977. }
  13978. /^X\(\/\).*/{
  13979. s//\1/
  13980. q
  13981. }
  13982. s/.*/./; q'`
  13983. test -d "$as_dir" && break
  13984. done
  13985. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13986. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13987. } # as_fn_mkdir_p
  13988. if mkdir -p . 2>/dev/null; then
  13989. as_mkdir_p='mkdir -p "$as_dir"'
  13990. else
  13991. test -d ./-p && rmdir ./-p
  13992. as_mkdir_p=false
  13993. fi
  13994. # as_fn_executable_p FILE
  13995. # -----------------------
  13996. # Test if FILE is an executable regular file.
  13997. as_fn_executable_p ()
  13998. {
  13999. test -f "$1" && test -x "$1"
  14000. } # as_fn_executable_p
  14001. as_test_x='test -x'
  14002. as_executable_p=as_fn_executable_p
  14003. # Sed expression to map a string onto a valid CPP name.
  14004. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14005. # Sed expression to map a string onto a valid variable name.
  14006. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14007. exec 6>&1
  14008. ## ----------------------------------- ##
  14009. ## Main body of $CONFIG_STATUS script. ##
  14010. ## ----------------------------------- ##
  14011. _ASEOF
  14012. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14013. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14014. # Save the log message, to keep $0 and so on meaningful, and to
  14015. # report actual input values of CONFIG_FILES etc. instead of their
  14016. # values after options handling.
  14017. ac_log="
  14018. This file was extended by file $as_me 5.45, which was
  14019. generated by GNU Autoconf 2.71. Invocation command line was
  14020. CONFIG_FILES = $CONFIG_FILES
  14021. CONFIG_HEADERS = $CONFIG_HEADERS
  14022. CONFIG_LINKS = $CONFIG_LINKS
  14023. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14024. $ $0 $@
  14025. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14026. "
  14027. _ACEOF
  14028. case $ac_config_files in *"
  14029. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14030. esac
  14031. case $ac_config_headers in *"
  14032. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14033. esac
  14034. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14035. # Files that config.status was made for.
  14036. config_files="$ac_config_files"
  14037. config_headers="$ac_config_headers"
  14038. config_commands="$ac_config_commands"
  14039. _ACEOF
  14040. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14041. ac_cs_usage="\
  14042. \`$as_me' instantiates files and other configuration actions
  14043. from templates according to the current configuration. Unless the files
  14044. and actions are specified as TAGs, all are instantiated by default.
  14045. Usage: $0 [OPTION]... [TAG]...
  14046. -h, --help print this help, then exit
  14047. -V, --version print version number and configuration settings, then exit
  14048. --config print configuration, then exit
  14049. -q, --quiet, --silent
  14050. do not print progress messages
  14051. -d, --debug don't remove temporary files
  14052. --recheck update $as_me by reconfiguring in the same conditions
  14053. --file=FILE[:TEMPLATE]
  14054. instantiate the configuration file FILE
  14055. --header=FILE[:TEMPLATE]
  14056. instantiate the configuration header FILE
  14057. Configuration files:
  14058. $config_files
  14059. Configuration headers:
  14060. $config_headers
  14061. Configuration commands:
  14062. $config_commands
  14063. Report bugs to <christos@astron.com>."
  14064. _ACEOF
  14065. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  14066. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  14067. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14068. ac_cs_config='$ac_cs_config_escaped'
  14069. ac_cs_version="\\
  14070. file config.status 5.45
  14071. configured by $0, generated by GNU Autoconf 2.71,
  14072. with options \\"\$ac_cs_config\\"
  14073. Copyright (C) 2021 Free Software Foundation, Inc.
  14074. This config.status script is free software; the Free Software Foundation
  14075. gives unlimited permission to copy, distribute and modify it."
  14076. ac_pwd='$ac_pwd'
  14077. srcdir='$srcdir'
  14078. INSTALL='$INSTALL'
  14079. MKDIR_P='$MKDIR_P'
  14080. AWK='$AWK'
  14081. test -n "\$AWK" || AWK=awk
  14082. _ACEOF
  14083. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14084. # The default lists apply if the user does not specify any file.
  14085. ac_need_defaults=:
  14086. while test $# != 0
  14087. do
  14088. case $1 in
  14089. --*=?*)
  14090. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14091. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14092. ac_shift=:
  14093. ;;
  14094. --*=)
  14095. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14096. ac_optarg=
  14097. ac_shift=:
  14098. ;;
  14099. *)
  14100. ac_option=$1
  14101. ac_optarg=$2
  14102. ac_shift=shift
  14103. ;;
  14104. esac
  14105. case $ac_option in
  14106. # Handling of the options.
  14107. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14108. ac_cs_recheck=: ;;
  14109. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14110. printf "%s\n" "$ac_cs_version"; exit ;;
  14111. --config | --confi | --conf | --con | --co | --c )
  14112. printf "%s\n" "$ac_cs_config"; exit ;;
  14113. --debug | --debu | --deb | --de | --d | -d )
  14114. debug=: ;;
  14115. --file | --fil | --fi | --f )
  14116. $ac_shift
  14117. case $ac_optarg in
  14118. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14119. '') as_fn_error $? "missing file argument" ;;
  14120. esac
  14121. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14122. ac_need_defaults=false;;
  14123. --header | --heade | --head | --hea )
  14124. $ac_shift
  14125. case $ac_optarg in
  14126. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14127. esac
  14128. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14129. ac_need_defaults=false;;
  14130. --he | --h)
  14131. # Conflict between --help and --header
  14132. as_fn_error $? "ambiguous option: \`$1'
  14133. Try \`$0 --help' for more information.";;
  14134. --help | --hel | -h )
  14135. printf "%s\n" "$ac_cs_usage"; exit ;;
  14136. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14137. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14138. ac_cs_silent=: ;;
  14139. # This is an error.
  14140. -*) as_fn_error $? "unrecognized option: \`$1'
  14141. Try \`$0 --help' for more information." ;;
  14142. *) as_fn_append ac_config_targets " $1"
  14143. ac_need_defaults=false ;;
  14144. esac
  14145. shift
  14146. done
  14147. ac_configure_extra_args=
  14148. if $ac_cs_silent; then
  14149. exec 6>/dev/null
  14150. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14151. fi
  14152. _ACEOF
  14153. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14154. if \$ac_cs_recheck; then
  14155. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14156. shift
  14157. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  14158. CONFIG_SHELL='$SHELL'
  14159. export CONFIG_SHELL
  14160. exec "\$@"
  14161. fi
  14162. _ACEOF
  14163. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14164. exec 5>>config.log
  14165. {
  14166. echo
  14167. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14168. ## Running $as_me. ##
  14169. _ASBOX
  14170. printf "%s\n" "$ac_log"
  14171. } >&5
  14172. _ACEOF
  14173. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14174. #
  14175. # INIT-COMMANDS
  14176. #
  14177. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  14178. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14179. # if CDPATH is set.
  14180. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14181. sed_quote_subst='$sed_quote_subst'
  14182. double_quote_subst='$double_quote_subst'
  14183. delay_variable_subst='$delay_variable_subst'
  14184. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14185. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14186. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14187. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14188. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14189. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14190. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  14191. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14192. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14193. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  14194. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14195. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14196. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14197. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14198. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14199. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14200. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14201. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14202. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14203. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14204. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14205. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14206. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14207. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14208. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14209. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14210. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14211. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14212. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14213. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14214. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  14215. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  14216. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14217. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14218. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14219. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14220. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14221. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  14222. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  14223. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  14224. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  14225. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14226. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14227. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  14228. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14229. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14230. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14231. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14232. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14233. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14234. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14235. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14236. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14237. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14238. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14239. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14240. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  14241. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14242. 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"`'
  14243. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  14244. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  14245. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  14246. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  14247. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14248. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14249. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14250. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14251. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14252. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14253. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14254. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14255. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  14256. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14257. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14258. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14259. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14260. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14261. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14262. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14263. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14264. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14265. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14266. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14267. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14268. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14269. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14270. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14271. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14272. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14273. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14274. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14275. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14276. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14277. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14278. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14279. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14280. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14281. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14282. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14283. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14284. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14285. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14286. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14287. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14288. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14289. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14290. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14291. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14292. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  14293. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14294. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14295. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14296. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14297. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14298. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14299. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14300. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14301. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14302. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14303. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14304. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14305. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14306. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14307. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14308. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14309. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14310. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14311. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  14312. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  14313. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14314. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14315. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14316. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14317. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14318. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14319. LTCC='$LTCC'
  14320. LTCFLAGS='$LTCFLAGS'
  14321. compiler='$compiler_DEFAULT'
  14322. # A function that is used when there is no print builtin or printf.
  14323. func_fallback_echo ()
  14324. {
  14325. eval 'cat <<_LTECHO_EOF
  14326. \$1
  14327. _LTECHO_EOF'
  14328. }
  14329. # Quote evaled strings.
  14330. for var in SHELL \
  14331. ECHO \
  14332. PATH_SEPARATOR \
  14333. SED \
  14334. GREP \
  14335. EGREP \
  14336. FGREP \
  14337. LD \
  14338. NM \
  14339. LN_S \
  14340. lt_SP2NL \
  14341. lt_NL2SP \
  14342. reload_flag \
  14343. OBJDUMP \
  14344. deplibs_check_method \
  14345. file_magic_cmd \
  14346. file_magic_glob \
  14347. want_nocaseglob \
  14348. DLLTOOL \
  14349. sharedlib_from_linklib_cmd \
  14350. AR \
  14351. AR_FLAGS \
  14352. archiver_list_spec \
  14353. STRIP \
  14354. RANLIB \
  14355. CC \
  14356. CFLAGS \
  14357. compiler \
  14358. lt_cv_sys_global_symbol_pipe \
  14359. lt_cv_sys_global_symbol_to_cdecl \
  14360. lt_cv_sys_global_symbol_to_import \
  14361. lt_cv_sys_global_symbol_to_c_name_address \
  14362. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14363. lt_cv_nm_interface \
  14364. nm_file_list_spec \
  14365. lt_cv_truncate_bin \
  14366. lt_prog_compiler_no_builtin_flag \
  14367. lt_prog_compiler_pic \
  14368. lt_prog_compiler_wl \
  14369. lt_prog_compiler_static \
  14370. lt_cv_prog_compiler_c_o \
  14371. need_locks \
  14372. MANIFEST_TOOL \
  14373. DSYMUTIL \
  14374. NMEDIT \
  14375. LIPO \
  14376. OTOOL \
  14377. OTOOL64 \
  14378. shrext_cmds \
  14379. export_dynamic_flag_spec \
  14380. whole_archive_flag_spec \
  14381. compiler_needs_object \
  14382. with_gnu_ld \
  14383. allow_undefined_flag \
  14384. no_undefined_flag \
  14385. hardcode_libdir_flag_spec \
  14386. hardcode_libdir_separator \
  14387. exclude_expsyms \
  14388. include_expsyms \
  14389. file_list_spec \
  14390. variables_saved_for_relink \
  14391. libname_spec \
  14392. library_names_spec \
  14393. soname_spec \
  14394. install_override_mode \
  14395. finish_eval \
  14396. old_striplib \
  14397. striplib; do
  14398. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14399. *[\\\\\\\`\\"\\\$]*)
  14400. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  14401. ;;
  14402. *)
  14403. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14404. ;;
  14405. esac
  14406. done
  14407. # Double-quote double-evaled strings.
  14408. for var in reload_cmds \
  14409. old_postinstall_cmds \
  14410. old_postuninstall_cmds \
  14411. old_archive_cmds \
  14412. extract_expsyms_cmds \
  14413. old_archive_from_new_cmds \
  14414. old_archive_from_expsyms_cmds \
  14415. archive_cmds \
  14416. archive_expsym_cmds \
  14417. module_cmds \
  14418. module_expsym_cmds \
  14419. export_symbols_cmds \
  14420. prelink_cmds \
  14421. postlink_cmds \
  14422. postinstall_cmds \
  14423. postuninstall_cmds \
  14424. finish_cmds \
  14425. sys_lib_search_path_spec \
  14426. configure_time_dlsearch_path \
  14427. configure_time_lt_sys_library_path; do
  14428. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14429. *[\\\\\\\`\\"\\\$]*)
  14430. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  14431. ;;
  14432. *)
  14433. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14434. ;;
  14435. esac
  14436. done
  14437. ac_aux_dir='$ac_aux_dir'
  14438. # See if we are running on zsh, and set the options that allow our
  14439. # commands through without removal of \ escapes INIT.
  14440. if test -n "\${ZSH_VERSION+set}"; then
  14441. setopt NO_GLOB_SUBST
  14442. fi
  14443. PACKAGE='$PACKAGE'
  14444. VERSION='$VERSION'
  14445. RM='$RM'
  14446. ofile='$ofile'
  14447. _ACEOF
  14448. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14449. # Handling of arguments.
  14450. for ac_config_target in $ac_config_targets
  14451. do
  14452. case $ac_config_target in
  14453. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14454. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14455. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14456. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14457. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  14458. "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
  14459. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  14460. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  14461. "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  14462. "libmagic.pc") CONFIG_FILES="$CONFIG_FILES libmagic.pc" ;;
  14463. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14464. esac
  14465. done
  14466. # If the user did not use the arguments to specify the items to instantiate,
  14467. # then the envvar interface is used. Set only those that are not.
  14468. # We use the long form for the default assignment because of an extremely
  14469. # bizarre bug on SunOS 4.1.3.
  14470. if $ac_need_defaults; then
  14471. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  14472. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  14473. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  14474. fi
  14475. # Have a temporary directory for convenience. Make it in the build tree
  14476. # simply because there is no reason against having it here, and in addition,
  14477. # creating and moving files from /tmp can sometimes cause problems.
  14478. # Hook for its removal unless debugging.
  14479. # Note that there is a small window in which the directory will not be cleaned:
  14480. # after its creation but before its name has been assigned to `$tmp'.
  14481. $debug ||
  14482. {
  14483. tmp= ac_tmp=
  14484. trap 'exit_status=$?
  14485. : "${ac_tmp:=$tmp}"
  14486. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  14487. ' 0
  14488. trap 'as_fn_exit 1' 1 2 13 15
  14489. }
  14490. # Create a (secure) tmp directory for tmp files.
  14491. {
  14492. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14493. test -d "$tmp"
  14494. } ||
  14495. {
  14496. tmp=./conf$$-$RANDOM
  14497. (umask 077 && mkdir "$tmp")
  14498. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14499. ac_tmp=$tmp
  14500. # Set up the scripts for CONFIG_FILES section.
  14501. # No need to generate them if there are no CONFIG_FILES.
  14502. # This happens for instance with `./config.status config.h'.
  14503. if test -n "$CONFIG_FILES"; then
  14504. ac_cr=`echo X | tr X '\015'`
  14505. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14506. # But we know of no other shell where ac_cr would be empty at this
  14507. # point, so we can use a bashism as a fallback.
  14508. if test "x$ac_cr" = x; then
  14509. eval ac_cr=\$\'\\r\'
  14510. fi
  14511. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14512. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14513. ac_cs_awk_cr='\\r'
  14514. else
  14515. ac_cs_awk_cr=$ac_cr
  14516. fi
  14517. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  14518. _ACEOF
  14519. {
  14520. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14521. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14522. echo "_ACEOF"
  14523. } >conf$$subs.sh ||
  14524. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14525. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14526. ac_delim='%!_!# '
  14527. for ac_last_try in false false false false false :; do
  14528. . ./conf$$subs.sh ||
  14529. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14530. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14531. if test $ac_delim_n = $ac_delim_num; then
  14532. break
  14533. elif $ac_last_try; then
  14534. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14535. else
  14536. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14537. fi
  14538. done
  14539. rm -f conf$$subs.sh
  14540. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14541. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  14542. _ACEOF
  14543. sed -n '
  14544. h
  14545. s/^/S["/; s/!.*/"]=/
  14546. p
  14547. g
  14548. s/^[^!]*!//
  14549. :repl
  14550. t repl
  14551. s/'"$ac_delim"'$//
  14552. t delim
  14553. :nl
  14554. h
  14555. s/\(.\{148\}\)..*/\1/
  14556. t more1
  14557. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14558. p
  14559. n
  14560. b repl
  14561. :more1
  14562. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14563. p
  14564. g
  14565. s/.\{148\}//
  14566. t nl
  14567. :delim
  14568. h
  14569. s/\(.\{148\}\)..*/\1/
  14570. t more2
  14571. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14572. p
  14573. b
  14574. :more2
  14575. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14576. p
  14577. g
  14578. s/.\{148\}//
  14579. t delim
  14580. ' <conf$$subs.awk | sed '
  14581. /^[^""]/{
  14582. N
  14583. s/\n//
  14584. }
  14585. ' >>$CONFIG_STATUS || ac_write_fail=1
  14586. rm -f conf$$subs.awk
  14587. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14588. _ACAWK
  14589. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  14590. for (key in S) S_is_set[key] = 1
  14591. FS = ""
  14592. }
  14593. {
  14594. line = $ 0
  14595. nfields = split(line, field, "@")
  14596. substed = 0
  14597. len = length(field[1])
  14598. for (i = 2; i < nfields; i++) {
  14599. key = field[i]
  14600. keylen = length(key)
  14601. if (S_is_set[key]) {
  14602. value = S[key]
  14603. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14604. len += length(value) + length(field[++i])
  14605. substed = 1
  14606. } else
  14607. len += 1 + keylen
  14608. }
  14609. print line
  14610. }
  14611. _ACAWK
  14612. _ACEOF
  14613. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14614. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14615. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14616. else
  14617. cat
  14618. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  14619. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14620. _ACEOF
  14621. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14622. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14623. # trailing colons and then remove the whole line if VPATH becomes empty
  14624. # (actually we leave an empty line to preserve line numbers).
  14625. if test "x$srcdir" = x.; then
  14626. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14627. h
  14628. s///
  14629. s/^/:/
  14630. s/[ ]*$/:/
  14631. s/:\$(srcdir):/:/g
  14632. s/:\${srcdir}:/:/g
  14633. s/:@srcdir@:/:/g
  14634. s/^:*//
  14635. s/:*$//
  14636. x
  14637. s/\(=[ ]*\).*/\1/
  14638. G
  14639. s/\n//
  14640. s/^[^=]*=[ ]*$//
  14641. }'
  14642. fi
  14643. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14644. fi # test -n "$CONFIG_FILES"
  14645. # Set up the scripts for CONFIG_HEADERS section.
  14646. # No need to generate them if there are no CONFIG_HEADERS.
  14647. # This happens for instance with `./config.status Makefile'.
  14648. if test -n "$CONFIG_HEADERS"; then
  14649. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  14650. BEGIN {
  14651. _ACEOF
  14652. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14653. # here-document in config.status, that substitutes the proper values into
  14654. # config.h.in to produce config.h.
  14655. # Create a delimiter string that does not exist in confdefs.h, to ease
  14656. # handling of long lines.
  14657. ac_delim='%!_!# '
  14658. for ac_last_try in false false :; do
  14659. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  14660. if test -z "$ac_tt"; then
  14661. break
  14662. elif $ac_last_try; then
  14663. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  14664. else
  14665. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14666. fi
  14667. done
  14668. # For the awk script, D is an array of macro values keyed by name,
  14669. # likewise P contains macro parameters if any. Preserve backslash
  14670. # newline sequences.
  14671. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14672. sed -n '
  14673. s/.\{148\}/&'"$ac_delim"'/g
  14674. t rset
  14675. :rset
  14676. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14677. t def
  14678. d
  14679. :def
  14680. s/\\$//
  14681. t bsnl
  14682. s/["\\]/\\&/g
  14683. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14684. D["\1"]=" \3"/p
  14685. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14686. d
  14687. :bsnl
  14688. s/["\\]/\\&/g
  14689. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14690. D["\1"]=" \3\\\\\\n"\\/p
  14691. t cont
  14692. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14693. t cont
  14694. d
  14695. :cont
  14696. n
  14697. s/.\{148\}/&'"$ac_delim"'/g
  14698. t clear
  14699. :clear
  14700. s/\\$//
  14701. t bsnlc
  14702. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14703. d
  14704. :bsnlc
  14705. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14706. b cont
  14707. ' <confdefs.h | sed '
  14708. s/'"$ac_delim"'/"\\\
  14709. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14710. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14711. for (key in D) D_is_set[key] = 1
  14712. FS = ""
  14713. }
  14714. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14715. line = \$ 0
  14716. split(line, arg, " ")
  14717. if (arg[1] == "#") {
  14718. defundef = arg[2]
  14719. mac1 = arg[3]
  14720. } else {
  14721. defundef = substr(arg[1], 2)
  14722. mac1 = arg[2]
  14723. }
  14724. split(mac1, mac2, "(") #)
  14725. macro = mac2[1]
  14726. prefix = substr(line, 1, index(line, defundef) - 1)
  14727. if (D_is_set[macro]) {
  14728. # Preserve the white space surrounding the "#".
  14729. print prefix "define", macro P[macro] D[macro]
  14730. next
  14731. } else {
  14732. # Replace #undef with comments. This is necessary, for example,
  14733. # in the case of _POSIX_SOURCE, which is predefined and required
  14734. # on some systems where configure will not decide to define it.
  14735. if (defundef == "undef") {
  14736. print "/*", prefix defundef, macro, "*/"
  14737. next
  14738. }
  14739. }
  14740. }
  14741. { print }
  14742. _ACAWK
  14743. _ACEOF
  14744. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14745. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  14746. fi # test -n "$CONFIG_HEADERS"
  14747. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14748. shift
  14749. for ac_tag
  14750. do
  14751. case $ac_tag in
  14752. :[FHLC]) ac_mode=$ac_tag; continue;;
  14753. esac
  14754. case $ac_mode$ac_tag in
  14755. :[FHL]*:*);;
  14756. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14757. :[FH]-) ac_tag=-:-;;
  14758. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14759. esac
  14760. ac_save_IFS=$IFS
  14761. IFS=:
  14762. set x $ac_tag
  14763. IFS=$ac_save_IFS
  14764. shift
  14765. ac_file=$1
  14766. shift
  14767. case $ac_mode in
  14768. :L) ac_source=$1;;
  14769. :[FH])
  14770. ac_file_inputs=
  14771. for ac_f
  14772. do
  14773. case $ac_f in
  14774. -) ac_f="$ac_tmp/stdin";;
  14775. *) # Look for the file first in the build tree, then in the source tree
  14776. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14777. # because $ac_f cannot contain `:'.
  14778. test -f "$ac_f" ||
  14779. case $ac_f in
  14780. [\\/$]*) false;;
  14781. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14782. esac ||
  14783. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14784. esac
  14785. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14786. as_fn_append ac_file_inputs " '$ac_f'"
  14787. done
  14788. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14789. # use $as_me), people would be surprised to read:
  14790. # /* config.h. Generated by config.status. */
  14791. configure_input='Generated from '`
  14792. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14793. `' by configure.'
  14794. if test x"$ac_file" != x-; then
  14795. configure_input="$ac_file. $configure_input"
  14796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14797. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  14798. fi
  14799. # Neutralize special characters interpreted by sed in replacement strings.
  14800. case $configure_input in #(
  14801. *\&* | *\|* | *\\* )
  14802. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  14803. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14804. *) ac_sed_conf_input=$configure_input;;
  14805. esac
  14806. case $ac_tag in
  14807. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  14808. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14809. esac
  14810. ;;
  14811. esac
  14812. ac_dir=`$as_dirname -- "$ac_file" ||
  14813. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14814. X"$ac_file" : 'X\(//\)[^/]' \| \
  14815. X"$ac_file" : 'X\(//\)$' \| \
  14816. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14817. printf "%s\n" X"$ac_file" |
  14818. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14819. s//\1/
  14820. q
  14821. }
  14822. /^X\(\/\/\)[^/].*/{
  14823. s//\1/
  14824. q
  14825. }
  14826. /^X\(\/\/\)$/{
  14827. s//\1/
  14828. q
  14829. }
  14830. /^X\(\/\).*/{
  14831. s//\1/
  14832. q
  14833. }
  14834. s/.*/./; q'`
  14835. as_dir="$ac_dir"; as_fn_mkdir_p
  14836. ac_builddir=.
  14837. case "$ac_dir" in
  14838. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14839. *)
  14840. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  14841. # A ".." for each directory in $ac_dir_suffix.
  14842. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14843. case $ac_top_builddir_sub in
  14844. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14845. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14846. esac ;;
  14847. esac
  14848. ac_abs_top_builddir=$ac_pwd
  14849. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14850. # for backward compatibility:
  14851. ac_top_builddir=$ac_top_build_prefix
  14852. case $srcdir in
  14853. .) # We are building in place.
  14854. ac_srcdir=.
  14855. ac_top_srcdir=$ac_top_builddir_sub
  14856. ac_abs_top_srcdir=$ac_pwd ;;
  14857. [\\/]* | ?:[\\/]* ) # Absolute name.
  14858. ac_srcdir=$srcdir$ac_dir_suffix;
  14859. ac_top_srcdir=$srcdir
  14860. ac_abs_top_srcdir=$srcdir ;;
  14861. *) # Relative name.
  14862. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14863. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14864. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14865. esac
  14866. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14867. case $ac_mode in
  14868. :F)
  14869. #
  14870. # CONFIG_FILE
  14871. #
  14872. case $INSTALL in
  14873. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14874. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14875. esac
  14876. ac_MKDIR_P=$MKDIR_P
  14877. case $MKDIR_P in
  14878. [\\/$]* | ?:[\\/]* ) ;;
  14879. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14880. esac
  14881. _ACEOF
  14882. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14883. # If the template does not know about datarootdir, expand it.
  14884. # FIXME: This hack should be removed a few years after 2.60.
  14885. ac_datarootdir_hack=; ac_datarootdir_seen=
  14886. ac_sed_dataroot='
  14887. /datarootdir/ {
  14888. p
  14889. q
  14890. }
  14891. /@datadir@/p
  14892. /@docdir@/p
  14893. /@infodir@/p
  14894. /@localedir@/p
  14895. /@mandir@/p'
  14896. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14897. *datarootdir*) ac_datarootdir_seen=yes;;
  14898. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14900. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14901. _ACEOF
  14902. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14903. ac_datarootdir_hack='
  14904. s&@datadir@&$datadir&g
  14905. s&@docdir@&$docdir&g
  14906. s&@infodir@&$infodir&g
  14907. s&@localedir@&$localedir&g
  14908. s&@mandir@&$mandir&g
  14909. s&\\\${datarootdir}&$datarootdir&g' ;;
  14910. esac
  14911. _ACEOF
  14912. # Neutralize VPATH when `$srcdir' = `.'.
  14913. # Shell code in configure.ac might set extrasub.
  14914. # FIXME: do we really want to maintain this feature?
  14915. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14916. ac_sed_extra="$ac_vpsub
  14917. $extrasub
  14918. _ACEOF
  14919. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14920. :t
  14921. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14922. s|@configure_input@|$ac_sed_conf_input|;t t
  14923. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14924. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14925. s&@srcdir@&$ac_srcdir&;t t
  14926. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14927. s&@top_srcdir@&$ac_top_srcdir&;t t
  14928. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14929. s&@builddir@&$ac_builddir&;t t
  14930. s&@abs_builddir@&$ac_abs_builddir&;t t
  14931. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14932. s&@INSTALL@&$ac_INSTALL&;t t
  14933. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14934. $ac_datarootdir_hack
  14935. "
  14936. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  14937. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14938. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14939. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  14940. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  14941. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  14942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14943. which seems to be undefined. Please make sure it is defined" >&5
  14944. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14945. which seems to be undefined. Please make sure it is defined" >&2;}
  14946. rm -f "$ac_tmp/stdin"
  14947. case $ac_file in
  14948. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  14949. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  14950. esac \
  14951. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14952. ;;
  14953. :H)
  14954. #
  14955. # CONFIG_HEADER
  14956. #
  14957. if test x"$ac_file" != x-; then
  14958. {
  14959. printf "%s\n" "/* $configure_input */" >&1 \
  14960. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  14961. } >"$ac_tmp/config.h" \
  14962. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14963. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  14964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14965. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  14966. else
  14967. rm -f "$ac_file"
  14968. mv "$ac_tmp/config.h" "$ac_file" \
  14969. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14970. fi
  14971. else
  14972. printf "%s\n" "/* $configure_input */" >&1 \
  14973. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  14974. || as_fn_error $? "could not create -" "$LINENO" 5
  14975. fi
  14976. # Compute "$ac_file"'s index in $config_headers.
  14977. _am_arg="$ac_file"
  14978. _am_stamp_count=1
  14979. for _am_header in $config_headers :; do
  14980. case $_am_header in
  14981. $_am_arg | $_am_arg:* )
  14982. break ;;
  14983. * )
  14984. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14985. esac
  14986. done
  14987. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14988. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14989. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14990. X"$_am_arg" : 'X\(//\)$' \| \
  14991. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14992. printf "%s\n" X"$_am_arg" |
  14993. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14994. s//\1/
  14995. q
  14996. }
  14997. /^X\(\/\/\)[^/].*/{
  14998. s//\1/
  14999. q
  15000. }
  15001. /^X\(\/\/\)$/{
  15002. s//\1/
  15003. q
  15004. }
  15005. /^X\(\/\).*/{
  15006. s//\1/
  15007. q
  15008. }
  15009. s/.*/./; q'`/stamp-h$_am_stamp_count
  15010. ;;
  15011. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15012. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  15013. ;;
  15014. esac
  15015. case $ac_file$ac_mode in
  15016. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15017. # Older Autoconf quotes --file arguments for eval, but not when files
  15018. # are listed without --file. Let's play safe and only enable the eval
  15019. # if we detect the quoting.
  15020. # TODO: see whether this extra hack can be removed once we start
  15021. # requiring Autoconf 2.70 or later.
  15022. case $CONFIG_FILES in #(
  15023. *\'*) :
  15024. eval set x "$CONFIG_FILES" ;; #(
  15025. *) :
  15026. set x $CONFIG_FILES ;; #(
  15027. *) :
  15028. ;;
  15029. esac
  15030. shift
  15031. # Used to flag and report bootstrapping failures.
  15032. am_rc=0
  15033. for am_mf
  15034. do
  15035. # Strip MF so we end up with the name of the file.
  15036. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
  15037. # Check whether this is an Automake generated Makefile which includes
  15038. # dependency-tracking related rules and includes.
  15039. # Grep'ing the whole file directly is not great: AIX grep has a line
  15040. # limit of 2048, but all sed's we know have understand at least 4000.
  15041. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  15042. || continue
  15043. am_dirpart=`$as_dirname -- "$am_mf" ||
  15044. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15045. X"$am_mf" : 'X\(//\)[^/]' \| \
  15046. X"$am_mf" : 'X\(//\)$' \| \
  15047. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  15048. printf "%s\n" X"$am_mf" |
  15049. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15050. s//\1/
  15051. q
  15052. }
  15053. /^X\(\/\/\)[^/].*/{
  15054. s//\1/
  15055. q
  15056. }
  15057. /^X\(\/\/\)$/{
  15058. s//\1/
  15059. q
  15060. }
  15061. /^X\(\/\).*/{
  15062. s//\1/
  15063. q
  15064. }
  15065. s/.*/./; q'`
  15066. am_filepart=`$as_basename -- "$am_mf" ||
  15067. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  15068. X"$am_mf" : 'X\(//\)$' \| \
  15069. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  15070. printf "%s\n" X/"$am_mf" |
  15071. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15072. s//\1/
  15073. q
  15074. }
  15075. /^X\/\(\/\/\)$/{
  15076. s//\1/
  15077. q
  15078. }
  15079. /^X\/\(\/\).*/{
  15080. s//\1/
  15081. q
  15082. }
  15083. s/.*/./; q'`
  15084. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  15085. && sed -e '/# am--include-marker/d' "$am_filepart" \
  15086. | $MAKE -f - am--depfiles" >&5
  15087. (cd "$am_dirpart" \
  15088. && sed -e '/# am--include-marker/d' "$am_filepart" \
  15089. | $MAKE -f - am--depfiles) >&5 2>&5
  15090. ac_status=$?
  15091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15092. (exit $ac_status); } || am_rc=$?
  15093. done
  15094. if test $am_rc -ne 0; then
  15095. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15096. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  15097. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  15098. for automatic dependency tracking. If GNU make was not used, consider
  15099. re-running the configure script with MAKE=\"gmake\" (or whatever is
  15100. necessary). You can also try re-running configure with the
  15101. '--disable-dependency-tracking' option to at least be able to build
  15102. the package (albeit without support for automatic dependency tracking).
  15103. See \`config.log' for more details" "$LINENO" 5; }
  15104. fi
  15105. { am_dirpart=; unset am_dirpart;}
  15106. { am_filepart=; unset am_filepart;}
  15107. { am_mf=; unset am_mf;}
  15108. { am_rc=; unset am_rc;}
  15109. rm -f conftest-deps.mk
  15110. }
  15111. ;;
  15112. "libtool":C)
  15113. # See if we are running on zsh, and set the options that allow our
  15114. # commands through without removal of \ escapes.
  15115. if test -n "${ZSH_VERSION+set}"; then
  15116. setopt NO_GLOB_SUBST
  15117. fi
  15118. cfgfile=${ofile}T
  15119. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15120. $RM "$cfgfile"
  15121. cat <<_LT_EOF >> "$cfgfile"
  15122. #! $SHELL
  15123. # Generated automatically by $as_me ($PACKAGE) $VERSION
  15124. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15125. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15126. # Provide generalized library-building support services.
  15127. # Written by Gordon Matzigkeit, 1996
  15128. # Copyright (C) 2014 Free Software Foundation, Inc.
  15129. # This is free software; see the source for copying conditions. There is NO
  15130. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15131. # GNU Libtool is free software; you can redistribute it and/or modify
  15132. # it under the terms of the GNU General Public License as published by
  15133. # the Free Software Foundation; either version 2 of of the License, or
  15134. # (at your option) any later version.
  15135. #
  15136. # As a special exception to the GNU General Public License, if you
  15137. # distribute this file as part of a program or library that is built
  15138. # using GNU Libtool, you may include this file under the same
  15139. # distribution terms that you use for the rest of that program.
  15140. #
  15141. # GNU Libtool is distributed in the hope that it will be useful, but
  15142. # WITHOUT ANY WARRANTY; without even the implied warranty of
  15143. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15144. # GNU General Public License for more details.
  15145. #
  15146. # You should have received a copy of the GNU General Public License
  15147. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  15148. # The names of the tagged configurations supported by this script.
  15149. available_tags=''
  15150. # Configured defaults for sys_lib_dlsearch_path munging.
  15151. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  15152. # ### BEGIN LIBTOOL CONFIG
  15153. # Which release of libtool.m4 was used?
  15154. macro_version=$macro_version
  15155. macro_revision=$macro_revision
  15156. # Whether or not to build static libraries.
  15157. build_old_libs=$enable_static
  15158. # What type of objects to build.
  15159. pic_mode=$pic_mode
  15160. # Whether or not to build shared libraries.
  15161. build_libtool_libs=$enable_shared
  15162. # Whether or not to optimize for fast installation.
  15163. fast_install=$enable_fast_install
  15164. # Shared archive member basename,for filename based shared library versioning on AIX.
  15165. shared_archive_member_spec=$shared_archive_member_spec
  15166. # Shell to use when invoking shell scripts.
  15167. SHELL=$lt_SHELL
  15168. # An echo program that protects backslashes.
  15169. ECHO=$lt_ECHO
  15170. # The PATH separator for the build system.
  15171. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  15172. # The host system.
  15173. host_alias=$host_alias
  15174. host=$host
  15175. host_os=$host_os
  15176. # The build system.
  15177. build_alias=$build_alias
  15178. build=$build
  15179. build_os=$build_os
  15180. # A sed program that does not truncate output.
  15181. SED=$lt_SED
  15182. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15183. Xsed="\$SED -e 1s/^X//"
  15184. # A grep program that handles long lines.
  15185. GREP=$lt_GREP
  15186. # An ERE matcher.
  15187. EGREP=$lt_EGREP
  15188. # A literal string matcher.
  15189. FGREP=$lt_FGREP
  15190. # A BSD- or MS-compatible name lister.
  15191. NM=$lt_NM
  15192. # Whether we need soft or hard links.
  15193. LN_S=$lt_LN_S
  15194. # What is the maximum length of a command?
  15195. max_cmd_len=$max_cmd_len
  15196. # Object file suffix (normally "o").
  15197. objext=$ac_objext
  15198. # Executable file suffix (normally "").
  15199. exeext=$exeext
  15200. # whether the shell understands "unset".
  15201. lt_unset=$lt_unset
  15202. # turn spaces into newlines.
  15203. SP2NL=$lt_lt_SP2NL
  15204. # turn newlines into spaces.
  15205. NL2SP=$lt_lt_NL2SP
  15206. # convert \$build file names to \$host format.
  15207. to_host_file_cmd=$lt_cv_to_host_file_cmd
  15208. # convert \$build files to toolchain format.
  15209. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  15210. # An object symbol dumper.
  15211. OBJDUMP=$lt_OBJDUMP
  15212. # Method to check whether dependent libraries are shared objects.
  15213. deplibs_check_method=$lt_deplibs_check_method
  15214. # Command to use when deplibs_check_method = "file_magic".
  15215. file_magic_cmd=$lt_file_magic_cmd
  15216. # How to find potential files when deplibs_check_method = "file_magic".
  15217. file_magic_glob=$lt_file_magic_glob
  15218. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  15219. want_nocaseglob=$lt_want_nocaseglob
  15220. # DLL creation program.
  15221. DLLTOOL=$lt_DLLTOOL
  15222. # Command to associate shared and link libraries.
  15223. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  15224. # The archiver.
  15225. AR=$lt_AR
  15226. # Flags to create an archive.
  15227. AR_FLAGS=$lt_AR_FLAGS
  15228. # How to feed a file listing to the archiver.
  15229. archiver_list_spec=$lt_archiver_list_spec
  15230. # A symbol stripping program.
  15231. STRIP=$lt_STRIP
  15232. # Commands used to install an old-style archive.
  15233. RANLIB=$lt_RANLIB
  15234. old_postinstall_cmds=$lt_old_postinstall_cmds
  15235. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15236. # Whether to use a lock for old archive extraction.
  15237. lock_old_archive_extraction=$lock_old_archive_extraction
  15238. # A C compiler.
  15239. LTCC=$lt_CC
  15240. # LTCC compiler flags.
  15241. LTCFLAGS=$lt_CFLAGS
  15242. # Take the output of nm and produce a listing of raw symbols and C names.
  15243. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15244. # Transform the output of nm in a proper C declaration.
  15245. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15246. # Transform the output of nm into a list of symbols to manually relocate.
  15247. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  15248. # Transform the output of nm in a C name address pair.
  15249. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15250. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15251. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15252. # The name lister interface.
  15253. nm_interface=$lt_lt_cv_nm_interface
  15254. # Specify filename containing input files for \$NM.
  15255. nm_file_list_spec=$lt_nm_file_list_spec
  15256. # The root where to search for dependent libraries,and where our libraries should be installed.
  15257. lt_sysroot=$lt_sysroot
  15258. # Command to truncate a binary pipe.
  15259. lt_truncate_bin=$lt_lt_cv_truncate_bin
  15260. # The name of the directory that contains temporary libtool files.
  15261. objdir=$objdir
  15262. # Used to examine libraries when file_magic_cmd begins with "file".
  15263. MAGIC_CMD=$MAGIC_CMD
  15264. # Must we lock files when doing compilation?
  15265. need_locks=$lt_need_locks
  15266. # Manifest tool.
  15267. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  15268. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15269. DSYMUTIL=$lt_DSYMUTIL
  15270. # Tool to change global to local symbols on Mac OS X.
  15271. NMEDIT=$lt_NMEDIT
  15272. # Tool to manipulate fat objects and archives on Mac OS X.
  15273. LIPO=$lt_LIPO
  15274. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15275. OTOOL=$lt_OTOOL
  15276. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15277. OTOOL64=$lt_OTOOL64
  15278. # Old archive suffix (normally "a").
  15279. libext=$libext
  15280. # Shared library suffix (normally ".so").
  15281. shrext_cmds=$lt_shrext_cmds
  15282. # The commands to extract the exported symbol list from a shared archive.
  15283. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15284. # Variables whose values should be saved in libtool wrapper scripts and
  15285. # restored at link time.
  15286. variables_saved_for_relink=$lt_variables_saved_for_relink
  15287. # Do we need the "lib" prefix for modules?
  15288. need_lib_prefix=$need_lib_prefix
  15289. # Do we need a version for libraries?
  15290. need_version=$need_version
  15291. # Library versioning type.
  15292. version_type=$version_type
  15293. # Shared library runtime path variable.
  15294. runpath_var=$runpath_var
  15295. # Shared library path variable.
  15296. shlibpath_var=$shlibpath_var
  15297. # Is shlibpath searched before the hard-coded library search path?
  15298. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15299. # Format of library name prefix.
  15300. libname_spec=$lt_libname_spec
  15301. # List of archive names. First name is the real one, the rest are links.
  15302. # The last name is the one that the linker finds with -lNAME
  15303. library_names_spec=$lt_library_names_spec
  15304. # The coded name of the library, if different from the real name.
  15305. soname_spec=$lt_soname_spec
  15306. # Permission mode override for installation of shared libraries.
  15307. install_override_mode=$lt_install_override_mode
  15308. # Command to use after installation of a shared archive.
  15309. postinstall_cmds=$lt_postinstall_cmds
  15310. # Command to use after uninstallation of a shared archive.
  15311. postuninstall_cmds=$lt_postuninstall_cmds
  15312. # Commands used to finish a libtool library installation in a directory.
  15313. finish_cmds=$lt_finish_cmds
  15314. # As "finish_cmds", except a single script fragment to be evaled but
  15315. # not shown.
  15316. finish_eval=$lt_finish_eval
  15317. # Whether we should hardcode library paths into libraries.
  15318. hardcode_into_libs=$hardcode_into_libs
  15319. # Compile-time system search path for libraries.
  15320. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15321. # Detected run-time system search path for libraries.
  15322. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  15323. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  15324. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  15325. # Whether dlopen is supported.
  15326. dlopen_support=$enable_dlopen
  15327. # Whether dlopen of programs is supported.
  15328. dlopen_self=$enable_dlopen_self
  15329. # Whether dlopen of statically linked programs is supported.
  15330. dlopen_self_static=$enable_dlopen_self_static
  15331. # Commands to strip libraries.
  15332. old_striplib=$lt_old_striplib
  15333. striplib=$lt_striplib
  15334. # The linker used to build libraries.
  15335. LD=$lt_LD
  15336. # How to create reloadable object files.
  15337. reload_flag=$lt_reload_flag
  15338. reload_cmds=$lt_reload_cmds
  15339. # Commands used to build an old-style archive.
  15340. old_archive_cmds=$lt_old_archive_cmds
  15341. # A language specific compiler.
  15342. CC=$lt_compiler
  15343. # Is the compiler the GNU compiler?
  15344. with_gcc=$GCC
  15345. # Compiler flag to turn off builtin functions.
  15346. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15347. # Additional compiler flags for building library objects.
  15348. pic_flag=$lt_lt_prog_compiler_pic
  15349. # How to pass a linker flag through the compiler.
  15350. wl=$lt_lt_prog_compiler_wl
  15351. # Compiler flag to prevent dynamic linking.
  15352. link_static_flag=$lt_lt_prog_compiler_static
  15353. # Does compiler simultaneously support -c and -o options?
  15354. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15355. # Whether or not to add -lc for building shared libraries.
  15356. build_libtool_need_lc=$archive_cmds_need_lc
  15357. # Whether or not to disallow shared libs when runtime libs are static.
  15358. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15359. # Compiler flag to allow reflexive dlopens.
  15360. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15361. # Compiler flag to generate shared objects directly from archives.
  15362. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15363. # Whether the compiler copes with passing no objects directly.
  15364. compiler_needs_object=$lt_compiler_needs_object
  15365. # Create an old-style archive from a shared archive.
  15366. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15367. # Create a temporary old-style archive to link instead of a shared archive.
  15368. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15369. # Commands used to build a shared archive.
  15370. archive_cmds=$lt_archive_cmds
  15371. archive_expsym_cmds=$lt_archive_expsym_cmds
  15372. # Commands used to build a loadable module if different from building
  15373. # a shared archive.
  15374. module_cmds=$lt_module_cmds
  15375. module_expsym_cmds=$lt_module_expsym_cmds
  15376. # Whether we are building with GNU ld or not.
  15377. with_gnu_ld=$lt_with_gnu_ld
  15378. # Flag that allows shared libraries with undefined symbols to be built.
  15379. allow_undefined_flag=$lt_allow_undefined_flag
  15380. # Flag that enforces no undefined symbols.
  15381. no_undefined_flag=$lt_no_undefined_flag
  15382. # Flag to hardcode \$libdir into a binary during linking.
  15383. # This must work even if \$libdir does not exist
  15384. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15385. # Whether we need a single "-rpath" flag with a separated argument.
  15386. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15387. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  15388. # DIR into the resulting binary.
  15389. hardcode_direct=$hardcode_direct
  15390. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  15391. # DIR into the resulting binary and the resulting library dependency is
  15392. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  15393. # library is relocated.
  15394. hardcode_direct_absolute=$hardcode_direct_absolute
  15395. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15396. # into the resulting binary.
  15397. hardcode_minus_L=$hardcode_minus_L
  15398. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15399. # into the resulting binary.
  15400. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15401. # Set to "yes" if building a shared library automatically hardcodes DIR
  15402. # into the library and all subsequent libraries and executables linked
  15403. # against it.
  15404. hardcode_automatic=$hardcode_automatic
  15405. # Set to yes if linker adds runtime paths of dependent libraries
  15406. # to runtime path list.
  15407. inherit_rpath=$inherit_rpath
  15408. # Whether libtool must link a program against all its dependency libraries.
  15409. link_all_deplibs=$link_all_deplibs
  15410. # Set to "yes" if exported symbols are required.
  15411. always_export_symbols=$always_export_symbols
  15412. # The commands to list exported symbols.
  15413. export_symbols_cmds=$lt_export_symbols_cmds
  15414. # Symbols that should not be listed in the preloaded symbols.
  15415. exclude_expsyms=$lt_exclude_expsyms
  15416. # Symbols that must always be exported.
  15417. include_expsyms=$lt_include_expsyms
  15418. # Commands necessary for linking programs (against libraries) with templates.
  15419. prelink_cmds=$lt_prelink_cmds
  15420. # Commands necessary for finishing linking programs.
  15421. postlink_cmds=$lt_postlink_cmds
  15422. # Specify filename containing input files.
  15423. file_list_spec=$lt_file_list_spec
  15424. # How to hardcode a shared library path into an executable.
  15425. hardcode_action=$hardcode_action
  15426. # ### END LIBTOOL CONFIG
  15427. _LT_EOF
  15428. cat <<'_LT_EOF' >> "$cfgfile"
  15429. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  15430. # func_munge_path_list VARIABLE PATH
  15431. # -----------------------------------
  15432. # VARIABLE is name of variable containing _space_ separated list of
  15433. # directories to be munged by the contents of PATH, which is string
  15434. # having a format:
  15435. # "DIR[:DIR]:"
  15436. # string "DIR[ DIR]" will be prepended to VARIABLE
  15437. # ":DIR[:DIR]"
  15438. # string "DIR[ DIR]" will be appended to VARIABLE
  15439. # "DIRP[:DIRP]::[DIRA:]DIRA"
  15440. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  15441. # "DIRA[ DIRA]" will be appended to VARIABLE
  15442. # "DIR[:DIR]"
  15443. # VARIABLE will be replaced by "DIR[ DIR]"
  15444. func_munge_path_list ()
  15445. {
  15446. case x$2 in
  15447. x)
  15448. ;;
  15449. *:)
  15450. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  15451. ;;
  15452. x:*)
  15453. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  15454. ;;
  15455. *::*)
  15456. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  15457. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  15458. ;;
  15459. *)
  15460. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  15461. ;;
  15462. esac
  15463. }
  15464. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  15465. func_cc_basename ()
  15466. {
  15467. for cc_temp in $*""; do
  15468. case $cc_temp in
  15469. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15470. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15471. \-*) ;;
  15472. *) break;;
  15473. esac
  15474. done
  15475. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  15476. }
  15477. # ### END FUNCTIONS SHARED WITH CONFIGURE
  15478. _LT_EOF
  15479. case $host_os in
  15480. aix3*)
  15481. cat <<\_LT_EOF >> "$cfgfile"
  15482. # AIX sometimes has problems with the GCC collect2 program. For some
  15483. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15484. # vanish in a puff of smoke.
  15485. if test set != "${COLLECT_NAMES+set}"; then
  15486. COLLECT_NAMES=
  15487. export COLLECT_NAMES
  15488. fi
  15489. _LT_EOF
  15490. ;;
  15491. esac
  15492. ltmain=$ac_aux_dir/ltmain.sh
  15493. # We use sed instead of cat because bash on DJGPP gets confused if
  15494. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15495. # text mode, it properly converts lines to CR/LF. This bash problem
  15496. # is reportedly fixed, but why not run on old versions too?
  15497. sed '$q' "$ltmain" >> "$cfgfile" \
  15498. || (rm -f "$cfgfile"; exit 1)
  15499. mv -f "$cfgfile" "$ofile" ||
  15500. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15501. chmod +x "$ofile"
  15502. ;;
  15503. esac
  15504. done # for ac_tag
  15505. as_fn_exit 0
  15506. _ACEOF
  15507. ac_clean_files=$ac_clean_files_save
  15508. test $ac_write_fail = 0 ||
  15509. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15510. # configure is writing to config.log, and then calls config.status.
  15511. # config.status does its own redirection, appending to config.log.
  15512. # Unfortunately, on DOS this fails, as config.log is still kept open
  15513. # by configure, so config.status won't be able to write to it; its
  15514. # output is simply discarded. So we exec the FD to /dev/null,
  15515. # effectively closing config.log, so it can be properly (re)opened and
  15516. # appended to by config.status. When coming back to configure, we
  15517. # need to make the FD available again.
  15518. if test "$no_create" != yes; then
  15519. ac_cs_success=:
  15520. ac_config_status_args=
  15521. test "$silent" = yes &&
  15522. ac_config_status_args="$ac_config_status_args --quiet"
  15523. exec 5>/dev/null
  15524. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15525. exec 5>>config.log
  15526. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15527. # would make configure fail if this is the last instruction.
  15528. $ac_cs_success || as_fn_exit 1
  15529. fi
  15530. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15532. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15533. fi