configure 479 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for file 5.33.
  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.33'
  544. PACKAGE_STRING='file 5.33'
  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. OTOOL64
  590. OTOOL
  591. LIPO
  592. NMEDIT
  593. DSYMUTIL
  594. MANIFEST_TOOL
  595. RANLIB
  596. ac_ct_AR
  597. AR
  598. DLLTOOL
  599. OBJDUMP
  600. NM
  601. ac_ct_DUMPBIN
  602. DUMPBIN
  603. LD
  604. FGREP
  605. SED
  606. LIBTOOL
  607. LN_S
  608. EGREP
  609. GREP
  610. CPP
  611. am__fastdepCC_FALSE
  612. am__fastdepCC_TRUE
  613. CCDEPMODE
  614. am__nodep
  615. AMDEPBACKSLASH
  616. AMDEP_FALSE
  617. AMDEP_TRUE
  618. am__quote
  619. am__include
  620. DEPDIR
  621. OBJEXT
  622. EXEEXT
  623. ac_ct_CC
  624. CPPFLAGS
  625. LDFLAGS
  626. CFLAGS
  627. CC
  628. WARNINGS
  629. FSECT5_FALSE
  630. FSECT5_TRUE
  631. fsect
  632. pkgdatadir
  633. MINGW_FALSE
  634. MINGW_TRUE
  635. MINGW
  636. host_os
  637. host_vendor
  638. host_cpu
  639. host
  640. build_os
  641. build_vendor
  642. build_cpu
  643. build
  644. AM_BACKSLASH
  645. AM_DEFAULT_VERBOSITY
  646. AM_DEFAULT_V
  647. AM_V
  648. am__untar
  649. am__tar
  650. AMTAR
  651. am__leading_dot
  652. SET_MAKE
  653. AWK
  654. mkdir_p
  655. MKDIR_P
  656. INSTALL_STRIP_PROGRAM
  657. STRIP
  658. install_sh
  659. MAKEINFO
  660. AUTOHEADER
  661. AUTOMAKE
  662. AUTOCONF
  663. ACLOCAL
  664. VERSION
  665. PACKAGE
  666. CYGPATH_W
  667. am__isrc
  668. INSTALL_DATA
  669. INSTALL_SCRIPT
  670. INSTALL_PROGRAM
  671. target_alias
  672. host_alias
  673. build_alias
  674. LIBS
  675. ECHO_T
  676. ECHO_N
  677. ECHO_C
  678. DEFS
  679. mandir
  680. localedir
  681. libdir
  682. psdir
  683. pdfdir
  684. dvidir
  685. htmldir
  686. infodir
  687. docdir
  688. oldincludedir
  689. includedir
  690. localstatedir
  691. sharedstatedir
  692. sysconfdir
  693. datadir
  694. datarootdir
  695. libexecdir
  696. sbindir
  697. bindir
  698. program_transform_name
  699. prefix
  700. exec_prefix
  701. PACKAGE_URL
  702. PACKAGE_BUGREPORT
  703. PACKAGE_STRING
  704. PACKAGE_VERSION
  705. PACKAGE_TARNAME
  706. PACKAGE_NAME
  707. PATH_SEPARATOR
  708. SHELL'
  709. ac_subst_files=''
  710. ac_user_opts='
  711. enable_option_checking
  712. enable_silent_rules
  713. enable_elf
  714. enable_elf_core
  715. enable_zlib
  716. enable_libseccomp
  717. enable_fsect_man5
  718. enable_dependency_tracking
  719. enable_static
  720. with_pic
  721. enable_shared
  722. enable_fast_install
  723. with_gnu_ld
  724. with_sysroot
  725. enable_libtool_lock
  726. enable_largefile
  727. enable_warnings
  728. '
  729. ac_precious_vars='build_alias
  730. host_alias
  731. target_alias
  732. CC
  733. CFLAGS
  734. LDFLAGS
  735. LIBS
  736. CPPFLAGS
  737. CPP'
  738. # Initialize some variables set by options.
  739. ac_init_help=
  740. ac_init_version=false
  741. ac_unrecognized_opts=
  742. ac_unrecognized_sep=
  743. # The variables have the same names as the options, with
  744. # dashes changed to underlines.
  745. cache_file=/dev/null
  746. exec_prefix=NONE
  747. no_create=
  748. no_recursion=
  749. prefix=NONE
  750. program_prefix=NONE
  751. program_suffix=NONE
  752. program_transform_name=s,x,x,
  753. silent=
  754. site=
  755. srcdir=
  756. verbose=
  757. x_includes=NONE
  758. x_libraries=NONE
  759. # Installation directory options.
  760. # These are left unexpanded so users can "make install exec_prefix=/foo"
  761. # and all the variables that are supposed to be based on exec_prefix
  762. # by default will actually change.
  763. # Use braces instead of parens because sh, perl, etc. also accept them.
  764. # (The list follows the same order as the GNU Coding Standards.)
  765. bindir='${exec_prefix}/bin'
  766. sbindir='${exec_prefix}/sbin'
  767. libexecdir='${exec_prefix}/libexec'
  768. datarootdir='${prefix}/share'
  769. datadir='${datarootdir}'
  770. sysconfdir='${prefix}/etc'
  771. sharedstatedir='${prefix}/com'
  772. localstatedir='${prefix}/var'
  773. includedir='${prefix}/include'
  774. oldincludedir='/usr/include'
  775. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  776. infodir='${datarootdir}/info'
  777. htmldir='${docdir}'
  778. dvidir='${docdir}'
  779. pdfdir='${docdir}'
  780. psdir='${docdir}'
  781. libdir='${exec_prefix}/lib'
  782. localedir='${datarootdir}/locale'
  783. mandir='${datarootdir}/man'
  784. ac_prev=
  785. ac_dashdash=
  786. for ac_option
  787. do
  788. # If the previous option needs an argument, assign it.
  789. if test -n "$ac_prev"; then
  790. eval $ac_prev=\$ac_option
  791. ac_prev=
  792. continue
  793. fi
  794. case $ac_option in
  795. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  796. *=) ac_optarg= ;;
  797. *) ac_optarg=yes ;;
  798. esac
  799. # Accept the important Cygnus configure options, so we can diagnose typos.
  800. case $ac_dashdash$ac_option in
  801. --)
  802. ac_dashdash=yes ;;
  803. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  804. ac_prev=bindir ;;
  805. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  806. bindir=$ac_optarg ;;
  807. -build | --build | --buil | --bui | --bu)
  808. ac_prev=build_alias ;;
  809. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  810. build_alias=$ac_optarg ;;
  811. -cache-file | --cache-file | --cache-fil | --cache-fi \
  812. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  813. ac_prev=cache_file ;;
  814. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  815. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  816. cache_file=$ac_optarg ;;
  817. --config-cache | -C)
  818. cache_file=config.cache ;;
  819. -datadir | --datadir | --datadi | --datad)
  820. ac_prev=datadir ;;
  821. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  822. datadir=$ac_optarg ;;
  823. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  824. | --dataroo | --dataro | --datar)
  825. ac_prev=datarootdir ;;
  826. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  827. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  828. datarootdir=$ac_optarg ;;
  829. -disable-* | --disable-*)
  830. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  831. # Reject names that are not valid shell variable names.
  832. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  833. as_fn_error $? "invalid feature name: $ac_useropt"
  834. ac_useropt_orig=$ac_useropt
  835. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  836. case $ac_user_opts in
  837. *"
  838. "enable_$ac_useropt"
  839. "*) ;;
  840. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  841. ac_unrecognized_sep=', ';;
  842. esac
  843. eval enable_$ac_useropt=no ;;
  844. -docdir | --docdir | --docdi | --doc | --do)
  845. ac_prev=docdir ;;
  846. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  847. docdir=$ac_optarg ;;
  848. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  849. ac_prev=dvidir ;;
  850. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  851. dvidir=$ac_optarg ;;
  852. -enable-* | --enable-*)
  853. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  854. # Reject names that are not valid shell variable names.
  855. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  856. as_fn_error $? "invalid feature name: $ac_useropt"
  857. ac_useropt_orig=$ac_useropt
  858. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  859. case $ac_user_opts in
  860. *"
  861. "enable_$ac_useropt"
  862. "*) ;;
  863. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  864. ac_unrecognized_sep=', ';;
  865. esac
  866. eval enable_$ac_useropt=\$ac_optarg ;;
  867. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  868. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  869. | --exec | --exe | --ex)
  870. ac_prev=exec_prefix ;;
  871. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  872. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  873. | --exec=* | --exe=* | --ex=*)
  874. exec_prefix=$ac_optarg ;;
  875. -gas | --gas | --ga | --g)
  876. # Obsolete; use --with-gas.
  877. with_gas=yes ;;
  878. -help | --help | --hel | --he | -h)
  879. ac_init_help=long ;;
  880. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  881. ac_init_help=recursive ;;
  882. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  883. ac_init_help=short ;;
  884. -host | --host | --hos | --ho)
  885. ac_prev=host_alias ;;
  886. -host=* | --host=* | --hos=* | --ho=*)
  887. host_alias=$ac_optarg ;;
  888. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  889. ac_prev=htmldir ;;
  890. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  891. | --ht=*)
  892. htmldir=$ac_optarg ;;
  893. -includedir | --includedir | --includedi | --included | --include \
  894. | --includ | --inclu | --incl | --inc)
  895. ac_prev=includedir ;;
  896. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  897. | --includ=* | --inclu=* | --incl=* | --inc=*)
  898. includedir=$ac_optarg ;;
  899. -infodir | --infodir | --infodi | --infod | --info | --inf)
  900. ac_prev=infodir ;;
  901. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  902. infodir=$ac_optarg ;;
  903. -libdir | --libdir | --libdi | --libd)
  904. ac_prev=libdir ;;
  905. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  906. libdir=$ac_optarg ;;
  907. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  908. | --libexe | --libex | --libe)
  909. ac_prev=libexecdir ;;
  910. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  911. | --libexe=* | --libex=* | --libe=*)
  912. libexecdir=$ac_optarg ;;
  913. -localedir | --localedir | --localedi | --localed | --locale)
  914. ac_prev=localedir ;;
  915. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  916. localedir=$ac_optarg ;;
  917. -localstatedir | --localstatedir | --localstatedi | --localstated \
  918. | --localstate | --localstat | --localsta | --localst | --locals)
  919. ac_prev=localstatedir ;;
  920. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  921. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  922. localstatedir=$ac_optarg ;;
  923. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  924. ac_prev=mandir ;;
  925. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  926. mandir=$ac_optarg ;;
  927. -nfp | --nfp | --nf)
  928. # Obsolete; use --without-fp.
  929. with_fp=no ;;
  930. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  931. | --no-cr | --no-c | -n)
  932. no_create=yes ;;
  933. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  934. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  935. no_recursion=yes ;;
  936. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  937. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  938. | --oldin | --oldi | --old | --ol | --o)
  939. ac_prev=oldincludedir ;;
  940. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  941. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  942. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  943. oldincludedir=$ac_optarg ;;
  944. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  945. ac_prev=prefix ;;
  946. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  947. prefix=$ac_optarg ;;
  948. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  949. | --program-pre | --program-pr | --program-p)
  950. ac_prev=program_prefix ;;
  951. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  952. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  953. program_prefix=$ac_optarg ;;
  954. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  955. | --program-suf | --program-su | --program-s)
  956. ac_prev=program_suffix ;;
  957. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  958. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  959. program_suffix=$ac_optarg ;;
  960. -program-transform-name | --program-transform-name \
  961. | --program-transform-nam | --program-transform-na \
  962. | --program-transform-n | --program-transform- \
  963. | --program-transform | --program-transfor \
  964. | --program-transfo | --program-transf \
  965. | --program-trans | --program-tran \
  966. | --progr-tra | --program-tr | --program-t)
  967. ac_prev=program_transform_name ;;
  968. -program-transform-name=* | --program-transform-name=* \
  969. | --program-transform-nam=* | --program-transform-na=* \
  970. | --program-transform-n=* | --program-transform-=* \
  971. | --program-transform=* | --program-transfor=* \
  972. | --program-transfo=* | --program-transf=* \
  973. | --program-trans=* | --program-tran=* \
  974. | --progr-tra=* | --program-tr=* | --program-t=*)
  975. program_transform_name=$ac_optarg ;;
  976. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  977. ac_prev=pdfdir ;;
  978. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  979. pdfdir=$ac_optarg ;;
  980. -psdir | --psdir | --psdi | --psd | --ps)
  981. ac_prev=psdir ;;
  982. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  983. psdir=$ac_optarg ;;
  984. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  985. | -silent | --silent | --silen | --sile | --sil)
  986. silent=yes ;;
  987. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  988. ac_prev=sbindir ;;
  989. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  990. | --sbi=* | --sb=*)
  991. sbindir=$ac_optarg ;;
  992. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  993. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  994. | --sharedst | --shareds | --shared | --share | --shar \
  995. | --sha | --sh)
  996. ac_prev=sharedstatedir ;;
  997. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  998. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  999. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1000. | --sha=* | --sh=*)
  1001. sharedstatedir=$ac_optarg ;;
  1002. -site | --site | --sit)
  1003. ac_prev=site ;;
  1004. -site=* | --site=* | --sit=*)
  1005. site=$ac_optarg ;;
  1006. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1007. ac_prev=srcdir ;;
  1008. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1009. srcdir=$ac_optarg ;;
  1010. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1011. | --syscon | --sysco | --sysc | --sys | --sy)
  1012. ac_prev=sysconfdir ;;
  1013. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1014. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1015. sysconfdir=$ac_optarg ;;
  1016. -target | --target | --targe | --targ | --tar | --ta | --t)
  1017. ac_prev=target_alias ;;
  1018. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1019. target_alias=$ac_optarg ;;
  1020. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1021. verbose=yes ;;
  1022. -version | --version | --versio | --versi | --vers | -V)
  1023. ac_init_version=: ;;
  1024. -with-* | --with-*)
  1025. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1026. # Reject names that are not valid shell variable names.
  1027. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1028. as_fn_error $? "invalid package name: $ac_useropt"
  1029. ac_useropt_orig=$ac_useropt
  1030. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1031. case $ac_user_opts in
  1032. *"
  1033. "with_$ac_useropt"
  1034. "*) ;;
  1035. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1036. ac_unrecognized_sep=', ';;
  1037. esac
  1038. eval with_$ac_useropt=\$ac_optarg ;;
  1039. -without-* | --without-*)
  1040. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1041. # Reject names that are not valid shell variable names.
  1042. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1043. as_fn_error $? "invalid package name: $ac_useropt"
  1044. ac_useropt_orig=$ac_useropt
  1045. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1046. case $ac_user_opts in
  1047. *"
  1048. "with_$ac_useropt"
  1049. "*) ;;
  1050. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1051. ac_unrecognized_sep=', ';;
  1052. esac
  1053. eval with_$ac_useropt=no ;;
  1054. --x)
  1055. # Obsolete; use --with-x.
  1056. with_x=yes ;;
  1057. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1058. | --x-incl | --x-inc | --x-in | --x-i)
  1059. ac_prev=x_includes ;;
  1060. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1061. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1062. x_includes=$ac_optarg ;;
  1063. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1064. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1065. ac_prev=x_libraries ;;
  1066. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1067. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1068. x_libraries=$ac_optarg ;;
  1069. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1070. Try \`$0 --help' for more information"
  1071. ;;
  1072. *=*)
  1073. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1074. # Reject names that are not valid shell variable names.
  1075. case $ac_envvar in #(
  1076. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1077. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1078. esac
  1079. eval $ac_envvar=\$ac_optarg
  1080. export $ac_envvar ;;
  1081. *)
  1082. # FIXME: should be removed in autoconf 3.0.
  1083. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1084. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1085. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1086. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1087. ;;
  1088. esac
  1089. done
  1090. if test -n "$ac_prev"; then
  1091. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1092. as_fn_error $? "missing argument to $ac_option"
  1093. fi
  1094. if test -n "$ac_unrecognized_opts"; then
  1095. case $enable_option_checking in
  1096. no) ;;
  1097. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1098. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1099. esac
  1100. fi
  1101. # Check all directory arguments for consistency.
  1102. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1103. datadir sysconfdir sharedstatedir localstatedir includedir \
  1104. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1105. libdir localedir mandir
  1106. do
  1107. eval ac_val=\$$ac_var
  1108. # Remove trailing slashes.
  1109. case $ac_val in
  1110. */ )
  1111. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1112. eval $ac_var=\$ac_val;;
  1113. esac
  1114. # Be sure to have absolute directory names.
  1115. case $ac_val in
  1116. [\\/$]* | ?:[\\/]* ) continue;;
  1117. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1118. esac
  1119. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1120. done
  1121. # There might be people who depend on the old broken behavior: `$host'
  1122. # used to hold the argument of --host etc.
  1123. # FIXME: To remove some day.
  1124. build=$build_alias
  1125. host=$host_alias
  1126. target=$target_alias
  1127. # FIXME: To remove some day.
  1128. if test "x$host_alias" != x; then
  1129. if test "x$build_alias" = x; then
  1130. cross_compiling=maybe
  1131. elif test "x$build_alias" != "x$host_alias"; then
  1132. cross_compiling=yes
  1133. fi
  1134. fi
  1135. ac_tool_prefix=
  1136. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1137. test "$silent" = yes && exec 6>/dev/null
  1138. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1139. ac_ls_di=`ls -di .` &&
  1140. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1141. as_fn_error $? "working directory cannot be determined"
  1142. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1143. as_fn_error $? "pwd does not report name of working directory"
  1144. # Find the source files, if location was not specified.
  1145. if test -z "$srcdir"; then
  1146. ac_srcdir_defaulted=yes
  1147. # Try the directory containing this script, then the parent directory.
  1148. ac_confdir=`$as_dirname -- "$as_myself" ||
  1149. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1150. X"$as_myself" : 'X\(//\)[^/]' \| \
  1151. X"$as_myself" : 'X\(//\)$' \| \
  1152. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1153. $as_echo X"$as_myself" |
  1154. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1155. s//\1/
  1156. q
  1157. }
  1158. /^X\(\/\/\)[^/].*/{
  1159. s//\1/
  1160. q
  1161. }
  1162. /^X\(\/\/\)$/{
  1163. s//\1/
  1164. q
  1165. }
  1166. /^X\(\/\).*/{
  1167. s//\1/
  1168. q
  1169. }
  1170. s/.*/./; q'`
  1171. srcdir=$ac_confdir
  1172. if test ! -r "$srcdir/$ac_unique_file"; then
  1173. srcdir=..
  1174. fi
  1175. else
  1176. ac_srcdir_defaulted=no
  1177. fi
  1178. if test ! -r "$srcdir/$ac_unique_file"; then
  1179. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1180. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1181. fi
  1182. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1183. ac_abs_confdir=`(
  1184. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1185. pwd)`
  1186. # When building in place, set srcdir=.
  1187. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1188. srcdir=.
  1189. fi
  1190. # Remove unnecessary trailing slashes from srcdir.
  1191. # Double slashes in file names in object file debugging info
  1192. # mess up M-x gdb in Emacs.
  1193. case $srcdir in
  1194. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1195. esac
  1196. for ac_var in $ac_precious_vars; do
  1197. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1198. eval ac_env_${ac_var}_value=\$${ac_var}
  1199. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1200. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1201. done
  1202. #
  1203. # Report the --help message.
  1204. #
  1205. if test "$ac_init_help" = "long"; then
  1206. # Omit some internal or obsolete options to make the list less imposing.
  1207. # This message is too long to be a string in the A/UX 3.1 sh.
  1208. cat <<_ACEOF
  1209. \`configure' configures file 5.33 to adapt to many kinds of systems.
  1210. Usage: $0 [OPTION]... [VAR=VALUE]...
  1211. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1212. VAR=VALUE. See below for descriptions of some of the useful variables.
  1213. Defaults for the options are specified in brackets.
  1214. Configuration:
  1215. -h, --help display this help and exit
  1216. --help=short display options specific to this package
  1217. --help=recursive display the short help of all the included packages
  1218. -V, --version display version information and exit
  1219. -q, --quiet, --silent do not print \`checking ...' messages
  1220. --cache-file=FILE cache test results in FILE [disabled]
  1221. -C, --config-cache alias for \`--cache-file=config.cache'
  1222. -n, --no-create do not create output files
  1223. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1224. Installation directories:
  1225. --prefix=PREFIX install architecture-independent files in PREFIX
  1226. [$ac_default_prefix]
  1227. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1228. [PREFIX]
  1229. By default, \`make install' will install all the files in
  1230. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1231. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1232. for instance \`--prefix=\$HOME'.
  1233. For better control, use the options below.
  1234. Fine tuning of the installation directories:
  1235. --bindir=DIR user executables [EPREFIX/bin]
  1236. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1237. --libexecdir=DIR program executables [EPREFIX/libexec]
  1238. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1239. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1240. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1241. --libdir=DIR object code libraries [EPREFIX/lib]
  1242. --includedir=DIR C header files [PREFIX/include]
  1243. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1244. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1245. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1246. --infodir=DIR info documentation [DATAROOTDIR/info]
  1247. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1248. --mandir=DIR man documentation [DATAROOTDIR/man]
  1249. --docdir=DIR documentation root [DATAROOTDIR/doc/file]
  1250. --htmldir=DIR html documentation [DOCDIR]
  1251. --dvidir=DIR dvi documentation [DOCDIR]
  1252. --pdfdir=DIR pdf documentation [DOCDIR]
  1253. --psdir=DIR ps documentation [DOCDIR]
  1254. _ACEOF
  1255. cat <<\_ACEOF
  1256. Program names:
  1257. --program-prefix=PREFIX prepend PREFIX to installed program names
  1258. --program-suffix=SUFFIX append SUFFIX to installed program names
  1259. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1260. System types:
  1261. --build=BUILD configure for building on BUILD [guessed]
  1262. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1263. _ACEOF
  1264. fi
  1265. if test -n "$ac_init_help"; then
  1266. case $ac_init_help in
  1267. short | recursive ) echo "Configuration of file 5.33:";;
  1268. esac
  1269. cat <<\_ACEOF
  1270. Optional Features:
  1271. --disable-option-checking ignore unrecognized --enable/--with options
  1272. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1273. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1274. --enable-silent-rules less verbose build output (undo: "make V=1")
  1275. --disable-silent-rules verbose build output (undo: "make V=0")
  1276. --disable-elf disable builtin ELF support
  1277. --disable-elf-core disable ELF core file support
  1278. --disable-zlib disable zlib compression support [default=auto]
  1279. --disable-libseccomp disable libseccomp sandboxing [default=auto]
  1280. --enable-fsect-man5 enable file formats in man section 5
  1281. --enable-dependency-tracking
  1282. do not reject slow dependency extractors
  1283. --disable-dependency-tracking
  1284. speeds up one-time build
  1285. --enable-static[=PKGS] build static libraries [default=no]
  1286. --enable-shared[=PKGS] build shared libraries [default=yes]
  1287. --enable-fast-install[=PKGS]
  1288. optimize for fast installation [default=yes]
  1289. --disable-libtool-lock avoid locking (might break parallel builds)
  1290. --disable-largefile omit support for large files
  1291. --disable-warnings disable compiler warnings
  1292. Optional Packages:
  1293. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1294. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1295. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1296. both]
  1297. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1298. --with-sysroot=DIR Search for dependent libraries within DIR
  1299. (or the compiler's sysroot if not specified).
  1300. Some influential environment variables:
  1301. CC C compiler command
  1302. CFLAGS C compiler flags
  1303. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1304. nonstandard directory <lib dir>
  1305. LIBS libraries to pass to the linker, e.g. -l<library>
  1306. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1307. you have headers in a nonstandard directory <include dir>
  1308. CPP C preprocessor
  1309. Use these variables to override the choices made by `configure' or to help
  1310. it to find libraries and programs with nonstandard names/locations.
  1311. Report bugs to <christos@astron.com>.
  1312. _ACEOF
  1313. ac_status=$?
  1314. fi
  1315. if test "$ac_init_help" = "recursive"; then
  1316. # If there are subdirs, report their specific --help.
  1317. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1318. test -d "$ac_dir" ||
  1319. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1320. continue
  1321. ac_builddir=.
  1322. case "$ac_dir" in
  1323. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1324. *)
  1325. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1326. # A ".." for each directory in $ac_dir_suffix.
  1327. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1328. case $ac_top_builddir_sub in
  1329. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1330. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1331. esac ;;
  1332. esac
  1333. ac_abs_top_builddir=$ac_pwd
  1334. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1335. # for backward compatibility:
  1336. ac_top_builddir=$ac_top_build_prefix
  1337. case $srcdir in
  1338. .) # We are building in place.
  1339. ac_srcdir=.
  1340. ac_top_srcdir=$ac_top_builddir_sub
  1341. ac_abs_top_srcdir=$ac_pwd ;;
  1342. [\\/]* | ?:[\\/]* ) # Absolute name.
  1343. ac_srcdir=$srcdir$ac_dir_suffix;
  1344. ac_top_srcdir=$srcdir
  1345. ac_abs_top_srcdir=$srcdir ;;
  1346. *) # Relative name.
  1347. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1348. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1349. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1350. esac
  1351. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1352. cd "$ac_dir" || { ac_status=$?; continue; }
  1353. # Check for guested configure.
  1354. if test -f "$ac_srcdir/configure.gnu"; then
  1355. echo &&
  1356. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1357. elif test -f "$ac_srcdir/configure"; then
  1358. echo &&
  1359. $SHELL "$ac_srcdir/configure" --help=recursive
  1360. else
  1361. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1362. fi || ac_status=$?
  1363. cd "$ac_pwd" || { ac_status=$?; break; }
  1364. done
  1365. fi
  1366. test -n "$ac_init_help" && exit $ac_status
  1367. if $ac_init_version; then
  1368. cat <<\_ACEOF
  1369. file configure 5.33
  1370. generated by GNU Autoconf 2.69
  1371. Copyright (C) 2012 Free Software Foundation, Inc.
  1372. This configure script is free software; the Free Software Foundation
  1373. gives unlimited permission to copy, distribute and modify it.
  1374. _ACEOF
  1375. exit
  1376. fi
  1377. ## ------------------------ ##
  1378. ## Autoconf initialization. ##
  1379. ## ------------------------ ##
  1380. # ac_fn_c_try_compile LINENO
  1381. # --------------------------
  1382. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1383. ac_fn_c_try_compile ()
  1384. {
  1385. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1386. rm -f conftest.$ac_objext
  1387. if { { ac_try="$ac_compile"
  1388. case "(($ac_try" in
  1389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1390. *) ac_try_echo=$ac_try;;
  1391. esac
  1392. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1393. $as_echo "$ac_try_echo"; } >&5
  1394. (eval "$ac_compile") 2>conftest.err
  1395. ac_status=$?
  1396. if test -s conftest.err; then
  1397. grep -v '^ *+' conftest.err >conftest.er1
  1398. cat conftest.er1 >&5
  1399. mv -f conftest.er1 conftest.err
  1400. fi
  1401. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1402. test $ac_status = 0; } && {
  1403. test -z "$ac_c_werror_flag" ||
  1404. test ! -s conftest.err
  1405. } && test -s conftest.$ac_objext; then :
  1406. ac_retval=0
  1407. else
  1408. $as_echo "$as_me: failed program was:" >&5
  1409. sed 's/^/| /' conftest.$ac_ext >&5
  1410. ac_retval=1
  1411. fi
  1412. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1413. as_fn_set_status $ac_retval
  1414. } # ac_fn_c_try_compile
  1415. # ac_fn_c_try_cpp LINENO
  1416. # ----------------------
  1417. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1418. ac_fn_c_try_cpp ()
  1419. {
  1420. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1421. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1422. case "(($ac_try" in
  1423. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1424. *) ac_try_echo=$ac_try;;
  1425. esac
  1426. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1427. $as_echo "$ac_try_echo"; } >&5
  1428. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1429. ac_status=$?
  1430. if test -s conftest.err; then
  1431. grep -v '^ *+' conftest.err >conftest.er1
  1432. cat conftest.er1 >&5
  1433. mv -f conftest.er1 conftest.err
  1434. fi
  1435. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1436. test $ac_status = 0; } > conftest.i && {
  1437. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1438. test ! -s conftest.err
  1439. }; then :
  1440. ac_retval=0
  1441. else
  1442. $as_echo "$as_me: failed program was:" >&5
  1443. sed 's/^/| /' conftest.$ac_ext >&5
  1444. ac_retval=1
  1445. fi
  1446. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1447. as_fn_set_status $ac_retval
  1448. } # ac_fn_c_try_cpp
  1449. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1450. # -------------------------------------------------------
  1451. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1452. # the include files in INCLUDES and setting the cache variable VAR
  1453. # accordingly.
  1454. ac_fn_c_check_header_mongrel ()
  1455. {
  1456. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1457. if eval \${$3+:} false; then :
  1458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1459. $as_echo_n "checking for $2... " >&6; }
  1460. if eval \${$3+:} false; then :
  1461. $as_echo_n "(cached) " >&6
  1462. fi
  1463. eval ac_res=\$$3
  1464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1465. $as_echo "$ac_res" >&6; }
  1466. else
  1467. # Is the header compilable?
  1468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1469. $as_echo_n "checking $2 usability... " >&6; }
  1470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1471. /* end confdefs.h. */
  1472. $4
  1473. #include <$2>
  1474. _ACEOF
  1475. if ac_fn_c_try_compile "$LINENO"; then :
  1476. ac_header_compiler=yes
  1477. else
  1478. ac_header_compiler=no
  1479. fi
  1480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1482. $as_echo "$ac_header_compiler" >&6; }
  1483. # Is the header present?
  1484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1485. $as_echo_n "checking $2 presence... " >&6; }
  1486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1487. /* end confdefs.h. */
  1488. #include <$2>
  1489. _ACEOF
  1490. if ac_fn_c_try_cpp "$LINENO"; then :
  1491. ac_header_preproc=yes
  1492. else
  1493. ac_header_preproc=no
  1494. fi
  1495. rm -f conftest.err conftest.i conftest.$ac_ext
  1496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1497. $as_echo "$ac_header_preproc" >&6; }
  1498. # So? What about this header?
  1499. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1500. yes:no: )
  1501. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1502. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1503. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1504. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1505. ;;
  1506. no:yes:* )
  1507. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1508. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1509. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1510. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1511. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1512. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1514. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1515. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1516. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1517. ( $as_echo "## ---------------------------------- ##
  1518. ## Report this to christos@astron.com ##
  1519. ## ---------------------------------- ##"
  1520. ) | sed "s/^/$as_me: WARNING: /" >&2
  1521. ;;
  1522. esac
  1523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1524. $as_echo_n "checking for $2... " >&6; }
  1525. if eval \${$3+:} false; then :
  1526. $as_echo_n "(cached) " >&6
  1527. else
  1528. eval "$3=\$ac_header_compiler"
  1529. fi
  1530. eval ac_res=\$$3
  1531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1532. $as_echo "$ac_res" >&6; }
  1533. fi
  1534. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1535. } # ac_fn_c_check_header_mongrel
  1536. # ac_fn_c_try_run LINENO
  1537. # ----------------------
  1538. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1539. # that executables *can* be run.
  1540. ac_fn_c_try_run ()
  1541. {
  1542. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1543. if { { ac_try="$ac_link"
  1544. case "(($ac_try" in
  1545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1546. *) ac_try_echo=$ac_try;;
  1547. esac
  1548. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1549. $as_echo "$ac_try_echo"; } >&5
  1550. (eval "$ac_link") 2>&5
  1551. ac_status=$?
  1552. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1553. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1554. { { case "(($ac_try" in
  1555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1556. *) ac_try_echo=$ac_try;;
  1557. esac
  1558. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1559. $as_echo "$ac_try_echo"; } >&5
  1560. (eval "$ac_try") 2>&5
  1561. ac_status=$?
  1562. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1563. test $ac_status = 0; }; }; then :
  1564. ac_retval=0
  1565. else
  1566. $as_echo "$as_me: program exited with status $ac_status" >&5
  1567. $as_echo "$as_me: failed program was:" >&5
  1568. sed 's/^/| /' conftest.$ac_ext >&5
  1569. ac_retval=$ac_status
  1570. fi
  1571. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1572. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1573. as_fn_set_status $ac_retval
  1574. } # ac_fn_c_try_run
  1575. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1576. # -------------------------------------------------------
  1577. # Tests whether HEADER exists and can be compiled using the include files in
  1578. # INCLUDES, setting the cache variable VAR accordingly.
  1579. ac_fn_c_check_header_compile ()
  1580. {
  1581. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1583. $as_echo_n "checking for $2... " >&6; }
  1584. if eval \${$3+:} false; then :
  1585. $as_echo_n "(cached) " >&6
  1586. else
  1587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1588. /* end confdefs.h. */
  1589. $4
  1590. #include <$2>
  1591. _ACEOF
  1592. if ac_fn_c_try_compile "$LINENO"; then :
  1593. eval "$3=yes"
  1594. else
  1595. eval "$3=no"
  1596. fi
  1597. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1598. fi
  1599. eval ac_res=\$$3
  1600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1601. $as_echo "$ac_res" >&6; }
  1602. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1603. } # ac_fn_c_check_header_compile
  1604. # ac_fn_c_try_link LINENO
  1605. # -----------------------
  1606. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1607. ac_fn_c_try_link ()
  1608. {
  1609. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1610. rm -f conftest.$ac_objext conftest$ac_exeext
  1611. if { { ac_try="$ac_link"
  1612. case "(($ac_try" in
  1613. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1614. *) ac_try_echo=$ac_try;;
  1615. esac
  1616. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1617. $as_echo "$ac_try_echo"; } >&5
  1618. (eval "$ac_link") 2>conftest.err
  1619. ac_status=$?
  1620. if test -s conftest.err; then
  1621. grep -v '^ *+' conftest.err >conftest.er1
  1622. cat conftest.er1 >&5
  1623. mv -f conftest.er1 conftest.err
  1624. fi
  1625. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1626. test $ac_status = 0; } && {
  1627. test -z "$ac_c_werror_flag" ||
  1628. test ! -s conftest.err
  1629. } && test -s conftest$ac_exeext && {
  1630. test "$cross_compiling" = yes ||
  1631. test -x conftest$ac_exeext
  1632. }; then :
  1633. ac_retval=0
  1634. else
  1635. $as_echo "$as_me: failed program was:" >&5
  1636. sed 's/^/| /' conftest.$ac_ext >&5
  1637. ac_retval=1
  1638. fi
  1639. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1640. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1641. # interfere with the next link command; also delete a directory that is
  1642. # left behind by Apple's compiler. We do this before executing the actions.
  1643. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1644. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1645. as_fn_set_status $ac_retval
  1646. } # ac_fn_c_try_link
  1647. # ac_fn_c_check_func LINENO FUNC VAR
  1648. # ----------------------------------
  1649. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1650. ac_fn_c_check_func ()
  1651. {
  1652. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1654. $as_echo_n "checking for $2... " >&6; }
  1655. if eval \${$3+:} false; then :
  1656. $as_echo_n "(cached) " >&6
  1657. else
  1658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1659. /* end confdefs.h. */
  1660. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1661. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1662. #define $2 innocuous_$2
  1663. /* System header to define __stub macros and hopefully few prototypes,
  1664. which can conflict with char $2 (); below.
  1665. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1666. <limits.h> exists even on freestanding compilers. */
  1667. #ifdef __STDC__
  1668. # include <limits.h>
  1669. #else
  1670. # include <assert.h>
  1671. #endif
  1672. #undef $2
  1673. /* Override any GCC internal prototype to avoid an error.
  1674. Use char because int might match the return type of a GCC
  1675. builtin and then its argument prototype would still apply. */
  1676. #ifdef __cplusplus
  1677. extern "C"
  1678. #endif
  1679. char $2 ();
  1680. /* The GNU C library defines this for functions which it implements
  1681. to always fail with ENOSYS. Some functions are actually named
  1682. something starting with __ and the normal name is an alias. */
  1683. #if defined __stub_$2 || defined __stub___$2
  1684. choke me
  1685. #endif
  1686. int
  1687. main ()
  1688. {
  1689. return $2 ();
  1690. ;
  1691. return 0;
  1692. }
  1693. _ACEOF
  1694. if ac_fn_c_try_link "$LINENO"; then :
  1695. eval "$3=yes"
  1696. else
  1697. eval "$3=no"
  1698. fi
  1699. rm -f core conftest.err conftest.$ac_objext \
  1700. conftest$ac_exeext conftest.$ac_ext
  1701. fi
  1702. eval ac_res=\$$3
  1703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1704. $as_echo "$ac_res" >&6; }
  1705. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1706. } # ac_fn_c_check_func
  1707. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1708. # -------------------------------------------
  1709. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1710. # variable VAR accordingly.
  1711. ac_fn_c_check_type ()
  1712. {
  1713. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1715. $as_echo_n "checking for $2... " >&6; }
  1716. if eval \${$3+:} false; then :
  1717. $as_echo_n "(cached) " >&6
  1718. else
  1719. eval "$3=no"
  1720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1721. /* end confdefs.h. */
  1722. $4
  1723. int
  1724. main ()
  1725. {
  1726. if (sizeof ($2))
  1727. return 0;
  1728. ;
  1729. return 0;
  1730. }
  1731. _ACEOF
  1732. if ac_fn_c_try_compile "$LINENO"; then :
  1733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1734. /* end confdefs.h. */
  1735. $4
  1736. int
  1737. main ()
  1738. {
  1739. if (sizeof (($2)))
  1740. return 0;
  1741. ;
  1742. return 0;
  1743. }
  1744. _ACEOF
  1745. if ac_fn_c_try_compile "$LINENO"; then :
  1746. else
  1747. eval "$3=yes"
  1748. fi
  1749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1750. fi
  1751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1752. fi
  1753. eval ac_res=\$$3
  1754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1755. $as_echo "$ac_res" >&6; }
  1756. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1757. } # ac_fn_c_check_type
  1758. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1759. # ----------------------------------------------------
  1760. # Tries to find if the field MEMBER exists in type AGGR, after including
  1761. # INCLUDES, setting cache variable VAR accordingly.
  1762. ac_fn_c_check_member ()
  1763. {
  1764. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1766. $as_echo_n "checking for $2.$3... " >&6; }
  1767. if eval \${$4+:} false; then :
  1768. $as_echo_n "(cached) " >&6
  1769. else
  1770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1771. /* end confdefs.h. */
  1772. $5
  1773. int
  1774. main ()
  1775. {
  1776. static $2 ac_aggr;
  1777. if (ac_aggr.$3)
  1778. return 0;
  1779. ;
  1780. return 0;
  1781. }
  1782. _ACEOF
  1783. if ac_fn_c_try_compile "$LINENO"; then :
  1784. eval "$4=yes"
  1785. else
  1786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1787. /* end confdefs.h. */
  1788. $5
  1789. int
  1790. main ()
  1791. {
  1792. static $2 ac_aggr;
  1793. if (sizeof ac_aggr.$3)
  1794. return 0;
  1795. ;
  1796. return 0;
  1797. }
  1798. _ACEOF
  1799. if ac_fn_c_try_compile "$LINENO"; then :
  1800. eval "$4=yes"
  1801. else
  1802. eval "$4=no"
  1803. fi
  1804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1805. fi
  1806. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1807. fi
  1808. eval ac_res=\$$4
  1809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1810. $as_echo "$ac_res" >&6; }
  1811. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1812. } # ac_fn_c_check_member
  1813. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1814. # ---------------------------------------------
  1815. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1816. # accordingly.
  1817. ac_fn_c_check_decl ()
  1818. {
  1819. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1820. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1821. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1823. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1824. if eval \${$3+:} false; then :
  1825. $as_echo_n "(cached) " >&6
  1826. else
  1827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1828. /* end confdefs.h. */
  1829. $4
  1830. int
  1831. main ()
  1832. {
  1833. #ifndef $as_decl_name
  1834. #ifdef __cplusplus
  1835. (void) $as_decl_use;
  1836. #else
  1837. (void) $as_decl_name;
  1838. #endif
  1839. #endif
  1840. ;
  1841. return 0;
  1842. }
  1843. _ACEOF
  1844. if ac_fn_c_try_compile "$LINENO"; then :
  1845. eval "$3=yes"
  1846. else
  1847. eval "$3=no"
  1848. fi
  1849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1850. fi
  1851. eval ac_res=\$$3
  1852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1853. $as_echo "$ac_res" >&6; }
  1854. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1855. } # ac_fn_c_check_decl
  1856. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1857. # ------------------------------------
  1858. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1859. # accordingly.
  1860. ac_fn_c_find_uintX_t ()
  1861. {
  1862. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1864. $as_echo_n "checking for uint$2_t... " >&6; }
  1865. if eval \${$3+:} false; then :
  1866. $as_echo_n "(cached) " >&6
  1867. else
  1868. eval "$3=no"
  1869. # Order is important - never check a type that is potentially smaller
  1870. # than half of the expected target width.
  1871. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1872. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1874. /* end confdefs.h. */
  1875. $ac_includes_default
  1876. int
  1877. main ()
  1878. {
  1879. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1880. test_array [0] = 0;
  1881. return test_array [0];
  1882. ;
  1883. return 0;
  1884. }
  1885. _ACEOF
  1886. if ac_fn_c_try_compile "$LINENO"; then :
  1887. case $ac_type in #(
  1888. uint$2_t) :
  1889. eval "$3=yes" ;; #(
  1890. *) :
  1891. eval "$3=\$ac_type" ;;
  1892. esac
  1893. fi
  1894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1895. if eval test \"x\$"$3"\" = x"no"; then :
  1896. else
  1897. break
  1898. fi
  1899. done
  1900. fi
  1901. eval ac_res=\$$3
  1902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1903. $as_echo "$ac_res" >&6; }
  1904. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1905. } # ac_fn_c_find_uintX_t
  1906. # ac_fn_c_find_intX_t LINENO BITS VAR
  1907. # -----------------------------------
  1908. # Finds a signed integer type with width BITS, setting cache variable VAR
  1909. # accordingly.
  1910. ac_fn_c_find_intX_t ()
  1911. {
  1912. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1914. $as_echo_n "checking for int$2_t... " >&6; }
  1915. if eval \${$3+:} false; then :
  1916. $as_echo_n "(cached) " >&6
  1917. else
  1918. eval "$3=no"
  1919. # Order is important - never check a type that is potentially smaller
  1920. # than half of the expected target width.
  1921. for ac_type in int$2_t 'int' 'long int' \
  1922. 'long long int' 'short int' 'signed char'; do
  1923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1924. /* end confdefs.h. */
  1925. $ac_includes_default
  1926. enum { N = $2 / 2 - 1 };
  1927. int
  1928. main ()
  1929. {
  1930. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1931. test_array [0] = 0;
  1932. return test_array [0];
  1933. ;
  1934. return 0;
  1935. }
  1936. _ACEOF
  1937. if ac_fn_c_try_compile "$LINENO"; then :
  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 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1946. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1947. test_array [0] = 0;
  1948. return test_array [0];
  1949. ;
  1950. return 0;
  1951. }
  1952. _ACEOF
  1953. if ac_fn_c_try_compile "$LINENO"; then :
  1954. else
  1955. case $ac_type in #(
  1956. int$2_t) :
  1957. eval "$3=yes" ;; #(
  1958. *) :
  1959. eval "$3=\$ac_type" ;;
  1960. esac
  1961. fi
  1962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1963. fi
  1964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1965. if eval test \"x\$"$3"\" = x"no"; then :
  1966. else
  1967. break
  1968. fi
  1969. done
  1970. fi
  1971. eval ac_res=\$$3
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1973. $as_echo "$ac_res" >&6; }
  1974. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1975. } # ac_fn_c_find_intX_t
  1976. cat >config.log <<_ACEOF
  1977. This file contains any messages produced by compilers while
  1978. running configure, to aid debugging if configure makes a mistake.
  1979. It was created by file $as_me 5.33, which was
  1980. generated by GNU Autoconf 2.69. Invocation command line was
  1981. $ $0 $@
  1982. _ACEOF
  1983. exec 5>>config.log
  1984. {
  1985. cat <<_ASUNAME
  1986. ## --------- ##
  1987. ## Platform. ##
  1988. ## --------- ##
  1989. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1990. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1991. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1992. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1993. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1994. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1995. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1996. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1997. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1998. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1999. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2000. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2001. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2002. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2003. _ASUNAME
  2004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2005. for as_dir in $PATH
  2006. do
  2007. IFS=$as_save_IFS
  2008. test -z "$as_dir" && as_dir=.
  2009. $as_echo "PATH: $as_dir"
  2010. done
  2011. IFS=$as_save_IFS
  2012. } >&5
  2013. cat >&5 <<_ACEOF
  2014. ## ----------- ##
  2015. ## Core tests. ##
  2016. ## ----------- ##
  2017. _ACEOF
  2018. # Keep a trace of the command line.
  2019. # Strip out --no-create and --no-recursion so they do not pile up.
  2020. # Strip out --silent because we don't want to record it for future runs.
  2021. # Also quote any args containing shell meta-characters.
  2022. # Make two passes to allow for proper duplicate-argument suppression.
  2023. ac_configure_args=
  2024. ac_configure_args0=
  2025. ac_configure_args1=
  2026. ac_must_keep_next=false
  2027. for ac_pass in 1 2
  2028. do
  2029. for ac_arg
  2030. do
  2031. case $ac_arg in
  2032. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2033. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2034. | -silent | --silent | --silen | --sile | --sil)
  2035. continue ;;
  2036. *\'*)
  2037. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2038. esac
  2039. case $ac_pass in
  2040. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2041. 2)
  2042. as_fn_append ac_configure_args1 " '$ac_arg'"
  2043. if test $ac_must_keep_next = true; then
  2044. ac_must_keep_next=false # Got value, back to normal.
  2045. else
  2046. case $ac_arg in
  2047. *=* | --config-cache | -C | -disable-* | --disable-* \
  2048. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2049. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2050. | -with-* | --with-* | -without-* | --without-* | --x)
  2051. case "$ac_configure_args0 " in
  2052. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2053. esac
  2054. ;;
  2055. -* ) ac_must_keep_next=true ;;
  2056. esac
  2057. fi
  2058. as_fn_append ac_configure_args " '$ac_arg'"
  2059. ;;
  2060. esac
  2061. done
  2062. done
  2063. { ac_configure_args0=; unset ac_configure_args0;}
  2064. { ac_configure_args1=; unset ac_configure_args1;}
  2065. # When interrupted or exit'd, cleanup temporary files, and complete
  2066. # config.log. We remove comments because anyway the quotes in there
  2067. # would cause problems or look ugly.
  2068. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2069. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2070. trap 'exit_status=$?
  2071. # Save into config.log some information that might help in debugging.
  2072. {
  2073. echo
  2074. $as_echo "## ---------------- ##
  2075. ## Cache variables. ##
  2076. ## ---------------- ##"
  2077. echo
  2078. # The following way of writing the cache mishandles newlines in values,
  2079. (
  2080. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2081. eval ac_val=\$$ac_var
  2082. case $ac_val in #(
  2083. *${as_nl}*)
  2084. case $ac_var in #(
  2085. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2086. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2087. esac
  2088. case $ac_var in #(
  2089. _ | IFS | as_nl) ;; #(
  2090. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2091. *) { eval $ac_var=; unset $ac_var;} ;;
  2092. esac ;;
  2093. esac
  2094. done
  2095. (set) 2>&1 |
  2096. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2097. *${as_nl}ac_space=\ *)
  2098. sed -n \
  2099. "s/'\''/'\''\\\\'\'''\''/g;
  2100. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2101. ;; #(
  2102. *)
  2103. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2104. ;;
  2105. esac |
  2106. sort
  2107. )
  2108. echo
  2109. $as_echo "## ----------------- ##
  2110. ## Output variables. ##
  2111. ## ----------------- ##"
  2112. echo
  2113. for ac_var in $ac_subst_vars
  2114. do
  2115. eval ac_val=\$$ac_var
  2116. case $ac_val in
  2117. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2118. esac
  2119. $as_echo "$ac_var='\''$ac_val'\''"
  2120. done | sort
  2121. echo
  2122. if test -n "$ac_subst_files"; then
  2123. $as_echo "## ------------------- ##
  2124. ## File substitutions. ##
  2125. ## ------------------- ##"
  2126. echo
  2127. for ac_var in $ac_subst_files
  2128. do
  2129. eval ac_val=\$$ac_var
  2130. case $ac_val in
  2131. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2132. esac
  2133. $as_echo "$ac_var='\''$ac_val'\''"
  2134. done | sort
  2135. echo
  2136. fi
  2137. if test -s confdefs.h; then
  2138. $as_echo "## ----------- ##
  2139. ## confdefs.h. ##
  2140. ## ----------- ##"
  2141. echo
  2142. cat confdefs.h
  2143. echo
  2144. fi
  2145. test "$ac_signal" != 0 &&
  2146. $as_echo "$as_me: caught signal $ac_signal"
  2147. $as_echo "$as_me: exit $exit_status"
  2148. } >&5
  2149. rm -f core *.core core.conftest.* &&
  2150. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2151. exit $exit_status
  2152. ' 0
  2153. for ac_signal in 1 2 13 15; do
  2154. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2155. done
  2156. ac_signal=0
  2157. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2158. rm -f -r conftest* confdefs.h
  2159. $as_echo "/* confdefs.h */" > confdefs.h
  2160. # Predefined preprocessor variables.
  2161. cat >>confdefs.h <<_ACEOF
  2162. #define PACKAGE_NAME "$PACKAGE_NAME"
  2163. _ACEOF
  2164. cat >>confdefs.h <<_ACEOF
  2165. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2166. _ACEOF
  2167. cat >>confdefs.h <<_ACEOF
  2168. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2169. _ACEOF
  2170. cat >>confdefs.h <<_ACEOF
  2171. #define PACKAGE_STRING "$PACKAGE_STRING"
  2172. _ACEOF
  2173. cat >>confdefs.h <<_ACEOF
  2174. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2175. _ACEOF
  2176. cat >>confdefs.h <<_ACEOF
  2177. #define PACKAGE_URL "$PACKAGE_URL"
  2178. _ACEOF
  2179. # Let the site file select an alternate cache file if it wants to.
  2180. # Prefer an explicitly selected file to automatically selected ones.
  2181. ac_site_file1=NONE
  2182. ac_site_file2=NONE
  2183. if test -n "$CONFIG_SITE"; then
  2184. # We do not want a PATH search for config.site.
  2185. case $CONFIG_SITE in #((
  2186. -*) ac_site_file1=./$CONFIG_SITE;;
  2187. */*) ac_site_file1=$CONFIG_SITE;;
  2188. *) ac_site_file1=./$CONFIG_SITE;;
  2189. esac
  2190. elif test "x$prefix" != xNONE; then
  2191. ac_site_file1=$prefix/share/config.site
  2192. ac_site_file2=$prefix/etc/config.site
  2193. else
  2194. ac_site_file1=$ac_default_prefix/share/config.site
  2195. ac_site_file2=$ac_default_prefix/etc/config.site
  2196. fi
  2197. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2198. do
  2199. test "x$ac_site_file" = xNONE && continue
  2200. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2201. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2202. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2203. sed 's/^/| /' "$ac_site_file" >&5
  2204. . "$ac_site_file" \
  2205. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2206. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2207. as_fn_error $? "failed to load site script $ac_site_file
  2208. See \`config.log' for more details" "$LINENO" 5; }
  2209. fi
  2210. done
  2211. if test -r "$cache_file"; then
  2212. # Some versions of bash will fail to source /dev/null (special files
  2213. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2214. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2215. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2216. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2217. case $cache_file in
  2218. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2219. *) . "./$cache_file";;
  2220. esac
  2221. fi
  2222. else
  2223. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2224. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2225. >$cache_file
  2226. fi
  2227. as_fn_append ac_header_list " stdlib.h"
  2228. as_fn_append ac_header_list " unistd.h"
  2229. as_fn_append ac_header_list " sys/param.h"
  2230. # Check that the precious variables saved in the cache have kept the same
  2231. # value.
  2232. ac_cache_corrupted=false
  2233. for ac_var in $ac_precious_vars; do
  2234. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2235. eval ac_new_set=\$ac_env_${ac_var}_set
  2236. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2237. eval ac_new_val=\$ac_env_${ac_var}_value
  2238. case $ac_old_set,$ac_new_set in
  2239. set,)
  2240. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2241. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2242. ac_cache_corrupted=: ;;
  2243. ,set)
  2244. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2245. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2246. ac_cache_corrupted=: ;;
  2247. ,);;
  2248. *)
  2249. if test "x$ac_old_val" != "x$ac_new_val"; then
  2250. # differences in whitespace do not lead to failure.
  2251. ac_old_val_w=`echo x $ac_old_val`
  2252. ac_new_val_w=`echo x $ac_new_val`
  2253. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2254. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2255. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2256. ac_cache_corrupted=:
  2257. else
  2258. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2259. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2260. eval $ac_var=\$ac_old_val
  2261. fi
  2262. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2263. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2264. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2265. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2266. fi;;
  2267. esac
  2268. # Pass precious variables to config.status.
  2269. if test "$ac_new_set" = set; then
  2270. case $ac_new_val in
  2271. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2272. *) ac_arg=$ac_var=$ac_new_val ;;
  2273. esac
  2274. case " $ac_configure_args " in
  2275. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2276. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2277. esac
  2278. fi
  2279. done
  2280. if $ac_cache_corrupted; then
  2281. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2282. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2284. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2285. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2286. fi
  2287. ## -------------------- ##
  2288. ## Main body of script. ##
  2289. ## -------------------- ##
  2290. ac_ext=c
  2291. ac_cpp='$CPP $CPPFLAGS'
  2292. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2293. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2294. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2295. am__api_version='1.13'
  2296. ac_aux_dir=
  2297. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2298. if test -f "$ac_dir/install-sh"; then
  2299. ac_aux_dir=$ac_dir
  2300. ac_install_sh="$ac_aux_dir/install-sh -c"
  2301. break
  2302. elif test -f "$ac_dir/install.sh"; then
  2303. ac_aux_dir=$ac_dir
  2304. ac_install_sh="$ac_aux_dir/install.sh -c"
  2305. break
  2306. elif test -f "$ac_dir/shtool"; then
  2307. ac_aux_dir=$ac_dir
  2308. ac_install_sh="$ac_aux_dir/shtool install -c"
  2309. break
  2310. fi
  2311. done
  2312. if test -z "$ac_aux_dir"; then
  2313. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2314. fi
  2315. # These three variables are undocumented and unsupported,
  2316. # and are intended to be withdrawn in a future Autoconf release.
  2317. # They can cause serious problems if a builder's source tree is in a directory
  2318. # whose full name contains unusual characters.
  2319. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2320. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2321. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2322. # Find a good install program. We prefer a C program (faster),
  2323. # so one script is as good as another. But avoid the broken or
  2324. # incompatible versions:
  2325. # SysV /etc/install, /usr/sbin/install
  2326. # SunOS /usr/etc/install
  2327. # IRIX /sbin/install
  2328. # AIX /bin/install
  2329. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2330. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2331. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2332. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2333. # OS/2's system install, which has a completely different semantic
  2334. # ./install, which can be erroneously created by make from ./install.sh.
  2335. # Reject install programs that cannot install multiple files.
  2336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2337. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2338. if test -z "$INSTALL"; then
  2339. if ${ac_cv_path_install+:} false; then :
  2340. $as_echo_n "(cached) " >&6
  2341. else
  2342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2343. for as_dir in $PATH
  2344. do
  2345. IFS=$as_save_IFS
  2346. test -z "$as_dir" && as_dir=.
  2347. # Account for people who put trailing slashes in PATH elements.
  2348. case $as_dir/ in #((
  2349. ./ | .// | /[cC]/* | \
  2350. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2351. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2352. /usr/ucb/* ) ;;
  2353. *)
  2354. # OSF1 and SCO ODT 3.0 have their own names for install.
  2355. # Don't use installbsd from OSF since it installs stuff as root
  2356. # by default.
  2357. for ac_prog in ginstall scoinst install; do
  2358. for ac_exec_ext in '' $ac_executable_extensions; do
  2359. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2360. if test $ac_prog = install &&
  2361. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2362. # AIX install. It has an incompatible calling convention.
  2363. :
  2364. elif test $ac_prog = install &&
  2365. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2366. # program-specific install script used by HP pwplus--don't use.
  2367. :
  2368. else
  2369. rm -rf conftest.one conftest.two conftest.dir
  2370. echo one > conftest.one
  2371. echo two > conftest.two
  2372. mkdir conftest.dir
  2373. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2374. test -s conftest.one && test -s conftest.two &&
  2375. test -s conftest.dir/conftest.one &&
  2376. test -s conftest.dir/conftest.two
  2377. then
  2378. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2379. break 3
  2380. fi
  2381. fi
  2382. fi
  2383. done
  2384. done
  2385. ;;
  2386. esac
  2387. done
  2388. IFS=$as_save_IFS
  2389. rm -rf conftest.one conftest.two conftest.dir
  2390. fi
  2391. if test "${ac_cv_path_install+set}" = set; then
  2392. INSTALL=$ac_cv_path_install
  2393. else
  2394. # As a last resort, use the slow shell script. Don't cache a
  2395. # value for INSTALL within a source directory, because that will
  2396. # break other packages using the cache if that directory is
  2397. # removed, or if the value is a relative name.
  2398. INSTALL=$ac_install_sh
  2399. fi
  2400. fi
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2402. $as_echo "$INSTALL" >&6; }
  2403. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2404. # It thinks the first close brace ends the variable substitution.
  2405. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2406. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2407. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2409. $as_echo_n "checking whether build environment is sane... " >&6; }
  2410. # Reject unsafe characters in $srcdir or the absolute working directory
  2411. # name. Accept space and tab only in the latter.
  2412. am_lf='
  2413. '
  2414. case `pwd` in
  2415. *[\\\"\#\$\&\'\`$am_lf]*)
  2416. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2417. esac
  2418. case $srcdir in
  2419. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2420. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2421. esac
  2422. # Do 'set' in a subshell so we don't clobber the current shell's
  2423. # arguments. Must try -L first in case configure is actually a
  2424. # symlink; some systems play weird games with the mod time of symlinks
  2425. # (eg FreeBSD returns the mod time of the symlink's containing
  2426. # directory).
  2427. if (
  2428. am_has_slept=no
  2429. for am_try in 1 2; do
  2430. echo "timestamp, slept: $am_has_slept" > conftest.file
  2431. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2432. if test "$*" = "X"; then
  2433. # -L didn't work.
  2434. set X `ls -t "$srcdir/configure" conftest.file`
  2435. fi
  2436. if test "$*" != "X $srcdir/configure conftest.file" \
  2437. && test "$*" != "X conftest.file $srcdir/configure"; then
  2438. # If neither matched, then we have a broken ls. This can happen
  2439. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2440. # broken ls alias from the environment. This has actually
  2441. # happened. Such a system could not be considered "sane".
  2442. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2443. alias in your environment" "$LINENO" 5
  2444. fi
  2445. if test "$2" = conftest.file || test $am_try -eq 2; then
  2446. break
  2447. fi
  2448. # Just in case.
  2449. sleep 1
  2450. am_has_slept=yes
  2451. done
  2452. test "$2" = conftest.file
  2453. )
  2454. then
  2455. # Ok.
  2456. :
  2457. else
  2458. as_fn_error $? "newly created file is older than distributed files!
  2459. Check your system clock" "$LINENO" 5
  2460. fi
  2461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2462. $as_echo "yes" >&6; }
  2463. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2464. # generated files are strictly newer.
  2465. am_sleep_pid=
  2466. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2467. ( sleep 1 ) &
  2468. am_sleep_pid=$!
  2469. fi
  2470. rm -f conftest.file
  2471. test "$program_prefix" != NONE &&
  2472. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2473. # Use a double $ so make ignores it.
  2474. test "$program_suffix" != NONE &&
  2475. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2476. # Double any \ or $.
  2477. # By default was `s,x,x', remove it if useless.
  2478. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2479. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2480. # expand $ac_aux_dir to an absolute path
  2481. am_aux_dir=`cd $ac_aux_dir && pwd`
  2482. if test x"${MISSING+set}" != xset; then
  2483. case $am_aux_dir in
  2484. *\ * | *\ *)
  2485. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2486. *)
  2487. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2488. esac
  2489. fi
  2490. # Use eval to expand $SHELL
  2491. if eval "$MISSING --is-lightweight"; then
  2492. am_missing_run="$MISSING "
  2493. else
  2494. am_missing_run=
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2496. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2497. fi
  2498. if test x"${install_sh}" != xset; then
  2499. case $am_aux_dir in
  2500. *\ * | *\ *)
  2501. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2502. *)
  2503. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2504. esac
  2505. fi
  2506. # Installed binaries are usually stripped using 'strip' when the user
  2507. # run "make install-strip". However 'strip' might not be the right
  2508. # tool to use in cross-compilation environments, therefore Automake
  2509. # will honor the 'STRIP' environment variable to overrule this program.
  2510. if test "$cross_compiling" != no; then
  2511. if test -n "$ac_tool_prefix"; then
  2512. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2513. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2515. $as_echo_n "checking for $ac_word... " >&6; }
  2516. if ${ac_cv_prog_STRIP+:} false; then :
  2517. $as_echo_n "(cached) " >&6
  2518. else
  2519. if test -n "$STRIP"; then
  2520. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2521. else
  2522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2523. for as_dir in $PATH
  2524. do
  2525. IFS=$as_save_IFS
  2526. test -z "$as_dir" && as_dir=.
  2527. for ac_exec_ext in '' $ac_executable_extensions; do
  2528. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2529. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2530. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2531. break 2
  2532. fi
  2533. done
  2534. done
  2535. IFS=$as_save_IFS
  2536. fi
  2537. fi
  2538. STRIP=$ac_cv_prog_STRIP
  2539. if test -n "$STRIP"; then
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2541. $as_echo "$STRIP" >&6; }
  2542. else
  2543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2544. $as_echo "no" >&6; }
  2545. fi
  2546. fi
  2547. if test -z "$ac_cv_prog_STRIP"; then
  2548. ac_ct_STRIP=$STRIP
  2549. # Extract the first word of "strip", so it can be a program name with args.
  2550. set dummy strip; ac_word=$2
  2551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2552. $as_echo_n "checking for $ac_word... " >&6; }
  2553. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2554. $as_echo_n "(cached) " >&6
  2555. else
  2556. if test -n "$ac_ct_STRIP"; then
  2557. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2558. else
  2559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2560. for as_dir in $PATH
  2561. do
  2562. IFS=$as_save_IFS
  2563. test -z "$as_dir" && as_dir=.
  2564. for ac_exec_ext in '' $ac_executable_extensions; do
  2565. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2566. ac_cv_prog_ac_ct_STRIP="strip"
  2567. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2568. break 2
  2569. fi
  2570. done
  2571. done
  2572. IFS=$as_save_IFS
  2573. fi
  2574. fi
  2575. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2576. if test -n "$ac_ct_STRIP"; then
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2578. $as_echo "$ac_ct_STRIP" >&6; }
  2579. else
  2580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2581. $as_echo "no" >&6; }
  2582. fi
  2583. if test "x$ac_ct_STRIP" = x; then
  2584. STRIP=":"
  2585. else
  2586. case $cross_compiling:$ac_tool_warned in
  2587. yes:)
  2588. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2589. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2590. ac_tool_warned=yes ;;
  2591. esac
  2592. STRIP=$ac_ct_STRIP
  2593. fi
  2594. else
  2595. STRIP="$ac_cv_prog_STRIP"
  2596. fi
  2597. fi
  2598. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2600. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2601. if test -z "$MKDIR_P"; then
  2602. if ${ac_cv_path_mkdir+:} false; then :
  2603. $as_echo_n "(cached) " >&6
  2604. else
  2605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2606. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2607. do
  2608. IFS=$as_save_IFS
  2609. test -z "$as_dir" && as_dir=.
  2610. for ac_prog in mkdir gmkdir; do
  2611. for ac_exec_ext in '' $ac_executable_extensions; do
  2612. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2613. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2614. 'mkdir (GNU coreutils) '* | \
  2615. 'mkdir (coreutils) '* | \
  2616. 'mkdir (fileutils) '4.1*)
  2617. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2618. break 3;;
  2619. esac
  2620. done
  2621. done
  2622. done
  2623. IFS=$as_save_IFS
  2624. fi
  2625. test -d ./--version && rmdir ./--version
  2626. if test "${ac_cv_path_mkdir+set}" = set; then
  2627. MKDIR_P="$ac_cv_path_mkdir -p"
  2628. else
  2629. # As a last resort, use the slow shell script. Don't cache a
  2630. # value for MKDIR_P within a source directory, because that will
  2631. # break other packages using the cache if that directory is
  2632. # removed, or if the value is a relative name.
  2633. MKDIR_P="$ac_install_sh -d"
  2634. fi
  2635. fi
  2636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2637. $as_echo "$MKDIR_P" >&6; }
  2638. for ac_prog in gawk mawk nawk awk
  2639. do
  2640. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2641. set dummy $ac_prog; ac_word=$2
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2643. $as_echo_n "checking for $ac_word... " >&6; }
  2644. if ${ac_cv_prog_AWK+:} false; then :
  2645. $as_echo_n "(cached) " >&6
  2646. else
  2647. if test -n "$AWK"; then
  2648. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2649. else
  2650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2651. for as_dir in $PATH
  2652. do
  2653. IFS=$as_save_IFS
  2654. test -z "$as_dir" && as_dir=.
  2655. for ac_exec_ext in '' $ac_executable_extensions; do
  2656. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2657. ac_cv_prog_AWK="$ac_prog"
  2658. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2659. break 2
  2660. fi
  2661. done
  2662. done
  2663. IFS=$as_save_IFS
  2664. fi
  2665. fi
  2666. AWK=$ac_cv_prog_AWK
  2667. if test -n "$AWK"; then
  2668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2669. $as_echo "$AWK" >&6; }
  2670. else
  2671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2672. $as_echo "no" >&6; }
  2673. fi
  2674. test -n "$AWK" && break
  2675. done
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2677. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2678. set x ${MAKE-make}
  2679. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2680. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2681. $as_echo_n "(cached) " >&6
  2682. else
  2683. cat >conftest.make <<\_ACEOF
  2684. SHELL = /bin/sh
  2685. all:
  2686. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2687. _ACEOF
  2688. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2689. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2690. *@@@%%%=?*=@@@%%%*)
  2691. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2692. *)
  2693. eval ac_cv_prog_make_${ac_make}_set=no;;
  2694. esac
  2695. rm -f conftest.make
  2696. fi
  2697. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2699. $as_echo "yes" >&6; }
  2700. SET_MAKE=
  2701. else
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2703. $as_echo "no" >&6; }
  2704. SET_MAKE="MAKE=${MAKE-make}"
  2705. fi
  2706. rm -rf .tst 2>/dev/null
  2707. mkdir .tst 2>/dev/null
  2708. if test -d .tst; then
  2709. am__leading_dot=.
  2710. else
  2711. am__leading_dot=_
  2712. fi
  2713. rmdir .tst 2>/dev/null
  2714. # Check whether --enable-silent-rules was given.
  2715. if test "${enable_silent_rules+set}" = set; then :
  2716. enableval=$enable_silent_rules;
  2717. fi
  2718. case $enable_silent_rules in # (((
  2719. yes) AM_DEFAULT_VERBOSITY=0;;
  2720. no) AM_DEFAULT_VERBOSITY=1;;
  2721. *) AM_DEFAULT_VERBOSITY=1;;
  2722. esac
  2723. am_make=${MAKE-make}
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2725. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2726. if ${am_cv_make_support_nested_variables+:} false; then :
  2727. $as_echo_n "(cached) " >&6
  2728. else
  2729. if $as_echo 'TRUE=$(BAR$(V))
  2730. BAR0=false
  2731. BAR1=true
  2732. V=1
  2733. am__doit:
  2734. @$(TRUE)
  2735. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2736. am_cv_make_support_nested_variables=yes
  2737. else
  2738. am_cv_make_support_nested_variables=no
  2739. fi
  2740. fi
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2742. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2743. if test $am_cv_make_support_nested_variables = yes; then
  2744. AM_V='$(V)'
  2745. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2746. else
  2747. AM_V=$AM_DEFAULT_VERBOSITY
  2748. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2749. fi
  2750. AM_BACKSLASH='\'
  2751. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2752. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2753. # is not polluted with repeated "-I."
  2754. am__isrc=' -I$(srcdir)'
  2755. # test to see if srcdir already configured
  2756. if test -f $srcdir/config.status; then
  2757. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2758. fi
  2759. fi
  2760. # test whether we have cygpath
  2761. if test -z "$CYGPATH_W"; then
  2762. if (cygpath --version) >/dev/null 2>/dev/null; then
  2763. CYGPATH_W='cygpath -w'
  2764. else
  2765. CYGPATH_W=echo
  2766. fi
  2767. fi
  2768. # Define the identity of the package.
  2769. PACKAGE='file'
  2770. VERSION='5.33'
  2771. cat >>confdefs.h <<_ACEOF
  2772. #define PACKAGE "$PACKAGE"
  2773. _ACEOF
  2774. cat >>confdefs.h <<_ACEOF
  2775. #define VERSION "$VERSION"
  2776. _ACEOF
  2777. # Some tools Automake needs.
  2778. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2779. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2780. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2781. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2782. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2783. # For better backward compatibility. To be removed once Automake 1.9.x
  2784. # dies out for good. For more background, see:
  2785. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2786. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2787. mkdir_p='$(MKDIR_P)'
  2788. # We need awk for the "check" target. The system "awk" is bad on
  2789. # some platforms.
  2790. # Always define AMTAR for backward compatibility. Yes, it's still used
  2791. # in the wild :-( We should find a proper way to deprecate it ...
  2792. AMTAR='$${TAR-tar}'
  2793. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2794. # Check whether --enable-silent-rules was given.
  2795. if test "${enable_silent_rules+set}" = set; then :
  2796. enableval=$enable_silent_rules;
  2797. fi
  2798. case $enable_silent_rules in # (((
  2799. yes) AM_DEFAULT_VERBOSITY=0;;
  2800. no) AM_DEFAULT_VERBOSITY=1;;
  2801. *) AM_DEFAULT_VERBOSITY=0;;
  2802. esac
  2803. am_make=${MAKE-make}
  2804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2805. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2806. if ${am_cv_make_support_nested_variables+:} false; then :
  2807. $as_echo_n "(cached) " >&6
  2808. else
  2809. if $as_echo 'TRUE=$(BAR$(V))
  2810. BAR0=false
  2811. BAR1=true
  2812. V=1
  2813. am__doit:
  2814. @$(TRUE)
  2815. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2816. am_cv_make_support_nested_variables=yes
  2817. else
  2818. am_cv_make_support_nested_variables=no
  2819. fi
  2820. fi
  2821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2822. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2823. if test $am_cv_make_support_nested_variables = yes; then
  2824. AM_V='$(V)'
  2825. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2826. else
  2827. AM_V=$AM_DEFAULT_VERBOSITY
  2828. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2829. fi
  2830. AM_BACKSLASH='\'
  2831. ac_config_headers="$ac_config_headers config.h"
  2832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
  2833. $as_echo_n "checking for builtin ELF support... " >&6; }
  2834. # Check whether --enable-elf was given.
  2835. if test "${enable_elf+set}" = set; then :
  2836. enableval=$enable_elf; if test "${enableval}" = yes; then
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2838. $as_echo "yes" >&6; }
  2839. $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
  2840. else
  2841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2842. $as_echo "no" >&6; }
  2843. fi
  2844. else
  2845. # enable by default
  2846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2847. $as_echo "yes" >&6; }
  2848. $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
  2849. fi
  2850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
  2851. $as_echo_n "checking for ELF core file support... " >&6; }
  2852. # Check whether --enable-elf-core was given.
  2853. if test "${enable_elf_core+set}" = set; then :
  2854. enableval=$enable_elf_core; if test "${enableval}" = yes; then
  2855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2856. $as_echo "yes" >&6; }
  2857. $as_echo "#define ELFCORE 1" >>confdefs.h
  2858. else
  2859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2860. $as_echo "no" >&6; }
  2861. fi
  2862. else
  2863. # enable by default
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2865. $as_echo "yes" >&6; }
  2866. $as_echo "#define ELFCORE 1" >>confdefs.h
  2867. fi
  2868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
  2869. $as_echo_n "checking for zlib support... " >&6; }
  2870. # Check whether --enable-zlib was given.
  2871. if test "${enable_zlib+set}" = set; then :
  2872. enableval=$enable_zlib;
  2873. fi
  2874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5
  2875. $as_echo "$enable_zlib" >&6; }
  2876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libseccomp support" >&5
  2877. $as_echo_n "checking for libseccomp support... " >&6; }
  2878. # Check whether --enable-libseccomp was given.
  2879. if test "${enable_libseccomp+set}" = set; then :
  2880. enableval=$enable_libseccomp;
  2881. fi
  2882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libseccomp" >&5
  2883. $as_echo "$enable_libseccomp" >&6; }
  2884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
  2885. $as_echo_n "checking for file formats in man section 5... " >&6; }
  2886. # Check whether --enable-fsect-man5 was given.
  2887. if test "${enable_fsect_man5+set}" = set; then :
  2888. enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2890. $as_echo "yes" >&6; }
  2891. fsect=5
  2892. else
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2894. $as_echo "no" >&6; }
  2895. fsect=4
  2896. fi
  2897. else
  2898. # disable by default
  2899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2900. $as_echo "no" >&6; }
  2901. fsect=4
  2902. fi
  2903. # Make sure we can run config.sub.
  2904. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2905. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2907. $as_echo_n "checking build system type... " >&6; }
  2908. if ${ac_cv_build+:} false; then :
  2909. $as_echo_n "(cached) " >&6
  2910. else
  2911. ac_build_alias=$build_alias
  2912. test "x$ac_build_alias" = x &&
  2913. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2914. test "x$ac_build_alias" = x &&
  2915. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2916. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2917. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2918. fi
  2919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2920. $as_echo "$ac_cv_build" >&6; }
  2921. case $ac_cv_build in
  2922. *-*-*) ;;
  2923. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2924. esac
  2925. build=$ac_cv_build
  2926. ac_save_IFS=$IFS; IFS='-'
  2927. set x $ac_cv_build
  2928. shift
  2929. build_cpu=$1
  2930. build_vendor=$2
  2931. shift; shift
  2932. # Remember, the first character of IFS is used to create $*,
  2933. # except with old shells:
  2934. build_os=$*
  2935. IFS=$ac_save_IFS
  2936. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2938. $as_echo_n "checking host system type... " >&6; }
  2939. if ${ac_cv_host+:} false; then :
  2940. $as_echo_n "(cached) " >&6
  2941. else
  2942. if test "x$host_alias" = x; then
  2943. ac_cv_host=$ac_cv_build
  2944. else
  2945. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2946. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2947. fi
  2948. fi
  2949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2950. $as_echo "$ac_cv_host" >&6; }
  2951. case $ac_cv_host in
  2952. *-*-*) ;;
  2953. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2954. esac
  2955. host=$ac_cv_host
  2956. ac_save_IFS=$IFS; IFS='-'
  2957. set x $ac_cv_host
  2958. shift
  2959. host_cpu=$1
  2960. host_vendor=$2
  2961. shift; shift
  2962. # Remember, the first character of IFS is used to create $*,
  2963. # except with old shells:
  2964. host_os=$*
  2965. IFS=$ac_save_IFS
  2966. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2967. case "$host_os" in
  2968. mingw32*)
  2969. MINGW=1
  2970. ;;
  2971. *)
  2972. MINGW=0
  2973. ;;
  2974. esac
  2975. if test "$MINGW" = 1; then
  2976. MINGW_TRUE=
  2977. MINGW_FALSE='#'
  2978. else
  2979. MINGW_TRUE='#'
  2980. MINGW_FALSE=
  2981. fi
  2982. pkgdatadir='$(datadir)/misc'
  2983. if test x$fsect = x5; then
  2984. FSECT5_TRUE=
  2985. FSECT5_FALSE='#'
  2986. else
  2987. FSECT5_TRUE='#'
  2988. FSECT5_FALSE=
  2989. fi
  2990. DEPDIR="${am__leading_dot}deps"
  2991. ac_config_commands="$ac_config_commands depfiles"
  2992. am_make=${MAKE-make}
  2993. cat > confinc << 'END'
  2994. am__doit:
  2995. @echo this is the am__doit target
  2996. .PHONY: am__doit
  2997. END
  2998. # If we don't find an include directive, just comment out the code.
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3000. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3001. am__include="#"
  3002. am__quote=
  3003. _am_result=none
  3004. # First try GNU make style include.
  3005. echo "include confinc" > confmf
  3006. # Ignore all kinds of additional output from 'make'.
  3007. case `$am_make -s -f confmf 2> /dev/null` in #(
  3008. *the\ am__doit\ target*)
  3009. am__include=include
  3010. am__quote=
  3011. _am_result=GNU
  3012. ;;
  3013. esac
  3014. # Now try BSD make style include.
  3015. if test "$am__include" = "#"; then
  3016. echo '.include "confinc"' > confmf
  3017. case `$am_make -s -f confmf 2> /dev/null` in #(
  3018. *the\ am__doit\ target*)
  3019. am__include=.include
  3020. am__quote="\""
  3021. _am_result=BSD
  3022. ;;
  3023. esac
  3024. fi
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3026. $as_echo "$_am_result" >&6; }
  3027. rm -f confinc confmf
  3028. # Check whether --enable-dependency-tracking was given.
  3029. if test "${enable_dependency_tracking+set}" = set; then :
  3030. enableval=$enable_dependency_tracking;
  3031. fi
  3032. if test "x$enable_dependency_tracking" != xno; then
  3033. am_depcomp="$ac_aux_dir/depcomp"
  3034. AMDEPBACKSLASH='\'
  3035. am__nodep='_no'
  3036. fi
  3037. if test "x$enable_dependency_tracking" != xno; then
  3038. AMDEP_TRUE=
  3039. AMDEP_FALSE='#'
  3040. else
  3041. AMDEP_TRUE='#'
  3042. AMDEP_FALSE=
  3043. fi
  3044. ac_ext=c
  3045. ac_cpp='$CPP $CPPFLAGS'
  3046. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3047. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3048. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3049. if test -n "$ac_tool_prefix"; then
  3050. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3051. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3053. $as_echo_n "checking for $ac_word... " >&6; }
  3054. if ${ac_cv_prog_CC+:} false; then :
  3055. $as_echo_n "(cached) " >&6
  3056. else
  3057. if test -n "$CC"; then
  3058. ac_cv_prog_CC="$CC" # Let the user override the test.
  3059. else
  3060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3061. for as_dir in $PATH
  3062. do
  3063. IFS=$as_save_IFS
  3064. test -z "$as_dir" && as_dir=.
  3065. for ac_exec_ext in '' $ac_executable_extensions; do
  3066. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3067. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3068. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3069. break 2
  3070. fi
  3071. done
  3072. done
  3073. IFS=$as_save_IFS
  3074. fi
  3075. fi
  3076. CC=$ac_cv_prog_CC
  3077. if test -n "$CC"; then
  3078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3079. $as_echo "$CC" >&6; }
  3080. else
  3081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3082. $as_echo "no" >&6; }
  3083. fi
  3084. fi
  3085. if test -z "$ac_cv_prog_CC"; then
  3086. ac_ct_CC=$CC
  3087. # Extract the first word of "gcc", so it can be a program name with args.
  3088. set dummy gcc; ac_word=$2
  3089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3090. $as_echo_n "checking for $ac_word... " >&6; }
  3091. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3092. $as_echo_n "(cached) " >&6
  3093. else
  3094. if test -n "$ac_ct_CC"; then
  3095. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3096. else
  3097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3098. for as_dir in $PATH
  3099. do
  3100. IFS=$as_save_IFS
  3101. test -z "$as_dir" && as_dir=.
  3102. for ac_exec_ext in '' $ac_executable_extensions; do
  3103. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3104. ac_cv_prog_ac_ct_CC="gcc"
  3105. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3106. break 2
  3107. fi
  3108. done
  3109. done
  3110. IFS=$as_save_IFS
  3111. fi
  3112. fi
  3113. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3114. if test -n "$ac_ct_CC"; then
  3115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3116. $as_echo "$ac_ct_CC" >&6; }
  3117. else
  3118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3119. $as_echo "no" >&6; }
  3120. fi
  3121. if test "x$ac_ct_CC" = x; then
  3122. CC=""
  3123. else
  3124. case $cross_compiling:$ac_tool_warned in
  3125. yes:)
  3126. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3127. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3128. ac_tool_warned=yes ;;
  3129. esac
  3130. CC=$ac_ct_CC
  3131. fi
  3132. else
  3133. CC="$ac_cv_prog_CC"
  3134. fi
  3135. if test -z "$CC"; then
  3136. if test -n "$ac_tool_prefix"; then
  3137. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3138. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3140. $as_echo_n "checking for $ac_word... " >&6; }
  3141. if ${ac_cv_prog_CC+:} false; then :
  3142. $as_echo_n "(cached) " >&6
  3143. else
  3144. if test -n "$CC"; then
  3145. ac_cv_prog_CC="$CC" # Let the user override the test.
  3146. else
  3147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3148. for as_dir in $PATH
  3149. do
  3150. IFS=$as_save_IFS
  3151. test -z "$as_dir" && as_dir=.
  3152. for ac_exec_ext in '' $ac_executable_extensions; do
  3153. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3154. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3155. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3156. break 2
  3157. fi
  3158. done
  3159. done
  3160. IFS=$as_save_IFS
  3161. fi
  3162. fi
  3163. CC=$ac_cv_prog_CC
  3164. if test -n "$CC"; then
  3165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3166. $as_echo "$CC" >&6; }
  3167. else
  3168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3169. $as_echo "no" >&6; }
  3170. fi
  3171. fi
  3172. fi
  3173. if test -z "$CC"; then
  3174. # Extract the first word of "cc", so it can be a program name with args.
  3175. set dummy cc; ac_word=$2
  3176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3177. $as_echo_n "checking for $ac_word... " >&6; }
  3178. if ${ac_cv_prog_CC+:} false; then :
  3179. $as_echo_n "(cached) " >&6
  3180. else
  3181. if test -n "$CC"; then
  3182. ac_cv_prog_CC="$CC" # Let the user override the test.
  3183. else
  3184. ac_prog_rejected=no
  3185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3186. for as_dir in $PATH
  3187. do
  3188. IFS=$as_save_IFS
  3189. test -z "$as_dir" && as_dir=.
  3190. for ac_exec_ext in '' $ac_executable_extensions; do
  3191. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3192. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3193. ac_prog_rejected=yes
  3194. continue
  3195. fi
  3196. ac_cv_prog_CC="cc"
  3197. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3198. break 2
  3199. fi
  3200. done
  3201. done
  3202. IFS=$as_save_IFS
  3203. if test $ac_prog_rejected = yes; then
  3204. # We found a bogon in the path, so make sure we never use it.
  3205. set dummy $ac_cv_prog_CC
  3206. shift
  3207. if test $# != 0; then
  3208. # We chose a different compiler from the bogus one.
  3209. # However, it has the same basename, so the bogon will be chosen
  3210. # first if we set CC to just the basename; use the full file name.
  3211. shift
  3212. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3213. fi
  3214. fi
  3215. fi
  3216. fi
  3217. CC=$ac_cv_prog_CC
  3218. if test -n "$CC"; then
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3220. $as_echo "$CC" >&6; }
  3221. else
  3222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3223. $as_echo "no" >&6; }
  3224. fi
  3225. fi
  3226. if test -z "$CC"; then
  3227. if test -n "$ac_tool_prefix"; then
  3228. for ac_prog in cl.exe
  3229. do
  3230. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3231. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3233. $as_echo_n "checking for $ac_word... " >&6; }
  3234. if ${ac_cv_prog_CC+:} false; then :
  3235. $as_echo_n "(cached) " >&6
  3236. else
  3237. if test -n "$CC"; then
  3238. ac_cv_prog_CC="$CC" # Let the user override the test.
  3239. else
  3240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3241. for as_dir in $PATH
  3242. do
  3243. IFS=$as_save_IFS
  3244. test -z "$as_dir" && as_dir=.
  3245. for ac_exec_ext in '' $ac_executable_extensions; do
  3246. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3247. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3248. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3249. break 2
  3250. fi
  3251. done
  3252. done
  3253. IFS=$as_save_IFS
  3254. fi
  3255. fi
  3256. CC=$ac_cv_prog_CC
  3257. if test -n "$CC"; then
  3258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3259. $as_echo "$CC" >&6; }
  3260. else
  3261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3262. $as_echo "no" >&6; }
  3263. fi
  3264. test -n "$CC" && break
  3265. done
  3266. fi
  3267. if test -z "$CC"; then
  3268. ac_ct_CC=$CC
  3269. for ac_prog in cl.exe
  3270. do
  3271. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3272. set dummy $ac_prog; ac_word=$2
  3273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3274. $as_echo_n "checking for $ac_word... " >&6; }
  3275. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3276. $as_echo_n "(cached) " >&6
  3277. else
  3278. if test -n "$ac_ct_CC"; then
  3279. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3280. else
  3281. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3282. for as_dir in $PATH
  3283. do
  3284. IFS=$as_save_IFS
  3285. test -z "$as_dir" && as_dir=.
  3286. for ac_exec_ext in '' $ac_executable_extensions; do
  3287. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3288. ac_cv_prog_ac_ct_CC="$ac_prog"
  3289. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3290. break 2
  3291. fi
  3292. done
  3293. done
  3294. IFS=$as_save_IFS
  3295. fi
  3296. fi
  3297. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3298. if test -n "$ac_ct_CC"; then
  3299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3300. $as_echo "$ac_ct_CC" >&6; }
  3301. else
  3302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3303. $as_echo "no" >&6; }
  3304. fi
  3305. test -n "$ac_ct_CC" && break
  3306. done
  3307. if test "x$ac_ct_CC" = x; then
  3308. CC=""
  3309. else
  3310. case $cross_compiling:$ac_tool_warned in
  3311. yes:)
  3312. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3313. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3314. ac_tool_warned=yes ;;
  3315. esac
  3316. CC=$ac_ct_CC
  3317. fi
  3318. fi
  3319. fi
  3320. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3321. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3322. as_fn_error $? "no acceptable C compiler found in \$PATH
  3323. See \`config.log' for more details" "$LINENO" 5; }
  3324. # Provide some information about the compiler.
  3325. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3326. set X $ac_compile
  3327. ac_compiler=$2
  3328. for ac_option in --version -v -V -qversion; do
  3329. { { ac_try="$ac_compiler $ac_option >&5"
  3330. case "(($ac_try" in
  3331. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3332. *) ac_try_echo=$ac_try;;
  3333. esac
  3334. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3335. $as_echo "$ac_try_echo"; } >&5
  3336. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3337. ac_status=$?
  3338. if test -s conftest.err; then
  3339. sed '10a\
  3340. ... rest of stderr output deleted ...
  3341. 10q' conftest.err >conftest.er1
  3342. cat conftest.er1 >&5
  3343. fi
  3344. rm -f conftest.er1 conftest.err
  3345. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3346. test $ac_status = 0; }
  3347. done
  3348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3349. /* end confdefs.h. */
  3350. int
  3351. main ()
  3352. {
  3353. ;
  3354. return 0;
  3355. }
  3356. _ACEOF
  3357. ac_clean_files_save=$ac_clean_files
  3358. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3359. # Try to create an executable without -o first, disregard a.out.
  3360. # It will help us diagnose broken compilers, and finding out an intuition
  3361. # of exeext.
  3362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3363. $as_echo_n "checking whether the C compiler works... " >&6; }
  3364. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3365. # The possible output files:
  3366. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3367. ac_rmfiles=
  3368. for ac_file in $ac_files
  3369. do
  3370. case $ac_file in
  3371. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3372. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3373. esac
  3374. done
  3375. rm -f $ac_rmfiles
  3376. if { { ac_try="$ac_link_default"
  3377. case "(($ac_try" in
  3378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3379. *) ac_try_echo=$ac_try;;
  3380. esac
  3381. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3382. $as_echo "$ac_try_echo"; } >&5
  3383. (eval "$ac_link_default") 2>&5
  3384. ac_status=$?
  3385. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3386. test $ac_status = 0; }; then :
  3387. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3388. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3389. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3390. # so that the user can short-circuit this test for compilers unknown to
  3391. # Autoconf.
  3392. for ac_file in $ac_files ''
  3393. do
  3394. test -f "$ac_file" || continue
  3395. case $ac_file in
  3396. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3397. ;;
  3398. [ab].out )
  3399. # We found the default executable, but exeext='' is most
  3400. # certainly right.
  3401. break;;
  3402. *.* )
  3403. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3404. then :; else
  3405. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3406. fi
  3407. # We set ac_cv_exeext here because the later test for it is not
  3408. # safe: cross compilers may not add the suffix if given an `-o'
  3409. # argument, so we may need to know it at that point already.
  3410. # Even if this section looks crufty: it has the advantage of
  3411. # actually working.
  3412. break;;
  3413. * )
  3414. break;;
  3415. esac
  3416. done
  3417. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3418. else
  3419. ac_file=''
  3420. fi
  3421. if test -z "$ac_file"; then :
  3422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3423. $as_echo "no" >&6; }
  3424. $as_echo "$as_me: failed program was:" >&5
  3425. sed 's/^/| /' conftest.$ac_ext >&5
  3426. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3427. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3428. as_fn_error 77 "C compiler cannot create executables
  3429. See \`config.log' for more details" "$LINENO" 5; }
  3430. else
  3431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3432. $as_echo "yes" >&6; }
  3433. fi
  3434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3435. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3437. $as_echo "$ac_file" >&6; }
  3438. ac_exeext=$ac_cv_exeext
  3439. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3440. ac_clean_files=$ac_clean_files_save
  3441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3442. $as_echo_n "checking for suffix of executables... " >&6; }
  3443. if { { ac_try="$ac_link"
  3444. case "(($ac_try" in
  3445. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3446. *) ac_try_echo=$ac_try;;
  3447. esac
  3448. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3449. $as_echo "$ac_try_echo"; } >&5
  3450. (eval "$ac_link") 2>&5
  3451. ac_status=$?
  3452. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3453. test $ac_status = 0; }; then :
  3454. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3455. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3456. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3457. # `rm'.
  3458. for ac_file in conftest.exe conftest conftest.*; do
  3459. test -f "$ac_file" || continue
  3460. case $ac_file in
  3461. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3462. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3463. break;;
  3464. * ) break;;
  3465. esac
  3466. done
  3467. else
  3468. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3469. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3470. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3471. See \`config.log' for more details" "$LINENO" 5; }
  3472. fi
  3473. rm -f conftest conftest$ac_cv_exeext
  3474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3475. $as_echo "$ac_cv_exeext" >&6; }
  3476. rm -f conftest.$ac_ext
  3477. EXEEXT=$ac_cv_exeext
  3478. ac_exeext=$EXEEXT
  3479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3480. /* end confdefs.h. */
  3481. #include <stdio.h>
  3482. int
  3483. main ()
  3484. {
  3485. FILE *f = fopen ("conftest.out", "w");
  3486. return ferror (f) || fclose (f) != 0;
  3487. ;
  3488. return 0;
  3489. }
  3490. _ACEOF
  3491. ac_clean_files="$ac_clean_files conftest.out"
  3492. # Check that the compiler produces executables we can run. If not, either
  3493. # the compiler is broken, or we cross compile.
  3494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3495. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3496. if test "$cross_compiling" != yes; then
  3497. { { ac_try="$ac_link"
  3498. case "(($ac_try" in
  3499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3500. *) ac_try_echo=$ac_try;;
  3501. esac
  3502. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3503. $as_echo "$ac_try_echo"; } >&5
  3504. (eval "$ac_link") 2>&5
  3505. ac_status=$?
  3506. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3507. test $ac_status = 0; }
  3508. if { ac_try='./conftest$ac_cv_exeext'
  3509. { { case "(($ac_try" in
  3510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3511. *) ac_try_echo=$ac_try;;
  3512. esac
  3513. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3514. $as_echo "$ac_try_echo"; } >&5
  3515. (eval "$ac_try") 2>&5
  3516. ac_status=$?
  3517. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3518. test $ac_status = 0; }; }; then
  3519. cross_compiling=no
  3520. else
  3521. if test "$cross_compiling" = maybe; then
  3522. cross_compiling=yes
  3523. else
  3524. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3525. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3526. as_fn_error $? "cannot run C compiled programs.
  3527. If you meant to cross compile, use \`--host'.
  3528. See \`config.log' for more details" "$LINENO" 5; }
  3529. fi
  3530. fi
  3531. fi
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3533. $as_echo "$cross_compiling" >&6; }
  3534. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3535. ac_clean_files=$ac_clean_files_save
  3536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3537. $as_echo_n "checking for suffix of object files... " >&6; }
  3538. if ${ac_cv_objext+:} false; then :
  3539. $as_echo_n "(cached) " >&6
  3540. else
  3541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3542. /* end confdefs.h. */
  3543. int
  3544. main ()
  3545. {
  3546. ;
  3547. return 0;
  3548. }
  3549. _ACEOF
  3550. rm -f conftest.o conftest.obj
  3551. if { { ac_try="$ac_compile"
  3552. case "(($ac_try" in
  3553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3554. *) ac_try_echo=$ac_try;;
  3555. esac
  3556. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3557. $as_echo "$ac_try_echo"; } >&5
  3558. (eval "$ac_compile") 2>&5
  3559. ac_status=$?
  3560. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3561. test $ac_status = 0; }; then :
  3562. for ac_file in conftest.o conftest.obj conftest.*; do
  3563. test -f "$ac_file" || continue;
  3564. case $ac_file in
  3565. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3566. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3567. break;;
  3568. esac
  3569. done
  3570. else
  3571. $as_echo "$as_me: failed program was:" >&5
  3572. sed 's/^/| /' conftest.$ac_ext >&5
  3573. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3574. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3575. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3576. See \`config.log' for more details" "$LINENO" 5; }
  3577. fi
  3578. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3579. fi
  3580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3581. $as_echo "$ac_cv_objext" >&6; }
  3582. OBJEXT=$ac_cv_objext
  3583. ac_objext=$OBJEXT
  3584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3585. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3586. if ${ac_cv_c_compiler_gnu+:} false; then :
  3587. $as_echo_n "(cached) " >&6
  3588. else
  3589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3590. /* end confdefs.h. */
  3591. int
  3592. main ()
  3593. {
  3594. #ifndef __GNUC__
  3595. choke me
  3596. #endif
  3597. ;
  3598. return 0;
  3599. }
  3600. _ACEOF
  3601. if ac_fn_c_try_compile "$LINENO"; then :
  3602. ac_compiler_gnu=yes
  3603. else
  3604. ac_compiler_gnu=no
  3605. fi
  3606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3607. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3608. fi
  3609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3610. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3611. if test $ac_compiler_gnu = yes; then
  3612. GCC=yes
  3613. else
  3614. GCC=
  3615. fi
  3616. ac_test_CFLAGS=${CFLAGS+set}
  3617. ac_save_CFLAGS=$CFLAGS
  3618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3619. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3620. if ${ac_cv_prog_cc_g+:} false; then :
  3621. $as_echo_n "(cached) " >&6
  3622. else
  3623. ac_save_c_werror_flag=$ac_c_werror_flag
  3624. ac_c_werror_flag=yes
  3625. ac_cv_prog_cc_g=no
  3626. CFLAGS="-g"
  3627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3628. /* end confdefs.h. */
  3629. int
  3630. main ()
  3631. {
  3632. ;
  3633. return 0;
  3634. }
  3635. _ACEOF
  3636. if ac_fn_c_try_compile "$LINENO"; then :
  3637. ac_cv_prog_cc_g=yes
  3638. else
  3639. CFLAGS=""
  3640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3641. /* end confdefs.h. */
  3642. int
  3643. main ()
  3644. {
  3645. ;
  3646. return 0;
  3647. }
  3648. _ACEOF
  3649. if ac_fn_c_try_compile "$LINENO"; then :
  3650. else
  3651. ac_c_werror_flag=$ac_save_c_werror_flag
  3652. CFLAGS="-g"
  3653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3654. /* end confdefs.h. */
  3655. int
  3656. main ()
  3657. {
  3658. ;
  3659. return 0;
  3660. }
  3661. _ACEOF
  3662. if ac_fn_c_try_compile "$LINENO"; then :
  3663. ac_cv_prog_cc_g=yes
  3664. fi
  3665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3666. fi
  3667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3668. fi
  3669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3670. ac_c_werror_flag=$ac_save_c_werror_flag
  3671. fi
  3672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3673. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3674. if test "$ac_test_CFLAGS" = set; then
  3675. CFLAGS=$ac_save_CFLAGS
  3676. elif test $ac_cv_prog_cc_g = yes; then
  3677. if test "$GCC" = yes; then
  3678. CFLAGS="-g -O2"
  3679. else
  3680. CFLAGS="-g"
  3681. fi
  3682. else
  3683. if test "$GCC" = yes; then
  3684. CFLAGS="-O2"
  3685. else
  3686. CFLAGS=
  3687. fi
  3688. fi
  3689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3690. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3691. if ${ac_cv_prog_cc_c89+:} false; then :
  3692. $as_echo_n "(cached) " >&6
  3693. else
  3694. ac_cv_prog_cc_c89=no
  3695. ac_save_CC=$CC
  3696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3697. /* end confdefs.h. */
  3698. #include <stdarg.h>
  3699. #include <stdio.h>
  3700. struct stat;
  3701. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3702. struct buf { int x; };
  3703. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3704. static char *e (p, i)
  3705. char **p;
  3706. int i;
  3707. {
  3708. return p[i];
  3709. }
  3710. static char *f (char * (*g) (char **, int), char **p, ...)
  3711. {
  3712. char *s;
  3713. va_list v;
  3714. va_start (v,p);
  3715. s = g (p, va_arg (v,int));
  3716. va_end (v);
  3717. return s;
  3718. }
  3719. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3720. function prototypes and stuff, but not '\xHH' hex character constants.
  3721. These don't provoke an error unfortunately, instead are silently treated
  3722. as 'x'. The following induces an error, until -std is added to get
  3723. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3724. array size at least. It's necessary to write '\x00'==0 to get something
  3725. that's true only with -std. */
  3726. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3727. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3728. inside strings and character constants. */
  3729. #define FOO(x) 'x'
  3730. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3731. int test (int i, double x);
  3732. struct s1 {int (*f) (int a);};
  3733. struct s2 {int (*f) (double a);};
  3734. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3735. int argc;
  3736. char **argv;
  3737. int
  3738. main ()
  3739. {
  3740. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3741. ;
  3742. return 0;
  3743. }
  3744. _ACEOF
  3745. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3746. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3747. do
  3748. CC="$ac_save_CC $ac_arg"
  3749. if ac_fn_c_try_compile "$LINENO"; then :
  3750. ac_cv_prog_cc_c89=$ac_arg
  3751. fi
  3752. rm -f core conftest.err conftest.$ac_objext
  3753. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3754. done
  3755. rm -f conftest.$ac_ext
  3756. CC=$ac_save_CC
  3757. fi
  3758. # AC_CACHE_VAL
  3759. case "x$ac_cv_prog_cc_c89" in
  3760. x)
  3761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3762. $as_echo "none needed" >&6; } ;;
  3763. xno)
  3764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3765. $as_echo "unsupported" >&6; } ;;
  3766. *)
  3767. CC="$CC $ac_cv_prog_cc_c89"
  3768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3769. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3770. esac
  3771. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3772. fi
  3773. ac_ext=c
  3774. ac_cpp='$CPP $CPPFLAGS'
  3775. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3776. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3777. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3778. depcc="$CC" am_compiler_list=
  3779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3780. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3781. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3782. $as_echo_n "(cached) " >&6
  3783. else
  3784. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3785. # We make a subdir and do the tests there. Otherwise we can end up
  3786. # making bogus files that we don't know about and never remove. For
  3787. # instance it was reported that on HP-UX the gcc test will end up
  3788. # making a dummy file named 'D' -- because '-MD' means "put the output
  3789. # in D".
  3790. rm -rf conftest.dir
  3791. mkdir conftest.dir
  3792. # Copy depcomp to subdir because otherwise we won't find it if we're
  3793. # using a relative directory.
  3794. cp "$am_depcomp" conftest.dir
  3795. cd conftest.dir
  3796. # We will build objects and dependencies in a subdirectory because
  3797. # it helps to detect inapplicable dependency modes. For instance
  3798. # both Tru64's cc and ICC support -MD to output dependencies as a
  3799. # side effect of compilation, but ICC will put the dependencies in
  3800. # the current directory while Tru64 will put them in the object
  3801. # directory.
  3802. mkdir sub
  3803. am_cv_CC_dependencies_compiler_type=none
  3804. if test "$am_compiler_list" = ""; then
  3805. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3806. fi
  3807. am__universal=false
  3808. case " $depcc " in #(
  3809. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3810. esac
  3811. for depmode in $am_compiler_list; do
  3812. # Setup a source with many dependencies, because some compilers
  3813. # like to wrap large dependency lists on column 80 (with \), and
  3814. # we should not choose a depcomp mode which is confused by this.
  3815. #
  3816. # We need to recreate these files for each test, as the compiler may
  3817. # overwrite some of them when testing with obscure command lines.
  3818. # This happens at least with the AIX C compiler.
  3819. : > sub/conftest.c
  3820. for i in 1 2 3 4 5 6; do
  3821. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3822. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3823. # Solaris 10 /bin/sh.
  3824. echo '/* dummy */' > sub/conftst$i.h
  3825. done
  3826. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3827. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3828. # mode. It turns out that the SunPro C++ compiler does not properly
  3829. # handle '-M -o', and we need to detect this. Also, some Intel
  3830. # versions had trouble with output in subdirs.
  3831. am__obj=sub/conftest.${OBJEXT-o}
  3832. am__minus_obj="-o $am__obj"
  3833. case $depmode in
  3834. gcc)
  3835. # This depmode causes a compiler race in universal mode.
  3836. test "$am__universal" = false || continue
  3837. ;;
  3838. nosideeffect)
  3839. # After this tag, mechanisms are not by side-effect, so they'll
  3840. # only be used when explicitly requested.
  3841. if test "x$enable_dependency_tracking" = xyes; then
  3842. continue
  3843. else
  3844. break
  3845. fi
  3846. ;;
  3847. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3848. # This compiler won't grok '-c -o', but also, the minuso test has
  3849. # not run yet. These depmodes are late enough in the game, and
  3850. # so weak that their functioning should not be impacted.
  3851. am__obj=conftest.${OBJEXT-o}
  3852. am__minus_obj=
  3853. ;;
  3854. none) break ;;
  3855. esac
  3856. if depmode=$depmode \
  3857. source=sub/conftest.c object=$am__obj \
  3858. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3859. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3860. >/dev/null 2>conftest.err &&
  3861. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3862. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3863. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3864. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3865. # icc doesn't choke on unknown options, it will just issue warnings
  3866. # or remarks (even with -Werror). So we grep stderr for any message
  3867. # that says an option was ignored or not supported.
  3868. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3869. # icc: Command line warning: ignoring option '-M'; no argument required
  3870. # The diagnosis changed in icc 8.0:
  3871. # icc: Command line remark: option '-MP' not supported
  3872. if (grep 'ignoring option' conftest.err ||
  3873. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3874. am_cv_CC_dependencies_compiler_type=$depmode
  3875. break
  3876. fi
  3877. fi
  3878. done
  3879. cd ..
  3880. rm -rf conftest.dir
  3881. else
  3882. am_cv_CC_dependencies_compiler_type=none
  3883. fi
  3884. fi
  3885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3886. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3887. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3888. if
  3889. test "x$enable_dependency_tracking" != xno \
  3890. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3891. am__fastdepCC_TRUE=
  3892. am__fastdepCC_FALSE='#'
  3893. else
  3894. am__fastdepCC_TRUE='#'
  3895. am__fastdepCC_FALSE=
  3896. fi
  3897. case $ac_cv_prog_cc_stdc in #(
  3898. no) :
  3899. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  3900. *) :
  3901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3902. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3903. if ${ac_cv_prog_cc_c99+:} false; then :
  3904. $as_echo_n "(cached) " >&6
  3905. else
  3906. ac_cv_prog_cc_c99=no
  3907. ac_save_CC=$CC
  3908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3909. /* end confdefs.h. */
  3910. #include <stdarg.h>
  3911. #include <stdbool.h>
  3912. #include <stdlib.h>
  3913. #include <wchar.h>
  3914. #include <stdio.h>
  3915. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3916. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3917. #define showlist(...) puts (#__VA_ARGS__)
  3918. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3919. static void
  3920. test_varargs_macros (void)
  3921. {
  3922. int x = 1234;
  3923. int y = 5678;
  3924. debug ("Flag");
  3925. debug ("X = %d\n", x);
  3926. showlist (The first, second, and third items.);
  3927. report (x>y, "x is %d but y is %d", x, y);
  3928. }
  3929. // Check long long types.
  3930. #define BIG64 18446744073709551615ull
  3931. #define BIG32 4294967295ul
  3932. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3933. #if !BIG_OK
  3934. your preprocessor is broken;
  3935. #endif
  3936. #if BIG_OK
  3937. #else
  3938. your preprocessor is broken;
  3939. #endif
  3940. static long long int bignum = -9223372036854775807LL;
  3941. static unsigned long long int ubignum = BIG64;
  3942. struct incomplete_array
  3943. {
  3944. int datasize;
  3945. double data[];
  3946. };
  3947. struct named_init {
  3948. int number;
  3949. const wchar_t *name;
  3950. double average;
  3951. };
  3952. typedef const char *ccp;
  3953. static inline int
  3954. test_restrict (ccp restrict text)
  3955. {
  3956. // See if C++-style comments work.
  3957. // Iterate through items via the restricted pointer.
  3958. // Also check for declarations in for loops.
  3959. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3960. continue;
  3961. return 0;
  3962. }
  3963. // Check varargs and va_copy.
  3964. static void
  3965. test_varargs (const char *format, ...)
  3966. {
  3967. va_list args;
  3968. va_start (args, format);
  3969. va_list args_copy;
  3970. va_copy (args_copy, args);
  3971. const char *str;
  3972. int number;
  3973. float fnumber;
  3974. while (*format)
  3975. {
  3976. switch (*format++)
  3977. {
  3978. case 's': // string
  3979. str = va_arg (args_copy, const char *);
  3980. break;
  3981. case 'd': // int
  3982. number = va_arg (args_copy, int);
  3983. break;
  3984. case 'f': // float
  3985. fnumber = va_arg (args_copy, double);
  3986. break;
  3987. default:
  3988. break;
  3989. }
  3990. }
  3991. va_end (args_copy);
  3992. va_end (args);
  3993. }
  3994. int
  3995. main ()
  3996. {
  3997. // Check bool.
  3998. _Bool success = false;
  3999. // Check restrict.
  4000. if (test_restrict ("String literal") == 0)
  4001. success = true;
  4002. char *restrict newvar = "Another string";
  4003. // Check varargs.
  4004. test_varargs ("s, d' f .", "string", 65, 34.234);
  4005. test_varargs_macros ();
  4006. // Check flexible array members.
  4007. struct incomplete_array *ia =
  4008. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  4009. ia->datasize = 10;
  4010. for (int i = 0; i < ia->datasize; ++i)
  4011. ia->data[i] = i * 1.234;
  4012. // Check named initializers.
  4013. struct named_init ni = {
  4014. .number = 34,
  4015. .name = L"Test wide string",
  4016. .average = 543.34343,
  4017. };
  4018. ni.number = 58;
  4019. int dynamic_array[ni.number];
  4020. dynamic_array[ni.number - 1] = 543;
  4021. // work around unused variable warnings
  4022. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  4023. || dynamic_array[ni.number - 1] != 543);
  4024. ;
  4025. return 0;
  4026. }
  4027. _ACEOF
  4028. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  4029. do
  4030. CC="$ac_save_CC $ac_arg"
  4031. if ac_fn_c_try_compile "$LINENO"; then :
  4032. ac_cv_prog_cc_c99=$ac_arg
  4033. fi
  4034. rm -f core conftest.err conftest.$ac_objext
  4035. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4036. done
  4037. rm -f conftest.$ac_ext
  4038. CC=$ac_save_CC
  4039. fi
  4040. # AC_CACHE_VAL
  4041. case "x$ac_cv_prog_cc_c99" in
  4042. x)
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4044. $as_echo "none needed" >&6; } ;;
  4045. xno)
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4047. $as_echo "unsupported" >&6; } ;;
  4048. *)
  4049. CC="$CC $ac_cv_prog_cc_c99"
  4050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4051. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  4052. esac
  4053. if test "x$ac_cv_prog_cc_c99" != xno; then :
  4054. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4055. else
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4057. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4058. if ${ac_cv_prog_cc_c89+:} false; then :
  4059. $as_echo_n "(cached) " >&6
  4060. else
  4061. ac_cv_prog_cc_c89=no
  4062. ac_save_CC=$CC
  4063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4064. /* end confdefs.h. */
  4065. #include <stdarg.h>
  4066. #include <stdio.h>
  4067. struct stat;
  4068. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4069. struct buf { int x; };
  4070. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4071. static char *e (p, i)
  4072. char **p;
  4073. int i;
  4074. {
  4075. return p[i];
  4076. }
  4077. static char *f (char * (*g) (char **, int), char **p, ...)
  4078. {
  4079. char *s;
  4080. va_list v;
  4081. va_start (v,p);
  4082. s = g (p, va_arg (v,int));
  4083. va_end (v);
  4084. return s;
  4085. }
  4086. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4087. function prototypes and stuff, but not '\xHH' hex character constants.
  4088. These don't provoke an error unfortunately, instead are silently treated
  4089. as 'x'. The following induces an error, until -std is added to get
  4090. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4091. array size at least. It's necessary to write '\x00'==0 to get something
  4092. that's true only with -std. */
  4093. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4094. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4095. inside strings and character constants. */
  4096. #define FOO(x) 'x'
  4097. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4098. int test (int i, double x);
  4099. struct s1 {int (*f) (int a);};
  4100. struct s2 {int (*f) (double a);};
  4101. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4102. int argc;
  4103. char **argv;
  4104. int
  4105. main ()
  4106. {
  4107. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4108. ;
  4109. return 0;
  4110. }
  4111. _ACEOF
  4112. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4113. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4114. do
  4115. CC="$ac_save_CC $ac_arg"
  4116. if ac_fn_c_try_compile "$LINENO"; then :
  4117. ac_cv_prog_cc_c89=$ac_arg
  4118. fi
  4119. rm -f core conftest.err conftest.$ac_objext
  4120. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4121. done
  4122. rm -f conftest.$ac_ext
  4123. CC=$ac_save_CC
  4124. fi
  4125. # AC_CACHE_VAL
  4126. case "x$ac_cv_prog_cc_c89" in
  4127. x)
  4128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4129. $as_echo "none needed" >&6; } ;;
  4130. xno)
  4131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4132. $as_echo "unsupported" >&6; } ;;
  4133. *)
  4134. CC="$CC $ac_cv_prog_cc_c89"
  4135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4136. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4137. esac
  4138. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4139. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4140. else
  4141. ac_cv_prog_cc_stdc=no
  4142. fi
  4143. fi
  4144. ;;
  4145. esac
  4146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  4147. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  4148. if ${ac_cv_prog_cc_stdc+:} false; then :
  4149. $as_echo_n "(cached) " >&6
  4150. fi
  4151. case $ac_cv_prog_cc_stdc in #(
  4152. no) :
  4153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4154. $as_echo "unsupported" >&6; } ;; #(
  4155. '') :
  4156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4157. $as_echo "none needed" >&6; } ;; #(
  4158. *) :
  4159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  4160. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  4161. esac
  4162. ac_ext=c
  4163. ac_cpp='$CPP $CPPFLAGS'
  4164. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4165. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4166. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4168. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4169. # On Suns, sometimes $CPP names a directory.
  4170. if test -n "$CPP" && test -d "$CPP"; then
  4171. CPP=
  4172. fi
  4173. if test -z "$CPP"; then
  4174. if ${ac_cv_prog_CPP+:} false; then :
  4175. $as_echo_n "(cached) " >&6
  4176. else
  4177. # Double quotes because CPP needs to be expanded
  4178. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4179. do
  4180. ac_preproc_ok=false
  4181. for ac_c_preproc_warn_flag in '' yes
  4182. do
  4183. # Use a header file that comes with gcc, so configuring glibc
  4184. # with a fresh cross-compiler works.
  4185. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4186. # <limits.h> exists even on freestanding compilers.
  4187. # On the NeXT, cc -E runs the code through the compiler's parser,
  4188. # not just through cpp. "Syntax error" is here to catch this case.
  4189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4190. /* end confdefs.h. */
  4191. #ifdef __STDC__
  4192. # include <limits.h>
  4193. #else
  4194. # include <assert.h>
  4195. #endif
  4196. Syntax error
  4197. _ACEOF
  4198. if ac_fn_c_try_cpp "$LINENO"; then :
  4199. else
  4200. # Broken: fails on valid input.
  4201. continue
  4202. fi
  4203. rm -f conftest.err conftest.i conftest.$ac_ext
  4204. # OK, works on sane cases. Now check whether nonexistent headers
  4205. # can be detected and how.
  4206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4207. /* end confdefs.h. */
  4208. #include <ac_nonexistent.h>
  4209. _ACEOF
  4210. if ac_fn_c_try_cpp "$LINENO"; then :
  4211. # Broken: success on invalid input.
  4212. continue
  4213. else
  4214. # Passes both tests.
  4215. ac_preproc_ok=:
  4216. break
  4217. fi
  4218. rm -f conftest.err conftest.i conftest.$ac_ext
  4219. done
  4220. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4221. rm -f conftest.i conftest.err conftest.$ac_ext
  4222. if $ac_preproc_ok; then :
  4223. break
  4224. fi
  4225. done
  4226. ac_cv_prog_CPP=$CPP
  4227. fi
  4228. CPP=$ac_cv_prog_CPP
  4229. else
  4230. ac_cv_prog_CPP=$CPP
  4231. fi
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4233. $as_echo "$CPP" >&6; }
  4234. ac_preproc_ok=false
  4235. for ac_c_preproc_warn_flag in '' yes
  4236. do
  4237. # Use a header file that comes with gcc, so configuring glibc
  4238. # with a fresh cross-compiler works.
  4239. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4240. # <limits.h> exists even on freestanding compilers.
  4241. # On the NeXT, cc -E runs the code through the compiler's parser,
  4242. # not just through cpp. "Syntax error" is here to catch this case.
  4243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4244. /* end confdefs.h. */
  4245. #ifdef __STDC__
  4246. # include <limits.h>
  4247. #else
  4248. # include <assert.h>
  4249. #endif
  4250. Syntax error
  4251. _ACEOF
  4252. if ac_fn_c_try_cpp "$LINENO"; then :
  4253. else
  4254. # Broken: fails on valid input.
  4255. continue
  4256. fi
  4257. rm -f conftest.err conftest.i conftest.$ac_ext
  4258. # OK, works on sane cases. Now check whether nonexistent headers
  4259. # can be detected and how.
  4260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4261. /* end confdefs.h. */
  4262. #include <ac_nonexistent.h>
  4263. _ACEOF
  4264. if ac_fn_c_try_cpp "$LINENO"; then :
  4265. # Broken: success on invalid input.
  4266. continue
  4267. else
  4268. # Passes both tests.
  4269. ac_preproc_ok=:
  4270. break
  4271. fi
  4272. rm -f conftest.err conftest.i conftest.$ac_ext
  4273. done
  4274. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4275. rm -f conftest.i conftest.err conftest.$ac_ext
  4276. if $ac_preproc_ok; then :
  4277. else
  4278. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4279. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4280. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4281. See \`config.log' for more details" "$LINENO" 5; }
  4282. fi
  4283. ac_ext=c
  4284. ac_cpp='$CPP $CPPFLAGS'
  4285. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4286. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4287. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4289. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4290. if ${ac_cv_path_GREP+:} false; then :
  4291. $as_echo_n "(cached) " >&6
  4292. else
  4293. if test -z "$GREP"; then
  4294. ac_path_GREP_found=false
  4295. # Loop through the user's path and test for each of PROGNAME-LIST
  4296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4297. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4298. do
  4299. IFS=$as_save_IFS
  4300. test -z "$as_dir" && as_dir=.
  4301. for ac_prog in grep ggrep; do
  4302. for ac_exec_ext in '' $ac_executable_extensions; do
  4303. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4304. as_fn_executable_p "$ac_path_GREP" || continue
  4305. # Check for GNU ac_path_GREP and select it if it is found.
  4306. # Check for GNU $ac_path_GREP
  4307. case `"$ac_path_GREP" --version 2>&1` in
  4308. *GNU*)
  4309. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4310. *)
  4311. ac_count=0
  4312. $as_echo_n 0123456789 >"conftest.in"
  4313. while :
  4314. do
  4315. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4316. mv "conftest.tmp" "conftest.in"
  4317. cp "conftest.in" "conftest.nl"
  4318. $as_echo 'GREP' >> "conftest.nl"
  4319. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4320. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4321. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4322. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4323. # Best one so far, save it but keep looking for a better one
  4324. ac_cv_path_GREP="$ac_path_GREP"
  4325. ac_path_GREP_max=$ac_count
  4326. fi
  4327. # 10*(2^10) chars as input seems more than enough
  4328. test $ac_count -gt 10 && break
  4329. done
  4330. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4331. esac
  4332. $ac_path_GREP_found && break 3
  4333. done
  4334. done
  4335. done
  4336. IFS=$as_save_IFS
  4337. if test -z "$ac_cv_path_GREP"; then
  4338. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4339. fi
  4340. else
  4341. ac_cv_path_GREP=$GREP
  4342. fi
  4343. fi
  4344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4345. $as_echo "$ac_cv_path_GREP" >&6; }
  4346. GREP="$ac_cv_path_GREP"
  4347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4348. $as_echo_n "checking for egrep... " >&6; }
  4349. if ${ac_cv_path_EGREP+:} false; then :
  4350. $as_echo_n "(cached) " >&6
  4351. else
  4352. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4353. then ac_cv_path_EGREP="$GREP -E"
  4354. else
  4355. if test -z "$EGREP"; then
  4356. ac_path_EGREP_found=false
  4357. # Loop through the user's path and test for each of PROGNAME-LIST
  4358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4359. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4360. do
  4361. IFS=$as_save_IFS
  4362. test -z "$as_dir" && as_dir=.
  4363. for ac_prog in egrep; do
  4364. for ac_exec_ext in '' $ac_executable_extensions; do
  4365. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4366. as_fn_executable_p "$ac_path_EGREP" || continue
  4367. # Check for GNU ac_path_EGREP and select it if it is found.
  4368. # Check for GNU $ac_path_EGREP
  4369. case `"$ac_path_EGREP" --version 2>&1` in
  4370. *GNU*)
  4371. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4372. *)
  4373. ac_count=0
  4374. $as_echo_n 0123456789 >"conftest.in"
  4375. while :
  4376. do
  4377. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4378. mv "conftest.tmp" "conftest.in"
  4379. cp "conftest.in" "conftest.nl"
  4380. $as_echo 'EGREP' >> "conftest.nl"
  4381. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4382. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4383. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4384. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4385. # Best one so far, save it but keep looking for a better one
  4386. ac_cv_path_EGREP="$ac_path_EGREP"
  4387. ac_path_EGREP_max=$ac_count
  4388. fi
  4389. # 10*(2^10) chars as input seems more than enough
  4390. test $ac_count -gt 10 && break
  4391. done
  4392. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4393. esac
  4394. $ac_path_EGREP_found && break 3
  4395. done
  4396. done
  4397. done
  4398. IFS=$as_save_IFS
  4399. if test -z "$ac_cv_path_EGREP"; then
  4400. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4401. fi
  4402. else
  4403. ac_cv_path_EGREP=$EGREP
  4404. fi
  4405. fi
  4406. fi
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4408. $as_echo "$ac_cv_path_EGREP" >&6; }
  4409. EGREP="$ac_cv_path_EGREP"
  4410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4411. $as_echo_n "checking for ANSI C header files... " >&6; }
  4412. if ${ac_cv_header_stdc+:} false; then :
  4413. $as_echo_n "(cached) " >&6
  4414. else
  4415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4416. /* end confdefs.h. */
  4417. #include <stdlib.h>
  4418. #include <stdarg.h>
  4419. #include <string.h>
  4420. #include <float.h>
  4421. int
  4422. main ()
  4423. {
  4424. ;
  4425. return 0;
  4426. }
  4427. _ACEOF
  4428. if ac_fn_c_try_compile "$LINENO"; then :
  4429. ac_cv_header_stdc=yes
  4430. else
  4431. ac_cv_header_stdc=no
  4432. fi
  4433. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4434. if test $ac_cv_header_stdc = yes; then
  4435. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4437. /* end confdefs.h. */
  4438. #include <string.h>
  4439. _ACEOF
  4440. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4441. $EGREP "memchr" >/dev/null 2>&1; then :
  4442. else
  4443. ac_cv_header_stdc=no
  4444. fi
  4445. rm -f conftest*
  4446. fi
  4447. if test $ac_cv_header_stdc = yes; then
  4448. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4450. /* end confdefs.h. */
  4451. #include <stdlib.h>
  4452. _ACEOF
  4453. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4454. $EGREP "free" >/dev/null 2>&1; then :
  4455. else
  4456. ac_cv_header_stdc=no
  4457. fi
  4458. rm -f conftest*
  4459. fi
  4460. if test $ac_cv_header_stdc = yes; then
  4461. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4462. if test "$cross_compiling" = yes; then :
  4463. :
  4464. else
  4465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4466. /* end confdefs.h. */
  4467. #include <ctype.h>
  4468. #include <stdlib.h>
  4469. #if ((' ' & 0x0FF) == 0x020)
  4470. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4471. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4472. #else
  4473. # define ISLOWER(c) \
  4474. (('a' <= (c) && (c) <= 'i') \
  4475. || ('j' <= (c) && (c) <= 'r') \
  4476. || ('s' <= (c) && (c) <= 'z'))
  4477. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4478. #endif
  4479. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4480. int
  4481. main ()
  4482. {
  4483. int i;
  4484. for (i = 0; i < 256; i++)
  4485. if (XOR (islower (i), ISLOWER (i))
  4486. || toupper (i) != TOUPPER (i))
  4487. return 2;
  4488. return 0;
  4489. }
  4490. _ACEOF
  4491. if ac_fn_c_try_run "$LINENO"; then :
  4492. else
  4493. ac_cv_header_stdc=no
  4494. fi
  4495. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4496. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4497. fi
  4498. fi
  4499. fi
  4500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4501. $as_echo "$ac_cv_header_stdc" >&6; }
  4502. if test $ac_cv_header_stdc = yes; then
  4503. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4504. fi
  4505. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4506. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4507. inttypes.h stdint.h unistd.h
  4508. do :
  4509. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4510. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4511. "
  4512. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4513. cat >>confdefs.h <<_ACEOF
  4514. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4515. _ACEOF
  4516. fi
  4517. done
  4518. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4519. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4520. MINIX=yes
  4521. else
  4522. MINIX=
  4523. fi
  4524. if test "$MINIX" = yes; then
  4525. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4526. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4527. $as_echo "#define _MINIX 1" >>confdefs.h
  4528. fi
  4529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4530. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4531. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4532. $as_echo_n "(cached) " >&6
  4533. else
  4534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4535. /* end confdefs.h. */
  4536. # define __EXTENSIONS__ 1
  4537. $ac_includes_default
  4538. int
  4539. main ()
  4540. {
  4541. ;
  4542. return 0;
  4543. }
  4544. _ACEOF
  4545. if ac_fn_c_try_compile "$LINENO"; then :
  4546. ac_cv_safe_to_define___extensions__=yes
  4547. else
  4548. ac_cv_safe_to_define___extensions__=no
  4549. fi
  4550. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4551. fi
  4552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4553. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4554. test $ac_cv_safe_to_define___extensions__ = yes &&
  4555. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4556. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4557. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4558. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4559. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4560. if test "x$CC" != xcc; then
  4561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4562. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4563. else
  4564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4565. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4566. fi
  4567. set dummy $CC; ac_cc=`$as_echo "$2" |
  4568. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4569. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  4570. $as_echo_n "(cached) " >&6
  4571. else
  4572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4573. /* end confdefs.h. */
  4574. int
  4575. main ()
  4576. {
  4577. ;
  4578. return 0;
  4579. }
  4580. _ACEOF
  4581. # Make sure it works both with $CC and with simple cc.
  4582. # We do the test twice because some compilers refuse to overwrite an
  4583. # existing .o file with -o, though they will create one.
  4584. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4585. rm -f conftest2.*
  4586. if { { case "(($ac_try" in
  4587. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4588. *) ac_try_echo=$ac_try;;
  4589. esac
  4590. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4591. $as_echo "$ac_try_echo"; } >&5
  4592. (eval "$ac_try") 2>&5
  4593. ac_status=$?
  4594. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4595. test $ac_status = 0; } &&
  4596. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4598. *) ac_try_echo=$ac_try;;
  4599. esac
  4600. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4601. $as_echo "$ac_try_echo"; } >&5
  4602. (eval "$ac_try") 2>&5
  4603. ac_status=$?
  4604. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4605. test $ac_status = 0; };
  4606. then
  4607. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4608. if test "x$CC" != xcc; then
  4609. # Test first that cc exists at all.
  4610. if { ac_try='cc -c conftest.$ac_ext >&5'
  4611. { { case "(($ac_try" in
  4612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4613. *) ac_try_echo=$ac_try;;
  4614. esac
  4615. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4616. $as_echo "$ac_try_echo"; } >&5
  4617. (eval "$ac_try") 2>&5
  4618. ac_status=$?
  4619. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4620. test $ac_status = 0; }; }; then
  4621. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4622. rm -f conftest2.*
  4623. if { { case "(($ac_try" in
  4624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4625. *) ac_try_echo=$ac_try;;
  4626. esac
  4627. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4628. $as_echo "$ac_try_echo"; } >&5
  4629. (eval "$ac_try") 2>&5
  4630. ac_status=$?
  4631. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4632. test $ac_status = 0; } &&
  4633. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4635. *) ac_try_echo=$ac_try;;
  4636. esac
  4637. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4638. $as_echo "$ac_try_echo"; } >&5
  4639. (eval "$ac_try") 2>&5
  4640. ac_status=$?
  4641. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4642. test $ac_status = 0; };
  4643. then
  4644. # cc works too.
  4645. :
  4646. else
  4647. # cc exists but doesn't like -o.
  4648. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4649. fi
  4650. fi
  4651. fi
  4652. else
  4653. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4654. fi
  4655. rm -f core conftest*
  4656. fi
  4657. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4659. $as_echo "yes" >&6; }
  4660. else
  4661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4662. $as_echo "no" >&6; }
  4663. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4664. fi
  4665. # FIXME: we rely on the cache variable name because
  4666. # there is no other way.
  4667. set dummy $CC
  4668. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4669. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4670. if test "$am_t" != yes; then
  4671. # Losing compiler, so override with the script.
  4672. # FIXME: It is wrong to rewrite CC.
  4673. # But if we don't then we get into trouble of one sort or another.
  4674. # A longer-term fix would be to have automake use am__CC in this case,
  4675. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4676. CC="$am_aux_dir/compile $CC"
  4677. fi
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4679. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4680. if ${ac_cv_c_bigendian+:} false; then :
  4681. $as_echo_n "(cached) " >&6
  4682. else
  4683. ac_cv_c_bigendian=unknown
  4684. # See if we're dealing with a universal compiler.
  4685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4686. /* end confdefs.h. */
  4687. #ifndef __APPLE_CC__
  4688. not a universal capable compiler
  4689. #endif
  4690. typedef int dummy;
  4691. _ACEOF
  4692. if ac_fn_c_try_compile "$LINENO"; then :
  4693. # Check for potential -arch flags. It is not universal unless
  4694. # there are at least two -arch flags with different values.
  4695. ac_arch=
  4696. ac_prev=
  4697. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4698. if test -n "$ac_prev"; then
  4699. case $ac_word in
  4700. i?86 | x86_64 | ppc | ppc64)
  4701. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4702. ac_arch=$ac_word
  4703. else
  4704. ac_cv_c_bigendian=universal
  4705. break
  4706. fi
  4707. ;;
  4708. esac
  4709. ac_prev=
  4710. elif test "x$ac_word" = "x-arch"; then
  4711. ac_prev=arch
  4712. fi
  4713. done
  4714. fi
  4715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4716. if test $ac_cv_c_bigendian = unknown; then
  4717. # See if sys/param.h defines the BYTE_ORDER macro.
  4718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4719. /* end confdefs.h. */
  4720. #include <sys/types.h>
  4721. #include <sys/param.h>
  4722. int
  4723. main ()
  4724. {
  4725. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4726. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4727. && LITTLE_ENDIAN)
  4728. bogus endian macros
  4729. #endif
  4730. ;
  4731. return 0;
  4732. }
  4733. _ACEOF
  4734. if ac_fn_c_try_compile "$LINENO"; then :
  4735. # It does; now see whether it defined to BIG_ENDIAN or not.
  4736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4737. /* end confdefs.h. */
  4738. #include <sys/types.h>
  4739. #include <sys/param.h>
  4740. int
  4741. main ()
  4742. {
  4743. #if BYTE_ORDER != BIG_ENDIAN
  4744. not big endian
  4745. #endif
  4746. ;
  4747. return 0;
  4748. }
  4749. _ACEOF
  4750. if ac_fn_c_try_compile "$LINENO"; then :
  4751. ac_cv_c_bigendian=yes
  4752. else
  4753. ac_cv_c_bigendian=no
  4754. fi
  4755. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4756. fi
  4757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4758. fi
  4759. if test $ac_cv_c_bigendian = unknown; then
  4760. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4762. /* end confdefs.h. */
  4763. #include <limits.h>
  4764. int
  4765. main ()
  4766. {
  4767. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4768. bogus endian macros
  4769. #endif
  4770. ;
  4771. return 0;
  4772. }
  4773. _ACEOF
  4774. if ac_fn_c_try_compile "$LINENO"; then :
  4775. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4777. /* end confdefs.h. */
  4778. #include <limits.h>
  4779. int
  4780. main ()
  4781. {
  4782. #ifndef _BIG_ENDIAN
  4783. not big endian
  4784. #endif
  4785. ;
  4786. return 0;
  4787. }
  4788. _ACEOF
  4789. if ac_fn_c_try_compile "$LINENO"; then :
  4790. ac_cv_c_bigendian=yes
  4791. else
  4792. ac_cv_c_bigendian=no
  4793. fi
  4794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4795. fi
  4796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4797. fi
  4798. if test $ac_cv_c_bigendian = unknown; then
  4799. # Compile a test program.
  4800. if test "$cross_compiling" = yes; then :
  4801. # Try to guess by grepping values from an object file.
  4802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4803. /* end confdefs.h. */
  4804. short int ascii_mm[] =
  4805. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4806. short int ascii_ii[] =
  4807. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4808. int use_ascii (int i) {
  4809. return ascii_mm[i] + ascii_ii[i];
  4810. }
  4811. short int ebcdic_ii[] =
  4812. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4813. short int ebcdic_mm[] =
  4814. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4815. int use_ebcdic (int i) {
  4816. return ebcdic_mm[i] + ebcdic_ii[i];
  4817. }
  4818. extern int foo;
  4819. int
  4820. main ()
  4821. {
  4822. return use_ascii (foo) == use_ebcdic (foo);
  4823. ;
  4824. return 0;
  4825. }
  4826. _ACEOF
  4827. if ac_fn_c_try_compile "$LINENO"; then :
  4828. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4829. ac_cv_c_bigendian=yes
  4830. fi
  4831. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4832. if test "$ac_cv_c_bigendian" = unknown; then
  4833. ac_cv_c_bigendian=no
  4834. else
  4835. # finding both strings is unlikely to happen, but who knows?
  4836. ac_cv_c_bigendian=unknown
  4837. fi
  4838. fi
  4839. fi
  4840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4841. else
  4842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4843. /* end confdefs.h. */
  4844. $ac_includes_default
  4845. int
  4846. main ()
  4847. {
  4848. /* Are we little or big endian? From Harbison&Steele. */
  4849. union
  4850. {
  4851. long int l;
  4852. char c[sizeof (long int)];
  4853. } u;
  4854. u.l = 1;
  4855. return u.c[sizeof (long int) - 1] == 1;
  4856. ;
  4857. return 0;
  4858. }
  4859. _ACEOF
  4860. if ac_fn_c_try_run "$LINENO"; then :
  4861. ac_cv_c_bigendian=no
  4862. else
  4863. ac_cv_c_bigendian=yes
  4864. fi
  4865. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4866. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4867. fi
  4868. fi
  4869. fi
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4871. $as_echo "$ac_cv_c_bigendian" >&6; }
  4872. case $ac_cv_c_bigendian in #(
  4873. yes)
  4874. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4875. ;; #(
  4876. no)
  4877. ;; #(
  4878. universal)
  4879. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4880. ;; #(
  4881. *)
  4882. as_fn_error $? "unknown endianness
  4883. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4884. esac
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4886. $as_echo_n "checking whether ln -s works... " >&6; }
  4887. LN_S=$as_ln_s
  4888. if test "$LN_S" = "ln -s"; then
  4889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4890. $as_echo "yes" >&6; }
  4891. else
  4892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4893. $as_echo "no, using $LN_S" >&6; }
  4894. fi
  4895. case `pwd` in
  4896. *\ * | *\ *)
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4898. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4899. esac
  4900. macro_version='2.4.2'
  4901. macro_revision='1.3337'
  4902. ltmain="$ac_aux_dir/ltmain.sh"
  4903. # Backslashify metacharacters that are still active within
  4904. # double-quoted strings.
  4905. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4906. # Same as above, but do not quote variable references.
  4907. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4908. # Sed substitution to delay expansion of an escaped shell variable in a
  4909. # double_quote_subst'ed string.
  4910. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4911. # Sed substitution to delay expansion of an escaped single quote.
  4912. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4913. # Sed substitution to avoid accidental globbing in evaled expressions
  4914. no_glob_subst='s/\*/\\\*/g'
  4915. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4916. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4917. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4919. $as_echo_n "checking how to print strings... " >&6; }
  4920. # Test print first, because it will be a builtin if present.
  4921. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4922. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4923. ECHO='print -r --'
  4924. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4925. ECHO='printf %s\n'
  4926. else
  4927. # Use this function as a fallback that always works.
  4928. func_fallback_echo ()
  4929. {
  4930. eval 'cat <<_LTECHO_EOF
  4931. $1
  4932. _LTECHO_EOF'
  4933. }
  4934. ECHO='func_fallback_echo'
  4935. fi
  4936. # func_echo_all arg...
  4937. # Invoke $ECHO with all args, space-separated.
  4938. func_echo_all ()
  4939. {
  4940. $ECHO ""
  4941. }
  4942. case "$ECHO" in
  4943. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4944. $as_echo "printf" >&6; } ;;
  4945. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4946. $as_echo "print -r" >&6; } ;;
  4947. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4948. $as_echo "cat" >&6; } ;;
  4949. esac
  4950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4951. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4952. if ${ac_cv_path_SED+:} false; then :
  4953. $as_echo_n "(cached) " >&6
  4954. else
  4955. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4956. for ac_i in 1 2 3 4 5 6 7; do
  4957. ac_script="$ac_script$as_nl$ac_script"
  4958. done
  4959. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4960. { ac_script=; unset ac_script;}
  4961. if test -z "$SED"; then
  4962. ac_path_SED_found=false
  4963. # Loop through the user's path and test for each of PROGNAME-LIST
  4964. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4965. for as_dir in $PATH
  4966. do
  4967. IFS=$as_save_IFS
  4968. test -z "$as_dir" && as_dir=.
  4969. for ac_prog in sed gsed; do
  4970. for ac_exec_ext in '' $ac_executable_extensions; do
  4971. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4972. as_fn_executable_p "$ac_path_SED" || continue
  4973. # Check for GNU ac_path_SED and select it if it is found.
  4974. # Check for GNU $ac_path_SED
  4975. case `"$ac_path_SED" --version 2>&1` in
  4976. *GNU*)
  4977. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4978. *)
  4979. ac_count=0
  4980. $as_echo_n 0123456789 >"conftest.in"
  4981. while :
  4982. do
  4983. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4984. mv "conftest.tmp" "conftest.in"
  4985. cp "conftest.in" "conftest.nl"
  4986. $as_echo '' >> "conftest.nl"
  4987. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4988. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4989. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4990. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4991. # Best one so far, save it but keep looking for a better one
  4992. ac_cv_path_SED="$ac_path_SED"
  4993. ac_path_SED_max=$ac_count
  4994. fi
  4995. # 10*(2^10) chars as input seems more than enough
  4996. test $ac_count -gt 10 && break
  4997. done
  4998. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4999. esac
  5000. $ac_path_SED_found && break 3
  5001. done
  5002. done
  5003. done
  5004. IFS=$as_save_IFS
  5005. if test -z "$ac_cv_path_SED"; then
  5006. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5007. fi
  5008. else
  5009. ac_cv_path_SED=$SED
  5010. fi
  5011. fi
  5012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5013. $as_echo "$ac_cv_path_SED" >&6; }
  5014. SED="$ac_cv_path_SED"
  5015. rm -f conftest.sed
  5016. test -z "$SED" && SED=sed
  5017. Xsed="$SED -e 1s/^X//"
  5018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5019. $as_echo_n "checking for fgrep... " >&6; }
  5020. if ${ac_cv_path_FGREP+:} false; then :
  5021. $as_echo_n "(cached) " >&6
  5022. else
  5023. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5024. then ac_cv_path_FGREP="$GREP -F"
  5025. else
  5026. if test -z "$FGREP"; then
  5027. ac_path_FGREP_found=false
  5028. # Loop through the user's path and test for each of PROGNAME-LIST
  5029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5030. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5031. do
  5032. IFS=$as_save_IFS
  5033. test -z "$as_dir" && as_dir=.
  5034. for ac_prog in fgrep; do
  5035. for ac_exec_ext in '' $ac_executable_extensions; do
  5036. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5037. as_fn_executable_p "$ac_path_FGREP" || continue
  5038. # Check for GNU ac_path_FGREP and select it if it is found.
  5039. # Check for GNU $ac_path_FGREP
  5040. case `"$ac_path_FGREP" --version 2>&1` in
  5041. *GNU*)
  5042. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5043. *)
  5044. ac_count=0
  5045. $as_echo_n 0123456789 >"conftest.in"
  5046. while :
  5047. do
  5048. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5049. mv "conftest.tmp" "conftest.in"
  5050. cp "conftest.in" "conftest.nl"
  5051. $as_echo 'FGREP' >> "conftest.nl"
  5052. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5053. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5054. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5055. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5056. # Best one so far, save it but keep looking for a better one
  5057. ac_cv_path_FGREP="$ac_path_FGREP"
  5058. ac_path_FGREP_max=$ac_count
  5059. fi
  5060. # 10*(2^10) chars as input seems more than enough
  5061. test $ac_count -gt 10 && break
  5062. done
  5063. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5064. esac
  5065. $ac_path_FGREP_found && break 3
  5066. done
  5067. done
  5068. done
  5069. IFS=$as_save_IFS
  5070. if test -z "$ac_cv_path_FGREP"; then
  5071. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5072. fi
  5073. else
  5074. ac_cv_path_FGREP=$FGREP
  5075. fi
  5076. fi
  5077. fi
  5078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5079. $as_echo "$ac_cv_path_FGREP" >&6; }
  5080. FGREP="$ac_cv_path_FGREP"
  5081. test -z "$GREP" && GREP=grep
  5082. # Check whether --with-gnu-ld was given.
  5083. if test "${with_gnu_ld+set}" = set; then :
  5084. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5085. else
  5086. with_gnu_ld=no
  5087. fi
  5088. ac_prog=ld
  5089. if test "$GCC" = yes; then
  5090. # Check if gcc -print-prog-name=ld gives a path.
  5091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5092. $as_echo_n "checking for ld used by $CC... " >&6; }
  5093. case $host in
  5094. *-*-mingw*)
  5095. # gcc leaves a trailing carriage return which upsets mingw
  5096. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5097. *)
  5098. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5099. esac
  5100. case $ac_prog in
  5101. # Accept absolute paths.
  5102. [\\/]* | ?:[\\/]*)
  5103. re_direlt='/[^/][^/]*/\.\./'
  5104. # Canonicalize the pathname of ld
  5105. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5106. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5107. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5108. done
  5109. test -z "$LD" && LD="$ac_prog"
  5110. ;;
  5111. "")
  5112. # If it fails, then pretend we aren't using GCC.
  5113. ac_prog=ld
  5114. ;;
  5115. *)
  5116. # If it is relative, then search for the first ld in PATH.
  5117. with_gnu_ld=unknown
  5118. ;;
  5119. esac
  5120. elif test "$with_gnu_ld" = yes; then
  5121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5122. $as_echo_n "checking for GNU ld... " >&6; }
  5123. else
  5124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5125. $as_echo_n "checking for non-GNU ld... " >&6; }
  5126. fi
  5127. if ${lt_cv_path_LD+:} false; then :
  5128. $as_echo_n "(cached) " >&6
  5129. else
  5130. if test -z "$LD"; then
  5131. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5132. for ac_dir in $PATH; do
  5133. IFS="$lt_save_ifs"
  5134. test -z "$ac_dir" && ac_dir=.
  5135. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5136. lt_cv_path_LD="$ac_dir/$ac_prog"
  5137. # Check to see if the program is GNU ld. I'd rather use --version,
  5138. # but apparently some variants of GNU ld only accept -v.
  5139. # Break only if it was the GNU/non-GNU ld that we prefer.
  5140. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5141. *GNU* | *'with BFD'*)
  5142. test "$with_gnu_ld" != no && break
  5143. ;;
  5144. *)
  5145. test "$with_gnu_ld" != yes && break
  5146. ;;
  5147. esac
  5148. fi
  5149. done
  5150. IFS="$lt_save_ifs"
  5151. else
  5152. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5153. fi
  5154. fi
  5155. LD="$lt_cv_path_LD"
  5156. if test -n "$LD"; then
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5158. $as_echo "$LD" >&6; }
  5159. else
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5161. $as_echo "no" >&6; }
  5162. fi
  5163. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5165. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5166. if ${lt_cv_prog_gnu_ld+:} false; then :
  5167. $as_echo_n "(cached) " >&6
  5168. else
  5169. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5170. case `$LD -v 2>&1 </dev/null` in
  5171. *GNU* | *'with BFD'*)
  5172. lt_cv_prog_gnu_ld=yes
  5173. ;;
  5174. *)
  5175. lt_cv_prog_gnu_ld=no
  5176. ;;
  5177. esac
  5178. fi
  5179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5180. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5181. with_gnu_ld=$lt_cv_prog_gnu_ld
  5182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5183. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5184. if ${lt_cv_path_NM+:} false; then :
  5185. $as_echo_n "(cached) " >&6
  5186. else
  5187. if test -n "$NM"; then
  5188. # Let the user override the test.
  5189. lt_cv_path_NM="$NM"
  5190. else
  5191. lt_nm_to_check="${ac_tool_prefix}nm"
  5192. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5193. lt_nm_to_check="$lt_nm_to_check nm"
  5194. fi
  5195. for lt_tmp_nm in $lt_nm_to_check; do
  5196. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5197. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5198. IFS="$lt_save_ifs"
  5199. test -z "$ac_dir" && ac_dir=.
  5200. tmp_nm="$ac_dir/$lt_tmp_nm"
  5201. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5202. # Check to see if the nm accepts a BSD-compat flag.
  5203. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5204. # nm: unknown option "B" ignored
  5205. # Tru64's nm complains that /dev/null is an invalid object file
  5206. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5207. */dev/null* | *'Invalid file or object type'*)
  5208. lt_cv_path_NM="$tmp_nm -B"
  5209. break
  5210. ;;
  5211. *)
  5212. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5213. */dev/null*)
  5214. lt_cv_path_NM="$tmp_nm -p"
  5215. break
  5216. ;;
  5217. *)
  5218. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5219. continue # so that we can try to find one that supports BSD flags
  5220. ;;
  5221. esac
  5222. ;;
  5223. esac
  5224. fi
  5225. done
  5226. IFS="$lt_save_ifs"
  5227. done
  5228. : ${lt_cv_path_NM=no}
  5229. fi
  5230. fi
  5231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5232. $as_echo "$lt_cv_path_NM" >&6; }
  5233. if test "$lt_cv_path_NM" != "no"; then
  5234. NM="$lt_cv_path_NM"
  5235. else
  5236. # Didn't find any BSD compatible name lister, look for dumpbin.
  5237. if test -n "$DUMPBIN"; then :
  5238. # Let the user override the test.
  5239. else
  5240. if test -n "$ac_tool_prefix"; then
  5241. for ac_prog in dumpbin "link -dump"
  5242. do
  5243. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5244. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5246. $as_echo_n "checking for $ac_word... " >&6; }
  5247. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5248. $as_echo_n "(cached) " >&6
  5249. else
  5250. if test -n "$DUMPBIN"; then
  5251. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5252. else
  5253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5254. for as_dir in $PATH
  5255. do
  5256. IFS=$as_save_IFS
  5257. test -z "$as_dir" && as_dir=.
  5258. for ac_exec_ext in '' $ac_executable_extensions; do
  5259. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5260. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5261. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5262. break 2
  5263. fi
  5264. done
  5265. done
  5266. IFS=$as_save_IFS
  5267. fi
  5268. fi
  5269. DUMPBIN=$ac_cv_prog_DUMPBIN
  5270. if test -n "$DUMPBIN"; then
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5272. $as_echo "$DUMPBIN" >&6; }
  5273. else
  5274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5275. $as_echo "no" >&6; }
  5276. fi
  5277. test -n "$DUMPBIN" && break
  5278. done
  5279. fi
  5280. if test -z "$DUMPBIN"; then
  5281. ac_ct_DUMPBIN=$DUMPBIN
  5282. for ac_prog in dumpbin "link -dump"
  5283. do
  5284. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5285. set dummy $ac_prog; ac_word=$2
  5286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5287. $as_echo_n "checking for $ac_word... " >&6; }
  5288. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5289. $as_echo_n "(cached) " >&6
  5290. else
  5291. if test -n "$ac_ct_DUMPBIN"; then
  5292. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5293. else
  5294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5295. for as_dir in $PATH
  5296. do
  5297. IFS=$as_save_IFS
  5298. test -z "$as_dir" && as_dir=.
  5299. for ac_exec_ext in '' $ac_executable_extensions; do
  5300. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5301. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5302. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5303. break 2
  5304. fi
  5305. done
  5306. done
  5307. IFS=$as_save_IFS
  5308. fi
  5309. fi
  5310. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5311. if test -n "$ac_ct_DUMPBIN"; then
  5312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5313. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5314. else
  5315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5316. $as_echo "no" >&6; }
  5317. fi
  5318. test -n "$ac_ct_DUMPBIN" && break
  5319. done
  5320. if test "x$ac_ct_DUMPBIN" = x; then
  5321. DUMPBIN=":"
  5322. else
  5323. case $cross_compiling:$ac_tool_warned in
  5324. yes:)
  5325. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5326. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5327. ac_tool_warned=yes ;;
  5328. esac
  5329. DUMPBIN=$ac_ct_DUMPBIN
  5330. fi
  5331. fi
  5332. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5333. *COFF*)
  5334. DUMPBIN="$DUMPBIN -symbols"
  5335. ;;
  5336. *)
  5337. DUMPBIN=:
  5338. ;;
  5339. esac
  5340. fi
  5341. if test "$DUMPBIN" != ":"; then
  5342. NM="$DUMPBIN"
  5343. fi
  5344. fi
  5345. test -z "$NM" && NM=nm
  5346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5347. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5348. if ${lt_cv_nm_interface+:} false; then :
  5349. $as_echo_n "(cached) " >&6
  5350. else
  5351. lt_cv_nm_interface="BSD nm"
  5352. echo "int some_variable = 0;" > conftest.$ac_ext
  5353. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5354. (eval "$ac_compile" 2>conftest.err)
  5355. cat conftest.err >&5
  5356. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5357. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5358. cat conftest.err >&5
  5359. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5360. cat conftest.out >&5
  5361. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5362. lt_cv_nm_interface="MS dumpbin"
  5363. fi
  5364. rm -f conftest*
  5365. fi
  5366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5367. $as_echo "$lt_cv_nm_interface" >&6; }
  5368. # find the maximum length of command line arguments
  5369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5370. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5371. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5372. $as_echo_n "(cached) " >&6
  5373. else
  5374. i=0
  5375. teststring="ABCD"
  5376. case $build_os in
  5377. msdosdjgpp*)
  5378. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5379. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5380. # during glob expansion). Even if it were fixed, the result of this
  5381. # check would be larger than it should be.
  5382. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5383. ;;
  5384. gnu*)
  5385. # Under GNU Hurd, this test is not required because there is
  5386. # no limit to the length of command line arguments.
  5387. # Libtool will interpret -1 as no limit whatsoever
  5388. lt_cv_sys_max_cmd_len=-1;
  5389. ;;
  5390. cygwin* | mingw* | cegcc*)
  5391. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5392. # about 5 minutes as the teststring grows exponentially.
  5393. # Worse, since 9x/ME are not pre-emptively multitasking,
  5394. # you end up with a "frozen" computer, even though with patience
  5395. # the test eventually succeeds (with a max line length of 256k).
  5396. # Instead, let's just punt: use the minimum linelength reported by
  5397. # all of the supported platforms: 8192 (on NT/2K/XP).
  5398. lt_cv_sys_max_cmd_len=8192;
  5399. ;;
  5400. mint*)
  5401. # On MiNT this can take a long time and run out of memory.
  5402. lt_cv_sys_max_cmd_len=8192;
  5403. ;;
  5404. amigaos*)
  5405. # On AmigaOS with pdksh, this test takes hours, literally.
  5406. # So we just punt and use a minimum line length of 8192.
  5407. lt_cv_sys_max_cmd_len=8192;
  5408. ;;
  5409. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5410. # This has been around since 386BSD, at least. Likely further.
  5411. if test -x /sbin/sysctl; then
  5412. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5413. elif test -x /usr/sbin/sysctl; then
  5414. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5415. else
  5416. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5417. fi
  5418. # And add a safety zone
  5419. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5420. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5421. ;;
  5422. interix*)
  5423. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5424. lt_cv_sys_max_cmd_len=196608
  5425. ;;
  5426. os2*)
  5427. # The test takes a long time on OS/2.
  5428. lt_cv_sys_max_cmd_len=8192
  5429. ;;
  5430. osf*)
  5431. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5432. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5433. # nice to cause kernel panics so lets avoid the loop below.
  5434. # First set a reasonable default.
  5435. lt_cv_sys_max_cmd_len=16384
  5436. #
  5437. if test -x /sbin/sysconfig; then
  5438. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5439. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5440. esac
  5441. fi
  5442. ;;
  5443. sco3.2v5*)
  5444. lt_cv_sys_max_cmd_len=102400
  5445. ;;
  5446. sysv5* | sco5v6* | sysv4.2uw2*)
  5447. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5448. if test -n "$kargmax"; then
  5449. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5450. else
  5451. lt_cv_sys_max_cmd_len=32768
  5452. fi
  5453. ;;
  5454. *)
  5455. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5456. if test -n "$lt_cv_sys_max_cmd_len"; then
  5457. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5458. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5459. else
  5460. # Make teststring a little bigger before we do anything with it.
  5461. # a 1K string should be a reasonable start.
  5462. for i in 1 2 3 4 5 6 7 8 ; do
  5463. teststring=$teststring$teststring
  5464. done
  5465. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5466. # If test is not a shell built-in, we'll probably end up computing a
  5467. # maximum length that is only half of the actual maximum length, but
  5468. # we can't tell.
  5469. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5470. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5471. test $i != 17 # 1/2 MB should be enough
  5472. do
  5473. i=`expr $i + 1`
  5474. teststring=$teststring$teststring
  5475. done
  5476. # Only check the string length outside the loop.
  5477. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5478. teststring=
  5479. # Add a significant safety factor because C++ compilers can tack on
  5480. # massive amounts of additional arguments before passing them to the
  5481. # linker. It appears as though 1/2 is a usable value.
  5482. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5483. fi
  5484. ;;
  5485. esac
  5486. fi
  5487. if test -n $lt_cv_sys_max_cmd_len ; then
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5489. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5490. else
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5492. $as_echo "none" >&6; }
  5493. fi
  5494. max_cmd_len=$lt_cv_sys_max_cmd_len
  5495. : ${CP="cp -f"}
  5496. : ${MV="mv -f"}
  5497. : ${RM="rm -f"}
  5498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5499. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5500. # Try some XSI features
  5501. xsi_shell=no
  5502. ( _lt_dummy="a/b/c"
  5503. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5504. = c,a/b,b/c, \
  5505. && eval 'test $(( 1 + 1 )) -eq 2 \
  5506. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5507. && xsi_shell=yes
  5508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5509. $as_echo "$xsi_shell" >&6; }
  5510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5511. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5512. lt_shell_append=no
  5513. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5514. >/dev/null 2>&1 \
  5515. && lt_shell_append=yes
  5516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5517. $as_echo "$lt_shell_append" >&6; }
  5518. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5519. lt_unset=unset
  5520. else
  5521. lt_unset=false
  5522. fi
  5523. # test EBCDIC or ASCII
  5524. case `echo X|tr X '\101'` in
  5525. A) # ASCII based system
  5526. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5527. lt_SP2NL='tr \040 \012'
  5528. lt_NL2SP='tr \015\012 \040\040'
  5529. ;;
  5530. *) # EBCDIC based system
  5531. lt_SP2NL='tr \100 \n'
  5532. lt_NL2SP='tr \r\n \100\100'
  5533. ;;
  5534. esac
  5535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5536. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5537. if ${lt_cv_to_host_file_cmd+:} false; then :
  5538. $as_echo_n "(cached) " >&6
  5539. else
  5540. case $host in
  5541. *-*-mingw* )
  5542. case $build in
  5543. *-*-mingw* ) # actually msys
  5544. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5545. ;;
  5546. *-*-cygwin* )
  5547. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5548. ;;
  5549. * ) # otherwise, assume *nix
  5550. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5551. ;;
  5552. esac
  5553. ;;
  5554. *-*-cygwin* )
  5555. case $build in
  5556. *-*-mingw* ) # actually msys
  5557. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5558. ;;
  5559. *-*-cygwin* )
  5560. lt_cv_to_host_file_cmd=func_convert_file_noop
  5561. ;;
  5562. * ) # otherwise, assume *nix
  5563. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5564. ;;
  5565. esac
  5566. ;;
  5567. * ) # unhandled hosts (and "normal" native builds)
  5568. lt_cv_to_host_file_cmd=func_convert_file_noop
  5569. ;;
  5570. esac
  5571. fi
  5572. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5574. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5576. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5577. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5578. $as_echo_n "(cached) " >&6
  5579. else
  5580. #assume ordinary cross tools, or native build.
  5581. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5582. case $host in
  5583. *-*-mingw* )
  5584. case $build in
  5585. *-*-mingw* ) # actually msys
  5586. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5587. ;;
  5588. esac
  5589. ;;
  5590. esac
  5591. fi
  5592. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5594. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5596. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5597. if ${lt_cv_ld_reload_flag+:} false; then :
  5598. $as_echo_n "(cached) " >&6
  5599. else
  5600. lt_cv_ld_reload_flag='-r'
  5601. fi
  5602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5603. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5604. reload_flag=$lt_cv_ld_reload_flag
  5605. case $reload_flag in
  5606. "" | " "*) ;;
  5607. *) reload_flag=" $reload_flag" ;;
  5608. esac
  5609. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5610. case $host_os in
  5611. cygwin* | mingw* | pw32* | cegcc*)
  5612. if test "$GCC" != yes; then
  5613. reload_cmds=false
  5614. fi
  5615. ;;
  5616. darwin*)
  5617. if test "$GCC" = yes; then
  5618. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5619. else
  5620. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5621. fi
  5622. ;;
  5623. esac
  5624. if test -n "$ac_tool_prefix"; then
  5625. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5626. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5628. $as_echo_n "checking for $ac_word... " >&6; }
  5629. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5630. $as_echo_n "(cached) " >&6
  5631. else
  5632. if test -n "$OBJDUMP"; then
  5633. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5634. else
  5635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5636. for as_dir in $PATH
  5637. do
  5638. IFS=$as_save_IFS
  5639. test -z "$as_dir" && as_dir=.
  5640. for ac_exec_ext in '' $ac_executable_extensions; do
  5641. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5642. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5643. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5644. break 2
  5645. fi
  5646. done
  5647. done
  5648. IFS=$as_save_IFS
  5649. fi
  5650. fi
  5651. OBJDUMP=$ac_cv_prog_OBJDUMP
  5652. if test -n "$OBJDUMP"; then
  5653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5654. $as_echo "$OBJDUMP" >&6; }
  5655. else
  5656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5657. $as_echo "no" >&6; }
  5658. fi
  5659. fi
  5660. if test -z "$ac_cv_prog_OBJDUMP"; then
  5661. ac_ct_OBJDUMP=$OBJDUMP
  5662. # Extract the first word of "objdump", so it can be a program name with args.
  5663. set dummy objdump; ac_word=$2
  5664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5665. $as_echo_n "checking for $ac_word... " >&6; }
  5666. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5667. $as_echo_n "(cached) " >&6
  5668. else
  5669. if test -n "$ac_ct_OBJDUMP"; then
  5670. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5671. else
  5672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5673. for as_dir in $PATH
  5674. do
  5675. IFS=$as_save_IFS
  5676. test -z "$as_dir" && as_dir=.
  5677. for ac_exec_ext in '' $ac_executable_extensions; do
  5678. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5679. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5680. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5681. break 2
  5682. fi
  5683. done
  5684. done
  5685. IFS=$as_save_IFS
  5686. fi
  5687. fi
  5688. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5689. if test -n "$ac_ct_OBJDUMP"; then
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5691. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5692. else
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5694. $as_echo "no" >&6; }
  5695. fi
  5696. if test "x$ac_ct_OBJDUMP" = x; then
  5697. OBJDUMP="false"
  5698. else
  5699. case $cross_compiling:$ac_tool_warned in
  5700. yes:)
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5702. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5703. ac_tool_warned=yes ;;
  5704. esac
  5705. OBJDUMP=$ac_ct_OBJDUMP
  5706. fi
  5707. else
  5708. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5709. fi
  5710. test -z "$OBJDUMP" && OBJDUMP=objdump
  5711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5712. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5713. if ${lt_cv_deplibs_check_method+:} false; then :
  5714. $as_echo_n "(cached) " >&6
  5715. else
  5716. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5717. lt_cv_file_magic_test_file=
  5718. lt_cv_deplibs_check_method='unknown'
  5719. # Need to set the preceding variable on all platforms that support
  5720. # interlibrary dependencies.
  5721. # 'none' -- dependencies not supported.
  5722. # `unknown' -- same as none, but documents that we really don't know.
  5723. # 'pass_all' -- all dependencies passed with no checks.
  5724. # 'test_compile' -- check by making test program.
  5725. # 'file_magic [[regex]]' -- check by looking for files in library path
  5726. # which responds to the $file_magic_cmd with a given extended regex.
  5727. # If you have `file' or equivalent on your system and you're not sure
  5728. # whether `pass_all' will *always* work, you probably want this one.
  5729. case $host_os in
  5730. aix[4-9]*)
  5731. lt_cv_deplibs_check_method=pass_all
  5732. ;;
  5733. beos*)
  5734. lt_cv_deplibs_check_method=pass_all
  5735. ;;
  5736. bsdi[45]*)
  5737. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5738. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5739. lt_cv_file_magic_test_file=/shlib/libc.so
  5740. ;;
  5741. cygwin*)
  5742. # func_win32_libid is a shell function defined in ltmain.sh
  5743. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5744. lt_cv_file_magic_cmd='func_win32_libid'
  5745. ;;
  5746. mingw* | pw32*)
  5747. # Base MSYS/MinGW do not provide the 'file' command needed by
  5748. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5749. # unless we find 'file', for example because we are cross-compiling.
  5750. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5751. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5752. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5753. lt_cv_file_magic_cmd='func_win32_libid'
  5754. else
  5755. # Keep this pattern in sync with the one in func_win32_libid.
  5756. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5757. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5758. fi
  5759. ;;
  5760. cegcc*)
  5761. # use the weaker test based on 'objdump'. See mingw*.
  5762. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5763. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5764. ;;
  5765. darwin* | rhapsody*)
  5766. lt_cv_deplibs_check_method=pass_all
  5767. ;;
  5768. freebsd* | dragonfly*)
  5769. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5770. case $host_cpu in
  5771. i*86 )
  5772. # Not sure whether the presence of OpenBSD here was a mistake.
  5773. # Let's accept both of them until this is cleared up.
  5774. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5775. lt_cv_file_magic_cmd=/usr/bin/file
  5776. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5777. ;;
  5778. esac
  5779. else
  5780. lt_cv_deplibs_check_method=pass_all
  5781. fi
  5782. ;;
  5783. gnu*)
  5784. lt_cv_deplibs_check_method=pass_all
  5785. ;;
  5786. haiku*)
  5787. lt_cv_deplibs_check_method=pass_all
  5788. ;;
  5789. hpux10.20* | hpux11*)
  5790. lt_cv_file_magic_cmd=/usr/bin/file
  5791. case $host_cpu in
  5792. ia64*)
  5793. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5794. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5795. ;;
  5796. hppa*64*)
  5797. 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]'
  5798. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5799. ;;
  5800. *)
  5801. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5802. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5803. ;;
  5804. esac
  5805. ;;
  5806. interix[3-9]*)
  5807. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5808. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5809. ;;
  5810. irix5* | irix6* | nonstopux*)
  5811. case $LD in
  5812. *-32|*"-32 ") libmagic=32-bit;;
  5813. *-n32|*"-n32 ") libmagic=N32;;
  5814. *-64|*"-64 ") libmagic=64-bit;;
  5815. *) libmagic=never-match;;
  5816. esac
  5817. lt_cv_deplibs_check_method=pass_all
  5818. ;;
  5819. # This must be glibc/ELF.
  5820. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5821. lt_cv_deplibs_check_method=pass_all
  5822. ;;
  5823. netbsd*)
  5824. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5825. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5826. else
  5827. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5828. fi
  5829. ;;
  5830. newos6*)
  5831. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5832. lt_cv_file_magic_cmd=/usr/bin/file
  5833. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5834. ;;
  5835. *nto* | *qnx*)
  5836. lt_cv_deplibs_check_method=pass_all
  5837. ;;
  5838. openbsd*)
  5839. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5840. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5841. else
  5842. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5843. fi
  5844. ;;
  5845. osf3* | osf4* | osf5*)
  5846. lt_cv_deplibs_check_method=pass_all
  5847. ;;
  5848. rdos*)
  5849. lt_cv_deplibs_check_method=pass_all
  5850. ;;
  5851. solaris*)
  5852. lt_cv_deplibs_check_method=pass_all
  5853. ;;
  5854. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5855. lt_cv_deplibs_check_method=pass_all
  5856. ;;
  5857. sysv4 | sysv4.3*)
  5858. case $host_vendor in
  5859. motorola)
  5860. 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]'
  5861. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5862. ;;
  5863. ncr)
  5864. lt_cv_deplibs_check_method=pass_all
  5865. ;;
  5866. sequent)
  5867. lt_cv_file_magic_cmd='/bin/file'
  5868. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5869. ;;
  5870. sni)
  5871. lt_cv_file_magic_cmd='/bin/file'
  5872. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5873. lt_cv_file_magic_test_file=/lib/libc.so
  5874. ;;
  5875. siemens)
  5876. lt_cv_deplibs_check_method=pass_all
  5877. ;;
  5878. pc)
  5879. lt_cv_deplibs_check_method=pass_all
  5880. ;;
  5881. esac
  5882. ;;
  5883. tpf*)
  5884. lt_cv_deplibs_check_method=pass_all
  5885. ;;
  5886. esac
  5887. fi
  5888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5889. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5890. file_magic_glob=
  5891. want_nocaseglob=no
  5892. if test "$build" = "$host"; then
  5893. case $host_os in
  5894. mingw* | pw32*)
  5895. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5896. want_nocaseglob=yes
  5897. else
  5898. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5899. fi
  5900. ;;
  5901. esac
  5902. fi
  5903. file_magic_cmd=$lt_cv_file_magic_cmd
  5904. deplibs_check_method=$lt_cv_deplibs_check_method
  5905. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5906. if test -n "$ac_tool_prefix"; then
  5907. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5908. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5910. $as_echo_n "checking for $ac_word... " >&6; }
  5911. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5912. $as_echo_n "(cached) " >&6
  5913. else
  5914. if test -n "$DLLTOOL"; then
  5915. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5916. else
  5917. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5918. for as_dir in $PATH
  5919. do
  5920. IFS=$as_save_IFS
  5921. test -z "$as_dir" && as_dir=.
  5922. for ac_exec_ext in '' $ac_executable_extensions; do
  5923. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5924. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5925. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5926. break 2
  5927. fi
  5928. done
  5929. done
  5930. IFS=$as_save_IFS
  5931. fi
  5932. fi
  5933. DLLTOOL=$ac_cv_prog_DLLTOOL
  5934. if test -n "$DLLTOOL"; then
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5936. $as_echo "$DLLTOOL" >&6; }
  5937. else
  5938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5939. $as_echo "no" >&6; }
  5940. fi
  5941. fi
  5942. if test -z "$ac_cv_prog_DLLTOOL"; then
  5943. ac_ct_DLLTOOL=$DLLTOOL
  5944. # Extract the first word of "dlltool", so it can be a program name with args.
  5945. set dummy dlltool; ac_word=$2
  5946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5947. $as_echo_n "checking for $ac_word... " >&6; }
  5948. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5949. $as_echo_n "(cached) " >&6
  5950. else
  5951. if test -n "$ac_ct_DLLTOOL"; then
  5952. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5953. else
  5954. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5955. for as_dir in $PATH
  5956. do
  5957. IFS=$as_save_IFS
  5958. test -z "$as_dir" && as_dir=.
  5959. for ac_exec_ext in '' $ac_executable_extensions; do
  5960. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5961. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5962. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5963. break 2
  5964. fi
  5965. done
  5966. done
  5967. IFS=$as_save_IFS
  5968. fi
  5969. fi
  5970. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5971. if test -n "$ac_ct_DLLTOOL"; then
  5972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5973. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5974. else
  5975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5976. $as_echo "no" >&6; }
  5977. fi
  5978. if test "x$ac_ct_DLLTOOL" = x; then
  5979. DLLTOOL="false"
  5980. else
  5981. case $cross_compiling:$ac_tool_warned in
  5982. yes:)
  5983. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5984. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5985. ac_tool_warned=yes ;;
  5986. esac
  5987. DLLTOOL=$ac_ct_DLLTOOL
  5988. fi
  5989. else
  5990. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5991. fi
  5992. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5994. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5995. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5996. $as_echo_n "(cached) " >&6
  5997. else
  5998. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5999. case $host_os in
  6000. cygwin* | mingw* | pw32* | cegcc*)
  6001. # two different shell functions defined in ltmain.sh
  6002. # decide which to use based on capabilities of $DLLTOOL
  6003. case `$DLLTOOL --help 2>&1` in
  6004. *--identify-strict*)
  6005. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6006. ;;
  6007. *)
  6008. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6009. ;;
  6010. esac
  6011. ;;
  6012. *)
  6013. # fallback: assume linklib IS sharedlib
  6014. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  6015. ;;
  6016. esac
  6017. fi
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6019. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6020. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6021. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6022. if test -n "$ac_tool_prefix"; then
  6023. for ac_prog in ar
  6024. do
  6025. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6026. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6028. $as_echo_n "checking for $ac_word... " >&6; }
  6029. if ${ac_cv_prog_AR+:} false; then :
  6030. $as_echo_n "(cached) " >&6
  6031. else
  6032. if test -n "$AR"; then
  6033. ac_cv_prog_AR="$AR" # Let the user override the test.
  6034. else
  6035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6036. for as_dir in $PATH
  6037. do
  6038. IFS=$as_save_IFS
  6039. test -z "$as_dir" && as_dir=.
  6040. for ac_exec_ext in '' $ac_executable_extensions; do
  6041. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6042. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6043. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6044. break 2
  6045. fi
  6046. done
  6047. done
  6048. IFS=$as_save_IFS
  6049. fi
  6050. fi
  6051. AR=$ac_cv_prog_AR
  6052. if test -n "$AR"; then
  6053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6054. $as_echo "$AR" >&6; }
  6055. else
  6056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6057. $as_echo "no" >&6; }
  6058. fi
  6059. test -n "$AR" && break
  6060. done
  6061. fi
  6062. if test -z "$AR"; then
  6063. ac_ct_AR=$AR
  6064. for ac_prog in ar
  6065. do
  6066. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6067. set dummy $ac_prog; ac_word=$2
  6068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6069. $as_echo_n "checking for $ac_word... " >&6; }
  6070. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6071. $as_echo_n "(cached) " >&6
  6072. else
  6073. if test -n "$ac_ct_AR"; then
  6074. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6075. else
  6076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6077. for as_dir in $PATH
  6078. do
  6079. IFS=$as_save_IFS
  6080. test -z "$as_dir" && as_dir=.
  6081. for ac_exec_ext in '' $ac_executable_extensions; do
  6082. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6083. ac_cv_prog_ac_ct_AR="$ac_prog"
  6084. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6085. break 2
  6086. fi
  6087. done
  6088. done
  6089. IFS=$as_save_IFS
  6090. fi
  6091. fi
  6092. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6093. if test -n "$ac_ct_AR"; then
  6094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6095. $as_echo "$ac_ct_AR" >&6; }
  6096. else
  6097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6098. $as_echo "no" >&6; }
  6099. fi
  6100. test -n "$ac_ct_AR" && break
  6101. done
  6102. if test "x$ac_ct_AR" = x; then
  6103. AR="false"
  6104. else
  6105. case $cross_compiling:$ac_tool_warned in
  6106. yes:)
  6107. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6108. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6109. ac_tool_warned=yes ;;
  6110. esac
  6111. AR=$ac_ct_AR
  6112. fi
  6113. fi
  6114. : ${AR=ar}
  6115. : ${AR_FLAGS=cru}
  6116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6117. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6118. if ${lt_cv_ar_at_file+:} false; then :
  6119. $as_echo_n "(cached) " >&6
  6120. else
  6121. lt_cv_ar_at_file=no
  6122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6123. /* end confdefs.h. */
  6124. int
  6125. main ()
  6126. {
  6127. ;
  6128. return 0;
  6129. }
  6130. _ACEOF
  6131. if ac_fn_c_try_compile "$LINENO"; then :
  6132. echo conftest.$ac_objext > conftest.lst
  6133. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6134. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6135. (eval $lt_ar_try) 2>&5
  6136. ac_status=$?
  6137. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6138. test $ac_status = 0; }
  6139. if test "$ac_status" -eq 0; then
  6140. # Ensure the archiver fails upon bogus file names.
  6141. rm -f conftest.$ac_objext libconftest.a
  6142. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6143. (eval $lt_ar_try) 2>&5
  6144. ac_status=$?
  6145. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6146. test $ac_status = 0; }
  6147. if test "$ac_status" -ne 0; then
  6148. lt_cv_ar_at_file=@
  6149. fi
  6150. fi
  6151. rm -f conftest.* libconftest.a
  6152. fi
  6153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6154. fi
  6155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6156. $as_echo "$lt_cv_ar_at_file" >&6; }
  6157. if test "x$lt_cv_ar_at_file" = xno; then
  6158. archiver_list_spec=
  6159. else
  6160. archiver_list_spec=$lt_cv_ar_at_file
  6161. fi
  6162. if test -n "$ac_tool_prefix"; then
  6163. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6164. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6166. $as_echo_n "checking for $ac_word... " >&6; }
  6167. if ${ac_cv_prog_STRIP+:} false; then :
  6168. $as_echo_n "(cached) " >&6
  6169. else
  6170. if test -n "$STRIP"; then
  6171. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6172. else
  6173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6174. for as_dir in $PATH
  6175. do
  6176. IFS=$as_save_IFS
  6177. test -z "$as_dir" && as_dir=.
  6178. for ac_exec_ext in '' $ac_executable_extensions; do
  6179. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6180. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6181. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6182. break 2
  6183. fi
  6184. done
  6185. done
  6186. IFS=$as_save_IFS
  6187. fi
  6188. fi
  6189. STRIP=$ac_cv_prog_STRIP
  6190. if test -n "$STRIP"; then
  6191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6192. $as_echo "$STRIP" >&6; }
  6193. else
  6194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6195. $as_echo "no" >&6; }
  6196. fi
  6197. fi
  6198. if test -z "$ac_cv_prog_STRIP"; then
  6199. ac_ct_STRIP=$STRIP
  6200. # Extract the first word of "strip", so it can be a program name with args.
  6201. set dummy strip; ac_word=$2
  6202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6203. $as_echo_n "checking for $ac_word... " >&6; }
  6204. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6205. $as_echo_n "(cached) " >&6
  6206. else
  6207. if test -n "$ac_ct_STRIP"; then
  6208. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6209. else
  6210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6211. for as_dir in $PATH
  6212. do
  6213. IFS=$as_save_IFS
  6214. test -z "$as_dir" && as_dir=.
  6215. for ac_exec_ext in '' $ac_executable_extensions; do
  6216. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6217. ac_cv_prog_ac_ct_STRIP="strip"
  6218. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6219. break 2
  6220. fi
  6221. done
  6222. done
  6223. IFS=$as_save_IFS
  6224. fi
  6225. fi
  6226. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6227. if test -n "$ac_ct_STRIP"; then
  6228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6229. $as_echo "$ac_ct_STRIP" >&6; }
  6230. else
  6231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6232. $as_echo "no" >&6; }
  6233. fi
  6234. if test "x$ac_ct_STRIP" = x; then
  6235. STRIP=":"
  6236. else
  6237. case $cross_compiling:$ac_tool_warned in
  6238. yes:)
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6240. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6241. ac_tool_warned=yes ;;
  6242. esac
  6243. STRIP=$ac_ct_STRIP
  6244. fi
  6245. else
  6246. STRIP="$ac_cv_prog_STRIP"
  6247. fi
  6248. test -z "$STRIP" && STRIP=:
  6249. if test -n "$ac_tool_prefix"; then
  6250. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6251. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6253. $as_echo_n "checking for $ac_word... " >&6; }
  6254. if ${ac_cv_prog_RANLIB+:} false; then :
  6255. $as_echo_n "(cached) " >&6
  6256. else
  6257. if test -n "$RANLIB"; then
  6258. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6259. else
  6260. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6261. for as_dir in $PATH
  6262. do
  6263. IFS=$as_save_IFS
  6264. test -z "$as_dir" && as_dir=.
  6265. for ac_exec_ext in '' $ac_executable_extensions; do
  6266. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6267. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6268. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6269. break 2
  6270. fi
  6271. done
  6272. done
  6273. IFS=$as_save_IFS
  6274. fi
  6275. fi
  6276. RANLIB=$ac_cv_prog_RANLIB
  6277. if test -n "$RANLIB"; then
  6278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6279. $as_echo "$RANLIB" >&6; }
  6280. else
  6281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6282. $as_echo "no" >&6; }
  6283. fi
  6284. fi
  6285. if test -z "$ac_cv_prog_RANLIB"; then
  6286. ac_ct_RANLIB=$RANLIB
  6287. # Extract the first word of "ranlib", so it can be a program name with args.
  6288. set dummy ranlib; ac_word=$2
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6290. $as_echo_n "checking for $ac_word... " >&6; }
  6291. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6292. $as_echo_n "(cached) " >&6
  6293. else
  6294. if test -n "$ac_ct_RANLIB"; then
  6295. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6296. else
  6297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6298. for as_dir in $PATH
  6299. do
  6300. IFS=$as_save_IFS
  6301. test -z "$as_dir" && as_dir=.
  6302. for ac_exec_ext in '' $ac_executable_extensions; do
  6303. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6304. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6305. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6306. break 2
  6307. fi
  6308. done
  6309. done
  6310. IFS=$as_save_IFS
  6311. fi
  6312. fi
  6313. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6314. if test -n "$ac_ct_RANLIB"; then
  6315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6316. $as_echo "$ac_ct_RANLIB" >&6; }
  6317. else
  6318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6319. $as_echo "no" >&6; }
  6320. fi
  6321. if test "x$ac_ct_RANLIB" = x; then
  6322. RANLIB=":"
  6323. else
  6324. case $cross_compiling:$ac_tool_warned in
  6325. yes:)
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6327. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6328. ac_tool_warned=yes ;;
  6329. esac
  6330. RANLIB=$ac_ct_RANLIB
  6331. fi
  6332. else
  6333. RANLIB="$ac_cv_prog_RANLIB"
  6334. fi
  6335. test -z "$RANLIB" && RANLIB=:
  6336. # Determine commands to create old-style static archives.
  6337. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6338. old_postinstall_cmds='chmod 644 $oldlib'
  6339. old_postuninstall_cmds=
  6340. if test -n "$RANLIB"; then
  6341. case $host_os in
  6342. openbsd*)
  6343. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6344. ;;
  6345. *)
  6346. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6347. ;;
  6348. esac
  6349. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6350. fi
  6351. case $host_os in
  6352. darwin*)
  6353. lock_old_archive_extraction=yes ;;
  6354. *)
  6355. lock_old_archive_extraction=no ;;
  6356. esac
  6357. # If no C compiler was specified, use CC.
  6358. LTCC=${LTCC-"$CC"}
  6359. # If no C compiler flags were specified, use CFLAGS.
  6360. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6361. # Allow CC to be a program name with arguments.
  6362. compiler=$CC
  6363. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6365. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6366. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6367. $as_echo_n "(cached) " >&6
  6368. else
  6369. # These are sane defaults that work on at least a few old systems.
  6370. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6371. # Character class describing NM global symbol codes.
  6372. symcode='[BCDEGRST]'
  6373. # Regexp to match symbols that can be accessed directly from C.
  6374. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6375. # Define system-specific variables.
  6376. case $host_os in
  6377. aix*)
  6378. symcode='[BCDT]'
  6379. ;;
  6380. cygwin* | mingw* | pw32* | cegcc*)
  6381. symcode='[ABCDGISTW]'
  6382. ;;
  6383. hpux*)
  6384. if test "$host_cpu" = ia64; then
  6385. symcode='[ABCDEGRST]'
  6386. fi
  6387. ;;
  6388. irix* | nonstopux*)
  6389. symcode='[BCDEGRST]'
  6390. ;;
  6391. osf*)
  6392. symcode='[BCDEGQRST]'
  6393. ;;
  6394. solaris*)
  6395. symcode='[BDRT]'
  6396. ;;
  6397. sco3.2v5*)
  6398. symcode='[DT]'
  6399. ;;
  6400. sysv4.2uw2*)
  6401. symcode='[DT]'
  6402. ;;
  6403. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6404. symcode='[ABDT]'
  6405. ;;
  6406. sysv4)
  6407. symcode='[DFNSTU]'
  6408. ;;
  6409. esac
  6410. # If we're using GNU nm, then use its standard symbol codes.
  6411. case `$NM -V 2>&1` in
  6412. *GNU* | *'with BFD'*)
  6413. symcode='[ABCDGIRSTW]' ;;
  6414. esac
  6415. # Transform an extracted symbol line into a proper C declaration.
  6416. # Some systems (esp. on ia64) link data and code symbols differently,
  6417. # so use this general approach.
  6418. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6419. # Transform an extracted symbol line into symbol name and symbol address
  6420. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6421. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  6422. # Handle CRLF in mingw tool chain
  6423. opt_cr=
  6424. case $build_os in
  6425. mingw*)
  6426. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6427. ;;
  6428. esac
  6429. # Try without a prefix underscore, then with it.
  6430. for ac_symprfx in "" "_"; do
  6431. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6432. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6433. # Write the raw and C identifiers.
  6434. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6435. # Fake it for dumpbin and say T for any non-static function
  6436. # and D for any global variable.
  6437. # Also find C++ and __fastcall symbols from MSVC++,
  6438. # which start with @ or ?.
  6439. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6440. " {last_section=section; section=\$ 3};"\
  6441. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6442. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6443. " \$ 0!~/External *\|/{next};"\
  6444. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6445. " {if(hide[section]) next};"\
  6446. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6447. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6448. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6449. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6450. " ' prfx=^$ac_symprfx"
  6451. else
  6452. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6453. fi
  6454. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6455. # Check to see that the pipe works correctly.
  6456. pipe_works=no
  6457. rm -f conftest*
  6458. cat > conftest.$ac_ext <<_LT_EOF
  6459. #ifdef __cplusplus
  6460. extern "C" {
  6461. #endif
  6462. char nm_test_var;
  6463. void nm_test_func(void);
  6464. void nm_test_func(void){}
  6465. #ifdef __cplusplus
  6466. }
  6467. #endif
  6468. int main(){nm_test_var='a';nm_test_func();return(0);}
  6469. _LT_EOF
  6470. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6471. (eval $ac_compile) 2>&5
  6472. ac_status=$?
  6473. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6474. test $ac_status = 0; }; then
  6475. # Now try to grab the symbols.
  6476. nlist=conftest.nm
  6477. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6478. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6479. ac_status=$?
  6480. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6481. test $ac_status = 0; } && test -s "$nlist"; then
  6482. # Try sorting and uniquifying the output.
  6483. if sort "$nlist" | uniq > "$nlist"T; then
  6484. mv -f "$nlist"T "$nlist"
  6485. else
  6486. rm -f "$nlist"T
  6487. fi
  6488. # Make sure that we snagged all the symbols we need.
  6489. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6490. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6491. cat <<_LT_EOF > conftest.$ac_ext
  6492. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6493. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6494. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6495. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6496. # define LT_DLSYM_CONST
  6497. #elif defined(__osf__)
  6498. /* This system does not cope well with relocations in const data. */
  6499. # define LT_DLSYM_CONST
  6500. #else
  6501. # define LT_DLSYM_CONST const
  6502. #endif
  6503. #ifdef __cplusplus
  6504. extern "C" {
  6505. #endif
  6506. _LT_EOF
  6507. # Now generate the symbol file.
  6508. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6509. cat <<_LT_EOF >> conftest.$ac_ext
  6510. /* The mapping between symbol names and symbols. */
  6511. LT_DLSYM_CONST struct {
  6512. const char *name;
  6513. void *address;
  6514. }
  6515. lt__PROGRAM__LTX_preloaded_symbols[] =
  6516. {
  6517. { "@PROGRAM@", (void *) 0 },
  6518. _LT_EOF
  6519. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6520. cat <<\_LT_EOF >> conftest.$ac_ext
  6521. {0, (void *) 0}
  6522. };
  6523. /* This works around a problem in FreeBSD linker */
  6524. #ifdef FREEBSD_WORKAROUND
  6525. static const void *lt_preloaded_setup() {
  6526. return lt__PROGRAM__LTX_preloaded_symbols;
  6527. }
  6528. #endif
  6529. #ifdef __cplusplus
  6530. }
  6531. #endif
  6532. _LT_EOF
  6533. # Now try linking the two files.
  6534. mv conftest.$ac_objext conftstm.$ac_objext
  6535. lt_globsym_save_LIBS=$LIBS
  6536. lt_globsym_save_CFLAGS=$CFLAGS
  6537. LIBS="conftstm.$ac_objext"
  6538. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6539. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6540. (eval $ac_link) 2>&5
  6541. ac_status=$?
  6542. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6543. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6544. pipe_works=yes
  6545. fi
  6546. LIBS=$lt_globsym_save_LIBS
  6547. CFLAGS=$lt_globsym_save_CFLAGS
  6548. else
  6549. echo "cannot find nm_test_func in $nlist" >&5
  6550. fi
  6551. else
  6552. echo "cannot find nm_test_var in $nlist" >&5
  6553. fi
  6554. else
  6555. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6556. fi
  6557. else
  6558. echo "$progname: failed program was:" >&5
  6559. cat conftest.$ac_ext >&5
  6560. fi
  6561. rm -rf conftest* conftst*
  6562. # Do not use the global_symbol_pipe unless it works.
  6563. if test "$pipe_works" = yes; then
  6564. break
  6565. else
  6566. lt_cv_sys_global_symbol_pipe=
  6567. fi
  6568. done
  6569. fi
  6570. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6571. lt_cv_sys_global_symbol_to_cdecl=
  6572. fi
  6573. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6575. $as_echo "failed" >&6; }
  6576. else
  6577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6578. $as_echo "ok" >&6; }
  6579. fi
  6580. # Response file support.
  6581. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6582. nm_file_list_spec='@'
  6583. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6584. nm_file_list_spec='@'
  6585. fi
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6587. $as_echo_n "checking for sysroot... " >&6; }
  6588. # Check whether --with-sysroot was given.
  6589. if test "${with_sysroot+set}" = set; then :
  6590. withval=$with_sysroot;
  6591. else
  6592. with_sysroot=no
  6593. fi
  6594. lt_sysroot=
  6595. case ${with_sysroot} in #(
  6596. yes)
  6597. if test "$GCC" = yes; then
  6598. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6599. fi
  6600. ;; #(
  6601. /*)
  6602. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6603. ;; #(
  6604. no|'')
  6605. ;; #(
  6606. *)
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6608. $as_echo "${with_sysroot}" >&6; }
  6609. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6610. ;;
  6611. esac
  6612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6613. $as_echo "${lt_sysroot:-no}" >&6; }
  6614. # Check whether --enable-libtool-lock was given.
  6615. if test "${enable_libtool_lock+set}" = set; then :
  6616. enableval=$enable_libtool_lock;
  6617. fi
  6618. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6619. # Some flags need to be propagated to the compiler or linker for good
  6620. # libtool support.
  6621. case $host in
  6622. ia64-*-hpux*)
  6623. # Find out which ABI we are using.
  6624. echo 'int i;' > conftest.$ac_ext
  6625. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6626. (eval $ac_compile) 2>&5
  6627. ac_status=$?
  6628. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6629. test $ac_status = 0; }; then
  6630. case `/usr/bin/file conftest.$ac_objext` in
  6631. *ELF-32*)
  6632. HPUX_IA64_MODE="32"
  6633. ;;
  6634. *ELF-64*)
  6635. HPUX_IA64_MODE="64"
  6636. ;;
  6637. esac
  6638. fi
  6639. rm -rf conftest*
  6640. ;;
  6641. *-*-irix6*)
  6642. # Find out which ABI we are using.
  6643. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6644. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6645. (eval $ac_compile) 2>&5
  6646. ac_status=$?
  6647. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6648. test $ac_status = 0; }; then
  6649. if test "$lt_cv_prog_gnu_ld" = yes; then
  6650. case `/usr/bin/file conftest.$ac_objext` in
  6651. *32-bit*)
  6652. LD="${LD-ld} -melf32bsmip"
  6653. ;;
  6654. *N32*)
  6655. LD="${LD-ld} -melf32bmipn32"
  6656. ;;
  6657. *64-bit*)
  6658. LD="${LD-ld} -melf64bmip"
  6659. ;;
  6660. esac
  6661. else
  6662. case `/usr/bin/file conftest.$ac_objext` in
  6663. *32-bit*)
  6664. LD="${LD-ld} -32"
  6665. ;;
  6666. *N32*)
  6667. LD="${LD-ld} -n32"
  6668. ;;
  6669. *64-bit*)
  6670. LD="${LD-ld} -64"
  6671. ;;
  6672. esac
  6673. fi
  6674. fi
  6675. rm -rf conftest*
  6676. ;;
  6677. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6678. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6679. # Find out which ABI we are using.
  6680. echo 'int i;' > conftest.$ac_ext
  6681. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6682. (eval $ac_compile) 2>&5
  6683. ac_status=$?
  6684. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6685. test $ac_status = 0; }; then
  6686. case `/usr/bin/file conftest.o` in
  6687. *32-bit*)
  6688. case $host in
  6689. x86_64-*kfreebsd*-gnu)
  6690. LD="${LD-ld} -m elf_i386_fbsd"
  6691. ;;
  6692. x86_64-*linux*)
  6693. LD="${LD-ld} -m elf_i386"
  6694. ;;
  6695. ppc64-*linux*|powerpc64-*linux*)
  6696. LD="${LD-ld} -m elf32ppclinux"
  6697. ;;
  6698. s390x-*linux*)
  6699. LD="${LD-ld} -m elf_s390"
  6700. ;;
  6701. sparc64-*linux*)
  6702. LD="${LD-ld} -m elf32_sparc"
  6703. ;;
  6704. esac
  6705. ;;
  6706. *64-bit*)
  6707. case $host in
  6708. x86_64-*kfreebsd*-gnu)
  6709. LD="${LD-ld} -m elf_x86_64_fbsd"
  6710. ;;
  6711. x86_64-*linux*)
  6712. LD="${LD-ld} -m elf_x86_64"
  6713. ;;
  6714. ppc*-*linux*|powerpc*-*linux*)
  6715. LD="${LD-ld} -m elf64ppc"
  6716. ;;
  6717. s390*-*linux*|s390*-*tpf*)
  6718. LD="${LD-ld} -m elf64_s390"
  6719. ;;
  6720. sparc*-*linux*)
  6721. LD="${LD-ld} -m elf64_sparc"
  6722. ;;
  6723. esac
  6724. ;;
  6725. esac
  6726. fi
  6727. rm -rf conftest*
  6728. ;;
  6729. *-*-sco3.2v5*)
  6730. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6731. SAVE_CFLAGS="$CFLAGS"
  6732. CFLAGS="$CFLAGS -belf"
  6733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6734. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6735. if ${lt_cv_cc_needs_belf+:} false; then :
  6736. $as_echo_n "(cached) " >&6
  6737. else
  6738. ac_ext=c
  6739. ac_cpp='$CPP $CPPFLAGS'
  6740. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6741. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6742. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6744. /* end confdefs.h. */
  6745. int
  6746. main ()
  6747. {
  6748. ;
  6749. return 0;
  6750. }
  6751. _ACEOF
  6752. if ac_fn_c_try_link "$LINENO"; then :
  6753. lt_cv_cc_needs_belf=yes
  6754. else
  6755. lt_cv_cc_needs_belf=no
  6756. fi
  6757. rm -f core conftest.err conftest.$ac_objext \
  6758. conftest$ac_exeext conftest.$ac_ext
  6759. ac_ext=c
  6760. ac_cpp='$CPP $CPPFLAGS'
  6761. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6762. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6763. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6764. fi
  6765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6766. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6767. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6768. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6769. CFLAGS="$SAVE_CFLAGS"
  6770. fi
  6771. ;;
  6772. *-*solaris*)
  6773. # Find out which ABI we are using.
  6774. echo 'int i;' > conftest.$ac_ext
  6775. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6776. (eval $ac_compile) 2>&5
  6777. ac_status=$?
  6778. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6779. test $ac_status = 0; }; then
  6780. case `/usr/bin/file conftest.o` in
  6781. *64-bit*)
  6782. case $lt_cv_prog_gnu_ld in
  6783. yes*)
  6784. case $host in
  6785. i?86-*-solaris*)
  6786. LD="${LD-ld} -m elf_x86_64"
  6787. ;;
  6788. sparc*-*-solaris*)
  6789. LD="${LD-ld} -m elf64_sparc"
  6790. ;;
  6791. esac
  6792. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6793. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6794. LD="${LD-ld}_sol2"
  6795. fi
  6796. ;;
  6797. *)
  6798. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6799. LD="${LD-ld} -64"
  6800. fi
  6801. ;;
  6802. esac
  6803. ;;
  6804. esac
  6805. fi
  6806. rm -rf conftest*
  6807. ;;
  6808. esac
  6809. need_locks="$enable_libtool_lock"
  6810. if test -n "$ac_tool_prefix"; then
  6811. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6812. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6814. $as_echo_n "checking for $ac_word... " >&6; }
  6815. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6816. $as_echo_n "(cached) " >&6
  6817. else
  6818. if test -n "$MANIFEST_TOOL"; then
  6819. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6820. else
  6821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6822. for as_dir in $PATH
  6823. do
  6824. IFS=$as_save_IFS
  6825. test -z "$as_dir" && as_dir=.
  6826. for ac_exec_ext in '' $ac_executable_extensions; do
  6827. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6828. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6830. break 2
  6831. fi
  6832. done
  6833. done
  6834. IFS=$as_save_IFS
  6835. fi
  6836. fi
  6837. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6838. if test -n "$MANIFEST_TOOL"; then
  6839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6840. $as_echo "$MANIFEST_TOOL" >&6; }
  6841. else
  6842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6843. $as_echo "no" >&6; }
  6844. fi
  6845. fi
  6846. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6847. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6848. # Extract the first word of "mt", so it can be a program name with args.
  6849. set dummy mt; ac_word=$2
  6850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6851. $as_echo_n "checking for $ac_word... " >&6; }
  6852. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6853. $as_echo_n "(cached) " >&6
  6854. else
  6855. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6856. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6857. else
  6858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6859. for as_dir in $PATH
  6860. do
  6861. IFS=$as_save_IFS
  6862. test -z "$as_dir" && as_dir=.
  6863. for ac_exec_ext in '' $ac_executable_extensions; do
  6864. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6865. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6867. break 2
  6868. fi
  6869. done
  6870. done
  6871. IFS=$as_save_IFS
  6872. fi
  6873. fi
  6874. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6875. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6877. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6878. else
  6879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6880. $as_echo "no" >&6; }
  6881. fi
  6882. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6883. MANIFEST_TOOL=":"
  6884. else
  6885. case $cross_compiling:$ac_tool_warned in
  6886. yes:)
  6887. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6888. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6889. ac_tool_warned=yes ;;
  6890. esac
  6891. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6892. fi
  6893. else
  6894. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6895. fi
  6896. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6898. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6899. if ${lt_cv_path_mainfest_tool+:} false; then :
  6900. $as_echo_n "(cached) " >&6
  6901. else
  6902. lt_cv_path_mainfest_tool=no
  6903. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6904. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6905. cat conftest.err >&5
  6906. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6907. lt_cv_path_mainfest_tool=yes
  6908. fi
  6909. rm -f conftest*
  6910. fi
  6911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6912. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6913. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6914. MANIFEST_TOOL=:
  6915. fi
  6916. case $host_os in
  6917. rhapsody* | darwin*)
  6918. if test -n "$ac_tool_prefix"; then
  6919. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6920. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6922. $as_echo_n "checking for $ac_word... " >&6; }
  6923. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6924. $as_echo_n "(cached) " >&6
  6925. else
  6926. if test -n "$DSYMUTIL"; then
  6927. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6928. else
  6929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6930. for as_dir in $PATH
  6931. do
  6932. IFS=$as_save_IFS
  6933. test -z "$as_dir" && as_dir=.
  6934. for ac_exec_ext in '' $ac_executable_extensions; do
  6935. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6936. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6937. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6938. break 2
  6939. fi
  6940. done
  6941. done
  6942. IFS=$as_save_IFS
  6943. fi
  6944. fi
  6945. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6946. if test -n "$DSYMUTIL"; then
  6947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6948. $as_echo "$DSYMUTIL" >&6; }
  6949. else
  6950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6951. $as_echo "no" >&6; }
  6952. fi
  6953. fi
  6954. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6955. ac_ct_DSYMUTIL=$DSYMUTIL
  6956. # Extract the first word of "dsymutil", so it can be a program name with args.
  6957. set dummy dsymutil; ac_word=$2
  6958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6959. $as_echo_n "checking for $ac_word... " >&6; }
  6960. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6961. $as_echo_n "(cached) " >&6
  6962. else
  6963. if test -n "$ac_ct_DSYMUTIL"; then
  6964. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6965. else
  6966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6967. for as_dir in $PATH
  6968. do
  6969. IFS=$as_save_IFS
  6970. test -z "$as_dir" && as_dir=.
  6971. for ac_exec_ext in '' $ac_executable_extensions; do
  6972. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6973. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6974. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6975. break 2
  6976. fi
  6977. done
  6978. done
  6979. IFS=$as_save_IFS
  6980. fi
  6981. fi
  6982. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6983. if test -n "$ac_ct_DSYMUTIL"; then
  6984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6985. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6986. else
  6987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6988. $as_echo "no" >&6; }
  6989. fi
  6990. if test "x$ac_ct_DSYMUTIL" = x; then
  6991. DSYMUTIL=":"
  6992. else
  6993. case $cross_compiling:$ac_tool_warned in
  6994. yes:)
  6995. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6996. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6997. ac_tool_warned=yes ;;
  6998. esac
  6999. DSYMUTIL=$ac_ct_DSYMUTIL
  7000. fi
  7001. else
  7002. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7003. fi
  7004. if test -n "$ac_tool_prefix"; then
  7005. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7006. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7008. $as_echo_n "checking for $ac_word... " >&6; }
  7009. if ${ac_cv_prog_NMEDIT+:} false; then :
  7010. $as_echo_n "(cached) " >&6
  7011. else
  7012. if test -n "$NMEDIT"; then
  7013. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7014. else
  7015. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7016. for as_dir in $PATH
  7017. do
  7018. IFS=$as_save_IFS
  7019. test -z "$as_dir" && as_dir=.
  7020. for ac_exec_ext in '' $ac_executable_extensions; do
  7021. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7022. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7023. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7024. break 2
  7025. fi
  7026. done
  7027. done
  7028. IFS=$as_save_IFS
  7029. fi
  7030. fi
  7031. NMEDIT=$ac_cv_prog_NMEDIT
  7032. if test -n "$NMEDIT"; then
  7033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7034. $as_echo "$NMEDIT" >&6; }
  7035. else
  7036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7037. $as_echo "no" >&6; }
  7038. fi
  7039. fi
  7040. if test -z "$ac_cv_prog_NMEDIT"; then
  7041. ac_ct_NMEDIT=$NMEDIT
  7042. # Extract the first word of "nmedit", so it can be a program name with args.
  7043. set dummy nmedit; ac_word=$2
  7044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7045. $as_echo_n "checking for $ac_word... " >&6; }
  7046. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7047. $as_echo_n "(cached) " >&6
  7048. else
  7049. if test -n "$ac_ct_NMEDIT"; then
  7050. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7051. else
  7052. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7053. for as_dir in $PATH
  7054. do
  7055. IFS=$as_save_IFS
  7056. test -z "$as_dir" && as_dir=.
  7057. for ac_exec_ext in '' $ac_executable_extensions; do
  7058. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7059. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7060. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7061. break 2
  7062. fi
  7063. done
  7064. done
  7065. IFS=$as_save_IFS
  7066. fi
  7067. fi
  7068. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7069. if test -n "$ac_ct_NMEDIT"; then
  7070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7071. $as_echo "$ac_ct_NMEDIT" >&6; }
  7072. else
  7073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7074. $as_echo "no" >&6; }
  7075. fi
  7076. if test "x$ac_ct_NMEDIT" = x; then
  7077. NMEDIT=":"
  7078. else
  7079. case $cross_compiling:$ac_tool_warned in
  7080. yes:)
  7081. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7082. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7083. ac_tool_warned=yes ;;
  7084. esac
  7085. NMEDIT=$ac_ct_NMEDIT
  7086. fi
  7087. else
  7088. NMEDIT="$ac_cv_prog_NMEDIT"
  7089. fi
  7090. if test -n "$ac_tool_prefix"; then
  7091. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7092. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7094. $as_echo_n "checking for $ac_word... " >&6; }
  7095. if ${ac_cv_prog_LIPO+:} false; then :
  7096. $as_echo_n "(cached) " >&6
  7097. else
  7098. if test -n "$LIPO"; then
  7099. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7100. else
  7101. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7102. for as_dir in $PATH
  7103. do
  7104. IFS=$as_save_IFS
  7105. test -z "$as_dir" && as_dir=.
  7106. for ac_exec_ext in '' $ac_executable_extensions; do
  7107. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7108. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7109. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7110. break 2
  7111. fi
  7112. done
  7113. done
  7114. IFS=$as_save_IFS
  7115. fi
  7116. fi
  7117. LIPO=$ac_cv_prog_LIPO
  7118. if test -n "$LIPO"; then
  7119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7120. $as_echo "$LIPO" >&6; }
  7121. else
  7122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7123. $as_echo "no" >&6; }
  7124. fi
  7125. fi
  7126. if test -z "$ac_cv_prog_LIPO"; then
  7127. ac_ct_LIPO=$LIPO
  7128. # Extract the first word of "lipo", so it can be a program name with args.
  7129. set dummy lipo; ac_word=$2
  7130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7131. $as_echo_n "checking for $ac_word... " >&6; }
  7132. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7133. $as_echo_n "(cached) " >&6
  7134. else
  7135. if test -n "$ac_ct_LIPO"; then
  7136. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7137. else
  7138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7139. for as_dir in $PATH
  7140. do
  7141. IFS=$as_save_IFS
  7142. test -z "$as_dir" && as_dir=.
  7143. for ac_exec_ext in '' $ac_executable_extensions; do
  7144. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7145. ac_cv_prog_ac_ct_LIPO="lipo"
  7146. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7147. break 2
  7148. fi
  7149. done
  7150. done
  7151. IFS=$as_save_IFS
  7152. fi
  7153. fi
  7154. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7155. if test -n "$ac_ct_LIPO"; then
  7156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7157. $as_echo "$ac_ct_LIPO" >&6; }
  7158. else
  7159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7160. $as_echo "no" >&6; }
  7161. fi
  7162. if test "x$ac_ct_LIPO" = x; then
  7163. LIPO=":"
  7164. else
  7165. case $cross_compiling:$ac_tool_warned in
  7166. yes:)
  7167. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7168. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7169. ac_tool_warned=yes ;;
  7170. esac
  7171. LIPO=$ac_ct_LIPO
  7172. fi
  7173. else
  7174. LIPO="$ac_cv_prog_LIPO"
  7175. fi
  7176. if test -n "$ac_tool_prefix"; then
  7177. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7178. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7180. $as_echo_n "checking for $ac_word... " >&6; }
  7181. if ${ac_cv_prog_OTOOL+:} false; then :
  7182. $as_echo_n "(cached) " >&6
  7183. else
  7184. if test -n "$OTOOL"; then
  7185. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7186. else
  7187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7188. for as_dir in $PATH
  7189. do
  7190. IFS=$as_save_IFS
  7191. test -z "$as_dir" && as_dir=.
  7192. for ac_exec_ext in '' $ac_executable_extensions; do
  7193. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7194. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7195. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7196. break 2
  7197. fi
  7198. done
  7199. done
  7200. IFS=$as_save_IFS
  7201. fi
  7202. fi
  7203. OTOOL=$ac_cv_prog_OTOOL
  7204. if test -n "$OTOOL"; then
  7205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7206. $as_echo "$OTOOL" >&6; }
  7207. else
  7208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7209. $as_echo "no" >&6; }
  7210. fi
  7211. fi
  7212. if test -z "$ac_cv_prog_OTOOL"; then
  7213. ac_ct_OTOOL=$OTOOL
  7214. # Extract the first word of "otool", so it can be a program name with args.
  7215. set dummy otool; ac_word=$2
  7216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7217. $as_echo_n "checking for $ac_word... " >&6; }
  7218. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7219. $as_echo_n "(cached) " >&6
  7220. else
  7221. if test -n "$ac_ct_OTOOL"; then
  7222. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7223. else
  7224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7225. for as_dir in $PATH
  7226. do
  7227. IFS=$as_save_IFS
  7228. test -z "$as_dir" && as_dir=.
  7229. for ac_exec_ext in '' $ac_executable_extensions; do
  7230. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7231. ac_cv_prog_ac_ct_OTOOL="otool"
  7232. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7233. break 2
  7234. fi
  7235. done
  7236. done
  7237. IFS=$as_save_IFS
  7238. fi
  7239. fi
  7240. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7241. if test -n "$ac_ct_OTOOL"; then
  7242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7243. $as_echo "$ac_ct_OTOOL" >&6; }
  7244. else
  7245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7246. $as_echo "no" >&6; }
  7247. fi
  7248. if test "x$ac_ct_OTOOL" = x; then
  7249. OTOOL=":"
  7250. else
  7251. case $cross_compiling:$ac_tool_warned in
  7252. yes:)
  7253. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7254. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7255. ac_tool_warned=yes ;;
  7256. esac
  7257. OTOOL=$ac_ct_OTOOL
  7258. fi
  7259. else
  7260. OTOOL="$ac_cv_prog_OTOOL"
  7261. fi
  7262. if test -n "$ac_tool_prefix"; then
  7263. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7264. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7266. $as_echo_n "checking for $ac_word... " >&6; }
  7267. if ${ac_cv_prog_OTOOL64+:} false; then :
  7268. $as_echo_n "(cached) " >&6
  7269. else
  7270. if test -n "$OTOOL64"; then
  7271. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7272. else
  7273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7274. for as_dir in $PATH
  7275. do
  7276. IFS=$as_save_IFS
  7277. test -z "$as_dir" && as_dir=.
  7278. for ac_exec_ext in '' $ac_executable_extensions; do
  7279. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7280. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7281. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7282. break 2
  7283. fi
  7284. done
  7285. done
  7286. IFS=$as_save_IFS
  7287. fi
  7288. fi
  7289. OTOOL64=$ac_cv_prog_OTOOL64
  7290. if test -n "$OTOOL64"; then
  7291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7292. $as_echo "$OTOOL64" >&6; }
  7293. else
  7294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7295. $as_echo "no" >&6; }
  7296. fi
  7297. fi
  7298. if test -z "$ac_cv_prog_OTOOL64"; then
  7299. ac_ct_OTOOL64=$OTOOL64
  7300. # Extract the first word of "otool64", so it can be a program name with args.
  7301. set dummy otool64; ac_word=$2
  7302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7303. $as_echo_n "checking for $ac_word... " >&6; }
  7304. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7305. $as_echo_n "(cached) " >&6
  7306. else
  7307. if test -n "$ac_ct_OTOOL64"; then
  7308. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7309. else
  7310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7311. for as_dir in $PATH
  7312. do
  7313. IFS=$as_save_IFS
  7314. test -z "$as_dir" && as_dir=.
  7315. for ac_exec_ext in '' $ac_executable_extensions; do
  7316. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7317. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7318. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7319. break 2
  7320. fi
  7321. done
  7322. done
  7323. IFS=$as_save_IFS
  7324. fi
  7325. fi
  7326. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7327. if test -n "$ac_ct_OTOOL64"; then
  7328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7329. $as_echo "$ac_ct_OTOOL64" >&6; }
  7330. else
  7331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7332. $as_echo "no" >&6; }
  7333. fi
  7334. if test "x$ac_ct_OTOOL64" = x; then
  7335. OTOOL64=":"
  7336. else
  7337. case $cross_compiling:$ac_tool_warned in
  7338. yes:)
  7339. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7340. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7341. ac_tool_warned=yes ;;
  7342. esac
  7343. OTOOL64=$ac_ct_OTOOL64
  7344. fi
  7345. else
  7346. OTOOL64="$ac_cv_prog_OTOOL64"
  7347. fi
  7348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7349. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7350. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7351. $as_echo_n "(cached) " >&6
  7352. else
  7353. lt_cv_apple_cc_single_mod=no
  7354. if test -z "${LT_MULTI_MODULE}"; then
  7355. # By default we will add the -single_module flag. You can override
  7356. # by either setting the environment variable LT_MULTI_MODULE
  7357. # non-empty at configure time, or by adding -multi_module to the
  7358. # link flags.
  7359. rm -rf libconftest.dylib*
  7360. echo "int foo(void){return 1;}" > conftest.c
  7361. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7362. -dynamiclib -Wl,-single_module conftest.c" >&5
  7363. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7364. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7365. _lt_result=$?
  7366. # If there is a non-empty error log, and "single_module"
  7367. # appears in it, assume the flag caused a linker warning
  7368. if test -s conftest.err && $GREP single_module conftest.err; then
  7369. cat conftest.err >&5
  7370. # Otherwise, if the output was created with a 0 exit code from
  7371. # the compiler, it worked.
  7372. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7373. lt_cv_apple_cc_single_mod=yes
  7374. else
  7375. cat conftest.err >&5
  7376. fi
  7377. rm -rf libconftest.dylib*
  7378. rm -f conftest.*
  7379. fi
  7380. fi
  7381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7382. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7384. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7385. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7386. $as_echo_n "(cached) " >&6
  7387. else
  7388. lt_cv_ld_exported_symbols_list=no
  7389. save_LDFLAGS=$LDFLAGS
  7390. echo "_main" > conftest.sym
  7391. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7393. /* end confdefs.h. */
  7394. int
  7395. main ()
  7396. {
  7397. ;
  7398. return 0;
  7399. }
  7400. _ACEOF
  7401. if ac_fn_c_try_link "$LINENO"; then :
  7402. lt_cv_ld_exported_symbols_list=yes
  7403. else
  7404. lt_cv_ld_exported_symbols_list=no
  7405. fi
  7406. rm -f core conftest.err conftest.$ac_objext \
  7407. conftest$ac_exeext conftest.$ac_ext
  7408. LDFLAGS="$save_LDFLAGS"
  7409. fi
  7410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7411. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7413. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7414. if ${lt_cv_ld_force_load+:} false; then :
  7415. $as_echo_n "(cached) " >&6
  7416. else
  7417. lt_cv_ld_force_load=no
  7418. cat > conftest.c << _LT_EOF
  7419. int forced_loaded() { return 2;}
  7420. _LT_EOF
  7421. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7422. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7423. echo "$AR cru libconftest.a conftest.o" >&5
  7424. $AR cru libconftest.a conftest.o 2>&5
  7425. echo "$RANLIB libconftest.a" >&5
  7426. $RANLIB libconftest.a 2>&5
  7427. cat > conftest.c << _LT_EOF
  7428. int main() { return 0;}
  7429. _LT_EOF
  7430. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7431. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7432. _lt_result=$?
  7433. if test -s conftest.err && $GREP force_load conftest.err; then
  7434. cat conftest.err >&5
  7435. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7436. lt_cv_ld_force_load=yes
  7437. else
  7438. cat conftest.err >&5
  7439. fi
  7440. rm -f conftest.err libconftest.a conftest conftest.c
  7441. rm -rf conftest.dSYM
  7442. fi
  7443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7444. $as_echo "$lt_cv_ld_force_load" >&6; }
  7445. case $host_os in
  7446. rhapsody* | darwin1.[012])
  7447. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7448. darwin1.*)
  7449. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7450. darwin*) # darwin 5.x on
  7451. # if running on 10.5 or later, the deployment target defaults
  7452. # to the OS version, if on x86, and 10.4, the deployment
  7453. # target defaults to 10.4. Don't you love it?
  7454. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7455. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7456. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7457. 10.[012]*)
  7458. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7459. 10.*)
  7460. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7461. esac
  7462. ;;
  7463. esac
  7464. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7465. _lt_dar_single_mod='$single_module'
  7466. fi
  7467. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7468. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7469. else
  7470. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7471. fi
  7472. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7473. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7474. else
  7475. _lt_dsymutil=
  7476. fi
  7477. ;;
  7478. esac
  7479. for ac_header in dlfcn.h
  7480. do :
  7481. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7482. "
  7483. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7484. cat >>confdefs.h <<_ACEOF
  7485. #define HAVE_DLFCN_H 1
  7486. _ACEOF
  7487. fi
  7488. done
  7489. # Set options
  7490. # Check whether --enable-static was given.
  7491. if test "${enable_static+set}" = set; then :
  7492. enableval=$enable_static; p=${PACKAGE-default}
  7493. case $enableval in
  7494. yes) enable_static=yes ;;
  7495. no) enable_static=no ;;
  7496. *)
  7497. enable_static=no
  7498. # Look at the argument we got. We use all the common list separators.
  7499. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7500. for pkg in $enableval; do
  7501. IFS="$lt_save_ifs"
  7502. if test "X$pkg" = "X$p"; then
  7503. enable_static=yes
  7504. fi
  7505. done
  7506. IFS="$lt_save_ifs"
  7507. ;;
  7508. esac
  7509. else
  7510. enable_static=no
  7511. fi
  7512. # Check whether --with-pic was given.
  7513. if test "${with_pic+set}" = set; then :
  7514. withval=$with_pic; lt_p=${PACKAGE-default}
  7515. case $withval in
  7516. yes|no) pic_mode=$withval ;;
  7517. *)
  7518. pic_mode=default
  7519. # Look at the argument we got. We use all the common list separators.
  7520. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7521. for lt_pkg in $withval; do
  7522. IFS="$lt_save_ifs"
  7523. if test "X$lt_pkg" = "X$lt_p"; then
  7524. pic_mode=yes
  7525. fi
  7526. done
  7527. IFS="$lt_save_ifs"
  7528. ;;
  7529. esac
  7530. else
  7531. pic_mode=default
  7532. fi
  7533. test -z "$pic_mode" && pic_mode=yes
  7534. enable_dlopen=no
  7535. enable_win32_dll=no
  7536. # Check whether --enable-shared was given.
  7537. if test "${enable_shared+set}" = set; then :
  7538. enableval=$enable_shared; p=${PACKAGE-default}
  7539. case $enableval in
  7540. yes) enable_shared=yes ;;
  7541. no) enable_shared=no ;;
  7542. *)
  7543. enable_shared=no
  7544. # Look at the argument we got. We use all the common list separators.
  7545. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7546. for pkg in $enableval; do
  7547. IFS="$lt_save_ifs"
  7548. if test "X$pkg" = "X$p"; then
  7549. enable_shared=yes
  7550. fi
  7551. done
  7552. IFS="$lt_save_ifs"
  7553. ;;
  7554. esac
  7555. else
  7556. enable_shared=yes
  7557. fi
  7558. # Check whether --enable-fast-install was given.
  7559. if test "${enable_fast_install+set}" = set; then :
  7560. enableval=$enable_fast_install; p=${PACKAGE-default}
  7561. case $enableval in
  7562. yes) enable_fast_install=yes ;;
  7563. no) enable_fast_install=no ;;
  7564. *)
  7565. enable_fast_install=no
  7566. # Look at the argument we got. We use all the common list separators.
  7567. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7568. for pkg in $enableval; do
  7569. IFS="$lt_save_ifs"
  7570. if test "X$pkg" = "X$p"; then
  7571. enable_fast_install=yes
  7572. fi
  7573. done
  7574. IFS="$lt_save_ifs"
  7575. ;;
  7576. esac
  7577. else
  7578. enable_fast_install=yes
  7579. fi
  7580. # This can be used to rebuild libtool when needed
  7581. LIBTOOL_DEPS="$ltmain"
  7582. # Always use our own libtool.
  7583. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7584. test -z "$LN_S" && LN_S="ln -s"
  7585. if test -n "${ZSH_VERSION+set}" ; then
  7586. setopt NO_GLOB_SUBST
  7587. fi
  7588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7589. $as_echo_n "checking for objdir... " >&6; }
  7590. if ${lt_cv_objdir+:} false; then :
  7591. $as_echo_n "(cached) " >&6
  7592. else
  7593. rm -f .libs 2>/dev/null
  7594. mkdir .libs 2>/dev/null
  7595. if test -d .libs; then
  7596. lt_cv_objdir=.libs
  7597. else
  7598. # MS-DOS does not allow filenames that begin with a dot.
  7599. lt_cv_objdir=_libs
  7600. fi
  7601. rmdir .libs 2>/dev/null
  7602. fi
  7603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7604. $as_echo "$lt_cv_objdir" >&6; }
  7605. objdir=$lt_cv_objdir
  7606. cat >>confdefs.h <<_ACEOF
  7607. #define LT_OBJDIR "$lt_cv_objdir/"
  7608. _ACEOF
  7609. case $host_os in
  7610. aix3*)
  7611. # AIX sometimes has problems with the GCC collect2 program. For some
  7612. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7613. # vanish in a puff of smoke.
  7614. if test "X${COLLECT_NAMES+set}" != Xset; then
  7615. COLLECT_NAMES=
  7616. export COLLECT_NAMES
  7617. fi
  7618. ;;
  7619. esac
  7620. # Global variables:
  7621. ofile=libtool
  7622. can_build_shared=yes
  7623. # All known linkers require a `.a' archive for static linking (except MSVC,
  7624. # which needs '.lib').
  7625. libext=a
  7626. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7627. old_CC="$CC"
  7628. old_CFLAGS="$CFLAGS"
  7629. # Set sane defaults for various variables
  7630. test -z "$CC" && CC=cc
  7631. test -z "$LTCC" && LTCC=$CC
  7632. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7633. test -z "$LD" && LD=ld
  7634. test -z "$ac_objext" && ac_objext=o
  7635. for cc_temp in $compiler""; do
  7636. case $cc_temp in
  7637. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7638. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7639. \-*) ;;
  7640. *) break;;
  7641. esac
  7642. done
  7643. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7644. # Only perform the check for file, if the check method requires it
  7645. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7646. case $deplibs_check_method in
  7647. file_magic*)
  7648. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7650. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7651. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7652. $as_echo_n "(cached) " >&6
  7653. else
  7654. case $MAGIC_CMD in
  7655. [\\/*] | ?:[\\/]*)
  7656. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7657. ;;
  7658. *)
  7659. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7660. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7661. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7662. for ac_dir in $ac_dummy; do
  7663. IFS="$lt_save_ifs"
  7664. test -z "$ac_dir" && ac_dir=.
  7665. if test -f $ac_dir/${ac_tool_prefix}file; then
  7666. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7667. if test -n "$file_magic_test_file"; then
  7668. case $deplibs_check_method in
  7669. "file_magic "*)
  7670. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7671. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7672. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7673. $EGREP "$file_magic_regex" > /dev/null; then
  7674. :
  7675. else
  7676. cat <<_LT_EOF 1>&2
  7677. *** Warning: the command libtool uses to detect shared libraries,
  7678. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7679. *** The result is that libtool may fail to recognize shared libraries
  7680. *** as such. This will affect the creation of libtool libraries that
  7681. *** depend on shared libraries, but programs linked with such libtool
  7682. *** libraries will work regardless of this problem. Nevertheless, you
  7683. *** may want to report the problem to your system manager and/or to
  7684. *** bug-libtool@gnu.org
  7685. _LT_EOF
  7686. fi ;;
  7687. esac
  7688. fi
  7689. break
  7690. fi
  7691. done
  7692. IFS="$lt_save_ifs"
  7693. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7694. ;;
  7695. esac
  7696. fi
  7697. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7698. if test -n "$MAGIC_CMD"; then
  7699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7700. $as_echo "$MAGIC_CMD" >&6; }
  7701. else
  7702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7703. $as_echo "no" >&6; }
  7704. fi
  7705. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7706. if test -n "$ac_tool_prefix"; then
  7707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7708. $as_echo_n "checking for file... " >&6; }
  7709. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7710. $as_echo_n "(cached) " >&6
  7711. else
  7712. case $MAGIC_CMD in
  7713. [\\/*] | ?:[\\/]*)
  7714. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7715. ;;
  7716. *)
  7717. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7718. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7719. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7720. for ac_dir in $ac_dummy; do
  7721. IFS="$lt_save_ifs"
  7722. test -z "$ac_dir" && ac_dir=.
  7723. if test -f $ac_dir/file; then
  7724. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7725. if test -n "$file_magic_test_file"; then
  7726. case $deplibs_check_method in
  7727. "file_magic "*)
  7728. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7729. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7730. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7731. $EGREP "$file_magic_regex" > /dev/null; then
  7732. :
  7733. else
  7734. cat <<_LT_EOF 1>&2
  7735. *** Warning: the command libtool uses to detect shared libraries,
  7736. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7737. *** The result is that libtool may fail to recognize shared libraries
  7738. *** as such. This will affect the creation of libtool libraries that
  7739. *** depend on shared libraries, but programs linked with such libtool
  7740. *** libraries will work regardless of this problem. Nevertheless, you
  7741. *** may want to report the problem to your system manager and/or to
  7742. *** bug-libtool@gnu.org
  7743. _LT_EOF
  7744. fi ;;
  7745. esac
  7746. fi
  7747. break
  7748. fi
  7749. done
  7750. IFS="$lt_save_ifs"
  7751. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7752. ;;
  7753. esac
  7754. fi
  7755. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7756. if test -n "$MAGIC_CMD"; then
  7757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7758. $as_echo "$MAGIC_CMD" >&6; }
  7759. else
  7760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7761. $as_echo "no" >&6; }
  7762. fi
  7763. else
  7764. MAGIC_CMD=:
  7765. fi
  7766. fi
  7767. fi
  7768. ;;
  7769. esac
  7770. # Use C for the default configuration in the libtool script
  7771. lt_save_CC="$CC"
  7772. ac_ext=c
  7773. ac_cpp='$CPP $CPPFLAGS'
  7774. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7775. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7776. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7777. # Source file extension for C test sources.
  7778. ac_ext=c
  7779. # Object file extension for compiled C test sources.
  7780. objext=o
  7781. objext=$objext
  7782. # Code to be used in simple compile tests
  7783. lt_simple_compile_test_code="int some_variable = 0;"
  7784. # Code to be used in simple link tests
  7785. lt_simple_link_test_code='int main(){return(0);}'
  7786. # If no C compiler was specified, use CC.
  7787. LTCC=${LTCC-"$CC"}
  7788. # If no C compiler flags were specified, use CFLAGS.
  7789. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7790. # Allow CC to be a program name with arguments.
  7791. compiler=$CC
  7792. # Save the default compiler, since it gets overwritten when the other
  7793. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7794. compiler_DEFAULT=$CC
  7795. # save warnings/boilerplate of simple test code
  7796. ac_outfile=conftest.$ac_objext
  7797. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7798. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7799. _lt_compiler_boilerplate=`cat conftest.err`
  7800. $RM conftest*
  7801. ac_outfile=conftest.$ac_objext
  7802. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7803. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7804. _lt_linker_boilerplate=`cat conftest.err`
  7805. $RM -r conftest*
  7806. ## CAVEAT EMPTOR:
  7807. ## There is no encapsulation within the following macros, do not change
  7808. ## the running order or otherwise move them around unless you know exactly
  7809. ## what you are doing...
  7810. if test -n "$compiler"; then
  7811. lt_prog_compiler_no_builtin_flag=
  7812. if test "$GCC" = yes; then
  7813. case $cc_basename in
  7814. nvcc*)
  7815. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7816. *)
  7817. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7818. esac
  7819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7820. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7821. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7822. $as_echo_n "(cached) " >&6
  7823. else
  7824. lt_cv_prog_compiler_rtti_exceptions=no
  7825. ac_outfile=conftest.$ac_objext
  7826. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7827. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7828. # Insert the option either (1) after the last *FLAGS variable, or
  7829. # (2) before a word containing "conftest.", or (3) at the end.
  7830. # Note that $ac_compile itself does not contain backslashes and begins
  7831. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7832. # The option is referenced via a variable to avoid confusing sed.
  7833. lt_compile=`echo "$ac_compile" | $SED \
  7834. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7835. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7836. -e 's:$: $lt_compiler_flag:'`
  7837. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7838. (eval "$lt_compile" 2>conftest.err)
  7839. ac_status=$?
  7840. cat conftest.err >&5
  7841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7842. if (exit $ac_status) && test -s "$ac_outfile"; then
  7843. # The compiler can only warn and ignore the option if not recognized
  7844. # So say no if there are warnings other than the usual output.
  7845. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7846. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7847. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7848. lt_cv_prog_compiler_rtti_exceptions=yes
  7849. fi
  7850. fi
  7851. $RM conftest*
  7852. fi
  7853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7854. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7855. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7856. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7857. else
  7858. :
  7859. fi
  7860. fi
  7861. lt_prog_compiler_wl=
  7862. lt_prog_compiler_pic=
  7863. lt_prog_compiler_static=
  7864. if test "$GCC" = yes; then
  7865. lt_prog_compiler_wl='-Wl,'
  7866. lt_prog_compiler_static='-static'
  7867. case $host_os in
  7868. aix*)
  7869. # All AIX code is PIC.
  7870. if test "$host_cpu" = ia64; then
  7871. # AIX 5 now supports IA64 processor
  7872. lt_prog_compiler_static='-Bstatic'
  7873. fi
  7874. ;;
  7875. amigaos*)
  7876. case $host_cpu in
  7877. powerpc)
  7878. # see comment about AmigaOS4 .so support
  7879. lt_prog_compiler_pic='-fPIC'
  7880. ;;
  7881. m68k)
  7882. # FIXME: we need at least 68020 code to build shared libraries, but
  7883. # adding the `-m68020' flag to GCC prevents building anything better,
  7884. # like `-m68040'.
  7885. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7886. ;;
  7887. esac
  7888. ;;
  7889. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7890. # PIC is the default for these OSes.
  7891. ;;
  7892. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7893. # This hack is so that the source file can tell whether it is being
  7894. # built for inclusion in a dll (and should export symbols for example).
  7895. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7896. # (--disable-auto-import) libraries
  7897. lt_prog_compiler_pic='-DDLL_EXPORT'
  7898. ;;
  7899. darwin* | rhapsody*)
  7900. # PIC is the default on this platform
  7901. # Common symbols not allowed in MH_DYLIB files
  7902. lt_prog_compiler_pic='-fno-common'
  7903. ;;
  7904. haiku*)
  7905. # PIC is the default for Haiku.
  7906. # The "-static" flag exists, but is broken.
  7907. lt_prog_compiler_static=
  7908. ;;
  7909. hpux*)
  7910. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7911. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7912. # sets the default TLS model and affects inlining.
  7913. case $host_cpu in
  7914. hppa*64*)
  7915. # +Z the default
  7916. ;;
  7917. *)
  7918. lt_prog_compiler_pic='-fPIC'
  7919. ;;
  7920. esac
  7921. ;;
  7922. interix[3-9]*)
  7923. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7924. # Instead, we relocate shared libraries at runtime.
  7925. ;;
  7926. msdosdjgpp*)
  7927. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7928. # on systems that don't support them.
  7929. lt_prog_compiler_can_build_shared=no
  7930. enable_shared=no
  7931. ;;
  7932. *nto* | *qnx*)
  7933. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7934. # it will coredump.
  7935. lt_prog_compiler_pic='-fPIC -shared'
  7936. ;;
  7937. sysv4*MP*)
  7938. if test -d /usr/nec; then
  7939. lt_prog_compiler_pic=-Kconform_pic
  7940. fi
  7941. ;;
  7942. *)
  7943. lt_prog_compiler_pic='-fPIC'
  7944. ;;
  7945. esac
  7946. case $cc_basename in
  7947. nvcc*) # Cuda Compiler Driver 2.2
  7948. lt_prog_compiler_wl='-Xlinker '
  7949. if test -n "$lt_prog_compiler_pic"; then
  7950. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7951. fi
  7952. ;;
  7953. esac
  7954. else
  7955. # PORTME Check for flag to pass linker flags through the system compiler.
  7956. case $host_os in
  7957. aix*)
  7958. lt_prog_compiler_wl='-Wl,'
  7959. if test "$host_cpu" = ia64; then
  7960. # AIX 5 now supports IA64 processor
  7961. lt_prog_compiler_static='-Bstatic'
  7962. else
  7963. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7964. fi
  7965. ;;
  7966. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7967. # This hack is so that the source file can tell whether it is being
  7968. # built for inclusion in a dll (and should export symbols for example).
  7969. lt_prog_compiler_pic='-DDLL_EXPORT'
  7970. ;;
  7971. hpux9* | hpux10* | hpux11*)
  7972. lt_prog_compiler_wl='-Wl,'
  7973. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7974. # not for PA HP-UX.
  7975. case $host_cpu in
  7976. hppa*64*|ia64*)
  7977. # +Z the default
  7978. ;;
  7979. *)
  7980. lt_prog_compiler_pic='+Z'
  7981. ;;
  7982. esac
  7983. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7984. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7985. ;;
  7986. irix5* | irix6* | nonstopux*)
  7987. lt_prog_compiler_wl='-Wl,'
  7988. # PIC (with -KPIC) is the default.
  7989. lt_prog_compiler_static='-non_shared'
  7990. ;;
  7991. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7992. case $cc_basename in
  7993. # old Intel for x86_64 which still supported -KPIC.
  7994. ecc*)
  7995. lt_prog_compiler_wl='-Wl,'
  7996. lt_prog_compiler_pic='-KPIC'
  7997. lt_prog_compiler_static='-static'
  7998. ;;
  7999. # icc used to be incompatible with GCC.
  8000. # ICC 10 doesn't accept -KPIC any more.
  8001. icc* | ifort*)
  8002. lt_prog_compiler_wl='-Wl,'
  8003. lt_prog_compiler_pic='-fPIC'
  8004. lt_prog_compiler_static='-static'
  8005. ;;
  8006. # Lahey Fortran 8.1.
  8007. lf95*)
  8008. lt_prog_compiler_wl='-Wl,'
  8009. lt_prog_compiler_pic='--shared'
  8010. lt_prog_compiler_static='--static'
  8011. ;;
  8012. nagfor*)
  8013. # NAG Fortran compiler
  8014. lt_prog_compiler_wl='-Wl,-Wl,,'
  8015. lt_prog_compiler_pic='-PIC'
  8016. lt_prog_compiler_static='-Bstatic'
  8017. ;;
  8018. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8019. # Portland Group compilers (*not* the Pentium gcc compiler,
  8020. # which looks to be a dead project)
  8021. lt_prog_compiler_wl='-Wl,'
  8022. lt_prog_compiler_pic='-fpic'
  8023. lt_prog_compiler_static='-Bstatic'
  8024. ;;
  8025. ccc*)
  8026. lt_prog_compiler_wl='-Wl,'
  8027. # All Alpha code is PIC.
  8028. lt_prog_compiler_static='-non_shared'
  8029. ;;
  8030. xl* | bgxl* | bgf* | mpixl*)
  8031. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8032. lt_prog_compiler_wl='-Wl,'
  8033. lt_prog_compiler_pic='-qpic'
  8034. lt_prog_compiler_static='-qstaticlink'
  8035. ;;
  8036. *)
  8037. case `$CC -V 2>&1 | sed 5q` in
  8038. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8039. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8040. lt_prog_compiler_pic='-KPIC'
  8041. lt_prog_compiler_static='-Bstatic'
  8042. lt_prog_compiler_wl=''
  8043. ;;
  8044. *Sun\ F* | *Sun*Fortran*)
  8045. lt_prog_compiler_pic='-KPIC'
  8046. lt_prog_compiler_static='-Bstatic'
  8047. lt_prog_compiler_wl='-Qoption ld '
  8048. ;;
  8049. *Sun\ C*)
  8050. # Sun C 5.9
  8051. lt_prog_compiler_pic='-KPIC'
  8052. lt_prog_compiler_static='-Bstatic'
  8053. lt_prog_compiler_wl='-Wl,'
  8054. ;;
  8055. *Intel*\ [CF]*Compiler*)
  8056. lt_prog_compiler_wl='-Wl,'
  8057. lt_prog_compiler_pic='-fPIC'
  8058. lt_prog_compiler_static='-static'
  8059. ;;
  8060. *Portland\ Group*)
  8061. lt_prog_compiler_wl='-Wl,'
  8062. lt_prog_compiler_pic='-fpic'
  8063. lt_prog_compiler_static='-Bstatic'
  8064. ;;
  8065. esac
  8066. ;;
  8067. esac
  8068. ;;
  8069. newsos6)
  8070. lt_prog_compiler_pic='-KPIC'
  8071. lt_prog_compiler_static='-Bstatic'
  8072. ;;
  8073. *nto* | *qnx*)
  8074. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8075. # it will coredump.
  8076. lt_prog_compiler_pic='-fPIC -shared'
  8077. ;;
  8078. osf3* | osf4* | osf5*)
  8079. lt_prog_compiler_wl='-Wl,'
  8080. # All OSF/1 code is PIC.
  8081. lt_prog_compiler_static='-non_shared'
  8082. ;;
  8083. rdos*)
  8084. lt_prog_compiler_static='-non_shared'
  8085. ;;
  8086. solaris*)
  8087. lt_prog_compiler_pic='-KPIC'
  8088. lt_prog_compiler_static='-Bstatic'
  8089. case $cc_basename in
  8090. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8091. lt_prog_compiler_wl='-Qoption ld ';;
  8092. *)
  8093. lt_prog_compiler_wl='-Wl,';;
  8094. esac
  8095. ;;
  8096. sunos4*)
  8097. lt_prog_compiler_wl='-Qoption ld '
  8098. lt_prog_compiler_pic='-PIC'
  8099. lt_prog_compiler_static='-Bstatic'
  8100. ;;
  8101. sysv4 | sysv4.2uw2* | sysv4.3*)
  8102. lt_prog_compiler_wl='-Wl,'
  8103. lt_prog_compiler_pic='-KPIC'
  8104. lt_prog_compiler_static='-Bstatic'
  8105. ;;
  8106. sysv4*MP*)
  8107. if test -d /usr/nec ;then
  8108. lt_prog_compiler_pic='-Kconform_pic'
  8109. lt_prog_compiler_static='-Bstatic'
  8110. fi
  8111. ;;
  8112. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8113. lt_prog_compiler_wl='-Wl,'
  8114. lt_prog_compiler_pic='-KPIC'
  8115. lt_prog_compiler_static='-Bstatic'
  8116. ;;
  8117. unicos*)
  8118. lt_prog_compiler_wl='-Wl,'
  8119. lt_prog_compiler_can_build_shared=no
  8120. ;;
  8121. uts4*)
  8122. lt_prog_compiler_pic='-pic'
  8123. lt_prog_compiler_static='-Bstatic'
  8124. ;;
  8125. *)
  8126. lt_prog_compiler_can_build_shared=no
  8127. ;;
  8128. esac
  8129. fi
  8130. case $host_os in
  8131. # For platforms which do not support PIC, -DPIC is meaningless:
  8132. *djgpp*)
  8133. lt_prog_compiler_pic=
  8134. ;;
  8135. *)
  8136. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8137. ;;
  8138. esac
  8139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8140. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8141. if ${lt_cv_prog_compiler_pic+:} false; then :
  8142. $as_echo_n "(cached) " >&6
  8143. else
  8144. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8145. fi
  8146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8147. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8148. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8149. #
  8150. # Check to make sure the PIC flag actually works.
  8151. #
  8152. if test -n "$lt_prog_compiler_pic"; then
  8153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8154. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8155. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8156. $as_echo_n "(cached) " >&6
  8157. else
  8158. lt_cv_prog_compiler_pic_works=no
  8159. ac_outfile=conftest.$ac_objext
  8160. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8161. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8162. # Insert the option either (1) after the last *FLAGS variable, or
  8163. # (2) before a word containing "conftest.", or (3) at the end.
  8164. # Note that $ac_compile itself does not contain backslashes and begins
  8165. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8166. # The option is referenced via a variable to avoid confusing sed.
  8167. lt_compile=`echo "$ac_compile" | $SED \
  8168. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8169. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8170. -e 's:$: $lt_compiler_flag:'`
  8171. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8172. (eval "$lt_compile" 2>conftest.err)
  8173. ac_status=$?
  8174. cat conftest.err >&5
  8175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8176. if (exit $ac_status) && test -s "$ac_outfile"; then
  8177. # The compiler can only warn and ignore the option if not recognized
  8178. # So say no if there are warnings other than the usual output.
  8179. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8180. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8181. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8182. lt_cv_prog_compiler_pic_works=yes
  8183. fi
  8184. fi
  8185. $RM conftest*
  8186. fi
  8187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8188. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8189. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8190. case $lt_prog_compiler_pic in
  8191. "" | " "*) ;;
  8192. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8193. esac
  8194. else
  8195. lt_prog_compiler_pic=
  8196. lt_prog_compiler_can_build_shared=no
  8197. fi
  8198. fi
  8199. #
  8200. # Check to make sure the static flag actually works.
  8201. #
  8202. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8204. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8205. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8206. $as_echo_n "(cached) " >&6
  8207. else
  8208. lt_cv_prog_compiler_static_works=no
  8209. save_LDFLAGS="$LDFLAGS"
  8210. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8211. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8212. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8213. # The linker can only warn and ignore the option if not recognized
  8214. # So say no if there are warnings
  8215. if test -s conftest.err; then
  8216. # Append any errors to the config.log.
  8217. cat conftest.err 1>&5
  8218. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8219. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8220. if diff conftest.exp conftest.er2 >/dev/null; then
  8221. lt_cv_prog_compiler_static_works=yes
  8222. fi
  8223. else
  8224. lt_cv_prog_compiler_static_works=yes
  8225. fi
  8226. fi
  8227. $RM -r conftest*
  8228. LDFLAGS="$save_LDFLAGS"
  8229. fi
  8230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8231. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8232. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8233. :
  8234. else
  8235. lt_prog_compiler_static=
  8236. fi
  8237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8238. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8239. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8240. $as_echo_n "(cached) " >&6
  8241. else
  8242. lt_cv_prog_compiler_c_o=no
  8243. $RM -r conftest 2>/dev/null
  8244. mkdir conftest
  8245. cd conftest
  8246. mkdir out
  8247. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8248. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8249. # Insert the option either (1) after the last *FLAGS variable, or
  8250. # (2) before a word containing "conftest.", or (3) at the end.
  8251. # Note that $ac_compile itself does not contain backslashes and begins
  8252. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8253. lt_compile=`echo "$ac_compile" | $SED \
  8254. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8255. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8256. -e 's:$: $lt_compiler_flag:'`
  8257. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8258. (eval "$lt_compile" 2>out/conftest.err)
  8259. ac_status=$?
  8260. cat out/conftest.err >&5
  8261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8262. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8263. then
  8264. # The compiler can only warn and ignore the option if not recognized
  8265. # So say no if there are warnings
  8266. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8267. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8268. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8269. lt_cv_prog_compiler_c_o=yes
  8270. fi
  8271. fi
  8272. chmod u+w . 2>&5
  8273. $RM conftest*
  8274. # SGI C++ compiler will create directory out/ii_files/ for
  8275. # template instantiation
  8276. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8277. $RM out/* && rmdir out
  8278. cd ..
  8279. $RM -r conftest
  8280. $RM conftest*
  8281. fi
  8282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8283. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8285. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8286. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8287. $as_echo_n "(cached) " >&6
  8288. else
  8289. lt_cv_prog_compiler_c_o=no
  8290. $RM -r conftest 2>/dev/null
  8291. mkdir conftest
  8292. cd conftest
  8293. mkdir out
  8294. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8295. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8296. # Insert the option either (1) after the last *FLAGS variable, or
  8297. # (2) before a word containing "conftest.", or (3) at the end.
  8298. # Note that $ac_compile itself does not contain backslashes and begins
  8299. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8300. lt_compile=`echo "$ac_compile" | $SED \
  8301. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8302. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8303. -e 's:$: $lt_compiler_flag:'`
  8304. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8305. (eval "$lt_compile" 2>out/conftest.err)
  8306. ac_status=$?
  8307. cat out/conftest.err >&5
  8308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8309. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8310. then
  8311. # The compiler can only warn and ignore the option if not recognized
  8312. # So say no if there are warnings
  8313. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8314. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8315. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8316. lt_cv_prog_compiler_c_o=yes
  8317. fi
  8318. fi
  8319. chmod u+w . 2>&5
  8320. $RM conftest*
  8321. # SGI C++ compiler will create directory out/ii_files/ for
  8322. # template instantiation
  8323. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8324. $RM out/* && rmdir out
  8325. cd ..
  8326. $RM -r conftest
  8327. $RM conftest*
  8328. fi
  8329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8330. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8331. hard_links="nottested"
  8332. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8333. # do not overwrite the value of need_locks provided by the user
  8334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8335. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8336. hard_links=yes
  8337. $RM conftest*
  8338. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8339. touch conftest.a
  8340. ln conftest.a conftest.b 2>&5 || hard_links=no
  8341. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8343. $as_echo "$hard_links" >&6; }
  8344. if test "$hard_links" = no; then
  8345. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8346. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8347. need_locks=warn
  8348. fi
  8349. else
  8350. need_locks=no
  8351. fi
  8352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8353. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8354. runpath_var=
  8355. allow_undefined_flag=
  8356. always_export_symbols=no
  8357. archive_cmds=
  8358. archive_expsym_cmds=
  8359. compiler_needs_object=no
  8360. enable_shared_with_static_runtimes=no
  8361. export_dynamic_flag_spec=
  8362. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8363. hardcode_automatic=no
  8364. hardcode_direct=no
  8365. hardcode_direct_absolute=no
  8366. hardcode_libdir_flag_spec=
  8367. hardcode_libdir_separator=
  8368. hardcode_minus_L=no
  8369. hardcode_shlibpath_var=unsupported
  8370. inherit_rpath=no
  8371. link_all_deplibs=unknown
  8372. module_cmds=
  8373. module_expsym_cmds=
  8374. old_archive_from_new_cmds=
  8375. old_archive_from_expsyms_cmds=
  8376. thread_safe_flag_spec=
  8377. whole_archive_flag_spec=
  8378. # include_expsyms should be a list of space-separated symbols to be *always*
  8379. # included in the symbol list
  8380. include_expsyms=
  8381. # exclude_expsyms can be an extended regexp of symbols to exclude
  8382. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8383. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8384. # as well as any symbol that contains `d'.
  8385. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8386. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8387. # platforms (ab)use it in PIC code, but their linkers get confused if
  8388. # the symbol is explicitly referenced. Since portable code cannot
  8389. # rely on this symbol name, it's probably fine to never include it in
  8390. # preloaded symbol tables.
  8391. # Exclude shared library initialization/finalization symbols.
  8392. extract_expsyms_cmds=
  8393. case $host_os in
  8394. cygwin* | mingw* | pw32* | cegcc*)
  8395. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8396. # When not using gcc, we currently assume that we are using
  8397. # Microsoft Visual C++.
  8398. if test "$GCC" != yes; then
  8399. with_gnu_ld=no
  8400. fi
  8401. ;;
  8402. interix*)
  8403. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8404. with_gnu_ld=yes
  8405. ;;
  8406. openbsd*)
  8407. with_gnu_ld=no
  8408. ;;
  8409. esac
  8410. ld_shlibs=yes
  8411. # On some targets, GNU ld is compatible enough with the native linker
  8412. # that we're better off using the native interface for both.
  8413. lt_use_gnu_ld_interface=no
  8414. if test "$with_gnu_ld" = yes; then
  8415. case $host_os in
  8416. aix*)
  8417. # The AIX port of GNU ld has always aspired to compatibility
  8418. # with the native linker. However, as the warning in the GNU ld
  8419. # block says, versions before 2.19.5* couldn't really create working
  8420. # shared libraries, regardless of the interface used.
  8421. case `$LD -v 2>&1` in
  8422. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8423. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8424. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8425. *)
  8426. lt_use_gnu_ld_interface=yes
  8427. ;;
  8428. esac
  8429. ;;
  8430. *)
  8431. lt_use_gnu_ld_interface=yes
  8432. ;;
  8433. esac
  8434. fi
  8435. if test "$lt_use_gnu_ld_interface" = yes; then
  8436. # If archive_cmds runs LD, not CC, wlarc should be empty
  8437. wlarc='${wl}'
  8438. # Set some defaults for GNU ld with shared library support. These
  8439. # are reset later if shared libraries are not supported. Putting them
  8440. # here allows them to be overridden if necessary.
  8441. runpath_var=LD_RUN_PATH
  8442. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8443. export_dynamic_flag_spec='${wl}--export-dynamic'
  8444. # ancient GNU ld didn't support --whole-archive et. al.
  8445. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8446. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8447. else
  8448. whole_archive_flag_spec=
  8449. fi
  8450. supports_anon_versioning=no
  8451. case `$LD -v 2>&1` in
  8452. *GNU\ gold*) supports_anon_versioning=yes ;;
  8453. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8454. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8455. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8456. *\ 2.11.*) ;; # other 2.11 versions
  8457. *) supports_anon_versioning=yes ;;
  8458. esac
  8459. # See if GNU ld supports shared libraries.
  8460. case $host_os in
  8461. aix[3-9]*)
  8462. # On AIX/PPC, the GNU linker is very broken
  8463. if test "$host_cpu" != ia64; then
  8464. ld_shlibs=no
  8465. cat <<_LT_EOF 1>&2
  8466. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8467. *** to be unable to reliably create shared libraries on AIX.
  8468. *** Therefore, libtool is disabling shared libraries support. If you
  8469. *** really care for shared libraries, you may want to install binutils
  8470. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8471. *** You will then need to restart the configuration process.
  8472. _LT_EOF
  8473. fi
  8474. ;;
  8475. amigaos*)
  8476. case $host_cpu in
  8477. powerpc)
  8478. # see comment about AmigaOS4 .so support
  8479. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8480. archive_expsym_cmds=''
  8481. ;;
  8482. m68k)
  8483. 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)'
  8484. hardcode_libdir_flag_spec='-L$libdir'
  8485. hardcode_minus_L=yes
  8486. ;;
  8487. esac
  8488. ;;
  8489. beos*)
  8490. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8491. allow_undefined_flag=unsupported
  8492. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8493. # support --undefined. This deserves some investigation. FIXME
  8494. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8495. else
  8496. ld_shlibs=no
  8497. fi
  8498. ;;
  8499. cygwin* | mingw* | pw32* | cegcc*)
  8500. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8501. # as there is no search path for DLLs.
  8502. hardcode_libdir_flag_spec='-L$libdir'
  8503. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8504. allow_undefined_flag=unsupported
  8505. always_export_symbols=no
  8506. enable_shared_with_static_runtimes=yes
  8507. 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'
  8508. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8509. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8510. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8511. # If the export-symbols file already is a .def file (1st line
  8512. # is EXPORTS), use it as is; otherwise, prepend...
  8513. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8514. cp $export_symbols $output_objdir/$soname.def;
  8515. else
  8516. echo EXPORTS > $output_objdir/$soname.def;
  8517. cat $export_symbols >> $output_objdir/$soname.def;
  8518. fi~
  8519. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8520. else
  8521. ld_shlibs=no
  8522. fi
  8523. ;;
  8524. haiku*)
  8525. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8526. link_all_deplibs=yes
  8527. ;;
  8528. interix[3-9]*)
  8529. hardcode_direct=no
  8530. hardcode_shlibpath_var=no
  8531. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8532. export_dynamic_flag_spec='${wl}-E'
  8533. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8534. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8535. # default) and relocated if they conflict, which is a slow very memory
  8536. # consuming and fragmenting process. To avoid this, we pick a random,
  8537. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8538. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8539. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8540. 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'
  8541. ;;
  8542. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8543. tmp_diet=no
  8544. if test "$host_os" = linux-dietlibc; then
  8545. case $cc_basename in
  8546. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8547. esac
  8548. fi
  8549. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8550. && test "$tmp_diet" = no
  8551. then
  8552. tmp_addflag=' $pic_flag'
  8553. tmp_sharedflag='-shared'
  8554. case $cc_basename,$host_cpu in
  8555. pgcc*) # Portland Group C compiler
  8556. 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'
  8557. tmp_addflag=' $pic_flag'
  8558. ;;
  8559. pgf77* | pgf90* | pgf95* | pgfortran*)
  8560. # Portland Group f77 and f90 compilers
  8561. 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'
  8562. tmp_addflag=' $pic_flag -Mnomain' ;;
  8563. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8564. tmp_addflag=' -i_dynamic' ;;
  8565. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8566. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8567. ifc* | ifort*) # Intel Fortran compiler
  8568. tmp_addflag=' -nofor_main' ;;
  8569. lf95*) # Lahey Fortran 8.1
  8570. whole_archive_flag_spec=
  8571. tmp_sharedflag='--shared' ;;
  8572. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8573. tmp_sharedflag='-qmkshrobj'
  8574. tmp_addflag= ;;
  8575. nvcc*) # Cuda Compiler Driver 2.2
  8576. 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'
  8577. compiler_needs_object=yes
  8578. ;;
  8579. esac
  8580. case `$CC -V 2>&1 | sed 5q` in
  8581. *Sun\ C*) # Sun C 5.9
  8582. 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'
  8583. compiler_needs_object=yes
  8584. tmp_sharedflag='-G' ;;
  8585. *Sun\ F*) # Sun Fortran 8.3
  8586. tmp_sharedflag='-G' ;;
  8587. esac
  8588. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8589. if test "x$supports_anon_versioning" = xyes; then
  8590. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8591. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8592. echo "local: *; };" >> $output_objdir/$libname.ver~
  8593. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8594. fi
  8595. case $cc_basename in
  8596. xlf* | bgf* | bgxlf* | mpixlf*)
  8597. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8598. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8599. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8600. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8601. if test "x$supports_anon_versioning" = xyes; then
  8602. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8603. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8604. echo "local: *; };" >> $output_objdir/$libname.ver~
  8605. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8606. fi
  8607. ;;
  8608. esac
  8609. else
  8610. ld_shlibs=no
  8611. fi
  8612. ;;
  8613. netbsd*)
  8614. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8615. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8616. wlarc=
  8617. else
  8618. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8619. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8620. fi
  8621. ;;
  8622. solaris*)
  8623. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8624. ld_shlibs=no
  8625. cat <<_LT_EOF 1>&2
  8626. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8627. *** create shared libraries on Solaris systems. Therefore, libtool
  8628. *** is disabling shared libraries support. We urge you to upgrade GNU
  8629. *** binutils to release 2.9.1 or newer. Another option is to modify
  8630. *** your PATH or compiler configuration so that the native linker is
  8631. *** used, and then restart.
  8632. _LT_EOF
  8633. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8634. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8635. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8636. else
  8637. ld_shlibs=no
  8638. fi
  8639. ;;
  8640. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8641. case `$LD -v 2>&1` in
  8642. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8643. ld_shlibs=no
  8644. cat <<_LT_EOF 1>&2
  8645. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8646. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8647. *** is disabling shared libraries support. We urge you to upgrade GNU
  8648. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8649. *** your PATH or compiler configuration so that the native linker is
  8650. *** used, and then restart.
  8651. _LT_EOF
  8652. ;;
  8653. *)
  8654. # For security reasons, it is highly recommended that you always
  8655. # use absolute paths for naming shared libraries, and exclude the
  8656. # DT_RUNPATH tag from executables and libraries. But doing so
  8657. # requires that you compile everything twice, which is a pain.
  8658. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8659. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8660. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8661. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8662. else
  8663. ld_shlibs=no
  8664. fi
  8665. ;;
  8666. esac
  8667. ;;
  8668. sunos4*)
  8669. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8670. wlarc=
  8671. hardcode_direct=yes
  8672. hardcode_shlibpath_var=no
  8673. ;;
  8674. *)
  8675. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8676. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8677. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8678. else
  8679. ld_shlibs=no
  8680. fi
  8681. ;;
  8682. esac
  8683. if test "$ld_shlibs" = no; then
  8684. runpath_var=
  8685. hardcode_libdir_flag_spec=
  8686. export_dynamic_flag_spec=
  8687. whole_archive_flag_spec=
  8688. fi
  8689. else
  8690. # PORTME fill in a description of your system's linker (not GNU ld)
  8691. case $host_os in
  8692. aix3*)
  8693. allow_undefined_flag=unsupported
  8694. always_export_symbols=yes
  8695. 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'
  8696. # Note: this linker hardcodes the directories in LIBPATH if there
  8697. # are no directories specified by -L.
  8698. hardcode_minus_L=yes
  8699. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8700. # Neither direct hardcoding nor static linking is supported with a
  8701. # broken collect2.
  8702. hardcode_direct=unsupported
  8703. fi
  8704. ;;
  8705. aix[4-9]*)
  8706. if test "$host_cpu" = ia64; then
  8707. # On IA64, the linker does run time linking by default, so we don't
  8708. # have to do anything special.
  8709. aix_use_runtimelinking=no
  8710. exp_sym_flag='-Bexport'
  8711. no_entry_flag=""
  8712. else
  8713. # If we're using GNU nm, then we don't want the "-C" option.
  8714. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8715. # Also, AIX nm treats weak defined symbols like other global
  8716. # defined symbols, whereas GNU nm marks them as "W".
  8717. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8718. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8719. else
  8720. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8721. fi
  8722. aix_use_runtimelinking=no
  8723. # Test if we are trying to use run time linking or normal
  8724. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8725. # need to do runtime linking.
  8726. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8727. for ld_flag in $LDFLAGS; do
  8728. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8729. aix_use_runtimelinking=yes
  8730. break
  8731. fi
  8732. done
  8733. ;;
  8734. esac
  8735. exp_sym_flag='-bexport'
  8736. no_entry_flag='-bnoentry'
  8737. fi
  8738. # When large executables or shared objects are built, AIX ld can
  8739. # have problems creating the table of contents. If linking a library
  8740. # or program results in "error TOC overflow" add -mminimal-toc to
  8741. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8742. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8743. archive_cmds=''
  8744. hardcode_direct=yes
  8745. hardcode_direct_absolute=yes
  8746. hardcode_libdir_separator=':'
  8747. link_all_deplibs=yes
  8748. file_list_spec='${wl}-f,'
  8749. if test "$GCC" = yes; then
  8750. case $host_os in aix4.[012]|aix4.[012].*)
  8751. # We only want to do this on AIX 4.2 and lower, the check
  8752. # below for broken collect2 doesn't work under 4.3+
  8753. collect2name=`${CC} -print-prog-name=collect2`
  8754. if test -f "$collect2name" &&
  8755. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8756. then
  8757. # We have reworked collect2
  8758. :
  8759. else
  8760. # We have old collect2
  8761. hardcode_direct=unsupported
  8762. # It fails to find uninstalled libraries when the uninstalled
  8763. # path is not listed in the libpath. Setting hardcode_minus_L
  8764. # to unsupported forces relinking
  8765. hardcode_minus_L=yes
  8766. hardcode_libdir_flag_spec='-L$libdir'
  8767. hardcode_libdir_separator=
  8768. fi
  8769. ;;
  8770. esac
  8771. shared_flag='-shared'
  8772. if test "$aix_use_runtimelinking" = yes; then
  8773. shared_flag="$shared_flag "'${wl}-G'
  8774. fi
  8775. else
  8776. # not using gcc
  8777. if test "$host_cpu" = ia64; then
  8778. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8779. # chokes on -Wl,-G. The following line is correct:
  8780. shared_flag='-G'
  8781. else
  8782. if test "$aix_use_runtimelinking" = yes; then
  8783. shared_flag='${wl}-G'
  8784. else
  8785. shared_flag='${wl}-bM:SRE'
  8786. fi
  8787. fi
  8788. fi
  8789. export_dynamic_flag_spec='${wl}-bexpall'
  8790. # It seems that -bexpall does not export symbols beginning with
  8791. # underscore (_), so it is better to generate a list of symbols to export.
  8792. always_export_symbols=yes
  8793. if test "$aix_use_runtimelinking" = yes; then
  8794. # Warning - without using the other runtime loading flags (-brtl),
  8795. # -berok will link without error, but may produce a broken library.
  8796. allow_undefined_flag='-berok'
  8797. # Determine the default libpath from the value encoded in an
  8798. # empty executable.
  8799. if test "${lt_cv_aix_libpath+set}" = set; then
  8800. aix_libpath=$lt_cv_aix_libpath
  8801. else
  8802. if ${lt_cv_aix_libpath_+:} false; then :
  8803. $as_echo_n "(cached) " >&6
  8804. else
  8805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8806. /* end confdefs.h. */
  8807. int
  8808. main ()
  8809. {
  8810. ;
  8811. return 0;
  8812. }
  8813. _ACEOF
  8814. if ac_fn_c_try_link "$LINENO"; then :
  8815. lt_aix_libpath_sed='
  8816. /Import File Strings/,/^$/ {
  8817. /^0/ {
  8818. s/^0 *\([^ ]*\) *$/\1/
  8819. p
  8820. }
  8821. }'
  8822. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8823. # Check for a 64-bit object if we didn't find anything.
  8824. if test -z "$lt_cv_aix_libpath_"; then
  8825. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8826. fi
  8827. fi
  8828. rm -f core conftest.err conftest.$ac_objext \
  8829. conftest$ac_exeext conftest.$ac_ext
  8830. if test -z "$lt_cv_aix_libpath_"; then
  8831. lt_cv_aix_libpath_="/usr/lib:/lib"
  8832. fi
  8833. fi
  8834. aix_libpath=$lt_cv_aix_libpath_
  8835. fi
  8836. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8837. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8838. else
  8839. if test "$host_cpu" = ia64; then
  8840. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8841. allow_undefined_flag="-z nodefs"
  8842. 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"
  8843. else
  8844. # Determine the default libpath from the value encoded in an
  8845. # empty executable.
  8846. if test "${lt_cv_aix_libpath+set}" = set; then
  8847. aix_libpath=$lt_cv_aix_libpath
  8848. else
  8849. if ${lt_cv_aix_libpath_+:} false; then :
  8850. $as_echo_n "(cached) " >&6
  8851. else
  8852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8853. /* end confdefs.h. */
  8854. int
  8855. main ()
  8856. {
  8857. ;
  8858. return 0;
  8859. }
  8860. _ACEOF
  8861. if ac_fn_c_try_link "$LINENO"; then :
  8862. lt_aix_libpath_sed='
  8863. /Import File Strings/,/^$/ {
  8864. /^0/ {
  8865. s/^0 *\([^ ]*\) *$/\1/
  8866. p
  8867. }
  8868. }'
  8869. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8870. # Check for a 64-bit object if we didn't find anything.
  8871. if test -z "$lt_cv_aix_libpath_"; then
  8872. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8873. fi
  8874. fi
  8875. rm -f core conftest.err conftest.$ac_objext \
  8876. conftest$ac_exeext conftest.$ac_ext
  8877. if test -z "$lt_cv_aix_libpath_"; then
  8878. lt_cv_aix_libpath_="/usr/lib:/lib"
  8879. fi
  8880. fi
  8881. aix_libpath=$lt_cv_aix_libpath_
  8882. fi
  8883. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8884. # Warning - without using the other run time loading flags,
  8885. # -berok will link without error, but may produce a broken library.
  8886. no_undefined_flag=' ${wl}-bernotok'
  8887. allow_undefined_flag=' ${wl}-berok'
  8888. if test "$with_gnu_ld" = yes; then
  8889. # We only use this code for GNU lds that support --whole-archive.
  8890. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8891. else
  8892. # Exported symbols can be pulled into shared objects from archives
  8893. whole_archive_flag_spec='$convenience'
  8894. fi
  8895. archive_cmds_need_lc=yes
  8896. # This is similar to how AIX traditionally builds its shared libraries.
  8897. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8898. fi
  8899. fi
  8900. ;;
  8901. amigaos*)
  8902. case $host_cpu in
  8903. powerpc)
  8904. # see comment about AmigaOS4 .so support
  8905. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8906. archive_expsym_cmds=''
  8907. ;;
  8908. m68k)
  8909. 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)'
  8910. hardcode_libdir_flag_spec='-L$libdir'
  8911. hardcode_minus_L=yes
  8912. ;;
  8913. esac
  8914. ;;
  8915. bsdi[45]*)
  8916. export_dynamic_flag_spec=-rdynamic
  8917. ;;
  8918. cygwin* | mingw* | pw32* | cegcc*)
  8919. # When not using gcc, we currently assume that we are using
  8920. # Microsoft Visual C++.
  8921. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8922. # no search path for DLLs.
  8923. case $cc_basename in
  8924. cl*)
  8925. # Native MSVC
  8926. hardcode_libdir_flag_spec=' '
  8927. allow_undefined_flag=unsupported
  8928. always_export_symbols=yes
  8929. file_list_spec='@'
  8930. # Tell ltmain to make .lib files, not .a files.
  8931. libext=lib
  8932. # Tell ltmain to make .dll files, not .so files.
  8933. shrext_cmds=".dll"
  8934. # FIXME: Setting linknames here is a bad hack.
  8935. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8936. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8937. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8938. else
  8939. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8940. fi~
  8941. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8942. linknames='
  8943. # The linker will not automatically build a static lib if we build a DLL.
  8944. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8945. enable_shared_with_static_runtimes=yes
  8946. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8947. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8948. # Don't use ranlib
  8949. old_postinstall_cmds='chmod 644 $oldlib'
  8950. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8951. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8952. case $lt_outputfile in
  8953. *.exe|*.EXE) ;;
  8954. *)
  8955. lt_outputfile="$lt_outputfile.exe"
  8956. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8957. ;;
  8958. esac~
  8959. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8960. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8961. $RM "$lt_outputfile.manifest";
  8962. fi'
  8963. ;;
  8964. *)
  8965. # Assume MSVC wrapper
  8966. hardcode_libdir_flag_spec=' '
  8967. allow_undefined_flag=unsupported
  8968. # Tell ltmain to make .lib files, not .a files.
  8969. libext=lib
  8970. # Tell ltmain to make .dll files, not .so files.
  8971. shrext_cmds=".dll"
  8972. # FIXME: Setting linknames here is a bad hack.
  8973. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8974. # The linker will automatically build a .lib file if we build a DLL.
  8975. old_archive_from_new_cmds='true'
  8976. # FIXME: Should let the user specify the lib program.
  8977. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8978. enable_shared_with_static_runtimes=yes
  8979. ;;
  8980. esac
  8981. ;;
  8982. darwin* | rhapsody*)
  8983. archive_cmds_need_lc=no
  8984. hardcode_direct=no
  8985. hardcode_automatic=yes
  8986. hardcode_shlibpath_var=unsupported
  8987. if test "$lt_cv_ld_force_load" = "yes"; then
  8988. 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\"`'
  8989. else
  8990. whole_archive_flag_spec=''
  8991. fi
  8992. link_all_deplibs=yes
  8993. allow_undefined_flag="$_lt_dar_allow_undefined"
  8994. case $cc_basename in
  8995. ifort*) _lt_dar_can_shared=yes ;;
  8996. *) _lt_dar_can_shared=$GCC ;;
  8997. esac
  8998. if test "$_lt_dar_can_shared" = "yes"; then
  8999. output_verbose_link_cmd=func_echo_all
  9000. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9001. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9002. 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}"
  9003. 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}"
  9004. else
  9005. ld_shlibs=no
  9006. fi
  9007. ;;
  9008. dgux*)
  9009. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9010. hardcode_libdir_flag_spec='-L$libdir'
  9011. hardcode_shlibpath_var=no
  9012. ;;
  9013. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9014. # support. Future versions do this automatically, but an explicit c++rt0.o
  9015. # does not break anything, and helps significantly (at the cost of a little
  9016. # extra space).
  9017. freebsd2.2*)
  9018. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9019. hardcode_libdir_flag_spec='-R$libdir'
  9020. hardcode_direct=yes
  9021. hardcode_shlibpath_var=no
  9022. ;;
  9023. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9024. freebsd2.*)
  9025. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9026. hardcode_direct=yes
  9027. hardcode_minus_L=yes
  9028. hardcode_shlibpath_var=no
  9029. ;;
  9030. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9031. freebsd* | dragonfly*)
  9032. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9033. hardcode_libdir_flag_spec='-R$libdir'
  9034. hardcode_direct=yes
  9035. hardcode_shlibpath_var=no
  9036. ;;
  9037. hpux9*)
  9038. if test "$GCC" = yes; then
  9039. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9040. else
  9041. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9042. fi
  9043. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9044. hardcode_libdir_separator=:
  9045. hardcode_direct=yes
  9046. # hardcode_minus_L: Not really in the search PATH,
  9047. # but as the default location of the library.
  9048. hardcode_minus_L=yes
  9049. export_dynamic_flag_spec='${wl}-E'
  9050. ;;
  9051. hpux10*)
  9052. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9053. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9054. else
  9055. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9056. fi
  9057. if test "$with_gnu_ld" = no; then
  9058. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9059. hardcode_libdir_separator=:
  9060. hardcode_direct=yes
  9061. hardcode_direct_absolute=yes
  9062. export_dynamic_flag_spec='${wl}-E'
  9063. # hardcode_minus_L: Not really in the search PATH,
  9064. # but as the default location of the library.
  9065. hardcode_minus_L=yes
  9066. fi
  9067. ;;
  9068. hpux11*)
  9069. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9070. case $host_cpu in
  9071. hppa*64*)
  9072. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9073. ;;
  9074. ia64*)
  9075. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9076. ;;
  9077. *)
  9078. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9079. ;;
  9080. esac
  9081. else
  9082. case $host_cpu in
  9083. hppa*64*)
  9084. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9085. ;;
  9086. ia64*)
  9087. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9088. ;;
  9089. *)
  9090. # Older versions of the 11.00 compiler do not understand -b yet
  9091. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9093. $as_echo_n "checking if $CC understands -b... " >&6; }
  9094. if ${lt_cv_prog_compiler__b+:} false; then :
  9095. $as_echo_n "(cached) " >&6
  9096. else
  9097. lt_cv_prog_compiler__b=no
  9098. save_LDFLAGS="$LDFLAGS"
  9099. LDFLAGS="$LDFLAGS -b"
  9100. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9101. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9102. # The linker can only warn and ignore the option if not recognized
  9103. # So say no if there are warnings
  9104. if test -s conftest.err; then
  9105. # Append any errors to the config.log.
  9106. cat conftest.err 1>&5
  9107. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9108. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9109. if diff conftest.exp conftest.er2 >/dev/null; then
  9110. lt_cv_prog_compiler__b=yes
  9111. fi
  9112. else
  9113. lt_cv_prog_compiler__b=yes
  9114. fi
  9115. fi
  9116. $RM -r conftest*
  9117. LDFLAGS="$save_LDFLAGS"
  9118. fi
  9119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9120. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9121. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9122. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9123. else
  9124. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9125. fi
  9126. ;;
  9127. esac
  9128. fi
  9129. if test "$with_gnu_ld" = no; then
  9130. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9131. hardcode_libdir_separator=:
  9132. case $host_cpu in
  9133. hppa*64*|ia64*)
  9134. hardcode_direct=no
  9135. hardcode_shlibpath_var=no
  9136. ;;
  9137. *)
  9138. hardcode_direct=yes
  9139. hardcode_direct_absolute=yes
  9140. export_dynamic_flag_spec='${wl}-E'
  9141. # hardcode_minus_L: Not really in the search PATH,
  9142. # but as the default location of the library.
  9143. hardcode_minus_L=yes
  9144. ;;
  9145. esac
  9146. fi
  9147. ;;
  9148. irix5* | irix6* | nonstopux*)
  9149. if test "$GCC" = yes; then
  9150. 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'
  9151. # Try to use the -exported_symbol ld option, if it does not
  9152. # work, assume that -exports_file does not work either and
  9153. # implicitly export all symbols.
  9154. # This should be the same for all languages, so no per-tag cache variable.
  9155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9156. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9157. if ${lt_cv_irix_exported_symbol+:} false; then :
  9158. $as_echo_n "(cached) " >&6
  9159. else
  9160. save_LDFLAGS="$LDFLAGS"
  9161. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9163. /* end confdefs.h. */
  9164. int foo (void) { return 0; }
  9165. _ACEOF
  9166. if ac_fn_c_try_link "$LINENO"; then :
  9167. lt_cv_irix_exported_symbol=yes
  9168. else
  9169. lt_cv_irix_exported_symbol=no
  9170. fi
  9171. rm -f core conftest.err conftest.$ac_objext \
  9172. conftest$ac_exeext conftest.$ac_ext
  9173. LDFLAGS="$save_LDFLAGS"
  9174. fi
  9175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9176. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9177. if test "$lt_cv_irix_exported_symbol" = yes; then
  9178. 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'
  9179. fi
  9180. else
  9181. 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'
  9182. 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'
  9183. fi
  9184. archive_cmds_need_lc='no'
  9185. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9186. hardcode_libdir_separator=:
  9187. inherit_rpath=yes
  9188. link_all_deplibs=yes
  9189. ;;
  9190. netbsd*)
  9191. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9192. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9193. else
  9194. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9195. fi
  9196. hardcode_libdir_flag_spec='-R$libdir'
  9197. hardcode_direct=yes
  9198. hardcode_shlibpath_var=no
  9199. ;;
  9200. newsos6)
  9201. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9202. hardcode_direct=yes
  9203. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9204. hardcode_libdir_separator=:
  9205. hardcode_shlibpath_var=no
  9206. ;;
  9207. *nto* | *qnx*)
  9208. ;;
  9209. openbsd*)
  9210. if test -f /usr/libexec/ld.so; then
  9211. hardcode_direct=yes
  9212. hardcode_shlibpath_var=no
  9213. hardcode_direct_absolute=yes
  9214. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9215. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9216. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9217. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9218. export_dynamic_flag_spec='${wl}-E'
  9219. else
  9220. case $host_os in
  9221. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9222. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9223. hardcode_libdir_flag_spec='-R$libdir'
  9224. ;;
  9225. *)
  9226. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9227. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9228. ;;
  9229. esac
  9230. fi
  9231. else
  9232. ld_shlibs=no
  9233. fi
  9234. ;;
  9235. os2*)
  9236. hardcode_libdir_flag_spec='-L$libdir'
  9237. hardcode_minus_L=yes
  9238. allow_undefined_flag=unsupported
  9239. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  9240. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9241. ;;
  9242. osf3*)
  9243. if test "$GCC" = yes; then
  9244. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9245. 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'
  9246. else
  9247. allow_undefined_flag=' -expect_unresolved \*'
  9248. 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'
  9249. fi
  9250. archive_cmds_need_lc='no'
  9251. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9252. hardcode_libdir_separator=:
  9253. ;;
  9254. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9255. if test "$GCC" = yes; then
  9256. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9257. 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'
  9258. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9259. else
  9260. allow_undefined_flag=' -expect_unresolved \*'
  9261. 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'
  9262. 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~
  9263. $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'
  9264. # Both c and cxx compiler support -rpath directly
  9265. hardcode_libdir_flag_spec='-rpath $libdir'
  9266. fi
  9267. archive_cmds_need_lc='no'
  9268. hardcode_libdir_separator=:
  9269. ;;
  9270. solaris*)
  9271. no_undefined_flag=' -z defs'
  9272. if test "$GCC" = yes; then
  9273. wlarc='${wl}'
  9274. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9275. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9276. $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'
  9277. else
  9278. case `$CC -V 2>&1` in
  9279. *"Compilers 5.0"*)
  9280. wlarc=''
  9281. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9282. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9283. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9284. ;;
  9285. *)
  9286. wlarc='${wl}'
  9287. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9288. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9289. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9290. ;;
  9291. esac
  9292. fi
  9293. hardcode_libdir_flag_spec='-R$libdir'
  9294. hardcode_shlibpath_var=no
  9295. case $host_os in
  9296. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9297. *)
  9298. # The compiler driver will combine and reorder linker options,
  9299. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9300. # but is careful enough not to reorder.
  9301. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9302. if test "$GCC" = yes; then
  9303. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9304. else
  9305. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9306. fi
  9307. ;;
  9308. esac
  9309. link_all_deplibs=yes
  9310. ;;
  9311. sunos4*)
  9312. if test "x$host_vendor" = xsequent; then
  9313. # Use $CC to link under sequent, because it throws in some extra .o
  9314. # files that make .init and .fini sections work.
  9315. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9316. else
  9317. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9318. fi
  9319. hardcode_libdir_flag_spec='-L$libdir'
  9320. hardcode_direct=yes
  9321. hardcode_minus_L=yes
  9322. hardcode_shlibpath_var=no
  9323. ;;
  9324. sysv4)
  9325. case $host_vendor in
  9326. sni)
  9327. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9328. hardcode_direct=yes # is this really true???
  9329. ;;
  9330. siemens)
  9331. ## LD is ld it makes a PLAMLIB
  9332. ## CC just makes a GrossModule.
  9333. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9334. reload_cmds='$CC -r -o $output$reload_objs'
  9335. hardcode_direct=no
  9336. ;;
  9337. motorola)
  9338. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9339. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9340. ;;
  9341. esac
  9342. runpath_var='LD_RUN_PATH'
  9343. hardcode_shlibpath_var=no
  9344. ;;
  9345. sysv4.3*)
  9346. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9347. hardcode_shlibpath_var=no
  9348. export_dynamic_flag_spec='-Bexport'
  9349. ;;
  9350. sysv4*MP*)
  9351. if test -d /usr/nec; then
  9352. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9353. hardcode_shlibpath_var=no
  9354. runpath_var=LD_RUN_PATH
  9355. hardcode_runpath_var=yes
  9356. ld_shlibs=yes
  9357. fi
  9358. ;;
  9359. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9360. no_undefined_flag='${wl}-z,text'
  9361. archive_cmds_need_lc=no
  9362. hardcode_shlibpath_var=no
  9363. runpath_var='LD_RUN_PATH'
  9364. if test "$GCC" = yes; then
  9365. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9366. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9367. else
  9368. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9369. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9370. fi
  9371. ;;
  9372. sysv5* | sco3.2v5* | sco5v6*)
  9373. # Note: We can NOT use -z defs as we might desire, because we do not
  9374. # link with -lc, and that would cause any symbols used from libc to
  9375. # always be unresolved, which means just about no library would
  9376. # ever link correctly. If we're not using GNU ld we use -z text
  9377. # though, which does catch some bad symbols but isn't as heavy-handed
  9378. # as -z defs.
  9379. no_undefined_flag='${wl}-z,text'
  9380. allow_undefined_flag='${wl}-z,nodefs'
  9381. archive_cmds_need_lc=no
  9382. hardcode_shlibpath_var=no
  9383. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9384. hardcode_libdir_separator=':'
  9385. link_all_deplibs=yes
  9386. export_dynamic_flag_spec='${wl}-Bexport'
  9387. runpath_var='LD_RUN_PATH'
  9388. if test "$GCC" = yes; then
  9389. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9390. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9391. else
  9392. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9393. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9394. fi
  9395. ;;
  9396. uts4*)
  9397. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9398. hardcode_libdir_flag_spec='-L$libdir'
  9399. hardcode_shlibpath_var=no
  9400. ;;
  9401. *)
  9402. ld_shlibs=no
  9403. ;;
  9404. esac
  9405. if test x$host_vendor = xsni; then
  9406. case $host in
  9407. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9408. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9409. ;;
  9410. esac
  9411. fi
  9412. fi
  9413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9414. $as_echo "$ld_shlibs" >&6; }
  9415. test "$ld_shlibs" = no && can_build_shared=no
  9416. with_gnu_ld=$with_gnu_ld
  9417. #
  9418. # Do we need to explicitly link libc?
  9419. #
  9420. case "x$archive_cmds_need_lc" in
  9421. x|xyes)
  9422. # Assume -lc should be added
  9423. archive_cmds_need_lc=yes
  9424. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9425. case $archive_cmds in
  9426. *'~'*)
  9427. # FIXME: we may have to deal with multi-command sequences.
  9428. ;;
  9429. '$CC '*)
  9430. # Test whether the compiler implicitly links with -lc since on some
  9431. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9432. # to ld, don't add -lc before -lgcc.
  9433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9434. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9435. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9436. $as_echo_n "(cached) " >&6
  9437. else
  9438. $RM conftest*
  9439. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9440. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9441. (eval $ac_compile) 2>&5
  9442. ac_status=$?
  9443. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9444. test $ac_status = 0; } 2>conftest.err; then
  9445. soname=conftest
  9446. lib=conftest
  9447. libobjs=conftest.$ac_objext
  9448. deplibs=
  9449. wl=$lt_prog_compiler_wl
  9450. pic_flag=$lt_prog_compiler_pic
  9451. compiler_flags=-v
  9452. linker_flags=-v
  9453. verstring=
  9454. output_objdir=.
  9455. libname=conftest
  9456. lt_save_allow_undefined_flag=$allow_undefined_flag
  9457. allow_undefined_flag=
  9458. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9459. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9460. ac_status=$?
  9461. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9462. test $ac_status = 0; }
  9463. then
  9464. lt_cv_archive_cmds_need_lc=no
  9465. else
  9466. lt_cv_archive_cmds_need_lc=yes
  9467. fi
  9468. allow_undefined_flag=$lt_save_allow_undefined_flag
  9469. else
  9470. cat conftest.err 1>&5
  9471. fi
  9472. $RM conftest*
  9473. fi
  9474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9475. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9476. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9477. ;;
  9478. esac
  9479. fi
  9480. ;;
  9481. esac
  9482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9483. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9484. if test "$GCC" = yes; then
  9485. case $host_os in
  9486. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9487. *) lt_awk_arg="/^libraries:/" ;;
  9488. esac
  9489. case $host_os in
  9490. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9491. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9492. esac
  9493. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9494. case $lt_search_path_spec in
  9495. *\;*)
  9496. # if the path contains ";" then we assume it to be the separator
  9497. # otherwise default to the standard path separator (i.e. ":") - it is
  9498. # assumed that no part of a normal pathname contains ";" but that should
  9499. # okay in the real world where ";" in dirpaths is itself problematic.
  9500. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9501. ;;
  9502. *)
  9503. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9504. ;;
  9505. esac
  9506. # Ok, now we have the path, separated by spaces, we can step through it
  9507. # and add multilib dir if necessary.
  9508. lt_tmp_lt_search_path_spec=
  9509. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9510. for lt_sys_path in $lt_search_path_spec; do
  9511. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9512. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9513. else
  9514. test -d "$lt_sys_path" && \
  9515. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9516. fi
  9517. done
  9518. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9519. BEGIN {RS=" "; FS="/|\n";} {
  9520. lt_foo="";
  9521. lt_count=0;
  9522. for (lt_i = NF; lt_i > 0; lt_i--) {
  9523. if ($lt_i != "" && $lt_i != ".") {
  9524. if ($lt_i == "..") {
  9525. lt_count++;
  9526. } else {
  9527. if (lt_count == 0) {
  9528. lt_foo="/" $lt_i lt_foo;
  9529. } else {
  9530. lt_count--;
  9531. }
  9532. }
  9533. }
  9534. }
  9535. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9536. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9537. }'`
  9538. # AWK program above erroneously prepends '/' to C:/dos/paths
  9539. # for these hosts.
  9540. case $host_os in
  9541. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9542. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9543. esac
  9544. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9545. else
  9546. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9547. fi
  9548. library_names_spec=
  9549. libname_spec='lib$name'
  9550. soname_spec=
  9551. shrext_cmds=".so"
  9552. postinstall_cmds=
  9553. postuninstall_cmds=
  9554. finish_cmds=
  9555. finish_eval=
  9556. shlibpath_var=
  9557. shlibpath_overrides_runpath=unknown
  9558. version_type=none
  9559. dynamic_linker="$host_os ld.so"
  9560. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9561. need_lib_prefix=unknown
  9562. hardcode_into_libs=no
  9563. # when you set need_version to no, make sure it does not cause -set_version
  9564. # flags to be left without arguments
  9565. need_version=unknown
  9566. case $host_os in
  9567. aix3*)
  9568. version_type=linux # correct to gnu/linux during the next big refactor
  9569. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9570. shlibpath_var=LIBPATH
  9571. # AIX 3 has no versioning support, so we append a major version to the name.
  9572. soname_spec='${libname}${release}${shared_ext}$major'
  9573. ;;
  9574. aix[4-9]*)
  9575. version_type=linux # correct to gnu/linux during the next big refactor
  9576. need_lib_prefix=no
  9577. need_version=no
  9578. hardcode_into_libs=yes
  9579. if test "$host_cpu" = ia64; then
  9580. # AIX 5 supports IA64
  9581. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9582. shlibpath_var=LD_LIBRARY_PATH
  9583. else
  9584. # With GCC up to 2.95.x, collect2 would create an import file
  9585. # for dependence libraries. The import file would start with
  9586. # the line `#! .'. This would cause the generated library to
  9587. # depend on `.', always an invalid library. This was fixed in
  9588. # development snapshots of GCC prior to 3.0.
  9589. case $host_os in
  9590. aix4 | aix4.[01] | aix4.[01].*)
  9591. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9592. echo ' yes '
  9593. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9594. :
  9595. else
  9596. can_build_shared=no
  9597. fi
  9598. ;;
  9599. esac
  9600. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9601. # soname into executable. Probably we can add versioning support to
  9602. # collect2, so additional links can be useful in future.
  9603. if test "$aix_use_runtimelinking" = yes; then
  9604. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9605. # instead of lib<name>.a to let people know that these are not
  9606. # typical AIX shared libraries.
  9607. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9608. else
  9609. # We preserve .a as extension for shared libraries through AIX4.2
  9610. # and later when we are not doing run time linking.
  9611. library_names_spec='${libname}${release}.a $libname.a'
  9612. soname_spec='${libname}${release}${shared_ext}$major'
  9613. fi
  9614. shlibpath_var=LIBPATH
  9615. fi
  9616. ;;
  9617. amigaos*)
  9618. case $host_cpu in
  9619. powerpc)
  9620. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9621. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9622. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9623. ;;
  9624. m68k)
  9625. library_names_spec='$libname.ixlibrary $libname.a'
  9626. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9627. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
  9628. ;;
  9629. esac
  9630. ;;
  9631. beos*)
  9632. library_names_spec='${libname}${shared_ext}'
  9633. dynamic_linker="$host_os ld.so"
  9634. shlibpath_var=LIBRARY_PATH
  9635. ;;
  9636. bsdi[45]*)
  9637. version_type=linux # correct to gnu/linux during the next big refactor
  9638. need_version=no
  9639. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9640. soname_spec='${libname}${release}${shared_ext}$major'
  9641. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9642. shlibpath_var=LD_LIBRARY_PATH
  9643. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9644. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9645. # the default ld.so.conf also contains /usr/contrib/lib and
  9646. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9647. # libtool to hard-code these into programs
  9648. ;;
  9649. cygwin* | mingw* | pw32* | cegcc*)
  9650. version_type=windows
  9651. shrext_cmds=".dll"
  9652. need_version=no
  9653. need_lib_prefix=no
  9654. case $GCC,$cc_basename in
  9655. yes,*)
  9656. # gcc
  9657. library_names_spec='$libname.dll.a'
  9658. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9659. postinstall_cmds='base_file=`basename \${file}`~
  9660. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9661. dldir=$destdir/`dirname \$dlpath`~
  9662. test -d \$dldir || mkdir -p \$dldir~
  9663. $install_prog $dir/$dlname \$dldir/$dlname~
  9664. chmod a+x \$dldir/$dlname~
  9665. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9666. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9667. fi'
  9668. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9669. dlpath=$dir/\$dldll~
  9670. $RM \$dlpath'
  9671. shlibpath_overrides_runpath=yes
  9672. case $host_os in
  9673. cygwin*)
  9674. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9675. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9676. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9677. ;;
  9678. mingw* | cegcc*)
  9679. # MinGW DLLs use traditional 'lib' prefix
  9680. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9681. ;;
  9682. pw32*)
  9683. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9684. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9685. ;;
  9686. esac
  9687. dynamic_linker='Win32 ld.exe'
  9688. ;;
  9689. *,cl*)
  9690. # Native MSVC
  9691. libname_spec='$name'
  9692. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9693. library_names_spec='${libname}.dll.lib'
  9694. case $build_os in
  9695. mingw*)
  9696. sys_lib_search_path_spec=
  9697. lt_save_ifs=$IFS
  9698. IFS=';'
  9699. for lt_path in $LIB
  9700. do
  9701. IFS=$lt_save_ifs
  9702. # Let DOS variable expansion print the short 8.3 style file name.
  9703. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9704. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9705. done
  9706. IFS=$lt_save_ifs
  9707. # Convert to MSYS style.
  9708. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9709. ;;
  9710. cygwin*)
  9711. # Convert to unix form, then to dos form, then back to unix form
  9712. # but this time dos style (no spaces!) so that the unix form looks
  9713. # like /cygdrive/c/PROGRA~1:/cygdr...
  9714. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9715. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9716. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9717. ;;
  9718. *)
  9719. sys_lib_search_path_spec="$LIB"
  9720. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9721. # It is most probably a Windows format PATH.
  9722. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9723. else
  9724. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9725. fi
  9726. # FIXME: find the short name or the path components, as spaces are
  9727. # common. (e.g. "Program Files" -> "PROGRA~1")
  9728. ;;
  9729. esac
  9730. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9731. postinstall_cmds='base_file=`basename \${file}`~
  9732. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9733. dldir=$destdir/`dirname \$dlpath`~
  9734. test -d \$dldir || mkdir -p \$dldir~
  9735. $install_prog $dir/$dlname \$dldir/$dlname'
  9736. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9737. dlpath=$dir/\$dldll~
  9738. $RM \$dlpath'
  9739. shlibpath_overrides_runpath=yes
  9740. dynamic_linker='Win32 link.exe'
  9741. ;;
  9742. *)
  9743. # Assume MSVC wrapper
  9744. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9745. dynamic_linker='Win32 ld.exe'
  9746. ;;
  9747. esac
  9748. # FIXME: first we should search . and the directory the executable is in
  9749. shlibpath_var=PATH
  9750. ;;
  9751. darwin* | rhapsody*)
  9752. dynamic_linker="$host_os dyld"
  9753. version_type=darwin
  9754. need_lib_prefix=no
  9755. need_version=no
  9756. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9757. soname_spec='${libname}${release}${major}$shared_ext'
  9758. shlibpath_overrides_runpath=yes
  9759. shlibpath_var=DYLD_LIBRARY_PATH
  9760. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9761. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9762. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9763. ;;
  9764. dgux*)
  9765. version_type=linux # correct to gnu/linux during the next big refactor
  9766. need_lib_prefix=no
  9767. need_version=no
  9768. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9769. soname_spec='${libname}${release}${shared_ext}$major'
  9770. shlibpath_var=LD_LIBRARY_PATH
  9771. ;;
  9772. freebsd* | dragonfly*)
  9773. # DragonFly does not have aout. When/if they implement a new
  9774. # versioning mechanism, adjust this.
  9775. if test -x /usr/bin/objformat; then
  9776. objformat=`/usr/bin/objformat`
  9777. else
  9778. case $host_os in
  9779. freebsd[23].*) objformat=aout ;;
  9780. *) objformat=elf ;;
  9781. esac
  9782. fi
  9783. version_type=freebsd-$objformat
  9784. case $version_type in
  9785. freebsd-elf*)
  9786. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9787. need_version=no
  9788. need_lib_prefix=no
  9789. ;;
  9790. freebsd-*)
  9791. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9792. need_version=yes
  9793. ;;
  9794. esac
  9795. shlibpath_var=LD_LIBRARY_PATH
  9796. case $host_os in
  9797. freebsd2.*)
  9798. shlibpath_overrides_runpath=yes
  9799. ;;
  9800. freebsd3.[01]* | freebsdelf3.[01]*)
  9801. shlibpath_overrides_runpath=yes
  9802. hardcode_into_libs=yes
  9803. ;;
  9804. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9805. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9806. shlibpath_overrides_runpath=no
  9807. hardcode_into_libs=yes
  9808. ;;
  9809. *) # from 4.6 on, and DragonFly
  9810. shlibpath_overrides_runpath=yes
  9811. hardcode_into_libs=yes
  9812. ;;
  9813. esac
  9814. ;;
  9815. gnu*)
  9816. version_type=linux # correct to gnu/linux during the next big refactor
  9817. need_lib_prefix=no
  9818. need_version=no
  9819. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9820. soname_spec='${libname}${release}${shared_ext}$major'
  9821. shlibpath_var=LD_LIBRARY_PATH
  9822. shlibpath_overrides_runpath=no
  9823. hardcode_into_libs=yes
  9824. ;;
  9825. haiku*)
  9826. version_type=linux # correct to gnu/linux during the next big refactor
  9827. need_lib_prefix=no
  9828. need_version=no
  9829. dynamic_linker="$host_os runtime_loader"
  9830. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9831. soname_spec='${libname}${release}${shared_ext}$major'
  9832. shlibpath_var=LIBRARY_PATH
  9833. shlibpath_overrides_runpath=yes
  9834. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9835. hardcode_into_libs=yes
  9836. ;;
  9837. hpux9* | hpux10* | hpux11*)
  9838. # Give a soname corresponding to the major version so that dld.sl refuses to
  9839. # link against other versions.
  9840. version_type=sunos
  9841. need_lib_prefix=no
  9842. need_version=no
  9843. case $host_cpu in
  9844. ia64*)
  9845. shrext_cmds='.so'
  9846. hardcode_into_libs=yes
  9847. dynamic_linker="$host_os dld.so"
  9848. shlibpath_var=LD_LIBRARY_PATH
  9849. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9850. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9851. soname_spec='${libname}${release}${shared_ext}$major'
  9852. if test "X$HPUX_IA64_MODE" = X32; then
  9853. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9854. else
  9855. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9856. fi
  9857. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9858. ;;
  9859. hppa*64*)
  9860. shrext_cmds='.sl'
  9861. hardcode_into_libs=yes
  9862. dynamic_linker="$host_os dld.sl"
  9863. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9864. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9865. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9866. soname_spec='${libname}${release}${shared_ext}$major'
  9867. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9868. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9869. ;;
  9870. *)
  9871. shrext_cmds='.sl'
  9872. dynamic_linker="$host_os dld.sl"
  9873. shlibpath_var=SHLIB_PATH
  9874. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9875. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9876. soname_spec='${libname}${release}${shared_ext}$major'
  9877. ;;
  9878. esac
  9879. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9880. postinstall_cmds='chmod 555 $lib'
  9881. # or fails outright, so override atomically:
  9882. install_override_mode=555
  9883. ;;
  9884. interix[3-9]*)
  9885. version_type=linux # correct to gnu/linux during the next big refactor
  9886. need_lib_prefix=no
  9887. need_version=no
  9888. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9889. soname_spec='${libname}${release}${shared_ext}$major'
  9890. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9891. shlibpath_var=LD_LIBRARY_PATH
  9892. shlibpath_overrides_runpath=no
  9893. hardcode_into_libs=yes
  9894. ;;
  9895. irix5* | irix6* | nonstopux*)
  9896. case $host_os in
  9897. nonstopux*) version_type=nonstopux ;;
  9898. *)
  9899. if test "$lt_cv_prog_gnu_ld" = yes; then
  9900. version_type=linux # correct to gnu/linux during the next big refactor
  9901. else
  9902. version_type=irix
  9903. fi ;;
  9904. esac
  9905. need_lib_prefix=no
  9906. need_version=no
  9907. soname_spec='${libname}${release}${shared_ext}$major'
  9908. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9909. case $host_os in
  9910. irix5* | nonstopux*)
  9911. libsuff= shlibsuff=
  9912. ;;
  9913. *)
  9914. case $LD in # libtool.m4 will add one of these switches to LD
  9915. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9916. libsuff= shlibsuff= libmagic=32-bit;;
  9917. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9918. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9919. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9920. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9921. *) libsuff= shlibsuff= libmagic=never-match;;
  9922. esac
  9923. ;;
  9924. esac
  9925. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9926. shlibpath_overrides_runpath=no
  9927. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9928. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9929. hardcode_into_libs=yes
  9930. ;;
  9931. # No shared lib support for Linux oldld, aout, or coff.
  9932. linux*oldld* | linux*aout* | linux*coff*)
  9933. dynamic_linker=no
  9934. ;;
  9935. # This must be glibc/ELF.
  9936. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9937. version_type=linux # correct to gnu/linux during the next big refactor
  9938. need_lib_prefix=no
  9939. need_version=no
  9940. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9941. soname_spec='${libname}${release}${shared_ext}$major'
  9942. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9943. shlibpath_var=LD_LIBRARY_PATH
  9944. shlibpath_overrides_runpath=no
  9945. # Some binutils ld are patched to set DT_RUNPATH
  9946. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9947. $as_echo_n "(cached) " >&6
  9948. else
  9949. lt_cv_shlibpath_overrides_runpath=no
  9950. save_LDFLAGS=$LDFLAGS
  9951. save_libdir=$libdir
  9952. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9953. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9955. /* end confdefs.h. */
  9956. int
  9957. main ()
  9958. {
  9959. ;
  9960. return 0;
  9961. }
  9962. _ACEOF
  9963. if ac_fn_c_try_link "$LINENO"; then :
  9964. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9965. lt_cv_shlibpath_overrides_runpath=yes
  9966. fi
  9967. fi
  9968. rm -f core conftest.err conftest.$ac_objext \
  9969. conftest$ac_exeext conftest.$ac_ext
  9970. LDFLAGS=$save_LDFLAGS
  9971. libdir=$save_libdir
  9972. fi
  9973. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9974. # This implies no fast_install, which is unacceptable.
  9975. # Some rework will be needed to allow for fast_install
  9976. # before this can be enabled.
  9977. hardcode_into_libs=yes
  9978. # Append ld.so.conf contents to the search path
  9979. if test -f /etc/ld.so.conf; then
  9980. 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' ' '`
  9981. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9982. fi
  9983. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9984. # powerpc, because MkLinux only supported shared libraries with the
  9985. # GNU dynamic linker. Since this was broken with cross compilers,
  9986. # most powerpc-linux boxes support dynamic linking these days and
  9987. # people can always --disable-shared, the test was removed, and we
  9988. # assume the GNU/Linux dynamic linker is in use.
  9989. dynamic_linker='GNU/Linux ld.so'
  9990. ;;
  9991. netbsd*)
  9992. version_type=sunos
  9993. need_lib_prefix=no
  9994. need_version=no
  9995. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9996. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9997. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9998. dynamic_linker='NetBSD (a.out) ld.so'
  9999. else
  10000. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10001. soname_spec='${libname}${release}${shared_ext}$major'
  10002. dynamic_linker='NetBSD ld.elf_so'
  10003. fi
  10004. shlibpath_var=LD_LIBRARY_PATH
  10005. shlibpath_overrides_runpath=yes
  10006. hardcode_into_libs=yes
  10007. ;;
  10008. newsos6)
  10009. version_type=linux # correct to gnu/linux during the next big refactor
  10010. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10011. shlibpath_var=LD_LIBRARY_PATH
  10012. shlibpath_overrides_runpath=yes
  10013. ;;
  10014. *nto* | *qnx*)
  10015. version_type=qnx
  10016. need_lib_prefix=no
  10017. need_version=no
  10018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10019. soname_spec='${libname}${release}${shared_ext}$major'
  10020. shlibpath_var=LD_LIBRARY_PATH
  10021. shlibpath_overrides_runpath=no
  10022. hardcode_into_libs=yes
  10023. dynamic_linker='ldqnx.so'
  10024. ;;
  10025. openbsd*)
  10026. version_type=sunos
  10027. sys_lib_dlsearch_path_spec="/usr/lib"
  10028. need_lib_prefix=no
  10029. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10030. case $host_os in
  10031. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10032. *) need_version=no ;;
  10033. esac
  10034. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10035. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10036. shlibpath_var=LD_LIBRARY_PATH
  10037. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10038. case $host_os in
  10039. openbsd2.[89] | openbsd2.[89].*)
  10040. shlibpath_overrides_runpath=no
  10041. ;;
  10042. *)
  10043. shlibpath_overrides_runpath=yes
  10044. ;;
  10045. esac
  10046. else
  10047. shlibpath_overrides_runpath=yes
  10048. fi
  10049. ;;
  10050. os2*)
  10051. libname_spec='$name'
  10052. shrext_cmds=".dll"
  10053. need_lib_prefix=no
  10054. library_names_spec='$libname${shared_ext} $libname.a'
  10055. dynamic_linker='OS/2 ld.exe'
  10056. shlibpath_var=LIBPATH
  10057. ;;
  10058. osf3* | osf4* | osf5*)
  10059. version_type=osf
  10060. need_lib_prefix=no
  10061. need_version=no
  10062. soname_spec='${libname}${release}${shared_ext}$major'
  10063. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10064. shlibpath_var=LD_LIBRARY_PATH
  10065. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10066. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10067. ;;
  10068. rdos*)
  10069. dynamic_linker=no
  10070. ;;
  10071. solaris*)
  10072. version_type=linux # correct to gnu/linux during the next big refactor
  10073. need_lib_prefix=no
  10074. need_version=no
  10075. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10076. soname_spec='${libname}${release}${shared_ext}$major'
  10077. shlibpath_var=LD_LIBRARY_PATH
  10078. shlibpath_overrides_runpath=yes
  10079. hardcode_into_libs=yes
  10080. # ldd complains unless libraries are executable
  10081. postinstall_cmds='chmod +x $lib'
  10082. ;;
  10083. sunos4*)
  10084. version_type=sunos
  10085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10086. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10087. shlibpath_var=LD_LIBRARY_PATH
  10088. shlibpath_overrides_runpath=yes
  10089. if test "$with_gnu_ld" = yes; then
  10090. need_lib_prefix=no
  10091. fi
  10092. need_version=yes
  10093. ;;
  10094. sysv4 | sysv4.3*)
  10095. version_type=linux # correct to gnu/linux during the next big refactor
  10096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10097. soname_spec='${libname}${release}${shared_ext}$major'
  10098. shlibpath_var=LD_LIBRARY_PATH
  10099. case $host_vendor in
  10100. sni)
  10101. shlibpath_overrides_runpath=no
  10102. need_lib_prefix=no
  10103. runpath_var=LD_RUN_PATH
  10104. ;;
  10105. siemens)
  10106. need_lib_prefix=no
  10107. ;;
  10108. motorola)
  10109. need_lib_prefix=no
  10110. need_version=no
  10111. shlibpath_overrides_runpath=no
  10112. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10113. ;;
  10114. esac
  10115. ;;
  10116. sysv4*MP*)
  10117. if test -d /usr/nec ;then
  10118. version_type=linux # correct to gnu/linux during the next big refactor
  10119. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10120. soname_spec='$libname${shared_ext}.$major'
  10121. shlibpath_var=LD_LIBRARY_PATH
  10122. fi
  10123. ;;
  10124. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10125. version_type=freebsd-elf
  10126. need_lib_prefix=no
  10127. need_version=no
  10128. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10129. soname_spec='${libname}${release}${shared_ext}$major'
  10130. shlibpath_var=LD_LIBRARY_PATH
  10131. shlibpath_overrides_runpath=yes
  10132. hardcode_into_libs=yes
  10133. if test "$with_gnu_ld" = yes; then
  10134. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10135. else
  10136. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10137. case $host_os in
  10138. sco3.2v5*)
  10139. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10140. ;;
  10141. esac
  10142. fi
  10143. sys_lib_dlsearch_path_spec='/usr/lib'
  10144. ;;
  10145. tpf*)
  10146. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10147. version_type=linux # correct to gnu/linux during the next big refactor
  10148. need_lib_prefix=no
  10149. need_version=no
  10150. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10151. shlibpath_var=LD_LIBRARY_PATH
  10152. shlibpath_overrides_runpath=no
  10153. hardcode_into_libs=yes
  10154. ;;
  10155. uts4*)
  10156. version_type=linux # correct to gnu/linux during the next big refactor
  10157. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10158. soname_spec='${libname}${release}${shared_ext}$major'
  10159. shlibpath_var=LD_LIBRARY_PATH
  10160. ;;
  10161. *)
  10162. dynamic_linker=no
  10163. ;;
  10164. esac
  10165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10166. $as_echo "$dynamic_linker" >&6; }
  10167. test "$dynamic_linker" = no && can_build_shared=no
  10168. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10169. if test "$GCC" = yes; then
  10170. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10171. fi
  10172. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10173. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10174. fi
  10175. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10176. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10177. fi
  10178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10179. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10180. hardcode_action=
  10181. if test -n "$hardcode_libdir_flag_spec" ||
  10182. test -n "$runpath_var" ||
  10183. test "X$hardcode_automatic" = "Xyes" ; then
  10184. # We can hardcode non-existent directories.
  10185. if test "$hardcode_direct" != no &&
  10186. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10187. # have to relink, otherwise we might link with an installed library
  10188. # when we should be linking with a yet-to-be-installed one
  10189. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10190. test "$hardcode_minus_L" != no; then
  10191. # Linking always hardcodes the temporary library directory.
  10192. hardcode_action=relink
  10193. else
  10194. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10195. hardcode_action=immediate
  10196. fi
  10197. else
  10198. # We cannot hardcode anything, or else we can only hardcode existing
  10199. # directories.
  10200. hardcode_action=unsupported
  10201. fi
  10202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10203. $as_echo "$hardcode_action" >&6; }
  10204. if test "$hardcode_action" = relink ||
  10205. test "$inherit_rpath" = yes; then
  10206. # Fast installation is not supported
  10207. enable_fast_install=no
  10208. elif test "$shlibpath_overrides_runpath" = yes ||
  10209. test "$enable_shared" = no; then
  10210. # Fast installation is not necessary
  10211. enable_fast_install=needless
  10212. fi
  10213. if test "x$enable_dlopen" != xyes; then
  10214. enable_dlopen=unknown
  10215. enable_dlopen_self=unknown
  10216. enable_dlopen_self_static=unknown
  10217. else
  10218. lt_cv_dlopen=no
  10219. lt_cv_dlopen_libs=
  10220. case $host_os in
  10221. beos*)
  10222. lt_cv_dlopen="load_add_on"
  10223. lt_cv_dlopen_libs=
  10224. lt_cv_dlopen_self=yes
  10225. ;;
  10226. mingw* | pw32* | cegcc*)
  10227. lt_cv_dlopen="LoadLibrary"
  10228. lt_cv_dlopen_libs=
  10229. ;;
  10230. cygwin*)
  10231. lt_cv_dlopen="dlopen"
  10232. lt_cv_dlopen_libs=
  10233. ;;
  10234. darwin*)
  10235. # if libdl is installed we need to link against it
  10236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10237. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10238. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10239. $as_echo_n "(cached) " >&6
  10240. else
  10241. ac_check_lib_save_LIBS=$LIBS
  10242. LIBS="-ldl $LIBS"
  10243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10244. /* end confdefs.h. */
  10245. /* Override any GCC internal prototype to avoid an error.
  10246. Use char because int might match the return type of a GCC
  10247. builtin and then its argument prototype would still apply. */
  10248. #ifdef __cplusplus
  10249. extern "C"
  10250. #endif
  10251. char dlopen ();
  10252. int
  10253. main ()
  10254. {
  10255. return dlopen ();
  10256. ;
  10257. return 0;
  10258. }
  10259. _ACEOF
  10260. if ac_fn_c_try_link "$LINENO"; then :
  10261. ac_cv_lib_dl_dlopen=yes
  10262. else
  10263. ac_cv_lib_dl_dlopen=no
  10264. fi
  10265. rm -f core conftest.err conftest.$ac_objext \
  10266. conftest$ac_exeext conftest.$ac_ext
  10267. LIBS=$ac_check_lib_save_LIBS
  10268. fi
  10269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10270. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10271. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10272. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10273. else
  10274. lt_cv_dlopen="dyld"
  10275. lt_cv_dlopen_libs=
  10276. lt_cv_dlopen_self=yes
  10277. fi
  10278. ;;
  10279. *)
  10280. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10281. if test "x$ac_cv_func_shl_load" = xyes; then :
  10282. lt_cv_dlopen="shl_load"
  10283. else
  10284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10285. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10286. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10287. $as_echo_n "(cached) " >&6
  10288. else
  10289. ac_check_lib_save_LIBS=$LIBS
  10290. LIBS="-ldld $LIBS"
  10291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10292. /* end confdefs.h. */
  10293. /* Override any GCC internal prototype to avoid an error.
  10294. Use char because int might match the return type of a GCC
  10295. builtin and then its argument prototype would still apply. */
  10296. #ifdef __cplusplus
  10297. extern "C"
  10298. #endif
  10299. char shl_load ();
  10300. int
  10301. main ()
  10302. {
  10303. return shl_load ();
  10304. ;
  10305. return 0;
  10306. }
  10307. _ACEOF
  10308. if ac_fn_c_try_link "$LINENO"; then :
  10309. ac_cv_lib_dld_shl_load=yes
  10310. else
  10311. ac_cv_lib_dld_shl_load=no
  10312. fi
  10313. rm -f core conftest.err conftest.$ac_objext \
  10314. conftest$ac_exeext conftest.$ac_ext
  10315. LIBS=$ac_check_lib_save_LIBS
  10316. fi
  10317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10318. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10319. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10320. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10321. else
  10322. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10323. if test "x$ac_cv_func_dlopen" = xyes; then :
  10324. lt_cv_dlopen="dlopen"
  10325. else
  10326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10327. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10328. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10329. $as_echo_n "(cached) " >&6
  10330. else
  10331. ac_check_lib_save_LIBS=$LIBS
  10332. LIBS="-ldl $LIBS"
  10333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10334. /* end confdefs.h. */
  10335. /* Override any GCC internal prototype to avoid an error.
  10336. Use char because int might match the return type of a GCC
  10337. builtin and then its argument prototype would still apply. */
  10338. #ifdef __cplusplus
  10339. extern "C"
  10340. #endif
  10341. char dlopen ();
  10342. int
  10343. main ()
  10344. {
  10345. return dlopen ();
  10346. ;
  10347. return 0;
  10348. }
  10349. _ACEOF
  10350. if ac_fn_c_try_link "$LINENO"; then :
  10351. ac_cv_lib_dl_dlopen=yes
  10352. else
  10353. ac_cv_lib_dl_dlopen=no
  10354. fi
  10355. rm -f core conftest.err conftest.$ac_objext \
  10356. conftest$ac_exeext conftest.$ac_ext
  10357. LIBS=$ac_check_lib_save_LIBS
  10358. fi
  10359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10360. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10361. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10362. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10363. else
  10364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10365. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10366. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10367. $as_echo_n "(cached) " >&6
  10368. else
  10369. ac_check_lib_save_LIBS=$LIBS
  10370. LIBS="-lsvld $LIBS"
  10371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10372. /* end confdefs.h. */
  10373. /* Override any GCC internal prototype to avoid an error.
  10374. Use char because int might match the return type of a GCC
  10375. builtin and then its argument prototype would still apply. */
  10376. #ifdef __cplusplus
  10377. extern "C"
  10378. #endif
  10379. char dlopen ();
  10380. int
  10381. main ()
  10382. {
  10383. return dlopen ();
  10384. ;
  10385. return 0;
  10386. }
  10387. _ACEOF
  10388. if ac_fn_c_try_link "$LINENO"; then :
  10389. ac_cv_lib_svld_dlopen=yes
  10390. else
  10391. ac_cv_lib_svld_dlopen=no
  10392. fi
  10393. rm -f core conftest.err conftest.$ac_objext \
  10394. conftest$ac_exeext conftest.$ac_ext
  10395. LIBS=$ac_check_lib_save_LIBS
  10396. fi
  10397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10398. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10399. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10400. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10401. else
  10402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10403. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10404. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10405. $as_echo_n "(cached) " >&6
  10406. else
  10407. ac_check_lib_save_LIBS=$LIBS
  10408. LIBS="-ldld $LIBS"
  10409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10410. /* end confdefs.h. */
  10411. /* Override any GCC internal prototype to avoid an error.
  10412. Use char because int might match the return type of a GCC
  10413. builtin and then its argument prototype would still apply. */
  10414. #ifdef __cplusplus
  10415. extern "C"
  10416. #endif
  10417. char dld_link ();
  10418. int
  10419. main ()
  10420. {
  10421. return dld_link ();
  10422. ;
  10423. return 0;
  10424. }
  10425. _ACEOF
  10426. if ac_fn_c_try_link "$LINENO"; then :
  10427. ac_cv_lib_dld_dld_link=yes
  10428. else
  10429. ac_cv_lib_dld_dld_link=no
  10430. fi
  10431. rm -f core conftest.err conftest.$ac_objext \
  10432. conftest$ac_exeext conftest.$ac_ext
  10433. LIBS=$ac_check_lib_save_LIBS
  10434. fi
  10435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10436. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10437. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10438. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10439. fi
  10440. fi
  10441. fi
  10442. fi
  10443. fi
  10444. fi
  10445. ;;
  10446. esac
  10447. if test "x$lt_cv_dlopen" != xno; then
  10448. enable_dlopen=yes
  10449. else
  10450. enable_dlopen=no
  10451. fi
  10452. case $lt_cv_dlopen in
  10453. dlopen)
  10454. save_CPPFLAGS="$CPPFLAGS"
  10455. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10456. save_LDFLAGS="$LDFLAGS"
  10457. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10458. save_LIBS="$LIBS"
  10459. LIBS="$lt_cv_dlopen_libs $LIBS"
  10460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10461. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10462. if ${lt_cv_dlopen_self+:} false; then :
  10463. $as_echo_n "(cached) " >&6
  10464. else
  10465. if test "$cross_compiling" = yes; then :
  10466. lt_cv_dlopen_self=cross
  10467. else
  10468. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10469. lt_status=$lt_dlunknown
  10470. cat > conftest.$ac_ext <<_LT_EOF
  10471. #line $LINENO "configure"
  10472. #include "confdefs.h"
  10473. #if HAVE_DLFCN_H
  10474. #include <dlfcn.h>
  10475. #endif
  10476. #include <stdio.h>
  10477. #ifdef RTLD_GLOBAL
  10478. # define LT_DLGLOBAL RTLD_GLOBAL
  10479. #else
  10480. # ifdef DL_GLOBAL
  10481. # define LT_DLGLOBAL DL_GLOBAL
  10482. # else
  10483. # define LT_DLGLOBAL 0
  10484. # endif
  10485. #endif
  10486. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10487. find out it does not work in some platform. */
  10488. #ifndef LT_DLLAZY_OR_NOW
  10489. # ifdef RTLD_LAZY
  10490. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10491. # else
  10492. # ifdef DL_LAZY
  10493. # define LT_DLLAZY_OR_NOW DL_LAZY
  10494. # else
  10495. # ifdef RTLD_NOW
  10496. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10497. # else
  10498. # ifdef DL_NOW
  10499. # define LT_DLLAZY_OR_NOW DL_NOW
  10500. # else
  10501. # define LT_DLLAZY_OR_NOW 0
  10502. # endif
  10503. # endif
  10504. # endif
  10505. # endif
  10506. #endif
  10507. /* When -fvisbility=hidden is used, assume the code has been annotated
  10508. correspondingly for the symbols needed. */
  10509. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10510. int fnord () __attribute__((visibility("default")));
  10511. #endif
  10512. int fnord () { return 42; }
  10513. int main ()
  10514. {
  10515. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10516. int status = $lt_dlunknown;
  10517. if (self)
  10518. {
  10519. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10520. else
  10521. {
  10522. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10523. else puts (dlerror ());
  10524. }
  10525. /* dlclose (self); */
  10526. }
  10527. else
  10528. puts (dlerror ());
  10529. return status;
  10530. }
  10531. _LT_EOF
  10532. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10533. (eval $ac_link) 2>&5
  10534. ac_status=$?
  10535. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10536. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10537. (./conftest; exit; ) >&5 2>/dev/null
  10538. lt_status=$?
  10539. case x$lt_status in
  10540. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10541. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10542. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10543. esac
  10544. else :
  10545. # compilation failed
  10546. lt_cv_dlopen_self=no
  10547. fi
  10548. fi
  10549. rm -fr conftest*
  10550. fi
  10551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10552. $as_echo "$lt_cv_dlopen_self" >&6; }
  10553. if test "x$lt_cv_dlopen_self" = xyes; then
  10554. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10556. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10557. if ${lt_cv_dlopen_self_static+:} false; then :
  10558. $as_echo_n "(cached) " >&6
  10559. else
  10560. if test "$cross_compiling" = yes; then :
  10561. lt_cv_dlopen_self_static=cross
  10562. else
  10563. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10564. lt_status=$lt_dlunknown
  10565. cat > conftest.$ac_ext <<_LT_EOF
  10566. #line $LINENO "configure"
  10567. #include "confdefs.h"
  10568. #if HAVE_DLFCN_H
  10569. #include <dlfcn.h>
  10570. #endif
  10571. #include <stdio.h>
  10572. #ifdef RTLD_GLOBAL
  10573. # define LT_DLGLOBAL RTLD_GLOBAL
  10574. #else
  10575. # ifdef DL_GLOBAL
  10576. # define LT_DLGLOBAL DL_GLOBAL
  10577. # else
  10578. # define LT_DLGLOBAL 0
  10579. # endif
  10580. #endif
  10581. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10582. find out it does not work in some platform. */
  10583. #ifndef LT_DLLAZY_OR_NOW
  10584. # ifdef RTLD_LAZY
  10585. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10586. # else
  10587. # ifdef DL_LAZY
  10588. # define LT_DLLAZY_OR_NOW DL_LAZY
  10589. # else
  10590. # ifdef RTLD_NOW
  10591. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10592. # else
  10593. # ifdef DL_NOW
  10594. # define LT_DLLAZY_OR_NOW DL_NOW
  10595. # else
  10596. # define LT_DLLAZY_OR_NOW 0
  10597. # endif
  10598. # endif
  10599. # endif
  10600. # endif
  10601. #endif
  10602. /* When -fvisbility=hidden is used, assume the code has been annotated
  10603. correspondingly for the symbols needed. */
  10604. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10605. int fnord () __attribute__((visibility("default")));
  10606. #endif
  10607. int fnord () { return 42; }
  10608. int main ()
  10609. {
  10610. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10611. int status = $lt_dlunknown;
  10612. if (self)
  10613. {
  10614. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10615. else
  10616. {
  10617. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10618. else puts (dlerror ());
  10619. }
  10620. /* dlclose (self); */
  10621. }
  10622. else
  10623. puts (dlerror ());
  10624. return status;
  10625. }
  10626. _LT_EOF
  10627. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10628. (eval $ac_link) 2>&5
  10629. ac_status=$?
  10630. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10631. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10632. (./conftest; exit; ) >&5 2>/dev/null
  10633. lt_status=$?
  10634. case x$lt_status in
  10635. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10636. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10637. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10638. esac
  10639. else :
  10640. # compilation failed
  10641. lt_cv_dlopen_self_static=no
  10642. fi
  10643. fi
  10644. rm -fr conftest*
  10645. fi
  10646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10647. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10648. fi
  10649. CPPFLAGS="$save_CPPFLAGS"
  10650. LDFLAGS="$save_LDFLAGS"
  10651. LIBS="$save_LIBS"
  10652. ;;
  10653. esac
  10654. case $lt_cv_dlopen_self in
  10655. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10656. *) enable_dlopen_self=unknown ;;
  10657. esac
  10658. case $lt_cv_dlopen_self_static in
  10659. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10660. *) enable_dlopen_self_static=unknown ;;
  10661. esac
  10662. fi
  10663. striplib=
  10664. old_striplib=
  10665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10666. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10667. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10668. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10669. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10671. $as_echo "yes" >&6; }
  10672. else
  10673. # FIXME - insert some real tests, host_os isn't really good enough
  10674. case $host_os in
  10675. darwin*)
  10676. if test -n "$STRIP" ; then
  10677. striplib="$STRIP -x"
  10678. old_striplib="$STRIP -S"
  10679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10680. $as_echo "yes" >&6; }
  10681. else
  10682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10683. $as_echo "no" >&6; }
  10684. fi
  10685. ;;
  10686. *)
  10687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10688. $as_echo "no" >&6; }
  10689. ;;
  10690. esac
  10691. fi
  10692. # Report which library types will actually be built
  10693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10694. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10696. $as_echo "$can_build_shared" >&6; }
  10697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10698. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10699. test "$can_build_shared" = "no" && enable_shared=no
  10700. # On AIX, shared libraries and static libraries use the same namespace, and
  10701. # are all built from PIC.
  10702. case $host_os in
  10703. aix3*)
  10704. test "$enable_shared" = yes && enable_static=no
  10705. if test -n "$RANLIB"; then
  10706. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10707. postinstall_cmds='$RANLIB $lib'
  10708. fi
  10709. ;;
  10710. aix[4-9]*)
  10711. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10712. test "$enable_shared" = yes && enable_static=no
  10713. fi
  10714. ;;
  10715. esac
  10716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10717. $as_echo "$enable_shared" >&6; }
  10718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10719. $as_echo_n "checking whether to build static libraries... " >&6; }
  10720. # Make sure either enable_shared or enable_static is yes.
  10721. test "$enable_shared" = yes || enable_static=yes
  10722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10723. $as_echo "$enable_static" >&6; }
  10724. fi
  10725. ac_ext=c
  10726. ac_cpp='$CPP $CPPFLAGS'
  10727. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10728. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10729. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10730. CC="$lt_save_CC"
  10731. ac_config_commands="$ac_config_commands libtool"
  10732. # Only expand once:
  10733. gl_VISIBILITY
  10734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  10735. $as_echo_n "checking for ANSI C header files... " >&6; }
  10736. if ${ac_cv_header_stdc+:} false; then :
  10737. $as_echo_n "(cached) " >&6
  10738. else
  10739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10740. /* end confdefs.h. */
  10741. #include <stdlib.h>
  10742. #include <stdarg.h>
  10743. #include <string.h>
  10744. #include <float.h>
  10745. int
  10746. main ()
  10747. {
  10748. ;
  10749. return 0;
  10750. }
  10751. _ACEOF
  10752. if ac_fn_c_try_compile "$LINENO"; then :
  10753. ac_cv_header_stdc=yes
  10754. else
  10755. ac_cv_header_stdc=no
  10756. fi
  10757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10758. if test $ac_cv_header_stdc = yes; then
  10759. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  10760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10761. /* end confdefs.h. */
  10762. #include <string.h>
  10763. _ACEOF
  10764. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10765. $EGREP "memchr" >/dev/null 2>&1; then :
  10766. else
  10767. ac_cv_header_stdc=no
  10768. fi
  10769. rm -f conftest*
  10770. fi
  10771. if test $ac_cv_header_stdc = yes; then
  10772. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  10773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10774. /* end confdefs.h. */
  10775. #include <stdlib.h>
  10776. _ACEOF
  10777. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10778. $EGREP "free" >/dev/null 2>&1; then :
  10779. else
  10780. ac_cv_header_stdc=no
  10781. fi
  10782. rm -f conftest*
  10783. fi
  10784. if test $ac_cv_header_stdc = yes; then
  10785. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  10786. if test "$cross_compiling" = yes; then :
  10787. :
  10788. else
  10789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10790. /* end confdefs.h. */
  10791. #include <ctype.h>
  10792. #include <stdlib.h>
  10793. #if ((' ' & 0x0FF) == 0x020)
  10794. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10795. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10796. #else
  10797. # define ISLOWER(c) \
  10798. (('a' <= (c) && (c) <= 'i') \
  10799. || ('j' <= (c) && (c) <= 'r') \
  10800. || ('s' <= (c) && (c) <= 'z'))
  10801. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10802. #endif
  10803. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10804. int
  10805. main ()
  10806. {
  10807. int i;
  10808. for (i = 0; i < 256; i++)
  10809. if (XOR (islower (i), ISLOWER (i))
  10810. || toupper (i) != TOUPPER (i))
  10811. return 2;
  10812. return 0;
  10813. }
  10814. _ACEOF
  10815. if ac_fn_c_try_run "$LINENO"; then :
  10816. else
  10817. ac_cv_header_stdc=no
  10818. fi
  10819. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10820. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10821. fi
  10822. fi
  10823. fi
  10824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  10825. $as_echo "$ac_cv_header_stdc" >&6; }
  10826. if test $ac_cv_header_stdc = yes; then
  10827. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  10828. fi
  10829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
  10830. $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  10831. if ${ac_cv_header_sys_types_h_makedev+:} false; then :
  10832. $as_echo_n "(cached) " >&6
  10833. else
  10834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10835. /* end confdefs.h. */
  10836. #include <sys/types.h>
  10837. int
  10838. main ()
  10839. {
  10840. return makedev(0, 0);
  10841. ;
  10842. return 0;
  10843. }
  10844. _ACEOF
  10845. if ac_fn_c_try_link "$LINENO"; then :
  10846. ac_cv_header_sys_types_h_makedev=yes
  10847. else
  10848. ac_cv_header_sys_types_h_makedev=no
  10849. fi
  10850. rm -f core conftest.err conftest.$ac_objext \
  10851. conftest$ac_exeext conftest.$ac_ext
  10852. fi
  10853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
  10854. $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  10855. if test $ac_cv_header_sys_types_h_makedev = no; then
  10856. ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  10857. if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
  10858. $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  10859. fi
  10860. if test $ac_cv_header_sys_mkdev_h = no; then
  10861. ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  10862. if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
  10863. $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  10864. fi
  10865. fi
  10866. fi
  10867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  10868. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  10869. if ${ac_cv_header_sys_wait_h+:} false; then :
  10870. $as_echo_n "(cached) " >&6
  10871. else
  10872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10873. /* end confdefs.h. */
  10874. #include <sys/types.h>
  10875. #include <sys/wait.h>
  10876. #ifndef WEXITSTATUS
  10877. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  10878. #endif
  10879. #ifndef WIFEXITED
  10880. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  10881. #endif
  10882. int
  10883. main ()
  10884. {
  10885. int s;
  10886. wait (&s);
  10887. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  10888. ;
  10889. return 0;
  10890. }
  10891. _ACEOF
  10892. if ac_fn_c_try_compile "$LINENO"; then :
  10893. ac_cv_header_sys_wait_h=yes
  10894. else
  10895. ac_cv_header_sys_wait_h=no
  10896. fi
  10897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10898. fi
  10899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  10900. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  10901. if test $ac_cv_header_sys_wait_h = yes; then
  10902. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  10903. fi
  10904. for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h
  10905. do :
  10906. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10907. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10908. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10909. cat >>confdefs.h <<_ACEOF
  10910. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10911. _ACEOF
  10912. fi
  10913. done
  10914. for ac_header in stddef.h utime.h wchar.h wctype.h limits.h
  10915. do :
  10916. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10917. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10918. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10919. cat >>confdefs.h <<_ACEOF
  10920. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10921. _ACEOF
  10922. fi
  10923. done
  10924. for ac_header in getopt.h err.h xlocale.h signal.h
  10925. do :
  10926. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10927. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10928. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10929. cat >>confdefs.h <<_ACEOF
  10930. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10931. _ACEOF
  10932. fi
  10933. done
  10934. for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
  10935. do :
  10936. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10937. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10938. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10939. cat >>confdefs.h <<_ACEOF
  10940. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10941. _ACEOF
  10942. fi
  10943. done
  10944. if test "$enable_zlib" != "no"; then
  10945. for ac_header in zlib.h
  10946. do :
  10947. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  10948. if test "x$ac_cv_header_zlib_h" = xyes; then :
  10949. cat >>confdefs.h <<_ACEOF
  10950. #define HAVE_ZLIB_H 1
  10951. _ACEOF
  10952. fi
  10953. done
  10954. fi
  10955. ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "
  10956. #ifdef HAVE_SIGNAL_H
  10957. #include <signal.h>
  10958. #endif
  10959. "
  10960. if test "x$ac_cv_type_sig_t" = xyes; then :
  10961. $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
  10962. fi
  10963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  10964. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  10965. if ${ac_cv_c_const+:} false; then :
  10966. $as_echo_n "(cached) " >&6
  10967. else
  10968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10969. /* end confdefs.h. */
  10970. int
  10971. main ()
  10972. {
  10973. #ifndef __cplusplus
  10974. /* Ultrix mips cc rejects this sort of thing. */
  10975. typedef int charset[2];
  10976. const charset cs = { 0, 0 };
  10977. /* SunOS 4.1.1 cc rejects this. */
  10978. char const *const *pcpcc;
  10979. char **ppc;
  10980. /* NEC SVR4.0.2 mips cc rejects this. */
  10981. struct point {int x, y;};
  10982. static struct point const zero = {0,0};
  10983. /* AIX XL C 1.02.0.0 rejects this.
  10984. It does not let you subtract one const X* pointer from another in
  10985. an arm of an if-expression whose if-part is not a constant
  10986. expression */
  10987. const char *g = "string";
  10988. pcpcc = &g + (g ? g-g : 0);
  10989. /* HPUX 7.0 cc rejects these. */
  10990. ++pcpcc;
  10991. ppc = (char**) pcpcc;
  10992. pcpcc = (char const *const *) ppc;
  10993. { /* SCO 3.2v4 cc rejects this sort of thing. */
  10994. char tx;
  10995. char *t = &tx;
  10996. char const *s = 0 ? (char *) 0 : (char const *) 0;
  10997. *t++ = 0;
  10998. if (s) return 0;
  10999. }
  11000. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  11001. int x[] = {25, 17};
  11002. const int *foo = &x[0];
  11003. ++foo;
  11004. }
  11005. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  11006. typedef const int *iptr;
  11007. iptr p = 0;
  11008. ++p;
  11009. }
  11010. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  11011. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  11012. struct s { int j; const int *ap[3]; } bx;
  11013. struct s *b = &bx; b->j = 5;
  11014. }
  11015. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  11016. const int foo = 10;
  11017. if (!foo) return 0;
  11018. }
  11019. return !cs[0] && !zero.x;
  11020. #endif
  11021. ;
  11022. return 0;
  11023. }
  11024. _ACEOF
  11025. if ac_fn_c_try_compile "$LINENO"; then :
  11026. ac_cv_c_const=yes
  11027. else
  11028. ac_cv_c_const=no
  11029. fi
  11030. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11031. fi
  11032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  11033. $as_echo "$ac_cv_c_const" >&6; }
  11034. if test $ac_cv_c_const = no; then
  11035. $as_echo "#define const /**/" >>confdefs.h
  11036. fi
  11037. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  11038. if test "x$ac_cv_type_off_t" = xyes; then :
  11039. else
  11040. cat >>confdefs.h <<_ACEOF
  11041. #define off_t long int
  11042. _ACEOF
  11043. fi
  11044. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  11045. if test "x$ac_cv_type_size_t" = xyes; then :
  11046. else
  11047. cat >>confdefs.h <<_ACEOF
  11048. #define size_t unsigned int
  11049. _ACEOF
  11050. fi
  11051. ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
  11052. if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
  11053. cat >>confdefs.h <<_ACEOF
  11054. #define HAVE_STRUCT_STAT_ST_RDEV 1
  11055. _ACEOF
  11056. fi
  11057. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
  11058. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
  11059. cat >>confdefs.h <<_ACEOF
  11060. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  11061. _ACEOF
  11062. fi
  11063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  11064. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  11065. if ${ac_cv_struct_tm+:} false; then :
  11066. $as_echo_n "(cached) " >&6
  11067. else
  11068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11069. /* end confdefs.h. */
  11070. #include <sys/types.h>
  11071. #include <time.h>
  11072. int
  11073. main ()
  11074. {
  11075. struct tm tm;
  11076. int *p = &tm.tm_sec;
  11077. return !p;
  11078. ;
  11079. return 0;
  11080. }
  11081. _ACEOF
  11082. if ac_fn_c_try_compile "$LINENO"; then :
  11083. ac_cv_struct_tm=time.h
  11084. else
  11085. ac_cv_struct_tm=sys/time.h
  11086. fi
  11087. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11088. fi
  11089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  11090. $as_echo "$ac_cv_struct_tm" >&6; }
  11091. if test $ac_cv_struct_tm = sys/time.h; then
  11092. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  11093. fi
  11094. ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  11095. #include <$ac_cv_struct_tm>
  11096. "
  11097. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  11098. cat >>confdefs.h <<_ACEOF
  11099. #define HAVE_STRUCT_TM_TM_ZONE 1
  11100. _ACEOF
  11101. fi
  11102. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  11103. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  11104. else
  11105. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  11106. "
  11107. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  11108. ac_have_decl=1
  11109. else
  11110. ac_have_decl=0
  11111. fi
  11112. cat >>confdefs.h <<_ACEOF
  11113. #define HAVE_DECL_TZNAME $ac_have_decl
  11114. _ACEOF
  11115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  11116. $as_echo_n "checking for tzname... " >&6; }
  11117. if ${ac_cv_var_tzname+:} false; then :
  11118. $as_echo_n "(cached) " >&6
  11119. else
  11120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11121. /* end confdefs.h. */
  11122. #include <time.h>
  11123. #if !HAVE_DECL_TZNAME
  11124. extern char *tzname[];
  11125. #endif
  11126. int
  11127. main ()
  11128. {
  11129. return tzname[0][0];
  11130. ;
  11131. return 0;
  11132. }
  11133. _ACEOF
  11134. if ac_fn_c_try_link "$LINENO"; then :
  11135. ac_cv_var_tzname=yes
  11136. else
  11137. ac_cv_var_tzname=no
  11138. fi
  11139. rm -f core conftest.err conftest.$ac_objext \
  11140. conftest$ac_exeext conftest.$ac_ext
  11141. fi
  11142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  11143. $as_echo "$ac_cv_var_tzname" >&6; }
  11144. if test $ac_cv_var_tzname = yes; then
  11145. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  11146. fi
  11147. fi
  11148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
  11149. $as_echo_n "checking for tm_zone in struct tm... " >&6; }
  11150. if ${ac_cv_struct_tm_zone+:} false; then :
  11151. $as_echo_n "(cached) " >&6
  11152. else
  11153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11154. /* end confdefs.h. */
  11155. #include <sys/types.h>
  11156. #include <$ac_cv_struct_tm>
  11157. int
  11158. main ()
  11159. {
  11160. struct tm tm; tm.tm_zone;
  11161. ;
  11162. return 0;
  11163. }
  11164. _ACEOF
  11165. if ac_fn_c_try_compile "$LINENO"; then :
  11166. ac_cv_struct_tm_zone=yes
  11167. else
  11168. ac_cv_struct_tm_zone=no
  11169. fi
  11170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11171. fi
  11172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
  11173. $as_echo "$ac_cv_struct_tm_zone" >&6; }
  11174. if test "$ac_cv_struct_tm_zone" = yes; then
  11175. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  11176. fi
  11177. # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
  11178. # consider it declared and we won't give our own extern.
  11179. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  11180. "
  11181. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  11182. ac_have_decl=1
  11183. else
  11184. ac_have_decl=0
  11185. fi
  11186. cat >>confdefs.h <<_ACEOF
  11187. #define HAVE_DECL_TZNAME $ac_have_decl
  11188. _ACEOF
  11189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  11190. $as_echo_n "checking for tzname... " >&6; }
  11191. if ${ac_cv_var_tzname+:} false; then :
  11192. $as_echo_n "(cached) " >&6
  11193. else
  11194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11195. /* end confdefs.h. */
  11196. #include <time.h>
  11197. #if !HAVE_DECL_TZNAME
  11198. extern char *tzname[];
  11199. #endif
  11200. int
  11201. main ()
  11202. {
  11203. return tzname[0][0];
  11204. ;
  11205. return 0;
  11206. }
  11207. _ACEOF
  11208. if ac_fn_c_try_link "$LINENO"; then :
  11209. ac_cv_var_tzname=yes
  11210. else
  11211. ac_cv_var_tzname=no
  11212. fi
  11213. rm -f core conftest.err conftest.$ac_objext \
  11214. conftest$ac_exeext conftest.$ac_ext
  11215. fi
  11216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  11217. $as_echo "$ac_cv_var_tzname" >&6; }
  11218. if test $ac_cv_var_tzname = yes; then
  11219. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  11220. fi
  11221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
  11222. $as_echo_n "checking for tm_isdst in struct tm... " >&6; }
  11223. if ${ac_cv_struct_tm_isdst+:} false; then :
  11224. $as_echo_n "(cached) " >&6
  11225. else
  11226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11227. /* end confdefs.h. */
  11228. #include <sys/types.h>
  11229. #include <$ac_cv_struct_tm>
  11230. int
  11231. main ()
  11232. {
  11233. struct tm tm; tm.tm_isdst;
  11234. ;
  11235. return 0;
  11236. }
  11237. _ACEOF
  11238. if ac_fn_c_try_compile "$LINENO"; then :
  11239. ac_cv_struct_tm_isdst=yes
  11240. else
  11241. ac_cv_struct_tm_isdst=no
  11242. fi
  11243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11244. fi
  11245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
  11246. $as_echo "$ac_cv_struct_tm_isdst" >&6; }
  11247. if test "$ac_cv_struct_tm_isdst" = yes; then
  11248. $as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h
  11249. fi
  11250. ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
  11251. "
  11252. if test "x$ac_cv_have_decl_daylight" = xyes; then :
  11253. ac_have_decl=1
  11254. else
  11255. ac_have_decl=0
  11256. fi
  11257. cat >>confdefs.h <<_ACEOF
  11258. #define HAVE_DECL_DAYLIGHT $ac_have_decl
  11259. _ACEOF
  11260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
  11261. $as_echo_n "checking for daylight... " >&6; }
  11262. if ${ac_cv_var_daylight+:} false; then :
  11263. $as_echo_n "(cached) " >&6
  11264. else
  11265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11266. /* end confdefs.h. */
  11267. #include <time.h>
  11268. #if !HAVE_DECL_DAYLIGHT
  11269. extern int daylight;
  11270. #endif
  11271. int
  11272. main ()
  11273. {
  11274. atoi(daylight);
  11275. ;
  11276. return 0;
  11277. }
  11278. _ACEOF
  11279. if ac_fn_c_try_link "$LINENO"; then :
  11280. ac_cv_var_daylight=yes
  11281. else
  11282. ac_cv_var_daylight=no
  11283. fi
  11284. rm -f core conftest.err conftest.$ac_objext \
  11285. conftest$ac_exeext conftest.$ac_ext
  11286. fi
  11287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
  11288. $as_echo "$ac_cv_var_daylight" >&6; }
  11289. if test $ac_cv_var_daylight = yes; then
  11290. $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
  11291. fi
  11292. # Check whether --enable-largefile was given.
  11293. if test "${enable_largefile+set}" = set; then :
  11294. enableval=$enable_largefile;
  11295. fi
  11296. if test "$enable_largefile" != no; then
  11297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  11298. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  11299. if ${ac_cv_sys_largefile_CC+:} false; then :
  11300. $as_echo_n "(cached) " >&6
  11301. else
  11302. ac_cv_sys_largefile_CC=no
  11303. if test "$GCC" != yes; then
  11304. ac_save_CC=$CC
  11305. while :; do
  11306. # IRIX 6.2 and later do not support large files by default,
  11307. # so use the C compiler's -n32 option if that helps.
  11308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11309. /* end confdefs.h. */
  11310. #include <sys/types.h>
  11311. /* Check that off_t can represent 2**63 - 1 correctly.
  11312. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11313. since some C++ compilers masquerading as C compilers
  11314. incorrectly reject 9223372036854775807. */
  11315. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11316. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11317. && LARGE_OFF_T % 2147483647 == 1)
  11318. ? 1 : -1];
  11319. int
  11320. main ()
  11321. {
  11322. ;
  11323. return 0;
  11324. }
  11325. _ACEOF
  11326. if ac_fn_c_try_compile "$LINENO"; then :
  11327. break
  11328. fi
  11329. rm -f core conftest.err conftest.$ac_objext
  11330. CC="$CC -n32"
  11331. if ac_fn_c_try_compile "$LINENO"; then :
  11332. ac_cv_sys_largefile_CC=' -n32'; break
  11333. fi
  11334. rm -f core conftest.err conftest.$ac_objext
  11335. break
  11336. done
  11337. CC=$ac_save_CC
  11338. rm -f conftest.$ac_ext
  11339. fi
  11340. fi
  11341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  11342. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  11343. if test "$ac_cv_sys_largefile_CC" != no; then
  11344. CC=$CC$ac_cv_sys_largefile_CC
  11345. fi
  11346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  11347. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  11348. if ${ac_cv_sys_file_offset_bits+:} false; then :
  11349. $as_echo_n "(cached) " >&6
  11350. else
  11351. while :; do
  11352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11353. /* end confdefs.h. */
  11354. #include <sys/types.h>
  11355. /* Check that off_t can represent 2**63 - 1 correctly.
  11356. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11357. since some C++ compilers masquerading as C compilers
  11358. incorrectly reject 9223372036854775807. */
  11359. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11360. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11361. && LARGE_OFF_T % 2147483647 == 1)
  11362. ? 1 : -1];
  11363. int
  11364. main ()
  11365. {
  11366. ;
  11367. return 0;
  11368. }
  11369. _ACEOF
  11370. if ac_fn_c_try_compile "$LINENO"; then :
  11371. ac_cv_sys_file_offset_bits=no; break
  11372. fi
  11373. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11375. /* end confdefs.h. */
  11376. #define _FILE_OFFSET_BITS 64
  11377. #include <sys/types.h>
  11378. /* Check that off_t can represent 2**63 - 1 correctly.
  11379. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11380. since some C++ compilers masquerading as C compilers
  11381. incorrectly reject 9223372036854775807. */
  11382. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11383. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11384. && LARGE_OFF_T % 2147483647 == 1)
  11385. ? 1 : -1];
  11386. int
  11387. main ()
  11388. {
  11389. ;
  11390. return 0;
  11391. }
  11392. _ACEOF
  11393. if ac_fn_c_try_compile "$LINENO"; then :
  11394. ac_cv_sys_file_offset_bits=64; break
  11395. fi
  11396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11397. ac_cv_sys_file_offset_bits=unknown
  11398. break
  11399. done
  11400. fi
  11401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  11402. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  11403. case $ac_cv_sys_file_offset_bits in #(
  11404. no | unknown) ;;
  11405. *)
  11406. cat >>confdefs.h <<_ACEOF
  11407. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  11408. _ACEOF
  11409. ;;
  11410. esac
  11411. rm -rf conftest*
  11412. if test $ac_cv_sys_file_offset_bits = unknown; then
  11413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  11414. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  11415. if ${ac_cv_sys_large_files+:} false; then :
  11416. $as_echo_n "(cached) " >&6
  11417. else
  11418. while :; do
  11419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11420. /* end confdefs.h. */
  11421. #include <sys/types.h>
  11422. /* Check that off_t can represent 2**63 - 1 correctly.
  11423. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11424. since some C++ compilers masquerading as C compilers
  11425. incorrectly reject 9223372036854775807. */
  11426. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11427. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11428. && LARGE_OFF_T % 2147483647 == 1)
  11429. ? 1 : -1];
  11430. int
  11431. main ()
  11432. {
  11433. ;
  11434. return 0;
  11435. }
  11436. _ACEOF
  11437. if ac_fn_c_try_compile "$LINENO"; then :
  11438. ac_cv_sys_large_files=no; break
  11439. fi
  11440. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11442. /* end confdefs.h. */
  11443. #define _LARGE_FILES 1
  11444. #include <sys/types.h>
  11445. /* Check that off_t can represent 2**63 - 1 correctly.
  11446. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11447. since some C++ compilers masquerading as C compilers
  11448. incorrectly reject 9223372036854775807. */
  11449. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11450. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11451. && LARGE_OFF_T % 2147483647 == 1)
  11452. ? 1 : -1];
  11453. int
  11454. main ()
  11455. {
  11456. ;
  11457. return 0;
  11458. }
  11459. _ACEOF
  11460. if ac_fn_c_try_compile "$LINENO"; then :
  11461. ac_cv_sys_large_files=1; break
  11462. fi
  11463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11464. ac_cv_sys_large_files=unknown
  11465. break
  11466. done
  11467. fi
  11468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  11469. $as_echo "$ac_cv_sys_large_files" >&6; }
  11470. case $ac_cv_sys_large_files in #(
  11471. no | unknown) ;;
  11472. *)
  11473. cat >>confdefs.h <<_ACEOF
  11474. #define _LARGE_FILES $ac_cv_sys_large_files
  11475. _ACEOF
  11476. ;;
  11477. esac
  11478. rm -rf conftest*
  11479. fi
  11480. fi
  11481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  11482. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  11483. if ${ac_cv_sys_largefile_source+:} false; then :
  11484. $as_echo_n "(cached) " >&6
  11485. else
  11486. while :; do
  11487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11488. /* end confdefs.h. */
  11489. #include <sys/types.h> /* for off_t */
  11490. #include <stdio.h>
  11491. int
  11492. main ()
  11493. {
  11494. int (*fp) (FILE *, off_t, int) = fseeko;
  11495. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  11496. ;
  11497. return 0;
  11498. }
  11499. _ACEOF
  11500. if ac_fn_c_try_link "$LINENO"; then :
  11501. ac_cv_sys_largefile_source=no; break
  11502. fi
  11503. rm -f core conftest.err conftest.$ac_objext \
  11504. conftest$ac_exeext conftest.$ac_ext
  11505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11506. /* end confdefs.h. */
  11507. #define _LARGEFILE_SOURCE 1
  11508. #include <sys/types.h> /* for off_t */
  11509. #include <stdio.h>
  11510. int
  11511. main ()
  11512. {
  11513. int (*fp) (FILE *, off_t, int) = fseeko;
  11514. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  11515. ;
  11516. return 0;
  11517. }
  11518. _ACEOF
  11519. if ac_fn_c_try_link "$LINENO"; then :
  11520. ac_cv_sys_largefile_source=1; break
  11521. fi
  11522. rm -f core conftest.err conftest.$ac_objext \
  11523. conftest$ac_exeext conftest.$ac_ext
  11524. ac_cv_sys_largefile_source=unknown
  11525. break
  11526. done
  11527. fi
  11528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  11529. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  11530. case $ac_cv_sys_largefile_source in #(
  11531. no | unknown) ;;
  11532. *)
  11533. cat >>confdefs.h <<_ACEOF
  11534. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  11535. _ACEOF
  11536. ;;
  11537. esac
  11538. rm -rf conftest*
  11539. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  11540. # in glibc 2.1.3, but that breaks too many other things.
  11541. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  11542. if test $ac_cv_sys_largefile_source != unknown; then
  11543. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  11544. fi
  11545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
  11546. $as_echo_n "checking for mbstate_t... " >&6; }
  11547. if ${ac_cv_type_mbstate_t+:} false; then :
  11548. $as_echo_n "(cached) " >&6
  11549. else
  11550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11551. /* end confdefs.h. */
  11552. $ac_includes_default
  11553. # include <wchar.h>
  11554. int
  11555. main ()
  11556. {
  11557. mbstate_t x; return sizeof x;
  11558. ;
  11559. return 0;
  11560. }
  11561. _ACEOF
  11562. if ac_fn_c_try_compile "$LINENO"; then :
  11563. ac_cv_type_mbstate_t=yes
  11564. else
  11565. ac_cv_type_mbstate_t=no
  11566. fi
  11567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11568. fi
  11569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
  11570. $as_echo "$ac_cv_type_mbstate_t" >&6; }
  11571. if test $ac_cv_type_mbstate_t = yes; then
  11572. $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
  11573. else
  11574. $as_echo "#define mbstate_t int" >>confdefs.h
  11575. fi
  11576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
  11577. $as_echo_n "checking for struct option in getopt... " >&6; }
  11578. if ${ac_cv_struct_option_getopt_h+:} false; then :
  11579. $as_echo_n "(cached) " >&6
  11580. else
  11581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11582. /* end confdefs.h. */
  11583. #include <getopt.h>
  11584. int
  11585. main ()
  11586. {
  11587. struct option op; op.name;
  11588. ;
  11589. return 0;
  11590. }
  11591. _ACEOF
  11592. if ac_fn_c_try_compile "$LINENO"; then :
  11593. ac_cv_struct_option_getopt_h=yes
  11594. else
  11595. ac_cv_struct_option_getopt_h=no
  11596. fi
  11597. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11598. fi
  11599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
  11600. $as_echo "$ac_cv_struct_option_getopt_h" >&6; }
  11601. if test "$ac_cv_struct_option_getopt_h" = yes; then
  11602. $as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
  11603. fi
  11604. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  11605. if test "x$ac_cv_type_pid_t" = xyes; then :
  11606. else
  11607. cat >>confdefs.h <<_ACEOF
  11608. #define pid_t int
  11609. _ACEOF
  11610. fi
  11611. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  11612. case $ac_cv_c_uint8_t in #(
  11613. no|yes) ;; #(
  11614. *)
  11615. $as_echo "#define _UINT8_T 1" >>confdefs.h
  11616. cat >>confdefs.h <<_ACEOF
  11617. #define uint8_t $ac_cv_c_uint8_t
  11618. _ACEOF
  11619. ;;
  11620. esac
  11621. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  11622. case $ac_cv_c_uint16_t in #(
  11623. no|yes) ;; #(
  11624. *)
  11625. cat >>confdefs.h <<_ACEOF
  11626. #define uint16_t $ac_cv_c_uint16_t
  11627. _ACEOF
  11628. ;;
  11629. esac
  11630. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  11631. case $ac_cv_c_uint32_t in #(
  11632. no|yes) ;; #(
  11633. *)
  11634. $as_echo "#define _UINT32_T 1" >>confdefs.h
  11635. cat >>confdefs.h <<_ACEOF
  11636. #define uint32_t $ac_cv_c_uint32_t
  11637. _ACEOF
  11638. ;;
  11639. esac
  11640. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  11641. case $ac_cv_c_int32_t in #(
  11642. no|yes) ;; #(
  11643. *)
  11644. cat >>confdefs.h <<_ACEOF
  11645. #define int32_t $ac_cv_c_int32_t
  11646. _ACEOF
  11647. ;;
  11648. esac
  11649. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  11650. case $ac_cv_c_uint64_t in #(
  11651. no|yes) ;; #(
  11652. *)
  11653. $as_echo "#define _UINT64_T 1" >>confdefs.h
  11654. cat >>confdefs.h <<_ACEOF
  11655. #define uint64_t $ac_cv_c_uint64_t
  11656. _ACEOF
  11657. ;;
  11658. esac
  11659. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  11660. case $ac_cv_c_int64_t in #(
  11661. no|yes) ;; #(
  11662. *)
  11663. cat >>confdefs.h <<_ACEOF
  11664. #define int64_t $ac_cv_c_int64_t
  11665. _ACEOF
  11666. ;;
  11667. esac
  11668. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  11669. if test "x$ac_cv_type_intptr_t" = xyes; then :
  11670. $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
  11671. else
  11672. for ac_type in 'int' 'long int' 'long long int'; do
  11673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11674. /* end confdefs.h. */
  11675. $ac_includes_default
  11676. int
  11677. main ()
  11678. {
  11679. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  11680. test_array [0] = 0;
  11681. return test_array [0];
  11682. ;
  11683. return 0;
  11684. }
  11685. _ACEOF
  11686. if ac_fn_c_try_compile "$LINENO"; then :
  11687. cat >>confdefs.h <<_ACEOF
  11688. #define intptr_t $ac_type
  11689. _ACEOF
  11690. ac_type=
  11691. fi
  11692. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11693. test -z "$ac_type" && break
  11694. done
  11695. fi
  11696. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  11697. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  11698. $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
  11699. else
  11700. for ac_type in 'unsigned int' 'unsigned long int' \
  11701. 'unsigned long long int'; do
  11702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11703. /* end confdefs.h. */
  11704. $ac_includes_default
  11705. int
  11706. main ()
  11707. {
  11708. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  11709. test_array [0] = 0;
  11710. return test_array [0];
  11711. ;
  11712. return 0;
  11713. }
  11714. _ACEOF
  11715. if ac_fn_c_try_compile "$LINENO"; then :
  11716. cat >>confdefs.h <<_ACEOF
  11717. #define uintptr_t $ac_type
  11718. _ACEOF
  11719. ac_type=
  11720. fi
  11721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11722. test -z "$ac_type" && break
  11723. done
  11724. fi
  11725. for ac_header in $ac_header_list
  11726. do :
  11727. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11728. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  11729. "
  11730. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11731. cat >>confdefs.h <<_ACEOF
  11732. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11733. _ACEOF
  11734. fi
  11735. done
  11736. for ac_func in getpagesize
  11737. do :
  11738. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  11739. if test "x$ac_cv_func_getpagesize" = xyes; then :
  11740. cat >>confdefs.h <<_ACEOF
  11741. #define HAVE_GETPAGESIZE 1
  11742. _ACEOF
  11743. fi
  11744. done
  11745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  11746. $as_echo_n "checking for working mmap... " >&6; }
  11747. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  11748. $as_echo_n "(cached) " >&6
  11749. else
  11750. if test "$cross_compiling" = yes; then :
  11751. ac_cv_func_mmap_fixed_mapped=no
  11752. else
  11753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11754. /* end confdefs.h. */
  11755. $ac_includes_default
  11756. /* malloc might have been renamed as rpl_malloc. */
  11757. #undef malloc
  11758. /* Thanks to Mike Haertel and Jim Avera for this test.
  11759. Here is a matrix of mmap possibilities:
  11760. mmap private not fixed
  11761. mmap private fixed at somewhere currently unmapped
  11762. mmap private fixed at somewhere already mapped
  11763. mmap shared not fixed
  11764. mmap shared fixed at somewhere currently unmapped
  11765. mmap shared fixed at somewhere already mapped
  11766. For private mappings, we should verify that changes cannot be read()
  11767. back from the file, nor mmap's back from the file at a different
  11768. address. (There have been systems where private was not correctly
  11769. implemented like the infamous i386 svr4.0, and systems where the
  11770. VM page cache was not coherent with the file system buffer cache
  11771. like early versions of FreeBSD and possibly contemporary NetBSD.)
  11772. For shared mappings, we should conversely verify that changes get
  11773. propagated back to all the places they're supposed to be.
  11774. Grep wants private fixed already mapped.
  11775. The main things grep needs to know about mmap are:
  11776. * does it exist and is it safe to write into the mmap'd area
  11777. * how to use it (BSD variants) */
  11778. #include <fcntl.h>
  11779. #include <sys/mman.h>
  11780. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  11781. char *malloc ();
  11782. #endif
  11783. /* This mess was copied from the GNU getpagesize.h. */
  11784. #ifndef HAVE_GETPAGESIZE
  11785. # ifdef _SC_PAGESIZE
  11786. # define getpagesize() sysconf(_SC_PAGESIZE)
  11787. # else /* no _SC_PAGESIZE */
  11788. # ifdef HAVE_SYS_PARAM_H
  11789. # include <sys/param.h>
  11790. # ifdef EXEC_PAGESIZE
  11791. # define getpagesize() EXEC_PAGESIZE
  11792. # else /* no EXEC_PAGESIZE */
  11793. # ifdef NBPG
  11794. # define getpagesize() NBPG * CLSIZE
  11795. # ifndef CLSIZE
  11796. # define CLSIZE 1
  11797. # endif /* no CLSIZE */
  11798. # else /* no NBPG */
  11799. # ifdef NBPC
  11800. # define getpagesize() NBPC
  11801. # else /* no NBPC */
  11802. # ifdef PAGESIZE
  11803. # define getpagesize() PAGESIZE
  11804. # endif /* PAGESIZE */
  11805. # endif /* no NBPC */
  11806. # endif /* no NBPG */
  11807. # endif /* no EXEC_PAGESIZE */
  11808. # else /* no HAVE_SYS_PARAM_H */
  11809. # define getpagesize() 8192 /* punt totally */
  11810. # endif /* no HAVE_SYS_PARAM_H */
  11811. # endif /* no _SC_PAGESIZE */
  11812. #endif /* no HAVE_GETPAGESIZE */
  11813. int
  11814. main ()
  11815. {
  11816. char *data, *data2, *data3;
  11817. const char *cdata2;
  11818. int i, pagesize;
  11819. int fd, fd2;
  11820. pagesize = getpagesize ();
  11821. /* First, make a file with some known garbage in it. */
  11822. data = (char *) malloc (pagesize);
  11823. if (!data)
  11824. return 1;
  11825. for (i = 0; i < pagesize; ++i)
  11826. *(data + i) = rand ();
  11827. umask (0);
  11828. fd = creat ("conftest.mmap", 0600);
  11829. if (fd < 0)
  11830. return 2;
  11831. if (write (fd, data, pagesize) != pagesize)
  11832. return 3;
  11833. close (fd);
  11834. /* Next, check that the tail of a page is zero-filled. File must have
  11835. non-zero length, otherwise we risk SIGBUS for entire page. */
  11836. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  11837. if (fd2 < 0)
  11838. return 4;
  11839. cdata2 = "";
  11840. if (write (fd2, cdata2, 1) != 1)
  11841. return 5;
  11842. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  11843. if (data2 == MAP_FAILED)
  11844. return 6;
  11845. for (i = 0; i < pagesize; ++i)
  11846. if (*(data2 + i))
  11847. return 7;
  11848. close (fd2);
  11849. if (munmap (data2, pagesize))
  11850. return 8;
  11851. /* Next, try to mmap the file at a fixed address which already has
  11852. something else allocated at it. If we can, also make sure that
  11853. we see the same garbage. */
  11854. fd = open ("conftest.mmap", O_RDWR);
  11855. if (fd < 0)
  11856. return 9;
  11857. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  11858. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  11859. return 10;
  11860. for (i = 0; i < pagesize; ++i)
  11861. if (*(data + i) != *(data2 + i))
  11862. return 11;
  11863. /* Finally, make sure that changes to the mapped area do not
  11864. percolate back to the file as seen by read(). (This is a bug on
  11865. some variants of i386 svr4.0.) */
  11866. for (i = 0; i < pagesize; ++i)
  11867. *(data2 + i) = *(data2 + i) + 1;
  11868. data3 = (char *) malloc (pagesize);
  11869. if (!data3)
  11870. return 12;
  11871. if (read (fd, data3, pagesize) != pagesize)
  11872. return 13;
  11873. for (i = 0; i < pagesize; ++i)
  11874. if (*(data + i) != *(data3 + i))
  11875. return 14;
  11876. close (fd);
  11877. return 0;
  11878. }
  11879. _ACEOF
  11880. if ac_fn_c_try_run "$LINENO"; then :
  11881. ac_cv_func_mmap_fixed_mapped=yes
  11882. else
  11883. ac_cv_func_mmap_fixed_mapped=no
  11884. fi
  11885. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11886. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11887. fi
  11888. fi
  11889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  11890. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  11891. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  11892. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  11893. fi
  11894. rm -f conftest.mmap conftest.txt
  11895. for ac_header in vfork.h
  11896. do :
  11897. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  11898. if test "x$ac_cv_header_vfork_h" = xyes; then :
  11899. cat >>confdefs.h <<_ACEOF
  11900. #define HAVE_VFORK_H 1
  11901. _ACEOF
  11902. fi
  11903. done
  11904. for ac_func in fork vfork
  11905. do :
  11906. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11907. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11908. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11909. cat >>confdefs.h <<_ACEOF
  11910. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11911. _ACEOF
  11912. fi
  11913. done
  11914. if test "x$ac_cv_func_fork" = xyes; then
  11915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  11916. $as_echo_n "checking for working fork... " >&6; }
  11917. if ${ac_cv_func_fork_works+:} false; then :
  11918. $as_echo_n "(cached) " >&6
  11919. else
  11920. if test "$cross_compiling" = yes; then :
  11921. ac_cv_func_fork_works=cross
  11922. else
  11923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11924. /* end confdefs.h. */
  11925. $ac_includes_default
  11926. int
  11927. main ()
  11928. {
  11929. /* By Ruediger Kuhlmann. */
  11930. return fork () < 0;
  11931. ;
  11932. return 0;
  11933. }
  11934. _ACEOF
  11935. if ac_fn_c_try_run "$LINENO"; then :
  11936. ac_cv_func_fork_works=yes
  11937. else
  11938. ac_cv_func_fork_works=no
  11939. fi
  11940. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11941. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11942. fi
  11943. fi
  11944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  11945. $as_echo "$ac_cv_func_fork_works" >&6; }
  11946. else
  11947. ac_cv_func_fork_works=$ac_cv_func_fork
  11948. fi
  11949. if test "x$ac_cv_func_fork_works" = xcross; then
  11950. case $host in
  11951. *-*-amigaos* | *-*-msdosdjgpp*)
  11952. # Override, as these systems have only a dummy fork() stub
  11953. ac_cv_func_fork_works=no
  11954. ;;
  11955. *)
  11956. ac_cv_func_fork_works=yes
  11957. ;;
  11958. esac
  11959. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  11960. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  11961. fi
  11962. ac_cv_func_vfork_works=$ac_cv_func_vfork
  11963. if test "x$ac_cv_func_vfork" = xyes; then
  11964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  11965. $as_echo_n "checking for working vfork... " >&6; }
  11966. if ${ac_cv_func_vfork_works+:} false; then :
  11967. $as_echo_n "(cached) " >&6
  11968. else
  11969. if test "$cross_compiling" = yes; then :
  11970. ac_cv_func_vfork_works=cross
  11971. else
  11972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11973. /* end confdefs.h. */
  11974. /* Thanks to Paul Eggert for this test. */
  11975. $ac_includes_default
  11976. #include <sys/wait.h>
  11977. #ifdef HAVE_VFORK_H
  11978. # include <vfork.h>
  11979. #endif
  11980. /* On some sparc systems, changes by the child to local and incoming
  11981. argument registers are propagated back to the parent. The compiler
  11982. is told about this with #include <vfork.h>, but some compilers
  11983. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  11984. static variable whose address is put into a register that is
  11985. clobbered by the vfork. */
  11986. static void
  11987. #ifdef __cplusplus
  11988. sparc_address_test (int arg)
  11989. # else
  11990. sparc_address_test (arg) int arg;
  11991. #endif
  11992. {
  11993. static pid_t child;
  11994. if (!child) {
  11995. child = vfork ();
  11996. if (child < 0) {
  11997. perror ("vfork");
  11998. _exit(2);
  11999. }
  12000. if (!child) {
  12001. arg = getpid();
  12002. write(-1, "", 0);
  12003. _exit (arg);
  12004. }
  12005. }
  12006. }
  12007. int
  12008. main ()
  12009. {
  12010. pid_t parent = getpid ();
  12011. pid_t child;
  12012. sparc_address_test (0);
  12013. child = vfork ();
  12014. if (child == 0) {
  12015. /* Here is another test for sparc vfork register problems. This
  12016. test uses lots of local variables, at least as many local
  12017. variables as main has allocated so far including compiler
  12018. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12019. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12020. reuse the register of parent for one of the local variables,
  12021. since it will think that parent can't possibly be used any more
  12022. in this routine. Assigning to the local variable will thus
  12023. munge parent in the parent process. */
  12024. pid_t
  12025. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12026. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12027. /* Convince the compiler that p..p7 are live; otherwise, it might
  12028. use the same hardware register for all 8 local variables. */
  12029. if (p != p1 || p != p2 || p != p3 || p != p4
  12030. || p != p5 || p != p6 || p != p7)
  12031. _exit(1);
  12032. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12033. from child file descriptors. If the child closes a descriptor
  12034. before it execs or exits, this munges the parent's descriptor
  12035. as well. Test for this by closing stdout in the child. */
  12036. _exit(close(fileno(stdout)) != 0);
  12037. } else {
  12038. int status;
  12039. struct stat st;
  12040. while (wait(&status) != child)
  12041. ;
  12042. return (
  12043. /* Was there some problem with vforking? */
  12044. child < 0
  12045. /* Did the child fail? (This shouldn't happen.) */
  12046. || status
  12047. /* Did the vfork/compiler bug occur? */
  12048. || parent != getpid()
  12049. /* Did the file descriptor bug occur? */
  12050. || fstat(fileno(stdout), &st) != 0
  12051. );
  12052. }
  12053. }
  12054. _ACEOF
  12055. if ac_fn_c_try_run "$LINENO"; then :
  12056. ac_cv_func_vfork_works=yes
  12057. else
  12058. ac_cv_func_vfork_works=no
  12059. fi
  12060. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12061. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12062. fi
  12063. fi
  12064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12065. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12066. fi;
  12067. if test "x$ac_cv_func_fork_works" = xcross; then
  12068. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12069. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12070. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12071. fi
  12072. if test "x$ac_cv_func_vfork_works" = xyes; then
  12073. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12074. else
  12075. $as_echo "#define vfork fork" >>confdefs.h
  12076. fi
  12077. if test "x$ac_cv_func_fork_works" = xyes; then
  12078. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12079. fi
  12080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
  12081. $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
  12082. if ${ac_cv_func_mbrtowc+:} false; then :
  12083. $as_echo_n "(cached) " >&6
  12084. else
  12085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12086. /* end confdefs.h. */
  12087. #include <wchar.h>
  12088. int
  12089. main ()
  12090. {
  12091. wchar_t wc;
  12092. char const s[] = "";
  12093. size_t n = 1;
  12094. mbstate_t state;
  12095. return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
  12096. ;
  12097. return 0;
  12098. }
  12099. _ACEOF
  12100. if ac_fn_c_try_link "$LINENO"; then :
  12101. ac_cv_func_mbrtowc=yes
  12102. else
  12103. ac_cv_func_mbrtowc=no
  12104. fi
  12105. rm -f core conftest.err conftest.$ac_objext \
  12106. conftest$ac_exeext conftest.$ac_ext
  12107. fi
  12108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
  12109. $as_echo "$ac_cv_func_mbrtowc" >&6; }
  12110. if test $ac_cv_func_mbrtowc = yes; then
  12111. $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
  12112. fi
  12113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
  12114. $as_echo_n "checking for gcc compiler warnings... " >&6; }
  12115. # Check whether --enable-warnings was given.
  12116. if test "${enable_warnings+set}" = set; then :
  12117. enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
  12118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12119. $as_echo "no" >&6; }
  12120. WARNINGS=
  12121. else
  12122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12123. $as_echo "yes" >&6; }
  12124. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  12125. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  12126. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  12127. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  12128. fi
  12129. else
  12130. if test "$GCC" = yes; then
  12131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12132. $as_echo "yes" >&6; }
  12133. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  12134. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  12135. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  12136. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  12137. else
  12138. WARNINGS=
  12139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12140. $as_echo "no" >&6; }
  12141. fi
  12142. fi
  12143. for ac_func in strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale setlocale
  12144. do :
  12145. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12146. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12147. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12148. cat >>confdefs.h <<_ACEOF
  12149. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12150. _ACEOF
  12151. fi
  12152. done
  12153. ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
  12154. if test "x$ac_cv_func_getopt_long" = xyes; then :
  12155. $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
  12156. else
  12157. case " $LIBOBJS " in
  12158. *" getopt_long.$ac_objext "* ) ;;
  12159. *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
  12160. ;;
  12161. esac
  12162. fi
  12163. ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
  12164. if test "x$ac_cv_func_asprintf" = xyes; then :
  12165. $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
  12166. else
  12167. case " $LIBOBJS " in
  12168. *" asprintf.$ac_objext "* ) ;;
  12169. *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
  12170. ;;
  12171. esac
  12172. fi
  12173. ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
  12174. if test "x$ac_cv_func_vasprintf" = xyes; then :
  12175. $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
  12176. else
  12177. case " $LIBOBJS " in
  12178. *" vasprintf.$ac_objext "* ) ;;
  12179. *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
  12180. ;;
  12181. esac
  12182. fi
  12183. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  12184. if test "x$ac_cv_func_strlcpy" = xyes; then :
  12185. $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
  12186. else
  12187. case " $LIBOBJS " in
  12188. *" strlcpy.$ac_objext "* ) ;;
  12189. *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
  12190. ;;
  12191. esac
  12192. fi
  12193. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  12194. if test "x$ac_cv_func_strlcat" = xyes; then :
  12195. $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
  12196. else
  12197. case " $LIBOBJS " in
  12198. *" strlcat.$ac_objext "* ) ;;
  12199. *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
  12200. ;;
  12201. esac
  12202. fi
  12203. ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
  12204. if test "x$ac_cv_func_getline" = xyes; then :
  12205. $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
  12206. else
  12207. case " $LIBOBJS " in
  12208. *" getline.$ac_objext "* ) ;;
  12209. *) LIBOBJS="$LIBOBJS getline.$ac_objext"
  12210. ;;
  12211. esac
  12212. fi
  12213. ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
  12214. if test "x$ac_cv_func_ctime_r" = xyes; then :
  12215. $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
  12216. else
  12217. case " $LIBOBJS " in
  12218. *" ctime_r.$ac_objext "* ) ;;
  12219. *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
  12220. ;;
  12221. esac
  12222. fi
  12223. ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  12224. if test "x$ac_cv_func_asctime_r" = xyes; then :
  12225. $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h
  12226. else
  12227. case " $LIBOBJS " in
  12228. *" asctime_r.$ac_objext "* ) ;;
  12229. *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
  12230. ;;
  12231. esac
  12232. fi
  12233. ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  12234. if test "x$ac_cv_func_localtime_r" = xyes; then :
  12235. $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
  12236. else
  12237. case " $LIBOBJS " in
  12238. *" localtime_r.$ac_objext "* ) ;;
  12239. *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
  12240. ;;
  12241. esac
  12242. fi
  12243. ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
  12244. if test "x$ac_cv_func_gmtime_r" = xyes; then :
  12245. $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
  12246. else
  12247. case " $LIBOBJS " in
  12248. *" gmtime_r.$ac_objext "* ) ;;
  12249. *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
  12250. ;;
  12251. esac
  12252. fi
  12253. ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
  12254. if test "x$ac_cv_func_pread" = xyes; then :
  12255. $as_echo "#define HAVE_PREAD 1" >>confdefs.h
  12256. else
  12257. case " $LIBOBJS " in
  12258. *" pread.$ac_objext "* ) ;;
  12259. *) LIBOBJS="$LIBOBJS pread.$ac_objext"
  12260. ;;
  12261. esac
  12262. fi
  12263. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  12264. if test "x$ac_cv_func_strcasestr" = xyes; then :
  12265. $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
  12266. else
  12267. case " $LIBOBJS " in
  12268. *" strcasestr.$ac_objext "* ) ;;
  12269. *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
  12270. ;;
  12271. esac
  12272. fi
  12273. ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
  12274. if test "x$ac_cv_func_fmtcheck" = xyes; then :
  12275. $as_echo "#define HAVE_FMTCHECK 1" >>confdefs.h
  12276. else
  12277. case " $LIBOBJS " in
  12278. *" fmtcheck.$ac_objext "* ) ;;
  12279. *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext"
  12280. ;;
  12281. esac
  12282. fi
  12283. ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
  12284. if test "x$ac_cv_func_dprintf" = xyes; then :
  12285. $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h
  12286. else
  12287. case " $LIBOBJS " in
  12288. *" dprintf.$ac_objext "* ) ;;
  12289. *) LIBOBJS="$LIBOBJS dprintf.$ac_objext"
  12290. ;;
  12291. esac
  12292. fi
  12293. if test "$enable_zlib" != "no"; then
  12294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
  12295. $as_echo_n "checking for gzopen in -lz... " >&6; }
  12296. if ${ac_cv_lib_z_gzopen+:} false; then :
  12297. $as_echo_n "(cached) " >&6
  12298. else
  12299. ac_check_lib_save_LIBS=$LIBS
  12300. LIBS="-lz $LIBS"
  12301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12302. /* end confdefs.h. */
  12303. /* Override any GCC internal prototype to avoid an error.
  12304. Use char because int might match the return type of a GCC
  12305. builtin and then its argument prototype would still apply. */
  12306. #ifdef __cplusplus
  12307. extern "C"
  12308. #endif
  12309. char gzopen ();
  12310. int
  12311. main ()
  12312. {
  12313. return gzopen ();
  12314. ;
  12315. return 0;
  12316. }
  12317. _ACEOF
  12318. if ac_fn_c_try_link "$LINENO"; then :
  12319. ac_cv_lib_z_gzopen=yes
  12320. else
  12321. ac_cv_lib_z_gzopen=no
  12322. fi
  12323. rm -f core conftest.err conftest.$ac_objext \
  12324. conftest$ac_exeext conftest.$ac_ext
  12325. LIBS=$ac_check_lib_save_LIBS
  12326. fi
  12327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
  12328. $as_echo "$ac_cv_lib_z_gzopen" >&6; }
  12329. if test "x$ac_cv_lib_z_gzopen" = xyes; then :
  12330. cat >>confdefs.h <<_ACEOF
  12331. #define HAVE_LIBZ 1
  12332. _ACEOF
  12333. LIBS="-lz $LIBS"
  12334. fi
  12335. fi
  12336. if test "$enable_libseccomp" != "no"; then
  12337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5
  12338. $as_echo_n "checking for seccomp_init in -lseccomp... " >&6; }
  12339. if ${ac_cv_lib_seccomp_seccomp_init+:} false; then :
  12340. $as_echo_n "(cached) " >&6
  12341. else
  12342. ac_check_lib_save_LIBS=$LIBS
  12343. LIBS="-lseccomp $LIBS"
  12344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12345. /* end confdefs.h. */
  12346. /* Override any GCC internal prototype to avoid an error.
  12347. Use char because int might match the return type of a GCC
  12348. builtin and then its argument prototype would still apply. */
  12349. #ifdef __cplusplus
  12350. extern "C"
  12351. #endif
  12352. char seccomp_init ();
  12353. int
  12354. main ()
  12355. {
  12356. return seccomp_init ();
  12357. ;
  12358. return 0;
  12359. }
  12360. _ACEOF
  12361. if ac_fn_c_try_link "$LINENO"; then :
  12362. ac_cv_lib_seccomp_seccomp_init=yes
  12363. else
  12364. ac_cv_lib_seccomp_seccomp_init=no
  12365. fi
  12366. rm -f core conftest.err conftest.$ac_objext \
  12367. conftest$ac_exeext conftest.$ac_ext
  12368. LIBS=$ac_check_lib_save_LIBS
  12369. fi
  12370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5
  12371. $as_echo "$ac_cv_lib_seccomp_seccomp_init" >&6; }
  12372. if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes; then :
  12373. cat >>confdefs.h <<_ACEOF
  12374. #define HAVE_LIBSECCOMP 1
  12375. _ACEOF
  12376. LIBS="-lseccomp $LIBS"
  12377. fi
  12378. fi
  12379. if test "$MINGW" = 1; then
  12380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
  12381. $as_echo_n "checking for regexec in -lgnurx... " >&6; }
  12382. if ${ac_cv_lib_gnurx_regexec+:} false; then :
  12383. $as_echo_n "(cached) " >&6
  12384. else
  12385. ac_check_lib_save_LIBS=$LIBS
  12386. LIBS="-lgnurx $LIBS"
  12387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12388. /* end confdefs.h. */
  12389. /* Override any GCC internal prototype to avoid an error.
  12390. Use char because int might match the return type of a GCC
  12391. builtin and then its argument prototype would still apply. */
  12392. #ifdef __cplusplus
  12393. extern "C"
  12394. #endif
  12395. char regexec ();
  12396. int
  12397. main ()
  12398. {
  12399. return regexec ();
  12400. ;
  12401. return 0;
  12402. }
  12403. _ACEOF
  12404. if ac_fn_c_try_link "$LINENO"; then :
  12405. ac_cv_lib_gnurx_regexec=yes
  12406. else
  12407. ac_cv_lib_gnurx_regexec=no
  12408. fi
  12409. rm -f core conftest.err conftest.$ac_objext \
  12410. conftest$ac_exeext conftest.$ac_ext
  12411. LIBS=$ac_check_lib_save_LIBS
  12412. fi
  12413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
  12414. $as_echo "$ac_cv_lib_gnurx_regexec" >&6; }
  12415. if test "x$ac_cv_lib_gnurx_regexec" = xyes; then :
  12416. cat >>confdefs.h <<_ACEOF
  12417. #define HAVE_LIBGNURX 1
  12418. _ACEOF
  12419. LIBS="-lgnurx $LIBS"
  12420. else
  12421. as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
  12422. fi
  12423. fi
  12424. if test "$cross_compiling" = yes; then
  12425. IS_CROSS_COMPILE_TRUE=
  12426. IS_CROSS_COMPILE_FALSE='#'
  12427. else
  12428. IS_CROSS_COMPILE_TRUE='#'
  12429. IS_CROSS_COMPILE_FALSE=
  12430. fi
  12431. if test "$enable_zlib" = "yes"; then
  12432. if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then
  12433. as_fn_error $? "zlib support requested but not found" "$LINENO" 5
  12434. fi
  12435. elif test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then
  12436. $as_echo "#define ZLIBSUPPORT 1" >>confdefs.h
  12437. fi
  12438. ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
  12439. cat >confcache <<\_ACEOF
  12440. # This file is a shell script that caches the results of configure
  12441. # tests run on this system so they can be shared between configure
  12442. # scripts and configure runs, see configure's option --config-cache.
  12443. # It is not useful on other systems. If it contains results you don't
  12444. # want to keep, you may remove or edit it.
  12445. #
  12446. # config.status only pays attention to the cache file if you give it
  12447. # the --recheck option to rerun configure.
  12448. #
  12449. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12450. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12451. # following values.
  12452. _ACEOF
  12453. # The following way of writing the cache mishandles newlines in values,
  12454. # but we know of no workaround that is simple, portable, and efficient.
  12455. # So, we kill variables containing newlines.
  12456. # Ultrix sh set writes to stderr and can't be redirected directly,
  12457. # and sets the high bit in the cache file unless we assign to the vars.
  12458. (
  12459. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12460. eval ac_val=\$$ac_var
  12461. case $ac_val in #(
  12462. *${as_nl}*)
  12463. case $ac_var in #(
  12464. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12465. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12466. esac
  12467. case $ac_var in #(
  12468. _ | IFS | as_nl) ;; #(
  12469. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12470. *) { eval $ac_var=; unset $ac_var;} ;;
  12471. esac ;;
  12472. esac
  12473. done
  12474. (set) 2>&1 |
  12475. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12476. *${as_nl}ac_space=\ *)
  12477. # `set' does not quote correctly, so add quotes: double-quote
  12478. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12479. sed -n \
  12480. "s/'/'\\\\''/g;
  12481. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12482. ;; #(
  12483. *)
  12484. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12485. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12486. ;;
  12487. esac |
  12488. sort
  12489. ) |
  12490. sed '
  12491. /^ac_cv_env_/b end
  12492. t clear
  12493. :clear
  12494. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12495. t end
  12496. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12497. :end' >>confcache
  12498. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12499. if test -w "$cache_file"; then
  12500. if test "x$cache_file" != "x/dev/null"; then
  12501. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12502. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12503. if test ! -f "$cache_file" || test -h "$cache_file"; then
  12504. cat confcache >"$cache_file"
  12505. else
  12506. case $cache_file in #(
  12507. */* | ?:*)
  12508. mv -f confcache "$cache_file"$$ &&
  12509. mv -f "$cache_file"$$ "$cache_file" ;; #(
  12510. *)
  12511. mv -f confcache "$cache_file" ;;
  12512. esac
  12513. fi
  12514. fi
  12515. else
  12516. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12517. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12518. fi
  12519. fi
  12520. rm -f confcache
  12521. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12522. # Let make expand exec_prefix.
  12523. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12524. DEFS=-DHAVE_CONFIG_H
  12525. ac_libobjs=
  12526. ac_ltlibobjs=
  12527. U=
  12528. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12529. # 1. Remove the extension, and $U if already installed.
  12530. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12531. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12532. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12533. # will be set to the directory where LIBOBJS objects are built.
  12534. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12535. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12536. done
  12537. LIBOBJS=$ac_libobjs
  12538. LTLIBOBJS=$ac_ltlibobjs
  12539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  12540. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  12541. if test -n "$am_sleep_pid"; then
  12542. # Hide warnings about reused PIDs.
  12543. wait $am_sleep_pid 2>/dev/null
  12544. fi
  12545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  12546. $as_echo "done" >&6; }
  12547. if test -n "$EXEEXT"; then
  12548. am__EXEEXT_TRUE=
  12549. am__EXEEXT_FALSE='#'
  12550. else
  12551. am__EXEEXT_TRUE='#'
  12552. am__EXEEXT_FALSE=
  12553. fi
  12554. if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
  12555. as_fn_error $? "conditional \"MINGW\" was never defined.
  12556. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12557. fi
  12558. if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
  12559. as_fn_error $? "conditional \"FSECT5\" was never defined.
  12560. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12561. fi
  12562. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12563. as_fn_error $? "conditional \"AMDEP\" was never defined.
  12564. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12565. fi
  12566. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12567. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  12568. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12569. fi
  12570. if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
  12571. as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
  12572. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12573. fi
  12574. : "${CONFIG_STATUS=./config.status}"
  12575. ac_write_fail=0
  12576. ac_clean_files_save=$ac_clean_files
  12577. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12578. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12579. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12580. as_write_fail=0
  12581. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12582. #! $SHELL
  12583. # Generated by $as_me.
  12584. # Run this file to recreate the current configuration.
  12585. # Compiler output produced by configure, useful for debugging
  12586. # configure, is in config.log if it exists.
  12587. debug=false
  12588. ac_cs_recheck=false
  12589. ac_cs_silent=false
  12590. SHELL=\${CONFIG_SHELL-$SHELL}
  12591. export SHELL
  12592. _ASEOF
  12593. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12594. ## -------------------- ##
  12595. ## M4sh Initialization. ##
  12596. ## -------------------- ##
  12597. # Be more Bourne compatible
  12598. DUALCASE=1; export DUALCASE # for MKS sh
  12599. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12600. emulate sh
  12601. NULLCMD=:
  12602. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12603. # is contrary to our usage. Disable this feature.
  12604. alias -g '${1+"$@"}'='"$@"'
  12605. setopt NO_GLOB_SUBST
  12606. else
  12607. case `(set -o) 2>/dev/null` in #(
  12608. *posix*) :
  12609. set -o posix ;; #(
  12610. *) :
  12611. ;;
  12612. esac
  12613. fi
  12614. as_nl='
  12615. '
  12616. export as_nl
  12617. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12618. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12619. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12620. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12621. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12622. # but without wasting forks for bash or zsh.
  12623. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12624. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12625. as_echo='print -r --'
  12626. as_echo_n='print -rn --'
  12627. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12628. as_echo='printf %s\n'
  12629. as_echo_n='printf %s'
  12630. else
  12631. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12632. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12633. as_echo_n='/usr/ucb/echo -n'
  12634. else
  12635. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12636. as_echo_n_body='eval
  12637. arg=$1;
  12638. case $arg in #(
  12639. *"$as_nl"*)
  12640. expr "X$arg" : "X\\(.*\\)$as_nl";
  12641. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12642. esac;
  12643. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12644. '
  12645. export as_echo_n_body
  12646. as_echo_n='sh -c $as_echo_n_body as_echo'
  12647. fi
  12648. export as_echo_body
  12649. as_echo='sh -c $as_echo_body as_echo'
  12650. fi
  12651. # The user is always right.
  12652. if test "${PATH_SEPARATOR+set}" != set; then
  12653. PATH_SEPARATOR=:
  12654. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12655. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12656. PATH_SEPARATOR=';'
  12657. }
  12658. fi
  12659. # IFS
  12660. # We need space, tab and new line, in precisely that order. Quoting is
  12661. # there to prevent editors from complaining about space-tab.
  12662. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12663. # splitting by setting IFS to empty value.)
  12664. IFS=" "" $as_nl"
  12665. # Find who we are. Look in the path if we contain no directory separator.
  12666. as_myself=
  12667. case $0 in #((
  12668. *[\\/]* ) as_myself=$0 ;;
  12669. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12670. for as_dir in $PATH
  12671. do
  12672. IFS=$as_save_IFS
  12673. test -z "$as_dir" && as_dir=.
  12674. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12675. done
  12676. IFS=$as_save_IFS
  12677. ;;
  12678. esac
  12679. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12680. # in which case we are not to be found in the path.
  12681. if test "x$as_myself" = x; then
  12682. as_myself=$0
  12683. fi
  12684. if test ! -f "$as_myself"; then
  12685. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12686. exit 1
  12687. fi
  12688. # Unset variables that we do not need and which cause bugs (e.g. in
  12689. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12690. # suppresses any "Segmentation fault" message there. '((' could
  12691. # trigger a bug in pdksh 5.2.14.
  12692. for as_var in BASH_ENV ENV MAIL MAILPATH
  12693. do eval test x\${$as_var+set} = xset \
  12694. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12695. done
  12696. PS1='$ '
  12697. PS2='> '
  12698. PS4='+ '
  12699. # NLS nuisances.
  12700. LC_ALL=C
  12701. export LC_ALL
  12702. LANGUAGE=C
  12703. export LANGUAGE
  12704. # CDPATH.
  12705. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12706. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  12707. # ----------------------------------------
  12708. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12709. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12710. # script with STATUS, using 1 if that was 0.
  12711. as_fn_error ()
  12712. {
  12713. as_status=$1; test $as_status -eq 0 && as_status=1
  12714. if test "$4"; then
  12715. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12716. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  12717. fi
  12718. $as_echo "$as_me: error: $2" >&2
  12719. as_fn_exit $as_status
  12720. } # as_fn_error
  12721. # as_fn_set_status STATUS
  12722. # -----------------------
  12723. # Set $? to STATUS, without forking.
  12724. as_fn_set_status ()
  12725. {
  12726. return $1
  12727. } # as_fn_set_status
  12728. # as_fn_exit STATUS
  12729. # -----------------
  12730. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12731. as_fn_exit ()
  12732. {
  12733. set +e
  12734. as_fn_set_status $1
  12735. exit $1
  12736. } # as_fn_exit
  12737. # as_fn_unset VAR
  12738. # ---------------
  12739. # Portably unset VAR.
  12740. as_fn_unset ()
  12741. {
  12742. { eval $1=; unset $1;}
  12743. }
  12744. as_unset=as_fn_unset
  12745. # as_fn_append VAR VALUE
  12746. # ----------------------
  12747. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12748. # advantage of any shell optimizations that allow amortized linear growth over
  12749. # repeated appends, instead of the typical quadratic growth present in naive
  12750. # implementations.
  12751. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12752. eval 'as_fn_append ()
  12753. {
  12754. eval $1+=\$2
  12755. }'
  12756. else
  12757. as_fn_append ()
  12758. {
  12759. eval $1=\$$1\$2
  12760. }
  12761. fi # as_fn_append
  12762. # as_fn_arith ARG...
  12763. # ------------------
  12764. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12765. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12766. # must be portable across $(()) and expr.
  12767. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12768. eval 'as_fn_arith ()
  12769. {
  12770. as_val=$(( $* ))
  12771. }'
  12772. else
  12773. as_fn_arith ()
  12774. {
  12775. as_val=`expr "$@" || test $? -eq 1`
  12776. }
  12777. fi # as_fn_arith
  12778. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12779. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12780. as_expr=expr
  12781. else
  12782. as_expr=false
  12783. fi
  12784. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12785. as_basename=basename
  12786. else
  12787. as_basename=false
  12788. fi
  12789. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12790. as_dirname=dirname
  12791. else
  12792. as_dirname=false
  12793. fi
  12794. as_me=`$as_basename -- "$0" ||
  12795. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12796. X"$0" : 'X\(//\)$' \| \
  12797. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12798. $as_echo X/"$0" |
  12799. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12800. s//\1/
  12801. q
  12802. }
  12803. /^X\/\(\/\/\)$/{
  12804. s//\1/
  12805. q
  12806. }
  12807. /^X\/\(\/\).*/{
  12808. s//\1/
  12809. q
  12810. }
  12811. s/.*/./; q'`
  12812. # Avoid depending upon Character Ranges.
  12813. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12814. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12815. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12816. as_cr_digits='0123456789'
  12817. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12818. ECHO_C= ECHO_N= ECHO_T=
  12819. case `echo -n x` in #(((((
  12820. -n*)
  12821. case `echo 'xy\c'` in
  12822. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12823. xy) ECHO_C='\c';;
  12824. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12825. ECHO_T=' ';;
  12826. esac;;
  12827. *)
  12828. ECHO_N='-n';;
  12829. esac
  12830. rm -f conf$$ conf$$.exe conf$$.file
  12831. if test -d conf$$.dir; then
  12832. rm -f conf$$.dir/conf$$.file
  12833. else
  12834. rm -f conf$$.dir
  12835. mkdir conf$$.dir 2>/dev/null
  12836. fi
  12837. if (echo >conf$$.file) 2>/dev/null; then
  12838. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12839. as_ln_s='ln -s'
  12840. # ... but there are two gotchas:
  12841. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12842. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12843. # In both cases, we have to default to `cp -pR'.
  12844. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12845. as_ln_s='cp -pR'
  12846. elif ln conf$$.file conf$$ 2>/dev/null; then
  12847. as_ln_s=ln
  12848. else
  12849. as_ln_s='cp -pR'
  12850. fi
  12851. else
  12852. as_ln_s='cp -pR'
  12853. fi
  12854. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12855. rmdir conf$$.dir 2>/dev/null
  12856. # as_fn_mkdir_p
  12857. # -------------
  12858. # Create "$as_dir" as a directory, including parents if necessary.
  12859. as_fn_mkdir_p ()
  12860. {
  12861. case $as_dir in #(
  12862. -*) as_dir=./$as_dir;;
  12863. esac
  12864. test -d "$as_dir" || eval $as_mkdir_p || {
  12865. as_dirs=
  12866. while :; do
  12867. case $as_dir in #(
  12868. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12869. *) as_qdir=$as_dir;;
  12870. esac
  12871. as_dirs="'$as_qdir' $as_dirs"
  12872. as_dir=`$as_dirname -- "$as_dir" ||
  12873. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12874. X"$as_dir" : 'X\(//\)[^/]' \| \
  12875. X"$as_dir" : 'X\(//\)$' \| \
  12876. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12877. $as_echo X"$as_dir" |
  12878. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12879. s//\1/
  12880. q
  12881. }
  12882. /^X\(\/\/\)[^/].*/{
  12883. s//\1/
  12884. q
  12885. }
  12886. /^X\(\/\/\)$/{
  12887. s//\1/
  12888. q
  12889. }
  12890. /^X\(\/\).*/{
  12891. s//\1/
  12892. q
  12893. }
  12894. s/.*/./; q'`
  12895. test -d "$as_dir" && break
  12896. done
  12897. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12898. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  12899. } # as_fn_mkdir_p
  12900. if mkdir -p . 2>/dev/null; then
  12901. as_mkdir_p='mkdir -p "$as_dir"'
  12902. else
  12903. test -d ./-p && rmdir ./-p
  12904. as_mkdir_p=false
  12905. fi
  12906. # as_fn_executable_p FILE
  12907. # -----------------------
  12908. # Test if FILE is an executable regular file.
  12909. as_fn_executable_p ()
  12910. {
  12911. test -f "$1" && test -x "$1"
  12912. } # as_fn_executable_p
  12913. as_test_x='test -x'
  12914. as_executable_p=as_fn_executable_p
  12915. # Sed expression to map a string onto a valid CPP name.
  12916. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12917. # Sed expression to map a string onto a valid variable name.
  12918. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12919. exec 6>&1
  12920. ## ----------------------------------- ##
  12921. ## Main body of $CONFIG_STATUS script. ##
  12922. ## ----------------------------------- ##
  12923. _ASEOF
  12924. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12925. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12926. # Save the log message, to keep $0 and so on meaningful, and to
  12927. # report actual input values of CONFIG_FILES etc. instead of their
  12928. # values after options handling.
  12929. ac_log="
  12930. This file was extended by file $as_me 5.33, which was
  12931. generated by GNU Autoconf 2.69. Invocation command line was
  12932. CONFIG_FILES = $CONFIG_FILES
  12933. CONFIG_HEADERS = $CONFIG_HEADERS
  12934. CONFIG_LINKS = $CONFIG_LINKS
  12935. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12936. $ $0 $@
  12937. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12938. "
  12939. _ACEOF
  12940. case $ac_config_files in *"
  12941. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12942. esac
  12943. case $ac_config_headers in *"
  12944. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12945. esac
  12946. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12947. # Files that config.status was made for.
  12948. config_files="$ac_config_files"
  12949. config_headers="$ac_config_headers"
  12950. config_commands="$ac_config_commands"
  12951. _ACEOF
  12952. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12953. ac_cs_usage="\
  12954. \`$as_me' instantiates files and other configuration actions
  12955. from templates according to the current configuration. Unless the files
  12956. and actions are specified as TAGs, all are instantiated by default.
  12957. Usage: $0 [OPTION]... [TAG]...
  12958. -h, --help print this help, then exit
  12959. -V, --version print version number and configuration settings, then exit
  12960. --config print configuration, then exit
  12961. -q, --quiet, --silent
  12962. do not print progress messages
  12963. -d, --debug don't remove temporary files
  12964. --recheck update $as_me by reconfiguring in the same conditions
  12965. --file=FILE[:TEMPLATE]
  12966. instantiate the configuration file FILE
  12967. --header=FILE[:TEMPLATE]
  12968. instantiate the configuration header FILE
  12969. Configuration files:
  12970. $config_files
  12971. Configuration headers:
  12972. $config_headers
  12973. Configuration commands:
  12974. $config_commands
  12975. Report bugs to <christos@astron.com>."
  12976. _ACEOF
  12977. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12978. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  12979. ac_cs_version="\\
  12980. file config.status 5.33
  12981. configured by $0, generated by GNU Autoconf 2.69,
  12982. with options \\"\$ac_cs_config\\"
  12983. Copyright (C) 2012 Free Software Foundation, Inc.
  12984. This config.status script is free software; the Free Software Foundation
  12985. gives unlimited permission to copy, distribute and modify it."
  12986. ac_pwd='$ac_pwd'
  12987. srcdir='$srcdir'
  12988. INSTALL='$INSTALL'
  12989. MKDIR_P='$MKDIR_P'
  12990. AWK='$AWK'
  12991. test -n "\$AWK" || AWK=awk
  12992. _ACEOF
  12993. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12994. # The default lists apply if the user does not specify any file.
  12995. ac_need_defaults=:
  12996. while test $# != 0
  12997. do
  12998. case $1 in
  12999. --*=?*)
  13000. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13001. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13002. ac_shift=:
  13003. ;;
  13004. --*=)
  13005. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13006. ac_optarg=
  13007. ac_shift=:
  13008. ;;
  13009. *)
  13010. ac_option=$1
  13011. ac_optarg=$2
  13012. ac_shift=shift
  13013. ;;
  13014. esac
  13015. case $ac_option in
  13016. # Handling of the options.
  13017. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13018. ac_cs_recheck=: ;;
  13019. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13020. $as_echo "$ac_cs_version"; exit ;;
  13021. --config | --confi | --conf | --con | --co | --c )
  13022. $as_echo "$ac_cs_config"; exit ;;
  13023. --debug | --debu | --deb | --de | --d | -d )
  13024. debug=: ;;
  13025. --file | --fil | --fi | --f )
  13026. $ac_shift
  13027. case $ac_optarg in
  13028. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13029. '') as_fn_error $? "missing file argument" ;;
  13030. esac
  13031. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13032. ac_need_defaults=false;;
  13033. --header | --heade | --head | --hea )
  13034. $ac_shift
  13035. case $ac_optarg in
  13036. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13037. esac
  13038. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13039. ac_need_defaults=false;;
  13040. --he | --h)
  13041. # Conflict between --help and --header
  13042. as_fn_error $? "ambiguous option: \`$1'
  13043. Try \`$0 --help' for more information.";;
  13044. --help | --hel | -h )
  13045. $as_echo "$ac_cs_usage"; exit ;;
  13046. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13047. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13048. ac_cs_silent=: ;;
  13049. # This is an error.
  13050. -*) as_fn_error $? "unrecognized option: \`$1'
  13051. Try \`$0 --help' for more information." ;;
  13052. *) as_fn_append ac_config_targets " $1"
  13053. ac_need_defaults=false ;;
  13054. esac
  13055. shift
  13056. done
  13057. ac_configure_extra_args=
  13058. if $ac_cs_silent; then
  13059. exec 6>/dev/null
  13060. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13061. fi
  13062. _ACEOF
  13063. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13064. if \$ac_cs_recheck; then
  13065. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13066. shift
  13067. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13068. CONFIG_SHELL='$SHELL'
  13069. export CONFIG_SHELL
  13070. exec "\$@"
  13071. fi
  13072. _ACEOF
  13073. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13074. exec 5>>config.log
  13075. {
  13076. echo
  13077. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13078. ## Running $as_me. ##
  13079. _ASBOX
  13080. $as_echo "$ac_log"
  13081. } >&5
  13082. _ACEOF
  13083. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13084. #
  13085. # INIT-COMMANDS
  13086. #
  13087. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13088. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13089. # if CDPATH is set.
  13090. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13091. sed_quote_subst='$sed_quote_subst'
  13092. double_quote_subst='$double_quote_subst'
  13093. delay_variable_subst='$delay_variable_subst'
  13094. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13095. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13096. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13097. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13098. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13099. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13100. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13101. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13102. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  13103. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13104. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13105. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13106. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13107. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13108. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13109. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13110. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13111. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13112. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13113. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13114. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13115. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13116. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13117. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13118. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13119. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13120. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13121. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13122. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13123. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  13124. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  13125. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13126. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13127. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13128. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13129. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13130. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  13131. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  13132. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  13133. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  13134. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13135. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13136. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  13137. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13138. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13139. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13140. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13141. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13142. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13143. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13144. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13145. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13146. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13147. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13148. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13149. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13150. 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"`'
  13151. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  13152. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  13153. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13154. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13155. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13156. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13157. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13158. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13159. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13160. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13161. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  13162. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13163. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13164. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13165. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13166. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13167. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13168. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13169. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13170. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13171. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13172. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13173. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13174. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13175. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13176. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13177. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13178. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13179. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13180. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13181. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13182. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13183. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13184. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13185. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13186. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13187. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13188. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13189. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13190. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13191. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13192. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13193. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13194. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13195. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13196. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13197. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13198. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  13199. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13200. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13201. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13202. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13203. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13204. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13205. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13206. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13207. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13208. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13209. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13210. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13211. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13212. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13213. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13214. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13215. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13216. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13217. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  13218. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13219. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13220. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13221. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13222. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13223. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13224. LTCC='$LTCC'
  13225. LTCFLAGS='$LTCFLAGS'
  13226. compiler='$compiler_DEFAULT'
  13227. # A function that is used when there is no print builtin or printf.
  13228. func_fallback_echo ()
  13229. {
  13230. eval 'cat <<_LTECHO_EOF
  13231. \$1
  13232. _LTECHO_EOF'
  13233. }
  13234. # Quote evaled strings.
  13235. for var in SHELL \
  13236. ECHO \
  13237. PATH_SEPARATOR \
  13238. SED \
  13239. GREP \
  13240. EGREP \
  13241. FGREP \
  13242. LD \
  13243. NM \
  13244. LN_S \
  13245. lt_SP2NL \
  13246. lt_NL2SP \
  13247. reload_flag \
  13248. OBJDUMP \
  13249. deplibs_check_method \
  13250. file_magic_cmd \
  13251. file_magic_glob \
  13252. want_nocaseglob \
  13253. DLLTOOL \
  13254. sharedlib_from_linklib_cmd \
  13255. AR \
  13256. AR_FLAGS \
  13257. archiver_list_spec \
  13258. STRIP \
  13259. RANLIB \
  13260. CC \
  13261. CFLAGS \
  13262. compiler \
  13263. lt_cv_sys_global_symbol_pipe \
  13264. lt_cv_sys_global_symbol_to_cdecl \
  13265. lt_cv_sys_global_symbol_to_c_name_address \
  13266. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13267. nm_file_list_spec \
  13268. lt_prog_compiler_no_builtin_flag \
  13269. lt_prog_compiler_pic \
  13270. lt_prog_compiler_wl \
  13271. lt_prog_compiler_static \
  13272. lt_cv_prog_compiler_c_o \
  13273. need_locks \
  13274. MANIFEST_TOOL \
  13275. DSYMUTIL \
  13276. NMEDIT \
  13277. LIPO \
  13278. OTOOL \
  13279. OTOOL64 \
  13280. shrext_cmds \
  13281. export_dynamic_flag_spec \
  13282. whole_archive_flag_spec \
  13283. compiler_needs_object \
  13284. with_gnu_ld \
  13285. allow_undefined_flag \
  13286. no_undefined_flag \
  13287. hardcode_libdir_flag_spec \
  13288. hardcode_libdir_separator \
  13289. exclude_expsyms \
  13290. include_expsyms \
  13291. file_list_spec \
  13292. variables_saved_for_relink \
  13293. libname_spec \
  13294. library_names_spec \
  13295. soname_spec \
  13296. install_override_mode \
  13297. finish_eval \
  13298. old_striplib \
  13299. striplib; do
  13300. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13301. *[\\\\\\\`\\"\\\$]*)
  13302. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13303. ;;
  13304. *)
  13305. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13306. ;;
  13307. esac
  13308. done
  13309. # Double-quote double-evaled strings.
  13310. for var in reload_cmds \
  13311. old_postinstall_cmds \
  13312. old_postuninstall_cmds \
  13313. old_archive_cmds \
  13314. extract_expsyms_cmds \
  13315. old_archive_from_new_cmds \
  13316. old_archive_from_expsyms_cmds \
  13317. archive_cmds \
  13318. archive_expsym_cmds \
  13319. module_cmds \
  13320. module_expsym_cmds \
  13321. export_symbols_cmds \
  13322. prelink_cmds \
  13323. postlink_cmds \
  13324. postinstall_cmds \
  13325. postuninstall_cmds \
  13326. finish_cmds \
  13327. sys_lib_search_path_spec \
  13328. sys_lib_dlsearch_path_spec; do
  13329. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13330. *[\\\\\\\`\\"\\\$]*)
  13331. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13332. ;;
  13333. *)
  13334. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13335. ;;
  13336. esac
  13337. done
  13338. ac_aux_dir='$ac_aux_dir'
  13339. xsi_shell='$xsi_shell'
  13340. lt_shell_append='$lt_shell_append'
  13341. # See if we are running on zsh, and set the options which allow our
  13342. # commands through without removal of \ escapes INIT.
  13343. if test -n "\${ZSH_VERSION+set}" ; then
  13344. setopt NO_GLOB_SUBST
  13345. fi
  13346. PACKAGE='$PACKAGE'
  13347. VERSION='$VERSION'
  13348. TIMESTAMP='$TIMESTAMP'
  13349. RM='$RM'
  13350. ofile='$ofile'
  13351. _ACEOF
  13352. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13353. # Handling of arguments.
  13354. for ac_config_target in $ac_config_targets
  13355. do
  13356. case $ac_config_target in
  13357. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  13358. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13359. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13360. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13361. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  13362. "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
  13363. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  13364. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  13365. "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  13366. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13367. esac
  13368. done
  13369. # If the user did not use the arguments to specify the items to instantiate,
  13370. # then the envvar interface is used. Set only those that are not.
  13371. # We use the long form for the default assignment because of an extremely
  13372. # bizarre bug on SunOS 4.1.3.
  13373. if $ac_need_defaults; then
  13374. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13375. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13376. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13377. fi
  13378. # Have a temporary directory for convenience. Make it in the build tree
  13379. # simply because there is no reason against having it here, and in addition,
  13380. # creating and moving files from /tmp can sometimes cause problems.
  13381. # Hook for its removal unless debugging.
  13382. # Note that there is a small window in which the directory will not be cleaned:
  13383. # after its creation but before its name has been assigned to `$tmp'.
  13384. $debug ||
  13385. {
  13386. tmp= ac_tmp=
  13387. trap 'exit_status=$?
  13388. : "${ac_tmp:=$tmp}"
  13389. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  13390. ' 0
  13391. trap 'as_fn_exit 1' 1 2 13 15
  13392. }
  13393. # Create a (secure) tmp directory for tmp files.
  13394. {
  13395. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13396. test -d "$tmp"
  13397. } ||
  13398. {
  13399. tmp=./conf$$-$RANDOM
  13400. (umask 077 && mkdir "$tmp")
  13401. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  13402. ac_tmp=$tmp
  13403. # Set up the scripts for CONFIG_FILES section.
  13404. # No need to generate them if there are no CONFIG_FILES.
  13405. # This happens for instance with `./config.status config.h'.
  13406. if test -n "$CONFIG_FILES"; then
  13407. ac_cr=`echo X | tr X '\015'`
  13408. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13409. # But we know of no other shell where ac_cr would be empty at this
  13410. # point, so we can use a bashism as a fallback.
  13411. if test "x$ac_cr" = x; then
  13412. eval ac_cr=\$\'\\r\'
  13413. fi
  13414. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13415. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13416. ac_cs_awk_cr='\\r'
  13417. else
  13418. ac_cs_awk_cr=$ac_cr
  13419. fi
  13420. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  13421. _ACEOF
  13422. {
  13423. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13424. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13425. echo "_ACEOF"
  13426. } >conf$$subs.sh ||
  13427. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13428. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  13429. ac_delim='%!_!# '
  13430. for ac_last_try in false false false false false :; do
  13431. . ./conf$$subs.sh ||
  13432. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13433. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13434. if test $ac_delim_n = $ac_delim_num; then
  13435. break
  13436. elif $ac_last_try; then
  13437. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13438. else
  13439. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13440. fi
  13441. done
  13442. rm -f conf$$subs.sh
  13443. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13444. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  13445. _ACEOF
  13446. sed -n '
  13447. h
  13448. s/^/S["/; s/!.*/"]=/
  13449. p
  13450. g
  13451. s/^[^!]*!//
  13452. :repl
  13453. t repl
  13454. s/'"$ac_delim"'$//
  13455. t delim
  13456. :nl
  13457. h
  13458. s/\(.\{148\}\)..*/\1/
  13459. t more1
  13460. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13461. p
  13462. n
  13463. b repl
  13464. :more1
  13465. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13466. p
  13467. g
  13468. s/.\{148\}//
  13469. t nl
  13470. :delim
  13471. h
  13472. s/\(.\{148\}\)..*/\1/
  13473. t more2
  13474. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13475. p
  13476. b
  13477. :more2
  13478. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13479. p
  13480. g
  13481. s/.\{148\}//
  13482. t delim
  13483. ' <conf$$subs.awk | sed '
  13484. /^[^""]/{
  13485. N
  13486. s/\n//
  13487. }
  13488. ' >>$CONFIG_STATUS || ac_write_fail=1
  13489. rm -f conf$$subs.awk
  13490. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13491. _ACAWK
  13492. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  13493. for (key in S) S_is_set[key] = 1
  13494. FS = ""
  13495. }
  13496. {
  13497. line = $ 0
  13498. nfields = split(line, field, "@")
  13499. substed = 0
  13500. len = length(field[1])
  13501. for (i = 2; i < nfields; i++) {
  13502. key = field[i]
  13503. keylen = length(key)
  13504. if (S_is_set[key]) {
  13505. value = S[key]
  13506. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13507. len += length(value) + length(field[++i])
  13508. substed = 1
  13509. } else
  13510. len += 1 + keylen
  13511. }
  13512. print line
  13513. }
  13514. _ACAWK
  13515. _ACEOF
  13516. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13517. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13518. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13519. else
  13520. cat
  13521. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  13522. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  13523. _ACEOF
  13524. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  13525. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  13526. # trailing colons and then remove the whole line if VPATH becomes empty
  13527. # (actually we leave an empty line to preserve line numbers).
  13528. if test "x$srcdir" = x.; then
  13529. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  13530. h
  13531. s///
  13532. s/^/:/
  13533. s/[ ]*$/:/
  13534. s/:\$(srcdir):/:/g
  13535. s/:\${srcdir}:/:/g
  13536. s/:@srcdir@:/:/g
  13537. s/^:*//
  13538. s/:*$//
  13539. x
  13540. s/\(=[ ]*\).*/\1/
  13541. G
  13542. s/\n//
  13543. s/^[^=]*=[ ]*$//
  13544. }'
  13545. fi
  13546. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13547. fi # test -n "$CONFIG_FILES"
  13548. # Set up the scripts for CONFIG_HEADERS section.
  13549. # No need to generate them if there are no CONFIG_HEADERS.
  13550. # This happens for instance with `./config.status Makefile'.
  13551. if test -n "$CONFIG_HEADERS"; then
  13552. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  13553. BEGIN {
  13554. _ACEOF
  13555. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13556. # here-document in config.status, that substitutes the proper values into
  13557. # config.h.in to produce config.h.
  13558. # Create a delimiter string that does not exist in confdefs.h, to ease
  13559. # handling of long lines.
  13560. ac_delim='%!_!# '
  13561. for ac_last_try in false false :; do
  13562. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  13563. if test -z "$ac_tt"; then
  13564. break
  13565. elif $ac_last_try; then
  13566. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  13567. else
  13568. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13569. fi
  13570. done
  13571. # For the awk script, D is an array of macro values keyed by name,
  13572. # likewise P contains macro parameters if any. Preserve backslash
  13573. # newline sequences.
  13574. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13575. sed -n '
  13576. s/.\{148\}/&'"$ac_delim"'/g
  13577. t rset
  13578. :rset
  13579. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13580. t def
  13581. d
  13582. :def
  13583. s/\\$//
  13584. t bsnl
  13585. s/["\\]/\\&/g
  13586. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13587. D["\1"]=" \3"/p
  13588. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13589. d
  13590. :bsnl
  13591. s/["\\]/\\&/g
  13592. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13593. D["\1"]=" \3\\\\\\n"\\/p
  13594. t cont
  13595. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13596. t cont
  13597. d
  13598. :cont
  13599. n
  13600. s/.\{148\}/&'"$ac_delim"'/g
  13601. t clear
  13602. :clear
  13603. s/\\$//
  13604. t bsnlc
  13605. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13606. d
  13607. :bsnlc
  13608. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13609. b cont
  13610. ' <confdefs.h | sed '
  13611. s/'"$ac_delim"'/"\\\
  13612. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13613. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13614. for (key in D) D_is_set[key] = 1
  13615. FS = ""
  13616. }
  13617. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13618. line = \$ 0
  13619. split(line, arg, " ")
  13620. if (arg[1] == "#") {
  13621. defundef = arg[2]
  13622. mac1 = arg[3]
  13623. } else {
  13624. defundef = substr(arg[1], 2)
  13625. mac1 = arg[2]
  13626. }
  13627. split(mac1, mac2, "(") #)
  13628. macro = mac2[1]
  13629. prefix = substr(line, 1, index(line, defundef) - 1)
  13630. if (D_is_set[macro]) {
  13631. # Preserve the white space surrounding the "#".
  13632. print prefix "define", macro P[macro] D[macro]
  13633. next
  13634. } else {
  13635. # Replace #undef with comments. This is necessary, for example,
  13636. # in the case of _POSIX_SOURCE, which is predefined and required
  13637. # on some systems where configure will not decide to define it.
  13638. if (defundef == "undef") {
  13639. print "/*", prefix defundef, macro, "*/"
  13640. next
  13641. }
  13642. }
  13643. }
  13644. { print }
  13645. _ACAWK
  13646. _ACEOF
  13647. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13648. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  13649. fi # test -n "$CONFIG_HEADERS"
  13650. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13651. shift
  13652. for ac_tag
  13653. do
  13654. case $ac_tag in
  13655. :[FHLC]) ac_mode=$ac_tag; continue;;
  13656. esac
  13657. case $ac_mode$ac_tag in
  13658. :[FHL]*:*);;
  13659. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13660. :[FH]-) ac_tag=-:-;;
  13661. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13662. esac
  13663. ac_save_IFS=$IFS
  13664. IFS=:
  13665. set x $ac_tag
  13666. IFS=$ac_save_IFS
  13667. shift
  13668. ac_file=$1
  13669. shift
  13670. case $ac_mode in
  13671. :L) ac_source=$1;;
  13672. :[FH])
  13673. ac_file_inputs=
  13674. for ac_f
  13675. do
  13676. case $ac_f in
  13677. -) ac_f="$ac_tmp/stdin";;
  13678. *) # Look for the file first in the build tree, then in the source tree
  13679. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13680. # because $ac_f cannot contain `:'.
  13681. test -f "$ac_f" ||
  13682. case $ac_f in
  13683. [\\/$]*) false;;
  13684. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13685. esac ||
  13686. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13687. esac
  13688. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13689. as_fn_append ac_file_inputs " '$ac_f'"
  13690. done
  13691. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13692. # use $as_me), people would be surprised to read:
  13693. # /* config.h. Generated by config.status. */
  13694. configure_input='Generated from '`
  13695. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13696. `' by configure.'
  13697. if test x"$ac_file" != x-; then
  13698. configure_input="$ac_file. $configure_input"
  13699. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13700. $as_echo "$as_me: creating $ac_file" >&6;}
  13701. fi
  13702. # Neutralize special characters interpreted by sed in replacement strings.
  13703. case $configure_input in #(
  13704. *\&* | *\|* | *\\* )
  13705. ac_sed_conf_input=`$as_echo "$configure_input" |
  13706. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13707. *) ac_sed_conf_input=$configure_input;;
  13708. esac
  13709. case $ac_tag in
  13710. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  13711. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  13712. esac
  13713. ;;
  13714. esac
  13715. ac_dir=`$as_dirname -- "$ac_file" ||
  13716. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13717. X"$ac_file" : 'X\(//\)[^/]' \| \
  13718. X"$ac_file" : 'X\(//\)$' \| \
  13719. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13720. $as_echo X"$ac_file" |
  13721. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13722. s//\1/
  13723. q
  13724. }
  13725. /^X\(\/\/\)[^/].*/{
  13726. s//\1/
  13727. q
  13728. }
  13729. /^X\(\/\/\)$/{
  13730. s//\1/
  13731. q
  13732. }
  13733. /^X\(\/\).*/{
  13734. s//\1/
  13735. q
  13736. }
  13737. s/.*/./; q'`
  13738. as_dir="$ac_dir"; as_fn_mkdir_p
  13739. ac_builddir=.
  13740. case "$ac_dir" in
  13741. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13742. *)
  13743. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13744. # A ".." for each directory in $ac_dir_suffix.
  13745. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13746. case $ac_top_builddir_sub in
  13747. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13748. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13749. esac ;;
  13750. esac
  13751. ac_abs_top_builddir=$ac_pwd
  13752. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13753. # for backward compatibility:
  13754. ac_top_builddir=$ac_top_build_prefix
  13755. case $srcdir in
  13756. .) # We are building in place.
  13757. ac_srcdir=.
  13758. ac_top_srcdir=$ac_top_builddir_sub
  13759. ac_abs_top_srcdir=$ac_pwd ;;
  13760. [\\/]* | ?:[\\/]* ) # Absolute name.
  13761. ac_srcdir=$srcdir$ac_dir_suffix;
  13762. ac_top_srcdir=$srcdir
  13763. ac_abs_top_srcdir=$srcdir ;;
  13764. *) # Relative name.
  13765. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13766. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13767. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13768. esac
  13769. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13770. case $ac_mode in
  13771. :F)
  13772. #
  13773. # CONFIG_FILE
  13774. #
  13775. case $INSTALL in
  13776. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13777. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13778. esac
  13779. ac_MKDIR_P=$MKDIR_P
  13780. case $MKDIR_P in
  13781. [\\/$]* | ?:[\\/]* ) ;;
  13782. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13783. esac
  13784. _ACEOF
  13785. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13786. # If the template does not know about datarootdir, expand it.
  13787. # FIXME: This hack should be removed a few years after 2.60.
  13788. ac_datarootdir_hack=; ac_datarootdir_seen=
  13789. ac_sed_dataroot='
  13790. /datarootdir/ {
  13791. p
  13792. q
  13793. }
  13794. /@datadir@/p
  13795. /@docdir@/p
  13796. /@infodir@/p
  13797. /@localedir@/p
  13798. /@mandir@/p'
  13799. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13800. *datarootdir*) ac_datarootdir_seen=yes;;
  13801. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13802. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13803. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13804. _ACEOF
  13805. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13806. ac_datarootdir_hack='
  13807. s&@datadir@&$datadir&g
  13808. s&@docdir@&$docdir&g
  13809. s&@infodir@&$infodir&g
  13810. s&@localedir@&$localedir&g
  13811. s&@mandir@&$mandir&g
  13812. s&\\\${datarootdir}&$datarootdir&g' ;;
  13813. esac
  13814. _ACEOF
  13815. # Neutralize VPATH when `$srcdir' = `.'.
  13816. # Shell code in configure.ac might set extrasub.
  13817. # FIXME: do we really want to maintain this feature?
  13818. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13819. ac_sed_extra="$ac_vpsub
  13820. $extrasub
  13821. _ACEOF
  13822. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13823. :t
  13824. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13825. s|@configure_input@|$ac_sed_conf_input|;t t
  13826. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13827. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13828. s&@srcdir@&$ac_srcdir&;t t
  13829. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13830. s&@top_srcdir@&$ac_top_srcdir&;t t
  13831. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13832. s&@builddir@&$ac_builddir&;t t
  13833. s&@abs_builddir@&$ac_abs_builddir&;t t
  13834. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13835. s&@INSTALL@&$ac_INSTALL&;t t
  13836. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13837. $ac_datarootdir_hack
  13838. "
  13839. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  13840. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13841. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13842. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  13843. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  13844. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  13845. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13846. which seems to be undefined. Please make sure it is defined" >&5
  13847. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13848. which seems to be undefined. Please make sure it is defined" >&2;}
  13849. rm -f "$ac_tmp/stdin"
  13850. case $ac_file in
  13851. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  13852. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  13853. esac \
  13854. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13855. ;;
  13856. :H)
  13857. #
  13858. # CONFIG_HEADER
  13859. #
  13860. if test x"$ac_file" != x-; then
  13861. {
  13862. $as_echo "/* $configure_input */" \
  13863. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  13864. } >"$ac_tmp/config.h" \
  13865. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13866. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  13867. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13868. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13869. else
  13870. rm -f "$ac_file"
  13871. mv "$ac_tmp/config.h" "$ac_file" \
  13872. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13873. fi
  13874. else
  13875. $as_echo "/* $configure_input */" \
  13876. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  13877. || as_fn_error $? "could not create -" "$LINENO" 5
  13878. fi
  13879. # Compute "$ac_file"'s index in $config_headers.
  13880. _am_arg="$ac_file"
  13881. _am_stamp_count=1
  13882. for _am_header in $config_headers :; do
  13883. case $_am_header in
  13884. $_am_arg | $_am_arg:* )
  13885. break ;;
  13886. * )
  13887. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13888. esac
  13889. done
  13890. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  13891. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13892. X"$_am_arg" : 'X\(//\)[^/]' \| \
  13893. X"$_am_arg" : 'X\(//\)$' \| \
  13894. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  13895. $as_echo X"$_am_arg" |
  13896. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13897. s//\1/
  13898. q
  13899. }
  13900. /^X\(\/\/\)[^/].*/{
  13901. s//\1/
  13902. q
  13903. }
  13904. /^X\(\/\/\)$/{
  13905. s//\1/
  13906. q
  13907. }
  13908. /^X\(\/\).*/{
  13909. s//\1/
  13910. q
  13911. }
  13912. s/.*/./; q'`/stamp-h$_am_stamp_count
  13913. ;;
  13914. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13915. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13916. ;;
  13917. esac
  13918. case $ac_file$ac_mode in
  13919. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  13920. # Older Autoconf quotes --file arguments for eval, but not when files
  13921. # are listed without --file. Let's play safe and only enable the eval
  13922. # if we detect the quoting.
  13923. case $CONFIG_FILES in
  13924. *\'*) eval set x "$CONFIG_FILES" ;;
  13925. *) set x $CONFIG_FILES ;;
  13926. esac
  13927. shift
  13928. for mf
  13929. do
  13930. # Strip MF so we end up with the name of the file.
  13931. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13932. # Check whether this is an Automake generated Makefile or not.
  13933. # We used to match only the files named 'Makefile.in', but
  13934. # some people rename them; so instead we look at the file content.
  13935. # Grep'ing the first line is not enough: some people post-process
  13936. # each Makefile.in and add a new line on top of each file to say so.
  13937. # Grep'ing the whole file is not good either: AIX grep has a line
  13938. # limit of 2048, but all sed's we know have understand at least 4000.
  13939. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13940. dirpart=`$as_dirname -- "$mf" ||
  13941. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13942. X"$mf" : 'X\(//\)[^/]' \| \
  13943. X"$mf" : 'X\(//\)$' \| \
  13944. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13945. $as_echo X"$mf" |
  13946. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13947. s//\1/
  13948. q
  13949. }
  13950. /^X\(\/\/\)[^/].*/{
  13951. s//\1/
  13952. q
  13953. }
  13954. /^X\(\/\/\)$/{
  13955. s//\1/
  13956. q
  13957. }
  13958. /^X\(\/\).*/{
  13959. s//\1/
  13960. q
  13961. }
  13962. s/.*/./; q'`
  13963. else
  13964. continue
  13965. fi
  13966. # Extract the definition of DEPDIR, am__include, and am__quote
  13967. # from the Makefile without running 'make'.
  13968. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13969. test -z "$DEPDIR" && continue
  13970. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13971. test -z "am__include" && continue
  13972. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13973. # Find all dependency output files, they are included files with
  13974. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13975. # simplest approach to changing $(DEPDIR) to its actual value in the
  13976. # expansion.
  13977. for file in `sed -n "
  13978. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13979. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  13980. # Make sure the directory exists.
  13981. test -f "$dirpart/$file" && continue
  13982. fdir=`$as_dirname -- "$file" ||
  13983. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13984. X"$file" : 'X\(//\)[^/]' \| \
  13985. X"$file" : 'X\(//\)$' \| \
  13986. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13987. $as_echo X"$file" |
  13988. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13989. s//\1/
  13990. q
  13991. }
  13992. /^X\(\/\/\)[^/].*/{
  13993. s//\1/
  13994. q
  13995. }
  13996. /^X\(\/\/\)$/{
  13997. s//\1/
  13998. q
  13999. }
  14000. /^X\(\/\).*/{
  14001. s//\1/
  14002. q
  14003. }
  14004. s/.*/./; q'`
  14005. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14006. # echo "creating $dirpart/$file"
  14007. echo '# dummy' > "$dirpart/$file"
  14008. done
  14009. done
  14010. }
  14011. ;;
  14012. "libtool":C)
  14013. # See if we are running on zsh, and set the options which allow our
  14014. # commands through without removal of \ escapes.
  14015. if test -n "${ZSH_VERSION+set}" ; then
  14016. setopt NO_GLOB_SUBST
  14017. fi
  14018. cfgfile="${ofile}T"
  14019. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14020. $RM "$cfgfile"
  14021. cat <<_LT_EOF >> "$cfgfile"
  14022. #! $SHELL
  14023. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14024. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14025. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14026. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14027. #
  14028. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14029. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  14030. # Foundation, Inc.
  14031. # Written by Gordon Matzigkeit, 1996
  14032. #
  14033. # This file is part of GNU Libtool.
  14034. #
  14035. # GNU Libtool is free software; you can redistribute it and/or
  14036. # modify it under the terms of the GNU General Public License as
  14037. # published by the Free Software Foundation; either version 2 of
  14038. # the License, or (at your option) any later version.
  14039. #
  14040. # As a special exception to the GNU General Public License,
  14041. # if you distribute this file as part of a program or library that
  14042. # is built using GNU Libtool, you may include this file under the
  14043. # same distribution terms that you use for the rest of that program.
  14044. #
  14045. # GNU Libtool is distributed in the hope that it will be useful,
  14046. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14047. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14048. # GNU General Public License for more details.
  14049. #
  14050. # You should have received a copy of the GNU General Public License
  14051. # along with GNU Libtool; see the file COPYING. If not, a copy
  14052. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14053. # obtained by writing to the Free Software Foundation, Inc.,
  14054. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14055. # The names of the tagged configurations supported by this script.
  14056. available_tags=""
  14057. # ### BEGIN LIBTOOL CONFIG
  14058. # Which release of libtool.m4 was used?
  14059. macro_version=$macro_version
  14060. macro_revision=$macro_revision
  14061. # Whether or not to build static libraries.
  14062. build_old_libs=$enable_static
  14063. # What type of objects to build.
  14064. pic_mode=$pic_mode
  14065. # Whether or not to build shared libraries.
  14066. build_libtool_libs=$enable_shared
  14067. # Whether or not to optimize for fast installation.
  14068. fast_install=$enable_fast_install
  14069. # Shell to use when invoking shell scripts.
  14070. SHELL=$lt_SHELL
  14071. # An echo program that protects backslashes.
  14072. ECHO=$lt_ECHO
  14073. # The PATH separator for the build system.
  14074. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  14075. # The host system.
  14076. host_alias=$host_alias
  14077. host=$host
  14078. host_os=$host_os
  14079. # The build system.
  14080. build_alias=$build_alias
  14081. build=$build
  14082. build_os=$build_os
  14083. # A sed program that does not truncate output.
  14084. SED=$lt_SED
  14085. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14086. Xsed="\$SED -e 1s/^X//"
  14087. # A grep program that handles long lines.
  14088. GREP=$lt_GREP
  14089. # An ERE matcher.
  14090. EGREP=$lt_EGREP
  14091. # A literal string matcher.
  14092. FGREP=$lt_FGREP
  14093. # A BSD- or MS-compatible name lister.
  14094. NM=$lt_NM
  14095. # Whether we need soft or hard links.
  14096. LN_S=$lt_LN_S
  14097. # What is the maximum length of a command?
  14098. max_cmd_len=$max_cmd_len
  14099. # Object file suffix (normally "o").
  14100. objext=$ac_objext
  14101. # Executable file suffix (normally "").
  14102. exeext=$exeext
  14103. # whether the shell understands "unset".
  14104. lt_unset=$lt_unset
  14105. # turn spaces into newlines.
  14106. SP2NL=$lt_lt_SP2NL
  14107. # turn newlines into spaces.
  14108. NL2SP=$lt_lt_NL2SP
  14109. # convert \$build file names to \$host format.
  14110. to_host_file_cmd=$lt_cv_to_host_file_cmd
  14111. # convert \$build files to toolchain format.
  14112. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  14113. # An object symbol dumper.
  14114. OBJDUMP=$lt_OBJDUMP
  14115. # Method to check whether dependent libraries are shared objects.
  14116. deplibs_check_method=$lt_deplibs_check_method
  14117. # Command to use when deplibs_check_method = "file_magic".
  14118. file_magic_cmd=$lt_file_magic_cmd
  14119. # How to find potential files when deplibs_check_method = "file_magic".
  14120. file_magic_glob=$lt_file_magic_glob
  14121. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  14122. want_nocaseglob=$lt_want_nocaseglob
  14123. # DLL creation program.
  14124. DLLTOOL=$lt_DLLTOOL
  14125. # Command to associate shared and link libraries.
  14126. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  14127. # The archiver.
  14128. AR=$lt_AR
  14129. # Flags to create an archive.
  14130. AR_FLAGS=$lt_AR_FLAGS
  14131. # How to feed a file listing to the archiver.
  14132. archiver_list_spec=$lt_archiver_list_spec
  14133. # A symbol stripping program.
  14134. STRIP=$lt_STRIP
  14135. # Commands used to install an old-style archive.
  14136. RANLIB=$lt_RANLIB
  14137. old_postinstall_cmds=$lt_old_postinstall_cmds
  14138. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14139. # Whether to use a lock for old archive extraction.
  14140. lock_old_archive_extraction=$lock_old_archive_extraction
  14141. # A C compiler.
  14142. LTCC=$lt_CC
  14143. # LTCC compiler flags.
  14144. LTCFLAGS=$lt_CFLAGS
  14145. # Take the output of nm and produce a listing of raw symbols and C names.
  14146. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14147. # Transform the output of nm in a proper C declaration.
  14148. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14149. # Transform the output of nm in a C name address pair.
  14150. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14151. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14152. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14153. # Specify filename containing input files for \$NM.
  14154. nm_file_list_spec=$lt_nm_file_list_spec
  14155. # The root where to search for dependent libraries,and in which our libraries should be installed.
  14156. lt_sysroot=$lt_sysroot
  14157. # The name of the directory that contains temporary libtool files.
  14158. objdir=$objdir
  14159. # Used to examine libraries when file_magic_cmd begins with "file".
  14160. MAGIC_CMD=$MAGIC_CMD
  14161. # Must we lock files when doing compilation?
  14162. need_locks=$lt_need_locks
  14163. # Manifest tool.
  14164. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  14165. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14166. DSYMUTIL=$lt_DSYMUTIL
  14167. # Tool to change global to local symbols on Mac OS X.
  14168. NMEDIT=$lt_NMEDIT
  14169. # Tool to manipulate fat objects and archives on Mac OS X.
  14170. LIPO=$lt_LIPO
  14171. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14172. OTOOL=$lt_OTOOL
  14173. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14174. OTOOL64=$lt_OTOOL64
  14175. # Old archive suffix (normally "a").
  14176. libext=$libext
  14177. # Shared library suffix (normally ".so").
  14178. shrext_cmds=$lt_shrext_cmds
  14179. # The commands to extract the exported symbol list from a shared archive.
  14180. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14181. # Variables whose values should be saved in libtool wrapper scripts and
  14182. # restored at link time.
  14183. variables_saved_for_relink=$lt_variables_saved_for_relink
  14184. # Do we need the "lib" prefix for modules?
  14185. need_lib_prefix=$need_lib_prefix
  14186. # Do we need a version for libraries?
  14187. need_version=$need_version
  14188. # Library versioning type.
  14189. version_type=$version_type
  14190. # Shared library runtime path variable.
  14191. runpath_var=$runpath_var
  14192. # Shared library path variable.
  14193. shlibpath_var=$shlibpath_var
  14194. # Is shlibpath searched before the hard-coded library search path?
  14195. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14196. # Format of library name prefix.
  14197. libname_spec=$lt_libname_spec
  14198. # List of archive names. First name is the real one, the rest are links.
  14199. # The last name is the one that the linker finds with -lNAME
  14200. library_names_spec=$lt_library_names_spec
  14201. # The coded name of the library, if different from the real name.
  14202. soname_spec=$lt_soname_spec
  14203. # Permission mode override for installation of shared libraries.
  14204. install_override_mode=$lt_install_override_mode
  14205. # Command to use after installation of a shared archive.
  14206. postinstall_cmds=$lt_postinstall_cmds
  14207. # Command to use after uninstallation of a shared archive.
  14208. postuninstall_cmds=$lt_postuninstall_cmds
  14209. # Commands used to finish a libtool library installation in a directory.
  14210. finish_cmds=$lt_finish_cmds
  14211. # As "finish_cmds", except a single script fragment to be evaled but
  14212. # not shown.
  14213. finish_eval=$lt_finish_eval
  14214. # Whether we should hardcode library paths into libraries.
  14215. hardcode_into_libs=$hardcode_into_libs
  14216. # Compile-time system search path for libraries.
  14217. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14218. # Run-time system search path for libraries.
  14219. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14220. # Whether dlopen is supported.
  14221. dlopen_support=$enable_dlopen
  14222. # Whether dlopen of programs is supported.
  14223. dlopen_self=$enable_dlopen_self
  14224. # Whether dlopen of statically linked programs is supported.
  14225. dlopen_self_static=$enable_dlopen_self_static
  14226. # Commands to strip libraries.
  14227. old_striplib=$lt_old_striplib
  14228. striplib=$lt_striplib
  14229. # The linker used to build libraries.
  14230. LD=$lt_LD
  14231. # How to create reloadable object files.
  14232. reload_flag=$lt_reload_flag
  14233. reload_cmds=$lt_reload_cmds
  14234. # Commands used to build an old-style archive.
  14235. old_archive_cmds=$lt_old_archive_cmds
  14236. # A language specific compiler.
  14237. CC=$lt_compiler
  14238. # Is the compiler the GNU compiler?
  14239. with_gcc=$GCC
  14240. # Compiler flag to turn off builtin functions.
  14241. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14242. # Additional compiler flags for building library objects.
  14243. pic_flag=$lt_lt_prog_compiler_pic
  14244. # How to pass a linker flag through the compiler.
  14245. wl=$lt_lt_prog_compiler_wl
  14246. # Compiler flag to prevent dynamic linking.
  14247. link_static_flag=$lt_lt_prog_compiler_static
  14248. # Does compiler simultaneously support -c and -o options?
  14249. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14250. # Whether or not to add -lc for building shared libraries.
  14251. build_libtool_need_lc=$archive_cmds_need_lc
  14252. # Whether or not to disallow shared libs when runtime libs are static.
  14253. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14254. # Compiler flag to allow reflexive dlopens.
  14255. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14256. # Compiler flag to generate shared objects directly from archives.
  14257. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14258. # Whether the compiler copes with passing no objects directly.
  14259. compiler_needs_object=$lt_compiler_needs_object
  14260. # Create an old-style archive from a shared archive.
  14261. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14262. # Create a temporary old-style archive to link instead of a shared archive.
  14263. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14264. # Commands used to build a shared archive.
  14265. archive_cmds=$lt_archive_cmds
  14266. archive_expsym_cmds=$lt_archive_expsym_cmds
  14267. # Commands used to build a loadable module if different from building
  14268. # a shared archive.
  14269. module_cmds=$lt_module_cmds
  14270. module_expsym_cmds=$lt_module_expsym_cmds
  14271. # Whether we are building with GNU ld or not.
  14272. with_gnu_ld=$lt_with_gnu_ld
  14273. # Flag that allows shared libraries with undefined symbols to be built.
  14274. allow_undefined_flag=$lt_allow_undefined_flag
  14275. # Flag that enforces no undefined symbols.
  14276. no_undefined_flag=$lt_no_undefined_flag
  14277. # Flag to hardcode \$libdir into a binary during linking.
  14278. # This must work even if \$libdir does not exist
  14279. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14280. # Whether we need a single "-rpath" flag with a separated argument.
  14281. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14282. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14283. # DIR into the resulting binary.
  14284. hardcode_direct=$hardcode_direct
  14285. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14286. # DIR into the resulting binary and the resulting library dependency is
  14287. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14288. # library is relocated.
  14289. hardcode_direct_absolute=$hardcode_direct_absolute
  14290. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14291. # into the resulting binary.
  14292. hardcode_minus_L=$hardcode_minus_L
  14293. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14294. # into the resulting binary.
  14295. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14296. # Set to "yes" if building a shared library automatically hardcodes DIR
  14297. # into the library and all subsequent libraries and executables linked
  14298. # against it.
  14299. hardcode_automatic=$hardcode_automatic
  14300. # Set to yes if linker adds runtime paths of dependent libraries
  14301. # to runtime path list.
  14302. inherit_rpath=$inherit_rpath
  14303. # Whether libtool must link a program against all its dependency libraries.
  14304. link_all_deplibs=$link_all_deplibs
  14305. # Set to "yes" if exported symbols are required.
  14306. always_export_symbols=$always_export_symbols
  14307. # The commands to list exported symbols.
  14308. export_symbols_cmds=$lt_export_symbols_cmds
  14309. # Symbols that should not be listed in the preloaded symbols.
  14310. exclude_expsyms=$lt_exclude_expsyms
  14311. # Symbols that must always be exported.
  14312. include_expsyms=$lt_include_expsyms
  14313. # Commands necessary for linking programs (against libraries) with templates.
  14314. prelink_cmds=$lt_prelink_cmds
  14315. # Commands necessary for finishing linking programs.
  14316. postlink_cmds=$lt_postlink_cmds
  14317. # Specify filename containing input files.
  14318. file_list_spec=$lt_file_list_spec
  14319. # How to hardcode a shared library path into an executable.
  14320. hardcode_action=$hardcode_action
  14321. # ### END LIBTOOL CONFIG
  14322. _LT_EOF
  14323. case $host_os in
  14324. aix3*)
  14325. cat <<\_LT_EOF >> "$cfgfile"
  14326. # AIX sometimes has problems with the GCC collect2 program. For some
  14327. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14328. # vanish in a puff of smoke.
  14329. if test "X${COLLECT_NAMES+set}" != Xset; then
  14330. COLLECT_NAMES=
  14331. export COLLECT_NAMES
  14332. fi
  14333. _LT_EOF
  14334. ;;
  14335. esac
  14336. ltmain="$ac_aux_dir/ltmain.sh"
  14337. # We use sed instead of cat because bash on DJGPP gets confused if
  14338. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14339. # text mode, it properly converts lines to CR/LF. This bash problem
  14340. # is reportedly fixed, but why not run on old versions too?
  14341. sed '$q' "$ltmain" >> "$cfgfile" \
  14342. || (rm -f "$cfgfile"; exit 1)
  14343. if test x"$xsi_shell" = xyes; then
  14344. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  14345. func_dirname ()\
  14346. {\
  14347. \ case ${1} in\
  14348. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  14349. \ * ) func_dirname_result="${3}" ;;\
  14350. \ esac\
  14351. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  14352. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14353. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14354. test 0 -eq $? || _lt_function_replace_fail=:
  14355. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  14356. func_basename ()\
  14357. {\
  14358. \ func_basename_result="${1##*/}"\
  14359. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  14360. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14361. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14362. test 0 -eq $? || _lt_function_replace_fail=:
  14363. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  14364. func_dirname_and_basename ()\
  14365. {\
  14366. \ case ${1} in\
  14367. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  14368. \ * ) func_dirname_result="${3}" ;;\
  14369. \ esac\
  14370. \ func_basename_result="${1##*/}"\
  14371. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  14372. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14373. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14374. test 0 -eq $? || _lt_function_replace_fail=:
  14375. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  14376. func_stripname ()\
  14377. {\
  14378. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  14379. \ # positional parameters, so assign one to ordinary parameter first.\
  14380. \ func_stripname_result=${3}\
  14381. \ func_stripname_result=${func_stripname_result#"${1}"}\
  14382. \ func_stripname_result=${func_stripname_result%"${2}"}\
  14383. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  14384. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14385. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14386. test 0 -eq $? || _lt_function_replace_fail=:
  14387. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  14388. func_split_long_opt ()\
  14389. {\
  14390. \ func_split_long_opt_name=${1%%=*}\
  14391. \ func_split_long_opt_arg=${1#*=}\
  14392. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  14393. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14394. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14395. test 0 -eq $? || _lt_function_replace_fail=:
  14396. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  14397. func_split_short_opt ()\
  14398. {\
  14399. \ func_split_short_opt_arg=${1#??}\
  14400. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  14401. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  14402. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14403. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14404. test 0 -eq $? || _lt_function_replace_fail=:
  14405. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  14406. func_lo2o ()\
  14407. {\
  14408. \ case ${1} in\
  14409. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  14410. \ *) func_lo2o_result=${1} ;;\
  14411. \ esac\
  14412. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  14413. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14414. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14415. test 0 -eq $? || _lt_function_replace_fail=:
  14416. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  14417. func_xform ()\
  14418. {\
  14419. func_xform_result=${1%.*}.lo\
  14420. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  14421. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14422. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14423. test 0 -eq $? || _lt_function_replace_fail=:
  14424. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  14425. func_arith ()\
  14426. {\
  14427. func_arith_result=$(( $* ))\
  14428. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  14429. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14430. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14431. test 0 -eq $? || _lt_function_replace_fail=:
  14432. sed -e '/^func_len ()$/,/^} # func_len /c\
  14433. func_len ()\
  14434. {\
  14435. func_len_result=${#1}\
  14436. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  14437. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14438. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14439. test 0 -eq $? || _lt_function_replace_fail=:
  14440. fi
  14441. if test x"$lt_shell_append" = xyes; then
  14442. sed -e '/^func_append ()$/,/^} # func_append /c\
  14443. func_append ()\
  14444. {\
  14445. eval "${1}+=\\${2}"\
  14446. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  14447. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14448. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14449. test 0 -eq $? || _lt_function_replace_fail=:
  14450. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  14451. func_append_quoted ()\
  14452. {\
  14453. \ func_quote_for_eval "${2}"\
  14454. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  14455. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  14456. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14457. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14458. test 0 -eq $? || _lt_function_replace_fail=:
  14459. # Save a `func_append' function call where possible by direct use of '+='
  14460. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  14461. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14462. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14463. test 0 -eq $? || _lt_function_replace_fail=:
  14464. else
  14465. # Save a `func_append' function call even when '+=' is not available
  14466. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  14467. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14468. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14469. test 0 -eq $? || _lt_function_replace_fail=:
  14470. fi
  14471. if test x"$_lt_function_replace_fail" = x":"; then
  14472. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  14473. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  14474. fi
  14475. mv -f "$cfgfile" "$ofile" ||
  14476. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14477. chmod +x "$ofile"
  14478. ;;
  14479. esac
  14480. done # for ac_tag
  14481. as_fn_exit 0
  14482. _ACEOF
  14483. ac_clean_files=$ac_clean_files_save
  14484. test $ac_write_fail = 0 ||
  14485. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14486. # configure is writing to config.log, and then calls config.status.
  14487. # config.status does its own redirection, appending to config.log.
  14488. # Unfortunately, on DOS this fails, as config.log is still kept open
  14489. # by configure, so config.status won't be able to write to it; its
  14490. # output is simply discarded. So we exec the FD to /dev/null,
  14491. # effectively closing config.log, so it can be properly (re)opened and
  14492. # appended to by config.status. When coming back to configure, we
  14493. # need to make the FD available again.
  14494. if test "$no_create" != yes; then
  14495. ac_cs_success=:
  14496. ac_config_status_args=
  14497. test "$silent" = yes &&
  14498. ac_config_status_args="$ac_config_status_args --quiet"
  14499. exec 5>/dev/null
  14500. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14501. exec 5>>config.log
  14502. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14503. # would make configure fail if this is the last instruction.
  14504. $ac_cs_success || as_fn_exit 1
  14505. fi
  14506. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14507. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14508. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14509. fi