configure 489 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for file 5.41.
  4. #
  5. # Report bugs to <christos@astron.com>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  259. $0: christos@astron.com about your system, including any
  260. $0: error possibly output before this message. Then install
  261. $0: a modern shell, or manually run the script under such a
  262. $0: shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='file'
  542. PACKAGE_TARNAME='file'
  543. PACKAGE_VERSION='5.41'
  544. PACKAGE_STRING='file 5.41'
  545. PACKAGE_BUGREPORT='christos@astron.com'
  546. PACKAGE_URL=''
  547. # Factoring default headers for most tests.
  548. ac_includes_default="\
  549. #include <stdio.h>
  550. #ifdef HAVE_SYS_TYPES_H
  551. # include <sys/types.h>
  552. #endif
  553. #ifdef HAVE_SYS_STAT_H
  554. # include <sys/stat.h>
  555. #endif
  556. #ifdef STDC_HEADERS
  557. # include <stdlib.h>
  558. # include <stddef.h>
  559. #else
  560. # ifdef HAVE_STDLIB_H
  561. # include <stdlib.h>
  562. # endif
  563. #endif
  564. #ifdef HAVE_STRING_H
  565. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  566. # include <memory.h>
  567. # endif
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_STRINGS_H
  571. # include <strings.h>
  572. #endif
  573. #ifdef HAVE_INTTYPES_H
  574. # include <inttypes.h>
  575. #endif
  576. #ifdef HAVE_STDINT_H
  577. # include <stdint.h>
  578. #endif
  579. #ifdef HAVE_UNISTD_H
  580. # include <unistd.h>
  581. #endif"
  582. ac_header_list=
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. IS_CROSS_COMPILE_FALSE
  587. IS_CROSS_COMPILE_TRUE
  588. LIBOBJS
  589. HAVE_VISIBILITY
  590. CFLAG_VISIBILITY
  591. LT_SYS_LIBRARY_PATH
  592. OTOOL64
  593. OTOOL
  594. LIPO
  595. NMEDIT
  596. DSYMUTIL
  597. MANIFEST_TOOL
  598. RANLIB
  599. ac_ct_AR
  600. AR
  601. DLLTOOL
  602. OBJDUMP
  603. NM
  604. ac_ct_DUMPBIN
  605. DUMPBIN
  606. LD
  607. FGREP
  608. SED
  609. LIBTOOL
  610. LN_S
  611. EGREP
  612. GREP
  613. CPP
  614. am__fastdepCC_FALSE
  615. am__fastdepCC_TRUE
  616. CCDEPMODE
  617. am__nodep
  618. AMDEPBACKSLASH
  619. AMDEP_FALSE
  620. AMDEP_TRUE
  621. am__include
  622. DEPDIR
  623. OBJEXT
  624. EXEEXT
  625. ac_ct_CC
  626. CPPFLAGS
  627. LDFLAGS
  628. CFLAGS
  629. CC
  630. WARNINGS
  631. FSECT5_FALSE
  632. FSECT5_TRUE
  633. fsect
  634. pkgdatadir
  635. MINGW_FALSE
  636. MINGW_TRUE
  637. MINGW
  638. host_os
  639. host_vendor
  640. host_cpu
  641. host
  642. build_os
  643. build_vendor
  644. build_cpu
  645. build
  646. AM_BACKSLASH
  647. AM_DEFAULT_VERBOSITY
  648. AM_DEFAULT_V
  649. AM_V
  650. am__untar
  651. am__tar
  652. AMTAR
  653. am__leading_dot
  654. SET_MAKE
  655. AWK
  656. mkdir_p
  657. MKDIR_P
  658. INSTALL_STRIP_PROGRAM
  659. STRIP
  660. install_sh
  661. MAKEINFO
  662. AUTOHEADER
  663. AUTOMAKE
  664. AUTOCONF
  665. ACLOCAL
  666. VERSION
  667. PACKAGE
  668. CYGPATH_W
  669. am__isrc
  670. INSTALL_DATA
  671. INSTALL_SCRIPT
  672. INSTALL_PROGRAM
  673. target_alias
  674. host_alias
  675. build_alias
  676. LIBS
  677. ECHO_T
  678. ECHO_N
  679. ECHO_C
  680. DEFS
  681. mandir
  682. localedir
  683. libdir
  684. psdir
  685. pdfdir
  686. dvidir
  687. htmldir
  688. infodir
  689. docdir
  690. oldincludedir
  691. includedir
  692. localstatedir
  693. sharedstatedir
  694. sysconfdir
  695. datadir
  696. datarootdir
  697. libexecdir
  698. sbindir
  699. bindir
  700. program_transform_name
  701. prefix
  702. exec_prefix
  703. PACKAGE_URL
  704. PACKAGE_BUGREPORT
  705. PACKAGE_STRING
  706. PACKAGE_VERSION
  707. PACKAGE_TARNAME
  708. PACKAGE_NAME
  709. PATH_SEPARATOR
  710. SHELL
  711. am__quote'
  712. ac_subst_files=''
  713. ac_user_opts='
  714. enable_option_checking
  715. enable_silent_rules
  716. enable_elf
  717. enable_elf_core
  718. enable_zlib
  719. enable_bzlib
  720. enable_xzlib
  721. enable_libseccomp
  722. enable_fsect_man5
  723. enable_dependency_tracking
  724. enable_static
  725. with_pic
  726. enable_shared
  727. enable_fast_install
  728. with_aix_soname
  729. with_gnu_ld
  730. with_sysroot
  731. enable_libtool_lock
  732. enable_largefile
  733. enable_warnings
  734. '
  735. ac_precious_vars='build_alias
  736. host_alias
  737. target_alias
  738. CC
  739. CFLAGS
  740. LDFLAGS
  741. LIBS
  742. CPPFLAGS
  743. CPP
  744. LT_SYS_LIBRARY_PATH'
  745. # Initialize some variables set by options.
  746. ac_init_help=
  747. ac_init_version=false
  748. ac_unrecognized_opts=
  749. ac_unrecognized_sep=
  750. # The variables have the same names as the options, with
  751. # dashes changed to underlines.
  752. cache_file=/dev/null
  753. exec_prefix=NONE
  754. no_create=
  755. no_recursion=
  756. prefix=NONE
  757. program_prefix=NONE
  758. program_suffix=NONE
  759. program_transform_name=s,x,x,
  760. silent=
  761. site=
  762. srcdir=
  763. verbose=
  764. x_includes=NONE
  765. x_libraries=NONE
  766. # Installation directory options.
  767. # These are left unexpanded so users can "make install exec_prefix=/foo"
  768. # and all the variables that are supposed to be based on exec_prefix
  769. # by default will actually change.
  770. # Use braces instead of parens because sh, perl, etc. also accept them.
  771. # (The list follows the same order as the GNU Coding Standards.)
  772. bindir='${exec_prefix}/bin'
  773. sbindir='${exec_prefix}/sbin'
  774. libexecdir='${exec_prefix}/libexec'
  775. datarootdir='${prefix}/share'
  776. datadir='${datarootdir}'
  777. sysconfdir='${prefix}/etc'
  778. sharedstatedir='${prefix}/com'
  779. localstatedir='${prefix}/var'
  780. includedir='${prefix}/include'
  781. oldincludedir='/usr/include'
  782. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  783. infodir='${datarootdir}/info'
  784. htmldir='${docdir}'
  785. dvidir='${docdir}'
  786. pdfdir='${docdir}'
  787. psdir='${docdir}'
  788. libdir='${exec_prefix}/lib'
  789. localedir='${datarootdir}/locale'
  790. mandir='${datarootdir}/man'
  791. ac_prev=
  792. ac_dashdash=
  793. for ac_option
  794. do
  795. # If the previous option needs an argument, assign it.
  796. if test -n "$ac_prev"; then
  797. eval $ac_prev=\$ac_option
  798. ac_prev=
  799. continue
  800. fi
  801. case $ac_option in
  802. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  803. *=) ac_optarg= ;;
  804. *) ac_optarg=yes ;;
  805. esac
  806. # Accept the important Cygnus configure options, so we can diagnose typos.
  807. case $ac_dashdash$ac_option in
  808. --)
  809. ac_dashdash=yes ;;
  810. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  811. ac_prev=bindir ;;
  812. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  813. bindir=$ac_optarg ;;
  814. -build | --build | --buil | --bui | --bu)
  815. ac_prev=build_alias ;;
  816. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  817. build_alias=$ac_optarg ;;
  818. -cache-file | --cache-file | --cache-fil | --cache-fi \
  819. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  820. ac_prev=cache_file ;;
  821. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  822. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  823. cache_file=$ac_optarg ;;
  824. --config-cache | -C)
  825. cache_file=config.cache ;;
  826. -datadir | --datadir | --datadi | --datad)
  827. ac_prev=datadir ;;
  828. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  829. datadir=$ac_optarg ;;
  830. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  831. | --dataroo | --dataro | --datar)
  832. ac_prev=datarootdir ;;
  833. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  834. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  835. datarootdir=$ac_optarg ;;
  836. -disable-* | --disable-*)
  837. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  838. # Reject names that are not valid shell variable names.
  839. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  840. as_fn_error $? "invalid feature name: $ac_useropt"
  841. ac_useropt_orig=$ac_useropt
  842. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  843. case $ac_user_opts in
  844. *"
  845. "enable_$ac_useropt"
  846. "*) ;;
  847. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  848. ac_unrecognized_sep=', ';;
  849. esac
  850. eval enable_$ac_useropt=no ;;
  851. -docdir | --docdir | --docdi | --doc | --do)
  852. ac_prev=docdir ;;
  853. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  854. docdir=$ac_optarg ;;
  855. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  856. ac_prev=dvidir ;;
  857. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  858. dvidir=$ac_optarg ;;
  859. -enable-* | --enable-*)
  860. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  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=`$as_echo "$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--enable-$ac_useropt_orig"
  871. ac_unrecognized_sep=', ';;
  872. esac
  873. eval enable_$ac_useropt=\$ac_optarg ;;
  874. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  875. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  876. | --exec | --exe | --ex)
  877. ac_prev=exec_prefix ;;
  878. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  879. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  880. | --exec=* | --exe=* | --ex=*)
  881. exec_prefix=$ac_optarg ;;
  882. -gas | --gas | --ga | --g)
  883. # Obsolete; use --with-gas.
  884. with_gas=yes ;;
  885. -help | --help | --hel | --he | -h)
  886. ac_init_help=long ;;
  887. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  888. ac_init_help=recursive ;;
  889. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  890. ac_init_help=short ;;
  891. -host | --host | --hos | --ho)
  892. ac_prev=host_alias ;;
  893. -host=* | --host=* | --hos=* | --ho=*)
  894. host_alias=$ac_optarg ;;
  895. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  896. ac_prev=htmldir ;;
  897. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  898. | --ht=*)
  899. htmldir=$ac_optarg ;;
  900. -includedir | --includedir | --includedi | --included | --include \
  901. | --includ | --inclu | --incl | --inc)
  902. ac_prev=includedir ;;
  903. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  904. | --includ=* | --inclu=* | --incl=* | --inc=*)
  905. includedir=$ac_optarg ;;
  906. -infodir | --infodir | --infodi | --infod | --info | --inf)
  907. ac_prev=infodir ;;
  908. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  909. infodir=$ac_optarg ;;
  910. -libdir | --libdir | --libdi | --libd)
  911. ac_prev=libdir ;;
  912. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  913. libdir=$ac_optarg ;;
  914. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  915. | --libexe | --libex | --libe)
  916. ac_prev=libexecdir ;;
  917. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  918. | --libexe=* | --libex=* | --libe=*)
  919. libexecdir=$ac_optarg ;;
  920. -localedir | --localedir | --localedi | --localed | --locale)
  921. ac_prev=localedir ;;
  922. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  923. localedir=$ac_optarg ;;
  924. -localstatedir | --localstatedir | --localstatedi | --localstated \
  925. | --localstate | --localstat | --localsta | --localst | --locals)
  926. ac_prev=localstatedir ;;
  927. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  928. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  929. localstatedir=$ac_optarg ;;
  930. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  931. ac_prev=mandir ;;
  932. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  933. mandir=$ac_optarg ;;
  934. -nfp | --nfp | --nf)
  935. # Obsolete; use --without-fp.
  936. with_fp=no ;;
  937. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  938. | --no-cr | --no-c | -n)
  939. no_create=yes ;;
  940. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  941. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  942. no_recursion=yes ;;
  943. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  944. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  945. | --oldin | --oldi | --old | --ol | --o)
  946. ac_prev=oldincludedir ;;
  947. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  948. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  949. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  950. oldincludedir=$ac_optarg ;;
  951. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  952. ac_prev=prefix ;;
  953. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  954. prefix=$ac_optarg ;;
  955. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  956. | --program-pre | --program-pr | --program-p)
  957. ac_prev=program_prefix ;;
  958. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  959. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  960. program_prefix=$ac_optarg ;;
  961. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  962. | --program-suf | --program-su | --program-s)
  963. ac_prev=program_suffix ;;
  964. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  965. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  966. program_suffix=$ac_optarg ;;
  967. -program-transform-name | --program-transform-name \
  968. | --program-transform-nam | --program-transform-na \
  969. | --program-transform-n | --program-transform- \
  970. | --program-transform | --program-transfor \
  971. | --program-transfo | --program-transf \
  972. | --program-trans | --program-tran \
  973. | --progr-tra | --program-tr | --program-t)
  974. ac_prev=program_transform_name ;;
  975. -program-transform-name=* | --program-transform-name=* \
  976. | --program-transform-nam=* | --program-transform-na=* \
  977. | --program-transform-n=* | --program-transform-=* \
  978. | --program-transform=* | --program-transfor=* \
  979. | --program-transfo=* | --program-transf=* \
  980. | --program-trans=* | --program-tran=* \
  981. | --progr-tra=* | --program-tr=* | --program-t=*)
  982. program_transform_name=$ac_optarg ;;
  983. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  984. ac_prev=pdfdir ;;
  985. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  986. pdfdir=$ac_optarg ;;
  987. -psdir | --psdir | --psdi | --psd | --ps)
  988. ac_prev=psdir ;;
  989. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  990. psdir=$ac_optarg ;;
  991. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  992. | -silent | --silent | --silen | --sile | --sil)
  993. silent=yes ;;
  994. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  995. ac_prev=sbindir ;;
  996. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  997. | --sbi=* | --sb=*)
  998. sbindir=$ac_optarg ;;
  999. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1000. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1001. | --sharedst | --shareds | --shared | --share | --shar \
  1002. | --sha | --sh)
  1003. ac_prev=sharedstatedir ;;
  1004. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1005. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1006. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1007. | --sha=* | --sh=*)
  1008. sharedstatedir=$ac_optarg ;;
  1009. -site | --site | --sit)
  1010. ac_prev=site ;;
  1011. -site=* | --site=* | --sit=*)
  1012. site=$ac_optarg ;;
  1013. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1014. ac_prev=srcdir ;;
  1015. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1016. srcdir=$ac_optarg ;;
  1017. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1018. | --syscon | --sysco | --sysc | --sys | --sy)
  1019. ac_prev=sysconfdir ;;
  1020. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1021. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1022. sysconfdir=$ac_optarg ;;
  1023. -target | --target | --targe | --targ | --tar | --ta | --t)
  1024. ac_prev=target_alias ;;
  1025. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1026. target_alias=$ac_optarg ;;
  1027. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1028. verbose=yes ;;
  1029. -version | --version | --versio | --versi | --vers | -V)
  1030. ac_init_version=: ;;
  1031. -with-* | --with-*)
  1032. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1033. # Reject names that are not valid shell variable names.
  1034. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1035. as_fn_error $? "invalid package name: $ac_useropt"
  1036. ac_useropt_orig=$ac_useropt
  1037. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1038. case $ac_user_opts in
  1039. *"
  1040. "with_$ac_useropt"
  1041. "*) ;;
  1042. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1043. ac_unrecognized_sep=', ';;
  1044. esac
  1045. eval with_$ac_useropt=\$ac_optarg ;;
  1046. -without-* | --without-*)
  1047. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1048. # Reject names that are not valid shell variable names.
  1049. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1050. as_fn_error $? "invalid package name: $ac_useropt"
  1051. ac_useropt_orig=$ac_useropt
  1052. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1053. case $ac_user_opts in
  1054. *"
  1055. "with_$ac_useropt"
  1056. "*) ;;
  1057. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1058. ac_unrecognized_sep=', ';;
  1059. esac
  1060. eval with_$ac_useropt=no ;;
  1061. --x)
  1062. # Obsolete; use --with-x.
  1063. with_x=yes ;;
  1064. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1065. | --x-incl | --x-inc | --x-in | --x-i)
  1066. ac_prev=x_includes ;;
  1067. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1068. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1069. x_includes=$ac_optarg ;;
  1070. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1071. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1072. ac_prev=x_libraries ;;
  1073. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1074. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1075. x_libraries=$ac_optarg ;;
  1076. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1077. Try \`$0 --help' for more information"
  1078. ;;
  1079. *=*)
  1080. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1081. # Reject names that are not valid shell variable names.
  1082. case $ac_envvar in #(
  1083. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1084. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1085. esac
  1086. eval $ac_envvar=\$ac_optarg
  1087. export $ac_envvar ;;
  1088. *)
  1089. # FIXME: should be removed in autoconf 3.0.
  1090. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1091. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1092. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1093. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1094. ;;
  1095. esac
  1096. done
  1097. if test -n "$ac_prev"; then
  1098. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1099. as_fn_error $? "missing argument to $ac_option"
  1100. fi
  1101. if test -n "$ac_unrecognized_opts"; then
  1102. case $enable_option_checking in
  1103. no) ;;
  1104. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1105. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1106. esac
  1107. fi
  1108. # Check all directory arguments for consistency.
  1109. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1110. datadir sysconfdir sharedstatedir localstatedir includedir \
  1111. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1112. libdir localedir mandir
  1113. do
  1114. eval ac_val=\$$ac_var
  1115. # Remove trailing slashes.
  1116. case $ac_val in
  1117. */ )
  1118. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1119. eval $ac_var=\$ac_val;;
  1120. esac
  1121. # Be sure to have absolute directory names.
  1122. case $ac_val in
  1123. [\\/$]* | ?:[\\/]* ) continue;;
  1124. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1125. esac
  1126. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1127. done
  1128. # There might be people who depend on the old broken behavior: `$host'
  1129. # used to hold the argument of --host etc.
  1130. # FIXME: To remove some day.
  1131. build=$build_alias
  1132. host=$host_alias
  1133. target=$target_alias
  1134. # FIXME: To remove some day.
  1135. if test "x$host_alias" != x; then
  1136. if test "x$build_alias" = x; then
  1137. cross_compiling=maybe
  1138. elif test "x$build_alias" != "x$host_alias"; then
  1139. cross_compiling=yes
  1140. fi
  1141. fi
  1142. ac_tool_prefix=
  1143. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1144. test "$silent" = yes && exec 6>/dev/null
  1145. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1146. ac_ls_di=`ls -di .` &&
  1147. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1148. as_fn_error $? "working directory cannot be determined"
  1149. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1150. as_fn_error $? "pwd does not report name of working directory"
  1151. # Find the source files, if location was not specified.
  1152. if test -z "$srcdir"; then
  1153. ac_srcdir_defaulted=yes
  1154. # Try the directory containing this script, then the parent directory.
  1155. ac_confdir=`$as_dirname -- "$as_myself" ||
  1156. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1157. X"$as_myself" : 'X\(//\)[^/]' \| \
  1158. X"$as_myself" : 'X\(//\)$' \| \
  1159. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1160. $as_echo X"$as_myself" |
  1161. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1162. s//\1/
  1163. q
  1164. }
  1165. /^X\(\/\/\)[^/].*/{
  1166. s//\1/
  1167. q
  1168. }
  1169. /^X\(\/\/\)$/{
  1170. s//\1/
  1171. q
  1172. }
  1173. /^X\(\/\).*/{
  1174. s//\1/
  1175. q
  1176. }
  1177. s/.*/./; q'`
  1178. srcdir=$ac_confdir
  1179. if test ! -r "$srcdir/$ac_unique_file"; then
  1180. srcdir=..
  1181. fi
  1182. else
  1183. ac_srcdir_defaulted=no
  1184. fi
  1185. if test ! -r "$srcdir/$ac_unique_file"; then
  1186. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1187. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1188. fi
  1189. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1190. ac_abs_confdir=`(
  1191. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1192. pwd)`
  1193. # When building in place, set srcdir=.
  1194. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1195. srcdir=.
  1196. fi
  1197. # Remove unnecessary trailing slashes from srcdir.
  1198. # Double slashes in file names in object file debugging info
  1199. # mess up M-x gdb in Emacs.
  1200. case $srcdir in
  1201. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1202. esac
  1203. for ac_var in $ac_precious_vars; do
  1204. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1205. eval ac_env_${ac_var}_value=\$${ac_var}
  1206. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1207. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1208. done
  1209. #
  1210. # Report the --help message.
  1211. #
  1212. if test "$ac_init_help" = "long"; then
  1213. # Omit some internal or obsolete options to make the list less imposing.
  1214. # This message is too long to be a string in the A/UX 3.1 sh.
  1215. cat <<_ACEOF
  1216. \`configure' configures file 5.41 to adapt to many kinds of systems.
  1217. Usage: $0 [OPTION]... [VAR=VALUE]...
  1218. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1219. VAR=VALUE. See below for descriptions of some of the useful variables.
  1220. Defaults for the options are specified in brackets.
  1221. Configuration:
  1222. -h, --help display this help and exit
  1223. --help=short display options specific to this package
  1224. --help=recursive display the short help of all the included packages
  1225. -V, --version display version information and exit
  1226. -q, --quiet, --silent do not print \`checking ...' messages
  1227. --cache-file=FILE cache test results in FILE [disabled]
  1228. -C, --config-cache alias for \`--cache-file=config.cache'
  1229. -n, --no-create do not create output files
  1230. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1231. Installation directories:
  1232. --prefix=PREFIX install architecture-independent files in PREFIX
  1233. [$ac_default_prefix]
  1234. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1235. [PREFIX]
  1236. By default, \`make install' will install all the files in
  1237. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1238. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1239. for instance \`--prefix=\$HOME'.
  1240. For better control, use the options below.
  1241. Fine tuning of the installation directories:
  1242. --bindir=DIR user executables [EPREFIX/bin]
  1243. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1244. --libexecdir=DIR program executables [EPREFIX/libexec]
  1245. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1246. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1247. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1248. --libdir=DIR object code libraries [EPREFIX/lib]
  1249. --includedir=DIR C header files [PREFIX/include]
  1250. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1251. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1252. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1253. --infodir=DIR info documentation [DATAROOTDIR/info]
  1254. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1255. --mandir=DIR man documentation [DATAROOTDIR/man]
  1256. --docdir=DIR documentation root [DATAROOTDIR/doc/file]
  1257. --htmldir=DIR html documentation [DOCDIR]
  1258. --dvidir=DIR dvi documentation [DOCDIR]
  1259. --pdfdir=DIR pdf documentation [DOCDIR]
  1260. --psdir=DIR ps documentation [DOCDIR]
  1261. _ACEOF
  1262. cat <<\_ACEOF
  1263. Program names:
  1264. --program-prefix=PREFIX prepend PREFIX to installed program names
  1265. --program-suffix=SUFFIX append SUFFIX to installed program names
  1266. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1267. System types:
  1268. --build=BUILD configure for building on BUILD [guessed]
  1269. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1270. _ACEOF
  1271. fi
  1272. if test -n "$ac_init_help"; then
  1273. case $ac_init_help in
  1274. short | recursive ) echo "Configuration of file 5.41:";;
  1275. esac
  1276. cat <<\_ACEOF
  1277. Optional Features:
  1278. --disable-option-checking ignore unrecognized --enable/--with options
  1279. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1280. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1281. --enable-silent-rules less verbose build output (undo: "make V=1")
  1282. --disable-silent-rules verbose build output (undo: "make V=0")
  1283. --disable-elf disable builtin ELF support
  1284. --disable-elf-core disable ELF core file support
  1285. --disable-zlib disable zlib compression support [default=auto]
  1286. --disable-bzlib disable bz2lib compression support [default=auto]
  1287. --disable-xzlib disable liblzma/xz compression support
  1288. [default=auto]
  1289. --disable-libseccomp disable libseccomp sandboxing [default=auto]
  1290. --enable-fsect-man5 enable file formats in man section 5
  1291. --enable-dependency-tracking
  1292. do not reject slow dependency extractors
  1293. --disable-dependency-tracking
  1294. speeds up one-time build
  1295. --enable-static[=PKGS] build static libraries [default=no]
  1296. --enable-shared[=PKGS] build shared libraries [default=yes]
  1297. --enable-fast-install[=PKGS]
  1298. optimize for fast installation [default=yes]
  1299. --disable-libtool-lock avoid locking (might break parallel builds)
  1300. --disable-largefile omit support for large files
  1301. --disable-warnings disable compiler warnings
  1302. Optional Packages:
  1303. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1304. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1305. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1306. both]
  1307. --with-aix-soname=aix|svr4|both
  1308. shared library versioning (aka "SONAME") variant to
  1309. provide on AIX, [default=aix].
  1310. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1311. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1312. compiler's sysroot if not specified).
  1313. Some influential environment variables:
  1314. CC C compiler command
  1315. CFLAGS C compiler flags
  1316. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1317. nonstandard directory <lib dir>
  1318. LIBS libraries to pass to the linker, e.g. -l<library>
  1319. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1320. you have headers in a nonstandard directory <include dir>
  1321. CPP C preprocessor
  1322. LT_SYS_LIBRARY_PATH
  1323. User-defined run-time library search path.
  1324. Use these variables to override the choices made by `configure' or to help
  1325. it to find libraries and programs with nonstandard names/locations.
  1326. Report bugs to <christos@astron.com>.
  1327. _ACEOF
  1328. ac_status=$?
  1329. fi
  1330. if test "$ac_init_help" = "recursive"; then
  1331. # If there are subdirs, report their specific --help.
  1332. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1333. test -d "$ac_dir" ||
  1334. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1335. continue
  1336. ac_builddir=.
  1337. case "$ac_dir" in
  1338. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1339. *)
  1340. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1341. # A ".." for each directory in $ac_dir_suffix.
  1342. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1343. case $ac_top_builddir_sub in
  1344. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1345. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1346. esac ;;
  1347. esac
  1348. ac_abs_top_builddir=$ac_pwd
  1349. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1350. # for backward compatibility:
  1351. ac_top_builddir=$ac_top_build_prefix
  1352. case $srcdir in
  1353. .) # We are building in place.
  1354. ac_srcdir=.
  1355. ac_top_srcdir=$ac_top_builddir_sub
  1356. ac_abs_top_srcdir=$ac_pwd ;;
  1357. [\\/]* | ?:[\\/]* ) # Absolute name.
  1358. ac_srcdir=$srcdir$ac_dir_suffix;
  1359. ac_top_srcdir=$srcdir
  1360. ac_abs_top_srcdir=$srcdir ;;
  1361. *) # Relative name.
  1362. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1363. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1364. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1365. esac
  1366. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1367. cd "$ac_dir" || { ac_status=$?; continue; }
  1368. # Check for guested configure.
  1369. if test -f "$ac_srcdir/configure.gnu"; then
  1370. echo &&
  1371. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1372. elif test -f "$ac_srcdir/configure"; then
  1373. echo &&
  1374. $SHELL "$ac_srcdir/configure" --help=recursive
  1375. else
  1376. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1377. fi || ac_status=$?
  1378. cd "$ac_pwd" || { ac_status=$?; break; }
  1379. done
  1380. fi
  1381. test -n "$ac_init_help" && exit $ac_status
  1382. if $ac_init_version; then
  1383. cat <<\_ACEOF
  1384. file configure 5.41
  1385. generated by GNU Autoconf 2.69
  1386. Copyright (C) 2012 Free Software Foundation, Inc.
  1387. This configure script is free software; the Free Software Foundation
  1388. gives unlimited permission to copy, distribute and modify it.
  1389. _ACEOF
  1390. exit
  1391. fi
  1392. ## ------------------------ ##
  1393. ## Autoconf initialization. ##
  1394. ## ------------------------ ##
  1395. # ac_fn_c_try_compile LINENO
  1396. # --------------------------
  1397. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1398. ac_fn_c_try_compile ()
  1399. {
  1400. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1401. rm -f conftest.$ac_objext
  1402. if { { ac_try="$ac_compile"
  1403. case "(($ac_try" in
  1404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1405. *) ac_try_echo=$ac_try;;
  1406. esac
  1407. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1408. $as_echo "$ac_try_echo"; } >&5
  1409. (eval "$ac_compile") 2>conftest.err
  1410. ac_status=$?
  1411. if test -s conftest.err; then
  1412. grep -v '^ *+' conftest.err >conftest.er1
  1413. cat conftest.er1 >&5
  1414. mv -f conftest.er1 conftest.err
  1415. fi
  1416. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1417. test $ac_status = 0; } && {
  1418. test -z "$ac_c_werror_flag" ||
  1419. test ! -s conftest.err
  1420. } && test -s conftest.$ac_objext; then :
  1421. ac_retval=0
  1422. else
  1423. $as_echo "$as_me: failed program was:" >&5
  1424. sed 's/^/| /' conftest.$ac_ext >&5
  1425. ac_retval=1
  1426. fi
  1427. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1428. as_fn_set_status $ac_retval
  1429. } # ac_fn_c_try_compile
  1430. # ac_fn_c_try_cpp LINENO
  1431. # ----------------------
  1432. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1433. ac_fn_c_try_cpp ()
  1434. {
  1435. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1436. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1437. case "(($ac_try" in
  1438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1439. *) ac_try_echo=$ac_try;;
  1440. esac
  1441. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1442. $as_echo "$ac_try_echo"; } >&5
  1443. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1444. ac_status=$?
  1445. if test -s conftest.err; then
  1446. grep -v '^ *+' conftest.err >conftest.er1
  1447. cat conftest.er1 >&5
  1448. mv -f conftest.er1 conftest.err
  1449. fi
  1450. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1451. test $ac_status = 0; } > conftest.i && {
  1452. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1453. test ! -s conftest.err
  1454. }; then :
  1455. ac_retval=0
  1456. else
  1457. $as_echo "$as_me: failed program was:" >&5
  1458. sed 's/^/| /' conftest.$ac_ext >&5
  1459. ac_retval=1
  1460. fi
  1461. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1462. as_fn_set_status $ac_retval
  1463. } # ac_fn_c_try_cpp
  1464. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1465. # -------------------------------------------------------
  1466. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1467. # the include files in INCLUDES and setting the cache variable VAR
  1468. # accordingly.
  1469. ac_fn_c_check_header_mongrel ()
  1470. {
  1471. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1472. if eval \${$3+:} false; then :
  1473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1474. $as_echo_n "checking for $2... " >&6; }
  1475. if eval \${$3+:} false; then :
  1476. $as_echo_n "(cached) " >&6
  1477. fi
  1478. eval ac_res=\$$3
  1479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1480. $as_echo "$ac_res" >&6; }
  1481. else
  1482. # Is the header compilable?
  1483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1484. $as_echo_n "checking $2 usability... " >&6; }
  1485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1486. /* end confdefs.h. */
  1487. $4
  1488. #include <$2>
  1489. _ACEOF
  1490. if ac_fn_c_try_compile "$LINENO"; then :
  1491. ac_header_compiler=yes
  1492. else
  1493. ac_header_compiler=no
  1494. fi
  1495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1497. $as_echo "$ac_header_compiler" >&6; }
  1498. # Is the header present?
  1499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1500. $as_echo_n "checking $2 presence... " >&6; }
  1501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1502. /* end confdefs.h. */
  1503. #include <$2>
  1504. _ACEOF
  1505. if ac_fn_c_try_cpp "$LINENO"; then :
  1506. ac_header_preproc=yes
  1507. else
  1508. ac_header_preproc=no
  1509. fi
  1510. rm -f conftest.err conftest.i conftest.$ac_ext
  1511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1512. $as_echo "$ac_header_preproc" >&6; }
  1513. # So? What about this header?
  1514. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1515. yes:no: )
  1516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1517. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1518. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1519. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1520. ;;
  1521. no:yes:* )
  1522. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1523. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1524. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1525. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1527. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1528. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1529. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1530. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1531. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1532. ( $as_echo "## ---------------------------------- ##
  1533. ## Report this to christos@astron.com ##
  1534. ## ---------------------------------- ##"
  1535. ) | sed "s/^/$as_me: WARNING: /" >&2
  1536. ;;
  1537. esac
  1538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1539. $as_echo_n "checking for $2... " >&6; }
  1540. if eval \${$3+:} false; then :
  1541. $as_echo_n "(cached) " >&6
  1542. else
  1543. eval "$3=\$ac_header_compiler"
  1544. fi
  1545. eval ac_res=\$$3
  1546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1547. $as_echo "$ac_res" >&6; }
  1548. fi
  1549. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1550. } # ac_fn_c_check_header_mongrel
  1551. # ac_fn_c_try_run LINENO
  1552. # ----------------------
  1553. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1554. # that executables *can* be run.
  1555. ac_fn_c_try_run ()
  1556. {
  1557. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1558. if { { ac_try="$ac_link"
  1559. case "(($ac_try" in
  1560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1561. *) ac_try_echo=$ac_try;;
  1562. esac
  1563. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1564. $as_echo "$ac_try_echo"; } >&5
  1565. (eval "$ac_link") 2>&5
  1566. ac_status=$?
  1567. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1568. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1569. { { case "(($ac_try" in
  1570. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1571. *) ac_try_echo=$ac_try;;
  1572. esac
  1573. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1574. $as_echo "$ac_try_echo"; } >&5
  1575. (eval "$ac_try") 2>&5
  1576. ac_status=$?
  1577. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1578. test $ac_status = 0; }; }; then :
  1579. ac_retval=0
  1580. else
  1581. $as_echo "$as_me: program exited with status $ac_status" >&5
  1582. $as_echo "$as_me: failed program was:" >&5
  1583. sed 's/^/| /' conftest.$ac_ext >&5
  1584. ac_retval=$ac_status
  1585. fi
  1586. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1587. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1588. as_fn_set_status $ac_retval
  1589. } # ac_fn_c_try_run
  1590. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1591. # -------------------------------------------------------
  1592. # Tests whether HEADER exists and can be compiled using the include files in
  1593. # INCLUDES, setting the cache variable VAR accordingly.
  1594. ac_fn_c_check_header_compile ()
  1595. {
  1596. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1598. $as_echo_n "checking for $2... " >&6; }
  1599. if eval \${$3+:} false; then :
  1600. $as_echo_n "(cached) " >&6
  1601. else
  1602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1603. /* end confdefs.h. */
  1604. $4
  1605. #include <$2>
  1606. _ACEOF
  1607. if ac_fn_c_try_compile "$LINENO"; then :
  1608. eval "$3=yes"
  1609. else
  1610. eval "$3=no"
  1611. fi
  1612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1613. fi
  1614. eval ac_res=\$$3
  1615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1616. $as_echo "$ac_res" >&6; }
  1617. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1618. } # ac_fn_c_check_header_compile
  1619. # ac_fn_c_try_link LINENO
  1620. # -----------------------
  1621. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1622. ac_fn_c_try_link ()
  1623. {
  1624. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1625. rm -f conftest.$ac_objext conftest$ac_exeext
  1626. if { { ac_try="$ac_link"
  1627. case "(($ac_try" in
  1628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1629. *) ac_try_echo=$ac_try;;
  1630. esac
  1631. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1632. $as_echo "$ac_try_echo"; } >&5
  1633. (eval "$ac_link") 2>conftest.err
  1634. ac_status=$?
  1635. if test -s conftest.err; then
  1636. grep -v '^ *+' conftest.err >conftest.er1
  1637. cat conftest.er1 >&5
  1638. mv -f conftest.er1 conftest.err
  1639. fi
  1640. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1641. test $ac_status = 0; } && {
  1642. test -z "$ac_c_werror_flag" ||
  1643. test ! -s conftest.err
  1644. } && test -s conftest$ac_exeext && {
  1645. test "$cross_compiling" = yes ||
  1646. test -x conftest$ac_exeext
  1647. }; then :
  1648. ac_retval=0
  1649. else
  1650. $as_echo "$as_me: failed program was:" >&5
  1651. sed 's/^/| /' conftest.$ac_ext >&5
  1652. ac_retval=1
  1653. fi
  1654. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1655. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1656. # interfere with the next link command; also delete a directory that is
  1657. # left behind by Apple's compiler. We do this before executing the actions.
  1658. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1659. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1660. as_fn_set_status $ac_retval
  1661. } # ac_fn_c_try_link
  1662. # ac_fn_c_check_func LINENO FUNC VAR
  1663. # ----------------------------------
  1664. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1665. ac_fn_c_check_func ()
  1666. {
  1667. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1669. $as_echo_n "checking for $2... " >&6; }
  1670. if eval \${$3+:} false; then :
  1671. $as_echo_n "(cached) " >&6
  1672. else
  1673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1674. /* end confdefs.h. */
  1675. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1676. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1677. #define $2 innocuous_$2
  1678. /* System header to define __stub macros and hopefully few prototypes,
  1679. which can conflict with char $2 (); below.
  1680. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1681. <limits.h> exists even on freestanding compilers. */
  1682. #ifdef __STDC__
  1683. # include <limits.h>
  1684. #else
  1685. # include <assert.h>
  1686. #endif
  1687. #undef $2
  1688. /* Override any GCC internal prototype to avoid an error.
  1689. Use char because int might match the return type of a GCC
  1690. builtin and then its argument prototype would still apply. */
  1691. #ifdef __cplusplus
  1692. extern "C"
  1693. #endif
  1694. char $2 ();
  1695. /* The GNU C library defines this for functions which it implements
  1696. to always fail with ENOSYS. Some functions are actually named
  1697. something starting with __ and the normal name is an alias. */
  1698. #if defined __stub_$2 || defined __stub___$2
  1699. choke me
  1700. #endif
  1701. int
  1702. main ()
  1703. {
  1704. return $2 ();
  1705. ;
  1706. return 0;
  1707. }
  1708. _ACEOF
  1709. if ac_fn_c_try_link "$LINENO"; then :
  1710. eval "$3=yes"
  1711. else
  1712. eval "$3=no"
  1713. fi
  1714. rm -f core conftest.err conftest.$ac_objext \
  1715. conftest$ac_exeext conftest.$ac_ext
  1716. fi
  1717. eval ac_res=\$$3
  1718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1719. $as_echo "$ac_res" >&6; }
  1720. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1721. } # ac_fn_c_check_func
  1722. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1723. # -------------------------------------------
  1724. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1725. # variable VAR accordingly.
  1726. ac_fn_c_check_type ()
  1727. {
  1728. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1730. $as_echo_n "checking for $2... " >&6; }
  1731. if eval \${$3+:} false; then :
  1732. $as_echo_n "(cached) " >&6
  1733. else
  1734. eval "$3=no"
  1735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1736. /* end confdefs.h. */
  1737. $4
  1738. int
  1739. main ()
  1740. {
  1741. if (sizeof ($2))
  1742. return 0;
  1743. ;
  1744. return 0;
  1745. }
  1746. _ACEOF
  1747. if ac_fn_c_try_compile "$LINENO"; then :
  1748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1749. /* end confdefs.h. */
  1750. $4
  1751. int
  1752. main ()
  1753. {
  1754. if (sizeof (($2)))
  1755. return 0;
  1756. ;
  1757. return 0;
  1758. }
  1759. _ACEOF
  1760. if ac_fn_c_try_compile "$LINENO"; then :
  1761. else
  1762. eval "$3=yes"
  1763. fi
  1764. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1765. fi
  1766. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1767. fi
  1768. eval ac_res=\$$3
  1769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1770. $as_echo "$ac_res" >&6; }
  1771. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1772. } # ac_fn_c_check_type
  1773. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1774. # ----------------------------------------------------
  1775. # Tries to find if the field MEMBER exists in type AGGR, after including
  1776. # INCLUDES, setting cache variable VAR accordingly.
  1777. ac_fn_c_check_member ()
  1778. {
  1779. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1781. $as_echo_n "checking for $2.$3... " >&6; }
  1782. if eval \${$4+:} false; then :
  1783. $as_echo_n "(cached) " >&6
  1784. else
  1785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1786. /* end confdefs.h. */
  1787. $5
  1788. int
  1789. main ()
  1790. {
  1791. static $2 ac_aggr;
  1792. if (ac_aggr.$3)
  1793. return 0;
  1794. ;
  1795. return 0;
  1796. }
  1797. _ACEOF
  1798. if ac_fn_c_try_compile "$LINENO"; then :
  1799. eval "$4=yes"
  1800. else
  1801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1802. /* end confdefs.h. */
  1803. $5
  1804. int
  1805. main ()
  1806. {
  1807. static $2 ac_aggr;
  1808. if (sizeof ac_aggr.$3)
  1809. return 0;
  1810. ;
  1811. return 0;
  1812. }
  1813. _ACEOF
  1814. if ac_fn_c_try_compile "$LINENO"; then :
  1815. eval "$4=yes"
  1816. else
  1817. eval "$4=no"
  1818. fi
  1819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1820. fi
  1821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1822. fi
  1823. eval ac_res=\$$4
  1824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1825. $as_echo "$ac_res" >&6; }
  1826. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1827. } # ac_fn_c_check_member
  1828. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1829. # ---------------------------------------------
  1830. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1831. # accordingly.
  1832. ac_fn_c_check_decl ()
  1833. {
  1834. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1835. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1836. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1838. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1839. if eval \${$3+:} false; then :
  1840. $as_echo_n "(cached) " >&6
  1841. else
  1842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1843. /* end confdefs.h. */
  1844. $4
  1845. int
  1846. main ()
  1847. {
  1848. #ifndef $as_decl_name
  1849. #ifdef __cplusplus
  1850. (void) $as_decl_use;
  1851. #else
  1852. (void) $as_decl_name;
  1853. #endif
  1854. #endif
  1855. ;
  1856. return 0;
  1857. }
  1858. _ACEOF
  1859. if ac_fn_c_try_compile "$LINENO"; then :
  1860. eval "$3=yes"
  1861. else
  1862. eval "$3=no"
  1863. fi
  1864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1865. fi
  1866. eval ac_res=\$$3
  1867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1868. $as_echo "$ac_res" >&6; }
  1869. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1870. } # ac_fn_c_check_decl
  1871. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1872. # ------------------------------------
  1873. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1874. # accordingly.
  1875. ac_fn_c_find_uintX_t ()
  1876. {
  1877. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1879. $as_echo_n "checking for uint$2_t... " >&6; }
  1880. if eval \${$3+:} false; then :
  1881. $as_echo_n "(cached) " >&6
  1882. else
  1883. eval "$3=no"
  1884. # Order is important - never check a type that is potentially smaller
  1885. # than half of the expected target width.
  1886. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1887. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1889. /* end confdefs.h. */
  1890. $ac_includes_default
  1891. int
  1892. main ()
  1893. {
  1894. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1895. test_array [0] = 0;
  1896. return test_array [0];
  1897. ;
  1898. return 0;
  1899. }
  1900. _ACEOF
  1901. if ac_fn_c_try_compile "$LINENO"; then :
  1902. case $ac_type in #(
  1903. uint$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.$ac_ext
  1910. if eval test \"x\$"$3"\" = x"no"; then :
  1911. else
  1912. break
  1913. fi
  1914. done
  1915. fi
  1916. eval ac_res=\$$3
  1917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1918. $as_echo "$ac_res" >&6; }
  1919. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1920. } # ac_fn_c_find_uintX_t
  1921. # ac_fn_c_find_intX_t LINENO BITS VAR
  1922. # -----------------------------------
  1923. # Finds a signed integer type with width BITS, setting cache variable VAR
  1924. # accordingly.
  1925. ac_fn_c_find_intX_t ()
  1926. {
  1927. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1929. $as_echo_n "checking for int$2_t... " >&6; }
  1930. if eval \${$3+:} false; then :
  1931. $as_echo_n "(cached) " >&6
  1932. else
  1933. eval "$3=no"
  1934. # Order is important - never check a type that is potentially smaller
  1935. # than half of the expected target width.
  1936. for ac_type in int$2_t 'int' 'long int' \
  1937. 'long long int' 'short int' 'signed char'; do
  1938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1939. /* end confdefs.h. */
  1940. $ac_includes_default
  1941. enum { N = $2 / 2 - 1 };
  1942. int
  1943. main ()
  1944. {
  1945. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1946. test_array [0] = 0;
  1947. return test_array [0];
  1948. ;
  1949. return 0;
  1950. }
  1951. _ACEOF
  1952. if ac_fn_c_try_compile "$LINENO"; then :
  1953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1954. /* end confdefs.h. */
  1955. $ac_includes_default
  1956. enum { N = $2 / 2 - 1 };
  1957. int
  1958. main ()
  1959. {
  1960. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1961. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1962. test_array [0] = 0;
  1963. return test_array [0];
  1964. ;
  1965. return 0;
  1966. }
  1967. _ACEOF
  1968. if ac_fn_c_try_compile "$LINENO"; then :
  1969. else
  1970. case $ac_type in #(
  1971. int$2_t) :
  1972. eval "$3=yes" ;; #(
  1973. *) :
  1974. eval "$3=\$ac_type" ;;
  1975. esac
  1976. fi
  1977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1978. fi
  1979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1980. if eval test \"x\$"$3"\" = x"no"; then :
  1981. else
  1982. break
  1983. fi
  1984. done
  1985. fi
  1986. eval ac_res=\$$3
  1987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1988. $as_echo "$ac_res" >&6; }
  1989. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1990. } # ac_fn_c_find_intX_t
  1991. cat >config.log <<_ACEOF
  1992. This file contains any messages produced by compilers while
  1993. running configure, to aid debugging if configure makes a mistake.
  1994. It was created by file $as_me 5.41, which was
  1995. generated by GNU Autoconf 2.69. Invocation command line was
  1996. $ $0 $@
  1997. _ACEOF
  1998. exec 5>>config.log
  1999. {
  2000. cat <<_ASUNAME
  2001. ## --------- ##
  2002. ## Platform. ##
  2003. ## --------- ##
  2004. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2005. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2006. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2007. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2008. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2009. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2010. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2011. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2012. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2013. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2014. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2015. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2016. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2017. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2018. _ASUNAME
  2019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2020. for as_dir in $PATH
  2021. do
  2022. IFS=$as_save_IFS
  2023. test -z "$as_dir" && as_dir=.
  2024. $as_echo "PATH: $as_dir"
  2025. done
  2026. IFS=$as_save_IFS
  2027. } >&5
  2028. cat >&5 <<_ACEOF
  2029. ## ----------- ##
  2030. ## Core tests. ##
  2031. ## ----------- ##
  2032. _ACEOF
  2033. # Keep a trace of the command line.
  2034. # Strip out --no-create and --no-recursion so they do not pile up.
  2035. # Strip out --silent because we don't want to record it for future runs.
  2036. # Also quote any args containing shell meta-characters.
  2037. # Make two passes to allow for proper duplicate-argument suppression.
  2038. ac_configure_args=
  2039. ac_configure_args0=
  2040. ac_configure_args1=
  2041. ac_must_keep_next=false
  2042. for ac_pass in 1 2
  2043. do
  2044. for ac_arg
  2045. do
  2046. case $ac_arg in
  2047. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2048. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2049. | -silent | --silent | --silen | --sile | --sil)
  2050. continue ;;
  2051. *\'*)
  2052. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2053. esac
  2054. case $ac_pass in
  2055. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2056. 2)
  2057. as_fn_append ac_configure_args1 " '$ac_arg'"
  2058. if test $ac_must_keep_next = true; then
  2059. ac_must_keep_next=false # Got value, back to normal.
  2060. else
  2061. case $ac_arg in
  2062. *=* | --config-cache | -C | -disable-* | --disable-* \
  2063. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2064. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2065. | -with-* | --with-* | -without-* | --without-* | --x)
  2066. case "$ac_configure_args0 " in
  2067. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2068. esac
  2069. ;;
  2070. -* ) ac_must_keep_next=true ;;
  2071. esac
  2072. fi
  2073. as_fn_append ac_configure_args " '$ac_arg'"
  2074. ;;
  2075. esac
  2076. done
  2077. done
  2078. { ac_configure_args0=; unset ac_configure_args0;}
  2079. { ac_configure_args1=; unset ac_configure_args1;}
  2080. # When interrupted or exit'd, cleanup temporary files, and complete
  2081. # config.log. We remove comments because anyway the quotes in there
  2082. # would cause problems or look ugly.
  2083. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2084. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2085. trap 'exit_status=$?
  2086. # Save into config.log some information that might help in debugging.
  2087. {
  2088. echo
  2089. $as_echo "## ---------------- ##
  2090. ## Cache variables. ##
  2091. ## ---------------- ##"
  2092. echo
  2093. # The following way of writing the cache mishandles newlines in values,
  2094. (
  2095. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2096. eval ac_val=\$$ac_var
  2097. case $ac_val in #(
  2098. *${as_nl}*)
  2099. case $ac_var in #(
  2100. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2101. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2102. esac
  2103. case $ac_var in #(
  2104. _ | IFS | as_nl) ;; #(
  2105. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2106. *) { eval $ac_var=; unset $ac_var;} ;;
  2107. esac ;;
  2108. esac
  2109. done
  2110. (set) 2>&1 |
  2111. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2112. *${as_nl}ac_space=\ *)
  2113. sed -n \
  2114. "s/'\''/'\''\\\\'\'''\''/g;
  2115. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2116. ;; #(
  2117. *)
  2118. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2119. ;;
  2120. esac |
  2121. sort
  2122. )
  2123. echo
  2124. $as_echo "## ----------------- ##
  2125. ## Output variables. ##
  2126. ## ----------------- ##"
  2127. echo
  2128. for ac_var in $ac_subst_vars
  2129. do
  2130. eval ac_val=\$$ac_var
  2131. case $ac_val in
  2132. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2133. esac
  2134. $as_echo "$ac_var='\''$ac_val'\''"
  2135. done | sort
  2136. echo
  2137. if test -n "$ac_subst_files"; then
  2138. $as_echo "## ------------------- ##
  2139. ## File substitutions. ##
  2140. ## ------------------- ##"
  2141. echo
  2142. for ac_var in $ac_subst_files
  2143. do
  2144. eval ac_val=\$$ac_var
  2145. case $ac_val in
  2146. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2147. esac
  2148. $as_echo "$ac_var='\''$ac_val'\''"
  2149. done | sort
  2150. echo
  2151. fi
  2152. if test -s confdefs.h; then
  2153. $as_echo "## ----------- ##
  2154. ## confdefs.h. ##
  2155. ## ----------- ##"
  2156. echo
  2157. cat confdefs.h
  2158. echo
  2159. fi
  2160. test "$ac_signal" != 0 &&
  2161. $as_echo "$as_me: caught signal $ac_signal"
  2162. $as_echo "$as_me: exit $exit_status"
  2163. } >&5
  2164. rm -f core *.core core.conftest.* &&
  2165. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2166. exit $exit_status
  2167. ' 0
  2168. for ac_signal in 1 2 13 15; do
  2169. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2170. done
  2171. ac_signal=0
  2172. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2173. rm -f -r conftest* confdefs.h
  2174. $as_echo "/* confdefs.h */" > confdefs.h
  2175. # Predefined preprocessor variables.
  2176. cat >>confdefs.h <<_ACEOF
  2177. #define PACKAGE_NAME "$PACKAGE_NAME"
  2178. _ACEOF
  2179. cat >>confdefs.h <<_ACEOF
  2180. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2181. _ACEOF
  2182. cat >>confdefs.h <<_ACEOF
  2183. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2184. _ACEOF
  2185. cat >>confdefs.h <<_ACEOF
  2186. #define PACKAGE_STRING "$PACKAGE_STRING"
  2187. _ACEOF
  2188. cat >>confdefs.h <<_ACEOF
  2189. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2190. _ACEOF
  2191. cat >>confdefs.h <<_ACEOF
  2192. #define PACKAGE_URL "$PACKAGE_URL"
  2193. _ACEOF
  2194. # Let the site file select an alternate cache file if it wants to.
  2195. # Prefer an explicitly selected file to automatically selected ones.
  2196. ac_site_file1=NONE
  2197. ac_site_file2=NONE
  2198. if test -n "$CONFIG_SITE"; then
  2199. # We do not want a PATH search for config.site.
  2200. case $CONFIG_SITE in #((
  2201. -*) ac_site_file1=./$CONFIG_SITE;;
  2202. */*) ac_site_file1=$CONFIG_SITE;;
  2203. *) ac_site_file1=./$CONFIG_SITE;;
  2204. esac
  2205. elif test "x$prefix" != xNONE; then
  2206. ac_site_file1=$prefix/share/config.site
  2207. ac_site_file2=$prefix/etc/config.site
  2208. else
  2209. ac_site_file1=$ac_default_prefix/share/config.site
  2210. ac_site_file2=$ac_default_prefix/etc/config.site
  2211. fi
  2212. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2213. do
  2214. test "x$ac_site_file" = xNONE && continue
  2215. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2216. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2217. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2218. sed 's/^/| /' "$ac_site_file" >&5
  2219. . "$ac_site_file" \
  2220. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2221. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2222. as_fn_error $? "failed to load site script $ac_site_file
  2223. See \`config.log' for more details" "$LINENO" 5; }
  2224. fi
  2225. done
  2226. if test -r "$cache_file"; then
  2227. # Some versions of bash will fail to source /dev/null (special files
  2228. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2229. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2230. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2231. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2232. case $cache_file in
  2233. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2234. *) . "./$cache_file";;
  2235. esac
  2236. fi
  2237. else
  2238. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2239. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2240. >$cache_file
  2241. fi
  2242. as_fn_append ac_header_list " stdlib.h"
  2243. as_fn_append ac_header_list " unistd.h"
  2244. as_fn_append ac_header_list " sys/param.h"
  2245. # Check that the precious variables saved in the cache have kept the same
  2246. # value.
  2247. ac_cache_corrupted=false
  2248. for ac_var in $ac_precious_vars; do
  2249. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2250. eval ac_new_set=\$ac_env_${ac_var}_set
  2251. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2252. eval ac_new_val=\$ac_env_${ac_var}_value
  2253. case $ac_old_set,$ac_new_set in
  2254. set,)
  2255. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2256. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2257. ac_cache_corrupted=: ;;
  2258. ,set)
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2260. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2261. ac_cache_corrupted=: ;;
  2262. ,);;
  2263. *)
  2264. if test "x$ac_old_val" != "x$ac_new_val"; then
  2265. # differences in whitespace do not lead to failure.
  2266. ac_old_val_w=`echo x $ac_old_val`
  2267. ac_new_val_w=`echo x $ac_new_val`
  2268. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2269. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2270. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2271. ac_cache_corrupted=:
  2272. else
  2273. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2274. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2275. eval $ac_var=\$ac_old_val
  2276. fi
  2277. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2278. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2279. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2280. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2281. fi;;
  2282. esac
  2283. # Pass precious variables to config.status.
  2284. if test "$ac_new_set" = set; then
  2285. case $ac_new_val in
  2286. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2287. *) ac_arg=$ac_var=$ac_new_val ;;
  2288. esac
  2289. case " $ac_configure_args " in
  2290. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2291. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2292. esac
  2293. fi
  2294. done
  2295. if $ac_cache_corrupted; then
  2296. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2297. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2298. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2299. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2300. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2301. fi
  2302. ## -------------------- ##
  2303. ## Main body of script. ##
  2304. ## -------------------- ##
  2305. ac_ext=c
  2306. ac_cpp='$CPP $CPPFLAGS'
  2307. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2308. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2309. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2310. am__api_version='1.16'
  2311. ac_aux_dir=
  2312. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2313. if test -f "$ac_dir/install-sh"; then
  2314. ac_aux_dir=$ac_dir
  2315. ac_install_sh="$ac_aux_dir/install-sh -c"
  2316. break
  2317. elif test -f "$ac_dir/install.sh"; then
  2318. ac_aux_dir=$ac_dir
  2319. ac_install_sh="$ac_aux_dir/install.sh -c"
  2320. break
  2321. elif test -f "$ac_dir/shtool"; then
  2322. ac_aux_dir=$ac_dir
  2323. ac_install_sh="$ac_aux_dir/shtool install -c"
  2324. break
  2325. fi
  2326. done
  2327. if test -z "$ac_aux_dir"; then
  2328. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2329. fi
  2330. # These three variables are undocumented and unsupported,
  2331. # and are intended to be withdrawn in a future Autoconf release.
  2332. # They can cause serious problems if a builder's source tree is in a directory
  2333. # whose full name contains unusual characters.
  2334. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2335. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2336. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2337. # Find a good install program. We prefer a C program (faster),
  2338. # so one script is as good as another. But avoid the broken or
  2339. # incompatible versions:
  2340. # SysV /etc/install, /usr/sbin/install
  2341. # SunOS /usr/etc/install
  2342. # IRIX /sbin/install
  2343. # AIX /bin/install
  2344. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2345. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2346. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2347. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2348. # OS/2's system install, which has a completely different semantic
  2349. # ./install, which can be erroneously created by make from ./install.sh.
  2350. # Reject install programs that cannot install multiple files.
  2351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2352. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2353. if test -z "$INSTALL"; then
  2354. if ${ac_cv_path_install+:} false; then :
  2355. $as_echo_n "(cached) " >&6
  2356. else
  2357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2358. for as_dir in $PATH
  2359. do
  2360. IFS=$as_save_IFS
  2361. test -z "$as_dir" && as_dir=.
  2362. # Account for people who put trailing slashes in PATH elements.
  2363. case $as_dir/ in #((
  2364. ./ | .// | /[cC]/* | \
  2365. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2366. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2367. /usr/ucb/* ) ;;
  2368. *)
  2369. # OSF1 and SCO ODT 3.0 have their own names for install.
  2370. # Don't use installbsd from OSF since it installs stuff as root
  2371. # by default.
  2372. for ac_prog in ginstall scoinst install; do
  2373. for ac_exec_ext in '' $ac_executable_extensions; do
  2374. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2375. if test $ac_prog = install &&
  2376. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2377. # AIX install. It has an incompatible calling convention.
  2378. :
  2379. elif test $ac_prog = install &&
  2380. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2381. # program-specific install script used by HP pwplus--don't use.
  2382. :
  2383. else
  2384. rm -rf conftest.one conftest.two conftest.dir
  2385. echo one > conftest.one
  2386. echo two > conftest.two
  2387. mkdir conftest.dir
  2388. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2389. test -s conftest.one && test -s conftest.two &&
  2390. test -s conftest.dir/conftest.one &&
  2391. test -s conftest.dir/conftest.two
  2392. then
  2393. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2394. break 3
  2395. fi
  2396. fi
  2397. fi
  2398. done
  2399. done
  2400. ;;
  2401. esac
  2402. done
  2403. IFS=$as_save_IFS
  2404. rm -rf conftest.one conftest.two conftest.dir
  2405. fi
  2406. if test "${ac_cv_path_install+set}" = set; then
  2407. INSTALL=$ac_cv_path_install
  2408. else
  2409. # As a last resort, use the slow shell script. Don't cache a
  2410. # value for INSTALL within a source directory, because that will
  2411. # break other packages using the cache if that directory is
  2412. # removed, or if the value is a relative name.
  2413. INSTALL=$ac_install_sh
  2414. fi
  2415. fi
  2416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2417. $as_echo "$INSTALL" >&6; }
  2418. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2419. # It thinks the first close brace ends the variable substitution.
  2420. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2421. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2422. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2424. $as_echo_n "checking whether build environment is sane... " >&6; }
  2425. # Reject unsafe characters in $srcdir or the absolute working directory
  2426. # name. Accept space and tab only in the latter.
  2427. am_lf='
  2428. '
  2429. case `pwd` in
  2430. *[\\\"\#\$\&\'\`$am_lf]*)
  2431. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2432. esac
  2433. case $srcdir in
  2434. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2435. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2436. esac
  2437. # Do 'set' in a subshell so we don't clobber the current shell's
  2438. # arguments. Must try -L first in case configure is actually a
  2439. # symlink; some systems play weird games with the mod time of symlinks
  2440. # (eg FreeBSD returns the mod time of the symlink's containing
  2441. # directory).
  2442. if (
  2443. am_has_slept=no
  2444. for am_try in 1 2; do
  2445. echo "timestamp, slept: $am_has_slept" > conftest.file
  2446. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2447. if test "$*" = "X"; then
  2448. # -L didn't work.
  2449. set X `ls -t "$srcdir/configure" conftest.file`
  2450. fi
  2451. if test "$*" != "X $srcdir/configure conftest.file" \
  2452. && test "$*" != "X conftest.file $srcdir/configure"; then
  2453. # If neither matched, then we have a broken ls. This can happen
  2454. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2455. # broken ls alias from the environment. This has actually
  2456. # happened. Such a system could not be considered "sane".
  2457. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2458. alias in your environment" "$LINENO" 5
  2459. fi
  2460. if test "$2" = conftest.file || test $am_try -eq 2; then
  2461. break
  2462. fi
  2463. # Just in case.
  2464. sleep 1
  2465. am_has_slept=yes
  2466. done
  2467. test "$2" = conftest.file
  2468. )
  2469. then
  2470. # Ok.
  2471. :
  2472. else
  2473. as_fn_error $? "newly created file is older than distributed files!
  2474. Check your system clock" "$LINENO" 5
  2475. fi
  2476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2477. $as_echo "yes" >&6; }
  2478. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2479. # generated files are strictly newer.
  2480. am_sleep_pid=
  2481. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2482. ( sleep 1 ) &
  2483. am_sleep_pid=$!
  2484. fi
  2485. rm -f conftest.file
  2486. test "$program_prefix" != NONE &&
  2487. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2488. # Use a double $ so make ignores it.
  2489. test "$program_suffix" != NONE &&
  2490. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2491. # Double any \ or $.
  2492. # By default was `s,x,x', remove it if useless.
  2493. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2494. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2495. # Expand $ac_aux_dir to an absolute path.
  2496. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2497. if test x"${MISSING+set}" != xset; then
  2498. case $am_aux_dir in
  2499. *\ * | *\ *)
  2500. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2501. *)
  2502. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2503. esac
  2504. fi
  2505. # Use eval to expand $SHELL
  2506. if eval "$MISSING --is-lightweight"; then
  2507. am_missing_run="$MISSING "
  2508. else
  2509. am_missing_run=
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2511. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2512. fi
  2513. if test x"${install_sh+set}" != xset; then
  2514. case $am_aux_dir in
  2515. *\ * | *\ *)
  2516. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2517. *)
  2518. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2519. esac
  2520. fi
  2521. # Installed binaries are usually stripped using 'strip' when the user
  2522. # run "make install-strip". However 'strip' might not be the right
  2523. # tool to use in cross-compilation environments, therefore Automake
  2524. # will honor the 'STRIP' environment variable to overrule this program.
  2525. if test "$cross_compiling" != no; then
  2526. if test -n "$ac_tool_prefix"; then
  2527. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2528. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2530. $as_echo_n "checking for $ac_word... " >&6; }
  2531. if ${ac_cv_prog_STRIP+:} false; then :
  2532. $as_echo_n "(cached) " >&6
  2533. else
  2534. if test -n "$STRIP"; then
  2535. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2536. else
  2537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2538. for as_dir in $PATH
  2539. do
  2540. IFS=$as_save_IFS
  2541. test -z "$as_dir" && as_dir=.
  2542. for ac_exec_ext in '' $ac_executable_extensions; do
  2543. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2544. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2545. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2546. break 2
  2547. fi
  2548. done
  2549. done
  2550. IFS=$as_save_IFS
  2551. fi
  2552. fi
  2553. STRIP=$ac_cv_prog_STRIP
  2554. if test -n "$STRIP"; then
  2555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2556. $as_echo "$STRIP" >&6; }
  2557. else
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2559. $as_echo "no" >&6; }
  2560. fi
  2561. fi
  2562. if test -z "$ac_cv_prog_STRIP"; then
  2563. ac_ct_STRIP=$STRIP
  2564. # Extract the first word of "strip", so it can be a program name with args.
  2565. set dummy strip; ac_word=$2
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2567. $as_echo_n "checking for $ac_word... " >&6; }
  2568. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2569. $as_echo_n "(cached) " >&6
  2570. else
  2571. if test -n "$ac_ct_STRIP"; then
  2572. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2573. else
  2574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2575. for as_dir in $PATH
  2576. do
  2577. IFS=$as_save_IFS
  2578. test -z "$as_dir" && as_dir=.
  2579. for ac_exec_ext in '' $ac_executable_extensions; do
  2580. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2581. ac_cv_prog_ac_ct_STRIP="strip"
  2582. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2583. break 2
  2584. fi
  2585. done
  2586. done
  2587. IFS=$as_save_IFS
  2588. fi
  2589. fi
  2590. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2591. if test -n "$ac_ct_STRIP"; then
  2592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2593. $as_echo "$ac_ct_STRIP" >&6; }
  2594. else
  2595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2596. $as_echo "no" >&6; }
  2597. fi
  2598. if test "x$ac_ct_STRIP" = x; then
  2599. STRIP=":"
  2600. else
  2601. case $cross_compiling:$ac_tool_warned in
  2602. yes:)
  2603. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2604. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2605. ac_tool_warned=yes ;;
  2606. esac
  2607. STRIP=$ac_ct_STRIP
  2608. fi
  2609. else
  2610. STRIP="$ac_cv_prog_STRIP"
  2611. fi
  2612. fi
  2613. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2615. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2616. if test -z "$MKDIR_P"; then
  2617. if ${ac_cv_path_mkdir+:} false; then :
  2618. $as_echo_n "(cached) " >&6
  2619. else
  2620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2621. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2622. do
  2623. IFS=$as_save_IFS
  2624. test -z "$as_dir" && as_dir=.
  2625. for ac_prog in mkdir gmkdir; do
  2626. for ac_exec_ext in '' $ac_executable_extensions; do
  2627. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2628. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2629. 'mkdir (GNU coreutils) '* | \
  2630. 'mkdir (coreutils) '* | \
  2631. 'mkdir (fileutils) '4.1*)
  2632. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2633. break 3;;
  2634. esac
  2635. done
  2636. done
  2637. done
  2638. IFS=$as_save_IFS
  2639. fi
  2640. test -d ./--version && rmdir ./--version
  2641. if test "${ac_cv_path_mkdir+set}" = set; then
  2642. MKDIR_P="$ac_cv_path_mkdir -p"
  2643. else
  2644. # As a last resort, use the slow shell script. Don't cache a
  2645. # value for MKDIR_P within a source directory, because that will
  2646. # break other packages using the cache if that directory is
  2647. # removed, or if the value is a relative name.
  2648. MKDIR_P="$ac_install_sh -d"
  2649. fi
  2650. fi
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2652. $as_echo "$MKDIR_P" >&6; }
  2653. for ac_prog in gawk mawk nawk awk
  2654. do
  2655. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2656. set dummy $ac_prog; ac_word=$2
  2657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2658. $as_echo_n "checking for $ac_word... " >&6; }
  2659. if ${ac_cv_prog_AWK+:} false; then :
  2660. $as_echo_n "(cached) " >&6
  2661. else
  2662. if test -n "$AWK"; then
  2663. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2664. else
  2665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2666. for as_dir in $PATH
  2667. do
  2668. IFS=$as_save_IFS
  2669. test -z "$as_dir" && as_dir=.
  2670. for ac_exec_ext in '' $ac_executable_extensions; do
  2671. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2672. ac_cv_prog_AWK="$ac_prog"
  2673. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2674. break 2
  2675. fi
  2676. done
  2677. done
  2678. IFS=$as_save_IFS
  2679. fi
  2680. fi
  2681. AWK=$ac_cv_prog_AWK
  2682. if test -n "$AWK"; then
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2684. $as_echo "$AWK" >&6; }
  2685. else
  2686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2687. $as_echo "no" >&6; }
  2688. fi
  2689. test -n "$AWK" && break
  2690. done
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2692. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2693. set x ${MAKE-make}
  2694. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2695. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2696. $as_echo_n "(cached) " >&6
  2697. else
  2698. cat >conftest.make <<\_ACEOF
  2699. SHELL = /bin/sh
  2700. all:
  2701. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2702. _ACEOF
  2703. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2704. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2705. *@@@%%%=?*=@@@%%%*)
  2706. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2707. *)
  2708. eval ac_cv_prog_make_${ac_make}_set=no;;
  2709. esac
  2710. rm -f conftest.make
  2711. fi
  2712. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2714. $as_echo "yes" >&6; }
  2715. SET_MAKE=
  2716. else
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2718. $as_echo "no" >&6; }
  2719. SET_MAKE="MAKE=${MAKE-make}"
  2720. fi
  2721. rm -rf .tst 2>/dev/null
  2722. mkdir .tst 2>/dev/null
  2723. if test -d .tst; then
  2724. am__leading_dot=.
  2725. else
  2726. am__leading_dot=_
  2727. fi
  2728. rmdir .tst 2>/dev/null
  2729. # Check whether --enable-silent-rules was given.
  2730. if test "${enable_silent_rules+set}" = set; then :
  2731. enableval=$enable_silent_rules;
  2732. fi
  2733. case $enable_silent_rules in # (((
  2734. yes) AM_DEFAULT_VERBOSITY=0;;
  2735. no) AM_DEFAULT_VERBOSITY=1;;
  2736. *) AM_DEFAULT_VERBOSITY=1;;
  2737. esac
  2738. am_make=${MAKE-make}
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2740. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2741. if ${am_cv_make_support_nested_variables+:} false; then :
  2742. $as_echo_n "(cached) " >&6
  2743. else
  2744. if $as_echo 'TRUE=$(BAR$(V))
  2745. BAR0=false
  2746. BAR1=true
  2747. V=1
  2748. am__doit:
  2749. @$(TRUE)
  2750. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2751. am_cv_make_support_nested_variables=yes
  2752. else
  2753. am_cv_make_support_nested_variables=no
  2754. fi
  2755. fi
  2756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2757. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2758. if test $am_cv_make_support_nested_variables = yes; then
  2759. AM_V='$(V)'
  2760. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2761. else
  2762. AM_V=$AM_DEFAULT_VERBOSITY
  2763. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2764. fi
  2765. AM_BACKSLASH='\'
  2766. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2767. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2768. # is not polluted with repeated "-I."
  2769. am__isrc=' -I$(srcdir)'
  2770. # test to see if srcdir already configured
  2771. if test -f $srcdir/config.status; then
  2772. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2773. fi
  2774. fi
  2775. # test whether we have cygpath
  2776. if test -z "$CYGPATH_W"; then
  2777. if (cygpath --version) >/dev/null 2>/dev/null; then
  2778. CYGPATH_W='cygpath -w'
  2779. else
  2780. CYGPATH_W=echo
  2781. fi
  2782. fi
  2783. # Define the identity of the package.
  2784. PACKAGE='file'
  2785. VERSION='5.41'
  2786. cat >>confdefs.h <<_ACEOF
  2787. #define PACKAGE "$PACKAGE"
  2788. _ACEOF
  2789. cat >>confdefs.h <<_ACEOF
  2790. #define VERSION "$VERSION"
  2791. _ACEOF
  2792. # Some tools Automake needs.
  2793. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2794. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2795. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2796. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2797. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2798. # For better backward compatibility. To be removed once Automake 1.9.x
  2799. # dies out for good. For more background, see:
  2800. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2801. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2802. mkdir_p='$(MKDIR_P)'
  2803. # We need awk for the "check" target (and possibly the TAP driver). The
  2804. # system "awk" is bad on some platforms.
  2805. # Always define AMTAR for backward compatibility. Yes, it's still used
  2806. # in the wild :-( We should find a proper way to deprecate it ...
  2807. AMTAR='$${TAR-tar}'
  2808. # We'll loop over all known methods to create a tar archive until one works.
  2809. _am_tools='gnutar pax cpio none'
  2810. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2811. # POSIX will say in a future version that running "rm -f" with no argument
  2812. # is OK; and we want to be able to make that assumption in our Makefile
  2813. # recipes. So use an aggressive probe to check that the usage we want is
  2814. # actually supported "in the wild" to an acceptable degree.
  2815. # See automake bug#10828.
  2816. # To make any issue more visible, cause the running configure to be aborted
  2817. # by default if the 'rm' program in use doesn't match our expectations; the
  2818. # user can still override this though.
  2819. if rm -f && rm -fr && rm -rf; then : OK; else
  2820. cat >&2 <<'END'
  2821. Oops!
  2822. Your 'rm' program seems unable to run without file operands specified
  2823. on the command line, even when the '-f' option is present. This is contrary
  2824. to the behaviour of most rm programs out there, and not conforming with
  2825. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2826. Please tell bug-automake@gnu.org about your system, including the value
  2827. of your $PATH and any error possibly output before this message. This
  2828. can help us improve future automake versions.
  2829. END
  2830. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2831. echo 'Configuration will proceed anyway, since you have set the' >&2
  2832. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2833. echo >&2
  2834. else
  2835. cat >&2 <<'END'
  2836. Aborting the configuration process, to ensure you take notice of the issue.
  2837. You can download and install GNU coreutils to get an 'rm' implementation
  2838. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  2839. If you want to complete the configuration process using your problematic
  2840. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2841. to "yes", and re-run configure.
  2842. END
  2843. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2844. fi
  2845. fi
  2846. # Check whether --enable-silent-rules was given.
  2847. if test "${enable_silent_rules+set}" = set; then :
  2848. enableval=$enable_silent_rules;
  2849. fi
  2850. case $enable_silent_rules in # (((
  2851. yes) AM_DEFAULT_VERBOSITY=0;;
  2852. no) AM_DEFAULT_VERBOSITY=1;;
  2853. *) AM_DEFAULT_VERBOSITY=0;;
  2854. esac
  2855. am_make=${MAKE-make}
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2857. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2858. if ${am_cv_make_support_nested_variables+:} false; then :
  2859. $as_echo_n "(cached) " >&6
  2860. else
  2861. if $as_echo 'TRUE=$(BAR$(V))
  2862. BAR0=false
  2863. BAR1=true
  2864. V=1
  2865. am__doit:
  2866. @$(TRUE)
  2867. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2868. am_cv_make_support_nested_variables=yes
  2869. else
  2870. am_cv_make_support_nested_variables=no
  2871. fi
  2872. fi
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2874. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2875. if test $am_cv_make_support_nested_variables = yes; then
  2876. AM_V='$(V)'
  2877. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2878. else
  2879. AM_V=$AM_DEFAULT_VERBOSITY
  2880. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2881. fi
  2882. AM_BACKSLASH='\'
  2883. ac_config_headers="$ac_config_headers config.h"
  2884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
  2885. $as_echo_n "checking for builtin ELF support... " >&6; }
  2886. # Check whether --enable-elf was given.
  2887. if test "${enable_elf+set}" = set; then :
  2888. enableval=$enable_elf; if test "${enableval}" = yes; then
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2890. $as_echo "yes" >&6; }
  2891. $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
  2892. else
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2894. $as_echo "no" >&6; }
  2895. fi
  2896. else
  2897. # enable by default
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2899. $as_echo "yes" >&6; }
  2900. $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
  2901. fi
  2902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
  2903. $as_echo_n "checking for ELF core file support... " >&6; }
  2904. # Check whether --enable-elf-core was given.
  2905. if test "${enable_elf_core+set}" = set; then :
  2906. enableval=$enable_elf_core; if test "${enableval}" = yes; then
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2908. $as_echo "yes" >&6; }
  2909. $as_echo "#define ELFCORE 1" >>confdefs.h
  2910. else
  2911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2912. $as_echo "no" >&6; }
  2913. fi
  2914. else
  2915. # enable by default
  2916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2917. $as_echo "yes" >&6; }
  2918. $as_echo "#define ELFCORE 1" >>confdefs.h
  2919. fi
  2920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
  2921. $as_echo_n "checking for zlib support... " >&6; }
  2922. # Check whether --enable-zlib was given.
  2923. if test "${enable_zlib+set}" = set; then :
  2924. enableval=$enable_zlib;
  2925. fi
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5
  2927. $as_echo "$enable_zlib" >&6; }
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzlib support" >&5
  2929. $as_echo_n "checking for bzlib support... " >&6; }
  2930. # Check whether --enable-bzlib was given.
  2931. if test "${enable_bzlib+set}" = set; then :
  2932. enableval=$enable_bzlib;
  2933. fi
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_bzlib" >&5
  2935. $as_echo "$enable_bzlib" >&6; }
  2936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xzlib support" >&5
  2937. $as_echo_n "checking for xzlib support... " >&6; }
  2938. # Check whether --enable-xzlib was given.
  2939. if test "${enable_xzlib+set}" = set; then :
  2940. enableval=$enable_xzlib;
  2941. fi
  2942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xzlib" >&5
  2943. $as_echo "$enable_xzlib" >&6; }
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libseccomp support" >&5
  2945. $as_echo_n "checking for libseccomp support... " >&6; }
  2946. # Check whether --enable-libseccomp was given.
  2947. if test "${enable_libseccomp+set}" = set; then :
  2948. enableval=$enable_libseccomp;
  2949. fi
  2950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libseccomp" >&5
  2951. $as_echo "$enable_libseccomp" >&6; }
  2952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
  2953. $as_echo_n "checking for file formats in man section 5... " >&6; }
  2954. # Check whether --enable-fsect-man5 was given.
  2955. if test "${enable_fsect_man5+set}" = set; then :
  2956. enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
  2957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2958. $as_echo "yes" >&6; }
  2959. fsect=5
  2960. else
  2961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2962. $as_echo "no" >&6; }
  2963. fsect=4
  2964. fi
  2965. else
  2966. # disable by default
  2967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2968. $as_echo "no" >&6; }
  2969. fsect=4
  2970. fi
  2971. # Make sure we can run config.sub.
  2972. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2973. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2975. $as_echo_n "checking build system type... " >&6; }
  2976. if ${ac_cv_build+:} false; then :
  2977. $as_echo_n "(cached) " >&6
  2978. else
  2979. ac_build_alias=$build_alias
  2980. test "x$ac_build_alias" = x &&
  2981. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2982. test "x$ac_build_alias" = x &&
  2983. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2984. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2985. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2986. fi
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2988. $as_echo "$ac_cv_build" >&6; }
  2989. case $ac_cv_build in
  2990. *-*-*) ;;
  2991. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2992. esac
  2993. build=$ac_cv_build
  2994. ac_save_IFS=$IFS; IFS='-'
  2995. set x $ac_cv_build
  2996. shift
  2997. build_cpu=$1
  2998. build_vendor=$2
  2999. shift; shift
  3000. # Remember, the first character of IFS is used to create $*,
  3001. # except with old shells:
  3002. build_os=$*
  3003. IFS=$ac_save_IFS
  3004. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3006. $as_echo_n "checking host system type... " >&6; }
  3007. if ${ac_cv_host+:} false; then :
  3008. $as_echo_n "(cached) " >&6
  3009. else
  3010. if test "x$host_alias" = x; then
  3011. ac_cv_host=$ac_cv_build
  3012. else
  3013. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3014. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3015. fi
  3016. fi
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3018. $as_echo "$ac_cv_host" >&6; }
  3019. case $ac_cv_host in
  3020. *-*-*) ;;
  3021. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3022. esac
  3023. host=$ac_cv_host
  3024. ac_save_IFS=$IFS; IFS='-'
  3025. set x $ac_cv_host
  3026. shift
  3027. host_cpu=$1
  3028. host_vendor=$2
  3029. shift; shift
  3030. # Remember, the first character of IFS is used to create $*,
  3031. # except with old shells:
  3032. host_os=$*
  3033. IFS=$ac_save_IFS
  3034. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3035. case "$host_os" in
  3036. mingw32*)
  3037. MINGW=1
  3038. ;;
  3039. *)
  3040. MINGW=0
  3041. ;;
  3042. esac
  3043. if test "$MINGW" = 1; then
  3044. MINGW_TRUE=
  3045. MINGW_FALSE='#'
  3046. else
  3047. MINGW_TRUE='#'
  3048. MINGW_FALSE=
  3049. fi
  3050. pkgdatadir='$(datadir)/misc'
  3051. if test x$fsect = x5; then
  3052. FSECT5_TRUE=
  3053. FSECT5_FALSE='#'
  3054. else
  3055. FSECT5_TRUE='#'
  3056. FSECT5_FALSE=
  3057. fi
  3058. ac_ext=c
  3059. ac_cpp='$CPP $CPPFLAGS'
  3060. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3061. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3062. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3063. if test -n "$ac_tool_prefix"; then
  3064. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3065. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3067. $as_echo_n "checking for $ac_word... " >&6; }
  3068. if ${ac_cv_prog_CC+:} false; then :
  3069. $as_echo_n "(cached) " >&6
  3070. else
  3071. if test -n "$CC"; then
  3072. ac_cv_prog_CC="$CC" # Let the user override the test.
  3073. else
  3074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3075. for as_dir in $PATH
  3076. do
  3077. IFS=$as_save_IFS
  3078. test -z "$as_dir" && as_dir=.
  3079. for ac_exec_ext in '' $ac_executable_extensions; do
  3080. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3081. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3082. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3083. break 2
  3084. fi
  3085. done
  3086. done
  3087. IFS=$as_save_IFS
  3088. fi
  3089. fi
  3090. CC=$ac_cv_prog_CC
  3091. if test -n "$CC"; then
  3092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3093. $as_echo "$CC" >&6; }
  3094. else
  3095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3096. $as_echo "no" >&6; }
  3097. fi
  3098. fi
  3099. if test -z "$ac_cv_prog_CC"; then
  3100. ac_ct_CC=$CC
  3101. # Extract the first word of "gcc", so it can be a program name with args.
  3102. set dummy gcc; ac_word=$2
  3103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3104. $as_echo_n "checking for $ac_word... " >&6; }
  3105. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3106. $as_echo_n "(cached) " >&6
  3107. else
  3108. if test -n "$ac_ct_CC"; then
  3109. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3110. else
  3111. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3112. for as_dir in $PATH
  3113. do
  3114. IFS=$as_save_IFS
  3115. test -z "$as_dir" && as_dir=.
  3116. for ac_exec_ext in '' $ac_executable_extensions; do
  3117. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3118. ac_cv_prog_ac_ct_CC="gcc"
  3119. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3120. break 2
  3121. fi
  3122. done
  3123. done
  3124. IFS=$as_save_IFS
  3125. fi
  3126. fi
  3127. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3128. if test -n "$ac_ct_CC"; then
  3129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3130. $as_echo "$ac_ct_CC" >&6; }
  3131. else
  3132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3133. $as_echo "no" >&6; }
  3134. fi
  3135. if test "x$ac_ct_CC" = x; then
  3136. CC=""
  3137. else
  3138. case $cross_compiling:$ac_tool_warned in
  3139. yes:)
  3140. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3141. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3142. ac_tool_warned=yes ;;
  3143. esac
  3144. CC=$ac_ct_CC
  3145. fi
  3146. else
  3147. CC="$ac_cv_prog_CC"
  3148. fi
  3149. if test -z "$CC"; then
  3150. if test -n "$ac_tool_prefix"; then
  3151. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3152. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3154. $as_echo_n "checking for $ac_word... " >&6; }
  3155. if ${ac_cv_prog_CC+:} false; then :
  3156. $as_echo_n "(cached) " >&6
  3157. else
  3158. if test -n "$CC"; then
  3159. ac_cv_prog_CC="$CC" # Let the user override the test.
  3160. else
  3161. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3162. for as_dir in $PATH
  3163. do
  3164. IFS=$as_save_IFS
  3165. test -z "$as_dir" && as_dir=.
  3166. for ac_exec_ext in '' $ac_executable_extensions; do
  3167. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3168. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3169. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3170. break 2
  3171. fi
  3172. done
  3173. done
  3174. IFS=$as_save_IFS
  3175. fi
  3176. fi
  3177. CC=$ac_cv_prog_CC
  3178. if test -n "$CC"; then
  3179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3180. $as_echo "$CC" >&6; }
  3181. else
  3182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3183. $as_echo "no" >&6; }
  3184. fi
  3185. fi
  3186. fi
  3187. if test -z "$CC"; then
  3188. # Extract the first word of "cc", so it can be a program name with args.
  3189. set dummy cc; ac_word=$2
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3191. $as_echo_n "checking for $ac_word... " >&6; }
  3192. if ${ac_cv_prog_CC+:} false; then :
  3193. $as_echo_n "(cached) " >&6
  3194. else
  3195. if test -n "$CC"; then
  3196. ac_cv_prog_CC="$CC" # Let the user override the test.
  3197. else
  3198. ac_prog_rejected=no
  3199. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3200. for as_dir in $PATH
  3201. do
  3202. IFS=$as_save_IFS
  3203. test -z "$as_dir" && as_dir=.
  3204. for ac_exec_ext in '' $ac_executable_extensions; do
  3205. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3206. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3207. ac_prog_rejected=yes
  3208. continue
  3209. fi
  3210. ac_cv_prog_CC="cc"
  3211. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3212. break 2
  3213. fi
  3214. done
  3215. done
  3216. IFS=$as_save_IFS
  3217. if test $ac_prog_rejected = yes; then
  3218. # We found a bogon in the path, so make sure we never use it.
  3219. set dummy $ac_cv_prog_CC
  3220. shift
  3221. if test $# != 0; then
  3222. # We chose a different compiler from the bogus one.
  3223. # However, it has the same basename, so the bogon will be chosen
  3224. # first if we set CC to just the basename; use the full file name.
  3225. shift
  3226. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3227. fi
  3228. fi
  3229. fi
  3230. fi
  3231. CC=$ac_cv_prog_CC
  3232. if test -n "$CC"; then
  3233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3234. $as_echo "$CC" >&6; }
  3235. else
  3236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3237. $as_echo "no" >&6; }
  3238. fi
  3239. fi
  3240. if test -z "$CC"; then
  3241. if test -n "$ac_tool_prefix"; then
  3242. for ac_prog in cl.exe
  3243. do
  3244. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3245. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3247. $as_echo_n "checking for $ac_word... " >&6; }
  3248. if ${ac_cv_prog_CC+:} false; then :
  3249. $as_echo_n "(cached) " >&6
  3250. else
  3251. if test -n "$CC"; then
  3252. ac_cv_prog_CC="$CC" # Let the user override the test.
  3253. else
  3254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3255. for as_dir in $PATH
  3256. do
  3257. IFS=$as_save_IFS
  3258. test -z "$as_dir" && as_dir=.
  3259. for ac_exec_ext in '' $ac_executable_extensions; do
  3260. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3261. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3262. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3263. break 2
  3264. fi
  3265. done
  3266. done
  3267. IFS=$as_save_IFS
  3268. fi
  3269. fi
  3270. CC=$ac_cv_prog_CC
  3271. if test -n "$CC"; then
  3272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3273. $as_echo "$CC" >&6; }
  3274. else
  3275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3276. $as_echo "no" >&6; }
  3277. fi
  3278. test -n "$CC" && break
  3279. done
  3280. fi
  3281. if test -z "$CC"; then
  3282. ac_ct_CC=$CC
  3283. for ac_prog in cl.exe
  3284. do
  3285. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3286. set dummy $ac_prog; ac_word=$2
  3287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3288. $as_echo_n "checking for $ac_word... " >&6; }
  3289. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3290. $as_echo_n "(cached) " >&6
  3291. else
  3292. if test -n "$ac_ct_CC"; then
  3293. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3294. else
  3295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3296. for as_dir in $PATH
  3297. do
  3298. IFS=$as_save_IFS
  3299. test -z "$as_dir" && as_dir=.
  3300. for ac_exec_ext in '' $ac_executable_extensions; do
  3301. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3302. ac_cv_prog_ac_ct_CC="$ac_prog"
  3303. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3304. break 2
  3305. fi
  3306. done
  3307. done
  3308. IFS=$as_save_IFS
  3309. fi
  3310. fi
  3311. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3312. if test -n "$ac_ct_CC"; then
  3313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3314. $as_echo "$ac_ct_CC" >&6; }
  3315. else
  3316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3317. $as_echo "no" >&6; }
  3318. fi
  3319. test -n "$ac_ct_CC" && break
  3320. done
  3321. if test "x$ac_ct_CC" = x; then
  3322. CC=""
  3323. else
  3324. case $cross_compiling:$ac_tool_warned in
  3325. yes:)
  3326. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3327. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3328. ac_tool_warned=yes ;;
  3329. esac
  3330. CC=$ac_ct_CC
  3331. fi
  3332. fi
  3333. fi
  3334. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3335. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3336. as_fn_error $? "no acceptable C compiler found in \$PATH
  3337. See \`config.log' for more details" "$LINENO" 5; }
  3338. # Provide some information about the compiler.
  3339. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3340. set X $ac_compile
  3341. ac_compiler=$2
  3342. for ac_option in --version -v -V -qversion; do
  3343. { { ac_try="$ac_compiler $ac_option >&5"
  3344. case "(($ac_try" in
  3345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3346. *) ac_try_echo=$ac_try;;
  3347. esac
  3348. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3349. $as_echo "$ac_try_echo"; } >&5
  3350. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3351. ac_status=$?
  3352. if test -s conftest.err; then
  3353. sed '10a\
  3354. ... rest of stderr output deleted ...
  3355. 10q' conftest.err >conftest.er1
  3356. cat conftest.er1 >&5
  3357. fi
  3358. rm -f conftest.er1 conftest.err
  3359. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3360. test $ac_status = 0; }
  3361. done
  3362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3363. /* end confdefs.h. */
  3364. int
  3365. main ()
  3366. {
  3367. ;
  3368. return 0;
  3369. }
  3370. _ACEOF
  3371. ac_clean_files_save=$ac_clean_files
  3372. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3373. # Try to create an executable without -o first, disregard a.out.
  3374. # It will help us diagnose broken compilers, and finding out an intuition
  3375. # of exeext.
  3376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3377. $as_echo_n "checking whether the C compiler works... " >&6; }
  3378. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3379. # The possible output files:
  3380. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3381. ac_rmfiles=
  3382. for ac_file in $ac_files
  3383. do
  3384. case $ac_file in
  3385. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3386. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3387. esac
  3388. done
  3389. rm -f $ac_rmfiles
  3390. if { { ac_try="$ac_link_default"
  3391. case "(($ac_try" in
  3392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3393. *) ac_try_echo=$ac_try;;
  3394. esac
  3395. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3396. $as_echo "$ac_try_echo"; } >&5
  3397. (eval "$ac_link_default") 2>&5
  3398. ac_status=$?
  3399. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3400. test $ac_status = 0; }; then :
  3401. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3402. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3403. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3404. # so that the user can short-circuit this test for compilers unknown to
  3405. # Autoconf.
  3406. for ac_file in $ac_files ''
  3407. do
  3408. test -f "$ac_file" || continue
  3409. case $ac_file in
  3410. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3411. ;;
  3412. [ab].out )
  3413. # We found the default executable, but exeext='' is most
  3414. # certainly right.
  3415. break;;
  3416. *.* )
  3417. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3418. then :; else
  3419. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3420. fi
  3421. # We set ac_cv_exeext here because the later test for it is not
  3422. # safe: cross compilers may not add the suffix if given an `-o'
  3423. # argument, so we may need to know it at that point already.
  3424. # Even if this section looks crufty: it has the advantage of
  3425. # actually working.
  3426. break;;
  3427. * )
  3428. break;;
  3429. esac
  3430. done
  3431. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3432. else
  3433. ac_file=''
  3434. fi
  3435. if test -z "$ac_file"; then :
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3437. $as_echo "no" >&6; }
  3438. $as_echo "$as_me: failed program was:" >&5
  3439. sed 's/^/| /' conftest.$ac_ext >&5
  3440. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3441. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3442. as_fn_error 77 "C compiler cannot create executables
  3443. See \`config.log' for more details" "$LINENO" 5; }
  3444. else
  3445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3446. $as_echo "yes" >&6; }
  3447. fi
  3448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3449. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3451. $as_echo "$ac_file" >&6; }
  3452. ac_exeext=$ac_cv_exeext
  3453. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3454. ac_clean_files=$ac_clean_files_save
  3455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3456. $as_echo_n "checking for suffix of executables... " >&6; }
  3457. if { { ac_try="$ac_link"
  3458. case "(($ac_try" in
  3459. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3460. *) ac_try_echo=$ac_try;;
  3461. esac
  3462. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3463. $as_echo "$ac_try_echo"; } >&5
  3464. (eval "$ac_link") 2>&5
  3465. ac_status=$?
  3466. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3467. test $ac_status = 0; }; then :
  3468. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3469. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3470. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3471. # `rm'.
  3472. for ac_file in conftest.exe conftest conftest.*; do
  3473. test -f "$ac_file" || continue
  3474. case $ac_file in
  3475. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3476. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3477. break;;
  3478. * ) break;;
  3479. esac
  3480. done
  3481. else
  3482. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3483. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3484. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3485. See \`config.log' for more details" "$LINENO" 5; }
  3486. fi
  3487. rm -f conftest conftest$ac_cv_exeext
  3488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3489. $as_echo "$ac_cv_exeext" >&6; }
  3490. rm -f conftest.$ac_ext
  3491. EXEEXT=$ac_cv_exeext
  3492. ac_exeext=$EXEEXT
  3493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3494. /* end confdefs.h. */
  3495. #include <stdio.h>
  3496. int
  3497. main ()
  3498. {
  3499. FILE *f = fopen ("conftest.out", "w");
  3500. return ferror (f) || fclose (f) != 0;
  3501. ;
  3502. return 0;
  3503. }
  3504. _ACEOF
  3505. ac_clean_files="$ac_clean_files conftest.out"
  3506. # Check that the compiler produces executables we can run. If not, either
  3507. # the compiler is broken, or we cross compile.
  3508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3509. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3510. if test "$cross_compiling" != yes; then
  3511. { { ac_try="$ac_link"
  3512. case "(($ac_try" in
  3513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3514. *) ac_try_echo=$ac_try;;
  3515. esac
  3516. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3517. $as_echo "$ac_try_echo"; } >&5
  3518. (eval "$ac_link") 2>&5
  3519. ac_status=$?
  3520. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3521. test $ac_status = 0; }
  3522. if { ac_try='./conftest$ac_cv_exeext'
  3523. { { case "(($ac_try" in
  3524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3525. *) ac_try_echo=$ac_try;;
  3526. esac
  3527. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3528. $as_echo "$ac_try_echo"; } >&5
  3529. (eval "$ac_try") 2>&5
  3530. ac_status=$?
  3531. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3532. test $ac_status = 0; }; }; then
  3533. cross_compiling=no
  3534. else
  3535. if test "$cross_compiling" = maybe; then
  3536. cross_compiling=yes
  3537. else
  3538. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3539. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3540. as_fn_error $? "cannot run C compiled programs.
  3541. If you meant to cross compile, use \`--host'.
  3542. See \`config.log' for more details" "$LINENO" 5; }
  3543. fi
  3544. fi
  3545. fi
  3546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3547. $as_echo "$cross_compiling" >&6; }
  3548. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3549. ac_clean_files=$ac_clean_files_save
  3550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3551. $as_echo_n "checking for suffix of object files... " >&6; }
  3552. if ${ac_cv_objext+:} false; then :
  3553. $as_echo_n "(cached) " >&6
  3554. else
  3555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3556. /* end confdefs.h. */
  3557. int
  3558. main ()
  3559. {
  3560. ;
  3561. return 0;
  3562. }
  3563. _ACEOF
  3564. rm -f conftest.o conftest.obj
  3565. if { { ac_try="$ac_compile"
  3566. case "(($ac_try" in
  3567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3568. *) ac_try_echo=$ac_try;;
  3569. esac
  3570. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3571. $as_echo "$ac_try_echo"; } >&5
  3572. (eval "$ac_compile") 2>&5
  3573. ac_status=$?
  3574. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3575. test $ac_status = 0; }; then :
  3576. for ac_file in conftest.o conftest.obj conftest.*; do
  3577. test -f "$ac_file" || continue;
  3578. case $ac_file in
  3579. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3580. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3581. break;;
  3582. esac
  3583. done
  3584. else
  3585. $as_echo "$as_me: failed program was:" >&5
  3586. sed 's/^/| /' conftest.$ac_ext >&5
  3587. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3588. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3589. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3590. See \`config.log' for more details" "$LINENO" 5; }
  3591. fi
  3592. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3593. fi
  3594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3595. $as_echo "$ac_cv_objext" >&6; }
  3596. OBJEXT=$ac_cv_objext
  3597. ac_objext=$OBJEXT
  3598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3599. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3600. if ${ac_cv_c_compiler_gnu+:} false; then :
  3601. $as_echo_n "(cached) " >&6
  3602. else
  3603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3604. /* end confdefs.h. */
  3605. int
  3606. main ()
  3607. {
  3608. #ifndef __GNUC__
  3609. choke me
  3610. #endif
  3611. ;
  3612. return 0;
  3613. }
  3614. _ACEOF
  3615. if ac_fn_c_try_compile "$LINENO"; then :
  3616. ac_compiler_gnu=yes
  3617. else
  3618. ac_compiler_gnu=no
  3619. fi
  3620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3621. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3622. fi
  3623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3624. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3625. if test $ac_compiler_gnu = yes; then
  3626. GCC=yes
  3627. else
  3628. GCC=
  3629. fi
  3630. ac_test_CFLAGS=${CFLAGS+set}
  3631. ac_save_CFLAGS=$CFLAGS
  3632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3633. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3634. if ${ac_cv_prog_cc_g+:} false; then :
  3635. $as_echo_n "(cached) " >&6
  3636. else
  3637. ac_save_c_werror_flag=$ac_c_werror_flag
  3638. ac_c_werror_flag=yes
  3639. ac_cv_prog_cc_g=no
  3640. CFLAGS="-g"
  3641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3642. /* end confdefs.h. */
  3643. int
  3644. main ()
  3645. {
  3646. ;
  3647. return 0;
  3648. }
  3649. _ACEOF
  3650. if ac_fn_c_try_compile "$LINENO"; then :
  3651. ac_cv_prog_cc_g=yes
  3652. else
  3653. CFLAGS=""
  3654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3655. /* end confdefs.h. */
  3656. int
  3657. main ()
  3658. {
  3659. ;
  3660. return 0;
  3661. }
  3662. _ACEOF
  3663. if ac_fn_c_try_compile "$LINENO"; then :
  3664. else
  3665. ac_c_werror_flag=$ac_save_c_werror_flag
  3666. CFLAGS="-g"
  3667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3668. /* end confdefs.h. */
  3669. int
  3670. main ()
  3671. {
  3672. ;
  3673. return 0;
  3674. }
  3675. _ACEOF
  3676. if ac_fn_c_try_compile "$LINENO"; then :
  3677. ac_cv_prog_cc_g=yes
  3678. fi
  3679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3680. fi
  3681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3682. fi
  3683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3684. ac_c_werror_flag=$ac_save_c_werror_flag
  3685. fi
  3686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3687. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3688. if test "$ac_test_CFLAGS" = set; then
  3689. CFLAGS=$ac_save_CFLAGS
  3690. elif test $ac_cv_prog_cc_g = yes; then
  3691. if test "$GCC" = yes; then
  3692. CFLAGS="-g -O2"
  3693. else
  3694. CFLAGS="-g"
  3695. fi
  3696. else
  3697. if test "$GCC" = yes; then
  3698. CFLAGS="-O2"
  3699. else
  3700. CFLAGS=
  3701. fi
  3702. fi
  3703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3704. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3705. if ${ac_cv_prog_cc_c89+:} false; then :
  3706. $as_echo_n "(cached) " >&6
  3707. else
  3708. ac_cv_prog_cc_c89=no
  3709. ac_save_CC=$CC
  3710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3711. /* end confdefs.h. */
  3712. #include <stdarg.h>
  3713. #include <stdio.h>
  3714. struct stat;
  3715. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3716. struct buf { int x; };
  3717. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3718. static char *e (p, i)
  3719. char **p;
  3720. int i;
  3721. {
  3722. return p[i];
  3723. }
  3724. static char *f (char * (*g) (char **, int), char **p, ...)
  3725. {
  3726. char *s;
  3727. va_list v;
  3728. va_start (v,p);
  3729. s = g (p, va_arg (v,int));
  3730. va_end (v);
  3731. return s;
  3732. }
  3733. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3734. function prototypes and stuff, but not '\xHH' hex character constants.
  3735. These don't provoke an error unfortunately, instead are silently treated
  3736. as 'x'. The following induces an error, until -std is added to get
  3737. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3738. array size at least. It's necessary to write '\x00'==0 to get something
  3739. that's true only with -std. */
  3740. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3741. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3742. inside strings and character constants. */
  3743. #define FOO(x) 'x'
  3744. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3745. int test (int i, double x);
  3746. struct s1 {int (*f) (int a);};
  3747. struct s2 {int (*f) (double a);};
  3748. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3749. int argc;
  3750. char **argv;
  3751. int
  3752. main ()
  3753. {
  3754. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3755. ;
  3756. return 0;
  3757. }
  3758. _ACEOF
  3759. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3760. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3761. do
  3762. CC="$ac_save_CC $ac_arg"
  3763. if ac_fn_c_try_compile "$LINENO"; then :
  3764. ac_cv_prog_cc_c89=$ac_arg
  3765. fi
  3766. rm -f core conftest.err conftest.$ac_objext
  3767. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3768. done
  3769. rm -f conftest.$ac_ext
  3770. CC=$ac_save_CC
  3771. fi
  3772. # AC_CACHE_VAL
  3773. case "x$ac_cv_prog_cc_c89" in
  3774. x)
  3775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3776. $as_echo "none needed" >&6; } ;;
  3777. xno)
  3778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3779. $as_echo "unsupported" >&6; } ;;
  3780. *)
  3781. CC="$CC $ac_cv_prog_cc_c89"
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3783. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3784. esac
  3785. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3786. fi
  3787. ac_ext=c
  3788. ac_cpp='$CPP $CPPFLAGS'
  3789. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3790. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3791. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3792. ac_ext=c
  3793. ac_cpp='$CPP $CPPFLAGS'
  3794. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3795. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3796. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3798. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3799. if ${am_cv_prog_cc_c_o+:} false; then :
  3800. $as_echo_n "(cached) " >&6
  3801. else
  3802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3803. /* end confdefs.h. */
  3804. int
  3805. main ()
  3806. {
  3807. ;
  3808. return 0;
  3809. }
  3810. _ACEOF
  3811. # Make sure it works both with $CC and with simple cc.
  3812. # Following AC_PROG_CC_C_O, we do the test twice because some
  3813. # compilers refuse to overwrite an existing .o file with -o,
  3814. # though they will create one.
  3815. am_cv_prog_cc_c_o=yes
  3816. for am_i in 1 2; do
  3817. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3818. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3819. ac_status=$?
  3820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3821. (exit $ac_status); } \
  3822. && test -f conftest2.$ac_objext; then
  3823. : OK
  3824. else
  3825. am_cv_prog_cc_c_o=no
  3826. break
  3827. fi
  3828. done
  3829. rm -f core conftest*
  3830. unset am_i
  3831. fi
  3832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3833. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3834. if test "$am_cv_prog_cc_c_o" != yes; then
  3835. # Losing compiler, so override with the script.
  3836. # FIXME: It is wrong to rewrite CC.
  3837. # But if we don't then we get into trouble of one sort or another.
  3838. # A longer-term fix would be to have automake use am__CC in this case,
  3839. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3840. CC="$am_aux_dir/compile $CC"
  3841. fi
  3842. ac_ext=c
  3843. ac_cpp='$CPP $CPPFLAGS'
  3844. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3845. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3846. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3847. DEPDIR="${am__leading_dot}deps"
  3848. ac_config_commands="$ac_config_commands depfiles"
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3850. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3851. cat > confinc.mk << 'END'
  3852. am__doit:
  3853. @echo this is the am__doit target >confinc.out
  3854. .PHONY: am__doit
  3855. END
  3856. am__include="#"
  3857. am__quote=
  3858. # BSD make does it like this.
  3859. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3860. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3861. echo 'include confinc.mk # ignored' > confmf.GNU
  3862. _am_result=no
  3863. for s in GNU BSD; do
  3864. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3865. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3866. ac_status=$?
  3867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3868. (exit $ac_status); }
  3869. case $?:`cat confinc.out 2>/dev/null` in #(
  3870. '0:this is the am__doit target') :
  3871. case $s in #(
  3872. BSD) :
  3873. am__include='.include' am__quote='"' ;; #(
  3874. *) :
  3875. am__include='include' am__quote='' ;;
  3876. esac ;; #(
  3877. *) :
  3878. ;;
  3879. esac
  3880. if test "$am__include" != "#"; then
  3881. _am_result="yes ($s style)"
  3882. break
  3883. fi
  3884. done
  3885. rm -f confinc.* confmf.*
  3886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3887. $as_echo "${_am_result}" >&6; }
  3888. # Check whether --enable-dependency-tracking was given.
  3889. if test "${enable_dependency_tracking+set}" = set; then :
  3890. enableval=$enable_dependency_tracking;
  3891. fi
  3892. if test "x$enable_dependency_tracking" != xno; then
  3893. am_depcomp="$ac_aux_dir/depcomp"
  3894. AMDEPBACKSLASH='\'
  3895. am__nodep='_no'
  3896. fi
  3897. if test "x$enable_dependency_tracking" != xno; then
  3898. AMDEP_TRUE=
  3899. AMDEP_FALSE='#'
  3900. else
  3901. AMDEP_TRUE='#'
  3902. AMDEP_FALSE=
  3903. fi
  3904. depcc="$CC" am_compiler_list=
  3905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3906. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3907. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3908. $as_echo_n "(cached) " >&6
  3909. else
  3910. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3911. # We make a subdir and do the tests there. Otherwise we can end up
  3912. # making bogus files that we don't know about and never remove. For
  3913. # instance it was reported that on HP-UX the gcc test will end up
  3914. # making a dummy file named 'D' -- because '-MD' means "put the output
  3915. # in D".
  3916. rm -rf conftest.dir
  3917. mkdir conftest.dir
  3918. # Copy depcomp to subdir because otherwise we won't find it if we're
  3919. # using a relative directory.
  3920. cp "$am_depcomp" conftest.dir
  3921. cd conftest.dir
  3922. # We will build objects and dependencies in a subdirectory because
  3923. # it helps to detect inapplicable dependency modes. For instance
  3924. # both Tru64's cc and ICC support -MD to output dependencies as a
  3925. # side effect of compilation, but ICC will put the dependencies in
  3926. # the current directory while Tru64 will put them in the object
  3927. # directory.
  3928. mkdir sub
  3929. am_cv_CC_dependencies_compiler_type=none
  3930. if test "$am_compiler_list" = ""; then
  3931. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3932. fi
  3933. am__universal=false
  3934. case " $depcc " in #(
  3935. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3936. esac
  3937. for depmode in $am_compiler_list; do
  3938. # Setup a source with many dependencies, because some compilers
  3939. # like to wrap large dependency lists on column 80 (with \), and
  3940. # we should not choose a depcomp mode which is confused by this.
  3941. #
  3942. # We need to recreate these files for each test, as the compiler may
  3943. # overwrite some of them when testing with obscure command lines.
  3944. # This happens at least with the AIX C compiler.
  3945. : > sub/conftest.c
  3946. for i in 1 2 3 4 5 6; do
  3947. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3948. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3949. # Solaris 10 /bin/sh.
  3950. echo '/* dummy */' > sub/conftst$i.h
  3951. done
  3952. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3953. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3954. # mode. It turns out that the SunPro C++ compiler does not properly
  3955. # handle '-M -o', and we need to detect this. Also, some Intel
  3956. # versions had trouble with output in subdirs.
  3957. am__obj=sub/conftest.${OBJEXT-o}
  3958. am__minus_obj="-o $am__obj"
  3959. case $depmode in
  3960. gcc)
  3961. # This depmode causes a compiler race in universal mode.
  3962. test "$am__universal" = false || continue
  3963. ;;
  3964. nosideeffect)
  3965. # After this tag, mechanisms are not by side-effect, so they'll
  3966. # only be used when explicitly requested.
  3967. if test "x$enable_dependency_tracking" = xyes; then
  3968. continue
  3969. else
  3970. break
  3971. fi
  3972. ;;
  3973. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3974. # This compiler won't grok '-c -o', but also, the minuso test has
  3975. # not run yet. These depmodes are late enough in the game, and
  3976. # so weak that their functioning should not be impacted.
  3977. am__obj=conftest.${OBJEXT-o}
  3978. am__minus_obj=
  3979. ;;
  3980. none) break ;;
  3981. esac
  3982. if depmode=$depmode \
  3983. source=sub/conftest.c object=$am__obj \
  3984. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3985. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3986. >/dev/null 2>conftest.err &&
  3987. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3988. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3989. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3990. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3991. # icc doesn't choke on unknown options, it will just issue warnings
  3992. # or remarks (even with -Werror). So we grep stderr for any message
  3993. # that says an option was ignored or not supported.
  3994. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3995. # icc: Command line warning: ignoring option '-M'; no argument required
  3996. # The diagnosis changed in icc 8.0:
  3997. # icc: Command line remark: option '-MP' not supported
  3998. if (grep 'ignoring option' conftest.err ||
  3999. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4000. am_cv_CC_dependencies_compiler_type=$depmode
  4001. break
  4002. fi
  4003. fi
  4004. done
  4005. cd ..
  4006. rm -rf conftest.dir
  4007. else
  4008. am_cv_CC_dependencies_compiler_type=none
  4009. fi
  4010. fi
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4012. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4013. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4014. if
  4015. test "x$enable_dependency_tracking" != xno \
  4016. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4017. am__fastdepCC_TRUE=
  4018. am__fastdepCC_FALSE='#'
  4019. else
  4020. am__fastdepCC_TRUE='#'
  4021. am__fastdepCC_FALSE=
  4022. fi
  4023. ac_ext=c
  4024. ac_cpp='$CPP $CPPFLAGS'
  4025. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4026. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4027. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4029. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4030. # On Suns, sometimes $CPP names a directory.
  4031. if test -n "$CPP" && test -d "$CPP"; then
  4032. CPP=
  4033. fi
  4034. if test -z "$CPP"; then
  4035. if ${ac_cv_prog_CPP+:} false; then :
  4036. $as_echo_n "(cached) " >&6
  4037. else
  4038. # Double quotes because CPP needs to be expanded
  4039. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4040. do
  4041. ac_preproc_ok=false
  4042. for ac_c_preproc_warn_flag in '' yes
  4043. do
  4044. # Use a header file that comes with gcc, so configuring glibc
  4045. # with a fresh cross-compiler works.
  4046. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4047. # <limits.h> exists even on freestanding compilers.
  4048. # On the NeXT, cc -E runs the code through the compiler's parser,
  4049. # not just through cpp. "Syntax error" is here to catch this case.
  4050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4051. /* end confdefs.h. */
  4052. #ifdef __STDC__
  4053. # include <limits.h>
  4054. #else
  4055. # include <assert.h>
  4056. #endif
  4057. Syntax error
  4058. _ACEOF
  4059. if ac_fn_c_try_cpp "$LINENO"; then :
  4060. else
  4061. # Broken: fails on valid input.
  4062. continue
  4063. fi
  4064. rm -f conftest.err conftest.i conftest.$ac_ext
  4065. # OK, works on sane cases. Now check whether nonexistent headers
  4066. # can be detected and how.
  4067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4068. /* end confdefs.h. */
  4069. #include <ac_nonexistent.h>
  4070. _ACEOF
  4071. if ac_fn_c_try_cpp "$LINENO"; then :
  4072. # Broken: success on invalid input.
  4073. continue
  4074. else
  4075. # Passes both tests.
  4076. ac_preproc_ok=:
  4077. break
  4078. fi
  4079. rm -f conftest.err conftest.i conftest.$ac_ext
  4080. done
  4081. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4082. rm -f conftest.i conftest.err conftest.$ac_ext
  4083. if $ac_preproc_ok; then :
  4084. break
  4085. fi
  4086. done
  4087. ac_cv_prog_CPP=$CPP
  4088. fi
  4089. CPP=$ac_cv_prog_CPP
  4090. else
  4091. ac_cv_prog_CPP=$CPP
  4092. fi
  4093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4094. $as_echo "$CPP" >&6; }
  4095. ac_preproc_ok=false
  4096. for ac_c_preproc_warn_flag in '' yes
  4097. do
  4098. # Use a header file that comes with gcc, so configuring glibc
  4099. # with a fresh cross-compiler works.
  4100. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4101. # <limits.h> exists even on freestanding compilers.
  4102. # On the NeXT, cc -E runs the code through the compiler's parser,
  4103. # not just through cpp. "Syntax error" is here to catch this case.
  4104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4105. /* end confdefs.h. */
  4106. #ifdef __STDC__
  4107. # include <limits.h>
  4108. #else
  4109. # include <assert.h>
  4110. #endif
  4111. Syntax error
  4112. _ACEOF
  4113. if ac_fn_c_try_cpp "$LINENO"; then :
  4114. else
  4115. # Broken: fails on valid input.
  4116. continue
  4117. fi
  4118. rm -f conftest.err conftest.i conftest.$ac_ext
  4119. # OK, works on sane cases. Now check whether nonexistent headers
  4120. # can be detected and how.
  4121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4122. /* end confdefs.h. */
  4123. #include <ac_nonexistent.h>
  4124. _ACEOF
  4125. if ac_fn_c_try_cpp "$LINENO"; then :
  4126. # Broken: success on invalid input.
  4127. continue
  4128. else
  4129. # Passes both tests.
  4130. ac_preproc_ok=:
  4131. break
  4132. fi
  4133. rm -f conftest.err conftest.i conftest.$ac_ext
  4134. done
  4135. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4136. rm -f conftest.i conftest.err conftest.$ac_ext
  4137. if $ac_preproc_ok; then :
  4138. else
  4139. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4140. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4141. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4142. See \`config.log' for more details" "$LINENO" 5; }
  4143. fi
  4144. ac_ext=c
  4145. ac_cpp='$CPP $CPPFLAGS'
  4146. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4147. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4148. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4150. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4151. if ${ac_cv_path_GREP+:} false; then :
  4152. $as_echo_n "(cached) " >&6
  4153. else
  4154. if test -z "$GREP"; then
  4155. ac_path_GREP_found=false
  4156. # Loop through the user's path and test for each of PROGNAME-LIST
  4157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4158. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4159. do
  4160. IFS=$as_save_IFS
  4161. test -z "$as_dir" && as_dir=.
  4162. for ac_prog in grep ggrep; do
  4163. for ac_exec_ext in '' $ac_executable_extensions; do
  4164. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4165. as_fn_executable_p "$ac_path_GREP" || continue
  4166. # Check for GNU ac_path_GREP and select it if it is found.
  4167. # Check for GNU $ac_path_GREP
  4168. case `"$ac_path_GREP" --version 2>&1` in
  4169. *GNU*)
  4170. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4171. *)
  4172. ac_count=0
  4173. $as_echo_n 0123456789 >"conftest.in"
  4174. while :
  4175. do
  4176. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4177. mv "conftest.tmp" "conftest.in"
  4178. cp "conftest.in" "conftest.nl"
  4179. $as_echo 'GREP' >> "conftest.nl"
  4180. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4181. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4182. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4183. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4184. # Best one so far, save it but keep looking for a better one
  4185. ac_cv_path_GREP="$ac_path_GREP"
  4186. ac_path_GREP_max=$ac_count
  4187. fi
  4188. # 10*(2^10) chars as input seems more than enough
  4189. test $ac_count -gt 10 && break
  4190. done
  4191. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4192. esac
  4193. $ac_path_GREP_found && break 3
  4194. done
  4195. done
  4196. done
  4197. IFS=$as_save_IFS
  4198. if test -z "$ac_cv_path_GREP"; then
  4199. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4200. fi
  4201. else
  4202. ac_cv_path_GREP=$GREP
  4203. fi
  4204. fi
  4205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4206. $as_echo "$ac_cv_path_GREP" >&6; }
  4207. GREP="$ac_cv_path_GREP"
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4209. $as_echo_n "checking for egrep... " >&6; }
  4210. if ${ac_cv_path_EGREP+:} false; then :
  4211. $as_echo_n "(cached) " >&6
  4212. else
  4213. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4214. then ac_cv_path_EGREP="$GREP -E"
  4215. else
  4216. if test -z "$EGREP"; then
  4217. ac_path_EGREP_found=false
  4218. # Loop through the user's path and test for each of PROGNAME-LIST
  4219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4220. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4221. do
  4222. IFS=$as_save_IFS
  4223. test -z "$as_dir" && as_dir=.
  4224. for ac_prog in egrep; do
  4225. for ac_exec_ext in '' $ac_executable_extensions; do
  4226. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4227. as_fn_executable_p "$ac_path_EGREP" || continue
  4228. # Check for GNU ac_path_EGREP and select it if it is found.
  4229. # Check for GNU $ac_path_EGREP
  4230. case `"$ac_path_EGREP" --version 2>&1` in
  4231. *GNU*)
  4232. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4233. *)
  4234. ac_count=0
  4235. $as_echo_n 0123456789 >"conftest.in"
  4236. while :
  4237. do
  4238. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4239. mv "conftest.tmp" "conftest.in"
  4240. cp "conftest.in" "conftest.nl"
  4241. $as_echo 'EGREP' >> "conftest.nl"
  4242. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4243. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4244. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4245. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4246. # Best one so far, save it but keep looking for a better one
  4247. ac_cv_path_EGREP="$ac_path_EGREP"
  4248. ac_path_EGREP_max=$ac_count
  4249. fi
  4250. # 10*(2^10) chars as input seems more than enough
  4251. test $ac_count -gt 10 && break
  4252. done
  4253. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4254. esac
  4255. $ac_path_EGREP_found && break 3
  4256. done
  4257. done
  4258. done
  4259. IFS=$as_save_IFS
  4260. if test -z "$ac_cv_path_EGREP"; then
  4261. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4262. fi
  4263. else
  4264. ac_cv_path_EGREP=$EGREP
  4265. fi
  4266. fi
  4267. fi
  4268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4269. $as_echo "$ac_cv_path_EGREP" >&6; }
  4270. EGREP="$ac_cv_path_EGREP"
  4271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4272. $as_echo_n "checking for ANSI C header files... " >&6; }
  4273. if ${ac_cv_header_stdc+:} false; then :
  4274. $as_echo_n "(cached) " >&6
  4275. else
  4276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4277. /* end confdefs.h. */
  4278. #include <stdlib.h>
  4279. #include <stdarg.h>
  4280. #include <string.h>
  4281. #include <float.h>
  4282. int
  4283. main ()
  4284. {
  4285. ;
  4286. return 0;
  4287. }
  4288. _ACEOF
  4289. if ac_fn_c_try_compile "$LINENO"; then :
  4290. ac_cv_header_stdc=yes
  4291. else
  4292. ac_cv_header_stdc=no
  4293. fi
  4294. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4295. if test $ac_cv_header_stdc = yes; then
  4296. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4298. /* end confdefs.h. */
  4299. #include <string.h>
  4300. _ACEOF
  4301. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4302. $EGREP "memchr" >/dev/null 2>&1; then :
  4303. else
  4304. ac_cv_header_stdc=no
  4305. fi
  4306. rm -f conftest*
  4307. fi
  4308. if test $ac_cv_header_stdc = yes; then
  4309. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4311. /* end confdefs.h. */
  4312. #include <stdlib.h>
  4313. _ACEOF
  4314. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4315. $EGREP "free" >/dev/null 2>&1; then :
  4316. else
  4317. ac_cv_header_stdc=no
  4318. fi
  4319. rm -f conftest*
  4320. fi
  4321. if test $ac_cv_header_stdc = yes; then
  4322. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4323. if test "$cross_compiling" = yes; then :
  4324. :
  4325. else
  4326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4327. /* end confdefs.h. */
  4328. #include <ctype.h>
  4329. #include <stdlib.h>
  4330. #if ((' ' & 0x0FF) == 0x020)
  4331. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4332. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4333. #else
  4334. # define ISLOWER(c) \
  4335. (('a' <= (c) && (c) <= 'i') \
  4336. || ('j' <= (c) && (c) <= 'r') \
  4337. || ('s' <= (c) && (c) <= 'z'))
  4338. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4339. #endif
  4340. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4341. int
  4342. main ()
  4343. {
  4344. int i;
  4345. for (i = 0; i < 256; i++)
  4346. if (XOR (islower (i), ISLOWER (i))
  4347. || toupper (i) != TOUPPER (i))
  4348. return 2;
  4349. return 0;
  4350. }
  4351. _ACEOF
  4352. if ac_fn_c_try_run "$LINENO"; then :
  4353. else
  4354. ac_cv_header_stdc=no
  4355. fi
  4356. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4357. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4358. fi
  4359. fi
  4360. fi
  4361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4362. $as_echo "$ac_cv_header_stdc" >&6; }
  4363. if test $ac_cv_header_stdc = yes; then
  4364. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4365. fi
  4366. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4367. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4368. inttypes.h stdint.h unistd.h
  4369. do :
  4370. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4371. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4372. "
  4373. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4374. cat >>confdefs.h <<_ACEOF
  4375. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4376. _ACEOF
  4377. fi
  4378. done
  4379. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4380. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4381. MINIX=yes
  4382. else
  4383. MINIX=
  4384. fi
  4385. if test "$MINIX" = yes; then
  4386. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4387. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4388. $as_echo "#define _MINIX 1" >>confdefs.h
  4389. fi
  4390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4391. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4392. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4393. $as_echo_n "(cached) " >&6
  4394. else
  4395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4396. /* end confdefs.h. */
  4397. # define __EXTENSIONS__ 1
  4398. $ac_includes_default
  4399. int
  4400. main ()
  4401. {
  4402. ;
  4403. return 0;
  4404. }
  4405. _ACEOF
  4406. if ac_fn_c_try_compile "$LINENO"; then :
  4407. ac_cv_safe_to_define___extensions__=yes
  4408. else
  4409. ac_cv_safe_to_define___extensions__=no
  4410. fi
  4411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4412. fi
  4413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4414. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4415. test $ac_cv_safe_to_define___extensions__ = yes &&
  4416. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4417. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4418. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4419. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4420. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4422. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4423. if ${ac_cv_c_bigendian+:} false; then :
  4424. $as_echo_n "(cached) " >&6
  4425. else
  4426. ac_cv_c_bigendian=unknown
  4427. # See if we're dealing with a universal compiler.
  4428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4429. /* end confdefs.h. */
  4430. #ifndef __APPLE_CC__
  4431. not a universal capable compiler
  4432. #endif
  4433. typedef int dummy;
  4434. _ACEOF
  4435. if ac_fn_c_try_compile "$LINENO"; then :
  4436. # Check for potential -arch flags. It is not universal unless
  4437. # there are at least two -arch flags with different values.
  4438. ac_arch=
  4439. ac_prev=
  4440. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4441. if test -n "$ac_prev"; then
  4442. case $ac_word in
  4443. i?86 | x86_64 | ppc | ppc64)
  4444. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4445. ac_arch=$ac_word
  4446. else
  4447. ac_cv_c_bigendian=universal
  4448. break
  4449. fi
  4450. ;;
  4451. esac
  4452. ac_prev=
  4453. elif test "x$ac_word" = "x-arch"; then
  4454. ac_prev=arch
  4455. fi
  4456. done
  4457. fi
  4458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4459. if test $ac_cv_c_bigendian = unknown; then
  4460. # See if sys/param.h defines the BYTE_ORDER macro.
  4461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4462. /* end confdefs.h. */
  4463. #include <sys/types.h>
  4464. #include <sys/param.h>
  4465. int
  4466. main ()
  4467. {
  4468. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4469. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4470. && LITTLE_ENDIAN)
  4471. bogus endian macros
  4472. #endif
  4473. ;
  4474. return 0;
  4475. }
  4476. _ACEOF
  4477. if ac_fn_c_try_compile "$LINENO"; then :
  4478. # It does; now see whether it defined to BIG_ENDIAN or not.
  4479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4480. /* end confdefs.h. */
  4481. #include <sys/types.h>
  4482. #include <sys/param.h>
  4483. int
  4484. main ()
  4485. {
  4486. #if BYTE_ORDER != BIG_ENDIAN
  4487. not big endian
  4488. #endif
  4489. ;
  4490. return 0;
  4491. }
  4492. _ACEOF
  4493. if ac_fn_c_try_compile "$LINENO"; then :
  4494. ac_cv_c_bigendian=yes
  4495. else
  4496. ac_cv_c_bigendian=no
  4497. fi
  4498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4499. fi
  4500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4501. fi
  4502. if test $ac_cv_c_bigendian = unknown; then
  4503. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4505. /* end confdefs.h. */
  4506. #include <limits.h>
  4507. int
  4508. main ()
  4509. {
  4510. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4511. bogus endian macros
  4512. #endif
  4513. ;
  4514. return 0;
  4515. }
  4516. _ACEOF
  4517. if ac_fn_c_try_compile "$LINENO"; then :
  4518. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4520. /* end confdefs.h. */
  4521. #include <limits.h>
  4522. int
  4523. main ()
  4524. {
  4525. #ifndef _BIG_ENDIAN
  4526. not big endian
  4527. #endif
  4528. ;
  4529. return 0;
  4530. }
  4531. _ACEOF
  4532. if ac_fn_c_try_compile "$LINENO"; then :
  4533. ac_cv_c_bigendian=yes
  4534. else
  4535. ac_cv_c_bigendian=no
  4536. fi
  4537. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4538. fi
  4539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4540. fi
  4541. if test $ac_cv_c_bigendian = unknown; then
  4542. # Compile a test program.
  4543. if test "$cross_compiling" = yes; then :
  4544. # Try to guess by grepping values from an object file.
  4545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4546. /* end confdefs.h. */
  4547. short int ascii_mm[] =
  4548. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4549. short int ascii_ii[] =
  4550. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4551. int use_ascii (int i) {
  4552. return ascii_mm[i] + ascii_ii[i];
  4553. }
  4554. short int ebcdic_ii[] =
  4555. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4556. short int ebcdic_mm[] =
  4557. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4558. int use_ebcdic (int i) {
  4559. return ebcdic_mm[i] + ebcdic_ii[i];
  4560. }
  4561. extern int foo;
  4562. int
  4563. main ()
  4564. {
  4565. return use_ascii (foo) == use_ebcdic (foo);
  4566. ;
  4567. return 0;
  4568. }
  4569. _ACEOF
  4570. if ac_fn_c_try_compile "$LINENO"; then :
  4571. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4572. ac_cv_c_bigendian=yes
  4573. fi
  4574. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4575. if test "$ac_cv_c_bigendian" = unknown; then
  4576. ac_cv_c_bigendian=no
  4577. else
  4578. # finding both strings is unlikely to happen, but who knows?
  4579. ac_cv_c_bigendian=unknown
  4580. fi
  4581. fi
  4582. fi
  4583. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4584. else
  4585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4586. /* end confdefs.h. */
  4587. $ac_includes_default
  4588. int
  4589. main ()
  4590. {
  4591. /* Are we little or big endian? From Harbison&Steele. */
  4592. union
  4593. {
  4594. long int l;
  4595. char c[sizeof (long int)];
  4596. } u;
  4597. u.l = 1;
  4598. return u.c[sizeof (long int) - 1] == 1;
  4599. ;
  4600. return 0;
  4601. }
  4602. _ACEOF
  4603. if ac_fn_c_try_run "$LINENO"; then :
  4604. ac_cv_c_bigendian=no
  4605. else
  4606. ac_cv_c_bigendian=yes
  4607. fi
  4608. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4609. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4610. fi
  4611. fi
  4612. fi
  4613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4614. $as_echo "$ac_cv_c_bigendian" >&6; }
  4615. case $ac_cv_c_bigendian in #(
  4616. yes)
  4617. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4618. ;; #(
  4619. no)
  4620. ;; #(
  4621. universal)
  4622. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4623. ;; #(
  4624. *)
  4625. as_fn_error $? "unknown endianness
  4626. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4627. esac
  4628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4629. $as_echo_n "checking whether ln -s works... " >&6; }
  4630. LN_S=$as_ln_s
  4631. if test "$LN_S" = "ln -s"; then
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4633. $as_echo "yes" >&6; }
  4634. else
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4636. $as_echo "no, using $LN_S" >&6; }
  4637. fi
  4638. case `pwd` in
  4639. *\ * | *\ *)
  4640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4641. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4642. esac
  4643. macro_version='2.4.6'
  4644. macro_revision='2.4.6'
  4645. ltmain=$ac_aux_dir/ltmain.sh
  4646. # Backslashify metacharacters that are still active within
  4647. # double-quoted strings.
  4648. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4649. # Same as above, but do not quote variable references.
  4650. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4651. # Sed substitution to delay expansion of an escaped shell variable in a
  4652. # double_quote_subst'ed string.
  4653. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4654. # Sed substitution to delay expansion of an escaped single quote.
  4655. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4656. # Sed substitution to avoid accidental globbing in evaled expressions
  4657. no_glob_subst='s/\*/\\\*/g'
  4658. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4659. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4660. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4662. $as_echo_n "checking how to print strings... " >&6; }
  4663. # Test print first, because it will be a builtin if present.
  4664. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4665. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4666. ECHO='print -r --'
  4667. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4668. ECHO='printf %s\n'
  4669. else
  4670. # Use this function as a fallback that always works.
  4671. func_fallback_echo ()
  4672. {
  4673. eval 'cat <<_LTECHO_EOF
  4674. $1
  4675. _LTECHO_EOF'
  4676. }
  4677. ECHO='func_fallback_echo'
  4678. fi
  4679. # func_echo_all arg...
  4680. # Invoke $ECHO with all args, space-separated.
  4681. func_echo_all ()
  4682. {
  4683. $ECHO ""
  4684. }
  4685. case $ECHO in
  4686. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4687. $as_echo "printf" >&6; } ;;
  4688. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4689. $as_echo "print -r" >&6; } ;;
  4690. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4691. $as_echo "cat" >&6; } ;;
  4692. esac
  4693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4694. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4695. if ${ac_cv_path_SED+:} false; then :
  4696. $as_echo_n "(cached) " >&6
  4697. else
  4698. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4699. for ac_i in 1 2 3 4 5 6 7; do
  4700. ac_script="$ac_script$as_nl$ac_script"
  4701. done
  4702. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4703. { ac_script=; unset ac_script;}
  4704. if test -z "$SED"; then
  4705. ac_path_SED_found=false
  4706. # Loop through the user's path and test for each of PROGNAME-LIST
  4707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4708. for as_dir in $PATH
  4709. do
  4710. IFS=$as_save_IFS
  4711. test -z "$as_dir" && as_dir=.
  4712. for ac_prog in sed gsed; do
  4713. for ac_exec_ext in '' $ac_executable_extensions; do
  4714. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4715. as_fn_executable_p "$ac_path_SED" || continue
  4716. # Check for GNU ac_path_SED and select it if it is found.
  4717. # Check for GNU $ac_path_SED
  4718. case `"$ac_path_SED" --version 2>&1` in
  4719. *GNU*)
  4720. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4721. *)
  4722. ac_count=0
  4723. $as_echo_n 0123456789 >"conftest.in"
  4724. while :
  4725. do
  4726. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4727. mv "conftest.tmp" "conftest.in"
  4728. cp "conftest.in" "conftest.nl"
  4729. $as_echo '' >> "conftest.nl"
  4730. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4731. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4732. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4733. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4734. # Best one so far, save it but keep looking for a better one
  4735. ac_cv_path_SED="$ac_path_SED"
  4736. ac_path_SED_max=$ac_count
  4737. fi
  4738. # 10*(2^10) chars as input seems more than enough
  4739. test $ac_count -gt 10 && break
  4740. done
  4741. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4742. esac
  4743. $ac_path_SED_found && break 3
  4744. done
  4745. done
  4746. done
  4747. IFS=$as_save_IFS
  4748. if test -z "$ac_cv_path_SED"; then
  4749. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4750. fi
  4751. else
  4752. ac_cv_path_SED=$SED
  4753. fi
  4754. fi
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4756. $as_echo "$ac_cv_path_SED" >&6; }
  4757. SED="$ac_cv_path_SED"
  4758. rm -f conftest.sed
  4759. test -z "$SED" && SED=sed
  4760. Xsed="$SED -e 1s/^X//"
  4761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4762. $as_echo_n "checking for fgrep... " >&6; }
  4763. if ${ac_cv_path_FGREP+:} false; then :
  4764. $as_echo_n "(cached) " >&6
  4765. else
  4766. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4767. then ac_cv_path_FGREP="$GREP -F"
  4768. else
  4769. if test -z "$FGREP"; then
  4770. ac_path_FGREP_found=false
  4771. # Loop through the user's path and test for each of PROGNAME-LIST
  4772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4773. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4774. do
  4775. IFS=$as_save_IFS
  4776. test -z "$as_dir" && as_dir=.
  4777. for ac_prog in fgrep; do
  4778. for ac_exec_ext in '' $ac_executable_extensions; do
  4779. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4780. as_fn_executable_p "$ac_path_FGREP" || continue
  4781. # Check for GNU ac_path_FGREP and select it if it is found.
  4782. # Check for GNU $ac_path_FGREP
  4783. case `"$ac_path_FGREP" --version 2>&1` in
  4784. *GNU*)
  4785. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4786. *)
  4787. ac_count=0
  4788. $as_echo_n 0123456789 >"conftest.in"
  4789. while :
  4790. do
  4791. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4792. mv "conftest.tmp" "conftest.in"
  4793. cp "conftest.in" "conftest.nl"
  4794. $as_echo 'FGREP' >> "conftest.nl"
  4795. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4796. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4797. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4798. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4799. # Best one so far, save it but keep looking for a better one
  4800. ac_cv_path_FGREP="$ac_path_FGREP"
  4801. ac_path_FGREP_max=$ac_count
  4802. fi
  4803. # 10*(2^10) chars as input seems more than enough
  4804. test $ac_count -gt 10 && break
  4805. done
  4806. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4807. esac
  4808. $ac_path_FGREP_found && break 3
  4809. done
  4810. done
  4811. done
  4812. IFS=$as_save_IFS
  4813. if test -z "$ac_cv_path_FGREP"; then
  4814. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4815. fi
  4816. else
  4817. ac_cv_path_FGREP=$FGREP
  4818. fi
  4819. fi
  4820. fi
  4821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4822. $as_echo "$ac_cv_path_FGREP" >&6; }
  4823. FGREP="$ac_cv_path_FGREP"
  4824. test -z "$GREP" && GREP=grep
  4825. # Check whether --with-gnu-ld was given.
  4826. if test "${with_gnu_ld+set}" = set; then :
  4827. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4828. else
  4829. with_gnu_ld=no
  4830. fi
  4831. ac_prog=ld
  4832. if test yes = "$GCC"; then
  4833. # Check if gcc -print-prog-name=ld gives a path.
  4834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4835. $as_echo_n "checking for ld used by $CC... " >&6; }
  4836. case $host in
  4837. *-*-mingw*)
  4838. # gcc leaves a trailing carriage return, which upsets mingw
  4839. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4840. *)
  4841. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4842. esac
  4843. case $ac_prog in
  4844. # Accept absolute paths.
  4845. [\\/]* | ?:[\\/]*)
  4846. re_direlt='/[^/][^/]*/\.\./'
  4847. # Canonicalize the pathname of ld
  4848. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4849. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4850. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4851. done
  4852. test -z "$LD" && LD=$ac_prog
  4853. ;;
  4854. "")
  4855. # If it fails, then pretend we aren't using GCC.
  4856. ac_prog=ld
  4857. ;;
  4858. *)
  4859. # If it is relative, then search for the first ld in PATH.
  4860. with_gnu_ld=unknown
  4861. ;;
  4862. esac
  4863. elif test yes = "$with_gnu_ld"; then
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4865. $as_echo_n "checking for GNU ld... " >&6; }
  4866. else
  4867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4868. $as_echo_n "checking for non-GNU ld... " >&6; }
  4869. fi
  4870. if ${lt_cv_path_LD+:} false; then :
  4871. $as_echo_n "(cached) " >&6
  4872. else
  4873. if test -z "$LD"; then
  4874. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4875. for ac_dir in $PATH; do
  4876. IFS=$lt_save_ifs
  4877. test -z "$ac_dir" && ac_dir=.
  4878. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4879. lt_cv_path_LD=$ac_dir/$ac_prog
  4880. # Check to see if the program is GNU ld. I'd rather use --version,
  4881. # but apparently some variants of GNU ld only accept -v.
  4882. # Break only if it was the GNU/non-GNU ld that we prefer.
  4883. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4884. *GNU* | *'with BFD'*)
  4885. test no != "$with_gnu_ld" && break
  4886. ;;
  4887. *)
  4888. test yes != "$with_gnu_ld" && break
  4889. ;;
  4890. esac
  4891. fi
  4892. done
  4893. IFS=$lt_save_ifs
  4894. else
  4895. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4896. fi
  4897. fi
  4898. LD=$lt_cv_path_LD
  4899. if test -n "$LD"; then
  4900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4901. $as_echo "$LD" >&6; }
  4902. else
  4903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4904. $as_echo "no" >&6; }
  4905. fi
  4906. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4908. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4909. if ${lt_cv_prog_gnu_ld+:} false; then :
  4910. $as_echo_n "(cached) " >&6
  4911. else
  4912. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4913. case `$LD -v 2>&1 </dev/null` in
  4914. *GNU* | *'with BFD'*)
  4915. lt_cv_prog_gnu_ld=yes
  4916. ;;
  4917. *)
  4918. lt_cv_prog_gnu_ld=no
  4919. ;;
  4920. esac
  4921. fi
  4922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4923. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4924. with_gnu_ld=$lt_cv_prog_gnu_ld
  4925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4926. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4927. if ${lt_cv_path_NM+:} false; then :
  4928. $as_echo_n "(cached) " >&6
  4929. else
  4930. if test -n "$NM"; then
  4931. # Let the user override the test.
  4932. lt_cv_path_NM=$NM
  4933. else
  4934. lt_nm_to_check=${ac_tool_prefix}nm
  4935. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4936. lt_nm_to_check="$lt_nm_to_check nm"
  4937. fi
  4938. for lt_tmp_nm in $lt_nm_to_check; do
  4939. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4940. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4941. IFS=$lt_save_ifs
  4942. test -z "$ac_dir" && ac_dir=.
  4943. tmp_nm=$ac_dir/$lt_tmp_nm
  4944. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4945. # Check to see if the nm accepts a BSD-compat flag.
  4946. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4947. # nm: unknown option "B" ignored
  4948. # Tru64's nm complains that /dev/null is an invalid object file
  4949. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4950. case $build_os in
  4951. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4952. *) lt_bad_file=/dev/null ;;
  4953. esac
  4954. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4955. *$lt_bad_file* | *'Invalid file or object type'*)
  4956. lt_cv_path_NM="$tmp_nm -B"
  4957. break 2
  4958. ;;
  4959. *)
  4960. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4961. */dev/null*)
  4962. lt_cv_path_NM="$tmp_nm -p"
  4963. break 2
  4964. ;;
  4965. *)
  4966. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4967. continue # so that we can try to find one that supports BSD flags
  4968. ;;
  4969. esac
  4970. ;;
  4971. esac
  4972. fi
  4973. done
  4974. IFS=$lt_save_ifs
  4975. done
  4976. : ${lt_cv_path_NM=no}
  4977. fi
  4978. fi
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4980. $as_echo "$lt_cv_path_NM" >&6; }
  4981. if test no != "$lt_cv_path_NM"; then
  4982. NM=$lt_cv_path_NM
  4983. else
  4984. # Didn't find any BSD compatible name lister, look for dumpbin.
  4985. if test -n "$DUMPBIN"; then :
  4986. # Let the user override the test.
  4987. else
  4988. if test -n "$ac_tool_prefix"; then
  4989. for ac_prog in dumpbin "link -dump"
  4990. do
  4991. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4992. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4994. $as_echo_n "checking for $ac_word... " >&6; }
  4995. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4996. $as_echo_n "(cached) " >&6
  4997. else
  4998. if test -n "$DUMPBIN"; then
  4999. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5000. else
  5001. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5002. for as_dir in $PATH
  5003. do
  5004. IFS=$as_save_IFS
  5005. test -z "$as_dir" && as_dir=.
  5006. for ac_exec_ext in '' $ac_executable_extensions; do
  5007. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5008. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5009. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5010. break 2
  5011. fi
  5012. done
  5013. done
  5014. IFS=$as_save_IFS
  5015. fi
  5016. fi
  5017. DUMPBIN=$ac_cv_prog_DUMPBIN
  5018. if test -n "$DUMPBIN"; then
  5019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5020. $as_echo "$DUMPBIN" >&6; }
  5021. else
  5022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5023. $as_echo "no" >&6; }
  5024. fi
  5025. test -n "$DUMPBIN" && break
  5026. done
  5027. fi
  5028. if test -z "$DUMPBIN"; then
  5029. ac_ct_DUMPBIN=$DUMPBIN
  5030. for ac_prog in dumpbin "link -dump"
  5031. do
  5032. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5033. set dummy $ac_prog; ac_word=$2
  5034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5035. $as_echo_n "checking for $ac_word... " >&6; }
  5036. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5037. $as_echo_n "(cached) " >&6
  5038. else
  5039. if test -n "$ac_ct_DUMPBIN"; then
  5040. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5041. else
  5042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5043. for as_dir in $PATH
  5044. do
  5045. IFS=$as_save_IFS
  5046. test -z "$as_dir" && as_dir=.
  5047. for ac_exec_ext in '' $ac_executable_extensions; do
  5048. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5049. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5050. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5051. break 2
  5052. fi
  5053. done
  5054. done
  5055. IFS=$as_save_IFS
  5056. fi
  5057. fi
  5058. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5059. if test -n "$ac_ct_DUMPBIN"; then
  5060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5061. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5062. else
  5063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5064. $as_echo "no" >&6; }
  5065. fi
  5066. test -n "$ac_ct_DUMPBIN" && break
  5067. done
  5068. if test "x$ac_ct_DUMPBIN" = x; then
  5069. DUMPBIN=":"
  5070. else
  5071. case $cross_compiling:$ac_tool_warned in
  5072. yes:)
  5073. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5074. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5075. ac_tool_warned=yes ;;
  5076. esac
  5077. DUMPBIN=$ac_ct_DUMPBIN
  5078. fi
  5079. fi
  5080. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5081. *COFF*)
  5082. DUMPBIN="$DUMPBIN -symbols -headers"
  5083. ;;
  5084. *)
  5085. DUMPBIN=:
  5086. ;;
  5087. esac
  5088. fi
  5089. if test : != "$DUMPBIN"; then
  5090. NM=$DUMPBIN
  5091. fi
  5092. fi
  5093. test -z "$NM" && NM=nm
  5094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5095. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5096. if ${lt_cv_nm_interface+:} false; then :
  5097. $as_echo_n "(cached) " >&6
  5098. else
  5099. lt_cv_nm_interface="BSD nm"
  5100. echo "int some_variable = 0;" > conftest.$ac_ext
  5101. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5102. (eval "$ac_compile" 2>conftest.err)
  5103. cat conftest.err >&5
  5104. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5105. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5106. cat conftest.err >&5
  5107. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5108. cat conftest.out >&5
  5109. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5110. lt_cv_nm_interface="MS dumpbin"
  5111. fi
  5112. rm -f conftest*
  5113. fi
  5114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5115. $as_echo "$lt_cv_nm_interface" >&6; }
  5116. # find the maximum length of command line arguments
  5117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5118. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5119. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5120. $as_echo_n "(cached) " >&6
  5121. else
  5122. i=0
  5123. teststring=ABCD
  5124. case $build_os in
  5125. msdosdjgpp*)
  5126. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5127. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5128. # during glob expansion). Even if it were fixed, the result of this
  5129. # check would be larger than it should be.
  5130. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5131. ;;
  5132. gnu*)
  5133. # Under GNU Hurd, this test is not required because there is
  5134. # no limit to the length of command line arguments.
  5135. # Libtool will interpret -1 as no limit whatsoever
  5136. lt_cv_sys_max_cmd_len=-1;
  5137. ;;
  5138. cygwin* | mingw* | cegcc*)
  5139. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5140. # about 5 minutes as the teststring grows exponentially.
  5141. # Worse, since 9x/ME are not pre-emptively multitasking,
  5142. # you end up with a "frozen" computer, even though with patience
  5143. # the test eventually succeeds (with a max line length of 256k).
  5144. # Instead, let's just punt: use the minimum linelength reported by
  5145. # all of the supported platforms: 8192 (on NT/2K/XP).
  5146. lt_cv_sys_max_cmd_len=8192;
  5147. ;;
  5148. mint*)
  5149. # On MiNT this can take a long time and run out of memory.
  5150. lt_cv_sys_max_cmd_len=8192;
  5151. ;;
  5152. amigaos*)
  5153. # On AmigaOS with pdksh, this test takes hours, literally.
  5154. # So we just punt and use a minimum line length of 8192.
  5155. lt_cv_sys_max_cmd_len=8192;
  5156. ;;
  5157. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5158. # This has been around since 386BSD, at least. Likely further.
  5159. if test -x /sbin/sysctl; then
  5160. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5161. elif test -x /usr/sbin/sysctl; then
  5162. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5163. else
  5164. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5165. fi
  5166. # And add a safety zone
  5167. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5168. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5169. ;;
  5170. interix*)
  5171. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5172. lt_cv_sys_max_cmd_len=196608
  5173. ;;
  5174. os2*)
  5175. # The test takes a long time on OS/2.
  5176. lt_cv_sys_max_cmd_len=8192
  5177. ;;
  5178. osf*)
  5179. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5180. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5181. # nice to cause kernel panics so lets avoid the loop below.
  5182. # First set a reasonable default.
  5183. lt_cv_sys_max_cmd_len=16384
  5184. #
  5185. if test -x /sbin/sysconfig; then
  5186. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5187. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5188. esac
  5189. fi
  5190. ;;
  5191. sco3.2v5*)
  5192. lt_cv_sys_max_cmd_len=102400
  5193. ;;
  5194. sysv5* | sco5v6* | sysv4.2uw2*)
  5195. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5196. if test -n "$kargmax"; then
  5197. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5198. else
  5199. lt_cv_sys_max_cmd_len=32768
  5200. fi
  5201. ;;
  5202. *)
  5203. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5204. if test -n "$lt_cv_sys_max_cmd_len" && \
  5205. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5206. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5207. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5208. else
  5209. # Make teststring a little bigger before we do anything with it.
  5210. # a 1K string should be a reasonable start.
  5211. for i in 1 2 3 4 5 6 7 8; do
  5212. teststring=$teststring$teststring
  5213. done
  5214. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5215. # If test is not a shell built-in, we'll probably end up computing a
  5216. # maximum length that is only half of the actual maximum length, but
  5217. # we can't tell.
  5218. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5219. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5220. test 17 != "$i" # 1/2 MB should be enough
  5221. do
  5222. i=`expr $i + 1`
  5223. teststring=$teststring$teststring
  5224. done
  5225. # Only check the string length outside the loop.
  5226. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5227. teststring=
  5228. # Add a significant safety factor because C++ compilers can tack on
  5229. # massive amounts of additional arguments before passing them to the
  5230. # linker. It appears as though 1/2 is a usable value.
  5231. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5232. fi
  5233. ;;
  5234. esac
  5235. fi
  5236. if test -n "$lt_cv_sys_max_cmd_len"; then
  5237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5238. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5239. else
  5240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5241. $as_echo "none" >&6; }
  5242. fi
  5243. max_cmd_len=$lt_cv_sys_max_cmd_len
  5244. : ${CP="cp -f"}
  5245. : ${MV="mv -f"}
  5246. : ${RM="rm -f"}
  5247. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5248. lt_unset=unset
  5249. else
  5250. lt_unset=false
  5251. fi
  5252. # test EBCDIC or ASCII
  5253. case `echo X|tr X '\101'` in
  5254. A) # ASCII based system
  5255. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5256. lt_SP2NL='tr \040 \012'
  5257. lt_NL2SP='tr \015\012 \040\040'
  5258. ;;
  5259. *) # EBCDIC based system
  5260. lt_SP2NL='tr \100 \n'
  5261. lt_NL2SP='tr \r\n \100\100'
  5262. ;;
  5263. esac
  5264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5265. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5266. if ${lt_cv_to_host_file_cmd+:} false; then :
  5267. $as_echo_n "(cached) " >&6
  5268. else
  5269. case $host in
  5270. *-*-mingw* )
  5271. case $build in
  5272. *-*-mingw* ) # actually msys
  5273. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5274. ;;
  5275. *-*-cygwin* )
  5276. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5277. ;;
  5278. * ) # otherwise, assume *nix
  5279. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5280. ;;
  5281. esac
  5282. ;;
  5283. *-*-cygwin* )
  5284. case $build in
  5285. *-*-mingw* ) # actually msys
  5286. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5287. ;;
  5288. *-*-cygwin* )
  5289. lt_cv_to_host_file_cmd=func_convert_file_noop
  5290. ;;
  5291. * ) # otherwise, assume *nix
  5292. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5293. ;;
  5294. esac
  5295. ;;
  5296. * ) # unhandled hosts (and "normal" native builds)
  5297. lt_cv_to_host_file_cmd=func_convert_file_noop
  5298. ;;
  5299. esac
  5300. fi
  5301. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5303. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5305. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5306. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5307. $as_echo_n "(cached) " >&6
  5308. else
  5309. #assume ordinary cross tools, or native build.
  5310. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5311. case $host in
  5312. *-*-mingw* )
  5313. case $build in
  5314. *-*-mingw* ) # actually msys
  5315. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5316. ;;
  5317. esac
  5318. ;;
  5319. esac
  5320. fi
  5321. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5323. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5325. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5326. if ${lt_cv_ld_reload_flag+:} false; then :
  5327. $as_echo_n "(cached) " >&6
  5328. else
  5329. lt_cv_ld_reload_flag='-r'
  5330. fi
  5331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5332. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5333. reload_flag=$lt_cv_ld_reload_flag
  5334. case $reload_flag in
  5335. "" | " "*) ;;
  5336. *) reload_flag=" $reload_flag" ;;
  5337. esac
  5338. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5339. case $host_os in
  5340. cygwin* | mingw* | pw32* | cegcc*)
  5341. if test yes != "$GCC"; then
  5342. reload_cmds=false
  5343. fi
  5344. ;;
  5345. darwin*)
  5346. if test yes = "$GCC"; then
  5347. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5348. else
  5349. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5350. fi
  5351. ;;
  5352. esac
  5353. if test -n "$ac_tool_prefix"; then
  5354. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5355. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5357. $as_echo_n "checking for $ac_word... " >&6; }
  5358. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5359. $as_echo_n "(cached) " >&6
  5360. else
  5361. if test -n "$OBJDUMP"; then
  5362. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5363. else
  5364. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5365. for as_dir in $PATH
  5366. do
  5367. IFS=$as_save_IFS
  5368. test -z "$as_dir" && as_dir=.
  5369. for ac_exec_ext in '' $ac_executable_extensions; do
  5370. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5371. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5372. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5373. break 2
  5374. fi
  5375. done
  5376. done
  5377. IFS=$as_save_IFS
  5378. fi
  5379. fi
  5380. OBJDUMP=$ac_cv_prog_OBJDUMP
  5381. if test -n "$OBJDUMP"; then
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5383. $as_echo "$OBJDUMP" >&6; }
  5384. else
  5385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5386. $as_echo "no" >&6; }
  5387. fi
  5388. fi
  5389. if test -z "$ac_cv_prog_OBJDUMP"; then
  5390. ac_ct_OBJDUMP=$OBJDUMP
  5391. # Extract the first word of "objdump", so it can be a program name with args.
  5392. set dummy objdump; ac_word=$2
  5393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5394. $as_echo_n "checking for $ac_word... " >&6; }
  5395. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5396. $as_echo_n "(cached) " >&6
  5397. else
  5398. if test -n "$ac_ct_OBJDUMP"; then
  5399. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5400. else
  5401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5402. for as_dir in $PATH
  5403. do
  5404. IFS=$as_save_IFS
  5405. test -z "$as_dir" && as_dir=.
  5406. for ac_exec_ext in '' $ac_executable_extensions; do
  5407. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5408. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5409. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5410. break 2
  5411. fi
  5412. done
  5413. done
  5414. IFS=$as_save_IFS
  5415. fi
  5416. fi
  5417. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5418. if test -n "$ac_ct_OBJDUMP"; then
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5420. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5421. else
  5422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5423. $as_echo "no" >&6; }
  5424. fi
  5425. if test "x$ac_ct_OBJDUMP" = x; then
  5426. OBJDUMP="false"
  5427. else
  5428. case $cross_compiling:$ac_tool_warned in
  5429. yes:)
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5431. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5432. ac_tool_warned=yes ;;
  5433. esac
  5434. OBJDUMP=$ac_ct_OBJDUMP
  5435. fi
  5436. else
  5437. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5438. fi
  5439. test -z "$OBJDUMP" && OBJDUMP=objdump
  5440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5441. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5442. if ${lt_cv_deplibs_check_method+:} false; then :
  5443. $as_echo_n "(cached) " >&6
  5444. else
  5445. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5446. lt_cv_file_magic_test_file=
  5447. lt_cv_deplibs_check_method='unknown'
  5448. # Need to set the preceding variable on all platforms that support
  5449. # interlibrary dependencies.
  5450. # 'none' -- dependencies not supported.
  5451. # 'unknown' -- same as none, but documents that we really don't know.
  5452. # 'pass_all' -- all dependencies passed with no checks.
  5453. # 'test_compile' -- check by making test program.
  5454. # 'file_magic [[regex]]' -- check by looking for files in library path
  5455. # that responds to the $file_magic_cmd with a given extended regex.
  5456. # If you have 'file' or equivalent on your system and you're not sure
  5457. # whether 'pass_all' will *always* work, you probably want this one.
  5458. case $host_os in
  5459. aix[4-9]*)
  5460. lt_cv_deplibs_check_method=pass_all
  5461. ;;
  5462. beos*)
  5463. lt_cv_deplibs_check_method=pass_all
  5464. ;;
  5465. bsdi[45]*)
  5466. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5467. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5468. lt_cv_file_magic_test_file=/shlib/libc.so
  5469. ;;
  5470. cygwin*)
  5471. # func_win32_libid is a shell function defined in ltmain.sh
  5472. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5473. lt_cv_file_magic_cmd='func_win32_libid'
  5474. ;;
  5475. mingw* | pw32*)
  5476. # Base MSYS/MinGW do not provide the 'file' command needed by
  5477. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5478. # unless we find 'file', for example because we are cross-compiling.
  5479. if ( file / ) >/dev/null 2>&1; then
  5480. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5481. lt_cv_file_magic_cmd='func_win32_libid'
  5482. else
  5483. # Keep this pattern in sync with the one in func_win32_libid.
  5484. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5485. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5486. fi
  5487. ;;
  5488. cegcc*)
  5489. # use the weaker test based on 'objdump'. See mingw*.
  5490. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5491. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5492. ;;
  5493. darwin* | rhapsody*)
  5494. lt_cv_deplibs_check_method=pass_all
  5495. ;;
  5496. freebsd* | dragonfly*)
  5497. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5498. case $host_cpu in
  5499. i*86 )
  5500. # Not sure whether the presence of OpenBSD here was a mistake.
  5501. # Let's accept both of them until this is cleared up.
  5502. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5503. lt_cv_file_magic_cmd=/usr/bin/file
  5504. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5505. ;;
  5506. esac
  5507. else
  5508. lt_cv_deplibs_check_method=pass_all
  5509. fi
  5510. ;;
  5511. haiku*)
  5512. lt_cv_deplibs_check_method=pass_all
  5513. ;;
  5514. hpux10.20* | hpux11*)
  5515. lt_cv_file_magic_cmd=/usr/bin/file
  5516. case $host_cpu in
  5517. ia64*)
  5518. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5519. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5520. ;;
  5521. hppa*64*)
  5522. 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]'
  5523. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5524. ;;
  5525. *)
  5526. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5527. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5528. ;;
  5529. esac
  5530. ;;
  5531. interix[3-9]*)
  5532. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5533. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5534. ;;
  5535. irix5* | irix6* | nonstopux*)
  5536. case $LD in
  5537. *-32|*"-32 ") libmagic=32-bit;;
  5538. *-n32|*"-n32 ") libmagic=N32;;
  5539. *-64|*"-64 ") libmagic=64-bit;;
  5540. *) libmagic=never-match;;
  5541. esac
  5542. lt_cv_deplibs_check_method=pass_all
  5543. ;;
  5544. # This must be glibc/ELF.
  5545. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5546. lt_cv_deplibs_check_method=pass_all
  5547. ;;
  5548. netbsd*)
  5549. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5550. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5551. else
  5552. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5553. fi
  5554. ;;
  5555. newos6*)
  5556. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5557. lt_cv_file_magic_cmd=/usr/bin/file
  5558. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5559. ;;
  5560. *nto* | *qnx*)
  5561. lt_cv_deplibs_check_method=pass_all
  5562. ;;
  5563. openbsd* | bitrig*)
  5564. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5565. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5566. else
  5567. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5568. fi
  5569. ;;
  5570. osf3* | osf4* | osf5*)
  5571. lt_cv_deplibs_check_method=pass_all
  5572. ;;
  5573. rdos*)
  5574. lt_cv_deplibs_check_method=pass_all
  5575. ;;
  5576. solaris*)
  5577. lt_cv_deplibs_check_method=pass_all
  5578. ;;
  5579. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5580. lt_cv_deplibs_check_method=pass_all
  5581. ;;
  5582. sysv4 | sysv4.3*)
  5583. case $host_vendor in
  5584. motorola)
  5585. 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]'
  5586. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5587. ;;
  5588. ncr)
  5589. lt_cv_deplibs_check_method=pass_all
  5590. ;;
  5591. sequent)
  5592. lt_cv_file_magic_cmd='/bin/file'
  5593. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5594. ;;
  5595. sni)
  5596. lt_cv_file_magic_cmd='/bin/file'
  5597. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5598. lt_cv_file_magic_test_file=/lib/libc.so
  5599. ;;
  5600. siemens)
  5601. lt_cv_deplibs_check_method=pass_all
  5602. ;;
  5603. pc)
  5604. lt_cv_deplibs_check_method=pass_all
  5605. ;;
  5606. esac
  5607. ;;
  5608. tpf*)
  5609. lt_cv_deplibs_check_method=pass_all
  5610. ;;
  5611. os2*)
  5612. lt_cv_deplibs_check_method=pass_all
  5613. ;;
  5614. esac
  5615. fi
  5616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5617. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5618. file_magic_glob=
  5619. want_nocaseglob=no
  5620. if test "$build" = "$host"; then
  5621. case $host_os in
  5622. mingw* | pw32*)
  5623. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5624. want_nocaseglob=yes
  5625. else
  5626. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5627. fi
  5628. ;;
  5629. esac
  5630. fi
  5631. file_magic_cmd=$lt_cv_file_magic_cmd
  5632. deplibs_check_method=$lt_cv_deplibs_check_method
  5633. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5634. if test -n "$ac_tool_prefix"; then
  5635. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5636. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5638. $as_echo_n "checking for $ac_word... " >&6; }
  5639. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5640. $as_echo_n "(cached) " >&6
  5641. else
  5642. if test -n "$DLLTOOL"; then
  5643. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5644. else
  5645. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5646. for as_dir in $PATH
  5647. do
  5648. IFS=$as_save_IFS
  5649. test -z "$as_dir" && as_dir=.
  5650. for ac_exec_ext in '' $ac_executable_extensions; do
  5651. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5652. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5653. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5654. break 2
  5655. fi
  5656. done
  5657. done
  5658. IFS=$as_save_IFS
  5659. fi
  5660. fi
  5661. DLLTOOL=$ac_cv_prog_DLLTOOL
  5662. if test -n "$DLLTOOL"; then
  5663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5664. $as_echo "$DLLTOOL" >&6; }
  5665. else
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5667. $as_echo "no" >&6; }
  5668. fi
  5669. fi
  5670. if test -z "$ac_cv_prog_DLLTOOL"; then
  5671. ac_ct_DLLTOOL=$DLLTOOL
  5672. # Extract the first word of "dlltool", so it can be a program name with args.
  5673. set dummy dlltool; ac_word=$2
  5674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5675. $as_echo_n "checking for $ac_word... " >&6; }
  5676. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5677. $as_echo_n "(cached) " >&6
  5678. else
  5679. if test -n "$ac_ct_DLLTOOL"; then
  5680. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5681. else
  5682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5683. for as_dir in $PATH
  5684. do
  5685. IFS=$as_save_IFS
  5686. test -z "$as_dir" && as_dir=.
  5687. for ac_exec_ext in '' $ac_executable_extensions; do
  5688. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5689. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5690. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5691. break 2
  5692. fi
  5693. done
  5694. done
  5695. IFS=$as_save_IFS
  5696. fi
  5697. fi
  5698. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5699. if test -n "$ac_ct_DLLTOOL"; then
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5701. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5702. else
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5704. $as_echo "no" >&6; }
  5705. fi
  5706. if test "x$ac_ct_DLLTOOL" = x; then
  5707. DLLTOOL="false"
  5708. else
  5709. case $cross_compiling:$ac_tool_warned in
  5710. yes:)
  5711. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5712. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5713. ac_tool_warned=yes ;;
  5714. esac
  5715. DLLTOOL=$ac_ct_DLLTOOL
  5716. fi
  5717. else
  5718. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5719. fi
  5720. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5722. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5723. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5724. $as_echo_n "(cached) " >&6
  5725. else
  5726. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5727. case $host_os in
  5728. cygwin* | mingw* | pw32* | cegcc*)
  5729. # two different shell functions defined in ltmain.sh;
  5730. # decide which one to use based on capabilities of $DLLTOOL
  5731. case `$DLLTOOL --help 2>&1` in
  5732. *--identify-strict*)
  5733. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5734. ;;
  5735. *)
  5736. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5737. ;;
  5738. esac
  5739. ;;
  5740. *)
  5741. # fallback: assume linklib IS sharedlib
  5742. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5743. ;;
  5744. esac
  5745. fi
  5746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5747. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5748. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5749. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5750. if test -n "$ac_tool_prefix"; then
  5751. for ac_prog in ar
  5752. do
  5753. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5754. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5756. $as_echo_n "checking for $ac_word... " >&6; }
  5757. if ${ac_cv_prog_AR+:} false; then :
  5758. $as_echo_n "(cached) " >&6
  5759. else
  5760. if test -n "$AR"; then
  5761. ac_cv_prog_AR="$AR" # Let the user override the test.
  5762. else
  5763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5764. for as_dir in $PATH
  5765. do
  5766. IFS=$as_save_IFS
  5767. test -z "$as_dir" && as_dir=.
  5768. for ac_exec_ext in '' $ac_executable_extensions; do
  5769. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5770. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5771. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5772. break 2
  5773. fi
  5774. done
  5775. done
  5776. IFS=$as_save_IFS
  5777. fi
  5778. fi
  5779. AR=$ac_cv_prog_AR
  5780. if test -n "$AR"; then
  5781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5782. $as_echo "$AR" >&6; }
  5783. else
  5784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5785. $as_echo "no" >&6; }
  5786. fi
  5787. test -n "$AR" && break
  5788. done
  5789. fi
  5790. if test -z "$AR"; then
  5791. ac_ct_AR=$AR
  5792. for ac_prog in ar
  5793. do
  5794. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5795. set dummy $ac_prog; ac_word=$2
  5796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5797. $as_echo_n "checking for $ac_word... " >&6; }
  5798. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5799. $as_echo_n "(cached) " >&6
  5800. else
  5801. if test -n "$ac_ct_AR"; then
  5802. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5803. else
  5804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5805. for as_dir in $PATH
  5806. do
  5807. IFS=$as_save_IFS
  5808. test -z "$as_dir" && as_dir=.
  5809. for ac_exec_ext in '' $ac_executable_extensions; do
  5810. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5811. ac_cv_prog_ac_ct_AR="$ac_prog"
  5812. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5813. break 2
  5814. fi
  5815. done
  5816. done
  5817. IFS=$as_save_IFS
  5818. fi
  5819. fi
  5820. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5821. if test -n "$ac_ct_AR"; then
  5822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5823. $as_echo "$ac_ct_AR" >&6; }
  5824. else
  5825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5826. $as_echo "no" >&6; }
  5827. fi
  5828. test -n "$ac_ct_AR" && break
  5829. done
  5830. if test "x$ac_ct_AR" = x; then
  5831. AR="false"
  5832. else
  5833. case $cross_compiling:$ac_tool_warned in
  5834. yes:)
  5835. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5836. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5837. ac_tool_warned=yes ;;
  5838. esac
  5839. AR=$ac_ct_AR
  5840. fi
  5841. fi
  5842. : ${AR=ar}
  5843. : ${AR_FLAGS=cru}
  5844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5845. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5846. if ${lt_cv_ar_at_file+:} false; then :
  5847. $as_echo_n "(cached) " >&6
  5848. else
  5849. lt_cv_ar_at_file=no
  5850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5851. /* end confdefs.h. */
  5852. int
  5853. main ()
  5854. {
  5855. ;
  5856. return 0;
  5857. }
  5858. _ACEOF
  5859. if ac_fn_c_try_compile "$LINENO"; then :
  5860. echo conftest.$ac_objext > conftest.lst
  5861. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5862. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5863. (eval $lt_ar_try) 2>&5
  5864. ac_status=$?
  5865. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5866. test $ac_status = 0; }
  5867. if test 0 -eq "$ac_status"; then
  5868. # Ensure the archiver fails upon bogus file names.
  5869. rm -f conftest.$ac_objext libconftest.a
  5870. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5871. (eval $lt_ar_try) 2>&5
  5872. ac_status=$?
  5873. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5874. test $ac_status = 0; }
  5875. if test 0 -ne "$ac_status"; then
  5876. lt_cv_ar_at_file=@
  5877. fi
  5878. fi
  5879. rm -f conftest.* libconftest.a
  5880. fi
  5881. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5882. fi
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5884. $as_echo "$lt_cv_ar_at_file" >&6; }
  5885. if test no = "$lt_cv_ar_at_file"; then
  5886. archiver_list_spec=
  5887. else
  5888. archiver_list_spec=$lt_cv_ar_at_file
  5889. fi
  5890. if test -n "$ac_tool_prefix"; then
  5891. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5892. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5894. $as_echo_n "checking for $ac_word... " >&6; }
  5895. if ${ac_cv_prog_STRIP+:} false; then :
  5896. $as_echo_n "(cached) " >&6
  5897. else
  5898. if test -n "$STRIP"; then
  5899. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5900. else
  5901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5902. for as_dir in $PATH
  5903. do
  5904. IFS=$as_save_IFS
  5905. test -z "$as_dir" && as_dir=.
  5906. for ac_exec_ext in '' $ac_executable_extensions; do
  5907. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5908. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5909. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5910. break 2
  5911. fi
  5912. done
  5913. done
  5914. IFS=$as_save_IFS
  5915. fi
  5916. fi
  5917. STRIP=$ac_cv_prog_STRIP
  5918. if test -n "$STRIP"; then
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5920. $as_echo "$STRIP" >&6; }
  5921. else
  5922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5923. $as_echo "no" >&6; }
  5924. fi
  5925. fi
  5926. if test -z "$ac_cv_prog_STRIP"; then
  5927. ac_ct_STRIP=$STRIP
  5928. # Extract the first word of "strip", so it can be a program name with args.
  5929. set dummy strip; ac_word=$2
  5930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5931. $as_echo_n "checking for $ac_word... " >&6; }
  5932. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5933. $as_echo_n "(cached) " >&6
  5934. else
  5935. if test -n "$ac_ct_STRIP"; then
  5936. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5937. else
  5938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5939. for as_dir in $PATH
  5940. do
  5941. IFS=$as_save_IFS
  5942. test -z "$as_dir" && as_dir=.
  5943. for ac_exec_ext in '' $ac_executable_extensions; do
  5944. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5945. ac_cv_prog_ac_ct_STRIP="strip"
  5946. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5947. break 2
  5948. fi
  5949. done
  5950. done
  5951. IFS=$as_save_IFS
  5952. fi
  5953. fi
  5954. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5955. if test -n "$ac_ct_STRIP"; then
  5956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5957. $as_echo "$ac_ct_STRIP" >&6; }
  5958. else
  5959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5960. $as_echo "no" >&6; }
  5961. fi
  5962. if test "x$ac_ct_STRIP" = x; then
  5963. STRIP=":"
  5964. else
  5965. case $cross_compiling:$ac_tool_warned in
  5966. yes:)
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5968. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5969. ac_tool_warned=yes ;;
  5970. esac
  5971. STRIP=$ac_ct_STRIP
  5972. fi
  5973. else
  5974. STRIP="$ac_cv_prog_STRIP"
  5975. fi
  5976. test -z "$STRIP" && STRIP=:
  5977. if test -n "$ac_tool_prefix"; then
  5978. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5979. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5981. $as_echo_n "checking for $ac_word... " >&6; }
  5982. if ${ac_cv_prog_RANLIB+:} false; then :
  5983. $as_echo_n "(cached) " >&6
  5984. else
  5985. if test -n "$RANLIB"; then
  5986. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5987. else
  5988. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5989. for as_dir in $PATH
  5990. do
  5991. IFS=$as_save_IFS
  5992. test -z "$as_dir" && as_dir=.
  5993. for ac_exec_ext in '' $ac_executable_extensions; do
  5994. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5995. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5996. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5997. break 2
  5998. fi
  5999. done
  6000. done
  6001. IFS=$as_save_IFS
  6002. fi
  6003. fi
  6004. RANLIB=$ac_cv_prog_RANLIB
  6005. if test -n "$RANLIB"; then
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6007. $as_echo "$RANLIB" >&6; }
  6008. else
  6009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6010. $as_echo "no" >&6; }
  6011. fi
  6012. fi
  6013. if test -z "$ac_cv_prog_RANLIB"; then
  6014. ac_ct_RANLIB=$RANLIB
  6015. # Extract the first word of "ranlib", so it can be a program name with args.
  6016. set dummy ranlib; ac_word=$2
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6018. $as_echo_n "checking for $ac_word... " >&6; }
  6019. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6020. $as_echo_n "(cached) " >&6
  6021. else
  6022. if test -n "$ac_ct_RANLIB"; then
  6023. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6024. else
  6025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6026. for as_dir in $PATH
  6027. do
  6028. IFS=$as_save_IFS
  6029. test -z "$as_dir" && as_dir=.
  6030. for ac_exec_ext in '' $ac_executable_extensions; do
  6031. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6032. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6033. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6034. break 2
  6035. fi
  6036. done
  6037. done
  6038. IFS=$as_save_IFS
  6039. fi
  6040. fi
  6041. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6042. if test -n "$ac_ct_RANLIB"; then
  6043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6044. $as_echo "$ac_ct_RANLIB" >&6; }
  6045. else
  6046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6047. $as_echo "no" >&6; }
  6048. fi
  6049. if test "x$ac_ct_RANLIB" = x; then
  6050. RANLIB=":"
  6051. else
  6052. case $cross_compiling:$ac_tool_warned in
  6053. yes:)
  6054. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6055. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6056. ac_tool_warned=yes ;;
  6057. esac
  6058. RANLIB=$ac_ct_RANLIB
  6059. fi
  6060. else
  6061. RANLIB="$ac_cv_prog_RANLIB"
  6062. fi
  6063. test -z "$RANLIB" && RANLIB=:
  6064. # Determine commands to create old-style static archives.
  6065. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6066. old_postinstall_cmds='chmod 644 $oldlib'
  6067. old_postuninstall_cmds=
  6068. if test -n "$RANLIB"; then
  6069. case $host_os in
  6070. bitrig* | openbsd*)
  6071. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6072. ;;
  6073. *)
  6074. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6075. ;;
  6076. esac
  6077. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6078. fi
  6079. case $host_os in
  6080. darwin*)
  6081. lock_old_archive_extraction=yes ;;
  6082. *)
  6083. lock_old_archive_extraction=no ;;
  6084. esac
  6085. # If no C compiler was specified, use CC.
  6086. LTCC=${LTCC-"$CC"}
  6087. # If no C compiler flags were specified, use CFLAGS.
  6088. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6089. # Allow CC to be a program name with arguments.
  6090. compiler=$CC
  6091. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6093. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6094. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6095. $as_echo_n "(cached) " >&6
  6096. else
  6097. # These are sane defaults that work on at least a few old systems.
  6098. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6099. # Character class describing NM global symbol codes.
  6100. symcode='[BCDEGRST]'
  6101. # Regexp to match symbols that can be accessed directly from C.
  6102. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6103. # Define system-specific variables.
  6104. case $host_os in
  6105. aix*)
  6106. symcode='[BCDT]'
  6107. ;;
  6108. cygwin* | mingw* | pw32* | cegcc*)
  6109. symcode='[ABCDGISTW]'
  6110. ;;
  6111. hpux*)
  6112. if test ia64 = "$host_cpu"; then
  6113. symcode='[ABCDEGRST]'
  6114. fi
  6115. ;;
  6116. irix* | nonstopux*)
  6117. symcode='[BCDEGRST]'
  6118. ;;
  6119. osf*)
  6120. symcode='[BCDEGQRST]'
  6121. ;;
  6122. solaris*)
  6123. symcode='[BDRT]'
  6124. ;;
  6125. sco3.2v5*)
  6126. symcode='[DT]'
  6127. ;;
  6128. sysv4.2uw2*)
  6129. symcode='[DT]'
  6130. ;;
  6131. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6132. symcode='[ABDT]'
  6133. ;;
  6134. sysv4)
  6135. symcode='[DFNSTU]'
  6136. ;;
  6137. esac
  6138. # If we're using GNU nm, then use its standard symbol codes.
  6139. case `$NM -V 2>&1` in
  6140. *GNU* | *'with BFD'*)
  6141. symcode='[ABCDGIRSTW]' ;;
  6142. esac
  6143. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6144. # Gets list of data symbols to import.
  6145. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6146. # Adjust the below global symbol transforms to fixup imported variables.
  6147. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6148. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6149. lt_c_name_lib_hook="\
  6150. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6151. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6152. else
  6153. # Disable hooks by default.
  6154. lt_cv_sys_global_symbol_to_import=
  6155. lt_cdecl_hook=
  6156. lt_c_name_hook=
  6157. lt_c_name_lib_hook=
  6158. fi
  6159. # Transform an extracted symbol line into a proper C declaration.
  6160. # Some systems (esp. on ia64) link data and code symbols differently,
  6161. # so use this general approach.
  6162. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6163. $lt_cdecl_hook\
  6164. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6165. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6166. # Transform an extracted symbol line into symbol name and symbol address
  6167. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6168. $lt_c_name_hook\
  6169. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6170. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6171. # Transform an extracted symbol line into symbol name with lib prefix and
  6172. # symbol address.
  6173. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6174. $lt_c_name_lib_hook\
  6175. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6176. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6177. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6178. # Handle CRLF in mingw tool chain
  6179. opt_cr=
  6180. case $build_os in
  6181. mingw*)
  6182. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6183. ;;
  6184. esac
  6185. # Try without a prefix underscore, then with it.
  6186. for ac_symprfx in "" "_"; do
  6187. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6188. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6189. # Write the raw and C identifiers.
  6190. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6191. # Fake it for dumpbin and say T for any non-static function,
  6192. # D for any global variable and I for any imported variable.
  6193. # Also find C++ and __fastcall symbols from MSVC++,
  6194. # which start with @ or ?.
  6195. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6196. " {last_section=section; section=\$ 3};"\
  6197. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6198. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6199. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6200. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6201. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6202. " \$ 0!~/External *\|/{next};"\
  6203. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6204. " {if(hide[section]) next};"\
  6205. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6206. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6207. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6208. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6209. " ' prfx=^$ac_symprfx"
  6210. else
  6211. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6212. fi
  6213. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6214. # Check to see that the pipe works correctly.
  6215. pipe_works=no
  6216. rm -f conftest*
  6217. cat > conftest.$ac_ext <<_LT_EOF
  6218. #ifdef __cplusplus
  6219. extern "C" {
  6220. #endif
  6221. char nm_test_var;
  6222. void nm_test_func(void);
  6223. void nm_test_func(void){}
  6224. #ifdef __cplusplus
  6225. }
  6226. #endif
  6227. int main(){nm_test_var='a';nm_test_func();return(0);}
  6228. _LT_EOF
  6229. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6230. (eval $ac_compile) 2>&5
  6231. ac_status=$?
  6232. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6233. test $ac_status = 0; }; then
  6234. # Now try to grab the symbols.
  6235. nlist=conftest.nm
  6236. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6237. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6238. ac_status=$?
  6239. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6240. test $ac_status = 0; } && test -s "$nlist"; then
  6241. # Try sorting and uniquifying the output.
  6242. if sort "$nlist" | uniq > "$nlist"T; then
  6243. mv -f "$nlist"T "$nlist"
  6244. else
  6245. rm -f "$nlist"T
  6246. fi
  6247. # Make sure that we snagged all the symbols we need.
  6248. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6249. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6250. cat <<_LT_EOF > conftest.$ac_ext
  6251. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6252. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6253. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6254. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6255. # define LT_DLSYM_CONST
  6256. #elif defined __osf__
  6257. /* This system does not cope well with relocations in const data. */
  6258. # define LT_DLSYM_CONST
  6259. #else
  6260. # define LT_DLSYM_CONST const
  6261. #endif
  6262. #ifdef __cplusplus
  6263. extern "C" {
  6264. #endif
  6265. _LT_EOF
  6266. # Now generate the symbol file.
  6267. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6268. cat <<_LT_EOF >> conftest.$ac_ext
  6269. /* The mapping between symbol names and symbols. */
  6270. LT_DLSYM_CONST struct {
  6271. const char *name;
  6272. void *address;
  6273. }
  6274. lt__PROGRAM__LTX_preloaded_symbols[] =
  6275. {
  6276. { "@PROGRAM@", (void *) 0 },
  6277. _LT_EOF
  6278. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6279. cat <<\_LT_EOF >> conftest.$ac_ext
  6280. {0, (void *) 0}
  6281. };
  6282. /* This works around a problem in FreeBSD linker */
  6283. #ifdef FREEBSD_WORKAROUND
  6284. static const void *lt_preloaded_setup() {
  6285. return lt__PROGRAM__LTX_preloaded_symbols;
  6286. }
  6287. #endif
  6288. #ifdef __cplusplus
  6289. }
  6290. #endif
  6291. _LT_EOF
  6292. # Now try linking the two files.
  6293. mv conftest.$ac_objext conftstm.$ac_objext
  6294. lt_globsym_save_LIBS=$LIBS
  6295. lt_globsym_save_CFLAGS=$CFLAGS
  6296. LIBS=conftstm.$ac_objext
  6297. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6298. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6299. (eval $ac_link) 2>&5
  6300. ac_status=$?
  6301. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6302. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6303. pipe_works=yes
  6304. fi
  6305. LIBS=$lt_globsym_save_LIBS
  6306. CFLAGS=$lt_globsym_save_CFLAGS
  6307. else
  6308. echo "cannot find nm_test_func in $nlist" >&5
  6309. fi
  6310. else
  6311. echo "cannot find nm_test_var in $nlist" >&5
  6312. fi
  6313. else
  6314. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6315. fi
  6316. else
  6317. echo "$progname: failed program was:" >&5
  6318. cat conftest.$ac_ext >&5
  6319. fi
  6320. rm -rf conftest* conftst*
  6321. # Do not use the global_symbol_pipe unless it works.
  6322. if test yes = "$pipe_works"; then
  6323. break
  6324. else
  6325. lt_cv_sys_global_symbol_pipe=
  6326. fi
  6327. done
  6328. fi
  6329. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6330. lt_cv_sys_global_symbol_to_cdecl=
  6331. fi
  6332. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6334. $as_echo "failed" >&6; }
  6335. else
  6336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6337. $as_echo "ok" >&6; }
  6338. fi
  6339. # Response file support.
  6340. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6341. nm_file_list_spec='@'
  6342. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6343. nm_file_list_spec='@'
  6344. fi
  6345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6346. $as_echo_n "checking for sysroot... " >&6; }
  6347. # Check whether --with-sysroot was given.
  6348. if test "${with_sysroot+set}" = set; then :
  6349. withval=$with_sysroot;
  6350. else
  6351. with_sysroot=no
  6352. fi
  6353. lt_sysroot=
  6354. case $with_sysroot in #(
  6355. yes)
  6356. if test yes = "$GCC"; then
  6357. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6358. fi
  6359. ;; #(
  6360. /*)
  6361. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6362. ;; #(
  6363. no|'')
  6364. ;; #(
  6365. *)
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6367. $as_echo "$with_sysroot" >&6; }
  6368. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6369. ;;
  6370. esac
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6372. $as_echo "${lt_sysroot:-no}" >&6; }
  6373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6374. $as_echo_n "checking for a working dd... " >&6; }
  6375. if ${ac_cv_path_lt_DD+:} false; then :
  6376. $as_echo_n "(cached) " >&6
  6377. else
  6378. printf 0123456789abcdef0123456789abcdef >conftest.i
  6379. cat conftest.i conftest.i >conftest2.i
  6380. : ${lt_DD:=$DD}
  6381. if test -z "$lt_DD"; then
  6382. ac_path_lt_DD_found=false
  6383. # Loop through the user's path and test for each of PROGNAME-LIST
  6384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6385. for as_dir in $PATH
  6386. do
  6387. IFS=$as_save_IFS
  6388. test -z "$as_dir" && as_dir=.
  6389. for ac_prog in dd; do
  6390. for ac_exec_ext in '' $ac_executable_extensions; do
  6391. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6392. as_fn_executable_p "$ac_path_lt_DD" || continue
  6393. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6394. cmp -s conftest.i conftest.out \
  6395. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6396. fi
  6397. $ac_path_lt_DD_found && break 3
  6398. done
  6399. done
  6400. done
  6401. IFS=$as_save_IFS
  6402. if test -z "$ac_cv_path_lt_DD"; then
  6403. :
  6404. fi
  6405. else
  6406. ac_cv_path_lt_DD=$lt_DD
  6407. fi
  6408. rm -f conftest.i conftest2.i conftest.out
  6409. fi
  6410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6411. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6413. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6414. if ${lt_cv_truncate_bin+:} false; then :
  6415. $as_echo_n "(cached) " >&6
  6416. else
  6417. printf 0123456789abcdef0123456789abcdef >conftest.i
  6418. cat conftest.i conftest.i >conftest2.i
  6419. lt_cv_truncate_bin=
  6420. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6421. cmp -s conftest.i conftest.out \
  6422. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6423. fi
  6424. rm -f conftest.i conftest2.i conftest.out
  6425. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6426. fi
  6427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6428. $as_echo "$lt_cv_truncate_bin" >&6; }
  6429. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6430. func_cc_basename ()
  6431. {
  6432. for cc_temp in $*""; do
  6433. case $cc_temp in
  6434. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6435. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6436. \-*) ;;
  6437. *) break;;
  6438. esac
  6439. done
  6440. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6441. }
  6442. # Check whether --enable-libtool-lock was given.
  6443. if test "${enable_libtool_lock+set}" = set; then :
  6444. enableval=$enable_libtool_lock;
  6445. fi
  6446. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6447. # Some flags need to be propagated to the compiler or linker for good
  6448. # libtool support.
  6449. case $host in
  6450. ia64-*-hpux*)
  6451. # Find out what ABI is being produced by ac_compile, and set mode
  6452. # options accordingly.
  6453. echo 'int i;' > conftest.$ac_ext
  6454. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6455. (eval $ac_compile) 2>&5
  6456. ac_status=$?
  6457. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6458. test $ac_status = 0; }; then
  6459. case `/usr/bin/file conftest.$ac_objext` in
  6460. *ELF-32*)
  6461. HPUX_IA64_MODE=32
  6462. ;;
  6463. *ELF-64*)
  6464. HPUX_IA64_MODE=64
  6465. ;;
  6466. esac
  6467. fi
  6468. rm -rf conftest*
  6469. ;;
  6470. *-*-irix6*)
  6471. # Find out what ABI is being produced by ac_compile, and set linker
  6472. # options accordingly.
  6473. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6474. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6475. (eval $ac_compile) 2>&5
  6476. ac_status=$?
  6477. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6478. test $ac_status = 0; }; then
  6479. if test yes = "$lt_cv_prog_gnu_ld"; then
  6480. case `/usr/bin/file conftest.$ac_objext` in
  6481. *32-bit*)
  6482. LD="${LD-ld} -melf32bsmip"
  6483. ;;
  6484. *N32*)
  6485. LD="${LD-ld} -melf32bmipn32"
  6486. ;;
  6487. *64-bit*)
  6488. LD="${LD-ld} -melf64bmip"
  6489. ;;
  6490. esac
  6491. else
  6492. case `/usr/bin/file conftest.$ac_objext` in
  6493. *32-bit*)
  6494. LD="${LD-ld} -32"
  6495. ;;
  6496. *N32*)
  6497. LD="${LD-ld} -n32"
  6498. ;;
  6499. *64-bit*)
  6500. LD="${LD-ld} -64"
  6501. ;;
  6502. esac
  6503. fi
  6504. fi
  6505. rm -rf conftest*
  6506. ;;
  6507. mips64*-*linux*)
  6508. # Find out what ABI is being produced by ac_compile, and set linker
  6509. # options accordingly.
  6510. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6511. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6512. (eval $ac_compile) 2>&5
  6513. ac_status=$?
  6514. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6515. test $ac_status = 0; }; then
  6516. emul=elf
  6517. case `/usr/bin/file conftest.$ac_objext` in
  6518. *32-bit*)
  6519. emul="${emul}32"
  6520. ;;
  6521. *64-bit*)
  6522. emul="${emul}64"
  6523. ;;
  6524. esac
  6525. case `/usr/bin/file conftest.$ac_objext` in
  6526. *MSB*)
  6527. emul="${emul}btsmip"
  6528. ;;
  6529. *LSB*)
  6530. emul="${emul}ltsmip"
  6531. ;;
  6532. esac
  6533. case `/usr/bin/file conftest.$ac_objext` in
  6534. *N32*)
  6535. emul="${emul}n32"
  6536. ;;
  6537. esac
  6538. LD="${LD-ld} -m $emul"
  6539. fi
  6540. rm -rf conftest*
  6541. ;;
  6542. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6543. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6544. # Find out what ABI is being produced by ac_compile, and set linker
  6545. # options accordingly. Note that the listed cases only cover the
  6546. # situations where additional linker options are needed (such as when
  6547. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6548. # vice versa); the common cases where no linker options are needed do
  6549. # not appear in the list.
  6550. echo 'int i;' > conftest.$ac_ext
  6551. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6552. (eval $ac_compile) 2>&5
  6553. ac_status=$?
  6554. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6555. test $ac_status = 0; }; then
  6556. case `/usr/bin/file conftest.o` in
  6557. *32-bit*)
  6558. case $host in
  6559. x86_64-*kfreebsd*-gnu)
  6560. LD="${LD-ld} -m elf_i386_fbsd"
  6561. ;;
  6562. x86_64-*linux*)
  6563. case `/usr/bin/file conftest.o` in
  6564. *x86-64*)
  6565. LD="${LD-ld} -m elf32_x86_64"
  6566. ;;
  6567. *)
  6568. LD="${LD-ld} -m elf_i386"
  6569. ;;
  6570. esac
  6571. ;;
  6572. powerpc64le-*linux*)
  6573. LD="${LD-ld} -m elf32lppclinux"
  6574. ;;
  6575. powerpc64-*linux*)
  6576. LD="${LD-ld} -m elf32ppclinux"
  6577. ;;
  6578. s390x-*linux*)
  6579. LD="${LD-ld} -m elf_s390"
  6580. ;;
  6581. sparc64-*linux*)
  6582. LD="${LD-ld} -m elf32_sparc"
  6583. ;;
  6584. esac
  6585. ;;
  6586. *64-bit*)
  6587. case $host in
  6588. x86_64-*kfreebsd*-gnu)
  6589. LD="${LD-ld} -m elf_x86_64_fbsd"
  6590. ;;
  6591. x86_64-*linux*)
  6592. LD="${LD-ld} -m elf_x86_64"
  6593. ;;
  6594. powerpcle-*linux*)
  6595. LD="${LD-ld} -m elf64lppc"
  6596. ;;
  6597. powerpc-*linux*)
  6598. LD="${LD-ld} -m elf64ppc"
  6599. ;;
  6600. s390*-*linux*|s390*-*tpf*)
  6601. LD="${LD-ld} -m elf64_s390"
  6602. ;;
  6603. sparc*-*linux*)
  6604. LD="${LD-ld} -m elf64_sparc"
  6605. ;;
  6606. esac
  6607. ;;
  6608. esac
  6609. fi
  6610. rm -rf conftest*
  6611. ;;
  6612. *-*-sco3.2v5*)
  6613. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6614. SAVE_CFLAGS=$CFLAGS
  6615. CFLAGS="$CFLAGS -belf"
  6616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6617. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6618. if ${lt_cv_cc_needs_belf+:} false; then :
  6619. $as_echo_n "(cached) " >&6
  6620. else
  6621. ac_ext=c
  6622. ac_cpp='$CPP $CPPFLAGS'
  6623. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6624. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6625. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6627. /* end confdefs.h. */
  6628. int
  6629. main ()
  6630. {
  6631. ;
  6632. return 0;
  6633. }
  6634. _ACEOF
  6635. if ac_fn_c_try_link "$LINENO"; then :
  6636. lt_cv_cc_needs_belf=yes
  6637. else
  6638. lt_cv_cc_needs_belf=no
  6639. fi
  6640. rm -f core conftest.err conftest.$ac_objext \
  6641. conftest$ac_exeext conftest.$ac_ext
  6642. ac_ext=c
  6643. ac_cpp='$CPP $CPPFLAGS'
  6644. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6645. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6646. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6647. fi
  6648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6649. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6650. if test yes != "$lt_cv_cc_needs_belf"; then
  6651. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6652. CFLAGS=$SAVE_CFLAGS
  6653. fi
  6654. ;;
  6655. *-*solaris*)
  6656. # Find out what ABI is being produced by ac_compile, and set linker
  6657. # options accordingly.
  6658. echo 'int i;' > conftest.$ac_ext
  6659. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6660. (eval $ac_compile) 2>&5
  6661. ac_status=$?
  6662. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6663. test $ac_status = 0; }; then
  6664. case `/usr/bin/file conftest.o` in
  6665. *64-bit*)
  6666. case $lt_cv_prog_gnu_ld in
  6667. yes*)
  6668. case $host in
  6669. i?86-*-solaris*|x86_64-*-solaris*)
  6670. LD="${LD-ld} -m elf_x86_64"
  6671. ;;
  6672. sparc*-*-solaris*)
  6673. LD="${LD-ld} -m elf64_sparc"
  6674. ;;
  6675. esac
  6676. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6677. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6678. LD=${LD-ld}_sol2
  6679. fi
  6680. ;;
  6681. *)
  6682. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6683. LD="${LD-ld} -64"
  6684. fi
  6685. ;;
  6686. esac
  6687. ;;
  6688. esac
  6689. fi
  6690. rm -rf conftest*
  6691. ;;
  6692. esac
  6693. need_locks=$enable_libtool_lock
  6694. if test -n "$ac_tool_prefix"; then
  6695. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6696. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6698. $as_echo_n "checking for $ac_word... " >&6; }
  6699. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6700. $as_echo_n "(cached) " >&6
  6701. else
  6702. if test -n "$MANIFEST_TOOL"; then
  6703. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6704. else
  6705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6706. for as_dir in $PATH
  6707. do
  6708. IFS=$as_save_IFS
  6709. test -z "$as_dir" && as_dir=.
  6710. for ac_exec_ext in '' $ac_executable_extensions; do
  6711. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6712. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6713. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6714. break 2
  6715. fi
  6716. done
  6717. done
  6718. IFS=$as_save_IFS
  6719. fi
  6720. fi
  6721. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6722. if test -n "$MANIFEST_TOOL"; then
  6723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6724. $as_echo "$MANIFEST_TOOL" >&6; }
  6725. else
  6726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6727. $as_echo "no" >&6; }
  6728. fi
  6729. fi
  6730. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6731. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6732. # Extract the first word of "mt", so it can be a program name with args.
  6733. set dummy mt; ac_word=$2
  6734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6735. $as_echo_n "checking for $ac_word... " >&6; }
  6736. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6737. $as_echo_n "(cached) " >&6
  6738. else
  6739. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6740. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6741. else
  6742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6743. for as_dir in $PATH
  6744. do
  6745. IFS=$as_save_IFS
  6746. test -z "$as_dir" && as_dir=.
  6747. for ac_exec_ext in '' $ac_executable_extensions; do
  6748. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6749. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6750. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6751. break 2
  6752. fi
  6753. done
  6754. done
  6755. IFS=$as_save_IFS
  6756. fi
  6757. fi
  6758. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6759. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6761. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6762. else
  6763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6764. $as_echo "no" >&6; }
  6765. fi
  6766. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6767. MANIFEST_TOOL=":"
  6768. else
  6769. case $cross_compiling:$ac_tool_warned in
  6770. yes:)
  6771. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6772. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6773. ac_tool_warned=yes ;;
  6774. esac
  6775. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6776. fi
  6777. else
  6778. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6779. fi
  6780. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6782. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6783. if ${lt_cv_path_mainfest_tool+:} false; then :
  6784. $as_echo_n "(cached) " >&6
  6785. else
  6786. lt_cv_path_mainfest_tool=no
  6787. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6788. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6789. cat conftest.err >&5
  6790. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6791. lt_cv_path_mainfest_tool=yes
  6792. fi
  6793. rm -f conftest*
  6794. fi
  6795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6796. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6797. if test yes != "$lt_cv_path_mainfest_tool"; then
  6798. MANIFEST_TOOL=:
  6799. fi
  6800. case $host_os in
  6801. rhapsody* | darwin*)
  6802. if test -n "$ac_tool_prefix"; then
  6803. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6804. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6806. $as_echo_n "checking for $ac_word... " >&6; }
  6807. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6808. $as_echo_n "(cached) " >&6
  6809. else
  6810. if test -n "$DSYMUTIL"; then
  6811. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6812. else
  6813. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6814. for as_dir in $PATH
  6815. do
  6816. IFS=$as_save_IFS
  6817. test -z "$as_dir" && as_dir=.
  6818. for ac_exec_ext in '' $ac_executable_extensions; do
  6819. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6820. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6821. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6822. break 2
  6823. fi
  6824. done
  6825. done
  6826. IFS=$as_save_IFS
  6827. fi
  6828. fi
  6829. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6830. if test -n "$DSYMUTIL"; then
  6831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6832. $as_echo "$DSYMUTIL" >&6; }
  6833. else
  6834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6835. $as_echo "no" >&6; }
  6836. fi
  6837. fi
  6838. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6839. ac_ct_DSYMUTIL=$DSYMUTIL
  6840. # Extract the first word of "dsymutil", so it can be a program name with args.
  6841. set dummy dsymutil; ac_word=$2
  6842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6843. $as_echo_n "checking for $ac_word... " >&6; }
  6844. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6845. $as_echo_n "(cached) " >&6
  6846. else
  6847. if test -n "$ac_ct_DSYMUTIL"; then
  6848. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6849. else
  6850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6851. for as_dir in $PATH
  6852. do
  6853. IFS=$as_save_IFS
  6854. test -z "$as_dir" && as_dir=.
  6855. for ac_exec_ext in '' $ac_executable_extensions; do
  6856. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6857. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6858. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6859. break 2
  6860. fi
  6861. done
  6862. done
  6863. IFS=$as_save_IFS
  6864. fi
  6865. fi
  6866. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6867. if test -n "$ac_ct_DSYMUTIL"; then
  6868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6869. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6870. else
  6871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6872. $as_echo "no" >&6; }
  6873. fi
  6874. if test "x$ac_ct_DSYMUTIL" = x; then
  6875. DSYMUTIL=":"
  6876. else
  6877. case $cross_compiling:$ac_tool_warned in
  6878. yes:)
  6879. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6880. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6881. ac_tool_warned=yes ;;
  6882. esac
  6883. DSYMUTIL=$ac_ct_DSYMUTIL
  6884. fi
  6885. else
  6886. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6887. fi
  6888. if test -n "$ac_tool_prefix"; then
  6889. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6890. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6892. $as_echo_n "checking for $ac_word... " >&6; }
  6893. if ${ac_cv_prog_NMEDIT+:} false; then :
  6894. $as_echo_n "(cached) " >&6
  6895. else
  6896. if test -n "$NMEDIT"; then
  6897. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6898. else
  6899. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6900. for as_dir in $PATH
  6901. do
  6902. IFS=$as_save_IFS
  6903. test -z "$as_dir" && as_dir=.
  6904. for ac_exec_ext in '' $ac_executable_extensions; do
  6905. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6906. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6907. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6908. break 2
  6909. fi
  6910. done
  6911. done
  6912. IFS=$as_save_IFS
  6913. fi
  6914. fi
  6915. NMEDIT=$ac_cv_prog_NMEDIT
  6916. if test -n "$NMEDIT"; then
  6917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6918. $as_echo "$NMEDIT" >&6; }
  6919. else
  6920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6921. $as_echo "no" >&6; }
  6922. fi
  6923. fi
  6924. if test -z "$ac_cv_prog_NMEDIT"; then
  6925. ac_ct_NMEDIT=$NMEDIT
  6926. # Extract the first word of "nmedit", so it can be a program name with args.
  6927. set dummy nmedit; ac_word=$2
  6928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6929. $as_echo_n "checking for $ac_word... " >&6; }
  6930. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6931. $as_echo_n "(cached) " >&6
  6932. else
  6933. if test -n "$ac_ct_NMEDIT"; then
  6934. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6935. else
  6936. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6937. for as_dir in $PATH
  6938. do
  6939. IFS=$as_save_IFS
  6940. test -z "$as_dir" && as_dir=.
  6941. for ac_exec_ext in '' $ac_executable_extensions; do
  6942. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6943. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6944. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6945. break 2
  6946. fi
  6947. done
  6948. done
  6949. IFS=$as_save_IFS
  6950. fi
  6951. fi
  6952. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6953. if test -n "$ac_ct_NMEDIT"; then
  6954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6955. $as_echo "$ac_ct_NMEDIT" >&6; }
  6956. else
  6957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6958. $as_echo "no" >&6; }
  6959. fi
  6960. if test "x$ac_ct_NMEDIT" = x; then
  6961. NMEDIT=":"
  6962. else
  6963. case $cross_compiling:$ac_tool_warned in
  6964. yes:)
  6965. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6966. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6967. ac_tool_warned=yes ;;
  6968. esac
  6969. NMEDIT=$ac_ct_NMEDIT
  6970. fi
  6971. else
  6972. NMEDIT="$ac_cv_prog_NMEDIT"
  6973. fi
  6974. if test -n "$ac_tool_prefix"; then
  6975. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6976. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6978. $as_echo_n "checking for $ac_word... " >&6; }
  6979. if ${ac_cv_prog_LIPO+:} false; then :
  6980. $as_echo_n "(cached) " >&6
  6981. else
  6982. if test -n "$LIPO"; then
  6983. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6984. else
  6985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6986. for as_dir in $PATH
  6987. do
  6988. IFS=$as_save_IFS
  6989. test -z "$as_dir" && as_dir=.
  6990. for ac_exec_ext in '' $ac_executable_extensions; do
  6991. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6992. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6993. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6994. break 2
  6995. fi
  6996. done
  6997. done
  6998. IFS=$as_save_IFS
  6999. fi
  7000. fi
  7001. LIPO=$ac_cv_prog_LIPO
  7002. if test -n "$LIPO"; then
  7003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7004. $as_echo "$LIPO" >&6; }
  7005. else
  7006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7007. $as_echo "no" >&6; }
  7008. fi
  7009. fi
  7010. if test -z "$ac_cv_prog_LIPO"; then
  7011. ac_ct_LIPO=$LIPO
  7012. # Extract the first word of "lipo", so it can be a program name with args.
  7013. set dummy lipo; ac_word=$2
  7014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7015. $as_echo_n "checking for $ac_word... " >&6; }
  7016. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7017. $as_echo_n "(cached) " >&6
  7018. else
  7019. if test -n "$ac_ct_LIPO"; then
  7020. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7021. else
  7022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7023. for as_dir in $PATH
  7024. do
  7025. IFS=$as_save_IFS
  7026. test -z "$as_dir" && as_dir=.
  7027. for ac_exec_ext in '' $ac_executable_extensions; do
  7028. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7029. ac_cv_prog_ac_ct_LIPO="lipo"
  7030. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7031. break 2
  7032. fi
  7033. done
  7034. done
  7035. IFS=$as_save_IFS
  7036. fi
  7037. fi
  7038. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7039. if test -n "$ac_ct_LIPO"; then
  7040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7041. $as_echo "$ac_ct_LIPO" >&6; }
  7042. else
  7043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7044. $as_echo "no" >&6; }
  7045. fi
  7046. if test "x$ac_ct_LIPO" = x; then
  7047. LIPO=":"
  7048. else
  7049. case $cross_compiling:$ac_tool_warned in
  7050. yes:)
  7051. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7052. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7053. ac_tool_warned=yes ;;
  7054. esac
  7055. LIPO=$ac_ct_LIPO
  7056. fi
  7057. else
  7058. LIPO="$ac_cv_prog_LIPO"
  7059. fi
  7060. if test -n "$ac_tool_prefix"; then
  7061. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7062. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7064. $as_echo_n "checking for $ac_word... " >&6; }
  7065. if ${ac_cv_prog_OTOOL+:} false; then :
  7066. $as_echo_n "(cached) " >&6
  7067. else
  7068. if test -n "$OTOOL"; then
  7069. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7070. else
  7071. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7072. for as_dir in $PATH
  7073. do
  7074. IFS=$as_save_IFS
  7075. test -z "$as_dir" && as_dir=.
  7076. for ac_exec_ext in '' $ac_executable_extensions; do
  7077. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7078. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7079. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7080. break 2
  7081. fi
  7082. done
  7083. done
  7084. IFS=$as_save_IFS
  7085. fi
  7086. fi
  7087. OTOOL=$ac_cv_prog_OTOOL
  7088. if test -n "$OTOOL"; then
  7089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7090. $as_echo "$OTOOL" >&6; }
  7091. else
  7092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7093. $as_echo "no" >&6; }
  7094. fi
  7095. fi
  7096. if test -z "$ac_cv_prog_OTOOL"; then
  7097. ac_ct_OTOOL=$OTOOL
  7098. # Extract the first word of "otool", so it can be a program name with args.
  7099. set dummy otool; ac_word=$2
  7100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7101. $as_echo_n "checking for $ac_word... " >&6; }
  7102. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7103. $as_echo_n "(cached) " >&6
  7104. else
  7105. if test -n "$ac_ct_OTOOL"; then
  7106. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7107. else
  7108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7109. for as_dir in $PATH
  7110. do
  7111. IFS=$as_save_IFS
  7112. test -z "$as_dir" && as_dir=.
  7113. for ac_exec_ext in '' $ac_executable_extensions; do
  7114. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7115. ac_cv_prog_ac_ct_OTOOL="otool"
  7116. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7117. break 2
  7118. fi
  7119. done
  7120. done
  7121. IFS=$as_save_IFS
  7122. fi
  7123. fi
  7124. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7125. if test -n "$ac_ct_OTOOL"; then
  7126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7127. $as_echo "$ac_ct_OTOOL" >&6; }
  7128. else
  7129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7130. $as_echo "no" >&6; }
  7131. fi
  7132. if test "x$ac_ct_OTOOL" = x; then
  7133. OTOOL=":"
  7134. else
  7135. case $cross_compiling:$ac_tool_warned in
  7136. yes:)
  7137. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7138. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7139. ac_tool_warned=yes ;;
  7140. esac
  7141. OTOOL=$ac_ct_OTOOL
  7142. fi
  7143. else
  7144. OTOOL="$ac_cv_prog_OTOOL"
  7145. fi
  7146. if test -n "$ac_tool_prefix"; then
  7147. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7148. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7150. $as_echo_n "checking for $ac_word... " >&6; }
  7151. if ${ac_cv_prog_OTOOL64+:} false; then :
  7152. $as_echo_n "(cached) " >&6
  7153. else
  7154. if test -n "$OTOOL64"; then
  7155. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7156. else
  7157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7158. for as_dir in $PATH
  7159. do
  7160. IFS=$as_save_IFS
  7161. test -z "$as_dir" && as_dir=.
  7162. for ac_exec_ext in '' $ac_executable_extensions; do
  7163. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7164. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7165. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7166. break 2
  7167. fi
  7168. done
  7169. done
  7170. IFS=$as_save_IFS
  7171. fi
  7172. fi
  7173. OTOOL64=$ac_cv_prog_OTOOL64
  7174. if test -n "$OTOOL64"; then
  7175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7176. $as_echo "$OTOOL64" >&6; }
  7177. else
  7178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7179. $as_echo "no" >&6; }
  7180. fi
  7181. fi
  7182. if test -z "$ac_cv_prog_OTOOL64"; then
  7183. ac_ct_OTOOL64=$OTOOL64
  7184. # Extract the first word of "otool64", so it can be a program name with args.
  7185. set dummy otool64; ac_word=$2
  7186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7187. $as_echo_n "checking for $ac_word... " >&6; }
  7188. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7189. $as_echo_n "(cached) " >&6
  7190. else
  7191. if test -n "$ac_ct_OTOOL64"; then
  7192. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7193. else
  7194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7195. for as_dir in $PATH
  7196. do
  7197. IFS=$as_save_IFS
  7198. test -z "$as_dir" && as_dir=.
  7199. for ac_exec_ext in '' $ac_executable_extensions; do
  7200. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7201. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7202. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7203. break 2
  7204. fi
  7205. done
  7206. done
  7207. IFS=$as_save_IFS
  7208. fi
  7209. fi
  7210. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7211. if test -n "$ac_ct_OTOOL64"; then
  7212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7213. $as_echo "$ac_ct_OTOOL64" >&6; }
  7214. else
  7215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7216. $as_echo "no" >&6; }
  7217. fi
  7218. if test "x$ac_ct_OTOOL64" = x; then
  7219. OTOOL64=":"
  7220. else
  7221. case $cross_compiling:$ac_tool_warned in
  7222. yes:)
  7223. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7224. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7225. ac_tool_warned=yes ;;
  7226. esac
  7227. OTOOL64=$ac_ct_OTOOL64
  7228. fi
  7229. else
  7230. OTOOL64="$ac_cv_prog_OTOOL64"
  7231. fi
  7232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7233. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7234. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7235. $as_echo_n "(cached) " >&6
  7236. else
  7237. lt_cv_apple_cc_single_mod=no
  7238. if test -z "$LT_MULTI_MODULE"; then
  7239. # By default we will add the -single_module flag. You can override
  7240. # by either setting the environment variable LT_MULTI_MODULE
  7241. # non-empty at configure time, or by adding -multi_module to the
  7242. # link flags.
  7243. rm -rf libconftest.dylib*
  7244. echo "int foo(void){return 1;}" > conftest.c
  7245. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7246. -dynamiclib -Wl,-single_module conftest.c" >&5
  7247. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7248. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7249. _lt_result=$?
  7250. # If there is a non-empty error log, and "single_module"
  7251. # appears in it, assume the flag caused a linker warning
  7252. if test -s conftest.err && $GREP single_module conftest.err; then
  7253. cat conftest.err >&5
  7254. # Otherwise, if the output was created with a 0 exit code from
  7255. # the compiler, it worked.
  7256. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7257. lt_cv_apple_cc_single_mod=yes
  7258. else
  7259. cat conftest.err >&5
  7260. fi
  7261. rm -rf libconftest.dylib*
  7262. rm -f conftest.*
  7263. fi
  7264. fi
  7265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7266. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7268. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7269. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7270. $as_echo_n "(cached) " >&6
  7271. else
  7272. lt_cv_ld_exported_symbols_list=no
  7273. save_LDFLAGS=$LDFLAGS
  7274. echo "_main" > conftest.sym
  7275. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7277. /* end confdefs.h. */
  7278. int
  7279. main ()
  7280. {
  7281. ;
  7282. return 0;
  7283. }
  7284. _ACEOF
  7285. if ac_fn_c_try_link "$LINENO"; then :
  7286. lt_cv_ld_exported_symbols_list=yes
  7287. else
  7288. lt_cv_ld_exported_symbols_list=no
  7289. fi
  7290. rm -f core conftest.err conftest.$ac_objext \
  7291. conftest$ac_exeext conftest.$ac_ext
  7292. LDFLAGS=$save_LDFLAGS
  7293. fi
  7294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7295. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7297. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7298. if ${lt_cv_ld_force_load+:} false; then :
  7299. $as_echo_n "(cached) " >&6
  7300. else
  7301. lt_cv_ld_force_load=no
  7302. cat > conftest.c << _LT_EOF
  7303. int forced_loaded() { return 2;}
  7304. _LT_EOF
  7305. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7306. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7307. echo "$AR cru libconftest.a conftest.o" >&5
  7308. $AR cru libconftest.a conftest.o 2>&5
  7309. echo "$RANLIB libconftest.a" >&5
  7310. $RANLIB libconftest.a 2>&5
  7311. cat > conftest.c << _LT_EOF
  7312. int main() { return 0;}
  7313. _LT_EOF
  7314. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7315. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7316. _lt_result=$?
  7317. if test -s conftest.err && $GREP force_load conftest.err; then
  7318. cat conftest.err >&5
  7319. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7320. lt_cv_ld_force_load=yes
  7321. else
  7322. cat conftest.err >&5
  7323. fi
  7324. rm -f conftest.err libconftest.a conftest conftest.c
  7325. rm -rf conftest.dSYM
  7326. fi
  7327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7328. $as_echo "$lt_cv_ld_force_load" >&6; }
  7329. case $host_os in
  7330. rhapsody* | darwin1.[012])
  7331. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7332. darwin1.*)
  7333. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7334. darwin*) # darwin 5.x on
  7335. # if running on 10.5 or later, the deployment target defaults
  7336. # to the OS version, if on x86, and 10.4, the deployment
  7337. # target defaults to 10.4. Don't you love it?
  7338. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7339. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7340. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7341. 10.[012][,.]*)
  7342. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7343. 10.*)
  7344. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7345. esac
  7346. ;;
  7347. esac
  7348. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7349. _lt_dar_single_mod='$single_module'
  7350. fi
  7351. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7352. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7353. else
  7354. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7355. fi
  7356. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7357. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7358. else
  7359. _lt_dsymutil=
  7360. fi
  7361. ;;
  7362. esac
  7363. # func_munge_path_list VARIABLE PATH
  7364. # -----------------------------------
  7365. # VARIABLE is name of variable containing _space_ separated list of
  7366. # directories to be munged by the contents of PATH, which is string
  7367. # having a format:
  7368. # "DIR[:DIR]:"
  7369. # string "DIR[ DIR]" will be prepended to VARIABLE
  7370. # ":DIR[:DIR]"
  7371. # string "DIR[ DIR]" will be appended to VARIABLE
  7372. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7373. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7374. # "DIRA[ DIRA]" will be appended to VARIABLE
  7375. # "DIR[:DIR]"
  7376. # VARIABLE will be replaced by "DIR[ DIR]"
  7377. func_munge_path_list ()
  7378. {
  7379. case x$2 in
  7380. x)
  7381. ;;
  7382. *:)
  7383. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7384. ;;
  7385. x:*)
  7386. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7387. ;;
  7388. *::*)
  7389. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7390. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7391. ;;
  7392. *)
  7393. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7394. ;;
  7395. esac
  7396. }
  7397. for ac_header in dlfcn.h
  7398. do :
  7399. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7400. "
  7401. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7402. cat >>confdefs.h <<_ACEOF
  7403. #define HAVE_DLFCN_H 1
  7404. _ACEOF
  7405. fi
  7406. done
  7407. # Set options
  7408. # Check whether --enable-static was given.
  7409. if test "${enable_static+set}" = set; then :
  7410. enableval=$enable_static; p=${PACKAGE-default}
  7411. case $enableval in
  7412. yes) enable_static=yes ;;
  7413. no) enable_static=no ;;
  7414. *)
  7415. enable_static=no
  7416. # Look at the argument we got. We use all the common list separators.
  7417. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7418. for pkg in $enableval; do
  7419. IFS=$lt_save_ifs
  7420. if test "X$pkg" = "X$p"; then
  7421. enable_static=yes
  7422. fi
  7423. done
  7424. IFS=$lt_save_ifs
  7425. ;;
  7426. esac
  7427. else
  7428. enable_static=no
  7429. fi
  7430. # Check whether --with-pic was given.
  7431. if test "${with_pic+set}" = set; then :
  7432. withval=$with_pic; lt_p=${PACKAGE-default}
  7433. case $withval in
  7434. yes|no) pic_mode=$withval ;;
  7435. *)
  7436. pic_mode=default
  7437. # Look at the argument we got. We use all the common list separators.
  7438. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7439. for lt_pkg in $withval; do
  7440. IFS=$lt_save_ifs
  7441. if test "X$lt_pkg" = "X$lt_p"; then
  7442. pic_mode=yes
  7443. fi
  7444. done
  7445. IFS=$lt_save_ifs
  7446. ;;
  7447. esac
  7448. else
  7449. pic_mode=yes
  7450. fi
  7451. enable_dlopen=no
  7452. enable_win32_dll=no
  7453. # Check whether --enable-shared was given.
  7454. if test "${enable_shared+set}" = set; then :
  7455. enableval=$enable_shared; p=${PACKAGE-default}
  7456. case $enableval in
  7457. yes) enable_shared=yes ;;
  7458. no) enable_shared=no ;;
  7459. *)
  7460. enable_shared=no
  7461. # Look at the argument we got. We use all the common list separators.
  7462. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7463. for pkg in $enableval; do
  7464. IFS=$lt_save_ifs
  7465. if test "X$pkg" = "X$p"; then
  7466. enable_shared=yes
  7467. fi
  7468. done
  7469. IFS=$lt_save_ifs
  7470. ;;
  7471. esac
  7472. else
  7473. enable_shared=yes
  7474. fi
  7475. # Check whether --enable-fast-install was given.
  7476. if test "${enable_fast_install+set}" = set; then :
  7477. enableval=$enable_fast_install; p=${PACKAGE-default}
  7478. case $enableval in
  7479. yes) enable_fast_install=yes ;;
  7480. no) enable_fast_install=no ;;
  7481. *)
  7482. enable_fast_install=no
  7483. # Look at the argument we got. We use all the common list separators.
  7484. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7485. for pkg in $enableval; do
  7486. IFS=$lt_save_ifs
  7487. if test "X$pkg" = "X$p"; then
  7488. enable_fast_install=yes
  7489. fi
  7490. done
  7491. IFS=$lt_save_ifs
  7492. ;;
  7493. esac
  7494. else
  7495. enable_fast_install=yes
  7496. fi
  7497. shared_archive_member_spec=
  7498. case $host,$enable_shared in
  7499. power*-*-aix[5-9]*,yes)
  7500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7501. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7502. # Check whether --with-aix-soname was given.
  7503. if test "${with_aix_soname+set}" = set; then :
  7504. withval=$with_aix_soname; case $withval in
  7505. aix|svr4|both)
  7506. ;;
  7507. *)
  7508. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7509. ;;
  7510. esac
  7511. lt_cv_with_aix_soname=$with_aix_soname
  7512. else
  7513. if ${lt_cv_with_aix_soname+:} false; then :
  7514. $as_echo_n "(cached) " >&6
  7515. else
  7516. lt_cv_with_aix_soname=aix
  7517. fi
  7518. with_aix_soname=$lt_cv_with_aix_soname
  7519. fi
  7520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7521. $as_echo "$with_aix_soname" >&6; }
  7522. if test aix != "$with_aix_soname"; then
  7523. # For the AIX way of multilib, we name the shared archive member
  7524. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7525. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7526. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7527. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7528. if test 64 = "${OBJECT_MODE-32}"; then
  7529. shared_archive_member_spec=shr_64
  7530. else
  7531. shared_archive_member_spec=shr
  7532. fi
  7533. fi
  7534. ;;
  7535. *)
  7536. with_aix_soname=aix
  7537. ;;
  7538. esac
  7539. # This can be used to rebuild libtool when needed
  7540. LIBTOOL_DEPS=$ltmain
  7541. # Always use our own libtool.
  7542. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7543. test -z "$LN_S" && LN_S="ln -s"
  7544. if test -n "${ZSH_VERSION+set}"; then
  7545. setopt NO_GLOB_SUBST
  7546. fi
  7547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7548. $as_echo_n "checking for objdir... " >&6; }
  7549. if ${lt_cv_objdir+:} false; then :
  7550. $as_echo_n "(cached) " >&6
  7551. else
  7552. rm -f .libs 2>/dev/null
  7553. mkdir .libs 2>/dev/null
  7554. if test -d .libs; then
  7555. lt_cv_objdir=.libs
  7556. else
  7557. # MS-DOS does not allow filenames that begin with a dot.
  7558. lt_cv_objdir=_libs
  7559. fi
  7560. rmdir .libs 2>/dev/null
  7561. fi
  7562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7563. $as_echo "$lt_cv_objdir" >&6; }
  7564. objdir=$lt_cv_objdir
  7565. cat >>confdefs.h <<_ACEOF
  7566. #define LT_OBJDIR "$lt_cv_objdir/"
  7567. _ACEOF
  7568. case $host_os in
  7569. aix3*)
  7570. # AIX sometimes has problems with the GCC collect2 program. For some
  7571. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7572. # vanish in a puff of smoke.
  7573. if test set != "${COLLECT_NAMES+set}"; then
  7574. COLLECT_NAMES=
  7575. export COLLECT_NAMES
  7576. fi
  7577. ;;
  7578. esac
  7579. # Global variables:
  7580. ofile=libtool
  7581. can_build_shared=yes
  7582. # All known linkers require a '.a' archive for static linking (except MSVC,
  7583. # which needs '.lib').
  7584. libext=a
  7585. with_gnu_ld=$lt_cv_prog_gnu_ld
  7586. old_CC=$CC
  7587. old_CFLAGS=$CFLAGS
  7588. # Set sane defaults for various variables
  7589. test -z "$CC" && CC=cc
  7590. test -z "$LTCC" && LTCC=$CC
  7591. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7592. test -z "$LD" && LD=ld
  7593. test -z "$ac_objext" && ac_objext=o
  7594. func_cc_basename $compiler
  7595. cc_basename=$func_cc_basename_result
  7596. # Only perform the check for file, if the check method requires it
  7597. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7598. case $deplibs_check_method in
  7599. file_magic*)
  7600. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7602. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7603. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7604. $as_echo_n "(cached) " >&6
  7605. else
  7606. case $MAGIC_CMD in
  7607. [\\/*] | ?:[\\/]*)
  7608. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7609. ;;
  7610. *)
  7611. lt_save_MAGIC_CMD=$MAGIC_CMD
  7612. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7613. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7614. for ac_dir in $ac_dummy; do
  7615. IFS=$lt_save_ifs
  7616. test -z "$ac_dir" && ac_dir=.
  7617. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7618. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7619. if test -n "$file_magic_test_file"; then
  7620. case $deplibs_check_method in
  7621. "file_magic "*)
  7622. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7623. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7624. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7625. $EGREP "$file_magic_regex" > /dev/null; then
  7626. :
  7627. else
  7628. cat <<_LT_EOF 1>&2
  7629. *** Warning: the command libtool uses to detect shared libraries,
  7630. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7631. *** The result is that libtool may fail to recognize shared libraries
  7632. *** as such. This will affect the creation of libtool libraries that
  7633. *** depend on shared libraries, but programs linked with such libtool
  7634. *** libraries will work regardless of this problem. Nevertheless, you
  7635. *** may want to report the problem to your system manager and/or to
  7636. *** bug-libtool@gnu.org
  7637. _LT_EOF
  7638. fi ;;
  7639. esac
  7640. fi
  7641. break
  7642. fi
  7643. done
  7644. IFS=$lt_save_ifs
  7645. MAGIC_CMD=$lt_save_MAGIC_CMD
  7646. ;;
  7647. esac
  7648. fi
  7649. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7650. if test -n "$MAGIC_CMD"; then
  7651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7652. $as_echo "$MAGIC_CMD" >&6; }
  7653. else
  7654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7655. $as_echo "no" >&6; }
  7656. fi
  7657. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7658. if test -n "$ac_tool_prefix"; then
  7659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7660. $as_echo_n "checking for file... " >&6; }
  7661. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7662. $as_echo_n "(cached) " >&6
  7663. else
  7664. case $MAGIC_CMD in
  7665. [\\/*] | ?:[\\/]*)
  7666. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7667. ;;
  7668. *)
  7669. lt_save_MAGIC_CMD=$MAGIC_CMD
  7670. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7671. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7672. for ac_dir in $ac_dummy; do
  7673. IFS=$lt_save_ifs
  7674. test -z "$ac_dir" && ac_dir=.
  7675. if test -f "$ac_dir/file"; then
  7676. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7677. if test -n "$file_magic_test_file"; then
  7678. case $deplibs_check_method in
  7679. "file_magic "*)
  7680. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7681. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7682. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7683. $EGREP "$file_magic_regex" > /dev/null; then
  7684. :
  7685. else
  7686. cat <<_LT_EOF 1>&2
  7687. *** Warning: the command libtool uses to detect shared libraries,
  7688. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7689. *** The result is that libtool may fail to recognize shared libraries
  7690. *** as such. This will affect the creation of libtool libraries that
  7691. *** depend on shared libraries, but programs linked with such libtool
  7692. *** libraries will work regardless of this problem. Nevertheless, you
  7693. *** may want to report the problem to your system manager and/or to
  7694. *** bug-libtool@gnu.org
  7695. _LT_EOF
  7696. fi ;;
  7697. esac
  7698. fi
  7699. break
  7700. fi
  7701. done
  7702. IFS=$lt_save_ifs
  7703. MAGIC_CMD=$lt_save_MAGIC_CMD
  7704. ;;
  7705. esac
  7706. fi
  7707. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7708. if test -n "$MAGIC_CMD"; then
  7709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7710. $as_echo "$MAGIC_CMD" >&6; }
  7711. else
  7712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7713. $as_echo "no" >&6; }
  7714. fi
  7715. else
  7716. MAGIC_CMD=:
  7717. fi
  7718. fi
  7719. fi
  7720. ;;
  7721. esac
  7722. # Use C for the default configuration in the libtool script
  7723. lt_save_CC=$CC
  7724. ac_ext=c
  7725. ac_cpp='$CPP $CPPFLAGS'
  7726. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7727. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7728. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7729. # Source file extension for C test sources.
  7730. ac_ext=c
  7731. # Object file extension for compiled C test sources.
  7732. objext=o
  7733. objext=$objext
  7734. # Code to be used in simple compile tests
  7735. lt_simple_compile_test_code="int some_variable = 0;"
  7736. # Code to be used in simple link tests
  7737. lt_simple_link_test_code='int main(){return(0);}'
  7738. # If no C compiler was specified, use CC.
  7739. LTCC=${LTCC-"$CC"}
  7740. # If no C compiler flags were specified, use CFLAGS.
  7741. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7742. # Allow CC to be a program name with arguments.
  7743. compiler=$CC
  7744. # Save the default compiler, since it gets overwritten when the other
  7745. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7746. compiler_DEFAULT=$CC
  7747. # save warnings/boilerplate of simple test code
  7748. ac_outfile=conftest.$ac_objext
  7749. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7750. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7751. _lt_compiler_boilerplate=`cat conftest.err`
  7752. $RM conftest*
  7753. ac_outfile=conftest.$ac_objext
  7754. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7755. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7756. _lt_linker_boilerplate=`cat conftest.err`
  7757. $RM -r conftest*
  7758. ## CAVEAT EMPTOR:
  7759. ## There is no encapsulation within the following macros, do not change
  7760. ## the running order or otherwise move them around unless you know exactly
  7761. ## what you are doing...
  7762. if test -n "$compiler"; then
  7763. lt_prog_compiler_no_builtin_flag=
  7764. if test yes = "$GCC"; then
  7765. case $cc_basename in
  7766. nvcc*)
  7767. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7768. *)
  7769. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7770. esac
  7771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7772. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7773. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7774. $as_echo_n "(cached) " >&6
  7775. else
  7776. lt_cv_prog_compiler_rtti_exceptions=no
  7777. ac_outfile=conftest.$ac_objext
  7778. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7779. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7780. # Insert the option either (1) after the last *FLAGS variable, or
  7781. # (2) before a word containing "conftest.", or (3) at the end.
  7782. # Note that $ac_compile itself does not contain backslashes and begins
  7783. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7784. # The option is referenced via a variable to avoid confusing sed.
  7785. lt_compile=`echo "$ac_compile" | $SED \
  7786. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7787. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7788. -e 's:$: $lt_compiler_flag:'`
  7789. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7790. (eval "$lt_compile" 2>conftest.err)
  7791. ac_status=$?
  7792. cat conftest.err >&5
  7793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7794. if (exit $ac_status) && test -s "$ac_outfile"; then
  7795. # The compiler can only warn and ignore the option if not recognized
  7796. # So say no if there are warnings other than the usual output.
  7797. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7798. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7799. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7800. lt_cv_prog_compiler_rtti_exceptions=yes
  7801. fi
  7802. fi
  7803. $RM conftest*
  7804. fi
  7805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7806. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7807. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7808. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7809. else
  7810. :
  7811. fi
  7812. fi
  7813. lt_prog_compiler_wl=
  7814. lt_prog_compiler_pic=
  7815. lt_prog_compiler_static=
  7816. if test yes = "$GCC"; then
  7817. lt_prog_compiler_wl='-Wl,'
  7818. lt_prog_compiler_static='-static'
  7819. case $host_os in
  7820. aix*)
  7821. # All AIX code is PIC.
  7822. if test ia64 = "$host_cpu"; then
  7823. # AIX 5 now supports IA64 processor
  7824. lt_prog_compiler_static='-Bstatic'
  7825. fi
  7826. lt_prog_compiler_pic='-fPIC'
  7827. ;;
  7828. amigaos*)
  7829. case $host_cpu in
  7830. powerpc)
  7831. # see comment about AmigaOS4 .so support
  7832. lt_prog_compiler_pic='-fPIC'
  7833. ;;
  7834. m68k)
  7835. # FIXME: we need at least 68020 code to build shared libraries, but
  7836. # adding the '-m68020' flag to GCC prevents building anything better,
  7837. # like '-m68040'.
  7838. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7839. ;;
  7840. esac
  7841. ;;
  7842. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7843. # PIC is the default for these OSes.
  7844. ;;
  7845. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7846. # This hack is so that the source file can tell whether it is being
  7847. # built for inclusion in a dll (and should export symbols for example).
  7848. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7849. # (--disable-auto-import) libraries
  7850. lt_prog_compiler_pic='-DDLL_EXPORT'
  7851. case $host_os in
  7852. os2*)
  7853. lt_prog_compiler_static='$wl-static'
  7854. ;;
  7855. esac
  7856. ;;
  7857. darwin* | rhapsody*)
  7858. # PIC is the default on this platform
  7859. # Common symbols not allowed in MH_DYLIB files
  7860. lt_prog_compiler_pic='-fno-common'
  7861. ;;
  7862. haiku*)
  7863. # PIC is the default for Haiku.
  7864. # The "-static" flag exists, but is broken.
  7865. lt_prog_compiler_static=
  7866. ;;
  7867. hpux*)
  7868. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7869. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7870. # sets the default TLS model and affects inlining.
  7871. case $host_cpu in
  7872. hppa*64*)
  7873. # +Z the default
  7874. ;;
  7875. *)
  7876. lt_prog_compiler_pic='-fPIC'
  7877. ;;
  7878. esac
  7879. ;;
  7880. interix[3-9]*)
  7881. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7882. # Instead, we relocate shared libraries at runtime.
  7883. ;;
  7884. msdosdjgpp*)
  7885. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7886. # on systems that don't support them.
  7887. lt_prog_compiler_can_build_shared=no
  7888. enable_shared=no
  7889. ;;
  7890. *nto* | *qnx*)
  7891. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7892. # it will coredump.
  7893. lt_prog_compiler_pic='-fPIC -shared'
  7894. ;;
  7895. sysv4*MP*)
  7896. if test -d /usr/nec; then
  7897. lt_prog_compiler_pic=-Kconform_pic
  7898. fi
  7899. ;;
  7900. *)
  7901. lt_prog_compiler_pic='-fPIC'
  7902. ;;
  7903. esac
  7904. case $cc_basename in
  7905. nvcc*) # Cuda Compiler Driver 2.2
  7906. lt_prog_compiler_wl='-Xlinker '
  7907. if test -n "$lt_prog_compiler_pic"; then
  7908. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7909. fi
  7910. ;;
  7911. esac
  7912. else
  7913. # PORTME Check for flag to pass linker flags through the system compiler.
  7914. case $host_os in
  7915. aix*)
  7916. lt_prog_compiler_wl='-Wl,'
  7917. if test ia64 = "$host_cpu"; then
  7918. # AIX 5 now supports IA64 processor
  7919. lt_prog_compiler_static='-Bstatic'
  7920. else
  7921. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7922. fi
  7923. ;;
  7924. darwin* | rhapsody*)
  7925. # PIC is the default on this platform
  7926. # Common symbols not allowed in MH_DYLIB files
  7927. lt_prog_compiler_pic='-fno-common'
  7928. case $cc_basename in
  7929. nagfor*)
  7930. # NAG Fortran compiler
  7931. lt_prog_compiler_wl='-Wl,-Wl,,'
  7932. lt_prog_compiler_pic='-PIC'
  7933. lt_prog_compiler_static='-Bstatic'
  7934. ;;
  7935. esac
  7936. ;;
  7937. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7938. # This hack is so that the source file can tell whether it is being
  7939. # built for inclusion in a dll (and should export symbols for example).
  7940. lt_prog_compiler_pic='-DDLL_EXPORT'
  7941. case $host_os in
  7942. os2*)
  7943. lt_prog_compiler_static='$wl-static'
  7944. ;;
  7945. esac
  7946. ;;
  7947. hpux9* | hpux10* | hpux11*)
  7948. lt_prog_compiler_wl='-Wl,'
  7949. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7950. # not for PA HP-UX.
  7951. case $host_cpu in
  7952. hppa*64*|ia64*)
  7953. # +Z the default
  7954. ;;
  7955. *)
  7956. lt_prog_compiler_pic='+Z'
  7957. ;;
  7958. esac
  7959. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7960. lt_prog_compiler_static='$wl-a ${wl}archive'
  7961. ;;
  7962. irix5* | irix6* | nonstopux*)
  7963. lt_prog_compiler_wl='-Wl,'
  7964. # PIC (with -KPIC) is the default.
  7965. lt_prog_compiler_static='-non_shared'
  7966. ;;
  7967. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7968. case $cc_basename in
  7969. # old Intel for x86_64, which still supported -KPIC.
  7970. ecc*)
  7971. lt_prog_compiler_wl='-Wl,'
  7972. lt_prog_compiler_pic='-KPIC'
  7973. lt_prog_compiler_static='-static'
  7974. ;;
  7975. # icc used to be incompatible with GCC.
  7976. # ICC 10 doesn't accept -KPIC any more.
  7977. icc* | ifort*)
  7978. lt_prog_compiler_wl='-Wl,'
  7979. lt_prog_compiler_pic='-fPIC'
  7980. lt_prog_compiler_static='-static'
  7981. ;;
  7982. # Lahey Fortran 8.1.
  7983. lf95*)
  7984. lt_prog_compiler_wl='-Wl,'
  7985. lt_prog_compiler_pic='--shared'
  7986. lt_prog_compiler_static='--static'
  7987. ;;
  7988. nagfor*)
  7989. # NAG Fortran compiler
  7990. lt_prog_compiler_wl='-Wl,-Wl,,'
  7991. lt_prog_compiler_pic='-PIC'
  7992. lt_prog_compiler_static='-Bstatic'
  7993. ;;
  7994. tcc*)
  7995. # Fabrice Bellard et al's Tiny C Compiler
  7996. lt_prog_compiler_wl='-Wl,'
  7997. lt_prog_compiler_pic='-fPIC'
  7998. lt_prog_compiler_static='-static'
  7999. ;;
  8000. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8001. # Portland Group compilers (*not* the Pentium gcc compiler,
  8002. # which looks to be a dead project)
  8003. lt_prog_compiler_wl='-Wl,'
  8004. lt_prog_compiler_pic='-fpic'
  8005. lt_prog_compiler_static='-Bstatic'
  8006. ;;
  8007. ccc*)
  8008. lt_prog_compiler_wl='-Wl,'
  8009. # All Alpha code is PIC.
  8010. lt_prog_compiler_static='-non_shared'
  8011. ;;
  8012. xl* | bgxl* | bgf* | mpixl*)
  8013. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8014. lt_prog_compiler_wl='-Wl,'
  8015. lt_prog_compiler_pic='-qpic'
  8016. lt_prog_compiler_static='-qstaticlink'
  8017. ;;
  8018. *)
  8019. case `$CC -V 2>&1 | sed 5q` in
  8020. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8021. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8022. lt_prog_compiler_pic='-KPIC'
  8023. lt_prog_compiler_static='-Bstatic'
  8024. lt_prog_compiler_wl=''
  8025. ;;
  8026. *Sun\ F* | *Sun*Fortran*)
  8027. lt_prog_compiler_pic='-KPIC'
  8028. lt_prog_compiler_static='-Bstatic'
  8029. lt_prog_compiler_wl='-Qoption ld '
  8030. ;;
  8031. *Sun\ C*)
  8032. # Sun C 5.9
  8033. lt_prog_compiler_pic='-KPIC'
  8034. lt_prog_compiler_static='-Bstatic'
  8035. lt_prog_compiler_wl='-Wl,'
  8036. ;;
  8037. *Intel*\ [CF]*Compiler*)
  8038. lt_prog_compiler_wl='-Wl,'
  8039. lt_prog_compiler_pic='-fPIC'
  8040. lt_prog_compiler_static='-static'
  8041. ;;
  8042. *Portland\ Group*)
  8043. lt_prog_compiler_wl='-Wl,'
  8044. lt_prog_compiler_pic='-fpic'
  8045. lt_prog_compiler_static='-Bstatic'
  8046. ;;
  8047. esac
  8048. ;;
  8049. esac
  8050. ;;
  8051. newsos6)
  8052. lt_prog_compiler_pic='-KPIC'
  8053. lt_prog_compiler_static='-Bstatic'
  8054. ;;
  8055. *nto* | *qnx*)
  8056. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8057. # it will coredump.
  8058. lt_prog_compiler_pic='-fPIC -shared'
  8059. ;;
  8060. osf3* | osf4* | osf5*)
  8061. lt_prog_compiler_wl='-Wl,'
  8062. # All OSF/1 code is PIC.
  8063. lt_prog_compiler_static='-non_shared'
  8064. ;;
  8065. rdos*)
  8066. lt_prog_compiler_static='-non_shared'
  8067. ;;
  8068. solaris*)
  8069. lt_prog_compiler_pic='-KPIC'
  8070. lt_prog_compiler_static='-Bstatic'
  8071. case $cc_basename in
  8072. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8073. lt_prog_compiler_wl='-Qoption ld ';;
  8074. *)
  8075. lt_prog_compiler_wl='-Wl,';;
  8076. esac
  8077. ;;
  8078. sunos4*)
  8079. lt_prog_compiler_wl='-Qoption ld '
  8080. lt_prog_compiler_pic='-PIC'
  8081. lt_prog_compiler_static='-Bstatic'
  8082. ;;
  8083. sysv4 | sysv4.2uw2* | sysv4.3*)
  8084. lt_prog_compiler_wl='-Wl,'
  8085. lt_prog_compiler_pic='-KPIC'
  8086. lt_prog_compiler_static='-Bstatic'
  8087. ;;
  8088. sysv4*MP*)
  8089. if test -d /usr/nec; then
  8090. lt_prog_compiler_pic='-Kconform_pic'
  8091. lt_prog_compiler_static='-Bstatic'
  8092. fi
  8093. ;;
  8094. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8095. lt_prog_compiler_wl='-Wl,'
  8096. lt_prog_compiler_pic='-KPIC'
  8097. lt_prog_compiler_static='-Bstatic'
  8098. ;;
  8099. unicos*)
  8100. lt_prog_compiler_wl='-Wl,'
  8101. lt_prog_compiler_can_build_shared=no
  8102. ;;
  8103. uts4*)
  8104. lt_prog_compiler_pic='-pic'
  8105. lt_prog_compiler_static='-Bstatic'
  8106. ;;
  8107. *)
  8108. lt_prog_compiler_can_build_shared=no
  8109. ;;
  8110. esac
  8111. fi
  8112. case $host_os in
  8113. # For platforms that do not support PIC, -DPIC is meaningless:
  8114. *djgpp*)
  8115. lt_prog_compiler_pic=
  8116. ;;
  8117. *)
  8118. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8119. ;;
  8120. esac
  8121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8122. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8123. if ${lt_cv_prog_compiler_pic+:} false; then :
  8124. $as_echo_n "(cached) " >&6
  8125. else
  8126. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8127. fi
  8128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8129. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8130. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8131. #
  8132. # Check to make sure the PIC flag actually works.
  8133. #
  8134. if test -n "$lt_prog_compiler_pic"; then
  8135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8136. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8137. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8138. $as_echo_n "(cached) " >&6
  8139. else
  8140. lt_cv_prog_compiler_pic_works=no
  8141. ac_outfile=conftest.$ac_objext
  8142. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8143. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8144. # Insert the option either (1) after the last *FLAGS variable, or
  8145. # (2) before a word containing "conftest.", or (3) at the end.
  8146. # Note that $ac_compile itself does not contain backslashes and begins
  8147. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8148. # The option is referenced via a variable to avoid confusing sed.
  8149. lt_compile=`echo "$ac_compile" | $SED \
  8150. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8151. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8152. -e 's:$: $lt_compiler_flag:'`
  8153. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8154. (eval "$lt_compile" 2>conftest.err)
  8155. ac_status=$?
  8156. cat conftest.err >&5
  8157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8158. if (exit $ac_status) && test -s "$ac_outfile"; then
  8159. # The compiler can only warn and ignore the option if not recognized
  8160. # So say no if there are warnings other than the usual output.
  8161. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8162. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8163. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8164. lt_cv_prog_compiler_pic_works=yes
  8165. fi
  8166. fi
  8167. $RM conftest*
  8168. fi
  8169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8170. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8171. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8172. case $lt_prog_compiler_pic in
  8173. "" | " "*) ;;
  8174. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8175. esac
  8176. else
  8177. lt_prog_compiler_pic=
  8178. lt_prog_compiler_can_build_shared=no
  8179. fi
  8180. fi
  8181. #
  8182. # Check to make sure the static flag actually works.
  8183. #
  8184. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8186. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8187. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8188. $as_echo_n "(cached) " >&6
  8189. else
  8190. lt_cv_prog_compiler_static_works=no
  8191. save_LDFLAGS=$LDFLAGS
  8192. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8193. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8194. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8195. # The linker can only warn and ignore the option if not recognized
  8196. # So say no if there are warnings
  8197. if test -s conftest.err; then
  8198. # Append any errors to the config.log.
  8199. cat conftest.err 1>&5
  8200. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8201. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8202. if diff conftest.exp conftest.er2 >/dev/null; then
  8203. lt_cv_prog_compiler_static_works=yes
  8204. fi
  8205. else
  8206. lt_cv_prog_compiler_static_works=yes
  8207. fi
  8208. fi
  8209. $RM -r conftest*
  8210. LDFLAGS=$save_LDFLAGS
  8211. fi
  8212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8213. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8214. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8215. :
  8216. else
  8217. lt_prog_compiler_static=
  8218. fi
  8219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8220. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8221. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8222. $as_echo_n "(cached) " >&6
  8223. else
  8224. lt_cv_prog_compiler_c_o=no
  8225. $RM -r conftest 2>/dev/null
  8226. mkdir conftest
  8227. cd conftest
  8228. mkdir out
  8229. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8230. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8231. # Insert the option either (1) after the last *FLAGS variable, or
  8232. # (2) before a word containing "conftest.", or (3) at the end.
  8233. # Note that $ac_compile itself does not contain backslashes and begins
  8234. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8235. lt_compile=`echo "$ac_compile" | $SED \
  8236. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8237. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8238. -e 's:$: $lt_compiler_flag:'`
  8239. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8240. (eval "$lt_compile" 2>out/conftest.err)
  8241. ac_status=$?
  8242. cat out/conftest.err >&5
  8243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8244. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8245. then
  8246. # The compiler can only warn and ignore the option if not recognized
  8247. # So say no if there are warnings
  8248. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8249. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8250. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8251. lt_cv_prog_compiler_c_o=yes
  8252. fi
  8253. fi
  8254. chmod u+w . 2>&5
  8255. $RM conftest*
  8256. # SGI C++ compiler will create directory out/ii_files/ for
  8257. # template instantiation
  8258. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8259. $RM out/* && rmdir out
  8260. cd ..
  8261. $RM -r conftest
  8262. $RM conftest*
  8263. fi
  8264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8265. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8267. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8268. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8269. $as_echo_n "(cached) " >&6
  8270. else
  8271. lt_cv_prog_compiler_c_o=no
  8272. $RM -r conftest 2>/dev/null
  8273. mkdir conftest
  8274. cd conftest
  8275. mkdir out
  8276. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8277. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8278. # Insert the option either (1) after the last *FLAGS variable, or
  8279. # (2) before a word containing "conftest.", or (3) at the end.
  8280. # Note that $ac_compile itself does not contain backslashes and begins
  8281. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8282. lt_compile=`echo "$ac_compile" | $SED \
  8283. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8284. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8285. -e 's:$: $lt_compiler_flag:'`
  8286. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8287. (eval "$lt_compile" 2>out/conftest.err)
  8288. ac_status=$?
  8289. cat out/conftest.err >&5
  8290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8291. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8292. then
  8293. # The compiler can only warn and ignore the option if not recognized
  8294. # So say no if there are warnings
  8295. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8296. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8297. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8298. lt_cv_prog_compiler_c_o=yes
  8299. fi
  8300. fi
  8301. chmod u+w . 2>&5
  8302. $RM conftest*
  8303. # SGI C++ compiler will create directory out/ii_files/ for
  8304. # template instantiation
  8305. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8306. $RM out/* && rmdir out
  8307. cd ..
  8308. $RM -r conftest
  8309. $RM conftest*
  8310. fi
  8311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8312. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8313. hard_links=nottested
  8314. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8315. # do not overwrite the value of need_locks provided by the user
  8316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8317. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8318. hard_links=yes
  8319. $RM conftest*
  8320. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8321. touch conftest.a
  8322. ln conftest.a conftest.b 2>&5 || hard_links=no
  8323. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8325. $as_echo "$hard_links" >&6; }
  8326. if test no = "$hard_links"; then
  8327. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8328. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8329. need_locks=warn
  8330. fi
  8331. else
  8332. need_locks=no
  8333. fi
  8334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8335. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8336. runpath_var=
  8337. allow_undefined_flag=
  8338. always_export_symbols=no
  8339. archive_cmds=
  8340. archive_expsym_cmds=
  8341. compiler_needs_object=no
  8342. enable_shared_with_static_runtimes=no
  8343. export_dynamic_flag_spec=
  8344. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8345. hardcode_automatic=no
  8346. hardcode_direct=no
  8347. hardcode_direct_absolute=no
  8348. hardcode_libdir_flag_spec=
  8349. hardcode_libdir_separator=
  8350. hardcode_minus_L=no
  8351. hardcode_shlibpath_var=unsupported
  8352. inherit_rpath=no
  8353. link_all_deplibs=unknown
  8354. module_cmds=
  8355. module_expsym_cmds=
  8356. old_archive_from_new_cmds=
  8357. old_archive_from_expsyms_cmds=
  8358. thread_safe_flag_spec=
  8359. whole_archive_flag_spec=
  8360. # include_expsyms should be a list of space-separated symbols to be *always*
  8361. # included in the symbol list
  8362. include_expsyms=
  8363. # exclude_expsyms can be an extended regexp of symbols to exclude
  8364. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8365. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8366. # as well as any symbol that contains 'd'.
  8367. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8368. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8369. # platforms (ab)use it in PIC code, but their linkers get confused if
  8370. # the symbol is explicitly referenced. Since portable code cannot
  8371. # rely on this symbol name, it's probably fine to never include it in
  8372. # preloaded symbol tables.
  8373. # Exclude shared library initialization/finalization symbols.
  8374. extract_expsyms_cmds=
  8375. case $host_os in
  8376. cygwin* | mingw* | pw32* | cegcc*)
  8377. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8378. # When not using gcc, we currently assume that we are using
  8379. # Microsoft Visual C++.
  8380. if test yes != "$GCC"; then
  8381. with_gnu_ld=no
  8382. fi
  8383. ;;
  8384. interix*)
  8385. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8386. with_gnu_ld=yes
  8387. ;;
  8388. openbsd* | bitrig*)
  8389. with_gnu_ld=no
  8390. ;;
  8391. esac
  8392. ld_shlibs=yes
  8393. # On some targets, GNU ld is compatible enough with the native linker
  8394. # that we're better off using the native interface for both.
  8395. lt_use_gnu_ld_interface=no
  8396. if test yes = "$with_gnu_ld"; then
  8397. case $host_os in
  8398. aix*)
  8399. # The AIX port of GNU ld has always aspired to compatibility
  8400. # with the native linker. However, as the warning in the GNU ld
  8401. # block says, versions before 2.19.5* couldn't really create working
  8402. # shared libraries, regardless of the interface used.
  8403. case `$LD -v 2>&1` in
  8404. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8405. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8406. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8407. *)
  8408. lt_use_gnu_ld_interface=yes
  8409. ;;
  8410. esac
  8411. ;;
  8412. *)
  8413. lt_use_gnu_ld_interface=yes
  8414. ;;
  8415. esac
  8416. fi
  8417. if test yes = "$lt_use_gnu_ld_interface"; then
  8418. # If archive_cmds runs LD, not CC, wlarc should be empty
  8419. wlarc='$wl'
  8420. # Set some defaults for GNU ld with shared library support. These
  8421. # are reset later if shared libraries are not supported. Putting them
  8422. # here allows them to be overridden if necessary.
  8423. runpath_var=LD_RUN_PATH
  8424. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8425. export_dynamic_flag_spec='$wl--export-dynamic'
  8426. # ancient GNU ld didn't support --whole-archive et. al.
  8427. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8428. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8429. else
  8430. whole_archive_flag_spec=
  8431. fi
  8432. supports_anon_versioning=no
  8433. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8434. *GNU\ gold*) supports_anon_versioning=yes ;;
  8435. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8436. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8437. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8438. *\ 2.11.*) ;; # other 2.11 versions
  8439. *) supports_anon_versioning=yes ;;
  8440. esac
  8441. # See if GNU ld supports shared libraries.
  8442. case $host_os in
  8443. aix[3-9]*)
  8444. # On AIX/PPC, the GNU linker is very broken
  8445. if test ia64 != "$host_cpu"; then
  8446. ld_shlibs=no
  8447. cat <<_LT_EOF 1>&2
  8448. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8449. *** to be unable to reliably create shared libraries on AIX.
  8450. *** Therefore, libtool is disabling shared libraries support. If you
  8451. *** really care for shared libraries, you may want to install binutils
  8452. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8453. *** You will then need to restart the configuration process.
  8454. _LT_EOF
  8455. fi
  8456. ;;
  8457. amigaos*)
  8458. case $host_cpu in
  8459. powerpc)
  8460. # see comment about AmigaOS4 .so support
  8461. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8462. archive_expsym_cmds=''
  8463. ;;
  8464. m68k)
  8465. 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)'
  8466. hardcode_libdir_flag_spec='-L$libdir'
  8467. hardcode_minus_L=yes
  8468. ;;
  8469. esac
  8470. ;;
  8471. beos*)
  8472. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8473. allow_undefined_flag=unsupported
  8474. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8475. # support --undefined. This deserves some investigation. FIXME
  8476. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8477. else
  8478. ld_shlibs=no
  8479. fi
  8480. ;;
  8481. cygwin* | mingw* | pw32* | cegcc*)
  8482. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8483. # as there is no search path for DLLs.
  8484. hardcode_libdir_flag_spec='-L$libdir'
  8485. export_dynamic_flag_spec='$wl--export-all-symbols'
  8486. allow_undefined_flag=unsupported
  8487. always_export_symbols=no
  8488. enable_shared_with_static_runtimes=yes
  8489. 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'
  8490. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8491. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8492. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8493. # If the export-symbols file already is a .def file, use it as
  8494. # is; otherwise, prepend EXPORTS...
  8495. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8496. cp $export_symbols $output_objdir/$soname.def;
  8497. else
  8498. echo EXPORTS > $output_objdir/$soname.def;
  8499. cat $export_symbols >> $output_objdir/$soname.def;
  8500. fi~
  8501. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8502. else
  8503. ld_shlibs=no
  8504. fi
  8505. ;;
  8506. haiku*)
  8507. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8508. link_all_deplibs=yes
  8509. ;;
  8510. os2*)
  8511. hardcode_libdir_flag_spec='-L$libdir'
  8512. hardcode_minus_L=yes
  8513. allow_undefined_flag=unsupported
  8514. shrext_cmds=.dll
  8515. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8516. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8517. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8518. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8519. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8520. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8521. emximp -o $lib $output_objdir/$libname.def'
  8522. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8523. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8524. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8525. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8526. prefix_cmds="$SED"~
  8527. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8528. prefix_cmds="$prefix_cmds -e 1d";
  8529. fi~
  8530. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8531. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8532. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8533. emximp -o $lib $output_objdir/$libname.def'
  8534. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8535. enable_shared_with_static_runtimes=yes
  8536. ;;
  8537. interix[3-9]*)
  8538. hardcode_direct=no
  8539. hardcode_shlibpath_var=no
  8540. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8541. export_dynamic_flag_spec='$wl-E'
  8542. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8543. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8544. # default) and relocated if they conflict, which is a slow very memory
  8545. # consuming and fragmenting process. To avoid this, we pick a random,
  8546. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8547. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8548. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8549. 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'
  8550. ;;
  8551. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8552. tmp_diet=no
  8553. if test linux-dietlibc = "$host_os"; then
  8554. case $cc_basename in
  8555. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8556. esac
  8557. fi
  8558. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8559. && test no = "$tmp_diet"
  8560. then
  8561. tmp_addflag=' $pic_flag'
  8562. tmp_sharedflag='-shared'
  8563. case $cc_basename,$host_cpu in
  8564. pgcc*) # Portland Group C compiler
  8565. 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'
  8566. tmp_addflag=' $pic_flag'
  8567. ;;
  8568. pgf77* | pgf90* | pgf95* | pgfortran*)
  8569. # Portland Group f77 and f90 compilers
  8570. 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'
  8571. tmp_addflag=' $pic_flag -Mnomain' ;;
  8572. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8573. tmp_addflag=' -i_dynamic' ;;
  8574. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8575. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8576. ifc* | ifort*) # Intel Fortran compiler
  8577. tmp_addflag=' -nofor_main' ;;
  8578. lf95*) # Lahey Fortran 8.1
  8579. whole_archive_flag_spec=
  8580. tmp_sharedflag='--shared' ;;
  8581. nagfor*) # NAGFOR 5.3
  8582. tmp_sharedflag='-Wl,-shared' ;;
  8583. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8584. tmp_sharedflag='-qmkshrobj'
  8585. tmp_addflag= ;;
  8586. nvcc*) # Cuda Compiler Driver 2.2
  8587. 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'
  8588. compiler_needs_object=yes
  8589. ;;
  8590. esac
  8591. case `$CC -V 2>&1 | sed 5q` in
  8592. *Sun\ C*) # Sun C 5.9
  8593. 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'
  8594. compiler_needs_object=yes
  8595. tmp_sharedflag='-G' ;;
  8596. *Sun\ F*) # Sun Fortran 8.3
  8597. tmp_sharedflag='-G' ;;
  8598. esac
  8599. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8600. if test yes = "$supports_anon_versioning"; then
  8601. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8602. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8603. echo "local: *; };" >> $output_objdir/$libname.ver~
  8604. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8605. fi
  8606. case $cc_basename in
  8607. tcc*)
  8608. export_dynamic_flag_spec='-rdynamic'
  8609. ;;
  8610. xlf* | bgf* | bgxlf* | mpixlf*)
  8611. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8612. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8613. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8614. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8615. if test yes = "$supports_anon_versioning"; then
  8616. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8617. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8618. echo "local: *; };" >> $output_objdir/$libname.ver~
  8619. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8620. fi
  8621. ;;
  8622. esac
  8623. else
  8624. ld_shlibs=no
  8625. fi
  8626. ;;
  8627. netbsd*)
  8628. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8629. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8630. wlarc=
  8631. else
  8632. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8633. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8634. fi
  8635. ;;
  8636. solaris*)
  8637. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8638. ld_shlibs=no
  8639. cat <<_LT_EOF 1>&2
  8640. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8641. *** create shared libraries on Solaris systems. Therefore, libtool
  8642. *** is disabling shared libraries support. We urge you to upgrade GNU
  8643. *** binutils to release 2.9.1 or newer. Another option is to modify
  8644. *** your PATH or compiler configuration so that the native linker is
  8645. *** used, and then restart.
  8646. _LT_EOF
  8647. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8648. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8649. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8650. else
  8651. ld_shlibs=no
  8652. fi
  8653. ;;
  8654. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8655. case `$LD -v 2>&1` in
  8656. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8657. ld_shlibs=no
  8658. cat <<_LT_EOF 1>&2
  8659. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8660. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8661. *** is disabling shared libraries support. We urge you to upgrade GNU
  8662. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8663. *** your PATH or compiler configuration so that the native linker is
  8664. *** used, and then restart.
  8665. _LT_EOF
  8666. ;;
  8667. *)
  8668. # For security reasons, it is highly recommended that you always
  8669. # use absolute paths for naming shared libraries, and exclude the
  8670. # DT_RUNPATH tag from executables and libraries. But doing so
  8671. # requires that you compile everything twice, which is a pain.
  8672. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8673. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8674. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8675. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8676. else
  8677. ld_shlibs=no
  8678. fi
  8679. ;;
  8680. esac
  8681. ;;
  8682. sunos4*)
  8683. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8684. wlarc=
  8685. hardcode_direct=yes
  8686. hardcode_shlibpath_var=no
  8687. ;;
  8688. *)
  8689. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8690. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8691. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8692. else
  8693. ld_shlibs=no
  8694. fi
  8695. ;;
  8696. esac
  8697. if test no = "$ld_shlibs"; then
  8698. runpath_var=
  8699. hardcode_libdir_flag_spec=
  8700. export_dynamic_flag_spec=
  8701. whole_archive_flag_spec=
  8702. fi
  8703. else
  8704. # PORTME fill in a description of your system's linker (not GNU ld)
  8705. case $host_os in
  8706. aix3*)
  8707. allow_undefined_flag=unsupported
  8708. always_export_symbols=yes
  8709. 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'
  8710. # Note: this linker hardcodes the directories in LIBPATH if there
  8711. # are no directories specified by -L.
  8712. hardcode_minus_L=yes
  8713. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8714. # Neither direct hardcoding nor static linking is supported with a
  8715. # broken collect2.
  8716. hardcode_direct=unsupported
  8717. fi
  8718. ;;
  8719. aix[4-9]*)
  8720. if test ia64 = "$host_cpu"; then
  8721. # On IA64, the linker does run time linking by default, so we don't
  8722. # have to do anything special.
  8723. aix_use_runtimelinking=no
  8724. exp_sym_flag='-Bexport'
  8725. no_entry_flag=
  8726. else
  8727. # If we're using GNU nm, then we don't want the "-C" option.
  8728. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8729. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8730. # weak defined symbols like other global defined symbols, whereas
  8731. # GNU nm marks them as "W".
  8732. # While the 'weak' keyword is ignored in the Export File, we need
  8733. # it in the Import File for the 'aix-soname' feature, so we have
  8734. # to replace the "-B" option with "-P" for AIX nm.
  8735. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8736. 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'
  8737. else
  8738. 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'
  8739. fi
  8740. aix_use_runtimelinking=no
  8741. # Test if we are trying to use run time linking or normal
  8742. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8743. # have runtime linking enabled, and use it for executables.
  8744. # For shared libraries, we enable/disable runtime linking
  8745. # depending on the kind of the shared library created -
  8746. # when "with_aix_soname,aix_use_runtimelinking" is:
  8747. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8748. # "aix,yes" lib.so shared, rtl:yes, for executables
  8749. # lib.a static archive
  8750. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8751. # lib.a(lib.so.V) shared, rtl:no, for executables
  8752. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8753. # lib.a(lib.so.V) shared, rtl:no
  8754. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8755. # lib.a static archive
  8756. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8757. for ld_flag in $LDFLAGS; do
  8758. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8759. aix_use_runtimelinking=yes
  8760. break
  8761. fi
  8762. done
  8763. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8764. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8765. # so we don't have lib.a shared libs to link our executables.
  8766. # We have to force runtime linking in this case.
  8767. aix_use_runtimelinking=yes
  8768. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8769. fi
  8770. ;;
  8771. esac
  8772. exp_sym_flag='-bexport'
  8773. no_entry_flag='-bnoentry'
  8774. fi
  8775. # When large executables or shared objects are built, AIX ld can
  8776. # have problems creating the table of contents. If linking a library
  8777. # or program results in "error TOC overflow" add -mminimal-toc to
  8778. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8779. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8780. archive_cmds=''
  8781. hardcode_direct=yes
  8782. hardcode_direct_absolute=yes
  8783. hardcode_libdir_separator=':'
  8784. link_all_deplibs=yes
  8785. file_list_spec='$wl-f,'
  8786. case $with_aix_soname,$aix_use_runtimelinking in
  8787. aix,*) ;; # traditional, no import file
  8788. svr4,* | *,yes) # use import file
  8789. # The Import File defines what to hardcode.
  8790. hardcode_direct=no
  8791. hardcode_direct_absolute=no
  8792. ;;
  8793. esac
  8794. if test yes = "$GCC"; then
  8795. case $host_os in aix4.[012]|aix4.[012].*)
  8796. # We only want to do this on AIX 4.2 and lower, the check
  8797. # below for broken collect2 doesn't work under 4.3+
  8798. collect2name=`$CC -print-prog-name=collect2`
  8799. if test -f "$collect2name" &&
  8800. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8801. then
  8802. # We have reworked collect2
  8803. :
  8804. else
  8805. # We have old collect2
  8806. hardcode_direct=unsupported
  8807. # It fails to find uninstalled libraries when the uninstalled
  8808. # path is not listed in the libpath. Setting hardcode_minus_L
  8809. # to unsupported forces relinking
  8810. hardcode_minus_L=yes
  8811. hardcode_libdir_flag_spec='-L$libdir'
  8812. hardcode_libdir_separator=
  8813. fi
  8814. ;;
  8815. esac
  8816. shared_flag='-shared'
  8817. if test yes = "$aix_use_runtimelinking"; then
  8818. shared_flag="$shared_flag "'$wl-G'
  8819. fi
  8820. # Need to ensure runtime linking is disabled for the traditional
  8821. # shared library, or the linker may eventually find shared libraries
  8822. # /with/ Import File - we do not want to mix them.
  8823. shared_flag_aix='-shared'
  8824. shared_flag_svr4='-shared $wl-G'
  8825. else
  8826. # not using gcc
  8827. if test ia64 = "$host_cpu"; then
  8828. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8829. # chokes on -Wl,-G. The following line is correct:
  8830. shared_flag='-G'
  8831. else
  8832. if test yes = "$aix_use_runtimelinking"; then
  8833. shared_flag='$wl-G'
  8834. else
  8835. shared_flag='$wl-bM:SRE'
  8836. fi
  8837. shared_flag_aix='$wl-bM:SRE'
  8838. shared_flag_svr4='$wl-G'
  8839. fi
  8840. fi
  8841. export_dynamic_flag_spec='$wl-bexpall'
  8842. # It seems that -bexpall does not export symbols beginning with
  8843. # underscore (_), so it is better to generate a list of symbols to export.
  8844. always_export_symbols=yes
  8845. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8846. # Warning - without using the other runtime loading flags (-brtl),
  8847. # -berok will link without error, but may produce a broken library.
  8848. allow_undefined_flag='-berok'
  8849. # Determine the default libpath from the value encoded in an
  8850. # empty executable.
  8851. if test set = "${lt_cv_aix_libpath+set}"; then
  8852. aix_libpath=$lt_cv_aix_libpath
  8853. else
  8854. if ${lt_cv_aix_libpath_+:} false; then :
  8855. $as_echo_n "(cached) " >&6
  8856. else
  8857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8858. /* end confdefs.h. */
  8859. int
  8860. main ()
  8861. {
  8862. ;
  8863. return 0;
  8864. }
  8865. _ACEOF
  8866. if ac_fn_c_try_link "$LINENO"; then :
  8867. lt_aix_libpath_sed='
  8868. /Import File Strings/,/^$/ {
  8869. /^0/ {
  8870. s/^0 *\([^ ]*\) *$/\1/
  8871. p
  8872. }
  8873. }'
  8874. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8875. # Check for a 64-bit object if we didn't find anything.
  8876. if test -z "$lt_cv_aix_libpath_"; then
  8877. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8878. fi
  8879. fi
  8880. rm -f core conftest.err conftest.$ac_objext \
  8881. conftest$ac_exeext conftest.$ac_ext
  8882. if test -z "$lt_cv_aix_libpath_"; then
  8883. lt_cv_aix_libpath_=/usr/lib:/lib
  8884. fi
  8885. fi
  8886. aix_libpath=$lt_cv_aix_libpath_
  8887. fi
  8888. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8889. 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
  8890. else
  8891. if test ia64 = "$host_cpu"; then
  8892. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8893. allow_undefined_flag="-z nodefs"
  8894. 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"
  8895. else
  8896. # Determine the default libpath from the value encoded in an
  8897. # empty executable.
  8898. if test set = "${lt_cv_aix_libpath+set}"; then
  8899. aix_libpath=$lt_cv_aix_libpath
  8900. else
  8901. if ${lt_cv_aix_libpath_+:} false; then :
  8902. $as_echo_n "(cached) " >&6
  8903. else
  8904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8905. /* end confdefs.h. */
  8906. int
  8907. main ()
  8908. {
  8909. ;
  8910. return 0;
  8911. }
  8912. _ACEOF
  8913. if ac_fn_c_try_link "$LINENO"; then :
  8914. lt_aix_libpath_sed='
  8915. /Import File Strings/,/^$/ {
  8916. /^0/ {
  8917. s/^0 *\([^ ]*\) *$/\1/
  8918. p
  8919. }
  8920. }'
  8921. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8922. # Check for a 64-bit object if we didn't find anything.
  8923. if test -z "$lt_cv_aix_libpath_"; then
  8924. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8925. fi
  8926. fi
  8927. rm -f core conftest.err conftest.$ac_objext \
  8928. conftest$ac_exeext conftest.$ac_ext
  8929. if test -z "$lt_cv_aix_libpath_"; then
  8930. lt_cv_aix_libpath_=/usr/lib:/lib
  8931. fi
  8932. fi
  8933. aix_libpath=$lt_cv_aix_libpath_
  8934. fi
  8935. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8936. # Warning - without using the other run time loading flags,
  8937. # -berok will link without error, but may produce a broken library.
  8938. no_undefined_flag=' $wl-bernotok'
  8939. allow_undefined_flag=' $wl-berok'
  8940. if test yes = "$with_gnu_ld"; then
  8941. # We only use this code for GNU lds that support --whole-archive.
  8942. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8943. else
  8944. # Exported symbols can be pulled into shared objects from archives
  8945. whole_archive_flag_spec='$convenience'
  8946. fi
  8947. archive_cmds_need_lc=yes
  8948. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8949. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8950. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8951. if test svr4 != "$with_aix_soname"; then
  8952. # This is similar to how AIX traditionally builds its shared libraries.
  8953. 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'
  8954. fi
  8955. if test aix != "$with_aix_soname"; then
  8956. 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'
  8957. else
  8958. # used by -dlpreopen to get the symbols
  8959. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8960. fi
  8961. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8962. fi
  8963. fi
  8964. ;;
  8965. amigaos*)
  8966. case $host_cpu in
  8967. powerpc)
  8968. # see comment about AmigaOS4 .so support
  8969. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8970. archive_expsym_cmds=''
  8971. ;;
  8972. m68k)
  8973. 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)'
  8974. hardcode_libdir_flag_spec='-L$libdir'
  8975. hardcode_minus_L=yes
  8976. ;;
  8977. esac
  8978. ;;
  8979. bsdi[45]*)
  8980. export_dynamic_flag_spec=-rdynamic
  8981. ;;
  8982. cygwin* | mingw* | pw32* | cegcc*)
  8983. # When not using gcc, we currently assume that we are using
  8984. # Microsoft Visual C++.
  8985. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8986. # no search path for DLLs.
  8987. case $cc_basename in
  8988. cl*)
  8989. # Native MSVC
  8990. hardcode_libdir_flag_spec=' '
  8991. allow_undefined_flag=unsupported
  8992. always_export_symbols=yes
  8993. file_list_spec='@'
  8994. # Tell ltmain to make .lib files, not .a files.
  8995. libext=lib
  8996. # Tell ltmain to make .dll files, not .so files.
  8997. shrext_cmds=.dll
  8998. # FIXME: Setting linknames here is a bad hack.
  8999. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9000. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9001. cp "$export_symbols" "$output_objdir/$soname.def";
  9002. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9003. else
  9004. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9005. fi~
  9006. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9007. linknames='
  9008. # The linker will not automatically build a static lib if we build a DLL.
  9009. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9010. enable_shared_with_static_runtimes=yes
  9011. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9012. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9013. # Don't use ranlib
  9014. old_postinstall_cmds='chmod 644 $oldlib'
  9015. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9016. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9017. case $lt_outputfile in
  9018. *.exe|*.EXE) ;;
  9019. *)
  9020. lt_outputfile=$lt_outputfile.exe
  9021. lt_tool_outputfile=$lt_tool_outputfile.exe
  9022. ;;
  9023. esac~
  9024. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9025. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9026. $RM "$lt_outputfile.manifest";
  9027. fi'
  9028. ;;
  9029. *)
  9030. # Assume MSVC wrapper
  9031. hardcode_libdir_flag_spec=' '
  9032. allow_undefined_flag=unsupported
  9033. # Tell ltmain to make .lib files, not .a files.
  9034. libext=lib
  9035. # Tell ltmain to make .dll files, not .so files.
  9036. shrext_cmds=.dll
  9037. # FIXME: Setting linknames here is a bad hack.
  9038. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9039. # The linker will automatically build a .lib file if we build a DLL.
  9040. old_archive_from_new_cmds='true'
  9041. # FIXME: Should let the user specify the lib program.
  9042. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9043. enable_shared_with_static_runtimes=yes
  9044. ;;
  9045. esac
  9046. ;;
  9047. darwin* | rhapsody*)
  9048. archive_cmds_need_lc=no
  9049. hardcode_direct=no
  9050. hardcode_automatic=yes
  9051. hardcode_shlibpath_var=unsupported
  9052. if test yes = "$lt_cv_ld_force_load"; then
  9053. 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\"`'
  9054. else
  9055. whole_archive_flag_spec=''
  9056. fi
  9057. link_all_deplibs=yes
  9058. allow_undefined_flag=$_lt_dar_allow_undefined
  9059. case $cc_basename in
  9060. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9061. *) _lt_dar_can_shared=$GCC ;;
  9062. esac
  9063. if test yes = "$_lt_dar_can_shared"; then
  9064. output_verbose_link_cmd=func_echo_all
  9065. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9066. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9067. 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"
  9068. 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"
  9069. else
  9070. ld_shlibs=no
  9071. fi
  9072. ;;
  9073. dgux*)
  9074. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9075. hardcode_libdir_flag_spec='-L$libdir'
  9076. hardcode_shlibpath_var=no
  9077. ;;
  9078. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9079. # support. Future versions do this automatically, but an explicit c++rt0.o
  9080. # does not break anything, and helps significantly (at the cost of a little
  9081. # extra space).
  9082. freebsd2.2*)
  9083. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9084. hardcode_libdir_flag_spec='-R$libdir'
  9085. hardcode_direct=yes
  9086. hardcode_shlibpath_var=no
  9087. ;;
  9088. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9089. freebsd2.*)
  9090. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9091. hardcode_direct=yes
  9092. hardcode_minus_L=yes
  9093. hardcode_shlibpath_var=no
  9094. ;;
  9095. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9096. freebsd* | dragonfly*)
  9097. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9098. hardcode_libdir_flag_spec='-R$libdir'
  9099. hardcode_direct=yes
  9100. hardcode_shlibpath_var=no
  9101. ;;
  9102. hpux9*)
  9103. if test yes = "$GCC"; then
  9104. 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'
  9105. else
  9106. 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'
  9107. fi
  9108. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9109. hardcode_libdir_separator=:
  9110. hardcode_direct=yes
  9111. # hardcode_minus_L: Not really in the search PATH,
  9112. # but as the default location of the library.
  9113. hardcode_minus_L=yes
  9114. export_dynamic_flag_spec='$wl-E'
  9115. ;;
  9116. hpux10*)
  9117. if test yes,no = "$GCC,$with_gnu_ld"; then
  9118. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9119. else
  9120. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9121. fi
  9122. if test no = "$with_gnu_ld"; then
  9123. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9124. hardcode_libdir_separator=:
  9125. hardcode_direct=yes
  9126. hardcode_direct_absolute=yes
  9127. export_dynamic_flag_spec='$wl-E'
  9128. # hardcode_minus_L: Not really in the search PATH,
  9129. # but as the default location of the library.
  9130. hardcode_minus_L=yes
  9131. fi
  9132. ;;
  9133. hpux11*)
  9134. if test yes,no = "$GCC,$with_gnu_ld"; then
  9135. case $host_cpu in
  9136. hppa*64*)
  9137. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9138. ;;
  9139. ia64*)
  9140. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9141. ;;
  9142. *)
  9143. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9144. ;;
  9145. esac
  9146. else
  9147. case $host_cpu in
  9148. hppa*64*)
  9149. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9150. ;;
  9151. ia64*)
  9152. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9153. ;;
  9154. *)
  9155. # Older versions of the 11.00 compiler do not understand -b yet
  9156. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9158. $as_echo_n "checking if $CC understands -b... " >&6; }
  9159. if ${lt_cv_prog_compiler__b+:} false; then :
  9160. $as_echo_n "(cached) " >&6
  9161. else
  9162. lt_cv_prog_compiler__b=no
  9163. save_LDFLAGS=$LDFLAGS
  9164. LDFLAGS="$LDFLAGS -b"
  9165. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9166. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9167. # The linker can only warn and ignore the option if not recognized
  9168. # So say no if there are warnings
  9169. if test -s conftest.err; then
  9170. # Append any errors to the config.log.
  9171. cat conftest.err 1>&5
  9172. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9173. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9174. if diff conftest.exp conftest.er2 >/dev/null; then
  9175. lt_cv_prog_compiler__b=yes
  9176. fi
  9177. else
  9178. lt_cv_prog_compiler__b=yes
  9179. fi
  9180. fi
  9181. $RM -r conftest*
  9182. LDFLAGS=$save_LDFLAGS
  9183. fi
  9184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9185. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9186. if test yes = "$lt_cv_prog_compiler__b"; then
  9187. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9188. else
  9189. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9190. fi
  9191. ;;
  9192. esac
  9193. fi
  9194. if test no = "$with_gnu_ld"; then
  9195. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9196. hardcode_libdir_separator=:
  9197. case $host_cpu in
  9198. hppa*64*|ia64*)
  9199. hardcode_direct=no
  9200. hardcode_shlibpath_var=no
  9201. ;;
  9202. *)
  9203. hardcode_direct=yes
  9204. hardcode_direct_absolute=yes
  9205. export_dynamic_flag_spec='$wl-E'
  9206. # hardcode_minus_L: Not really in the search PATH,
  9207. # but as the default location of the library.
  9208. hardcode_minus_L=yes
  9209. ;;
  9210. esac
  9211. fi
  9212. ;;
  9213. irix5* | irix6* | nonstopux*)
  9214. if test yes = "$GCC"; then
  9215. 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'
  9216. # Try to use the -exported_symbol ld option, if it does not
  9217. # work, assume that -exports_file does not work either and
  9218. # implicitly export all symbols.
  9219. # This should be the same for all languages, so no per-tag cache variable.
  9220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9221. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9222. if ${lt_cv_irix_exported_symbol+:} false; then :
  9223. $as_echo_n "(cached) " >&6
  9224. else
  9225. save_LDFLAGS=$LDFLAGS
  9226. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9228. /* end confdefs.h. */
  9229. int foo (void) { return 0; }
  9230. _ACEOF
  9231. if ac_fn_c_try_link "$LINENO"; then :
  9232. lt_cv_irix_exported_symbol=yes
  9233. else
  9234. lt_cv_irix_exported_symbol=no
  9235. fi
  9236. rm -f core conftest.err conftest.$ac_objext \
  9237. conftest$ac_exeext conftest.$ac_ext
  9238. LDFLAGS=$save_LDFLAGS
  9239. fi
  9240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9241. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9242. if test yes = "$lt_cv_irix_exported_symbol"; then
  9243. 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'
  9244. fi
  9245. else
  9246. 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'
  9247. 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'
  9248. fi
  9249. archive_cmds_need_lc='no'
  9250. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9251. hardcode_libdir_separator=:
  9252. inherit_rpath=yes
  9253. link_all_deplibs=yes
  9254. ;;
  9255. linux*)
  9256. case $cc_basename in
  9257. tcc*)
  9258. # Fabrice Bellard et al's Tiny C Compiler
  9259. ld_shlibs=yes
  9260. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9261. ;;
  9262. esac
  9263. ;;
  9264. netbsd*)
  9265. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9266. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9267. else
  9268. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9269. fi
  9270. hardcode_libdir_flag_spec='-R$libdir'
  9271. hardcode_direct=yes
  9272. hardcode_shlibpath_var=no
  9273. ;;
  9274. newsos6)
  9275. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9276. hardcode_direct=yes
  9277. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9278. hardcode_libdir_separator=:
  9279. hardcode_shlibpath_var=no
  9280. ;;
  9281. *nto* | *qnx*)
  9282. ;;
  9283. openbsd* | bitrig*)
  9284. if test -f /usr/libexec/ld.so; then
  9285. hardcode_direct=yes
  9286. hardcode_shlibpath_var=no
  9287. hardcode_direct_absolute=yes
  9288. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9289. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9290. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9291. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9292. export_dynamic_flag_spec='$wl-E'
  9293. else
  9294. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9295. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9296. fi
  9297. else
  9298. ld_shlibs=no
  9299. fi
  9300. ;;
  9301. os2*)
  9302. hardcode_libdir_flag_spec='-L$libdir'
  9303. hardcode_minus_L=yes
  9304. allow_undefined_flag=unsupported
  9305. shrext_cmds=.dll
  9306. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9307. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9308. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9309. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9310. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9311. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9312. emximp -o $lib $output_objdir/$libname.def'
  9313. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9314. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9315. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9316. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9317. prefix_cmds="$SED"~
  9318. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9319. prefix_cmds="$prefix_cmds -e 1d";
  9320. fi~
  9321. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9322. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9323. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9324. emximp -o $lib $output_objdir/$libname.def'
  9325. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9326. enable_shared_with_static_runtimes=yes
  9327. ;;
  9328. osf3*)
  9329. if test yes = "$GCC"; then
  9330. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9331. 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'
  9332. else
  9333. allow_undefined_flag=' -expect_unresolved \*'
  9334. 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'
  9335. fi
  9336. archive_cmds_need_lc='no'
  9337. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9338. hardcode_libdir_separator=:
  9339. ;;
  9340. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9341. if test yes = "$GCC"; then
  9342. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9343. 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'
  9344. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9345. else
  9346. allow_undefined_flag=' -expect_unresolved \*'
  9347. 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'
  9348. 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~
  9349. $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'
  9350. # Both c and cxx compiler support -rpath directly
  9351. hardcode_libdir_flag_spec='-rpath $libdir'
  9352. fi
  9353. archive_cmds_need_lc='no'
  9354. hardcode_libdir_separator=:
  9355. ;;
  9356. solaris*)
  9357. no_undefined_flag=' -z defs'
  9358. if test yes = "$GCC"; then
  9359. wlarc='$wl'
  9360. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9361. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9362. $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'
  9363. else
  9364. case `$CC -V 2>&1` in
  9365. *"Compilers 5.0"*)
  9366. wlarc=''
  9367. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9368. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9369. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9370. ;;
  9371. *)
  9372. wlarc='$wl'
  9373. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9374. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9375. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9376. ;;
  9377. esac
  9378. fi
  9379. hardcode_libdir_flag_spec='-R$libdir'
  9380. hardcode_shlibpath_var=no
  9381. case $host_os in
  9382. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9383. *)
  9384. # The compiler driver will combine and reorder linker options,
  9385. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9386. # but is careful enough not to reorder.
  9387. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9388. if test yes = "$GCC"; then
  9389. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9390. else
  9391. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9392. fi
  9393. ;;
  9394. esac
  9395. link_all_deplibs=yes
  9396. ;;
  9397. sunos4*)
  9398. if test sequent = "$host_vendor"; then
  9399. # Use $CC to link under sequent, because it throws in some extra .o
  9400. # files that make .init and .fini sections work.
  9401. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9402. else
  9403. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9404. fi
  9405. hardcode_libdir_flag_spec='-L$libdir'
  9406. hardcode_direct=yes
  9407. hardcode_minus_L=yes
  9408. hardcode_shlibpath_var=no
  9409. ;;
  9410. sysv4)
  9411. case $host_vendor in
  9412. sni)
  9413. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9414. hardcode_direct=yes # is this really true???
  9415. ;;
  9416. siemens)
  9417. ## LD is ld it makes a PLAMLIB
  9418. ## CC just makes a GrossModule.
  9419. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9420. reload_cmds='$CC -r -o $output$reload_objs'
  9421. hardcode_direct=no
  9422. ;;
  9423. motorola)
  9424. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9425. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9426. ;;
  9427. esac
  9428. runpath_var='LD_RUN_PATH'
  9429. hardcode_shlibpath_var=no
  9430. ;;
  9431. sysv4.3*)
  9432. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9433. hardcode_shlibpath_var=no
  9434. export_dynamic_flag_spec='-Bexport'
  9435. ;;
  9436. sysv4*MP*)
  9437. if test -d /usr/nec; then
  9438. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9439. hardcode_shlibpath_var=no
  9440. runpath_var=LD_RUN_PATH
  9441. hardcode_runpath_var=yes
  9442. ld_shlibs=yes
  9443. fi
  9444. ;;
  9445. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9446. no_undefined_flag='$wl-z,text'
  9447. archive_cmds_need_lc=no
  9448. hardcode_shlibpath_var=no
  9449. runpath_var='LD_RUN_PATH'
  9450. if test yes = "$GCC"; then
  9451. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9452. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9453. else
  9454. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9455. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9456. fi
  9457. ;;
  9458. sysv5* | sco3.2v5* | sco5v6*)
  9459. # Note: We CANNOT use -z defs as we might desire, because we do not
  9460. # link with -lc, and that would cause any symbols used from libc to
  9461. # always be unresolved, which means just about no library would
  9462. # ever link correctly. If we're not using GNU ld we use -z text
  9463. # though, which does catch some bad symbols but isn't as heavy-handed
  9464. # as -z defs.
  9465. no_undefined_flag='$wl-z,text'
  9466. allow_undefined_flag='$wl-z,nodefs'
  9467. archive_cmds_need_lc=no
  9468. hardcode_shlibpath_var=no
  9469. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9470. hardcode_libdir_separator=':'
  9471. link_all_deplibs=yes
  9472. export_dynamic_flag_spec='$wl-Bexport'
  9473. runpath_var='LD_RUN_PATH'
  9474. if test yes = "$GCC"; then
  9475. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9476. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9477. else
  9478. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9479. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9480. fi
  9481. ;;
  9482. uts4*)
  9483. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9484. hardcode_libdir_flag_spec='-L$libdir'
  9485. hardcode_shlibpath_var=no
  9486. ;;
  9487. *)
  9488. ld_shlibs=no
  9489. ;;
  9490. esac
  9491. if test sni = "$host_vendor"; then
  9492. case $host in
  9493. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9494. export_dynamic_flag_spec='$wl-Blargedynsym'
  9495. ;;
  9496. esac
  9497. fi
  9498. fi
  9499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9500. $as_echo "$ld_shlibs" >&6; }
  9501. test no = "$ld_shlibs" && can_build_shared=no
  9502. with_gnu_ld=$with_gnu_ld
  9503. #
  9504. # Do we need to explicitly link libc?
  9505. #
  9506. case "x$archive_cmds_need_lc" in
  9507. x|xyes)
  9508. # Assume -lc should be added
  9509. archive_cmds_need_lc=yes
  9510. if test yes,yes = "$GCC,$enable_shared"; then
  9511. case $archive_cmds in
  9512. *'~'*)
  9513. # FIXME: we may have to deal with multi-command sequences.
  9514. ;;
  9515. '$CC '*)
  9516. # Test whether the compiler implicitly links with -lc since on some
  9517. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9518. # to ld, don't add -lc before -lgcc.
  9519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9520. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9521. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9522. $as_echo_n "(cached) " >&6
  9523. else
  9524. $RM conftest*
  9525. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9526. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9527. (eval $ac_compile) 2>&5
  9528. ac_status=$?
  9529. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9530. test $ac_status = 0; } 2>conftest.err; then
  9531. soname=conftest
  9532. lib=conftest
  9533. libobjs=conftest.$ac_objext
  9534. deplibs=
  9535. wl=$lt_prog_compiler_wl
  9536. pic_flag=$lt_prog_compiler_pic
  9537. compiler_flags=-v
  9538. linker_flags=-v
  9539. verstring=
  9540. output_objdir=.
  9541. libname=conftest
  9542. lt_save_allow_undefined_flag=$allow_undefined_flag
  9543. allow_undefined_flag=
  9544. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9545. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9546. ac_status=$?
  9547. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9548. test $ac_status = 0; }
  9549. then
  9550. lt_cv_archive_cmds_need_lc=no
  9551. else
  9552. lt_cv_archive_cmds_need_lc=yes
  9553. fi
  9554. allow_undefined_flag=$lt_save_allow_undefined_flag
  9555. else
  9556. cat conftest.err 1>&5
  9557. fi
  9558. $RM conftest*
  9559. fi
  9560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9561. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9562. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9563. ;;
  9564. esac
  9565. fi
  9566. ;;
  9567. esac
  9568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9569. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9570. if test yes = "$GCC"; then
  9571. case $host_os in
  9572. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9573. *) lt_awk_arg='/^libraries:/' ;;
  9574. esac
  9575. case $host_os in
  9576. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9577. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9578. esac
  9579. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9580. case $lt_search_path_spec in
  9581. *\;*)
  9582. # if the path contains ";" then we assume it to be the separator
  9583. # otherwise default to the standard path separator (i.e. ":") - it is
  9584. # assumed that no part of a normal pathname contains ";" but that should
  9585. # okay in the real world where ";" in dirpaths is itself problematic.
  9586. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9587. ;;
  9588. *)
  9589. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9590. ;;
  9591. esac
  9592. # Ok, now we have the path, separated by spaces, we can step through it
  9593. # and add multilib dir if necessary...
  9594. lt_tmp_lt_search_path_spec=
  9595. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9596. # ...but if some path component already ends with the multilib dir we assume
  9597. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9598. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9599. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9600. lt_multi_os_dir=
  9601. ;;
  9602. esac
  9603. for lt_sys_path in $lt_search_path_spec; do
  9604. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9605. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9606. elif test -n "$lt_multi_os_dir"; then
  9607. test -d "$lt_sys_path" && \
  9608. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9609. fi
  9610. done
  9611. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9612. BEGIN {RS = " "; FS = "/|\n";} {
  9613. lt_foo = "";
  9614. lt_count = 0;
  9615. for (lt_i = NF; lt_i > 0; lt_i--) {
  9616. if ($lt_i != "" && $lt_i != ".") {
  9617. if ($lt_i == "..") {
  9618. lt_count++;
  9619. } else {
  9620. if (lt_count == 0) {
  9621. lt_foo = "/" $lt_i lt_foo;
  9622. } else {
  9623. lt_count--;
  9624. }
  9625. }
  9626. }
  9627. }
  9628. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9629. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9630. }'`
  9631. # AWK program above erroneously prepends '/' to C:/dos/paths
  9632. # for these hosts.
  9633. case $host_os in
  9634. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9635. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9636. esac
  9637. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9638. else
  9639. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9640. fi
  9641. library_names_spec=
  9642. libname_spec='lib$name'
  9643. soname_spec=
  9644. shrext_cmds=.so
  9645. postinstall_cmds=
  9646. postuninstall_cmds=
  9647. finish_cmds=
  9648. finish_eval=
  9649. shlibpath_var=
  9650. shlibpath_overrides_runpath=unknown
  9651. version_type=none
  9652. dynamic_linker="$host_os ld.so"
  9653. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9654. need_lib_prefix=unknown
  9655. hardcode_into_libs=no
  9656. # when you set need_version to no, make sure it does not cause -set_version
  9657. # flags to be left without arguments
  9658. need_version=unknown
  9659. case $host_os in
  9660. aix3*)
  9661. version_type=linux # correct to gnu/linux during the next big refactor
  9662. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9663. shlibpath_var=LIBPATH
  9664. # AIX 3 has no versioning support, so we append a major version to the name.
  9665. soname_spec='$libname$release$shared_ext$major'
  9666. ;;
  9667. aix[4-9]*)
  9668. version_type=linux # correct to gnu/linux during the next big refactor
  9669. need_lib_prefix=no
  9670. need_version=no
  9671. hardcode_into_libs=yes
  9672. if test ia64 = "$host_cpu"; then
  9673. # AIX 5 supports IA64
  9674. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9675. shlibpath_var=LD_LIBRARY_PATH
  9676. else
  9677. # With GCC up to 2.95.x, collect2 would create an import file
  9678. # for dependence libraries. The import file would start with
  9679. # the line '#! .'. This would cause the generated library to
  9680. # depend on '.', always an invalid library. This was fixed in
  9681. # development snapshots of GCC prior to 3.0.
  9682. case $host_os in
  9683. aix4 | aix4.[01] | aix4.[01].*)
  9684. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9685. echo ' yes '
  9686. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9687. :
  9688. else
  9689. can_build_shared=no
  9690. fi
  9691. ;;
  9692. esac
  9693. # Using Import Files as archive members, it is possible to support
  9694. # filename-based versioning of shared library archives on AIX. While
  9695. # this would work for both with and without runtime linking, it will
  9696. # prevent static linking of such archives. So we do filename-based
  9697. # shared library versioning with .so extension only, which is used
  9698. # when both runtime linking and shared linking is enabled.
  9699. # Unfortunately, runtime linking may impact performance, so we do
  9700. # not want this to be the default eventually. Also, we use the
  9701. # versioned .so libs for executables only if there is the -brtl
  9702. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9703. # To allow for filename-based versioning support, we need to create
  9704. # libNAME.so.V as an archive file, containing:
  9705. # *) an Import File, referring to the versioned filename of the
  9706. # archive as well as the shared archive member, telling the
  9707. # bitwidth (32 or 64) of that shared object, and providing the
  9708. # list of exported symbols of that shared object, eventually
  9709. # decorated with the 'weak' keyword
  9710. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9711. # it being seen by the linker.
  9712. # At run time we better use the real file rather than another symlink,
  9713. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9714. case $with_aix_soname,$aix_use_runtimelinking in
  9715. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9716. # soname into executable. Probably we can add versioning support to
  9717. # collect2, so additional links can be useful in future.
  9718. aix,yes) # traditional libtool
  9719. dynamic_linker='AIX unversionable lib.so'
  9720. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9721. # instead of lib<name>.a to let people know that these are not
  9722. # typical AIX shared libraries.
  9723. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9724. ;;
  9725. aix,no) # traditional AIX only
  9726. dynamic_linker='AIX lib.a(lib.so.V)'
  9727. # We preserve .a as extension for shared libraries through AIX4.2
  9728. # and later when we are not doing run time linking.
  9729. library_names_spec='$libname$release.a $libname.a'
  9730. soname_spec='$libname$release$shared_ext$major'
  9731. ;;
  9732. svr4,*) # full svr4 only
  9733. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9734. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9735. # We do not specify a path in Import Files, so LIBPATH fires.
  9736. shlibpath_overrides_runpath=yes
  9737. ;;
  9738. *,yes) # both, prefer svr4
  9739. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9740. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9741. # unpreferred sharedlib libNAME.a needs extra handling
  9742. 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"'
  9743. 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"'
  9744. # We do not specify a path in Import Files, so LIBPATH fires.
  9745. shlibpath_overrides_runpath=yes
  9746. ;;
  9747. *,no) # both, prefer aix
  9748. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9749. library_names_spec='$libname$release.a $libname.a'
  9750. soname_spec='$libname$release$shared_ext$major'
  9751. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9752. 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)'
  9753. 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"'
  9754. ;;
  9755. esac
  9756. shlibpath_var=LIBPATH
  9757. fi
  9758. ;;
  9759. amigaos*)
  9760. case $host_cpu in
  9761. powerpc)
  9762. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9763. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9764. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9765. ;;
  9766. m68k)
  9767. library_names_spec='$libname.ixlibrary $libname.a'
  9768. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9769. 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'
  9770. ;;
  9771. esac
  9772. ;;
  9773. beos*)
  9774. library_names_spec='$libname$shared_ext'
  9775. dynamic_linker="$host_os ld.so"
  9776. shlibpath_var=LIBRARY_PATH
  9777. ;;
  9778. bsdi[45]*)
  9779. version_type=linux # correct to gnu/linux during the next big refactor
  9780. need_version=no
  9781. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9782. soname_spec='$libname$release$shared_ext$major'
  9783. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9784. shlibpath_var=LD_LIBRARY_PATH
  9785. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9786. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9787. # the default ld.so.conf also contains /usr/contrib/lib and
  9788. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9789. # libtool to hard-code these into programs
  9790. ;;
  9791. cygwin* | mingw* | pw32* | cegcc*)
  9792. version_type=windows
  9793. shrext_cmds=.dll
  9794. need_version=no
  9795. need_lib_prefix=no
  9796. case $GCC,$cc_basename in
  9797. yes,*)
  9798. # gcc
  9799. library_names_spec='$libname.dll.a'
  9800. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9801. postinstall_cmds='base_file=`basename \$file`~
  9802. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9803. dldir=$destdir/`dirname \$dlpath`~
  9804. test -d \$dldir || mkdir -p \$dldir~
  9805. $install_prog $dir/$dlname \$dldir/$dlname~
  9806. chmod a+x \$dldir/$dlname~
  9807. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9808. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9809. fi'
  9810. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9811. dlpath=$dir/\$dldll~
  9812. $RM \$dlpath'
  9813. shlibpath_overrides_runpath=yes
  9814. case $host_os in
  9815. cygwin*)
  9816. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9817. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9818. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9819. ;;
  9820. mingw* | cegcc*)
  9821. # MinGW DLLs use traditional 'lib' prefix
  9822. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9823. ;;
  9824. pw32*)
  9825. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9826. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9827. ;;
  9828. esac
  9829. dynamic_linker='Win32 ld.exe'
  9830. ;;
  9831. *,cl*)
  9832. # Native MSVC
  9833. libname_spec='$name'
  9834. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9835. library_names_spec='$libname.dll.lib'
  9836. case $build_os in
  9837. mingw*)
  9838. sys_lib_search_path_spec=
  9839. lt_save_ifs=$IFS
  9840. IFS=';'
  9841. for lt_path in $LIB
  9842. do
  9843. IFS=$lt_save_ifs
  9844. # Let DOS variable expansion print the short 8.3 style file name.
  9845. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9846. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9847. done
  9848. IFS=$lt_save_ifs
  9849. # Convert to MSYS style.
  9850. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9851. ;;
  9852. cygwin*)
  9853. # Convert to unix form, then to dos form, then back to unix form
  9854. # but this time dos style (no spaces!) so that the unix form looks
  9855. # like /cygdrive/c/PROGRA~1:/cygdr...
  9856. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9857. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9858. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9859. ;;
  9860. *)
  9861. sys_lib_search_path_spec=$LIB
  9862. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9863. # It is most probably a Windows format PATH.
  9864. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9865. else
  9866. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9867. fi
  9868. # FIXME: find the short name or the path components, as spaces are
  9869. # common. (e.g. "Program Files" -> "PROGRA~1")
  9870. ;;
  9871. esac
  9872. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9873. postinstall_cmds='base_file=`basename \$file`~
  9874. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9875. dldir=$destdir/`dirname \$dlpath`~
  9876. test -d \$dldir || mkdir -p \$dldir~
  9877. $install_prog $dir/$dlname \$dldir/$dlname'
  9878. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9879. dlpath=$dir/\$dldll~
  9880. $RM \$dlpath'
  9881. shlibpath_overrides_runpath=yes
  9882. dynamic_linker='Win32 link.exe'
  9883. ;;
  9884. *)
  9885. # Assume MSVC wrapper
  9886. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9887. dynamic_linker='Win32 ld.exe'
  9888. ;;
  9889. esac
  9890. # FIXME: first we should search . and the directory the executable is in
  9891. shlibpath_var=PATH
  9892. ;;
  9893. darwin* | rhapsody*)
  9894. dynamic_linker="$host_os dyld"
  9895. version_type=darwin
  9896. need_lib_prefix=no
  9897. need_version=no
  9898. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9899. soname_spec='$libname$release$major$shared_ext'
  9900. shlibpath_overrides_runpath=yes
  9901. shlibpath_var=DYLD_LIBRARY_PATH
  9902. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9903. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9904. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9905. ;;
  9906. dgux*)
  9907. version_type=linux # correct to gnu/linux during the next big refactor
  9908. need_lib_prefix=no
  9909. need_version=no
  9910. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9911. soname_spec='$libname$release$shared_ext$major'
  9912. shlibpath_var=LD_LIBRARY_PATH
  9913. ;;
  9914. freebsd* | dragonfly*)
  9915. # DragonFly does not have aout. When/if they implement a new
  9916. # versioning mechanism, adjust this.
  9917. if test -x /usr/bin/objformat; then
  9918. objformat=`/usr/bin/objformat`
  9919. else
  9920. case $host_os in
  9921. freebsd[23].*) objformat=aout ;;
  9922. *) objformat=elf ;;
  9923. esac
  9924. fi
  9925. version_type=freebsd-$objformat
  9926. case $version_type in
  9927. freebsd-elf*)
  9928. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9929. soname_spec='$libname$release$shared_ext$major'
  9930. need_version=no
  9931. need_lib_prefix=no
  9932. ;;
  9933. freebsd-*)
  9934. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9935. need_version=yes
  9936. ;;
  9937. esac
  9938. shlibpath_var=LD_LIBRARY_PATH
  9939. case $host_os in
  9940. freebsd2.*)
  9941. shlibpath_overrides_runpath=yes
  9942. ;;
  9943. freebsd3.[01]* | freebsdelf3.[01]*)
  9944. shlibpath_overrides_runpath=yes
  9945. hardcode_into_libs=yes
  9946. ;;
  9947. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9948. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9949. shlibpath_overrides_runpath=no
  9950. hardcode_into_libs=yes
  9951. ;;
  9952. *) # from 4.6 on, and DragonFly
  9953. shlibpath_overrides_runpath=yes
  9954. hardcode_into_libs=yes
  9955. ;;
  9956. esac
  9957. ;;
  9958. haiku*)
  9959. version_type=linux # correct to gnu/linux during the next big refactor
  9960. need_lib_prefix=no
  9961. need_version=no
  9962. dynamic_linker="$host_os runtime_loader"
  9963. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9964. soname_spec='$libname$release$shared_ext$major'
  9965. shlibpath_var=LIBRARY_PATH
  9966. shlibpath_overrides_runpath=no
  9967. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9968. hardcode_into_libs=yes
  9969. ;;
  9970. hpux9* | hpux10* | hpux11*)
  9971. # Give a soname corresponding to the major version so that dld.sl refuses to
  9972. # link against other versions.
  9973. version_type=sunos
  9974. need_lib_prefix=no
  9975. need_version=no
  9976. case $host_cpu in
  9977. ia64*)
  9978. shrext_cmds='.so'
  9979. hardcode_into_libs=yes
  9980. dynamic_linker="$host_os dld.so"
  9981. shlibpath_var=LD_LIBRARY_PATH
  9982. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9983. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9984. soname_spec='$libname$release$shared_ext$major'
  9985. if test 32 = "$HPUX_IA64_MODE"; then
  9986. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9987. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9988. else
  9989. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9990. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9991. fi
  9992. ;;
  9993. hppa*64*)
  9994. shrext_cmds='.sl'
  9995. hardcode_into_libs=yes
  9996. dynamic_linker="$host_os dld.sl"
  9997. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9998. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9999. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10000. soname_spec='$libname$release$shared_ext$major'
  10001. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10002. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10003. ;;
  10004. *)
  10005. shrext_cmds='.sl'
  10006. dynamic_linker="$host_os dld.sl"
  10007. shlibpath_var=SHLIB_PATH
  10008. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10009. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10010. soname_spec='$libname$release$shared_ext$major'
  10011. ;;
  10012. esac
  10013. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10014. postinstall_cmds='chmod 555 $lib'
  10015. # or fails outright, so override atomically:
  10016. install_override_mode=555
  10017. ;;
  10018. interix[3-9]*)
  10019. version_type=linux # correct to gnu/linux during the next big refactor
  10020. need_lib_prefix=no
  10021. need_version=no
  10022. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10023. soname_spec='$libname$release$shared_ext$major'
  10024. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10025. shlibpath_var=LD_LIBRARY_PATH
  10026. shlibpath_overrides_runpath=no
  10027. hardcode_into_libs=yes
  10028. ;;
  10029. irix5* | irix6* | nonstopux*)
  10030. case $host_os in
  10031. nonstopux*) version_type=nonstopux ;;
  10032. *)
  10033. if test yes = "$lt_cv_prog_gnu_ld"; then
  10034. version_type=linux # correct to gnu/linux during the next big refactor
  10035. else
  10036. version_type=irix
  10037. fi ;;
  10038. esac
  10039. need_lib_prefix=no
  10040. need_version=no
  10041. soname_spec='$libname$release$shared_ext$major'
  10042. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10043. case $host_os in
  10044. irix5* | nonstopux*)
  10045. libsuff= shlibsuff=
  10046. ;;
  10047. *)
  10048. case $LD in # libtool.m4 will add one of these switches to LD
  10049. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10050. libsuff= shlibsuff= libmagic=32-bit;;
  10051. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10052. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10053. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10054. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10055. *) libsuff= shlibsuff= libmagic=never-match;;
  10056. esac
  10057. ;;
  10058. esac
  10059. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10060. shlibpath_overrides_runpath=no
  10061. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10062. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10063. hardcode_into_libs=yes
  10064. ;;
  10065. # No shared lib support for Linux oldld, aout, or coff.
  10066. linux*oldld* | linux*aout* | linux*coff*)
  10067. dynamic_linker=no
  10068. ;;
  10069. linux*android*)
  10070. version_type=none # Android doesn't support versioned libraries.
  10071. need_lib_prefix=no
  10072. need_version=no
  10073. library_names_spec='$libname$release$shared_ext'
  10074. soname_spec='$libname$release$shared_ext'
  10075. finish_cmds=
  10076. shlibpath_var=LD_LIBRARY_PATH
  10077. shlibpath_overrides_runpath=yes
  10078. # This implies no fast_install, which is unacceptable.
  10079. # Some rework will be needed to allow for fast_install
  10080. # before this can be enabled.
  10081. hardcode_into_libs=yes
  10082. dynamic_linker='Android linker'
  10083. # Don't embed -rpath directories since the linker doesn't support them.
  10084. hardcode_libdir_flag_spec='-L$libdir'
  10085. ;;
  10086. # This must be glibc/ELF.
  10087. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10088. version_type=linux # correct to gnu/linux during the next big refactor
  10089. need_lib_prefix=no
  10090. need_version=no
  10091. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10092. soname_spec='$libname$release$shared_ext$major'
  10093. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10094. shlibpath_var=LD_LIBRARY_PATH
  10095. shlibpath_overrides_runpath=no
  10096. # Some binutils ld are patched to set DT_RUNPATH
  10097. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10098. $as_echo_n "(cached) " >&6
  10099. else
  10100. lt_cv_shlibpath_overrides_runpath=no
  10101. save_LDFLAGS=$LDFLAGS
  10102. save_libdir=$libdir
  10103. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10104. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10106. /* end confdefs.h. */
  10107. int
  10108. main ()
  10109. {
  10110. ;
  10111. return 0;
  10112. }
  10113. _ACEOF
  10114. if ac_fn_c_try_link "$LINENO"; then :
  10115. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10116. lt_cv_shlibpath_overrides_runpath=yes
  10117. fi
  10118. fi
  10119. rm -f core conftest.err conftest.$ac_objext \
  10120. conftest$ac_exeext conftest.$ac_ext
  10121. LDFLAGS=$save_LDFLAGS
  10122. libdir=$save_libdir
  10123. fi
  10124. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10125. # This implies no fast_install, which is unacceptable.
  10126. # Some rework will be needed to allow for fast_install
  10127. # before this can be enabled.
  10128. hardcode_into_libs=yes
  10129. # Ideally, we could use ldconfig to report *all* directores which are
  10130. # searched for libraries, however this is still not possible. Aside from not
  10131. # being certain /sbin/ldconfig is available, command
  10132. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10133. # even though it is searched at run-time. Try to do the best guess by
  10134. # appending ld.so.conf contents (and includes) to the search path.
  10135. if test -f /etc/ld.so.conf; then
  10136. 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' ' '`
  10137. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10138. fi
  10139. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10140. # powerpc, because MkLinux only supported shared libraries with the
  10141. # GNU dynamic linker. Since this was broken with cross compilers,
  10142. # most powerpc-linux boxes support dynamic linking these days and
  10143. # people can always --disable-shared, the test was removed, and we
  10144. # assume the GNU/Linux dynamic linker is in use.
  10145. dynamic_linker='GNU/Linux ld.so'
  10146. ;;
  10147. netbsd*)
  10148. version_type=sunos
  10149. need_lib_prefix=no
  10150. need_version=no
  10151. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10152. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10153. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10154. dynamic_linker='NetBSD (a.out) ld.so'
  10155. else
  10156. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10157. soname_spec='$libname$release$shared_ext$major'
  10158. dynamic_linker='NetBSD ld.elf_so'
  10159. fi
  10160. shlibpath_var=LD_LIBRARY_PATH
  10161. shlibpath_overrides_runpath=yes
  10162. hardcode_into_libs=yes
  10163. ;;
  10164. newsos6)
  10165. version_type=linux # correct to gnu/linux during the next big refactor
  10166. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10167. shlibpath_var=LD_LIBRARY_PATH
  10168. shlibpath_overrides_runpath=yes
  10169. ;;
  10170. *nto* | *qnx*)
  10171. version_type=qnx
  10172. need_lib_prefix=no
  10173. need_version=no
  10174. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10175. soname_spec='$libname$release$shared_ext$major'
  10176. shlibpath_var=LD_LIBRARY_PATH
  10177. shlibpath_overrides_runpath=no
  10178. hardcode_into_libs=yes
  10179. dynamic_linker='ldqnx.so'
  10180. ;;
  10181. openbsd* | bitrig*)
  10182. version_type=sunos
  10183. sys_lib_dlsearch_path_spec=/usr/lib
  10184. need_lib_prefix=no
  10185. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10186. need_version=no
  10187. else
  10188. need_version=yes
  10189. fi
  10190. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10191. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10192. shlibpath_var=LD_LIBRARY_PATH
  10193. shlibpath_overrides_runpath=yes
  10194. ;;
  10195. os2*)
  10196. libname_spec='$name'
  10197. version_type=windows
  10198. shrext_cmds=.dll
  10199. need_version=no
  10200. need_lib_prefix=no
  10201. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10202. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10203. v=$($ECHO $release$versuffix | tr -d .-);
  10204. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10205. $ECHO $n$v`$shared_ext'
  10206. library_names_spec='${libname}_dll.$libext'
  10207. dynamic_linker='OS/2 ld.exe'
  10208. shlibpath_var=BEGINLIBPATH
  10209. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10210. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10211. postinstall_cmds='base_file=`basename \$file`~
  10212. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10213. dldir=$destdir/`dirname \$dlpath`~
  10214. test -d \$dldir || mkdir -p \$dldir~
  10215. $install_prog $dir/$dlname \$dldir/$dlname~
  10216. chmod a+x \$dldir/$dlname~
  10217. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10218. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10219. fi'
  10220. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10221. dlpath=$dir/\$dldll~
  10222. $RM \$dlpath'
  10223. ;;
  10224. osf3* | osf4* | osf5*)
  10225. version_type=osf
  10226. need_lib_prefix=no
  10227. need_version=no
  10228. soname_spec='$libname$release$shared_ext$major'
  10229. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10230. shlibpath_var=LD_LIBRARY_PATH
  10231. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10232. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10233. ;;
  10234. rdos*)
  10235. dynamic_linker=no
  10236. ;;
  10237. solaris*)
  10238. version_type=linux # correct to gnu/linux during the next big refactor
  10239. need_lib_prefix=no
  10240. need_version=no
  10241. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10242. soname_spec='$libname$release$shared_ext$major'
  10243. shlibpath_var=LD_LIBRARY_PATH
  10244. shlibpath_overrides_runpath=yes
  10245. hardcode_into_libs=yes
  10246. # ldd complains unless libraries are executable
  10247. postinstall_cmds='chmod +x $lib'
  10248. ;;
  10249. sunos4*)
  10250. version_type=sunos
  10251. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10252. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10253. shlibpath_var=LD_LIBRARY_PATH
  10254. shlibpath_overrides_runpath=yes
  10255. if test yes = "$with_gnu_ld"; then
  10256. need_lib_prefix=no
  10257. fi
  10258. need_version=yes
  10259. ;;
  10260. sysv4 | sysv4.3*)
  10261. version_type=linux # correct to gnu/linux during the next big refactor
  10262. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10263. soname_spec='$libname$release$shared_ext$major'
  10264. shlibpath_var=LD_LIBRARY_PATH
  10265. case $host_vendor in
  10266. sni)
  10267. shlibpath_overrides_runpath=no
  10268. need_lib_prefix=no
  10269. runpath_var=LD_RUN_PATH
  10270. ;;
  10271. siemens)
  10272. need_lib_prefix=no
  10273. ;;
  10274. motorola)
  10275. need_lib_prefix=no
  10276. need_version=no
  10277. shlibpath_overrides_runpath=no
  10278. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10279. ;;
  10280. esac
  10281. ;;
  10282. sysv4*MP*)
  10283. if test -d /usr/nec; then
  10284. version_type=linux # correct to gnu/linux during the next big refactor
  10285. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10286. soname_spec='$libname$shared_ext.$major'
  10287. shlibpath_var=LD_LIBRARY_PATH
  10288. fi
  10289. ;;
  10290. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10291. version_type=sco
  10292. need_lib_prefix=no
  10293. need_version=no
  10294. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10295. soname_spec='$libname$release$shared_ext$major'
  10296. shlibpath_var=LD_LIBRARY_PATH
  10297. shlibpath_overrides_runpath=yes
  10298. hardcode_into_libs=yes
  10299. if test yes = "$with_gnu_ld"; then
  10300. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10301. else
  10302. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10303. case $host_os in
  10304. sco3.2v5*)
  10305. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10306. ;;
  10307. esac
  10308. fi
  10309. sys_lib_dlsearch_path_spec='/usr/lib'
  10310. ;;
  10311. tpf*)
  10312. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10313. version_type=linux # correct to gnu/linux during the next big refactor
  10314. need_lib_prefix=no
  10315. need_version=no
  10316. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10317. shlibpath_var=LD_LIBRARY_PATH
  10318. shlibpath_overrides_runpath=no
  10319. hardcode_into_libs=yes
  10320. ;;
  10321. uts4*)
  10322. version_type=linux # correct to gnu/linux during the next big refactor
  10323. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10324. soname_spec='$libname$release$shared_ext$major'
  10325. shlibpath_var=LD_LIBRARY_PATH
  10326. ;;
  10327. *)
  10328. dynamic_linker=no
  10329. ;;
  10330. esac
  10331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10332. $as_echo "$dynamic_linker" >&6; }
  10333. test no = "$dynamic_linker" && can_build_shared=no
  10334. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10335. if test yes = "$GCC"; then
  10336. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10337. fi
  10338. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10339. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10340. fi
  10341. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10342. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10343. fi
  10344. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10345. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10346. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10347. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10348. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10349. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10351. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10352. hardcode_action=
  10353. if test -n "$hardcode_libdir_flag_spec" ||
  10354. test -n "$runpath_var" ||
  10355. test yes = "$hardcode_automatic"; then
  10356. # We can hardcode non-existent directories.
  10357. if test no != "$hardcode_direct" &&
  10358. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10359. # have to relink, otherwise we might link with an installed library
  10360. # when we should be linking with a yet-to-be-installed one
  10361. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10362. test no != "$hardcode_minus_L"; then
  10363. # Linking always hardcodes the temporary library directory.
  10364. hardcode_action=relink
  10365. else
  10366. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10367. hardcode_action=immediate
  10368. fi
  10369. else
  10370. # We cannot hardcode anything, or else we can only hardcode existing
  10371. # directories.
  10372. hardcode_action=unsupported
  10373. fi
  10374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10375. $as_echo "$hardcode_action" >&6; }
  10376. if test relink = "$hardcode_action" ||
  10377. test yes = "$inherit_rpath"; then
  10378. # Fast installation is not supported
  10379. enable_fast_install=no
  10380. elif test yes = "$shlibpath_overrides_runpath" ||
  10381. test no = "$enable_shared"; then
  10382. # Fast installation is not necessary
  10383. enable_fast_install=needless
  10384. fi
  10385. if test yes != "$enable_dlopen"; then
  10386. enable_dlopen=unknown
  10387. enable_dlopen_self=unknown
  10388. enable_dlopen_self_static=unknown
  10389. else
  10390. lt_cv_dlopen=no
  10391. lt_cv_dlopen_libs=
  10392. case $host_os in
  10393. beos*)
  10394. lt_cv_dlopen=load_add_on
  10395. lt_cv_dlopen_libs=
  10396. lt_cv_dlopen_self=yes
  10397. ;;
  10398. mingw* | pw32* | cegcc*)
  10399. lt_cv_dlopen=LoadLibrary
  10400. lt_cv_dlopen_libs=
  10401. ;;
  10402. cygwin*)
  10403. lt_cv_dlopen=dlopen
  10404. lt_cv_dlopen_libs=
  10405. ;;
  10406. darwin*)
  10407. # if libdl is installed we need to link against it
  10408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10409. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10410. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10411. $as_echo_n "(cached) " >&6
  10412. else
  10413. ac_check_lib_save_LIBS=$LIBS
  10414. LIBS="-ldl $LIBS"
  10415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10416. /* end confdefs.h. */
  10417. /* Override any GCC internal prototype to avoid an error.
  10418. Use char because int might match the return type of a GCC
  10419. builtin and then its argument prototype would still apply. */
  10420. #ifdef __cplusplus
  10421. extern "C"
  10422. #endif
  10423. char dlopen ();
  10424. int
  10425. main ()
  10426. {
  10427. return dlopen ();
  10428. ;
  10429. return 0;
  10430. }
  10431. _ACEOF
  10432. if ac_fn_c_try_link "$LINENO"; then :
  10433. ac_cv_lib_dl_dlopen=yes
  10434. else
  10435. ac_cv_lib_dl_dlopen=no
  10436. fi
  10437. rm -f core conftest.err conftest.$ac_objext \
  10438. conftest$ac_exeext conftest.$ac_ext
  10439. LIBS=$ac_check_lib_save_LIBS
  10440. fi
  10441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10442. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10443. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10444. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10445. else
  10446. lt_cv_dlopen=dyld
  10447. lt_cv_dlopen_libs=
  10448. lt_cv_dlopen_self=yes
  10449. fi
  10450. ;;
  10451. tpf*)
  10452. # Don't try to run any link tests for TPF. We know it's impossible
  10453. # because TPF is a cross-compiler, and we know how we open DSOs.
  10454. lt_cv_dlopen=dlopen
  10455. lt_cv_dlopen_libs=
  10456. lt_cv_dlopen_self=no
  10457. ;;
  10458. *)
  10459. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10460. if test "x$ac_cv_func_shl_load" = xyes; then :
  10461. lt_cv_dlopen=shl_load
  10462. else
  10463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10464. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10465. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10466. $as_echo_n "(cached) " >&6
  10467. else
  10468. ac_check_lib_save_LIBS=$LIBS
  10469. LIBS="-ldld $LIBS"
  10470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10471. /* end confdefs.h. */
  10472. /* Override any GCC internal prototype to avoid an error.
  10473. Use char because int might match the return type of a GCC
  10474. builtin and then its argument prototype would still apply. */
  10475. #ifdef __cplusplus
  10476. extern "C"
  10477. #endif
  10478. char shl_load ();
  10479. int
  10480. main ()
  10481. {
  10482. return shl_load ();
  10483. ;
  10484. return 0;
  10485. }
  10486. _ACEOF
  10487. if ac_fn_c_try_link "$LINENO"; then :
  10488. ac_cv_lib_dld_shl_load=yes
  10489. else
  10490. ac_cv_lib_dld_shl_load=no
  10491. fi
  10492. rm -f core conftest.err conftest.$ac_objext \
  10493. conftest$ac_exeext conftest.$ac_ext
  10494. LIBS=$ac_check_lib_save_LIBS
  10495. fi
  10496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10497. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10498. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10499. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10500. else
  10501. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10502. if test "x$ac_cv_func_dlopen" = xyes; then :
  10503. lt_cv_dlopen=dlopen
  10504. else
  10505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10506. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10507. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10508. $as_echo_n "(cached) " >&6
  10509. else
  10510. ac_check_lib_save_LIBS=$LIBS
  10511. LIBS="-ldl $LIBS"
  10512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10513. /* end confdefs.h. */
  10514. /* Override any GCC internal prototype to avoid an error.
  10515. Use char because int might match the return type of a GCC
  10516. builtin and then its argument prototype would still apply. */
  10517. #ifdef __cplusplus
  10518. extern "C"
  10519. #endif
  10520. char dlopen ();
  10521. int
  10522. main ()
  10523. {
  10524. return dlopen ();
  10525. ;
  10526. return 0;
  10527. }
  10528. _ACEOF
  10529. if ac_fn_c_try_link "$LINENO"; then :
  10530. ac_cv_lib_dl_dlopen=yes
  10531. else
  10532. ac_cv_lib_dl_dlopen=no
  10533. fi
  10534. rm -f core conftest.err conftest.$ac_objext \
  10535. conftest$ac_exeext conftest.$ac_ext
  10536. LIBS=$ac_check_lib_save_LIBS
  10537. fi
  10538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10539. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10540. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10541. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10542. else
  10543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10544. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10545. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10546. $as_echo_n "(cached) " >&6
  10547. else
  10548. ac_check_lib_save_LIBS=$LIBS
  10549. LIBS="-lsvld $LIBS"
  10550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10551. /* end confdefs.h. */
  10552. /* Override any GCC internal prototype to avoid an error.
  10553. Use char because int might match the return type of a GCC
  10554. builtin and then its argument prototype would still apply. */
  10555. #ifdef __cplusplus
  10556. extern "C"
  10557. #endif
  10558. char dlopen ();
  10559. int
  10560. main ()
  10561. {
  10562. return dlopen ();
  10563. ;
  10564. return 0;
  10565. }
  10566. _ACEOF
  10567. if ac_fn_c_try_link "$LINENO"; then :
  10568. ac_cv_lib_svld_dlopen=yes
  10569. else
  10570. ac_cv_lib_svld_dlopen=no
  10571. fi
  10572. rm -f core conftest.err conftest.$ac_objext \
  10573. conftest$ac_exeext conftest.$ac_ext
  10574. LIBS=$ac_check_lib_save_LIBS
  10575. fi
  10576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10577. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10578. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10579. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10580. else
  10581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10582. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10583. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10584. $as_echo_n "(cached) " >&6
  10585. else
  10586. ac_check_lib_save_LIBS=$LIBS
  10587. LIBS="-ldld $LIBS"
  10588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10589. /* end confdefs.h. */
  10590. /* Override any GCC internal prototype to avoid an error.
  10591. Use char because int might match the return type of a GCC
  10592. builtin and then its argument prototype would still apply. */
  10593. #ifdef __cplusplus
  10594. extern "C"
  10595. #endif
  10596. char dld_link ();
  10597. int
  10598. main ()
  10599. {
  10600. return dld_link ();
  10601. ;
  10602. return 0;
  10603. }
  10604. _ACEOF
  10605. if ac_fn_c_try_link "$LINENO"; then :
  10606. ac_cv_lib_dld_dld_link=yes
  10607. else
  10608. ac_cv_lib_dld_dld_link=no
  10609. fi
  10610. rm -f core conftest.err conftest.$ac_objext \
  10611. conftest$ac_exeext conftest.$ac_ext
  10612. LIBS=$ac_check_lib_save_LIBS
  10613. fi
  10614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10615. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10616. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10617. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10618. fi
  10619. fi
  10620. fi
  10621. fi
  10622. fi
  10623. fi
  10624. ;;
  10625. esac
  10626. if test no = "$lt_cv_dlopen"; then
  10627. enable_dlopen=no
  10628. else
  10629. enable_dlopen=yes
  10630. fi
  10631. case $lt_cv_dlopen in
  10632. dlopen)
  10633. save_CPPFLAGS=$CPPFLAGS
  10634. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10635. save_LDFLAGS=$LDFLAGS
  10636. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10637. save_LIBS=$LIBS
  10638. LIBS="$lt_cv_dlopen_libs $LIBS"
  10639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10640. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10641. if ${lt_cv_dlopen_self+:} false; then :
  10642. $as_echo_n "(cached) " >&6
  10643. else
  10644. if test yes = "$cross_compiling"; then :
  10645. lt_cv_dlopen_self=cross
  10646. else
  10647. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10648. lt_status=$lt_dlunknown
  10649. cat > conftest.$ac_ext <<_LT_EOF
  10650. #line $LINENO "configure"
  10651. #include "confdefs.h"
  10652. #if HAVE_DLFCN_H
  10653. #include <dlfcn.h>
  10654. #endif
  10655. #include <stdio.h>
  10656. #ifdef RTLD_GLOBAL
  10657. # define LT_DLGLOBAL RTLD_GLOBAL
  10658. #else
  10659. # ifdef DL_GLOBAL
  10660. # define LT_DLGLOBAL DL_GLOBAL
  10661. # else
  10662. # define LT_DLGLOBAL 0
  10663. # endif
  10664. #endif
  10665. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10666. find out it does not work in some platform. */
  10667. #ifndef LT_DLLAZY_OR_NOW
  10668. # ifdef RTLD_LAZY
  10669. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10670. # else
  10671. # ifdef DL_LAZY
  10672. # define LT_DLLAZY_OR_NOW DL_LAZY
  10673. # else
  10674. # ifdef RTLD_NOW
  10675. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10676. # else
  10677. # ifdef DL_NOW
  10678. # define LT_DLLAZY_OR_NOW DL_NOW
  10679. # else
  10680. # define LT_DLLAZY_OR_NOW 0
  10681. # endif
  10682. # endif
  10683. # endif
  10684. # endif
  10685. #endif
  10686. /* When -fvisibility=hidden is used, assume the code has been annotated
  10687. correspondingly for the symbols needed. */
  10688. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10689. int fnord () __attribute__((visibility("default")));
  10690. #endif
  10691. int fnord () { return 42; }
  10692. int main ()
  10693. {
  10694. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10695. int status = $lt_dlunknown;
  10696. if (self)
  10697. {
  10698. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10699. else
  10700. {
  10701. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10702. else puts (dlerror ());
  10703. }
  10704. /* dlclose (self); */
  10705. }
  10706. else
  10707. puts (dlerror ());
  10708. return status;
  10709. }
  10710. _LT_EOF
  10711. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10712. (eval $ac_link) 2>&5
  10713. ac_status=$?
  10714. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10715. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10716. (./conftest; exit; ) >&5 2>/dev/null
  10717. lt_status=$?
  10718. case x$lt_status in
  10719. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10720. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10721. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10722. esac
  10723. else :
  10724. # compilation failed
  10725. lt_cv_dlopen_self=no
  10726. fi
  10727. fi
  10728. rm -fr conftest*
  10729. fi
  10730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10731. $as_echo "$lt_cv_dlopen_self" >&6; }
  10732. if test yes = "$lt_cv_dlopen_self"; then
  10733. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10735. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10736. if ${lt_cv_dlopen_self_static+:} false; then :
  10737. $as_echo_n "(cached) " >&6
  10738. else
  10739. if test yes = "$cross_compiling"; then :
  10740. lt_cv_dlopen_self_static=cross
  10741. else
  10742. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10743. lt_status=$lt_dlunknown
  10744. cat > conftest.$ac_ext <<_LT_EOF
  10745. #line $LINENO "configure"
  10746. #include "confdefs.h"
  10747. #if HAVE_DLFCN_H
  10748. #include <dlfcn.h>
  10749. #endif
  10750. #include <stdio.h>
  10751. #ifdef RTLD_GLOBAL
  10752. # define LT_DLGLOBAL RTLD_GLOBAL
  10753. #else
  10754. # ifdef DL_GLOBAL
  10755. # define LT_DLGLOBAL DL_GLOBAL
  10756. # else
  10757. # define LT_DLGLOBAL 0
  10758. # endif
  10759. #endif
  10760. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10761. find out it does not work in some platform. */
  10762. #ifndef LT_DLLAZY_OR_NOW
  10763. # ifdef RTLD_LAZY
  10764. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10765. # else
  10766. # ifdef DL_LAZY
  10767. # define LT_DLLAZY_OR_NOW DL_LAZY
  10768. # else
  10769. # ifdef RTLD_NOW
  10770. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10771. # else
  10772. # ifdef DL_NOW
  10773. # define LT_DLLAZY_OR_NOW DL_NOW
  10774. # else
  10775. # define LT_DLLAZY_OR_NOW 0
  10776. # endif
  10777. # endif
  10778. # endif
  10779. # endif
  10780. #endif
  10781. /* When -fvisibility=hidden is used, assume the code has been annotated
  10782. correspondingly for the symbols needed. */
  10783. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10784. int fnord () __attribute__((visibility("default")));
  10785. #endif
  10786. int fnord () { return 42; }
  10787. int main ()
  10788. {
  10789. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10790. int status = $lt_dlunknown;
  10791. if (self)
  10792. {
  10793. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10794. else
  10795. {
  10796. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10797. else puts (dlerror ());
  10798. }
  10799. /* dlclose (self); */
  10800. }
  10801. else
  10802. puts (dlerror ());
  10803. return status;
  10804. }
  10805. _LT_EOF
  10806. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10807. (eval $ac_link) 2>&5
  10808. ac_status=$?
  10809. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10810. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10811. (./conftest; exit; ) >&5 2>/dev/null
  10812. lt_status=$?
  10813. case x$lt_status in
  10814. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10815. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10816. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10817. esac
  10818. else :
  10819. # compilation failed
  10820. lt_cv_dlopen_self_static=no
  10821. fi
  10822. fi
  10823. rm -fr conftest*
  10824. fi
  10825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10826. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10827. fi
  10828. CPPFLAGS=$save_CPPFLAGS
  10829. LDFLAGS=$save_LDFLAGS
  10830. LIBS=$save_LIBS
  10831. ;;
  10832. esac
  10833. case $lt_cv_dlopen_self in
  10834. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10835. *) enable_dlopen_self=unknown ;;
  10836. esac
  10837. case $lt_cv_dlopen_self_static in
  10838. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10839. *) enable_dlopen_self_static=unknown ;;
  10840. esac
  10841. fi
  10842. striplib=
  10843. old_striplib=
  10844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10845. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10846. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10847. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10848. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10850. $as_echo "yes" >&6; }
  10851. else
  10852. # FIXME - insert some real tests, host_os isn't really good enough
  10853. case $host_os in
  10854. darwin*)
  10855. if test -n "$STRIP"; then
  10856. striplib="$STRIP -x"
  10857. old_striplib="$STRIP -S"
  10858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10859. $as_echo "yes" >&6; }
  10860. else
  10861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10862. $as_echo "no" >&6; }
  10863. fi
  10864. ;;
  10865. *)
  10866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10867. $as_echo "no" >&6; }
  10868. ;;
  10869. esac
  10870. fi
  10871. # Report what library types will actually be built
  10872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10873. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10875. $as_echo "$can_build_shared" >&6; }
  10876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10877. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10878. test no = "$can_build_shared" && enable_shared=no
  10879. # On AIX, shared libraries and static libraries use the same namespace, and
  10880. # are all built from PIC.
  10881. case $host_os in
  10882. aix3*)
  10883. test yes = "$enable_shared" && enable_static=no
  10884. if test -n "$RANLIB"; then
  10885. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10886. postinstall_cmds='$RANLIB $lib'
  10887. fi
  10888. ;;
  10889. aix[4-9]*)
  10890. if test ia64 != "$host_cpu"; then
  10891. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10892. yes,aix,yes) ;; # shared object as lib.so file only
  10893. yes,svr4,*) ;; # shared object as lib.so archive member only
  10894. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10895. esac
  10896. fi
  10897. ;;
  10898. esac
  10899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10900. $as_echo "$enable_shared" >&6; }
  10901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10902. $as_echo_n "checking whether to build static libraries... " >&6; }
  10903. # Make sure either enable_shared or enable_static is yes.
  10904. test yes = "$enable_shared" || enable_static=yes
  10905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10906. $as_echo "$enable_static" >&6; }
  10907. fi
  10908. ac_ext=c
  10909. ac_cpp='$CPP $CPPFLAGS'
  10910. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10911. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10912. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10913. CC=$lt_save_CC
  10914. ac_config_commands="$ac_config_commands libtool"
  10915. # Only expand once:
  10916. CFLAG_VISIBILITY=
  10917. HAVE_VISIBILITY=0
  10918. if test -n "$GCC"; then
  10919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
  10920. $as_echo_n "checking whether the -Werror option is usable... " >&6; }
  10921. if ${gl_cv_cc_vis_werror+:} false; then :
  10922. $as_echo_n "(cached) " >&6
  10923. else
  10924. gl_save_CFLAGS="$CFLAGS"
  10925. CFLAGS="$CFLAGS -Werror"
  10926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10927. /* end confdefs.h. */
  10928. int
  10929. main ()
  10930. {
  10931. ;
  10932. return 0;
  10933. }
  10934. _ACEOF
  10935. if ac_fn_c_try_compile "$LINENO"; then :
  10936. gl_cv_cc_vis_werror=yes
  10937. else
  10938. gl_cv_cc_vis_werror=no
  10939. fi
  10940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10941. CFLAGS="$gl_save_CFLAGS"
  10942. fi
  10943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
  10944. $as_echo "$gl_cv_cc_vis_werror" >&6; }
  10945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  10946. $as_echo_n "checking for simple visibility declarations... " >&6; }
  10947. if ${gl_cv_cc_visibility+:} false; then :
  10948. $as_echo_n "(cached) " >&6
  10949. else
  10950. gl_save_CFLAGS="$CFLAGS"
  10951. CFLAGS="$CFLAGS -fvisibility=hidden"
  10952. if test $gl_cv_cc_vis_werror = yes; then
  10953. CFLAGS="$CFLAGS -Werror"
  10954. fi
  10955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10956. /* end confdefs.h. */
  10957. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  10958. extern __attribute__((__visibility__("default"))) int exportedvar;
  10959. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  10960. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  10961. void dummyfunc (void) {}
  10962. int
  10963. main ()
  10964. {
  10965. ;
  10966. return 0;
  10967. }
  10968. _ACEOF
  10969. if ac_fn_c_try_compile "$LINENO"; then :
  10970. gl_cv_cc_visibility=yes
  10971. else
  10972. gl_cv_cc_visibility=no
  10973. fi
  10974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10975. CFLAGS="$gl_save_CFLAGS"
  10976. fi
  10977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  10978. $as_echo "$gl_cv_cc_visibility" >&6; }
  10979. if test $gl_cv_cc_visibility = yes; then
  10980. CFLAG_VISIBILITY="-fvisibility=hidden"
  10981. HAVE_VISIBILITY=1
  10982. fi
  10983. fi
  10984. cat >>confdefs.h <<_ACEOF
  10985. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  10986. _ACEOF
  10987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
  10988. $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  10989. if ${ac_cv_header_sys_types_h_makedev+:} false; then :
  10990. $as_echo_n "(cached) " >&6
  10991. else
  10992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10993. /* end confdefs.h. */
  10994. #include <sys/types.h>
  10995. int
  10996. main ()
  10997. {
  10998. return makedev(0, 0);
  10999. ;
  11000. return 0;
  11001. }
  11002. _ACEOF
  11003. if ac_fn_c_try_link "$LINENO"; then :
  11004. ac_cv_header_sys_types_h_makedev=yes
  11005. else
  11006. ac_cv_header_sys_types_h_makedev=no
  11007. fi
  11008. rm -f core conftest.err conftest.$ac_objext \
  11009. conftest$ac_exeext conftest.$ac_ext
  11010. fi
  11011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
  11012. $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  11013. if test $ac_cv_header_sys_types_h_makedev = no; then
  11014. ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  11015. if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
  11016. $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  11017. fi
  11018. if test $ac_cv_header_sys_mkdev_h = no; then
  11019. ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  11020. if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
  11021. $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  11022. fi
  11023. fi
  11024. fi
  11025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  11026. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  11027. if ${ac_cv_header_sys_wait_h+:} false; then :
  11028. $as_echo_n "(cached) " >&6
  11029. else
  11030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11031. /* end confdefs.h. */
  11032. #include <sys/types.h>
  11033. #include <sys/wait.h>
  11034. #ifndef WEXITSTATUS
  11035. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  11036. #endif
  11037. #ifndef WIFEXITED
  11038. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  11039. #endif
  11040. int
  11041. main ()
  11042. {
  11043. int s;
  11044. wait (&s);
  11045. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  11046. ;
  11047. return 0;
  11048. }
  11049. _ACEOF
  11050. if ac_fn_c_try_compile "$LINENO"; then :
  11051. ac_cv_header_sys_wait_h=yes
  11052. else
  11053. ac_cv_header_sys_wait_h=no
  11054. fi
  11055. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11056. fi
  11057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  11058. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  11059. if test $ac_cv_header_sys_wait_h = yes; then
  11060. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  11061. fi
  11062. for ac_header in stdint.h fcntl.h inttypes.h unistd.h
  11063. do :
  11064. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11065. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11066. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11067. cat >>confdefs.h <<_ACEOF
  11068. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11069. _ACEOF
  11070. fi
  11071. done
  11072. for ac_header in utime.h wchar.h wctype.h
  11073. do :
  11074. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11075. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11076. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11077. cat >>confdefs.h <<_ACEOF
  11078. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11079. _ACEOF
  11080. fi
  11081. done
  11082. for ac_header in getopt.h err.h xlocale.h
  11083. do :
  11084. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11085. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11086. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11087. cat >>confdefs.h <<_ACEOF
  11088. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11089. _ACEOF
  11090. fi
  11091. done
  11092. for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h sys/sysmacros.h
  11093. do :
  11094. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11095. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11096. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11097. cat >>confdefs.h <<_ACEOF
  11098. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11099. _ACEOF
  11100. fi
  11101. done
  11102. if test "$enable_zlib" != "no"; then
  11103. for ac_header in zlib.h
  11104. do :
  11105. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  11106. if test "x$ac_cv_header_zlib_h" = xyes; then :
  11107. cat >>confdefs.h <<_ACEOF
  11108. #define HAVE_ZLIB_H 1
  11109. _ACEOF
  11110. fi
  11111. done
  11112. fi
  11113. if test "$enable_bzlib" != "no"; then
  11114. for ac_header in bzlib.h
  11115. do :
  11116. ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
  11117. if test "x$ac_cv_header_bzlib_h" = xyes; then :
  11118. cat >>confdefs.h <<_ACEOF
  11119. #define HAVE_BZLIB_H 1
  11120. _ACEOF
  11121. fi
  11122. done
  11123. fi
  11124. if test "$enable_xzlib" != "no"; then
  11125. for ac_header in lzma.h
  11126. do :
  11127. ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
  11128. if test "x$ac_cv_header_lzma_h" = xyes; then :
  11129. cat >>confdefs.h <<_ACEOF
  11130. #define HAVE_LZMA_H 1
  11131. _ACEOF
  11132. fi
  11133. done
  11134. fi
  11135. ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <signal.h>
  11136. "
  11137. if test "x$ac_cv_type_sig_t" = xyes; then :
  11138. $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
  11139. fi
  11140. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  11141. if test "x$ac_cv_type_off_t" = xyes; then :
  11142. else
  11143. cat >>confdefs.h <<_ACEOF
  11144. #define off_t long int
  11145. _ACEOF
  11146. fi
  11147. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  11148. if test "x$ac_cv_type_size_t" = xyes; then :
  11149. else
  11150. cat >>confdefs.h <<_ACEOF
  11151. #define size_t unsigned int
  11152. _ACEOF
  11153. fi
  11154. ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
  11155. if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
  11156. cat >>confdefs.h <<_ACEOF
  11157. #define HAVE_STRUCT_STAT_ST_RDEV 1
  11158. _ACEOF
  11159. fi
  11160. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
  11161. "
  11162. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
  11163. cat >>confdefs.h <<_ACEOF
  11164. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  11165. _ACEOF
  11166. fi
  11167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  11168. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  11169. if ${ac_cv_struct_tm+:} false; then :
  11170. $as_echo_n "(cached) " >&6
  11171. else
  11172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11173. /* end confdefs.h. */
  11174. #include <sys/types.h>
  11175. #include <time.h>
  11176. int
  11177. main ()
  11178. {
  11179. struct tm tm;
  11180. int *p = &tm.tm_sec;
  11181. return !p;
  11182. ;
  11183. return 0;
  11184. }
  11185. _ACEOF
  11186. if ac_fn_c_try_compile "$LINENO"; then :
  11187. ac_cv_struct_tm=time.h
  11188. else
  11189. ac_cv_struct_tm=sys/time.h
  11190. fi
  11191. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11192. fi
  11193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  11194. $as_echo "$ac_cv_struct_tm" >&6; }
  11195. if test $ac_cv_struct_tm = sys/time.h; then
  11196. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  11197. fi
  11198. ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  11199. #include <$ac_cv_struct_tm>
  11200. "
  11201. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  11202. cat >>confdefs.h <<_ACEOF
  11203. #define HAVE_STRUCT_TM_TM_ZONE 1
  11204. _ACEOF
  11205. fi
  11206. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  11207. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  11208. else
  11209. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  11210. "
  11211. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  11212. ac_have_decl=1
  11213. else
  11214. ac_have_decl=0
  11215. fi
  11216. cat >>confdefs.h <<_ACEOF
  11217. #define HAVE_DECL_TZNAME $ac_have_decl
  11218. _ACEOF
  11219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  11220. $as_echo_n "checking for tzname... " >&6; }
  11221. if ${ac_cv_var_tzname+:} false; then :
  11222. $as_echo_n "(cached) " >&6
  11223. else
  11224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11225. /* end confdefs.h. */
  11226. #include <time.h>
  11227. #if !HAVE_DECL_TZNAME
  11228. extern char *tzname[];
  11229. #endif
  11230. int
  11231. main ()
  11232. {
  11233. return tzname[0][0];
  11234. ;
  11235. return 0;
  11236. }
  11237. _ACEOF
  11238. if ac_fn_c_try_link "$LINENO"; then :
  11239. ac_cv_var_tzname=yes
  11240. else
  11241. ac_cv_var_tzname=no
  11242. fi
  11243. rm -f core conftest.err conftest.$ac_objext \
  11244. conftest$ac_exeext conftest.$ac_ext
  11245. fi
  11246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  11247. $as_echo "$ac_cv_var_tzname" >&6; }
  11248. if test $ac_cv_var_tzname = yes; then
  11249. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  11250. fi
  11251. fi
  11252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
  11253. $as_echo_n "checking for tm_zone in struct tm... " >&6; }
  11254. if ${ac_cv_struct_tm_zone+:} false; then :
  11255. $as_echo_n "(cached) " >&6
  11256. else
  11257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11258. /* end confdefs.h. */
  11259. #include <sys/types.h>
  11260. #include <$ac_cv_struct_tm>
  11261. int
  11262. main ()
  11263. {
  11264. struct tm tm; tm.tm_zone;
  11265. ;
  11266. return 0;
  11267. }
  11268. _ACEOF
  11269. if ac_fn_c_try_compile "$LINENO"; then :
  11270. ac_cv_struct_tm_zone=yes
  11271. else
  11272. ac_cv_struct_tm_zone=no
  11273. fi
  11274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11275. fi
  11276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
  11277. $as_echo "$ac_cv_struct_tm_zone" >&6; }
  11278. if test "$ac_cv_struct_tm_zone" = yes; then
  11279. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  11280. fi
  11281. # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
  11282. # consider it declared and we won't give our own extern.
  11283. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  11284. "
  11285. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  11286. ac_have_decl=1
  11287. else
  11288. ac_have_decl=0
  11289. fi
  11290. cat >>confdefs.h <<_ACEOF
  11291. #define HAVE_DECL_TZNAME $ac_have_decl
  11292. _ACEOF
  11293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  11294. $as_echo_n "checking for tzname... " >&6; }
  11295. if ${ac_cv_var_tzname+:} false; then :
  11296. $as_echo_n "(cached) " >&6
  11297. else
  11298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11299. /* end confdefs.h. */
  11300. #include <time.h>
  11301. int
  11302. main ()
  11303. {
  11304. #if !HAVE_DECL_TZNAME
  11305. extern char *tzname[];
  11306. #endif
  11307. return tzname[0][0];
  11308. ;
  11309. return 0;
  11310. }
  11311. _ACEOF
  11312. if ac_fn_c_try_link "$LINENO"; then :
  11313. ac_cv_var_tzname=yes
  11314. else
  11315. ac_cv_var_tzname=no
  11316. fi
  11317. rm -f core conftest.err conftest.$ac_objext \
  11318. conftest$ac_exeext conftest.$ac_ext
  11319. fi
  11320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  11321. $as_echo "$ac_cv_var_tzname" >&6; }
  11322. if test $ac_cv_var_tzname = yes; then
  11323. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  11324. fi
  11325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
  11326. $as_echo_n "checking for tm_isdst in struct tm... " >&6; }
  11327. if ${ac_cv_struct_tm_isdst+:} false; then :
  11328. $as_echo_n "(cached) " >&6
  11329. else
  11330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11331. /* end confdefs.h. */
  11332. #include <sys/types.h>
  11333. #include <$ac_cv_struct_tm>
  11334. int
  11335. main ()
  11336. {
  11337. struct tm tm; tm.tm_isdst;
  11338. ;
  11339. return 0;
  11340. }
  11341. _ACEOF
  11342. if ac_fn_c_try_compile "$LINENO"; then :
  11343. ac_cv_struct_tm_isdst=yes
  11344. else
  11345. ac_cv_struct_tm_isdst=no
  11346. fi
  11347. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11348. fi
  11349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
  11350. $as_echo "$ac_cv_struct_tm_isdst" >&6; }
  11351. if test "$ac_cv_struct_tm_isdst" = yes; then
  11352. $as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h
  11353. fi
  11354. ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
  11355. "
  11356. if test "x$ac_cv_have_decl_daylight" = xyes; then :
  11357. ac_have_decl=1
  11358. else
  11359. ac_have_decl=0
  11360. fi
  11361. cat >>confdefs.h <<_ACEOF
  11362. #define HAVE_DECL_DAYLIGHT $ac_have_decl
  11363. _ACEOF
  11364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
  11365. $as_echo_n "checking for daylight... " >&6; }
  11366. if ${ac_cv_var_daylight+:} false; then :
  11367. $as_echo_n "(cached) " >&6
  11368. else
  11369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11370. /* end confdefs.h. */
  11371. #include <time.h>
  11372. int
  11373. main ()
  11374. {
  11375. #if !HAVE_DECL_DAYLIGHT
  11376. extern int daylight;
  11377. #endif
  11378. atoi(daylight);
  11379. ;
  11380. return 0;
  11381. }
  11382. _ACEOF
  11383. if ac_fn_c_try_link "$LINENO"; then :
  11384. ac_cv_var_daylight=yes
  11385. else
  11386. ac_cv_var_daylight=no
  11387. fi
  11388. rm -f core conftest.err conftest.$ac_objext \
  11389. conftest$ac_exeext conftest.$ac_ext
  11390. fi
  11391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
  11392. $as_echo "$ac_cv_var_daylight" >&6; }
  11393. if test $ac_cv_var_daylight = yes; then
  11394. $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
  11395. fi
  11396. # Check whether --enable-largefile was given.
  11397. if test "${enable_largefile+set}" = set; then :
  11398. enableval=$enable_largefile;
  11399. fi
  11400. if test "$enable_largefile" != no; then
  11401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  11402. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  11403. if ${ac_cv_sys_largefile_CC+:} false; then :
  11404. $as_echo_n "(cached) " >&6
  11405. else
  11406. ac_cv_sys_largefile_CC=no
  11407. if test "$GCC" != yes; then
  11408. ac_save_CC=$CC
  11409. while :; do
  11410. # IRIX 6.2 and later do not support large files by default,
  11411. # so use the C compiler's -n32 option if that helps.
  11412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11413. /* end confdefs.h. */
  11414. #include <sys/types.h>
  11415. /* Check that off_t can represent 2**63 - 1 correctly.
  11416. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11417. since some C++ compilers masquerading as C compilers
  11418. incorrectly reject 9223372036854775807. */
  11419. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11420. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11421. && LARGE_OFF_T % 2147483647 == 1)
  11422. ? 1 : -1];
  11423. int
  11424. main ()
  11425. {
  11426. ;
  11427. return 0;
  11428. }
  11429. _ACEOF
  11430. if ac_fn_c_try_compile "$LINENO"; then :
  11431. break
  11432. fi
  11433. rm -f core conftest.err conftest.$ac_objext
  11434. CC="$CC -n32"
  11435. if ac_fn_c_try_compile "$LINENO"; then :
  11436. ac_cv_sys_largefile_CC=' -n32'; break
  11437. fi
  11438. rm -f core conftest.err conftest.$ac_objext
  11439. break
  11440. done
  11441. CC=$ac_save_CC
  11442. rm -f conftest.$ac_ext
  11443. fi
  11444. fi
  11445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  11446. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  11447. if test "$ac_cv_sys_largefile_CC" != no; then
  11448. CC=$CC$ac_cv_sys_largefile_CC
  11449. fi
  11450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  11451. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  11452. if ${ac_cv_sys_file_offset_bits+:} false; then :
  11453. $as_echo_n "(cached) " >&6
  11454. else
  11455. while :; do
  11456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11457. /* end confdefs.h. */
  11458. #include <sys/types.h>
  11459. /* Check that off_t can represent 2**63 - 1 correctly.
  11460. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11461. since some C++ compilers masquerading as C compilers
  11462. incorrectly reject 9223372036854775807. */
  11463. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11464. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11465. && LARGE_OFF_T % 2147483647 == 1)
  11466. ? 1 : -1];
  11467. int
  11468. main ()
  11469. {
  11470. ;
  11471. return 0;
  11472. }
  11473. _ACEOF
  11474. if ac_fn_c_try_compile "$LINENO"; then :
  11475. ac_cv_sys_file_offset_bits=no; break
  11476. fi
  11477. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11479. /* end confdefs.h. */
  11480. #define _FILE_OFFSET_BITS 64
  11481. #include <sys/types.h>
  11482. /* Check that off_t can represent 2**63 - 1 correctly.
  11483. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11484. since some C++ compilers masquerading as C compilers
  11485. incorrectly reject 9223372036854775807. */
  11486. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11487. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11488. && LARGE_OFF_T % 2147483647 == 1)
  11489. ? 1 : -1];
  11490. int
  11491. main ()
  11492. {
  11493. ;
  11494. return 0;
  11495. }
  11496. _ACEOF
  11497. if ac_fn_c_try_compile "$LINENO"; then :
  11498. ac_cv_sys_file_offset_bits=64; break
  11499. fi
  11500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11501. ac_cv_sys_file_offset_bits=unknown
  11502. break
  11503. done
  11504. fi
  11505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  11506. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  11507. case $ac_cv_sys_file_offset_bits in #(
  11508. no | unknown) ;;
  11509. *)
  11510. cat >>confdefs.h <<_ACEOF
  11511. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  11512. _ACEOF
  11513. ;;
  11514. esac
  11515. rm -rf conftest*
  11516. if test $ac_cv_sys_file_offset_bits = unknown; then
  11517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  11518. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  11519. if ${ac_cv_sys_large_files+:} false; then :
  11520. $as_echo_n "(cached) " >&6
  11521. else
  11522. while :; do
  11523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11524. /* end confdefs.h. */
  11525. #include <sys/types.h>
  11526. /* Check that off_t can represent 2**63 - 1 correctly.
  11527. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11528. since some C++ compilers masquerading as C compilers
  11529. incorrectly reject 9223372036854775807. */
  11530. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11531. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11532. && LARGE_OFF_T % 2147483647 == 1)
  11533. ? 1 : -1];
  11534. int
  11535. main ()
  11536. {
  11537. ;
  11538. return 0;
  11539. }
  11540. _ACEOF
  11541. if ac_fn_c_try_compile "$LINENO"; then :
  11542. ac_cv_sys_large_files=no; break
  11543. fi
  11544. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11546. /* end confdefs.h. */
  11547. #define _LARGE_FILES 1
  11548. #include <sys/types.h>
  11549. /* Check that off_t can represent 2**63 - 1 correctly.
  11550. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11551. since some C++ compilers masquerading as C compilers
  11552. incorrectly reject 9223372036854775807. */
  11553. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11554. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11555. && LARGE_OFF_T % 2147483647 == 1)
  11556. ? 1 : -1];
  11557. int
  11558. main ()
  11559. {
  11560. ;
  11561. return 0;
  11562. }
  11563. _ACEOF
  11564. if ac_fn_c_try_compile "$LINENO"; then :
  11565. ac_cv_sys_large_files=1; break
  11566. fi
  11567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11568. ac_cv_sys_large_files=unknown
  11569. break
  11570. done
  11571. fi
  11572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  11573. $as_echo "$ac_cv_sys_large_files" >&6; }
  11574. case $ac_cv_sys_large_files in #(
  11575. no | unknown) ;;
  11576. *)
  11577. cat >>confdefs.h <<_ACEOF
  11578. #define _LARGE_FILES $ac_cv_sys_large_files
  11579. _ACEOF
  11580. ;;
  11581. esac
  11582. rm -rf conftest*
  11583. fi
  11584. fi
  11585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  11586. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  11587. if ${ac_cv_sys_largefile_source+:} false; then :
  11588. $as_echo_n "(cached) " >&6
  11589. else
  11590. while :; do
  11591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11592. /* end confdefs.h. */
  11593. #include <sys/types.h> /* for off_t */
  11594. #include <stdio.h>
  11595. int
  11596. main ()
  11597. {
  11598. int (*fp) (FILE *, off_t, int) = fseeko;
  11599. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  11600. ;
  11601. return 0;
  11602. }
  11603. _ACEOF
  11604. if ac_fn_c_try_link "$LINENO"; then :
  11605. ac_cv_sys_largefile_source=no; break
  11606. fi
  11607. rm -f core conftest.err conftest.$ac_objext \
  11608. conftest$ac_exeext conftest.$ac_ext
  11609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11610. /* end confdefs.h. */
  11611. #define _LARGEFILE_SOURCE 1
  11612. #include <sys/types.h> /* for off_t */
  11613. #include <stdio.h>
  11614. int
  11615. main ()
  11616. {
  11617. int (*fp) (FILE *, off_t, int) = fseeko;
  11618. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  11619. ;
  11620. return 0;
  11621. }
  11622. _ACEOF
  11623. if ac_fn_c_try_link "$LINENO"; then :
  11624. ac_cv_sys_largefile_source=1; break
  11625. fi
  11626. rm -f core conftest.err conftest.$ac_objext \
  11627. conftest$ac_exeext conftest.$ac_ext
  11628. ac_cv_sys_largefile_source=unknown
  11629. break
  11630. done
  11631. fi
  11632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  11633. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  11634. case $ac_cv_sys_largefile_source in #(
  11635. no | unknown) ;;
  11636. *)
  11637. cat >>confdefs.h <<_ACEOF
  11638. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  11639. _ACEOF
  11640. ;;
  11641. esac
  11642. rm -rf conftest*
  11643. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  11644. # in glibc 2.1.3, but that breaks too many other things.
  11645. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  11646. if test $ac_cv_sys_largefile_source != unknown; then
  11647. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  11648. fi
  11649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
  11650. $as_echo_n "checking for mbstate_t... " >&6; }
  11651. if ${ac_cv_type_mbstate_t+:} false; then :
  11652. $as_echo_n "(cached) " >&6
  11653. else
  11654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11655. /* end confdefs.h. */
  11656. $ac_includes_default
  11657. # include <wchar.h>
  11658. int
  11659. main ()
  11660. {
  11661. mbstate_t x; return sizeof x;
  11662. ;
  11663. return 0;
  11664. }
  11665. _ACEOF
  11666. if ac_fn_c_try_compile "$LINENO"; then :
  11667. ac_cv_type_mbstate_t=yes
  11668. else
  11669. ac_cv_type_mbstate_t=no
  11670. fi
  11671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11672. fi
  11673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
  11674. $as_echo "$ac_cv_type_mbstate_t" >&6; }
  11675. if test $ac_cv_type_mbstate_t = yes; then
  11676. $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
  11677. else
  11678. $as_echo "#define mbstate_t int" >>confdefs.h
  11679. fi
  11680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
  11681. $as_echo_n "checking for struct option in getopt... " >&6; }
  11682. if ${ac_cv_struct_option_getopt_h+:} false; then :
  11683. $as_echo_n "(cached) " >&6
  11684. else
  11685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11686. /* end confdefs.h. */
  11687. #include <getopt.h>
  11688. int
  11689. main ()
  11690. {
  11691. struct option op; op.name;
  11692. ;
  11693. return 0;
  11694. }
  11695. _ACEOF
  11696. if ac_fn_c_try_compile "$LINENO"; then :
  11697. ac_cv_struct_option_getopt_h=yes
  11698. else
  11699. ac_cv_struct_option_getopt_h=no
  11700. fi
  11701. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11702. fi
  11703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
  11704. $as_echo "$ac_cv_struct_option_getopt_h" >&6; }
  11705. if test "$ac_cv_struct_option_getopt_h" = yes; then
  11706. $as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
  11707. fi
  11708. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  11709. if test "x$ac_cv_type_pid_t" = xyes; then :
  11710. else
  11711. cat >>confdefs.h <<_ACEOF
  11712. #define pid_t int
  11713. _ACEOF
  11714. fi
  11715. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  11716. case $ac_cv_c_uint8_t in #(
  11717. no|yes) ;; #(
  11718. *)
  11719. $as_echo "#define _UINT8_T 1" >>confdefs.h
  11720. cat >>confdefs.h <<_ACEOF
  11721. #define uint8_t $ac_cv_c_uint8_t
  11722. _ACEOF
  11723. ;;
  11724. esac
  11725. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  11726. case $ac_cv_c_uint16_t in #(
  11727. no|yes) ;; #(
  11728. *)
  11729. cat >>confdefs.h <<_ACEOF
  11730. #define uint16_t $ac_cv_c_uint16_t
  11731. _ACEOF
  11732. ;;
  11733. esac
  11734. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  11735. case $ac_cv_c_uint32_t in #(
  11736. no|yes) ;; #(
  11737. *)
  11738. $as_echo "#define _UINT32_T 1" >>confdefs.h
  11739. cat >>confdefs.h <<_ACEOF
  11740. #define uint32_t $ac_cv_c_uint32_t
  11741. _ACEOF
  11742. ;;
  11743. esac
  11744. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  11745. case $ac_cv_c_int32_t in #(
  11746. no|yes) ;; #(
  11747. *)
  11748. cat >>confdefs.h <<_ACEOF
  11749. #define int32_t $ac_cv_c_int32_t
  11750. _ACEOF
  11751. ;;
  11752. esac
  11753. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  11754. case $ac_cv_c_uint64_t in #(
  11755. no|yes) ;; #(
  11756. *)
  11757. $as_echo "#define _UINT64_T 1" >>confdefs.h
  11758. cat >>confdefs.h <<_ACEOF
  11759. #define uint64_t $ac_cv_c_uint64_t
  11760. _ACEOF
  11761. ;;
  11762. esac
  11763. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  11764. case $ac_cv_c_int64_t in #(
  11765. no|yes) ;; #(
  11766. *)
  11767. cat >>confdefs.h <<_ACEOF
  11768. #define int64_t $ac_cv_c_int64_t
  11769. _ACEOF
  11770. ;;
  11771. esac
  11772. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  11773. if test "x$ac_cv_type_intptr_t" = xyes; then :
  11774. $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
  11775. else
  11776. for ac_type in 'int' 'long int' 'long long int'; do
  11777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11778. /* end confdefs.h. */
  11779. $ac_includes_default
  11780. int
  11781. main ()
  11782. {
  11783. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  11784. test_array [0] = 0;
  11785. return test_array [0];
  11786. ;
  11787. return 0;
  11788. }
  11789. _ACEOF
  11790. if ac_fn_c_try_compile "$LINENO"; then :
  11791. cat >>confdefs.h <<_ACEOF
  11792. #define intptr_t $ac_type
  11793. _ACEOF
  11794. ac_type=
  11795. fi
  11796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11797. test -z "$ac_type" && break
  11798. done
  11799. fi
  11800. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  11801. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  11802. $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
  11803. else
  11804. for ac_type in 'unsigned int' 'unsigned long int' \
  11805. 'unsigned long long int'; do
  11806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11807. /* end confdefs.h. */
  11808. $ac_includes_default
  11809. int
  11810. main ()
  11811. {
  11812. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  11813. test_array [0] = 0;
  11814. return test_array [0];
  11815. ;
  11816. return 0;
  11817. }
  11818. _ACEOF
  11819. if ac_fn_c_try_compile "$LINENO"; then :
  11820. cat >>confdefs.h <<_ACEOF
  11821. #define uintptr_t $ac_type
  11822. _ACEOF
  11823. ac_type=
  11824. fi
  11825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11826. test -z "$ac_type" && break
  11827. done
  11828. fi
  11829. for ac_header in $ac_header_list
  11830. do :
  11831. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11832. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  11833. "
  11834. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11835. cat >>confdefs.h <<_ACEOF
  11836. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11837. _ACEOF
  11838. fi
  11839. done
  11840. for ac_func in getpagesize
  11841. do :
  11842. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  11843. if test "x$ac_cv_func_getpagesize" = xyes; then :
  11844. cat >>confdefs.h <<_ACEOF
  11845. #define HAVE_GETPAGESIZE 1
  11846. _ACEOF
  11847. fi
  11848. done
  11849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  11850. $as_echo_n "checking for working mmap... " >&6; }
  11851. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  11852. $as_echo_n "(cached) " >&6
  11853. else
  11854. if test "$cross_compiling" = yes; then :
  11855. ac_cv_func_mmap_fixed_mapped=no
  11856. else
  11857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11858. /* end confdefs.h. */
  11859. $ac_includes_default
  11860. /* malloc might have been renamed as rpl_malloc. */
  11861. #undef malloc
  11862. /* Thanks to Mike Haertel and Jim Avera for this test.
  11863. Here is a matrix of mmap possibilities:
  11864. mmap private not fixed
  11865. mmap private fixed at somewhere currently unmapped
  11866. mmap private fixed at somewhere already mapped
  11867. mmap shared not fixed
  11868. mmap shared fixed at somewhere currently unmapped
  11869. mmap shared fixed at somewhere already mapped
  11870. For private mappings, we should verify that changes cannot be read()
  11871. back from the file, nor mmap's back from the file at a different
  11872. address. (There have been systems where private was not correctly
  11873. implemented like the infamous i386 svr4.0, and systems where the
  11874. VM page cache was not coherent with the file system buffer cache
  11875. like early versions of FreeBSD and possibly contemporary NetBSD.)
  11876. For shared mappings, we should conversely verify that changes get
  11877. propagated back to all the places they're supposed to be.
  11878. Grep wants private fixed already mapped.
  11879. The main things grep needs to know about mmap are:
  11880. * does it exist and is it safe to write into the mmap'd area
  11881. * how to use it (BSD variants) */
  11882. #include <fcntl.h>
  11883. #include <sys/mman.h>
  11884. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  11885. char *malloc ();
  11886. #endif
  11887. /* This mess was copied from the GNU getpagesize.h. */
  11888. #ifndef HAVE_GETPAGESIZE
  11889. # ifdef _SC_PAGESIZE
  11890. # define getpagesize() sysconf(_SC_PAGESIZE)
  11891. # else /* no _SC_PAGESIZE */
  11892. # ifdef HAVE_SYS_PARAM_H
  11893. # include <sys/param.h>
  11894. # ifdef EXEC_PAGESIZE
  11895. # define getpagesize() EXEC_PAGESIZE
  11896. # else /* no EXEC_PAGESIZE */
  11897. # ifdef NBPG
  11898. # define getpagesize() NBPG * CLSIZE
  11899. # ifndef CLSIZE
  11900. # define CLSIZE 1
  11901. # endif /* no CLSIZE */
  11902. # else /* no NBPG */
  11903. # ifdef NBPC
  11904. # define getpagesize() NBPC
  11905. # else /* no NBPC */
  11906. # ifdef PAGESIZE
  11907. # define getpagesize() PAGESIZE
  11908. # endif /* PAGESIZE */
  11909. # endif /* no NBPC */
  11910. # endif /* no NBPG */
  11911. # endif /* no EXEC_PAGESIZE */
  11912. # else /* no HAVE_SYS_PARAM_H */
  11913. # define getpagesize() 8192 /* punt totally */
  11914. # endif /* no HAVE_SYS_PARAM_H */
  11915. # endif /* no _SC_PAGESIZE */
  11916. #endif /* no HAVE_GETPAGESIZE */
  11917. int
  11918. main ()
  11919. {
  11920. char *data, *data2, *data3;
  11921. const char *cdata2;
  11922. int i, pagesize;
  11923. int fd, fd2;
  11924. pagesize = getpagesize ();
  11925. /* First, make a file with some known garbage in it. */
  11926. data = (char *) malloc (pagesize);
  11927. if (!data)
  11928. return 1;
  11929. for (i = 0; i < pagesize; ++i)
  11930. *(data + i) = rand ();
  11931. umask (0);
  11932. fd = creat ("conftest.mmap", 0600);
  11933. if (fd < 0)
  11934. return 2;
  11935. if (write (fd, data, pagesize) != pagesize)
  11936. return 3;
  11937. close (fd);
  11938. /* Next, check that the tail of a page is zero-filled. File must have
  11939. non-zero length, otherwise we risk SIGBUS for entire page. */
  11940. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  11941. if (fd2 < 0)
  11942. return 4;
  11943. cdata2 = "";
  11944. if (write (fd2, cdata2, 1) != 1)
  11945. return 5;
  11946. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  11947. if (data2 == MAP_FAILED)
  11948. return 6;
  11949. for (i = 0; i < pagesize; ++i)
  11950. if (*(data2 + i))
  11951. return 7;
  11952. close (fd2);
  11953. if (munmap (data2, pagesize))
  11954. return 8;
  11955. /* Next, try to mmap the file at a fixed address which already has
  11956. something else allocated at it. If we can, also make sure that
  11957. we see the same garbage. */
  11958. fd = open ("conftest.mmap", O_RDWR);
  11959. if (fd < 0)
  11960. return 9;
  11961. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  11962. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  11963. return 10;
  11964. for (i = 0; i < pagesize; ++i)
  11965. if (*(data + i) != *(data2 + i))
  11966. return 11;
  11967. /* Finally, make sure that changes to the mapped area do not
  11968. percolate back to the file as seen by read(). (This is a bug on
  11969. some variants of i386 svr4.0.) */
  11970. for (i = 0; i < pagesize; ++i)
  11971. *(data2 + i) = *(data2 + i) + 1;
  11972. data3 = (char *) malloc (pagesize);
  11973. if (!data3)
  11974. return 12;
  11975. if (read (fd, data3, pagesize) != pagesize)
  11976. return 13;
  11977. for (i = 0; i < pagesize; ++i)
  11978. if (*(data + i) != *(data3 + i))
  11979. return 14;
  11980. close (fd);
  11981. return 0;
  11982. }
  11983. _ACEOF
  11984. if ac_fn_c_try_run "$LINENO"; then :
  11985. ac_cv_func_mmap_fixed_mapped=yes
  11986. else
  11987. ac_cv_func_mmap_fixed_mapped=no
  11988. fi
  11989. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11990. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11991. fi
  11992. fi
  11993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  11994. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  11995. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  11996. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  11997. fi
  11998. rm -f conftest.mmap conftest.txt
  11999. for ac_header in vfork.h
  12000. do :
  12001. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  12002. if test "x$ac_cv_header_vfork_h" = xyes; then :
  12003. cat >>confdefs.h <<_ACEOF
  12004. #define HAVE_VFORK_H 1
  12005. _ACEOF
  12006. fi
  12007. done
  12008. for ac_func in fork vfork
  12009. do :
  12010. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12011. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12012. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12013. cat >>confdefs.h <<_ACEOF
  12014. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12015. _ACEOF
  12016. fi
  12017. done
  12018. if test "x$ac_cv_func_fork" = xyes; then
  12019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  12020. $as_echo_n "checking for working fork... " >&6; }
  12021. if ${ac_cv_func_fork_works+:} false; then :
  12022. $as_echo_n "(cached) " >&6
  12023. else
  12024. if test "$cross_compiling" = yes; then :
  12025. ac_cv_func_fork_works=cross
  12026. else
  12027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12028. /* end confdefs.h. */
  12029. $ac_includes_default
  12030. int
  12031. main ()
  12032. {
  12033. /* By Ruediger Kuhlmann. */
  12034. return fork () < 0;
  12035. ;
  12036. return 0;
  12037. }
  12038. _ACEOF
  12039. if ac_fn_c_try_run "$LINENO"; then :
  12040. ac_cv_func_fork_works=yes
  12041. else
  12042. ac_cv_func_fork_works=no
  12043. fi
  12044. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12045. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12046. fi
  12047. fi
  12048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  12049. $as_echo "$ac_cv_func_fork_works" >&6; }
  12050. else
  12051. ac_cv_func_fork_works=$ac_cv_func_fork
  12052. fi
  12053. if test "x$ac_cv_func_fork_works" = xcross; then
  12054. case $host in
  12055. *-*-amigaos* | *-*-msdosdjgpp*)
  12056. # Override, as these systems have only a dummy fork() stub
  12057. ac_cv_func_fork_works=no
  12058. ;;
  12059. *)
  12060. ac_cv_func_fork_works=yes
  12061. ;;
  12062. esac
  12063. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  12064. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  12065. fi
  12066. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12067. if test "x$ac_cv_func_vfork" = xyes; then
  12068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  12069. $as_echo_n "checking for working vfork... " >&6; }
  12070. if ${ac_cv_func_vfork_works+:} false; then :
  12071. $as_echo_n "(cached) " >&6
  12072. else
  12073. if test "$cross_compiling" = yes; then :
  12074. ac_cv_func_vfork_works=cross
  12075. else
  12076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12077. /* end confdefs.h. */
  12078. /* Thanks to Paul Eggert for this test. */
  12079. $ac_includes_default
  12080. #include <sys/wait.h>
  12081. #ifdef HAVE_VFORK_H
  12082. # include <vfork.h>
  12083. #endif
  12084. /* On some sparc systems, changes by the child to local and incoming
  12085. argument registers are propagated back to the parent. The compiler
  12086. is told about this with #include <vfork.h>, but some compilers
  12087. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12088. static variable whose address is put into a register that is
  12089. clobbered by the vfork. */
  12090. static void
  12091. #ifdef __cplusplus
  12092. sparc_address_test (int arg)
  12093. # else
  12094. sparc_address_test (arg) int arg;
  12095. #endif
  12096. {
  12097. static pid_t child;
  12098. if (!child) {
  12099. child = vfork ();
  12100. if (child < 0) {
  12101. perror ("vfork");
  12102. _exit(2);
  12103. }
  12104. if (!child) {
  12105. arg = getpid();
  12106. write(-1, "", 0);
  12107. _exit (arg);
  12108. }
  12109. }
  12110. }
  12111. int
  12112. main ()
  12113. {
  12114. pid_t parent = getpid ();
  12115. pid_t child;
  12116. sparc_address_test (0);
  12117. child = vfork ();
  12118. if (child == 0) {
  12119. /* Here is another test for sparc vfork register problems. This
  12120. test uses lots of local variables, at least as many local
  12121. variables as main has allocated so far including compiler
  12122. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12123. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12124. reuse the register of parent for one of the local variables,
  12125. since it will think that parent can't possibly be used any more
  12126. in this routine. Assigning to the local variable will thus
  12127. munge parent in the parent process. */
  12128. pid_t
  12129. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12130. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12131. /* Convince the compiler that p..p7 are live; otherwise, it might
  12132. use the same hardware register for all 8 local variables. */
  12133. if (p != p1 || p != p2 || p != p3 || p != p4
  12134. || p != p5 || p != p6 || p != p7)
  12135. _exit(1);
  12136. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12137. from child file descriptors. If the child closes a descriptor
  12138. before it execs or exits, this munges the parent's descriptor
  12139. as well. Test for this by closing stdout in the child. */
  12140. _exit(close(fileno(stdout)) != 0);
  12141. } else {
  12142. int status;
  12143. struct stat st;
  12144. while (wait(&status) != child)
  12145. ;
  12146. return (
  12147. /* Was there some problem with vforking? */
  12148. child < 0
  12149. /* Did the child fail? (This shouldn't happen.) */
  12150. || status
  12151. /* Did the vfork/compiler bug occur? */
  12152. || parent != getpid()
  12153. /* Did the file descriptor bug occur? */
  12154. || fstat(fileno(stdout), &st) != 0
  12155. );
  12156. }
  12157. }
  12158. _ACEOF
  12159. if ac_fn_c_try_run "$LINENO"; then :
  12160. ac_cv_func_vfork_works=yes
  12161. else
  12162. ac_cv_func_vfork_works=no
  12163. fi
  12164. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12165. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12166. fi
  12167. fi
  12168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12169. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12170. fi;
  12171. if test "x$ac_cv_func_fork_works" = xcross; then
  12172. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12173. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12174. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12175. fi
  12176. if test "x$ac_cv_func_vfork_works" = xyes; then
  12177. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12178. else
  12179. $as_echo "#define vfork fork" >>confdefs.h
  12180. fi
  12181. if test "x$ac_cv_func_fork_works" = xyes; then
  12182. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12183. fi
  12184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
  12185. $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
  12186. if ${ac_cv_func_mbrtowc+:} false; then :
  12187. $as_echo_n "(cached) " >&6
  12188. else
  12189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12190. /* end confdefs.h. */
  12191. #include <wchar.h>
  12192. int
  12193. main ()
  12194. {
  12195. wchar_t wc;
  12196. char const s[] = "";
  12197. size_t n = 1;
  12198. mbstate_t state;
  12199. return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
  12200. ;
  12201. return 0;
  12202. }
  12203. _ACEOF
  12204. if ac_fn_c_try_link "$LINENO"; then :
  12205. ac_cv_func_mbrtowc=yes
  12206. else
  12207. ac_cv_func_mbrtowc=no
  12208. fi
  12209. rm -f core conftest.err conftest.$ac_objext \
  12210. conftest$ac_exeext conftest.$ac_ext
  12211. fi
  12212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
  12213. $as_echo "$ac_cv_func_mbrtowc" >&6; }
  12214. if test $ac_cv_func_mbrtowc = yes; then
  12215. $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
  12216. fi
  12217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
  12218. $as_echo_n "checking for gcc compiler warnings... " >&6; }
  12219. # Check whether --enable-warnings was given.
  12220. if test "${enable_warnings+set}" = set; then :
  12221. enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
  12222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12223. $as_echo "no" >&6; }
  12224. WARNINGS=
  12225. else
  12226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12227. $as_echo "yes" >&6; }
  12228. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  12229. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  12230. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  12231. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  12232. fi
  12233. else
  12234. if test "$GCC" = yes; then
  12235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12236. $as_echo "yes" >&6; }
  12237. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  12238. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  12239. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  12240. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  12241. else
  12242. WARNINGS=
  12243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12244. $as_echo "no" >&6; }
  12245. fi
  12246. fi
  12247. for ac_func in strndup mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale memmem pipe2
  12248. do :
  12249. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12250. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12251. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12252. cat >>confdefs.h <<_ACEOF
  12253. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12254. _ACEOF
  12255. fi
  12256. done
  12257. ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
  12258. if test "x$ac_cv_func_getopt_long" = xyes; then :
  12259. $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
  12260. else
  12261. case " $LIBOBJS " in
  12262. *" getopt_long.$ac_objext "* ) ;;
  12263. *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
  12264. ;;
  12265. esac
  12266. fi
  12267. ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
  12268. if test "x$ac_cv_func_asprintf" = xyes; then :
  12269. $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
  12270. else
  12271. case " $LIBOBJS " in
  12272. *" asprintf.$ac_objext "* ) ;;
  12273. *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
  12274. ;;
  12275. esac
  12276. fi
  12277. ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
  12278. if test "x$ac_cv_func_vasprintf" = xyes; then :
  12279. $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
  12280. else
  12281. case " $LIBOBJS " in
  12282. *" vasprintf.$ac_objext "* ) ;;
  12283. *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
  12284. ;;
  12285. esac
  12286. fi
  12287. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  12288. if test "x$ac_cv_func_strlcpy" = xyes; then :
  12289. $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
  12290. else
  12291. case " $LIBOBJS " in
  12292. *" strlcpy.$ac_objext "* ) ;;
  12293. *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
  12294. ;;
  12295. esac
  12296. fi
  12297. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  12298. if test "x$ac_cv_func_strlcat" = xyes; then :
  12299. $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
  12300. else
  12301. case " $LIBOBJS " in
  12302. *" strlcat.$ac_objext "* ) ;;
  12303. *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
  12304. ;;
  12305. esac
  12306. fi
  12307. ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
  12308. if test "x$ac_cv_func_getline" = xyes; then :
  12309. $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
  12310. else
  12311. case " $LIBOBJS " in
  12312. *" getline.$ac_objext "* ) ;;
  12313. *) LIBOBJS="$LIBOBJS getline.$ac_objext"
  12314. ;;
  12315. esac
  12316. fi
  12317. ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
  12318. if test "x$ac_cv_func_ctime_r" = xyes; then :
  12319. $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
  12320. else
  12321. case " $LIBOBJS " in
  12322. *" ctime_r.$ac_objext "* ) ;;
  12323. *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
  12324. ;;
  12325. esac
  12326. fi
  12327. ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  12328. if test "x$ac_cv_func_asctime_r" = xyes; then :
  12329. $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h
  12330. else
  12331. case " $LIBOBJS " in
  12332. *" asctime_r.$ac_objext "* ) ;;
  12333. *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
  12334. ;;
  12335. esac
  12336. fi
  12337. ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  12338. if test "x$ac_cv_func_localtime_r" = xyes; then :
  12339. $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
  12340. else
  12341. case " $LIBOBJS " in
  12342. *" localtime_r.$ac_objext "* ) ;;
  12343. *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
  12344. ;;
  12345. esac
  12346. fi
  12347. ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
  12348. if test "x$ac_cv_func_gmtime_r" = xyes; then :
  12349. $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
  12350. else
  12351. case " $LIBOBJS " in
  12352. *" gmtime_r.$ac_objext "* ) ;;
  12353. *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
  12354. ;;
  12355. esac
  12356. fi
  12357. ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
  12358. if test "x$ac_cv_func_pread" = xyes; then :
  12359. $as_echo "#define HAVE_PREAD 1" >>confdefs.h
  12360. else
  12361. case " $LIBOBJS " in
  12362. *" pread.$ac_objext "* ) ;;
  12363. *) LIBOBJS="$LIBOBJS pread.$ac_objext"
  12364. ;;
  12365. esac
  12366. fi
  12367. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  12368. if test "x$ac_cv_func_strcasestr" = xyes; then :
  12369. $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
  12370. else
  12371. case " $LIBOBJS " in
  12372. *" strcasestr.$ac_objext "* ) ;;
  12373. *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
  12374. ;;
  12375. esac
  12376. fi
  12377. ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
  12378. if test "x$ac_cv_func_fmtcheck" = xyes; then :
  12379. $as_echo "#define HAVE_FMTCHECK 1" >>confdefs.h
  12380. else
  12381. case " $LIBOBJS " in
  12382. *" fmtcheck.$ac_objext "* ) ;;
  12383. *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext"
  12384. ;;
  12385. esac
  12386. fi
  12387. ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
  12388. if test "x$ac_cv_func_dprintf" = xyes; then :
  12389. $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h
  12390. else
  12391. case " $LIBOBJS " in
  12392. *" dprintf.$ac_objext "* ) ;;
  12393. *) LIBOBJS="$LIBOBJS dprintf.$ac_objext"
  12394. ;;
  12395. esac
  12396. fi
  12397. if test "$enable_zlib" != "no"; then
  12398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
  12399. $as_echo_n "checking for gzopen in -lz... " >&6; }
  12400. if ${ac_cv_lib_z_gzopen+:} false; then :
  12401. $as_echo_n "(cached) " >&6
  12402. else
  12403. ac_check_lib_save_LIBS=$LIBS
  12404. LIBS="-lz $LIBS"
  12405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12406. /* end confdefs.h. */
  12407. /* Override any GCC internal prototype to avoid an error.
  12408. Use char because int might match the return type of a GCC
  12409. builtin and then its argument prototype would still apply. */
  12410. #ifdef __cplusplus
  12411. extern "C"
  12412. #endif
  12413. char gzopen ();
  12414. int
  12415. main ()
  12416. {
  12417. return gzopen ();
  12418. ;
  12419. return 0;
  12420. }
  12421. _ACEOF
  12422. if ac_fn_c_try_link "$LINENO"; then :
  12423. ac_cv_lib_z_gzopen=yes
  12424. else
  12425. ac_cv_lib_z_gzopen=no
  12426. fi
  12427. rm -f core conftest.err conftest.$ac_objext \
  12428. conftest$ac_exeext conftest.$ac_ext
  12429. LIBS=$ac_check_lib_save_LIBS
  12430. fi
  12431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
  12432. $as_echo "$ac_cv_lib_z_gzopen" >&6; }
  12433. if test "x$ac_cv_lib_z_gzopen" = xyes; then :
  12434. cat >>confdefs.h <<_ACEOF
  12435. #define HAVE_LIBZ 1
  12436. _ACEOF
  12437. LIBS="-lz $LIBS"
  12438. fi
  12439. fi
  12440. if test "$enable_bzlib" != "no"; then
  12441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
  12442. $as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
  12443. if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then :
  12444. $as_echo_n "(cached) " >&6
  12445. else
  12446. ac_check_lib_save_LIBS=$LIBS
  12447. LIBS="-lbz2 $LIBS"
  12448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12449. /* end confdefs.h. */
  12450. /* Override any GCC internal prototype to avoid an error.
  12451. Use char because int might match the return type of a GCC
  12452. builtin and then its argument prototype would still apply. */
  12453. #ifdef __cplusplus
  12454. extern "C"
  12455. #endif
  12456. char BZ2_bzCompressInit ();
  12457. int
  12458. main ()
  12459. {
  12460. return BZ2_bzCompressInit ();
  12461. ;
  12462. return 0;
  12463. }
  12464. _ACEOF
  12465. if ac_fn_c_try_link "$LINENO"; then :
  12466. ac_cv_lib_bz2_BZ2_bzCompressInit=yes
  12467. else
  12468. ac_cv_lib_bz2_BZ2_bzCompressInit=no
  12469. fi
  12470. rm -f core conftest.err conftest.$ac_objext \
  12471. conftest$ac_exeext conftest.$ac_ext
  12472. LIBS=$ac_check_lib_save_LIBS
  12473. fi
  12474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
  12475. $as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
  12476. if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then :
  12477. cat >>confdefs.h <<_ACEOF
  12478. #define HAVE_LIBBZ2 1
  12479. _ACEOF
  12480. LIBS="-lbz2 $LIBS"
  12481. fi
  12482. fi
  12483. if test "$enable_xzlib" != "no"; then
  12484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5
  12485. $as_echo_n "checking for lzma_stream_decoder in -llzma... " >&6; }
  12486. if ${ac_cv_lib_lzma_lzma_stream_decoder+:} false; then :
  12487. $as_echo_n "(cached) " >&6
  12488. else
  12489. ac_check_lib_save_LIBS=$LIBS
  12490. LIBS="-llzma $LIBS"
  12491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12492. /* end confdefs.h. */
  12493. /* Override any GCC internal prototype to avoid an error.
  12494. Use char because int might match the return type of a GCC
  12495. builtin and then its argument prototype would still apply. */
  12496. #ifdef __cplusplus
  12497. extern "C"
  12498. #endif
  12499. char lzma_stream_decoder ();
  12500. int
  12501. main ()
  12502. {
  12503. return lzma_stream_decoder ();
  12504. ;
  12505. return 0;
  12506. }
  12507. _ACEOF
  12508. if ac_fn_c_try_link "$LINENO"; then :
  12509. ac_cv_lib_lzma_lzma_stream_decoder=yes
  12510. else
  12511. ac_cv_lib_lzma_lzma_stream_decoder=no
  12512. fi
  12513. rm -f core conftest.err conftest.$ac_objext \
  12514. conftest$ac_exeext conftest.$ac_ext
  12515. LIBS=$ac_check_lib_save_LIBS
  12516. fi
  12517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5
  12518. $as_echo "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }
  12519. if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes; then :
  12520. cat >>confdefs.h <<_ACEOF
  12521. #define HAVE_LIBLZMA 1
  12522. _ACEOF
  12523. LIBS="-llzma $LIBS"
  12524. fi
  12525. fi
  12526. if test "$enable_libseccomp" != "no"; then
  12527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5
  12528. $as_echo_n "checking for seccomp_init in -lseccomp... " >&6; }
  12529. if ${ac_cv_lib_seccomp_seccomp_init+:} false; then :
  12530. $as_echo_n "(cached) " >&6
  12531. else
  12532. ac_check_lib_save_LIBS=$LIBS
  12533. LIBS="-lseccomp $LIBS"
  12534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12535. /* end confdefs.h. */
  12536. /* Override any GCC internal prototype to avoid an error.
  12537. Use char because int might match the return type of a GCC
  12538. builtin and then its argument prototype would still apply. */
  12539. #ifdef __cplusplus
  12540. extern "C"
  12541. #endif
  12542. char seccomp_init ();
  12543. int
  12544. main ()
  12545. {
  12546. return seccomp_init ();
  12547. ;
  12548. return 0;
  12549. }
  12550. _ACEOF
  12551. if ac_fn_c_try_link "$LINENO"; then :
  12552. ac_cv_lib_seccomp_seccomp_init=yes
  12553. else
  12554. ac_cv_lib_seccomp_seccomp_init=no
  12555. fi
  12556. rm -f core conftest.err conftest.$ac_objext \
  12557. conftest$ac_exeext conftest.$ac_ext
  12558. LIBS=$ac_check_lib_save_LIBS
  12559. fi
  12560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5
  12561. $as_echo "$ac_cv_lib_seccomp_seccomp_init" >&6; }
  12562. if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes; then :
  12563. cat >>confdefs.h <<_ACEOF
  12564. #define HAVE_LIBSECCOMP 1
  12565. _ACEOF
  12566. LIBS="-lseccomp $LIBS"
  12567. fi
  12568. fi
  12569. if test "$MINGW" = 1; then
  12570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
  12571. $as_echo_n "checking for regexec in -lgnurx... " >&6; }
  12572. if ${ac_cv_lib_gnurx_regexec+:} false; then :
  12573. $as_echo_n "(cached) " >&6
  12574. else
  12575. ac_check_lib_save_LIBS=$LIBS
  12576. LIBS="-lgnurx $LIBS"
  12577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12578. /* end confdefs.h. */
  12579. /* Override any GCC internal prototype to avoid an error.
  12580. Use char because int might match the return type of a GCC
  12581. builtin and then its argument prototype would still apply. */
  12582. #ifdef __cplusplus
  12583. extern "C"
  12584. #endif
  12585. char regexec ();
  12586. int
  12587. main ()
  12588. {
  12589. return regexec ();
  12590. ;
  12591. return 0;
  12592. }
  12593. _ACEOF
  12594. if ac_fn_c_try_link "$LINENO"; then :
  12595. ac_cv_lib_gnurx_regexec=yes
  12596. else
  12597. ac_cv_lib_gnurx_regexec=no
  12598. fi
  12599. rm -f core conftest.err conftest.$ac_objext \
  12600. conftest$ac_exeext conftest.$ac_ext
  12601. LIBS=$ac_check_lib_save_LIBS
  12602. fi
  12603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
  12604. $as_echo "$ac_cv_lib_gnurx_regexec" >&6; }
  12605. if test "x$ac_cv_lib_gnurx_regexec" = xyes; then :
  12606. cat >>confdefs.h <<_ACEOF
  12607. #define HAVE_LIBGNURX 1
  12608. _ACEOF
  12609. LIBS="-lgnurx $LIBS"
  12610. else
  12611. as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
  12612. fi
  12613. fi
  12614. if test "$cross_compiling" = yes; then
  12615. IS_CROSS_COMPILE_TRUE=
  12616. IS_CROSS_COMPILE_FALSE='#'
  12617. else
  12618. IS_CROSS_COMPILE_TRUE='#'
  12619. IS_CROSS_COMPILE_FALSE=
  12620. fi
  12621. if test "$enable_zlib" = "yes"; then
  12622. if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then
  12623. as_fn_error $? "zlib support requested but not found" "$LINENO" 5
  12624. fi
  12625. fi
  12626. if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then
  12627. $as_echo "#define ZLIBSUPPORT 1" >>confdefs.h
  12628. fi
  12629. if test "$enable_bzlib" = "yes"; then
  12630. if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" != "yesyes"; then
  12631. as_fn_error $? "bzlib support requested but not found" "$LINENO" 5
  12632. fi
  12633. fi
  12634. if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" = "yesyes"; then
  12635. $as_echo "#define BZLIBSUPPORT 1" >>confdefs.h
  12636. fi
  12637. if test "$enable_xzlib" = "yes"; then
  12638. if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" != "yesyes"; then
  12639. as_fn_error $? "xzlib support requested but not found" "$LINENO" 5
  12640. fi
  12641. fi
  12642. if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" = "yesyes"; then
  12643. $as_echo "#define XZLIBSUPPORT 1" >>confdefs.h
  12644. fi
  12645. ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile libmagic.pc"
  12646. cat >confcache <<\_ACEOF
  12647. # This file is a shell script that caches the results of configure
  12648. # tests run on this system so they can be shared between configure
  12649. # scripts and configure runs, see configure's option --config-cache.
  12650. # It is not useful on other systems. If it contains results you don't
  12651. # want to keep, you may remove or edit it.
  12652. #
  12653. # config.status only pays attention to the cache file if you give it
  12654. # the --recheck option to rerun configure.
  12655. #
  12656. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12657. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12658. # following values.
  12659. _ACEOF
  12660. # The following way of writing the cache mishandles newlines in values,
  12661. # but we know of no workaround that is simple, portable, and efficient.
  12662. # So, we kill variables containing newlines.
  12663. # Ultrix sh set writes to stderr and can't be redirected directly,
  12664. # and sets the high bit in the cache file unless we assign to the vars.
  12665. (
  12666. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12667. eval ac_val=\$$ac_var
  12668. case $ac_val in #(
  12669. *${as_nl}*)
  12670. case $ac_var in #(
  12671. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12672. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12673. esac
  12674. case $ac_var in #(
  12675. _ | IFS | as_nl) ;; #(
  12676. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12677. *) { eval $ac_var=; unset $ac_var;} ;;
  12678. esac ;;
  12679. esac
  12680. done
  12681. (set) 2>&1 |
  12682. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12683. *${as_nl}ac_space=\ *)
  12684. # `set' does not quote correctly, so add quotes: double-quote
  12685. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12686. sed -n \
  12687. "s/'/'\\\\''/g;
  12688. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12689. ;; #(
  12690. *)
  12691. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12692. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12693. ;;
  12694. esac |
  12695. sort
  12696. ) |
  12697. sed '
  12698. /^ac_cv_env_/b end
  12699. t clear
  12700. :clear
  12701. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12702. t end
  12703. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12704. :end' >>confcache
  12705. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12706. if test -w "$cache_file"; then
  12707. if test "x$cache_file" != "x/dev/null"; then
  12708. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12709. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12710. if test ! -f "$cache_file" || test -h "$cache_file"; then
  12711. cat confcache >"$cache_file"
  12712. else
  12713. case $cache_file in #(
  12714. */* | ?:*)
  12715. mv -f confcache "$cache_file"$$ &&
  12716. mv -f "$cache_file"$$ "$cache_file" ;; #(
  12717. *)
  12718. mv -f confcache "$cache_file" ;;
  12719. esac
  12720. fi
  12721. fi
  12722. else
  12723. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12724. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12725. fi
  12726. fi
  12727. rm -f confcache
  12728. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12729. # Let make expand exec_prefix.
  12730. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12731. DEFS=-DHAVE_CONFIG_H
  12732. ac_libobjs=
  12733. ac_ltlibobjs=
  12734. U=
  12735. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12736. # 1. Remove the extension, and $U if already installed.
  12737. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12738. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12739. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12740. # will be set to the directory where LIBOBJS objects are built.
  12741. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12742. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12743. done
  12744. LIBOBJS=$ac_libobjs
  12745. LTLIBOBJS=$ac_ltlibobjs
  12746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  12747. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  12748. if test -n "$am_sleep_pid"; then
  12749. # Hide warnings about reused PIDs.
  12750. wait $am_sleep_pid 2>/dev/null
  12751. fi
  12752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  12753. $as_echo "done" >&6; }
  12754. if test -n "$EXEEXT"; then
  12755. am__EXEEXT_TRUE=
  12756. am__EXEEXT_FALSE='#'
  12757. else
  12758. am__EXEEXT_TRUE='#'
  12759. am__EXEEXT_FALSE=
  12760. fi
  12761. if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
  12762. as_fn_error $? "conditional \"MINGW\" was never defined.
  12763. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12764. fi
  12765. if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
  12766. as_fn_error $? "conditional \"FSECT5\" was never defined.
  12767. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12768. fi
  12769. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12770. as_fn_error $? "conditional \"AMDEP\" was never defined.
  12771. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12772. fi
  12773. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12774. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  12775. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12776. fi
  12777. if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
  12778. as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
  12779. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12780. fi
  12781. : "${CONFIG_STATUS=./config.status}"
  12782. ac_write_fail=0
  12783. ac_clean_files_save=$ac_clean_files
  12784. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12785. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12786. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12787. as_write_fail=0
  12788. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12789. #! $SHELL
  12790. # Generated by $as_me.
  12791. # Run this file to recreate the current configuration.
  12792. # Compiler output produced by configure, useful for debugging
  12793. # configure, is in config.log if it exists.
  12794. debug=false
  12795. ac_cs_recheck=false
  12796. ac_cs_silent=false
  12797. SHELL=\${CONFIG_SHELL-$SHELL}
  12798. export SHELL
  12799. _ASEOF
  12800. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12801. ## -------------------- ##
  12802. ## M4sh Initialization. ##
  12803. ## -------------------- ##
  12804. # Be more Bourne compatible
  12805. DUALCASE=1; export DUALCASE # for MKS sh
  12806. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12807. emulate sh
  12808. NULLCMD=:
  12809. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12810. # is contrary to our usage. Disable this feature.
  12811. alias -g '${1+"$@"}'='"$@"'
  12812. setopt NO_GLOB_SUBST
  12813. else
  12814. case `(set -o) 2>/dev/null` in #(
  12815. *posix*) :
  12816. set -o posix ;; #(
  12817. *) :
  12818. ;;
  12819. esac
  12820. fi
  12821. as_nl='
  12822. '
  12823. export as_nl
  12824. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12825. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12826. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12827. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12828. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12829. # but without wasting forks for bash or zsh.
  12830. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12831. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12832. as_echo='print -r --'
  12833. as_echo_n='print -rn --'
  12834. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12835. as_echo='printf %s\n'
  12836. as_echo_n='printf %s'
  12837. else
  12838. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12839. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12840. as_echo_n='/usr/ucb/echo -n'
  12841. else
  12842. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12843. as_echo_n_body='eval
  12844. arg=$1;
  12845. case $arg in #(
  12846. *"$as_nl"*)
  12847. expr "X$arg" : "X\\(.*\\)$as_nl";
  12848. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12849. esac;
  12850. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12851. '
  12852. export as_echo_n_body
  12853. as_echo_n='sh -c $as_echo_n_body as_echo'
  12854. fi
  12855. export as_echo_body
  12856. as_echo='sh -c $as_echo_body as_echo'
  12857. fi
  12858. # The user is always right.
  12859. if test "${PATH_SEPARATOR+set}" != set; then
  12860. PATH_SEPARATOR=:
  12861. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12862. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12863. PATH_SEPARATOR=';'
  12864. }
  12865. fi
  12866. # IFS
  12867. # We need space, tab and new line, in precisely that order. Quoting is
  12868. # there to prevent editors from complaining about space-tab.
  12869. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12870. # splitting by setting IFS to empty value.)
  12871. IFS=" "" $as_nl"
  12872. # Find who we are. Look in the path if we contain no directory separator.
  12873. as_myself=
  12874. case $0 in #((
  12875. *[\\/]* ) as_myself=$0 ;;
  12876. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12877. for as_dir in $PATH
  12878. do
  12879. IFS=$as_save_IFS
  12880. test -z "$as_dir" && as_dir=.
  12881. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12882. done
  12883. IFS=$as_save_IFS
  12884. ;;
  12885. esac
  12886. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12887. # in which case we are not to be found in the path.
  12888. if test "x$as_myself" = x; then
  12889. as_myself=$0
  12890. fi
  12891. if test ! -f "$as_myself"; then
  12892. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12893. exit 1
  12894. fi
  12895. # Unset variables that we do not need and which cause bugs (e.g. in
  12896. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12897. # suppresses any "Segmentation fault" message there. '((' could
  12898. # trigger a bug in pdksh 5.2.14.
  12899. for as_var in BASH_ENV ENV MAIL MAILPATH
  12900. do eval test x\${$as_var+set} = xset \
  12901. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12902. done
  12903. PS1='$ '
  12904. PS2='> '
  12905. PS4='+ '
  12906. # NLS nuisances.
  12907. LC_ALL=C
  12908. export LC_ALL
  12909. LANGUAGE=C
  12910. export LANGUAGE
  12911. # CDPATH.
  12912. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12913. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  12914. # ----------------------------------------
  12915. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12916. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12917. # script with STATUS, using 1 if that was 0.
  12918. as_fn_error ()
  12919. {
  12920. as_status=$1; test $as_status -eq 0 && as_status=1
  12921. if test "$4"; then
  12922. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12923. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  12924. fi
  12925. $as_echo "$as_me: error: $2" >&2
  12926. as_fn_exit $as_status
  12927. } # as_fn_error
  12928. # as_fn_set_status STATUS
  12929. # -----------------------
  12930. # Set $? to STATUS, without forking.
  12931. as_fn_set_status ()
  12932. {
  12933. return $1
  12934. } # as_fn_set_status
  12935. # as_fn_exit STATUS
  12936. # -----------------
  12937. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12938. as_fn_exit ()
  12939. {
  12940. set +e
  12941. as_fn_set_status $1
  12942. exit $1
  12943. } # as_fn_exit
  12944. # as_fn_unset VAR
  12945. # ---------------
  12946. # Portably unset VAR.
  12947. as_fn_unset ()
  12948. {
  12949. { eval $1=; unset $1;}
  12950. }
  12951. as_unset=as_fn_unset
  12952. # as_fn_append VAR VALUE
  12953. # ----------------------
  12954. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12955. # advantage of any shell optimizations that allow amortized linear growth over
  12956. # repeated appends, instead of the typical quadratic growth present in naive
  12957. # implementations.
  12958. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12959. eval 'as_fn_append ()
  12960. {
  12961. eval $1+=\$2
  12962. }'
  12963. else
  12964. as_fn_append ()
  12965. {
  12966. eval $1=\$$1\$2
  12967. }
  12968. fi # as_fn_append
  12969. # as_fn_arith ARG...
  12970. # ------------------
  12971. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12972. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12973. # must be portable across $(()) and expr.
  12974. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12975. eval 'as_fn_arith ()
  12976. {
  12977. as_val=$(( $* ))
  12978. }'
  12979. else
  12980. as_fn_arith ()
  12981. {
  12982. as_val=`expr "$@" || test $? -eq 1`
  12983. }
  12984. fi # as_fn_arith
  12985. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12986. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12987. as_expr=expr
  12988. else
  12989. as_expr=false
  12990. fi
  12991. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12992. as_basename=basename
  12993. else
  12994. as_basename=false
  12995. fi
  12996. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12997. as_dirname=dirname
  12998. else
  12999. as_dirname=false
  13000. fi
  13001. as_me=`$as_basename -- "$0" ||
  13002. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13003. X"$0" : 'X\(//\)$' \| \
  13004. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13005. $as_echo X/"$0" |
  13006. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13007. s//\1/
  13008. q
  13009. }
  13010. /^X\/\(\/\/\)$/{
  13011. s//\1/
  13012. q
  13013. }
  13014. /^X\/\(\/\).*/{
  13015. s//\1/
  13016. q
  13017. }
  13018. s/.*/./; q'`
  13019. # Avoid depending upon Character Ranges.
  13020. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13021. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13022. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13023. as_cr_digits='0123456789'
  13024. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13025. ECHO_C= ECHO_N= ECHO_T=
  13026. case `echo -n x` in #(((((
  13027. -n*)
  13028. case `echo 'xy\c'` in
  13029. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13030. xy) ECHO_C='\c';;
  13031. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13032. ECHO_T=' ';;
  13033. esac;;
  13034. *)
  13035. ECHO_N='-n';;
  13036. esac
  13037. rm -f conf$$ conf$$.exe conf$$.file
  13038. if test -d conf$$.dir; then
  13039. rm -f conf$$.dir/conf$$.file
  13040. else
  13041. rm -f conf$$.dir
  13042. mkdir conf$$.dir 2>/dev/null
  13043. fi
  13044. if (echo >conf$$.file) 2>/dev/null; then
  13045. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13046. as_ln_s='ln -s'
  13047. # ... but there are two gotchas:
  13048. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13049. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13050. # In both cases, we have to default to `cp -pR'.
  13051. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13052. as_ln_s='cp -pR'
  13053. elif ln conf$$.file conf$$ 2>/dev/null; then
  13054. as_ln_s=ln
  13055. else
  13056. as_ln_s='cp -pR'
  13057. fi
  13058. else
  13059. as_ln_s='cp -pR'
  13060. fi
  13061. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13062. rmdir conf$$.dir 2>/dev/null
  13063. # as_fn_mkdir_p
  13064. # -------------
  13065. # Create "$as_dir" as a directory, including parents if necessary.
  13066. as_fn_mkdir_p ()
  13067. {
  13068. case $as_dir in #(
  13069. -*) as_dir=./$as_dir;;
  13070. esac
  13071. test -d "$as_dir" || eval $as_mkdir_p || {
  13072. as_dirs=
  13073. while :; do
  13074. case $as_dir in #(
  13075. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13076. *) as_qdir=$as_dir;;
  13077. esac
  13078. as_dirs="'$as_qdir' $as_dirs"
  13079. as_dir=`$as_dirname -- "$as_dir" ||
  13080. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13081. X"$as_dir" : 'X\(//\)[^/]' \| \
  13082. X"$as_dir" : 'X\(//\)$' \| \
  13083. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13084. $as_echo X"$as_dir" |
  13085. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13086. s//\1/
  13087. q
  13088. }
  13089. /^X\(\/\/\)[^/].*/{
  13090. s//\1/
  13091. q
  13092. }
  13093. /^X\(\/\/\)$/{
  13094. s//\1/
  13095. q
  13096. }
  13097. /^X\(\/\).*/{
  13098. s//\1/
  13099. q
  13100. }
  13101. s/.*/./; q'`
  13102. test -d "$as_dir" && break
  13103. done
  13104. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13105. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13106. } # as_fn_mkdir_p
  13107. if mkdir -p . 2>/dev/null; then
  13108. as_mkdir_p='mkdir -p "$as_dir"'
  13109. else
  13110. test -d ./-p && rmdir ./-p
  13111. as_mkdir_p=false
  13112. fi
  13113. # as_fn_executable_p FILE
  13114. # -----------------------
  13115. # Test if FILE is an executable regular file.
  13116. as_fn_executable_p ()
  13117. {
  13118. test -f "$1" && test -x "$1"
  13119. } # as_fn_executable_p
  13120. as_test_x='test -x'
  13121. as_executable_p=as_fn_executable_p
  13122. # Sed expression to map a string onto a valid CPP name.
  13123. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13124. # Sed expression to map a string onto a valid variable name.
  13125. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13126. exec 6>&1
  13127. ## ----------------------------------- ##
  13128. ## Main body of $CONFIG_STATUS script. ##
  13129. ## ----------------------------------- ##
  13130. _ASEOF
  13131. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13132. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13133. # Save the log message, to keep $0 and so on meaningful, and to
  13134. # report actual input values of CONFIG_FILES etc. instead of their
  13135. # values after options handling.
  13136. ac_log="
  13137. This file was extended by file $as_me 5.41, which was
  13138. generated by GNU Autoconf 2.69. Invocation command line was
  13139. CONFIG_FILES = $CONFIG_FILES
  13140. CONFIG_HEADERS = $CONFIG_HEADERS
  13141. CONFIG_LINKS = $CONFIG_LINKS
  13142. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13143. $ $0 $@
  13144. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13145. "
  13146. _ACEOF
  13147. case $ac_config_files in *"
  13148. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13149. esac
  13150. case $ac_config_headers in *"
  13151. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13152. esac
  13153. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13154. # Files that config.status was made for.
  13155. config_files="$ac_config_files"
  13156. config_headers="$ac_config_headers"
  13157. config_commands="$ac_config_commands"
  13158. _ACEOF
  13159. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13160. ac_cs_usage="\
  13161. \`$as_me' instantiates files and other configuration actions
  13162. from templates according to the current configuration. Unless the files
  13163. and actions are specified as TAGs, all are instantiated by default.
  13164. Usage: $0 [OPTION]... [TAG]...
  13165. -h, --help print this help, then exit
  13166. -V, --version print version number and configuration settings, then exit
  13167. --config print configuration, then exit
  13168. -q, --quiet, --silent
  13169. do not print progress messages
  13170. -d, --debug don't remove temporary files
  13171. --recheck update $as_me by reconfiguring in the same conditions
  13172. --file=FILE[:TEMPLATE]
  13173. instantiate the configuration file FILE
  13174. --header=FILE[:TEMPLATE]
  13175. instantiate the configuration header FILE
  13176. Configuration files:
  13177. $config_files
  13178. Configuration headers:
  13179. $config_headers
  13180. Configuration commands:
  13181. $config_commands
  13182. Report bugs to <christos@astron.com>."
  13183. _ACEOF
  13184. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13185. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13186. ac_cs_version="\\
  13187. file config.status 5.41
  13188. configured by $0, generated by GNU Autoconf 2.69,
  13189. with options \\"\$ac_cs_config\\"
  13190. Copyright (C) 2012 Free Software Foundation, Inc.
  13191. This config.status script is free software; the Free Software Foundation
  13192. gives unlimited permission to copy, distribute and modify it."
  13193. ac_pwd='$ac_pwd'
  13194. srcdir='$srcdir'
  13195. INSTALL='$INSTALL'
  13196. MKDIR_P='$MKDIR_P'
  13197. AWK='$AWK'
  13198. test -n "\$AWK" || AWK=awk
  13199. _ACEOF
  13200. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13201. # The default lists apply if the user does not specify any file.
  13202. ac_need_defaults=:
  13203. while test $# != 0
  13204. do
  13205. case $1 in
  13206. --*=?*)
  13207. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13208. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13209. ac_shift=:
  13210. ;;
  13211. --*=)
  13212. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13213. ac_optarg=
  13214. ac_shift=:
  13215. ;;
  13216. *)
  13217. ac_option=$1
  13218. ac_optarg=$2
  13219. ac_shift=shift
  13220. ;;
  13221. esac
  13222. case $ac_option in
  13223. # Handling of the options.
  13224. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13225. ac_cs_recheck=: ;;
  13226. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13227. $as_echo "$ac_cs_version"; exit ;;
  13228. --config | --confi | --conf | --con | --co | --c )
  13229. $as_echo "$ac_cs_config"; exit ;;
  13230. --debug | --debu | --deb | --de | --d | -d )
  13231. debug=: ;;
  13232. --file | --fil | --fi | --f )
  13233. $ac_shift
  13234. case $ac_optarg in
  13235. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13236. '') as_fn_error $? "missing file argument" ;;
  13237. esac
  13238. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13239. ac_need_defaults=false;;
  13240. --header | --heade | --head | --hea )
  13241. $ac_shift
  13242. case $ac_optarg in
  13243. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13244. esac
  13245. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13246. ac_need_defaults=false;;
  13247. --he | --h)
  13248. # Conflict between --help and --header
  13249. as_fn_error $? "ambiguous option: \`$1'
  13250. Try \`$0 --help' for more information.";;
  13251. --help | --hel | -h )
  13252. $as_echo "$ac_cs_usage"; exit ;;
  13253. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13254. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13255. ac_cs_silent=: ;;
  13256. # This is an error.
  13257. -*) as_fn_error $? "unrecognized option: \`$1'
  13258. Try \`$0 --help' for more information." ;;
  13259. *) as_fn_append ac_config_targets " $1"
  13260. ac_need_defaults=false ;;
  13261. esac
  13262. shift
  13263. done
  13264. ac_configure_extra_args=
  13265. if $ac_cs_silent; then
  13266. exec 6>/dev/null
  13267. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13268. fi
  13269. _ACEOF
  13270. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13271. if \$ac_cs_recheck; then
  13272. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13273. shift
  13274. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13275. CONFIG_SHELL='$SHELL'
  13276. export CONFIG_SHELL
  13277. exec "\$@"
  13278. fi
  13279. _ACEOF
  13280. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13281. exec 5>>config.log
  13282. {
  13283. echo
  13284. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13285. ## Running $as_me. ##
  13286. _ASBOX
  13287. $as_echo "$ac_log"
  13288. } >&5
  13289. _ACEOF
  13290. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13291. #
  13292. # INIT-COMMANDS
  13293. #
  13294. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  13295. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13296. # if CDPATH is set.
  13297. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13298. sed_quote_subst='$sed_quote_subst'
  13299. double_quote_subst='$double_quote_subst'
  13300. delay_variable_subst='$delay_variable_subst'
  13301. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13302. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13303. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13304. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13305. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13306. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13307. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  13308. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13309. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13310. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  13311. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13312. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13313. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13314. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13315. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13316. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13317. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13318. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13319. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13320. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13321. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13322. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13323. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13324. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13325. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13326. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13327. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13328. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13329. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13330. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13331. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  13332. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  13333. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13334. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13335. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13336. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13337. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13338. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  13339. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  13340. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  13341. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  13342. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13343. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13344. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  13345. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13346. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13347. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13348. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13349. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13350. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13351. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13352. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13353. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13354. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13355. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13356. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13357. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  13358. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13359. 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"`'
  13360. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  13361. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  13362. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  13363. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  13364. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13365. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13366. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13367. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13368. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13369. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13370. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13371. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13372. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  13373. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13374. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13375. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13376. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13377. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13378. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13379. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13380. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13381. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13382. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13383. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13384. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13385. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13386. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13387. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13388. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13389. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13390. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13391. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13392. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13393. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13394. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13395. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13396. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13397. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13398. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13399. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13400. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13401. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13402. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13403. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13404. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13405. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13406. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13407. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13408. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13409. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  13410. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13411. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13412. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13413. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13414. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13415. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13416. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13417. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13418. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13419. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13420. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13421. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13422. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13423. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13424. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13425. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13426. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13427. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13428. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  13429. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  13430. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13431. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13432. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13433. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13434. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13435. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13436. LTCC='$LTCC'
  13437. LTCFLAGS='$LTCFLAGS'
  13438. compiler='$compiler_DEFAULT'
  13439. # A function that is used when there is no print builtin or printf.
  13440. func_fallback_echo ()
  13441. {
  13442. eval 'cat <<_LTECHO_EOF
  13443. \$1
  13444. _LTECHO_EOF'
  13445. }
  13446. # Quote evaled strings.
  13447. for var in SHELL \
  13448. ECHO \
  13449. PATH_SEPARATOR \
  13450. SED \
  13451. GREP \
  13452. EGREP \
  13453. FGREP \
  13454. LD \
  13455. NM \
  13456. LN_S \
  13457. lt_SP2NL \
  13458. lt_NL2SP \
  13459. reload_flag \
  13460. OBJDUMP \
  13461. deplibs_check_method \
  13462. file_magic_cmd \
  13463. file_magic_glob \
  13464. want_nocaseglob \
  13465. DLLTOOL \
  13466. sharedlib_from_linklib_cmd \
  13467. AR \
  13468. AR_FLAGS \
  13469. archiver_list_spec \
  13470. STRIP \
  13471. RANLIB \
  13472. CC \
  13473. CFLAGS \
  13474. compiler \
  13475. lt_cv_sys_global_symbol_pipe \
  13476. lt_cv_sys_global_symbol_to_cdecl \
  13477. lt_cv_sys_global_symbol_to_import \
  13478. lt_cv_sys_global_symbol_to_c_name_address \
  13479. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13480. lt_cv_nm_interface \
  13481. nm_file_list_spec \
  13482. lt_cv_truncate_bin \
  13483. lt_prog_compiler_no_builtin_flag \
  13484. lt_prog_compiler_pic \
  13485. lt_prog_compiler_wl \
  13486. lt_prog_compiler_static \
  13487. lt_cv_prog_compiler_c_o \
  13488. need_locks \
  13489. MANIFEST_TOOL \
  13490. DSYMUTIL \
  13491. NMEDIT \
  13492. LIPO \
  13493. OTOOL \
  13494. OTOOL64 \
  13495. shrext_cmds \
  13496. export_dynamic_flag_spec \
  13497. whole_archive_flag_spec \
  13498. compiler_needs_object \
  13499. with_gnu_ld \
  13500. allow_undefined_flag \
  13501. no_undefined_flag \
  13502. hardcode_libdir_flag_spec \
  13503. hardcode_libdir_separator \
  13504. exclude_expsyms \
  13505. include_expsyms \
  13506. file_list_spec \
  13507. variables_saved_for_relink \
  13508. libname_spec \
  13509. library_names_spec \
  13510. soname_spec \
  13511. install_override_mode \
  13512. finish_eval \
  13513. old_striplib \
  13514. striplib; do
  13515. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13516. *[\\\\\\\`\\"\\\$]*)
  13517. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  13518. ;;
  13519. *)
  13520. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13521. ;;
  13522. esac
  13523. done
  13524. # Double-quote double-evaled strings.
  13525. for var in reload_cmds \
  13526. old_postinstall_cmds \
  13527. old_postuninstall_cmds \
  13528. old_archive_cmds \
  13529. extract_expsyms_cmds \
  13530. old_archive_from_new_cmds \
  13531. old_archive_from_expsyms_cmds \
  13532. archive_cmds \
  13533. archive_expsym_cmds \
  13534. module_cmds \
  13535. module_expsym_cmds \
  13536. export_symbols_cmds \
  13537. prelink_cmds \
  13538. postlink_cmds \
  13539. postinstall_cmds \
  13540. postuninstall_cmds \
  13541. finish_cmds \
  13542. sys_lib_search_path_spec \
  13543. configure_time_dlsearch_path \
  13544. configure_time_lt_sys_library_path; do
  13545. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13546. *[\\\\\\\`\\"\\\$]*)
  13547. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  13548. ;;
  13549. *)
  13550. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13551. ;;
  13552. esac
  13553. done
  13554. ac_aux_dir='$ac_aux_dir'
  13555. # See if we are running on zsh, and set the options that allow our
  13556. # commands through without removal of \ escapes INIT.
  13557. if test -n "\${ZSH_VERSION+set}"; then
  13558. setopt NO_GLOB_SUBST
  13559. fi
  13560. PACKAGE='$PACKAGE'
  13561. VERSION='$VERSION'
  13562. RM='$RM'
  13563. ofile='$ofile'
  13564. _ACEOF
  13565. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13566. # Handling of arguments.
  13567. for ac_config_target in $ac_config_targets
  13568. do
  13569. case $ac_config_target in
  13570. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  13571. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13572. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13573. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13574. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  13575. "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
  13576. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  13577. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  13578. "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  13579. "libmagic.pc") CONFIG_FILES="$CONFIG_FILES libmagic.pc" ;;
  13580. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13581. esac
  13582. done
  13583. # If the user did not use the arguments to specify the items to instantiate,
  13584. # then the envvar interface is used. Set only those that are not.
  13585. # We use the long form for the default assignment because of an extremely
  13586. # bizarre bug on SunOS 4.1.3.
  13587. if $ac_need_defaults; then
  13588. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13589. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13590. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13591. fi
  13592. # Have a temporary directory for convenience. Make it in the build tree
  13593. # simply because there is no reason against having it here, and in addition,
  13594. # creating and moving files from /tmp can sometimes cause problems.
  13595. # Hook for its removal unless debugging.
  13596. # Note that there is a small window in which the directory will not be cleaned:
  13597. # after its creation but before its name has been assigned to `$tmp'.
  13598. $debug ||
  13599. {
  13600. tmp= ac_tmp=
  13601. trap 'exit_status=$?
  13602. : "${ac_tmp:=$tmp}"
  13603. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  13604. ' 0
  13605. trap 'as_fn_exit 1' 1 2 13 15
  13606. }
  13607. # Create a (secure) tmp directory for tmp files.
  13608. {
  13609. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13610. test -d "$tmp"
  13611. } ||
  13612. {
  13613. tmp=./conf$$-$RANDOM
  13614. (umask 077 && mkdir "$tmp")
  13615. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  13616. ac_tmp=$tmp
  13617. # Set up the scripts for CONFIG_FILES section.
  13618. # No need to generate them if there are no CONFIG_FILES.
  13619. # This happens for instance with `./config.status config.h'.
  13620. if test -n "$CONFIG_FILES"; then
  13621. ac_cr=`echo X | tr X '\015'`
  13622. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13623. # But we know of no other shell where ac_cr would be empty at this
  13624. # point, so we can use a bashism as a fallback.
  13625. if test "x$ac_cr" = x; then
  13626. eval ac_cr=\$\'\\r\'
  13627. fi
  13628. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13629. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13630. ac_cs_awk_cr='\\r'
  13631. else
  13632. ac_cs_awk_cr=$ac_cr
  13633. fi
  13634. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  13635. _ACEOF
  13636. {
  13637. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13638. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13639. echo "_ACEOF"
  13640. } >conf$$subs.sh ||
  13641. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13642. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  13643. ac_delim='%!_!# '
  13644. for ac_last_try in false false false false false :; do
  13645. . ./conf$$subs.sh ||
  13646. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13647. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13648. if test $ac_delim_n = $ac_delim_num; then
  13649. break
  13650. elif $ac_last_try; then
  13651. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13652. else
  13653. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13654. fi
  13655. done
  13656. rm -f conf$$subs.sh
  13657. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13658. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  13659. _ACEOF
  13660. sed -n '
  13661. h
  13662. s/^/S["/; s/!.*/"]=/
  13663. p
  13664. g
  13665. s/^[^!]*!//
  13666. :repl
  13667. t repl
  13668. s/'"$ac_delim"'$//
  13669. t delim
  13670. :nl
  13671. h
  13672. s/\(.\{148\}\)..*/\1/
  13673. t more1
  13674. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13675. p
  13676. n
  13677. b repl
  13678. :more1
  13679. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13680. p
  13681. g
  13682. s/.\{148\}//
  13683. t nl
  13684. :delim
  13685. h
  13686. s/\(.\{148\}\)..*/\1/
  13687. t more2
  13688. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13689. p
  13690. b
  13691. :more2
  13692. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13693. p
  13694. g
  13695. s/.\{148\}//
  13696. t delim
  13697. ' <conf$$subs.awk | sed '
  13698. /^[^""]/{
  13699. N
  13700. s/\n//
  13701. }
  13702. ' >>$CONFIG_STATUS || ac_write_fail=1
  13703. rm -f conf$$subs.awk
  13704. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13705. _ACAWK
  13706. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  13707. for (key in S) S_is_set[key] = 1
  13708. FS = ""
  13709. }
  13710. {
  13711. line = $ 0
  13712. nfields = split(line, field, "@")
  13713. substed = 0
  13714. len = length(field[1])
  13715. for (i = 2; i < nfields; i++) {
  13716. key = field[i]
  13717. keylen = length(key)
  13718. if (S_is_set[key]) {
  13719. value = S[key]
  13720. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13721. len += length(value) + length(field[++i])
  13722. substed = 1
  13723. } else
  13724. len += 1 + keylen
  13725. }
  13726. print line
  13727. }
  13728. _ACAWK
  13729. _ACEOF
  13730. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13731. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13732. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13733. else
  13734. cat
  13735. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  13736. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  13737. _ACEOF
  13738. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  13739. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  13740. # trailing colons and then remove the whole line if VPATH becomes empty
  13741. # (actually we leave an empty line to preserve line numbers).
  13742. if test "x$srcdir" = x.; then
  13743. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  13744. h
  13745. s///
  13746. s/^/:/
  13747. s/[ ]*$/:/
  13748. s/:\$(srcdir):/:/g
  13749. s/:\${srcdir}:/:/g
  13750. s/:@srcdir@:/:/g
  13751. s/^:*//
  13752. s/:*$//
  13753. x
  13754. s/\(=[ ]*\).*/\1/
  13755. G
  13756. s/\n//
  13757. s/^[^=]*=[ ]*$//
  13758. }'
  13759. fi
  13760. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13761. fi # test -n "$CONFIG_FILES"
  13762. # Set up the scripts for CONFIG_HEADERS section.
  13763. # No need to generate them if there are no CONFIG_HEADERS.
  13764. # This happens for instance with `./config.status Makefile'.
  13765. if test -n "$CONFIG_HEADERS"; then
  13766. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  13767. BEGIN {
  13768. _ACEOF
  13769. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13770. # here-document in config.status, that substitutes the proper values into
  13771. # config.h.in to produce config.h.
  13772. # Create a delimiter string that does not exist in confdefs.h, to ease
  13773. # handling of long lines.
  13774. ac_delim='%!_!# '
  13775. for ac_last_try in false false :; do
  13776. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  13777. if test -z "$ac_tt"; then
  13778. break
  13779. elif $ac_last_try; then
  13780. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  13781. else
  13782. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13783. fi
  13784. done
  13785. # For the awk script, D is an array of macro values keyed by name,
  13786. # likewise P contains macro parameters if any. Preserve backslash
  13787. # newline sequences.
  13788. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13789. sed -n '
  13790. s/.\{148\}/&'"$ac_delim"'/g
  13791. t rset
  13792. :rset
  13793. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13794. t def
  13795. d
  13796. :def
  13797. s/\\$//
  13798. t bsnl
  13799. s/["\\]/\\&/g
  13800. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13801. D["\1"]=" \3"/p
  13802. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13803. d
  13804. :bsnl
  13805. s/["\\]/\\&/g
  13806. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13807. D["\1"]=" \3\\\\\\n"\\/p
  13808. t cont
  13809. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13810. t cont
  13811. d
  13812. :cont
  13813. n
  13814. s/.\{148\}/&'"$ac_delim"'/g
  13815. t clear
  13816. :clear
  13817. s/\\$//
  13818. t bsnlc
  13819. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13820. d
  13821. :bsnlc
  13822. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13823. b cont
  13824. ' <confdefs.h | sed '
  13825. s/'"$ac_delim"'/"\\\
  13826. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13827. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13828. for (key in D) D_is_set[key] = 1
  13829. FS = ""
  13830. }
  13831. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13832. line = \$ 0
  13833. split(line, arg, " ")
  13834. if (arg[1] == "#") {
  13835. defundef = arg[2]
  13836. mac1 = arg[3]
  13837. } else {
  13838. defundef = substr(arg[1], 2)
  13839. mac1 = arg[2]
  13840. }
  13841. split(mac1, mac2, "(") #)
  13842. macro = mac2[1]
  13843. prefix = substr(line, 1, index(line, defundef) - 1)
  13844. if (D_is_set[macro]) {
  13845. # Preserve the white space surrounding the "#".
  13846. print prefix "define", macro P[macro] D[macro]
  13847. next
  13848. } else {
  13849. # Replace #undef with comments. This is necessary, for example,
  13850. # in the case of _POSIX_SOURCE, which is predefined and required
  13851. # on some systems where configure will not decide to define it.
  13852. if (defundef == "undef") {
  13853. print "/*", prefix defundef, macro, "*/"
  13854. next
  13855. }
  13856. }
  13857. }
  13858. { print }
  13859. _ACAWK
  13860. _ACEOF
  13861. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13862. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  13863. fi # test -n "$CONFIG_HEADERS"
  13864. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13865. shift
  13866. for ac_tag
  13867. do
  13868. case $ac_tag in
  13869. :[FHLC]) ac_mode=$ac_tag; continue;;
  13870. esac
  13871. case $ac_mode$ac_tag in
  13872. :[FHL]*:*);;
  13873. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13874. :[FH]-) ac_tag=-:-;;
  13875. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13876. esac
  13877. ac_save_IFS=$IFS
  13878. IFS=:
  13879. set x $ac_tag
  13880. IFS=$ac_save_IFS
  13881. shift
  13882. ac_file=$1
  13883. shift
  13884. case $ac_mode in
  13885. :L) ac_source=$1;;
  13886. :[FH])
  13887. ac_file_inputs=
  13888. for ac_f
  13889. do
  13890. case $ac_f in
  13891. -) ac_f="$ac_tmp/stdin";;
  13892. *) # Look for the file first in the build tree, then in the source tree
  13893. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13894. # because $ac_f cannot contain `:'.
  13895. test -f "$ac_f" ||
  13896. case $ac_f in
  13897. [\\/$]*) false;;
  13898. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13899. esac ||
  13900. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13901. esac
  13902. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13903. as_fn_append ac_file_inputs " '$ac_f'"
  13904. done
  13905. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13906. # use $as_me), people would be surprised to read:
  13907. # /* config.h. Generated by config.status. */
  13908. configure_input='Generated from '`
  13909. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13910. `' by configure.'
  13911. if test x"$ac_file" != x-; then
  13912. configure_input="$ac_file. $configure_input"
  13913. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13914. $as_echo "$as_me: creating $ac_file" >&6;}
  13915. fi
  13916. # Neutralize special characters interpreted by sed in replacement strings.
  13917. case $configure_input in #(
  13918. *\&* | *\|* | *\\* )
  13919. ac_sed_conf_input=`$as_echo "$configure_input" |
  13920. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13921. *) ac_sed_conf_input=$configure_input;;
  13922. esac
  13923. case $ac_tag in
  13924. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  13925. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  13926. esac
  13927. ;;
  13928. esac
  13929. ac_dir=`$as_dirname -- "$ac_file" ||
  13930. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13931. X"$ac_file" : 'X\(//\)[^/]' \| \
  13932. X"$ac_file" : 'X\(//\)$' \| \
  13933. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13934. $as_echo X"$ac_file" |
  13935. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13936. s//\1/
  13937. q
  13938. }
  13939. /^X\(\/\/\)[^/].*/{
  13940. s//\1/
  13941. q
  13942. }
  13943. /^X\(\/\/\)$/{
  13944. s//\1/
  13945. q
  13946. }
  13947. /^X\(\/\).*/{
  13948. s//\1/
  13949. q
  13950. }
  13951. s/.*/./; q'`
  13952. as_dir="$ac_dir"; as_fn_mkdir_p
  13953. ac_builddir=.
  13954. case "$ac_dir" in
  13955. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13956. *)
  13957. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13958. # A ".." for each directory in $ac_dir_suffix.
  13959. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13960. case $ac_top_builddir_sub in
  13961. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13962. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13963. esac ;;
  13964. esac
  13965. ac_abs_top_builddir=$ac_pwd
  13966. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13967. # for backward compatibility:
  13968. ac_top_builddir=$ac_top_build_prefix
  13969. case $srcdir in
  13970. .) # We are building in place.
  13971. ac_srcdir=.
  13972. ac_top_srcdir=$ac_top_builddir_sub
  13973. ac_abs_top_srcdir=$ac_pwd ;;
  13974. [\\/]* | ?:[\\/]* ) # Absolute name.
  13975. ac_srcdir=$srcdir$ac_dir_suffix;
  13976. ac_top_srcdir=$srcdir
  13977. ac_abs_top_srcdir=$srcdir ;;
  13978. *) # Relative name.
  13979. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13980. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13981. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13982. esac
  13983. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13984. case $ac_mode in
  13985. :F)
  13986. #
  13987. # CONFIG_FILE
  13988. #
  13989. case $INSTALL in
  13990. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13991. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13992. esac
  13993. ac_MKDIR_P=$MKDIR_P
  13994. case $MKDIR_P in
  13995. [\\/$]* | ?:[\\/]* ) ;;
  13996. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13997. esac
  13998. _ACEOF
  13999. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14000. # If the template does not know about datarootdir, expand it.
  14001. # FIXME: This hack should be removed a few years after 2.60.
  14002. ac_datarootdir_hack=; ac_datarootdir_seen=
  14003. ac_sed_dataroot='
  14004. /datarootdir/ {
  14005. p
  14006. q
  14007. }
  14008. /@datadir@/p
  14009. /@docdir@/p
  14010. /@infodir@/p
  14011. /@localedir@/p
  14012. /@mandir@/p'
  14013. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14014. *datarootdir*) ac_datarootdir_seen=yes;;
  14015. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14016. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14017. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14018. _ACEOF
  14019. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14020. ac_datarootdir_hack='
  14021. s&@datadir@&$datadir&g
  14022. s&@docdir@&$docdir&g
  14023. s&@infodir@&$infodir&g
  14024. s&@localedir@&$localedir&g
  14025. s&@mandir@&$mandir&g
  14026. s&\\\${datarootdir}&$datarootdir&g' ;;
  14027. esac
  14028. _ACEOF
  14029. # Neutralize VPATH when `$srcdir' = `.'.
  14030. # Shell code in configure.ac might set extrasub.
  14031. # FIXME: do we really want to maintain this feature?
  14032. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14033. ac_sed_extra="$ac_vpsub
  14034. $extrasub
  14035. _ACEOF
  14036. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14037. :t
  14038. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14039. s|@configure_input@|$ac_sed_conf_input|;t t
  14040. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14041. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14042. s&@srcdir@&$ac_srcdir&;t t
  14043. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14044. s&@top_srcdir@&$ac_top_srcdir&;t t
  14045. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14046. s&@builddir@&$ac_builddir&;t t
  14047. s&@abs_builddir@&$ac_abs_builddir&;t t
  14048. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14049. s&@INSTALL@&$ac_INSTALL&;t t
  14050. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14051. $ac_datarootdir_hack
  14052. "
  14053. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  14054. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14055. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14056. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  14057. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  14058. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  14059. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14060. which seems to be undefined. Please make sure it is defined" >&5
  14061. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14062. which seems to be undefined. Please make sure it is defined" >&2;}
  14063. rm -f "$ac_tmp/stdin"
  14064. case $ac_file in
  14065. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  14066. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  14067. esac \
  14068. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14069. ;;
  14070. :H)
  14071. #
  14072. # CONFIG_HEADER
  14073. #
  14074. if test x"$ac_file" != x-; then
  14075. {
  14076. $as_echo "/* $configure_input */" \
  14077. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  14078. } >"$ac_tmp/config.h" \
  14079. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14080. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  14081. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14082. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14083. else
  14084. rm -f "$ac_file"
  14085. mv "$ac_tmp/config.h" "$ac_file" \
  14086. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14087. fi
  14088. else
  14089. $as_echo "/* $configure_input */" \
  14090. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  14091. || as_fn_error $? "could not create -" "$LINENO" 5
  14092. fi
  14093. # Compute "$ac_file"'s index in $config_headers.
  14094. _am_arg="$ac_file"
  14095. _am_stamp_count=1
  14096. for _am_header in $config_headers :; do
  14097. case $_am_header in
  14098. $_am_arg | $_am_arg:* )
  14099. break ;;
  14100. * )
  14101. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14102. esac
  14103. done
  14104. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14105. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14106. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14107. X"$_am_arg" : 'X\(//\)$' \| \
  14108. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14109. $as_echo X"$_am_arg" |
  14110. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14111. s//\1/
  14112. q
  14113. }
  14114. /^X\(\/\/\)[^/].*/{
  14115. s//\1/
  14116. q
  14117. }
  14118. /^X\(\/\/\)$/{
  14119. s//\1/
  14120. q
  14121. }
  14122. /^X\(\/\).*/{
  14123. s//\1/
  14124. q
  14125. }
  14126. s/.*/./; q'`/stamp-h$_am_stamp_count
  14127. ;;
  14128. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14129. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14130. ;;
  14131. esac
  14132. case $ac_file$ac_mode in
  14133. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14134. # Older Autoconf quotes --file arguments for eval, but not when files
  14135. # are listed without --file. Let's play safe and only enable the eval
  14136. # if we detect the quoting.
  14137. # TODO: see whether this extra hack can be removed once we start
  14138. # requiring Autoconf 2.70 or later.
  14139. case $CONFIG_FILES in #(
  14140. *\'*) :
  14141. eval set x "$CONFIG_FILES" ;; #(
  14142. *) :
  14143. set x $CONFIG_FILES ;; #(
  14144. *) :
  14145. ;;
  14146. esac
  14147. shift
  14148. # Used to flag and report bootstrapping failures.
  14149. am_rc=0
  14150. for am_mf
  14151. do
  14152. # Strip MF so we end up with the name of the file.
  14153. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  14154. # Check whether this is an Automake generated Makefile which includes
  14155. # dependency-tracking related rules and includes.
  14156. # Grep'ing the whole file directly is not great: AIX grep has a line
  14157. # limit of 2048, but all sed's we know have understand at least 4000.
  14158. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  14159. || continue
  14160. am_dirpart=`$as_dirname -- "$am_mf" ||
  14161. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14162. X"$am_mf" : 'X\(//\)[^/]' \| \
  14163. X"$am_mf" : 'X\(//\)$' \| \
  14164. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  14165. $as_echo X"$am_mf" |
  14166. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14167. s//\1/
  14168. q
  14169. }
  14170. /^X\(\/\/\)[^/].*/{
  14171. s//\1/
  14172. q
  14173. }
  14174. /^X\(\/\/\)$/{
  14175. s//\1/
  14176. q
  14177. }
  14178. /^X\(\/\).*/{
  14179. s//\1/
  14180. q
  14181. }
  14182. s/.*/./; q'`
  14183. am_filepart=`$as_basename -- "$am_mf" ||
  14184. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  14185. X"$am_mf" : 'X\(//\)$' \| \
  14186. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  14187. $as_echo X/"$am_mf" |
  14188. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14189. s//\1/
  14190. q
  14191. }
  14192. /^X\/\(\/\/\)$/{
  14193. s//\1/
  14194. q
  14195. }
  14196. /^X\/\(\/\).*/{
  14197. s//\1/
  14198. q
  14199. }
  14200. s/.*/./; q'`
  14201. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  14202. && sed -e '/# am--include-marker/d' "$am_filepart" \
  14203. | $MAKE -f - am--depfiles" >&5
  14204. (cd "$am_dirpart" \
  14205. && sed -e '/# am--include-marker/d' "$am_filepart" \
  14206. | $MAKE -f - am--depfiles) >&5 2>&5
  14207. ac_status=$?
  14208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14209. (exit $ac_status); } || am_rc=$?
  14210. done
  14211. if test $am_rc -ne 0; then
  14212. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14213. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14214. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  14215. for automatic dependency tracking. Try re-running configure with the
  14216. '--disable-dependency-tracking' option to at least be able to build
  14217. the package (albeit without support for automatic dependency tracking).
  14218. See \`config.log' for more details" "$LINENO" 5; }
  14219. fi
  14220. { am_dirpart=; unset am_dirpart;}
  14221. { am_filepart=; unset am_filepart;}
  14222. { am_mf=; unset am_mf;}
  14223. { am_rc=; unset am_rc;}
  14224. rm -f conftest-deps.mk
  14225. }
  14226. ;;
  14227. "libtool":C)
  14228. # See if we are running on zsh, and set the options that allow our
  14229. # commands through without removal of \ escapes.
  14230. if test -n "${ZSH_VERSION+set}"; then
  14231. setopt NO_GLOB_SUBST
  14232. fi
  14233. cfgfile=${ofile}T
  14234. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14235. $RM "$cfgfile"
  14236. cat <<_LT_EOF >> "$cfgfile"
  14237. #! $SHELL
  14238. # Generated automatically by $as_me ($PACKAGE) $VERSION
  14239. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14240. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14241. # Provide generalized library-building support services.
  14242. # Written by Gordon Matzigkeit, 1996
  14243. # Copyright (C) 2014 Free Software Foundation, Inc.
  14244. # This is free software; see the source for copying conditions. There is NO
  14245. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14246. # GNU Libtool is free software; you can redistribute it and/or modify
  14247. # it under the terms of the GNU General Public License as published by
  14248. # the Free Software Foundation; either version 2 of of the License, or
  14249. # (at your option) any later version.
  14250. #
  14251. # As a special exception to the GNU General Public License, if you
  14252. # distribute this file as part of a program or library that is built
  14253. # using GNU Libtool, you may include this file under the same
  14254. # distribution terms that you use for the rest of that program.
  14255. #
  14256. # GNU Libtool is distributed in the hope that it will be useful, but
  14257. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14258. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14259. # GNU General Public License for more details.
  14260. #
  14261. # You should have received a copy of the GNU General Public License
  14262. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  14263. # The names of the tagged configurations supported by this script.
  14264. available_tags=''
  14265. # Configured defaults for sys_lib_dlsearch_path munging.
  14266. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  14267. # ### BEGIN LIBTOOL CONFIG
  14268. # Which release of libtool.m4 was used?
  14269. macro_version=$macro_version
  14270. macro_revision=$macro_revision
  14271. # Whether or not to build static libraries.
  14272. build_old_libs=$enable_static
  14273. # What type of objects to build.
  14274. pic_mode=$pic_mode
  14275. # Whether or not to build shared libraries.
  14276. build_libtool_libs=$enable_shared
  14277. # Whether or not to optimize for fast installation.
  14278. fast_install=$enable_fast_install
  14279. # Shared archive member basename,for filename based shared library versioning on AIX.
  14280. shared_archive_member_spec=$shared_archive_member_spec
  14281. # Shell to use when invoking shell scripts.
  14282. SHELL=$lt_SHELL
  14283. # An echo program that protects backslashes.
  14284. ECHO=$lt_ECHO
  14285. # The PATH separator for the build system.
  14286. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  14287. # The host system.
  14288. host_alias=$host_alias
  14289. host=$host
  14290. host_os=$host_os
  14291. # The build system.
  14292. build_alias=$build_alias
  14293. build=$build
  14294. build_os=$build_os
  14295. # A sed program that does not truncate output.
  14296. SED=$lt_SED
  14297. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14298. Xsed="\$SED -e 1s/^X//"
  14299. # A grep program that handles long lines.
  14300. GREP=$lt_GREP
  14301. # An ERE matcher.
  14302. EGREP=$lt_EGREP
  14303. # A literal string matcher.
  14304. FGREP=$lt_FGREP
  14305. # A BSD- or MS-compatible name lister.
  14306. NM=$lt_NM
  14307. # Whether we need soft or hard links.
  14308. LN_S=$lt_LN_S
  14309. # What is the maximum length of a command?
  14310. max_cmd_len=$max_cmd_len
  14311. # Object file suffix (normally "o").
  14312. objext=$ac_objext
  14313. # Executable file suffix (normally "").
  14314. exeext=$exeext
  14315. # whether the shell understands "unset".
  14316. lt_unset=$lt_unset
  14317. # turn spaces into newlines.
  14318. SP2NL=$lt_lt_SP2NL
  14319. # turn newlines into spaces.
  14320. NL2SP=$lt_lt_NL2SP
  14321. # convert \$build file names to \$host format.
  14322. to_host_file_cmd=$lt_cv_to_host_file_cmd
  14323. # convert \$build files to toolchain format.
  14324. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  14325. # An object symbol dumper.
  14326. OBJDUMP=$lt_OBJDUMP
  14327. # Method to check whether dependent libraries are shared objects.
  14328. deplibs_check_method=$lt_deplibs_check_method
  14329. # Command to use when deplibs_check_method = "file_magic".
  14330. file_magic_cmd=$lt_file_magic_cmd
  14331. # How to find potential files when deplibs_check_method = "file_magic".
  14332. file_magic_glob=$lt_file_magic_glob
  14333. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  14334. want_nocaseglob=$lt_want_nocaseglob
  14335. # DLL creation program.
  14336. DLLTOOL=$lt_DLLTOOL
  14337. # Command to associate shared and link libraries.
  14338. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  14339. # The archiver.
  14340. AR=$lt_AR
  14341. # Flags to create an archive.
  14342. AR_FLAGS=$lt_AR_FLAGS
  14343. # How to feed a file listing to the archiver.
  14344. archiver_list_spec=$lt_archiver_list_spec
  14345. # A symbol stripping program.
  14346. STRIP=$lt_STRIP
  14347. # Commands used to install an old-style archive.
  14348. RANLIB=$lt_RANLIB
  14349. old_postinstall_cmds=$lt_old_postinstall_cmds
  14350. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14351. # Whether to use a lock for old archive extraction.
  14352. lock_old_archive_extraction=$lock_old_archive_extraction
  14353. # A C compiler.
  14354. LTCC=$lt_CC
  14355. # LTCC compiler flags.
  14356. LTCFLAGS=$lt_CFLAGS
  14357. # Take the output of nm and produce a listing of raw symbols and C names.
  14358. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14359. # Transform the output of nm in a proper C declaration.
  14360. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14361. # Transform the output of nm into a list of symbols to manually relocate.
  14362. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  14363. # Transform the output of nm in a C name address pair.
  14364. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14365. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14366. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14367. # The name lister interface.
  14368. nm_interface=$lt_lt_cv_nm_interface
  14369. # Specify filename containing input files for \$NM.
  14370. nm_file_list_spec=$lt_nm_file_list_spec
  14371. # The root where to search for dependent libraries,and where our libraries should be installed.
  14372. lt_sysroot=$lt_sysroot
  14373. # Command to truncate a binary pipe.
  14374. lt_truncate_bin=$lt_lt_cv_truncate_bin
  14375. # The name of the directory that contains temporary libtool files.
  14376. objdir=$objdir
  14377. # Used to examine libraries when file_magic_cmd begins with "file".
  14378. MAGIC_CMD=$MAGIC_CMD
  14379. # Must we lock files when doing compilation?
  14380. need_locks=$lt_need_locks
  14381. # Manifest tool.
  14382. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  14383. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14384. DSYMUTIL=$lt_DSYMUTIL
  14385. # Tool to change global to local symbols on Mac OS X.
  14386. NMEDIT=$lt_NMEDIT
  14387. # Tool to manipulate fat objects and archives on Mac OS X.
  14388. LIPO=$lt_LIPO
  14389. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14390. OTOOL=$lt_OTOOL
  14391. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14392. OTOOL64=$lt_OTOOL64
  14393. # Old archive suffix (normally "a").
  14394. libext=$libext
  14395. # Shared library suffix (normally ".so").
  14396. shrext_cmds=$lt_shrext_cmds
  14397. # The commands to extract the exported symbol list from a shared archive.
  14398. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14399. # Variables whose values should be saved in libtool wrapper scripts and
  14400. # restored at link time.
  14401. variables_saved_for_relink=$lt_variables_saved_for_relink
  14402. # Do we need the "lib" prefix for modules?
  14403. need_lib_prefix=$need_lib_prefix
  14404. # Do we need a version for libraries?
  14405. need_version=$need_version
  14406. # Library versioning type.
  14407. version_type=$version_type
  14408. # Shared library runtime path variable.
  14409. runpath_var=$runpath_var
  14410. # Shared library path variable.
  14411. shlibpath_var=$shlibpath_var
  14412. # Is shlibpath searched before the hard-coded library search path?
  14413. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14414. # Format of library name prefix.
  14415. libname_spec=$lt_libname_spec
  14416. # List of archive names. First name is the real one, the rest are links.
  14417. # The last name is the one that the linker finds with -lNAME
  14418. library_names_spec=$lt_library_names_spec
  14419. # The coded name of the library, if different from the real name.
  14420. soname_spec=$lt_soname_spec
  14421. # Permission mode override for installation of shared libraries.
  14422. install_override_mode=$lt_install_override_mode
  14423. # Command to use after installation of a shared archive.
  14424. postinstall_cmds=$lt_postinstall_cmds
  14425. # Command to use after uninstallation of a shared archive.
  14426. postuninstall_cmds=$lt_postuninstall_cmds
  14427. # Commands used to finish a libtool library installation in a directory.
  14428. finish_cmds=$lt_finish_cmds
  14429. # As "finish_cmds", except a single script fragment to be evaled but
  14430. # not shown.
  14431. finish_eval=$lt_finish_eval
  14432. # Whether we should hardcode library paths into libraries.
  14433. hardcode_into_libs=$hardcode_into_libs
  14434. # Compile-time system search path for libraries.
  14435. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14436. # Detected run-time system search path for libraries.
  14437. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  14438. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  14439. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  14440. # Whether dlopen is supported.
  14441. dlopen_support=$enable_dlopen
  14442. # Whether dlopen of programs is supported.
  14443. dlopen_self=$enable_dlopen_self
  14444. # Whether dlopen of statically linked programs is supported.
  14445. dlopen_self_static=$enable_dlopen_self_static
  14446. # Commands to strip libraries.
  14447. old_striplib=$lt_old_striplib
  14448. striplib=$lt_striplib
  14449. # The linker used to build libraries.
  14450. LD=$lt_LD
  14451. # How to create reloadable object files.
  14452. reload_flag=$lt_reload_flag
  14453. reload_cmds=$lt_reload_cmds
  14454. # Commands used to build an old-style archive.
  14455. old_archive_cmds=$lt_old_archive_cmds
  14456. # A language specific compiler.
  14457. CC=$lt_compiler
  14458. # Is the compiler the GNU compiler?
  14459. with_gcc=$GCC
  14460. # Compiler flag to turn off builtin functions.
  14461. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14462. # Additional compiler flags for building library objects.
  14463. pic_flag=$lt_lt_prog_compiler_pic
  14464. # How to pass a linker flag through the compiler.
  14465. wl=$lt_lt_prog_compiler_wl
  14466. # Compiler flag to prevent dynamic linking.
  14467. link_static_flag=$lt_lt_prog_compiler_static
  14468. # Does compiler simultaneously support -c and -o options?
  14469. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14470. # Whether or not to add -lc for building shared libraries.
  14471. build_libtool_need_lc=$archive_cmds_need_lc
  14472. # Whether or not to disallow shared libs when runtime libs are static.
  14473. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14474. # Compiler flag to allow reflexive dlopens.
  14475. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14476. # Compiler flag to generate shared objects directly from archives.
  14477. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14478. # Whether the compiler copes with passing no objects directly.
  14479. compiler_needs_object=$lt_compiler_needs_object
  14480. # Create an old-style archive from a shared archive.
  14481. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14482. # Create a temporary old-style archive to link instead of a shared archive.
  14483. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14484. # Commands used to build a shared archive.
  14485. archive_cmds=$lt_archive_cmds
  14486. archive_expsym_cmds=$lt_archive_expsym_cmds
  14487. # Commands used to build a loadable module if different from building
  14488. # a shared archive.
  14489. module_cmds=$lt_module_cmds
  14490. module_expsym_cmds=$lt_module_expsym_cmds
  14491. # Whether we are building with GNU ld or not.
  14492. with_gnu_ld=$lt_with_gnu_ld
  14493. # Flag that allows shared libraries with undefined symbols to be built.
  14494. allow_undefined_flag=$lt_allow_undefined_flag
  14495. # Flag that enforces no undefined symbols.
  14496. no_undefined_flag=$lt_no_undefined_flag
  14497. # Flag to hardcode \$libdir into a binary during linking.
  14498. # This must work even if \$libdir does not exist
  14499. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14500. # Whether we need a single "-rpath" flag with a separated argument.
  14501. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14502. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  14503. # DIR into the resulting binary.
  14504. hardcode_direct=$hardcode_direct
  14505. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  14506. # DIR into the resulting binary and the resulting library dependency is
  14507. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  14508. # library is relocated.
  14509. hardcode_direct_absolute=$hardcode_direct_absolute
  14510. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14511. # into the resulting binary.
  14512. hardcode_minus_L=$hardcode_minus_L
  14513. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14514. # into the resulting binary.
  14515. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14516. # Set to "yes" if building a shared library automatically hardcodes DIR
  14517. # into the library and all subsequent libraries and executables linked
  14518. # against it.
  14519. hardcode_automatic=$hardcode_automatic
  14520. # Set to yes if linker adds runtime paths of dependent libraries
  14521. # to runtime path list.
  14522. inherit_rpath=$inherit_rpath
  14523. # Whether libtool must link a program against all its dependency libraries.
  14524. link_all_deplibs=$link_all_deplibs
  14525. # Set to "yes" if exported symbols are required.
  14526. always_export_symbols=$always_export_symbols
  14527. # The commands to list exported symbols.
  14528. export_symbols_cmds=$lt_export_symbols_cmds
  14529. # Symbols that should not be listed in the preloaded symbols.
  14530. exclude_expsyms=$lt_exclude_expsyms
  14531. # Symbols that must always be exported.
  14532. include_expsyms=$lt_include_expsyms
  14533. # Commands necessary for linking programs (against libraries) with templates.
  14534. prelink_cmds=$lt_prelink_cmds
  14535. # Commands necessary for finishing linking programs.
  14536. postlink_cmds=$lt_postlink_cmds
  14537. # Specify filename containing input files.
  14538. file_list_spec=$lt_file_list_spec
  14539. # How to hardcode a shared library path into an executable.
  14540. hardcode_action=$hardcode_action
  14541. # ### END LIBTOOL CONFIG
  14542. _LT_EOF
  14543. cat <<'_LT_EOF' >> "$cfgfile"
  14544. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  14545. # func_munge_path_list VARIABLE PATH
  14546. # -----------------------------------
  14547. # VARIABLE is name of variable containing _space_ separated list of
  14548. # directories to be munged by the contents of PATH, which is string
  14549. # having a format:
  14550. # "DIR[:DIR]:"
  14551. # string "DIR[ DIR]" will be prepended to VARIABLE
  14552. # ":DIR[:DIR]"
  14553. # string "DIR[ DIR]" will be appended to VARIABLE
  14554. # "DIRP[:DIRP]::[DIRA:]DIRA"
  14555. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  14556. # "DIRA[ DIRA]" will be appended to VARIABLE
  14557. # "DIR[:DIR]"
  14558. # VARIABLE will be replaced by "DIR[ DIR]"
  14559. func_munge_path_list ()
  14560. {
  14561. case x$2 in
  14562. x)
  14563. ;;
  14564. *:)
  14565. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  14566. ;;
  14567. x:*)
  14568. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  14569. ;;
  14570. *::*)
  14571. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  14572. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  14573. ;;
  14574. *)
  14575. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  14576. ;;
  14577. esac
  14578. }
  14579. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  14580. func_cc_basename ()
  14581. {
  14582. for cc_temp in $*""; do
  14583. case $cc_temp in
  14584. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14585. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14586. \-*) ;;
  14587. *) break;;
  14588. esac
  14589. done
  14590. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  14591. }
  14592. # ### END FUNCTIONS SHARED WITH CONFIGURE
  14593. _LT_EOF
  14594. case $host_os in
  14595. aix3*)
  14596. cat <<\_LT_EOF >> "$cfgfile"
  14597. # AIX sometimes has problems with the GCC collect2 program. For some
  14598. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14599. # vanish in a puff of smoke.
  14600. if test set != "${COLLECT_NAMES+set}"; then
  14601. COLLECT_NAMES=
  14602. export COLLECT_NAMES
  14603. fi
  14604. _LT_EOF
  14605. ;;
  14606. esac
  14607. ltmain=$ac_aux_dir/ltmain.sh
  14608. # We use sed instead of cat because bash on DJGPP gets confused if
  14609. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14610. # text mode, it properly converts lines to CR/LF. This bash problem
  14611. # is reportedly fixed, but why not run on old versions too?
  14612. sed '$q' "$ltmain" >> "$cfgfile" \
  14613. || (rm -f "$cfgfile"; exit 1)
  14614. mv -f "$cfgfile" "$ofile" ||
  14615. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14616. chmod +x "$ofile"
  14617. ;;
  14618. esac
  14619. done # for ac_tag
  14620. as_fn_exit 0
  14621. _ACEOF
  14622. ac_clean_files=$ac_clean_files_save
  14623. test $ac_write_fail = 0 ||
  14624. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14625. # configure is writing to config.log, and then calls config.status.
  14626. # config.status does its own redirection, appending to config.log.
  14627. # Unfortunately, on DOS this fails, as config.log is still kept open
  14628. # by configure, so config.status won't be able to write to it; its
  14629. # output is simply discarded. So we exec the FD to /dev/null,
  14630. # effectively closing config.log, so it can be properly (re)opened and
  14631. # appended to by config.status. When coming back to configure, we
  14632. # need to make the FD available again.
  14633. if test "$no_create" != yes; then
  14634. ac_cs_success=:
  14635. ac_config_status_args=
  14636. test "$silent" = yes &&
  14637. ac_config_status_args="$ac_config_status_args --quiet"
  14638. exec 5>/dev/null
  14639. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14640. exec 5>>config.log
  14641. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14642. # would make configure fail if this is the last instruction.
  14643. $ac_cs_success || as_fn_exit 1
  14644. fi
  14645. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14646. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14647. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14648. fi