configure 450 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for file 5.13.
  4. #
  5. # Report bugs to <christos@astron.com>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. # Foundation, Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. as_myself=
  88. case $0 in #((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  163. test \$(( 1 + 1 )) = 2 || exit 1"
  164. if (eval "$as_required") 2>/dev/null; then :
  165. as_have_required=yes
  166. else
  167. as_have_required=no
  168. fi
  169. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  170. else
  171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  172. as_found=false
  173. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  174. do
  175. IFS=$as_save_IFS
  176. test -z "$as_dir" && as_dir=.
  177. as_found=:
  178. case $as_dir in #(
  179. /*)
  180. for as_base in sh bash ksh sh5; do
  181. # Try only shells that exist, to save several forks.
  182. as_shell=$as_dir/$as_base
  183. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  184. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  185. CONFIG_SHELL=$as_shell as_have_required=yes
  186. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. break 2
  188. fi
  189. fi
  190. done;;
  191. esac
  192. as_found=false
  193. done
  194. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  195. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  196. CONFIG_SHELL=$SHELL as_have_required=yes
  197. fi; }
  198. IFS=$as_save_IFS
  199. if test "x$CONFIG_SHELL" != x; then :
  200. # We cannot yet assume a decent shell, so we have to provide a
  201. # neutralization value for shells without unset; and this also
  202. # works around shells that cannot unset nonexistent variables.
  203. # Preserve -v and -x to the replacement shell.
  204. BASH_ENV=/dev/null
  205. ENV=/dev/null
  206. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  207. export CONFIG_SHELL
  208. case $- in # ((((
  209. *v*x* | *x*v* ) as_opts=-vx ;;
  210. *v* ) as_opts=-v ;;
  211. *x* ) as_opts=-x ;;
  212. * ) as_opts= ;;
  213. esac
  214. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  215. fi
  216. if test x$as_have_required = xno; then :
  217. $as_echo "$0: This script requires a shell more modern than all"
  218. $as_echo "$0: the shells that I found on your system."
  219. if test x${ZSH_VERSION+set} = xset ; then
  220. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  221. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  222. else
  223. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  224. $0: christos@astron.com about your system, including any
  225. $0: error possibly output before this message. Then install
  226. $0: a modern shell, or manually run the script under such a
  227. $0: shell if you do have one."
  228. fi
  229. exit 1
  230. fi
  231. fi
  232. fi
  233. SHELL=${CONFIG_SHELL-/bin/sh}
  234. export SHELL
  235. # Unset more variables known to interfere with behavior of common tools.
  236. CLICOLOR_FORCE= GREP_OPTIONS=
  237. unset CLICOLOR_FORCE GREP_OPTIONS
  238. ## --------------------- ##
  239. ## M4sh Shell Functions. ##
  240. ## --------------------- ##
  241. # as_fn_unset VAR
  242. # ---------------
  243. # Portably unset VAR.
  244. as_fn_unset ()
  245. {
  246. { eval $1=; unset $1;}
  247. }
  248. as_unset=as_fn_unset
  249. # as_fn_set_status STATUS
  250. # -----------------------
  251. # Set $? to STATUS, without forking.
  252. as_fn_set_status ()
  253. {
  254. return $1
  255. } # as_fn_set_status
  256. # as_fn_exit STATUS
  257. # -----------------
  258. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  259. as_fn_exit ()
  260. {
  261. set +e
  262. as_fn_set_status $1
  263. exit $1
  264. } # as_fn_exit
  265. # as_fn_mkdir_p
  266. # -------------
  267. # Create "$as_dir" as a directory, including parents if necessary.
  268. as_fn_mkdir_p ()
  269. {
  270. case $as_dir in #(
  271. -*) as_dir=./$as_dir;;
  272. esac
  273. test -d "$as_dir" || eval $as_mkdir_p || {
  274. as_dirs=
  275. while :; do
  276. case $as_dir in #(
  277. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  278. *) as_qdir=$as_dir;;
  279. esac
  280. as_dirs="'$as_qdir' $as_dirs"
  281. as_dir=`$as_dirname -- "$as_dir" ||
  282. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  283. X"$as_dir" : 'X\(//\)[^/]' \| \
  284. X"$as_dir" : 'X\(//\)$' \| \
  285. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  286. $as_echo X"$as_dir" |
  287. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\/\)[^/].*/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\/\)$/{
  296. s//\1/
  297. q
  298. }
  299. /^X\(\/\).*/{
  300. s//\1/
  301. q
  302. }
  303. s/.*/./; q'`
  304. test -d "$as_dir" && break
  305. done
  306. test -z "$as_dirs" || eval "mkdir $as_dirs"
  307. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  308. } # as_fn_mkdir_p
  309. # as_fn_append VAR VALUE
  310. # ----------------------
  311. # Append the text in VALUE to the end of the definition contained in VAR. Take
  312. # advantage of any shell optimizations that allow amortized linear growth over
  313. # repeated appends, instead of the typical quadratic growth present in naive
  314. # implementations.
  315. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  316. eval 'as_fn_append ()
  317. {
  318. eval $1+=\$2
  319. }'
  320. else
  321. as_fn_append ()
  322. {
  323. eval $1=\$$1\$2
  324. }
  325. fi # as_fn_append
  326. # as_fn_arith ARG...
  327. # ------------------
  328. # Perform arithmetic evaluation on the ARGs, and store the result in the
  329. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  330. # must be portable across $(()) and expr.
  331. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  332. eval 'as_fn_arith ()
  333. {
  334. as_val=$(( $* ))
  335. }'
  336. else
  337. as_fn_arith ()
  338. {
  339. as_val=`expr "$@" || test $? -eq 1`
  340. }
  341. fi # as_fn_arith
  342. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  343. # ----------------------------------------
  344. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  345. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  346. # script with STATUS, using 1 if that was 0.
  347. as_fn_error ()
  348. {
  349. as_status=$1; test $as_status -eq 0 && as_status=1
  350. if test "$4"; then
  351. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  352. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  353. fi
  354. $as_echo "$as_me: error: $2" >&2
  355. as_fn_exit $as_status
  356. } # as_fn_error
  357. if expr a : '\(a\)' >/dev/null 2>&1 &&
  358. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  359. as_expr=expr
  360. else
  361. as_expr=false
  362. fi
  363. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  364. as_basename=basename
  365. else
  366. as_basename=false
  367. fi
  368. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  369. as_dirname=dirname
  370. else
  371. as_dirname=false
  372. fi
  373. as_me=`$as_basename -- "$0" ||
  374. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  375. X"$0" : 'X\(//\)$' \| \
  376. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  377. $as_echo X/"$0" |
  378. sed '/^.*\/\([^/][^/]*\)\/*$/{
  379. s//\1/
  380. q
  381. }
  382. /^X\/\(\/\/\)$/{
  383. s//\1/
  384. q
  385. }
  386. /^X\/\(\/\).*/{
  387. s//\1/
  388. q
  389. }
  390. s/.*/./; q'`
  391. # Avoid depending upon Character Ranges.
  392. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  393. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  394. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  395. as_cr_digits='0123456789'
  396. as_cr_alnum=$as_cr_Letters$as_cr_digits
  397. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  398. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  399. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  400. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  401. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  402. sed -n '
  403. p
  404. /[$]LINENO/=
  405. ' <$as_myself |
  406. sed '
  407. s/[$]LINENO.*/&-/
  408. t lineno
  409. b
  410. :lineno
  411. N
  412. :loop
  413. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  414. t loop
  415. s/-\n.*//
  416. ' >$as_me.lineno &&
  417. chmod +x "$as_me.lineno" ||
  418. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  419. # Don't try to exec as it changes $[0], causing all sort of problems
  420. # (the dirname of $[0] is not the place where we might find the
  421. # original and so on. Autoconf is especially sensitive to this).
  422. . "./$as_me.lineno"
  423. # Exit status is that of the last command.
  424. exit
  425. }
  426. ECHO_C= ECHO_N= ECHO_T=
  427. case `echo -n x` in #(((((
  428. -n*)
  429. case `echo 'xy\c'` in
  430. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  431. xy) ECHO_C='\c';;
  432. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  433. ECHO_T=' ';;
  434. esac;;
  435. *)
  436. ECHO_N='-n';;
  437. esac
  438. rm -f conf$$ conf$$.exe conf$$.file
  439. if test -d conf$$.dir; then
  440. rm -f conf$$.dir/conf$$.file
  441. else
  442. rm -f conf$$.dir
  443. mkdir conf$$.dir 2>/dev/null
  444. fi
  445. if (echo >conf$$.file) 2>/dev/null; then
  446. if ln -s conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s='ln -s'
  448. # ... but there are two gotchas:
  449. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  450. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  451. # In both cases, we have to default to `cp -p'.
  452. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  453. as_ln_s='cp -p'
  454. elif ln conf$$.file conf$$ 2>/dev/null; then
  455. as_ln_s=ln
  456. else
  457. as_ln_s='cp -p'
  458. fi
  459. else
  460. as_ln_s='cp -p'
  461. fi
  462. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  463. rmdir conf$$.dir 2>/dev/null
  464. if mkdir -p . 2>/dev/null; then
  465. as_mkdir_p='mkdir -p "$as_dir"'
  466. else
  467. test -d ./-p && rmdir ./-p
  468. as_mkdir_p=false
  469. fi
  470. if test -x / >/dev/null 2>&1; then
  471. as_test_x='test -x'
  472. else
  473. if ls -dL / >/dev/null 2>&1; then
  474. as_ls_L_option=L
  475. else
  476. as_ls_L_option=
  477. fi
  478. as_test_x='
  479. eval sh -c '\''
  480. if test -d "$1"; then
  481. test -d "$1/.";
  482. else
  483. case $1 in #(
  484. -*)set "./$1";;
  485. esac;
  486. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  487. ???[sx]*):;;*)false;;esac;fi
  488. '\'' sh
  489. '
  490. fi
  491. as_executable_p=$as_test_x
  492. # Sed expression to map a string onto a valid CPP name.
  493. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  494. # Sed expression to map a string onto a valid variable name.
  495. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  496. # Check that we are running under the correct shell.
  497. SHELL=${CONFIG_SHELL-/bin/sh}
  498. case X$lt_ECHO in
  499. X*--fallback-echo)
  500. # Remove one level of quotation (which was required for Make).
  501. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  502. ;;
  503. esac
  504. ECHO=${lt_ECHO-echo}
  505. if test "X$1" = X--no-reexec; then
  506. # Discard the --no-reexec flag, and continue.
  507. shift
  508. elif test "X$1" = X--fallback-echo; then
  509. # Avoid inline document here, it may be left over
  510. :
  511. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  512. # Yippee, $ECHO works!
  513. :
  514. else
  515. # Restart under the correct shell.
  516. exec $SHELL "$0" --no-reexec ${1+"$@"}
  517. fi
  518. if test "X$1" = X--fallback-echo; then
  519. # used as fallback echo
  520. shift
  521. cat <<_LT_EOF
  522. $*
  523. _LT_EOF
  524. exit 0
  525. fi
  526. # The HP-UX ksh and POSIX shell print the target directory to stdout
  527. # if CDPATH is set.
  528. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  529. if test -z "$lt_ECHO"; then
  530. if test "X${echo_test_string+set}" != Xset; then
  531. # find a string as large as possible, as long as the shell can cope with it
  532. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  533. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  534. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  535. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  536. then
  537. break
  538. fi
  539. done
  540. fi
  541. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  542. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  543. test "X$echo_testing_string" = "X$echo_test_string"; then
  544. :
  545. else
  546. # The Solaris, AIX, and Digital Unix default echo programs unquote
  547. # backslashes. This makes it impossible to quote backslashes using
  548. # echo "$something" | sed 's/\\/\\\\/g'
  549. #
  550. # So, first we look for a working echo in the user's PATH.
  551. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  552. for dir in $PATH /usr/ucb; do
  553. IFS="$lt_save_ifs"
  554. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  555. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  556. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  557. test "X$echo_testing_string" = "X$echo_test_string"; then
  558. ECHO="$dir/echo"
  559. break
  560. fi
  561. done
  562. IFS="$lt_save_ifs"
  563. if test "X$ECHO" = Xecho; then
  564. # We didn't find a better echo, so look for alternatives.
  565. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  566. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  567. test "X$echo_testing_string" = "X$echo_test_string"; then
  568. # This shell has a builtin print -r that does the trick.
  569. ECHO='print -r'
  570. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  571. test "X$CONFIG_SHELL" != X/bin/ksh; then
  572. # If we have ksh, try running configure again with it.
  573. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  574. export ORIGINAL_CONFIG_SHELL
  575. CONFIG_SHELL=/bin/ksh
  576. export CONFIG_SHELL
  577. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  578. else
  579. # Try using printf.
  580. ECHO='printf %s\n'
  581. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  582. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  583. test "X$echo_testing_string" = "X$echo_test_string"; then
  584. # Cool, printf works
  585. :
  586. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  587. test "X$echo_testing_string" = 'X\t' &&
  588. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  589. test "X$echo_testing_string" = "X$echo_test_string"; then
  590. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  591. export CONFIG_SHELL
  592. SHELL="$CONFIG_SHELL"
  593. export SHELL
  594. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  595. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  596. test "X$echo_testing_string" = 'X\t' &&
  597. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  598. test "X$echo_testing_string" = "X$echo_test_string"; then
  599. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  600. else
  601. # maybe with a smaller string...
  602. prev=:
  603. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  604. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  605. then
  606. break
  607. fi
  608. prev="$cmd"
  609. done
  610. if test "$prev" != 'sed 50q "$0"'; then
  611. echo_test_string=`eval $prev`
  612. export echo_test_string
  613. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  614. else
  615. # Oops. We lost completely, so just stick with echo.
  616. ECHO=echo
  617. fi
  618. fi
  619. fi
  620. fi
  621. fi
  622. fi
  623. # Copy echo and quote the copy suitably for passing to libtool from
  624. # the Makefile, instead of quoting the original, which is used later.
  625. lt_ECHO=$ECHO
  626. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  627. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  628. fi
  629. test -n "$DJDIR" || exec 7<&0 </dev/null
  630. exec 6>&1
  631. # Name of the host.
  632. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  633. # so uname gets run too.
  634. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  635. #
  636. # Initializations.
  637. #
  638. ac_default_prefix=/usr/local
  639. ac_clean_files=
  640. ac_config_libobj_dir=.
  641. LIBOBJS=
  642. cross_compiling=no
  643. subdirs=
  644. MFLAGS=
  645. MAKEFLAGS=
  646. # Identity of this package.
  647. PACKAGE_NAME='file'
  648. PACKAGE_TARNAME='file'
  649. PACKAGE_VERSION='5.13'
  650. PACKAGE_STRING='file 5.13'
  651. PACKAGE_BUGREPORT='christos@astron.com'
  652. PACKAGE_URL=''
  653. # Factoring default headers for most tests.
  654. ac_includes_default="\
  655. #include <stdio.h>
  656. #ifdef HAVE_SYS_TYPES_H
  657. # include <sys/types.h>
  658. #endif
  659. #ifdef HAVE_SYS_STAT_H
  660. # include <sys/stat.h>
  661. #endif
  662. #ifdef STDC_HEADERS
  663. # include <stdlib.h>
  664. # include <stddef.h>
  665. #else
  666. # ifdef HAVE_STDLIB_H
  667. # include <stdlib.h>
  668. # endif
  669. #endif
  670. #ifdef HAVE_STRING_H
  671. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  672. # include <memory.h>
  673. # endif
  674. # include <string.h>
  675. #endif
  676. #ifdef HAVE_STRINGS_H
  677. # include <strings.h>
  678. #endif
  679. #ifdef HAVE_INTTYPES_H
  680. # include <inttypes.h>
  681. #endif
  682. #ifdef HAVE_STDINT_H
  683. # include <stdint.h>
  684. #endif
  685. #ifdef HAVE_UNISTD_H
  686. # include <unistd.h>
  687. #endif"
  688. ac_header_list=
  689. ac_subst_vars='am__EXEEXT_FALSE
  690. am__EXEEXT_TRUE
  691. LTLIBOBJS
  692. IS_CROSS_COMPILE_FALSE
  693. IS_CROSS_COMPILE_TRUE
  694. LIBOBJS
  695. HAVE_VISIBILITY
  696. CFLAG_VISIBILITY
  697. OTOOL64
  698. OTOOL
  699. LIPO
  700. NMEDIT
  701. DSYMUTIL
  702. lt_ECHO
  703. RANLIB
  704. AR
  705. OBJDUMP
  706. NM
  707. ac_ct_DUMPBIN
  708. DUMPBIN
  709. LD
  710. FGREP
  711. SED
  712. LIBTOOL
  713. LN_S
  714. EGREP
  715. GREP
  716. CPP
  717. am__fastdepCC_FALSE
  718. am__fastdepCC_TRUE
  719. CCDEPMODE
  720. AMDEPBACKSLASH
  721. AMDEP_FALSE
  722. AMDEP_TRUE
  723. am__quote
  724. am__include
  725. DEPDIR
  726. OBJEXT
  727. EXEEXT
  728. ac_ct_CC
  729. CPPFLAGS
  730. LDFLAGS
  731. CFLAGS
  732. CC
  733. WARNINGS
  734. FSECT5_FALSE
  735. FSECT5_TRUE
  736. fsect
  737. pkgdatadir
  738. MINGW_FALSE
  739. MINGW_TRUE
  740. MINGW
  741. host_os
  742. host_vendor
  743. host_cpu
  744. host
  745. build_os
  746. build_vendor
  747. build_cpu
  748. build
  749. AM_BACKSLASH
  750. AM_DEFAULT_VERBOSITY
  751. am__untar
  752. am__tar
  753. AMTAR
  754. am__leading_dot
  755. SET_MAKE
  756. AWK
  757. mkdir_p
  758. MKDIR_P
  759. INSTALL_STRIP_PROGRAM
  760. STRIP
  761. install_sh
  762. MAKEINFO
  763. AUTOHEADER
  764. AUTOMAKE
  765. AUTOCONF
  766. ACLOCAL
  767. VERSION
  768. PACKAGE
  769. CYGPATH_W
  770. am__isrc
  771. INSTALL_DATA
  772. INSTALL_SCRIPT
  773. INSTALL_PROGRAM
  774. target_alias
  775. host_alias
  776. build_alias
  777. LIBS
  778. ECHO_T
  779. ECHO_N
  780. ECHO_C
  781. DEFS
  782. mandir
  783. localedir
  784. libdir
  785. psdir
  786. pdfdir
  787. dvidir
  788. htmldir
  789. infodir
  790. docdir
  791. oldincludedir
  792. includedir
  793. localstatedir
  794. sharedstatedir
  795. sysconfdir
  796. datadir
  797. datarootdir
  798. libexecdir
  799. sbindir
  800. bindir
  801. program_transform_name
  802. prefix
  803. exec_prefix
  804. PACKAGE_URL
  805. PACKAGE_BUGREPORT
  806. PACKAGE_STRING
  807. PACKAGE_VERSION
  808. PACKAGE_TARNAME
  809. PACKAGE_NAME
  810. PATH_SEPARATOR
  811. SHELL'
  812. ac_subst_files=''
  813. ac_user_opts='
  814. enable_option_checking
  815. enable_silent_rules
  816. enable_elf
  817. enable_elf_core
  818. enable_fsect_man5
  819. enable_dependency_tracking
  820. enable_static
  821. with_pic
  822. enable_shared
  823. enable_fast_install
  824. with_gnu_ld
  825. enable_libtool_lock
  826. enable_largefile
  827. enable_warnings
  828. '
  829. ac_precious_vars='build_alias
  830. host_alias
  831. target_alias
  832. CC
  833. CFLAGS
  834. LDFLAGS
  835. LIBS
  836. CPPFLAGS
  837. CPP'
  838. # Initialize some variables set by options.
  839. ac_init_help=
  840. ac_init_version=false
  841. ac_unrecognized_opts=
  842. ac_unrecognized_sep=
  843. # The variables have the same names as the options, with
  844. # dashes changed to underlines.
  845. cache_file=/dev/null
  846. exec_prefix=NONE
  847. no_create=
  848. no_recursion=
  849. prefix=NONE
  850. program_prefix=NONE
  851. program_suffix=NONE
  852. program_transform_name=s,x,x,
  853. silent=
  854. site=
  855. srcdir=
  856. verbose=
  857. x_includes=NONE
  858. x_libraries=NONE
  859. # Installation directory options.
  860. # These are left unexpanded so users can "make install exec_prefix=/foo"
  861. # and all the variables that are supposed to be based on exec_prefix
  862. # by default will actually change.
  863. # Use braces instead of parens because sh, perl, etc. also accept them.
  864. # (The list follows the same order as the GNU Coding Standards.)
  865. bindir='${exec_prefix}/bin'
  866. sbindir='${exec_prefix}/sbin'
  867. libexecdir='${exec_prefix}/libexec'
  868. datarootdir='${prefix}/share'
  869. datadir='${datarootdir}'
  870. sysconfdir='${prefix}/etc'
  871. sharedstatedir='${prefix}/com'
  872. localstatedir='${prefix}/var'
  873. includedir='${prefix}/include'
  874. oldincludedir='/usr/include'
  875. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  876. infodir='${datarootdir}/info'
  877. htmldir='${docdir}'
  878. dvidir='${docdir}'
  879. pdfdir='${docdir}'
  880. psdir='${docdir}'
  881. libdir='${exec_prefix}/lib'
  882. localedir='${datarootdir}/locale'
  883. mandir='${datarootdir}/man'
  884. ac_prev=
  885. ac_dashdash=
  886. for ac_option
  887. do
  888. # If the previous option needs an argument, assign it.
  889. if test -n "$ac_prev"; then
  890. eval $ac_prev=\$ac_option
  891. ac_prev=
  892. continue
  893. fi
  894. case $ac_option in
  895. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  896. *=) ac_optarg= ;;
  897. *) ac_optarg=yes ;;
  898. esac
  899. # Accept the important Cygnus configure options, so we can diagnose typos.
  900. case $ac_dashdash$ac_option in
  901. --)
  902. ac_dashdash=yes ;;
  903. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  904. ac_prev=bindir ;;
  905. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  906. bindir=$ac_optarg ;;
  907. -build | --build | --buil | --bui | --bu)
  908. ac_prev=build_alias ;;
  909. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  910. build_alias=$ac_optarg ;;
  911. -cache-file | --cache-file | --cache-fil | --cache-fi \
  912. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  913. ac_prev=cache_file ;;
  914. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  915. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  916. cache_file=$ac_optarg ;;
  917. --config-cache | -C)
  918. cache_file=config.cache ;;
  919. -datadir | --datadir | --datadi | --datad)
  920. ac_prev=datadir ;;
  921. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  922. datadir=$ac_optarg ;;
  923. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  924. | --dataroo | --dataro | --datar)
  925. ac_prev=datarootdir ;;
  926. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  927. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  928. datarootdir=$ac_optarg ;;
  929. -disable-* | --disable-*)
  930. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  931. # Reject names that are not valid shell variable names.
  932. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  933. as_fn_error $? "invalid feature name: $ac_useropt"
  934. ac_useropt_orig=$ac_useropt
  935. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  936. case $ac_user_opts in
  937. *"
  938. "enable_$ac_useropt"
  939. "*) ;;
  940. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  941. ac_unrecognized_sep=', ';;
  942. esac
  943. eval enable_$ac_useropt=no ;;
  944. -docdir | --docdir | --docdi | --doc | --do)
  945. ac_prev=docdir ;;
  946. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  947. docdir=$ac_optarg ;;
  948. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  949. ac_prev=dvidir ;;
  950. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  951. dvidir=$ac_optarg ;;
  952. -enable-* | --enable-*)
  953. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  954. # Reject names that are not valid shell variable names.
  955. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  956. as_fn_error $? "invalid feature name: $ac_useropt"
  957. ac_useropt_orig=$ac_useropt
  958. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  959. case $ac_user_opts in
  960. *"
  961. "enable_$ac_useropt"
  962. "*) ;;
  963. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  964. ac_unrecognized_sep=', ';;
  965. esac
  966. eval enable_$ac_useropt=\$ac_optarg ;;
  967. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  968. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  969. | --exec | --exe | --ex)
  970. ac_prev=exec_prefix ;;
  971. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  972. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  973. | --exec=* | --exe=* | --ex=*)
  974. exec_prefix=$ac_optarg ;;
  975. -gas | --gas | --ga | --g)
  976. # Obsolete; use --with-gas.
  977. with_gas=yes ;;
  978. -help | --help | --hel | --he | -h)
  979. ac_init_help=long ;;
  980. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  981. ac_init_help=recursive ;;
  982. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  983. ac_init_help=short ;;
  984. -host | --host | --hos | --ho)
  985. ac_prev=host_alias ;;
  986. -host=* | --host=* | --hos=* | --ho=*)
  987. host_alias=$ac_optarg ;;
  988. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  989. ac_prev=htmldir ;;
  990. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  991. | --ht=*)
  992. htmldir=$ac_optarg ;;
  993. -includedir | --includedir | --includedi | --included | --include \
  994. | --includ | --inclu | --incl | --inc)
  995. ac_prev=includedir ;;
  996. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  997. | --includ=* | --inclu=* | --incl=* | --inc=*)
  998. includedir=$ac_optarg ;;
  999. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1000. ac_prev=infodir ;;
  1001. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1002. infodir=$ac_optarg ;;
  1003. -libdir | --libdir | --libdi | --libd)
  1004. ac_prev=libdir ;;
  1005. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1006. libdir=$ac_optarg ;;
  1007. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1008. | --libexe | --libex | --libe)
  1009. ac_prev=libexecdir ;;
  1010. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1011. | --libexe=* | --libex=* | --libe=*)
  1012. libexecdir=$ac_optarg ;;
  1013. -localedir | --localedir | --localedi | --localed | --locale)
  1014. ac_prev=localedir ;;
  1015. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1016. localedir=$ac_optarg ;;
  1017. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1018. | --localstate | --localstat | --localsta | --localst | --locals)
  1019. ac_prev=localstatedir ;;
  1020. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1021. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1022. localstatedir=$ac_optarg ;;
  1023. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1024. ac_prev=mandir ;;
  1025. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1026. mandir=$ac_optarg ;;
  1027. -nfp | --nfp | --nf)
  1028. # Obsolete; use --without-fp.
  1029. with_fp=no ;;
  1030. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1031. | --no-cr | --no-c | -n)
  1032. no_create=yes ;;
  1033. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1034. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1035. no_recursion=yes ;;
  1036. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1037. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1038. | --oldin | --oldi | --old | --ol | --o)
  1039. ac_prev=oldincludedir ;;
  1040. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1041. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1042. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1043. oldincludedir=$ac_optarg ;;
  1044. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1045. ac_prev=prefix ;;
  1046. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1047. prefix=$ac_optarg ;;
  1048. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1049. | --program-pre | --program-pr | --program-p)
  1050. ac_prev=program_prefix ;;
  1051. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1052. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1053. program_prefix=$ac_optarg ;;
  1054. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1055. | --program-suf | --program-su | --program-s)
  1056. ac_prev=program_suffix ;;
  1057. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1058. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1059. program_suffix=$ac_optarg ;;
  1060. -program-transform-name | --program-transform-name \
  1061. | --program-transform-nam | --program-transform-na \
  1062. | --program-transform-n | --program-transform- \
  1063. | --program-transform | --program-transfor \
  1064. | --program-transfo | --program-transf \
  1065. | --program-trans | --program-tran \
  1066. | --progr-tra | --program-tr | --program-t)
  1067. ac_prev=program_transform_name ;;
  1068. -program-transform-name=* | --program-transform-name=* \
  1069. | --program-transform-nam=* | --program-transform-na=* \
  1070. | --program-transform-n=* | --program-transform-=* \
  1071. | --program-transform=* | --program-transfor=* \
  1072. | --program-transfo=* | --program-transf=* \
  1073. | --program-trans=* | --program-tran=* \
  1074. | --progr-tra=* | --program-tr=* | --program-t=*)
  1075. program_transform_name=$ac_optarg ;;
  1076. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1077. ac_prev=pdfdir ;;
  1078. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1079. pdfdir=$ac_optarg ;;
  1080. -psdir | --psdir | --psdi | --psd | --ps)
  1081. ac_prev=psdir ;;
  1082. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1083. psdir=$ac_optarg ;;
  1084. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1085. | -silent | --silent | --silen | --sile | --sil)
  1086. silent=yes ;;
  1087. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1088. ac_prev=sbindir ;;
  1089. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1090. | --sbi=* | --sb=*)
  1091. sbindir=$ac_optarg ;;
  1092. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1093. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1094. | --sharedst | --shareds | --shared | --share | --shar \
  1095. | --sha | --sh)
  1096. ac_prev=sharedstatedir ;;
  1097. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1098. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1099. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1100. | --sha=* | --sh=*)
  1101. sharedstatedir=$ac_optarg ;;
  1102. -site | --site | --sit)
  1103. ac_prev=site ;;
  1104. -site=* | --site=* | --sit=*)
  1105. site=$ac_optarg ;;
  1106. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1107. ac_prev=srcdir ;;
  1108. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1109. srcdir=$ac_optarg ;;
  1110. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1111. | --syscon | --sysco | --sysc | --sys | --sy)
  1112. ac_prev=sysconfdir ;;
  1113. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1114. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1115. sysconfdir=$ac_optarg ;;
  1116. -target | --target | --targe | --targ | --tar | --ta | --t)
  1117. ac_prev=target_alias ;;
  1118. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1119. target_alias=$ac_optarg ;;
  1120. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1121. verbose=yes ;;
  1122. -version | --version | --versio | --versi | --vers | -V)
  1123. ac_init_version=: ;;
  1124. -with-* | --with-*)
  1125. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1126. # Reject names that are not valid shell variable names.
  1127. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1128. as_fn_error $? "invalid package name: $ac_useropt"
  1129. ac_useropt_orig=$ac_useropt
  1130. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1131. case $ac_user_opts in
  1132. *"
  1133. "with_$ac_useropt"
  1134. "*) ;;
  1135. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1136. ac_unrecognized_sep=', ';;
  1137. esac
  1138. eval with_$ac_useropt=\$ac_optarg ;;
  1139. -without-* | --without-*)
  1140. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1141. # Reject names that are not valid shell variable names.
  1142. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1143. as_fn_error $? "invalid package name: $ac_useropt"
  1144. ac_useropt_orig=$ac_useropt
  1145. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1146. case $ac_user_opts in
  1147. *"
  1148. "with_$ac_useropt"
  1149. "*) ;;
  1150. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1151. ac_unrecognized_sep=', ';;
  1152. esac
  1153. eval with_$ac_useropt=no ;;
  1154. --x)
  1155. # Obsolete; use --with-x.
  1156. with_x=yes ;;
  1157. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1158. | --x-incl | --x-inc | --x-in | --x-i)
  1159. ac_prev=x_includes ;;
  1160. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1161. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1162. x_includes=$ac_optarg ;;
  1163. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1164. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1165. ac_prev=x_libraries ;;
  1166. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1167. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1168. x_libraries=$ac_optarg ;;
  1169. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1170. Try \`$0 --help' for more information"
  1171. ;;
  1172. *=*)
  1173. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1174. # Reject names that are not valid shell variable names.
  1175. case $ac_envvar in #(
  1176. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1177. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1178. esac
  1179. eval $ac_envvar=\$ac_optarg
  1180. export $ac_envvar ;;
  1181. *)
  1182. # FIXME: should be removed in autoconf 3.0.
  1183. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1184. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1185. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1186. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1187. ;;
  1188. esac
  1189. done
  1190. if test -n "$ac_prev"; then
  1191. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1192. as_fn_error $? "missing argument to $ac_option"
  1193. fi
  1194. if test -n "$ac_unrecognized_opts"; then
  1195. case $enable_option_checking in
  1196. no) ;;
  1197. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1198. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1199. esac
  1200. fi
  1201. # Check all directory arguments for consistency.
  1202. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1203. datadir sysconfdir sharedstatedir localstatedir includedir \
  1204. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1205. libdir localedir mandir
  1206. do
  1207. eval ac_val=\$$ac_var
  1208. # Remove trailing slashes.
  1209. case $ac_val in
  1210. */ )
  1211. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1212. eval $ac_var=\$ac_val;;
  1213. esac
  1214. # Be sure to have absolute directory names.
  1215. case $ac_val in
  1216. [\\/$]* | ?:[\\/]* ) continue;;
  1217. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1218. esac
  1219. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1220. done
  1221. # There might be people who depend on the old broken behavior: `$host'
  1222. # used to hold the argument of --host etc.
  1223. # FIXME: To remove some day.
  1224. build=$build_alias
  1225. host=$host_alias
  1226. target=$target_alias
  1227. # FIXME: To remove some day.
  1228. if test "x$host_alias" != x; then
  1229. if test "x$build_alias" = x; then
  1230. cross_compiling=maybe
  1231. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1232. If a cross compiler is detected then cross compile mode will be used" >&2
  1233. elif test "x$build_alias" != "x$host_alias"; then
  1234. cross_compiling=yes
  1235. fi
  1236. fi
  1237. ac_tool_prefix=
  1238. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1239. test "$silent" = yes && exec 6>/dev/null
  1240. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1241. ac_ls_di=`ls -di .` &&
  1242. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1243. as_fn_error $? "working directory cannot be determined"
  1244. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1245. as_fn_error $? "pwd does not report name of working directory"
  1246. # Find the source files, if location was not specified.
  1247. if test -z "$srcdir"; then
  1248. ac_srcdir_defaulted=yes
  1249. # Try the directory containing this script, then the parent directory.
  1250. ac_confdir=`$as_dirname -- "$as_myself" ||
  1251. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1252. X"$as_myself" : 'X\(//\)[^/]' \| \
  1253. X"$as_myself" : 'X\(//\)$' \| \
  1254. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1255. $as_echo X"$as_myself" |
  1256. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1257. s//\1/
  1258. q
  1259. }
  1260. /^X\(\/\/\)[^/].*/{
  1261. s//\1/
  1262. q
  1263. }
  1264. /^X\(\/\/\)$/{
  1265. s//\1/
  1266. q
  1267. }
  1268. /^X\(\/\).*/{
  1269. s//\1/
  1270. q
  1271. }
  1272. s/.*/./; q'`
  1273. srcdir=$ac_confdir
  1274. if test ! -r "$srcdir/$ac_unique_file"; then
  1275. srcdir=..
  1276. fi
  1277. else
  1278. ac_srcdir_defaulted=no
  1279. fi
  1280. if test ! -r "$srcdir/$ac_unique_file"; then
  1281. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1282. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1283. fi
  1284. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1285. ac_abs_confdir=`(
  1286. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1287. pwd)`
  1288. # When building in place, set srcdir=.
  1289. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1290. srcdir=.
  1291. fi
  1292. # Remove unnecessary trailing slashes from srcdir.
  1293. # Double slashes in file names in object file debugging info
  1294. # mess up M-x gdb in Emacs.
  1295. case $srcdir in
  1296. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1297. esac
  1298. for ac_var in $ac_precious_vars; do
  1299. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1300. eval ac_env_${ac_var}_value=\$${ac_var}
  1301. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1302. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1303. done
  1304. #
  1305. # Report the --help message.
  1306. #
  1307. if test "$ac_init_help" = "long"; then
  1308. # Omit some internal or obsolete options to make the list less imposing.
  1309. # This message is too long to be a string in the A/UX 3.1 sh.
  1310. cat <<_ACEOF
  1311. \`configure' configures file 5.13 to adapt to many kinds of systems.
  1312. Usage: $0 [OPTION]... [VAR=VALUE]...
  1313. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1314. VAR=VALUE. See below for descriptions of some of the useful variables.
  1315. Defaults for the options are specified in brackets.
  1316. Configuration:
  1317. -h, --help display this help and exit
  1318. --help=short display options specific to this package
  1319. --help=recursive display the short help of all the included packages
  1320. -V, --version display version information and exit
  1321. -q, --quiet, --silent do not print \`checking ...' messages
  1322. --cache-file=FILE cache test results in FILE [disabled]
  1323. -C, --config-cache alias for \`--cache-file=config.cache'
  1324. -n, --no-create do not create output files
  1325. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1326. Installation directories:
  1327. --prefix=PREFIX install architecture-independent files in PREFIX
  1328. [$ac_default_prefix]
  1329. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1330. [PREFIX]
  1331. By default, \`make install' will install all the files in
  1332. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1333. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1334. for instance \`--prefix=\$HOME'.
  1335. For better control, use the options below.
  1336. Fine tuning of the installation directories:
  1337. --bindir=DIR user executables [EPREFIX/bin]
  1338. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1339. --libexecdir=DIR program executables [EPREFIX/libexec]
  1340. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1341. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1342. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1343. --libdir=DIR object code libraries [EPREFIX/lib]
  1344. --includedir=DIR C header files [PREFIX/include]
  1345. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1346. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1347. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1348. --infodir=DIR info documentation [DATAROOTDIR/info]
  1349. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1350. --mandir=DIR man documentation [DATAROOTDIR/man]
  1351. --docdir=DIR documentation root [DATAROOTDIR/doc/file]
  1352. --htmldir=DIR html documentation [DOCDIR]
  1353. --dvidir=DIR dvi documentation [DOCDIR]
  1354. --pdfdir=DIR pdf documentation [DOCDIR]
  1355. --psdir=DIR ps documentation [DOCDIR]
  1356. _ACEOF
  1357. cat <<\_ACEOF
  1358. Program names:
  1359. --program-prefix=PREFIX prepend PREFIX to installed program names
  1360. --program-suffix=SUFFIX append SUFFIX to installed program names
  1361. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1362. System types:
  1363. --build=BUILD configure for building on BUILD [guessed]
  1364. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1365. _ACEOF
  1366. fi
  1367. if test -n "$ac_init_help"; then
  1368. case $ac_init_help in
  1369. short | recursive ) echo "Configuration of file 5.13:";;
  1370. esac
  1371. cat <<\_ACEOF
  1372. Optional Features:
  1373. --disable-option-checking ignore unrecognized --enable/--with options
  1374. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1375. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1376. --enable-silent-rules less verbose build output (undo: `make V=1')
  1377. --disable-silent-rules verbose build output (undo: `make V=0')
  1378. --disable-elf disable builtin ELF support
  1379. --disable-elf-core disable ELF core file support
  1380. --enable-fsect-man5 enable file formats in man section 5
  1381. --disable-dependency-tracking speeds up one-time build
  1382. --enable-dependency-tracking do not reject slow dependency extractors
  1383. --enable-static[=PKGS] build static libraries [default=no]
  1384. --enable-shared[=PKGS] build shared libraries [default=yes]
  1385. --enable-fast-install[=PKGS]
  1386. optimize for fast installation [default=yes]
  1387. --disable-libtool-lock avoid locking (might break parallel builds)
  1388. --disable-largefile omit support for large files
  1389. --disable-warnings disable compiler warnings
  1390. Optional Packages:
  1391. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1392. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1393. --with-pic try to use only PIC/non-PIC objects [default=use
  1394. both]
  1395. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1396. Some influential environment variables:
  1397. CC C compiler command
  1398. CFLAGS C compiler flags
  1399. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1400. nonstandard directory <lib dir>
  1401. LIBS libraries to pass to the linker, e.g. -l<library>
  1402. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1403. you have headers in a nonstandard directory <include dir>
  1404. CPP C preprocessor
  1405. Use these variables to override the choices made by `configure' or to help
  1406. it to find libraries and programs with nonstandard names/locations.
  1407. Report bugs to <christos@astron.com>.
  1408. _ACEOF
  1409. ac_status=$?
  1410. fi
  1411. if test "$ac_init_help" = "recursive"; then
  1412. # If there are subdirs, report their specific --help.
  1413. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1414. test -d "$ac_dir" ||
  1415. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1416. continue
  1417. ac_builddir=.
  1418. case "$ac_dir" in
  1419. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1420. *)
  1421. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1422. # A ".." for each directory in $ac_dir_suffix.
  1423. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1424. case $ac_top_builddir_sub in
  1425. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1426. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1427. esac ;;
  1428. esac
  1429. ac_abs_top_builddir=$ac_pwd
  1430. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1431. # for backward compatibility:
  1432. ac_top_builddir=$ac_top_build_prefix
  1433. case $srcdir in
  1434. .) # We are building in place.
  1435. ac_srcdir=.
  1436. ac_top_srcdir=$ac_top_builddir_sub
  1437. ac_abs_top_srcdir=$ac_pwd ;;
  1438. [\\/]* | ?:[\\/]* ) # Absolute name.
  1439. ac_srcdir=$srcdir$ac_dir_suffix;
  1440. ac_top_srcdir=$srcdir
  1441. ac_abs_top_srcdir=$srcdir ;;
  1442. *) # Relative name.
  1443. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1444. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1445. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1446. esac
  1447. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1448. cd "$ac_dir" || { ac_status=$?; continue; }
  1449. # Check for guested configure.
  1450. if test -f "$ac_srcdir/configure.gnu"; then
  1451. echo &&
  1452. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1453. elif test -f "$ac_srcdir/configure"; then
  1454. echo &&
  1455. $SHELL "$ac_srcdir/configure" --help=recursive
  1456. else
  1457. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1458. fi || ac_status=$?
  1459. cd "$ac_pwd" || { ac_status=$?; break; }
  1460. done
  1461. fi
  1462. test -n "$ac_init_help" && exit $ac_status
  1463. if $ac_init_version; then
  1464. cat <<\_ACEOF
  1465. file configure 5.13
  1466. generated by GNU Autoconf 2.68
  1467. Copyright (C) 2010 Free Software Foundation, Inc.
  1468. This configure script is free software; the Free Software Foundation
  1469. gives unlimited permission to copy, distribute and modify it.
  1470. _ACEOF
  1471. exit
  1472. fi
  1473. ## ------------------------ ##
  1474. ## Autoconf initialization. ##
  1475. ## ------------------------ ##
  1476. # ac_fn_c_try_compile LINENO
  1477. # --------------------------
  1478. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1479. ac_fn_c_try_compile ()
  1480. {
  1481. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1482. rm -f conftest.$ac_objext
  1483. if { { ac_try="$ac_compile"
  1484. case "(($ac_try" in
  1485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1486. *) ac_try_echo=$ac_try;;
  1487. esac
  1488. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1489. $as_echo "$ac_try_echo"; } >&5
  1490. (eval "$ac_compile") 2>conftest.err
  1491. ac_status=$?
  1492. if test -s conftest.err; then
  1493. grep -v '^ *+' conftest.err >conftest.er1
  1494. cat conftest.er1 >&5
  1495. mv -f conftest.er1 conftest.err
  1496. fi
  1497. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1498. test $ac_status = 0; } && {
  1499. test -z "$ac_c_werror_flag" ||
  1500. test ! -s conftest.err
  1501. } && test -s conftest.$ac_objext; then :
  1502. ac_retval=0
  1503. else
  1504. $as_echo "$as_me: failed program was:" >&5
  1505. sed 's/^/| /' conftest.$ac_ext >&5
  1506. ac_retval=1
  1507. fi
  1508. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1509. as_fn_set_status $ac_retval
  1510. } # ac_fn_c_try_compile
  1511. # ac_fn_c_try_cpp LINENO
  1512. # ----------------------
  1513. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1514. ac_fn_c_try_cpp ()
  1515. {
  1516. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1517. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1518. case "(($ac_try" in
  1519. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1520. *) ac_try_echo=$ac_try;;
  1521. esac
  1522. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1523. $as_echo "$ac_try_echo"; } >&5
  1524. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1525. ac_status=$?
  1526. if test -s conftest.err; then
  1527. grep -v '^ *+' conftest.err >conftest.er1
  1528. cat conftest.er1 >&5
  1529. mv -f conftest.er1 conftest.err
  1530. fi
  1531. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1532. test $ac_status = 0; } > conftest.i && {
  1533. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1534. test ! -s conftest.err
  1535. }; then :
  1536. ac_retval=0
  1537. else
  1538. $as_echo "$as_me: failed program was:" >&5
  1539. sed 's/^/| /' conftest.$ac_ext >&5
  1540. ac_retval=1
  1541. fi
  1542. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1543. as_fn_set_status $ac_retval
  1544. } # ac_fn_c_try_cpp
  1545. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1546. # -------------------------------------------------------
  1547. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1548. # the include files in INCLUDES and setting the cache variable VAR
  1549. # accordingly.
  1550. ac_fn_c_check_header_mongrel ()
  1551. {
  1552. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1553. if eval \${$3+:} false; then :
  1554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1555. $as_echo_n "checking for $2... " >&6; }
  1556. if eval \${$3+:} false; then :
  1557. $as_echo_n "(cached) " >&6
  1558. fi
  1559. eval ac_res=\$$3
  1560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1561. $as_echo "$ac_res" >&6; }
  1562. else
  1563. # Is the header compilable?
  1564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1565. $as_echo_n "checking $2 usability... " >&6; }
  1566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1567. /* end confdefs.h. */
  1568. $4
  1569. #include <$2>
  1570. _ACEOF
  1571. if ac_fn_c_try_compile "$LINENO"; then :
  1572. ac_header_compiler=yes
  1573. else
  1574. ac_header_compiler=no
  1575. fi
  1576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1578. $as_echo "$ac_header_compiler" >&6; }
  1579. # Is the header present?
  1580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1581. $as_echo_n "checking $2 presence... " >&6; }
  1582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1583. /* end confdefs.h. */
  1584. #include <$2>
  1585. _ACEOF
  1586. if ac_fn_c_try_cpp "$LINENO"; then :
  1587. ac_header_preproc=yes
  1588. else
  1589. ac_header_preproc=no
  1590. fi
  1591. rm -f conftest.err conftest.i conftest.$ac_ext
  1592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1593. $as_echo "$ac_header_preproc" >&6; }
  1594. # So? What about this header?
  1595. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1596. yes:no: )
  1597. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1598. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1599. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1600. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1601. ;;
  1602. no:yes:* )
  1603. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1604. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1605. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1606. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1607. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1608. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1609. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1610. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1611. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1612. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1613. ( $as_echo "## ---------------------------------- ##
  1614. ## Report this to christos@astron.com ##
  1615. ## ---------------------------------- ##"
  1616. ) | sed "s/^/$as_me: WARNING: /" >&2
  1617. ;;
  1618. esac
  1619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1620. $as_echo_n "checking for $2... " >&6; }
  1621. if eval \${$3+:} false; then :
  1622. $as_echo_n "(cached) " >&6
  1623. else
  1624. eval "$3=\$ac_header_compiler"
  1625. fi
  1626. eval ac_res=\$$3
  1627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1628. $as_echo "$ac_res" >&6; }
  1629. fi
  1630. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1631. } # ac_fn_c_check_header_mongrel
  1632. # ac_fn_c_try_run LINENO
  1633. # ----------------------
  1634. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1635. # that executables *can* be run.
  1636. ac_fn_c_try_run ()
  1637. {
  1638. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1639. if { { ac_try="$ac_link"
  1640. case "(($ac_try" in
  1641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1642. *) ac_try_echo=$ac_try;;
  1643. esac
  1644. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1645. $as_echo "$ac_try_echo"; } >&5
  1646. (eval "$ac_link") 2>&5
  1647. ac_status=$?
  1648. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1649. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1650. { { case "(($ac_try" in
  1651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1652. *) ac_try_echo=$ac_try;;
  1653. esac
  1654. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1655. $as_echo "$ac_try_echo"; } >&5
  1656. (eval "$ac_try") 2>&5
  1657. ac_status=$?
  1658. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1659. test $ac_status = 0; }; }; then :
  1660. ac_retval=0
  1661. else
  1662. $as_echo "$as_me: program exited with status $ac_status" >&5
  1663. $as_echo "$as_me: failed program was:" >&5
  1664. sed 's/^/| /' conftest.$ac_ext >&5
  1665. ac_retval=$ac_status
  1666. fi
  1667. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1668. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1669. as_fn_set_status $ac_retval
  1670. } # ac_fn_c_try_run
  1671. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1672. # -------------------------------------------------------
  1673. # Tests whether HEADER exists and can be compiled using the include files in
  1674. # INCLUDES, setting the cache variable VAR accordingly.
  1675. ac_fn_c_check_header_compile ()
  1676. {
  1677. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1679. $as_echo_n "checking for $2... " >&6; }
  1680. if eval \${$3+:} false; then :
  1681. $as_echo_n "(cached) " >&6
  1682. else
  1683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1684. /* end confdefs.h. */
  1685. $4
  1686. #include <$2>
  1687. _ACEOF
  1688. if ac_fn_c_try_compile "$LINENO"; then :
  1689. eval "$3=yes"
  1690. else
  1691. eval "$3=no"
  1692. fi
  1693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1694. fi
  1695. eval ac_res=\$$3
  1696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1697. $as_echo "$ac_res" >&6; }
  1698. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1699. } # ac_fn_c_check_header_compile
  1700. # ac_fn_c_try_link LINENO
  1701. # -----------------------
  1702. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1703. ac_fn_c_try_link ()
  1704. {
  1705. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1706. rm -f conftest.$ac_objext conftest$ac_exeext
  1707. if { { ac_try="$ac_link"
  1708. case "(($ac_try" in
  1709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1710. *) ac_try_echo=$ac_try;;
  1711. esac
  1712. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1713. $as_echo "$ac_try_echo"; } >&5
  1714. (eval "$ac_link") 2>conftest.err
  1715. ac_status=$?
  1716. if test -s conftest.err; then
  1717. grep -v '^ *+' conftest.err >conftest.er1
  1718. cat conftest.er1 >&5
  1719. mv -f conftest.er1 conftest.err
  1720. fi
  1721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1722. test $ac_status = 0; } && {
  1723. test -z "$ac_c_werror_flag" ||
  1724. test ! -s conftest.err
  1725. } && test -s conftest$ac_exeext && {
  1726. test "$cross_compiling" = yes ||
  1727. $as_test_x conftest$ac_exeext
  1728. }; then :
  1729. ac_retval=0
  1730. else
  1731. $as_echo "$as_me: failed program was:" >&5
  1732. sed 's/^/| /' conftest.$ac_ext >&5
  1733. ac_retval=1
  1734. fi
  1735. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1736. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1737. # interfere with the next link command; also delete a directory that is
  1738. # left behind by Apple's compiler. We do this before executing the actions.
  1739. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1740. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1741. as_fn_set_status $ac_retval
  1742. } # ac_fn_c_try_link
  1743. # ac_fn_c_check_func LINENO FUNC VAR
  1744. # ----------------------------------
  1745. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1746. ac_fn_c_check_func ()
  1747. {
  1748. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1750. $as_echo_n "checking for $2... " >&6; }
  1751. if eval \${$3+:} false; then :
  1752. $as_echo_n "(cached) " >&6
  1753. else
  1754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1755. /* end confdefs.h. */
  1756. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1757. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1758. #define $2 innocuous_$2
  1759. /* System header to define __stub macros and hopefully few prototypes,
  1760. which can conflict with char $2 (); below.
  1761. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1762. <limits.h> exists even on freestanding compilers. */
  1763. #ifdef __STDC__
  1764. # include <limits.h>
  1765. #else
  1766. # include <assert.h>
  1767. #endif
  1768. #undef $2
  1769. /* Override any GCC internal prototype to avoid an error.
  1770. Use char because int might match the return type of a GCC
  1771. builtin and then its argument prototype would still apply. */
  1772. #ifdef __cplusplus
  1773. extern "C"
  1774. #endif
  1775. char $2 ();
  1776. /* The GNU C library defines this for functions which it implements
  1777. to always fail with ENOSYS. Some functions are actually named
  1778. something starting with __ and the normal name is an alias. */
  1779. #if defined __stub_$2 || defined __stub___$2
  1780. choke me
  1781. #endif
  1782. int
  1783. main ()
  1784. {
  1785. return $2 ();
  1786. ;
  1787. return 0;
  1788. }
  1789. _ACEOF
  1790. if ac_fn_c_try_link "$LINENO"; then :
  1791. eval "$3=yes"
  1792. else
  1793. eval "$3=no"
  1794. fi
  1795. rm -f core conftest.err conftest.$ac_objext \
  1796. conftest$ac_exeext conftest.$ac_ext
  1797. fi
  1798. eval ac_res=\$$3
  1799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1800. $as_echo "$ac_res" >&6; }
  1801. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1802. } # ac_fn_c_check_func
  1803. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1804. # -------------------------------------------
  1805. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1806. # variable VAR accordingly.
  1807. ac_fn_c_check_type ()
  1808. {
  1809. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1811. $as_echo_n "checking for $2... " >&6; }
  1812. if eval \${$3+:} false; then :
  1813. $as_echo_n "(cached) " >&6
  1814. else
  1815. eval "$3=no"
  1816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1817. /* end confdefs.h. */
  1818. $4
  1819. int
  1820. main ()
  1821. {
  1822. if (sizeof ($2))
  1823. return 0;
  1824. ;
  1825. return 0;
  1826. }
  1827. _ACEOF
  1828. if ac_fn_c_try_compile "$LINENO"; then :
  1829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1830. /* end confdefs.h. */
  1831. $4
  1832. int
  1833. main ()
  1834. {
  1835. if (sizeof (($2)))
  1836. return 0;
  1837. ;
  1838. return 0;
  1839. }
  1840. _ACEOF
  1841. if ac_fn_c_try_compile "$LINENO"; then :
  1842. else
  1843. eval "$3=yes"
  1844. fi
  1845. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1846. fi
  1847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1848. fi
  1849. eval ac_res=\$$3
  1850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1851. $as_echo "$ac_res" >&6; }
  1852. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1853. } # ac_fn_c_check_type
  1854. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1855. # ----------------------------------------------------
  1856. # Tries to find if the field MEMBER exists in type AGGR, after including
  1857. # INCLUDES, setting cache variable VAR accordingly.
  1858. ac_fn_c_check_member ()
  1859. {
  1860. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1862. $as_echo_n "checking for $2.$3... " >&6; }
  1863. if eval \${$4+:} false; then :
  1864. $as_echo_n "(cached) " >&6
  1865. else
  1866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1867. /* end confdefs.h. */
  1868. $5
  1869. int
  1870. main ()
  1871. {
  1872. static $2 ac_aggr;
  1873. if (ac_aggr.$3)
  1874. return 0;
  1875. ;
  1876. return 0;
  1877. }
  1878. _ACEOF
  1879. if ac_fn_c_try_compile "$LINENO"; then :
  1880. eval "$4=yes"
  1881. else
  1882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1883. /* end confdefs.h. */
  1884. $5
  1885. int
  1886. main ()
  1887. {
  1888. static $2 ac_aggr;
  1889. if (sizeof ac_aggr.$3)
  1890. return 0;
  1891. ;
  1892. return 0;
  1893. }
  1894. _ACEOF
  1895. if ac_fn_c_try_compile "$LINENO"; then :
  1896. eval "$4=yes"
  1897. else
  1898. eval "$4=no"
  1899. fi
  1900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1901. fi
  1902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1903. fi
  1904. eval ac_res=\$$4
  1905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1906. $as_echo "$ac_res" >&6; }
  1907. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1908. } # ac_fn_c_check_member
  1909. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1910. # ---------------------------------------------
  1911. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1912. # accordingly.
  1913. ac_fn_c_check_decl ()
  1914. {
  1915. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1916. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1917. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1919. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1920. if eval \${$3+:} false; then :
  1921. $as_echo_n "(cached) " >&6
  1922. else
  1923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1924. /* end confdefs.h. */
  1925. $4
  1926. int
  1927. main ()
  1928. {
  1929. #ifndef $as_decl_name
  1930. #ifdef __cplusplus
  1931. (void) $as_decl_use;
  1932. #else
  1933. (void) $as_decl_name;
  1934. #endif
  1935. #endif
  1936. ;
  1937. return 0;
  1938. }
  1939. _ACEOF
  1940. if ac_fn_c_try_compile "$LINENO"; then :
  1941. eval "$3=yes"
  1942. else
  1943. eval "$3=no"
  1944. fi
  1945. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1946. fi
  1947. eval ac_res=\$$3
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1949. $as_echo "$ac_res" >&6; }
  1950. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1951. } # ac_fn_c_check_decl
  1952. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1953. # ------------------------------------
  1954. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1955. # accordingly.
  1956. ac_fn_c_find_uintX_t ()
  1957. {
  1958. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1960. $as_echo_n "checking for uint$2_t... " >&6; }
  1961. if eval \${$3+:} false; then :
  1962. $as_echo_n "(cached) " >&6
  1963. else
  1964. eval "$3=no"
  1965. # Order is important - never check a type that is potentially smaller
  1966. # than half of the expected target width.
  1967. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1968. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1970. /* end confdefs.h. */
  1971. $ac_includes_default
  1972. int
  1973. main ()
  1974. {
  1975. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1976. test_array [0] = 0
  1977. ;
  1978. return 0;
  1979. }
  1980. _ACEOF
  1981. if ac_fn_c_try_compile "$LINENO"; then :
  1982. case $ac_type in #(
  1983. uint$2_t) :
  1984. eval "$3=yes" ;; #(
  1985. *) :
  1986. eval "$3=\$ac_type" ;;
  1987. esac
  1988. fi
  1989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1990. if eval test \"x\$"$3"\" = x"no"; then :
  1991. else
  1992. break
  1993. fi
  1994. done
  1995. fi
  1996. eval ac_res=\$$3
  1997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1998. $as_echo "$ac_res" >&6; }
  1999. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2000. } # ac_fn_c_find_uintX_t
  2001. # ac_fn_c_find_intX_t LINENO BITS VAR
  2002. # -----------------------------------
  2003. # Finds a signed integer type with width BITS, setting cache variable VAR
  2004. # accordingly.
  2005. ac_fn_c_find_intX_t ()
  2006. {
  2007. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  2009. $as_echo_n "checking for int$2_t... " >&6; }
  2010. if eval \${$3+:} false; then :
  2011. $as_echo_n "(cached) " >&6
  2012. else
  2013. eval "$3=no"
  2014. # Order is important - never check a type that is potentially smaller
  2015. # than half of the expected target width.
  2016. for ac_type in int$2_t 'int' 'long int' \
  2017. 'long long int' 'short int' 'signed char'; do
  2018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2019. /* end confdefs.h. */
  2020. $ac_includes_default
  2021. enum { N = $2 / 2 - 1 };
  2022. int
  2023. main ()
  2024. {
  2025. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  2026. test_array [0] = 0
  2027. ;
  2028. return 0;
  2029. }
  2030. _ACEOF
  2031. if ac_fn_c_try_compile "$LINENO"; then :
  2032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2033. /* end confdefs.h. */
  2034. $ac_includes_default
  2035. enum { N = $2 / 2 - 1 };
  2036. int
  2037. main ()
  2038. {
  2039. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  2040. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  2041. test_array [0] = 0
  2042. ;
  2043. return 0;
  2044. }
  2045. _ACEOF
  2046. if ac_fn_c_try_compile "$LINENO"; then :
  2047. else
  2048. case $ac_type in #(
  2049. int$2_t) :
  2050. eval "$3=yes" ;; #(
  2051. *) :
  2052. eval "$3=\$ac_type" ;;
  2053. esac
  2054. fi
  2055. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2056. fi
  2057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2058. if eval test \"x\$"$3"\" = x"no"; then :
  2059. else
  2060. break
  2061. fi
  2062. done
  2063. fi
  2064. eval ac_res=\$$3
  2065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2066. $as_echo "$ac_res" >&6; }
  2067. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2068. } # ac_fn_c_find_intX_t
  2069. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2070. # --------------------------------------------
  2071. # Tries to find the compile-time value of EXPR in a program that includes
  2072. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2073. # computed
  2074. ac_fn_c_compute_int ()
  2075. {
  2076. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2077. if test "$cross_compiling" = yes; then
  2078. # Depending upon the size, compute the lo and hi bounds.
  2079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2080. /* end confdefs.h. */
  2081. $4
  2082. int
  2083. main ()
  2084. {
  2085. static int test_array [1 - 2 * !(($2) >= 0)];
  2086. test_array [0] = 0
  2087. ;
  2088. return 0;
  2089. }
  2090. _ACEOF
  2091. if ac_fn_c_try_compile "$LINENO"; then :
  2092. ac_lo=0 ac_mid=0
  2093. while :; do
  2094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2095. /* end confdefs.h. */
  2096. $4
  2097. int
  2098. main ()
  2099. {
  2100. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2101. test_array [0] = 0
  2102. ;
  2103. return 0;
  2104. }
  2105. _ACEOF
  2106. if ac_fn_c_try_compile "$LINENO"; then :
  2107. ac_hi=$ac_mid; break
  2108. else
  2109. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2110. if test $ac_lo -le $ac_mid; then
  2111. ac_lo= ac_hi=
  2112. break
  2113. fi
  2114. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2115. fi
  2116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2117. done
  2118. else
  2119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2120. /* end confdefs.h. */
  2121. $4
  2122. int
  2123. main ()
  2124. {
  2125. static int test_array [1 - 2 * !(($2) < 0)];
  2126. test_array [0] = 0
  2127. ;
  2128. return 0;
  2129. }
  2130. _ACEOF
  2131. if ac_fn_c_try_compile "$LINENO"; then :
  2132. ac_hi=-1 ac_mid=-1
  2133. while :; do
  2134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2135. /* end confdefs.h. */
  2136. $4
  2137. int
  2138. main ()
  2139. {
  2140. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2141. test_array [0] = 0
  2142. ;
  2143. return 0;
  2144. }
  2145. _ACEOF
  2146. if ac_fn_c_try_compile "$LINENO"; then :
  2147. ac_lo=$ac_mid; break
  2148. else
  2149. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2150. if test $ac_mid -le $ac_hi; then
  2151. ac_lo= ac_hi=
  2152. break
  2153. fi
  2154. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2155. fi
  2156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2157. done
  2158. else
  2159. ac_lo= ac_hi=
  2160. fi
  2161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2162. fi
  2163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2164. # Binary search between lo and hi bounds.
  2165. while test "x$ac_lo" != "x$ac_hi"; do
  2166. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2168. /* end confdefs.h. */
  2169. $4
  2170. int
  2171. main ()
  2172. {
  2173. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2174. test_array [0] = 0
  2175. ;
  2176. return 0;
  2177. }
  2178. _ACEOF
  2179. if ac_fn_c_try_compile "$LINENO"; then :
  2180. ac_hi=$ac_mid
  2181. else
  2182. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2183. fi
  2184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2185. done
  2186. case $ac_lo in #((
  2187. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2188. '') ac_retval=1 ;;
  2189. esac
  2190. else
  2191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2192. /* end confdefs.h. */
  2193. $4
  2194. static long int longval () { return $2; }
  2195. static unsigned long int ulongval () { return $2; }
  2196. #include <stdio.h>
  2197. #include <stdlib.h>
  2198. int
  2199. main ()
  2200. {
  2201. FILE *f = fopen ("conftest.val", "w");
  2202. if (! f)
  2203. return 1;
  2204. if (($2) < 0)
  2205. {
  2206. long int i = longval ();
  2207. if (i != ($2))
  2208. return 1;
  2209. fprintf (f, "%ld", i);
  2210. }
  2211. else
  2212. {
  2213. unsigned long int i = ulongval ();
  2214. if (i != ($2))
  2215. return 1;
  2216. fprintf (f, "%lu", i);
  2217. }
  2218. /* Do not output a trailing newline, as this causes \r\n confusion
  2219. on some platforms. */
  2220. return ferror (f) || fclose (f) != 0;
  2221. ;
  2222. return 0;
  2223. }
  2224. _ACEOF
  2225. if ac_fn_c_try_run "$LINENO"; then :
  2226. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2227. else
  2228. ac_retval=1
  2229. fi
  2230. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2231. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2232. rm -f conftest.val
  2233. fi
  2234. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2235. as_fn_set_status $ac_retval
  2236. } # ac_fn_c_compute_int
  2237. cat >config.log <<_ACEOF
  2238. This file contains any messages produced by compilers while
  2239. running configure, to aid debugging if configure makes a mistake.
  2240. It was created by file $as_me 5.13, which was
  2241. generated by GNU Autoconf 2.68. Invocation command line was
  2242. $ $0 $@
  2243. _ACEOF
  2244. exec 5>>config.log
  2245. {
  2246. cat <<_ASUNAME
  2247. ## --------- ##
  2248. ## Platform. ##
  2249. ## --------- ##
  2250. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2251. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2252. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2253. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2254. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2255. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2256. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2257. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2258. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2259. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2260. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2261. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2262. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2263. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2264. _ASUNAME
  2265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2266. for as_dir in $PATH
  2267. do
  2268. IFS=$as_save_IFS
  2269. test -z "$as_dir" && as_dir=.
  2270. $as_echo "PATH: $as_dir"
  2271. done
  2272. IFS=$as_save_IFS
  2273. } >&5
  2274. cat >&5 <<_ACEOF
  2275. ## ----------- ##
  2276. ## Core tests. ##
  2277. ## ----------- ##
  2278. _ACEOF
  2279. # Keep a trace of the command line.
  2280. # Strip out --no-create and --no-recursion so they do not pile up.
  2281. # Strip out --silent because we don't want to record it for future runs.
  2282. # Also quote any args containing shell meta-characters.
  2283. # Make two passes to allow for proper duplicate-argument suppression.
  2284. ac_configure_args=
  2285. ac_configure_args0=
  2286. ac_configure_args1=
  2287. ac_must_keep_next=false
  2288. for ac_pass in 1 2
  2289. do
  2290. for ac_arg
  2291. do
  2292. case $ac_arg in
  2293. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2294. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2295. | -silent | --silent | --silen | --sile | --sil)
  2296. continue ;;
  2297. *\'*)
  2298. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2299. esac
  2300. case $ac_pass in
  2301. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2302. 2)
  2303. as_fn_append ac_configure_args1 " '$ac_arg'"
  2304. if test $ac_must_keep_next = true; then
  2305. ac_must_keep_next=false # Got value, back to normal.
  2306. else
  2307. case $ac_arg in
  2308. *=* | --config-cache | -C | -disable-* | --disable-* \
  2309. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2310. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2311. | -with-* | --with-* | -without-* | --without-* | --x)
  2312. case "$ac_configure_args0 " in
  2313. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2314. esac
  2315. ;;
  2316. -* ) ac_must_keep_next=true ;;
  2317. esac
  2318. fi
  2319. as_fn_append ac_configure_args " '$ac_arg'"
  2320. ;;
  2321. esac
  2322. done
  2323. done
  2324. { ac_configure_args0=; unset ac_configure_args0;}
  2325. { ac_configure_args1=; unset ac_configure_args1;}
  2326. # When interrupted or exit'd, cleanup temporary files, and complete
  2327. # config.log. We remove comments because anyway the quotes in there
  2328. # would cause problems or look ugly.
  2329. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2330. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2331. trap 'exit_status=$?
  2332. # Save into config.log some information that might help in debugging.
  2333. {
  2334. echo
  2335. $as_echo "## ---------------- ##
  2336. ## Cache variables. ##
  2337. ## ---------------- ##"
  2338. echo
  2339. # The following way of writing the cache mishandles newlines in values,
  2340. (
  2341. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2342. eval ac_val=\$$ac_var
  2343. case $ac_val in #(
  2344. *${as_nl}*)
  2345. case $ac_var in #(
  2346. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2347. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2348. esac
  2349. case $ac_var in #(
  2350. _ | IFS | as_nl) ;; #(
  2351. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2352. *) { eval $ac_var=; unset $ac_var;} ;;
  2353. esac ;;
  2354. esac
  2355. done
  2356. (set) 2>&1 |
  2357. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2358. *${as_nl}ac_space=\ *)
  2359. sed -n \
  2360. "s/'\''/'\''\\\\'\'''\''/g;
  2361. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2362. ;; #(
  2363. *)
  2364. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2365. ;;
  2366. esac |
  2367. sort
  2368. )
  2369. echo
  2370. $as_echo "## ----------------- ##
  2371. ## Output variables. ##
  2372. ## ----------------- ##"
  2373. echo
  2374. for ac_var in $ac_subst_vars
  2375. do
  2376. eval ac_val=\$$ac_var
  2377. case $ac_val in
  2378. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2379. esac
  2380. $as_echo "$ac_var='\''$ac_val'\''"
  2381. done | sort
  2382. echo
  2383. if test -n "$ac_subst_files"; then
  2384. $as_echo "## ------------------- ##
  2385. ## File substitutions. ##
  2386. ## ------------------- ##"
  2387. echo
  2388. for ac_var in $ac_subst_files
  2389. do
  2390. eval ac_val=\$$ac_var
  2391. case $ac_val in
  2392. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2393. esac
  2394. $as_echo "$ac_var='\''$ac_val'\''"
  2395. done | sort
  2396. echo
  2397. fi
  2398. if test -s confdefs.h; then
  2399. $as_echo "## ----------- ##
  2400. ## confdefs.h. ##
  2401. ## ----------- ##"
  2402. echo
  2403. cat confdefs.h
  2404. echo
  2405. fi
  2406. test "$ac_signal" != 0 &&
  2407. $as_echo "$as_me: caught signal $ac_signal"
  2408. $as_echo "$as_me: exit $exit_status"
  2409. } >&5
  2410. rm -f core *.core core.conftest.* &&
  2411. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2412. exit $exit_status
  2413. ' 0
  2414. for ac_signal in 1 2 13 15; do
  2415. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2416. done
  2417. ac_signal=0
  2418. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2419. rm -f -r conftest* confdefs.h
  2420. $as_echo "/* confdefs.h */" > confdefs.h
  2421. # Predefined preprocessor variables.
  2422. cat >>confdefs.h <<_ACEOF
  2423. #define PACKAGE_NAME "$PACKAGE_NAME"
  2424. _ACEOF
  2425. cat >>confdefs.h <<_ACEOF
  2426. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2427. _ACEOF
  2428. cat >>confdefs.h <<_ACEOF
  2429. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2430. _ACEOF
  2431. cat >>confdefs.h <<_ACEOF
  2432. #define PACKAGE_STRING "$PACKAGE_STRING"
  2433. _ACEOF
  2434. cat >>confdefs.h <<_ACEOF
  2435. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2436. _ACEOF
  2437. cat >>confdefs.h <<_ACEOF
  2438. #define PACKAGE_URL "$PACKAGE_URL"
  2439. _ACEOF
  2440. # Let the site file select an alternate cache file if it wants to.
  2441. # Prefer an explicitly selected file to automatically selected ones.
  2442. ac_site_file1=NONE
  2443. ac_site_file2=NONE
  2444. if test -n "$CONFIG_SITE"; then
  2445. # We do not want a PATH search for config.site.
  2446. case $CONFIG_SITE in #((
  2447. -*) ac_site_file1=./$CONFIG_SITE;;
  2448. */*) ac_site_file1=$CONFIG_SITE;;
  2449. *) ac_site_file1=./$CONFIG_SITE;;
  2450. esac
  2451. elif test "x$prefix" != xNONE; then
  2452. ac_site_file1=$prefix/share/config.site
  2453. ac_site_file2=$prefix/etc/config.site
  2454. else
  2455. ac_site_file1=$ac_default_prefix/share/config.site
  2456. ac_site_file2=$ac_default_prefix/etc/config.site
  2457. fi
  2458. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2459. do
  2460. test "x$ac_site_file" = xNONE && continue
  2461. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2462. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2463. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2464. sed 's/^/| /' "$ac_site_file" >&5
  2465. . "$ac_site_file" \
  2466. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2467. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2468. as_fn_error $? "failed to load site script $ac_site_file
  2469. See \`config.log' for more details" "$LINENO" 5; }
  2470. fi
  2471. done
  2472. if test -r "$cache_file"; then
  2473. # Some versions of bash will fail to source /dev/null (special files
  2474. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2475. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2476. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2477. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2478. case $cache_file in
  2479. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2480. *) . "./$cache_file";;
  2481. esac
  2482. fi
  2483. else
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2485. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2486. >$cache_file
  2487. fi
  2488. as_fn_append ac_header_list " stdlib.h"
  2489. as_fn_append ac_header_list " unistd.h"
  2490. as_fn_append ac_header_list " sys/param.h"
  2491. # Check that the precious variables saved in the cache have kept the same
  2492. # value.
  2493. ac_cache_corrupted=false
  2494. for ac_var in $ac_precious_vars; do
  2495. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2496. eval ac_new_set=\$ac_env_${ac_var}_set
  2497. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2498. eval ac_new_val=\$ac_env_${ac_var}_value
  2499. case $ac_old_set,$ac_new_set in
  2500. set,)
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2502. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2503. ac_cache_corrupted=: ;;
  2504. ,set)
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2506. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2507. ac_cache_corrupted=: ;;
  2508. ,);;
  2509. *)
  2510. if test "x$ac_old_val" != "x$ac_new_val"; then
  2511. # differences in whitespace do not lead to failure.
  2512. ac_old_val_w=`echo x $ac_old_val`
  2513. ac_new_val_w=`echo x $ac_new_val`
  2514. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2516. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2517. ac_cache_corrupted=:
  2518. else
  2519. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2520. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2521. eval $ac_var=\$ac_old_val
  2522. fi
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2524. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2525. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2526. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2527. fi;;
  2528. esac
  2529. # Pass precious variables to config.status.
  2530. if test "$ac_new_set" = set; then
  2531. case $ac_new_val in
  2532. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2533. *) ac_arg=$ac_var=$ac_new_val ;;
  2534. esac
  2535. case " $ac_configure_args " in
  2536. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2537. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2538. esac
  2539. fi
  2540. done
  2541. if $ac_cache_corrupted; then
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2543. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2545. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2546. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2547. fi
  2548. ## -------------------- ##
  2549. ## Main body of script. ##
  2550. ## -------------------- ##
  2551. ac_ext=c
  2552. ac_cpp='$CPP $CPPFLAGS'
  2553. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2554. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2555. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2556. am__api_version='1.11'
  2557. ac_aux_dir=
  2558. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2559. if test -f "$ac_dir/install-sh"; then
  2560. ac_aux_dir=$ac_dir
  2561. ac_install_sh="$ac_aux_dir/install-sh -c"
  2562. break
  2563. elif test -f "$ac_dir/install.sh"; then
  2564. ac_aux_dir=$ac_dir
  2565. ac_install_sh="$ac_aux_dir/install.sh -c"
  2566. break
  2567. elif test -f "$ac_dir/shtool"; then
  2568. ac_aux_dir=$ac_dir
  2569. ac_install_sh="$ac_aux_dir/shtool install -c"
  2570. break
  2571. fi
  2572. done
  2573. if test -z "$ac_aux_dir"; then
  2574. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2575. fi
  2576. # These three variables are undocumented and unsupported,
  2577. # and are intended to be withdrawn in a future Autoconf release.
  2578. # They can cause serious problems if a builder's source tree is in a directory
  2579. # whose full name contains unusual characters.
  2580. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2581. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2582. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2583. # Find a good install program. We prefer a C program (faster),
  2584. # so one script is as good as another. But avoid the broken or
  2585. # incompatible versions:
  2586. # SysV /etc/install, /usr/sbin/install
  2587. # SunOS /usr/etc/install
  2588. # IRIX /sbin/install
  2589. # AIX /bin/install
  2590. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2591. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2592. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2593. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2594. # OS/2's system install, which has a completely different semantic
  2595. # ./install, which can be erroneously created by make from ./install.sh.
  2596. # Reject install programs that cannot install multiple files.
  2597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2598. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2599. if test -z "$INSTALL"; then
  2600. if ${ac_cv_path_install+:} false; then :
  2601. $as_echo_n "(cached) " >&6
  2602. else
  2603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2604. for as_dir in $PATH
  2605. do
  2606. IFS=$as_save_IFS
  2607. test -z "$as_dir" && as_dir=.
  2608. # Account for people who put trailing slashes in PATH elements.
  2609. case $as_dir/ in #((
  2610. ./ | .// | /[cC]/* | \
  2611. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2612. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2613. /usr/ucb/* ) ;;
  2614. *)
  2615. # OSF1 and SCO ODT 3.0 have their own names for install.
  2616. # Don't use installbsd from OSF since it installs stuff as root
  2617. # by default.
  2618. for ac_prog in ginstall scoinst install; do
  2619. for ac_exec_ext in '' $ac_executable_extensions; do
  2620. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2621. if test $ac_prog = install &&
  2622. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2623. # AIX install. It has an incompatible calling convention.
  2624. :
  2625. elif test $ac_prog = install &&
  2626. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2627. # program-specific install script used by HP pwplus--don't use.
  2628. :
  2629. else
  2630. rm -rf conftest.one conftest.two conftest.dir
  2631. echo one > conftest.one
  2632. echo two > conftest.two
  2633. mkdir conftest.dir
  2634. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2635. test -s conftest.one && test -s conftest.two &&
  2636. test -s conftest.dir/conftest.one &&
  2637. test -s conftest.dir/conftest.two
  2638. then
  2639. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2640. break 3
  2641. fi
  2642. fi
  2643. fi
  2644. done
  2645. done
  2646. ;;
  2647. esac
  2648. done
  2649. IFS=$as_save_IFS
  2650. rm -rf conftest.one conftest.two conftest.dir
  2651. fi
  2652. if test "${ac_cv_path_install+set}" = set; then
  2653. INSTALL=$ac_cv_path_install
  2654. else
  2655. # As a last resort, use the slow shell script. Don't cache a
  2656. # value for INSTALL within a source directory, because that will
  2657. # break other packages using the cache if that directory is
  2658. # removed, or if the value is a relative name.
  2659. INSTALL=$ac_install_sh
  2660. fi
  2661. fi
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2663. $as_echo "$INSTALL" >&6; }
  2664. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2665. # It thinks the first close brace ends the variable substitution.
  2666. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2667. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2668. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2670. $as_echo_n "checking whether build environment is sane... " >&6; }
  2671. # Just in case
  2672. sleep 1
  2673. echo timestamp > conftest.file
  2674. # Reject unsafe characters in $srcdir or the absolute working directory
  2675. # name. Accept space and tab only in the latter.
  2676. am_lf='
  2677. '
  2678. case `pwd` in
  2679. *[\\\"\#\$\&\'\`$am_lf]*)
  2680. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2681. esac
  2682. case $srcdir in
  2683. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2684. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2685. esac
  2686. # Do `set' in a subshell so we don't clobber the current shell's
  2687. # arguments. Must try -L first in case configure is actually a
  2688. # symlink; some systems play weird games with the mod time of symlinks
  2689. # (eg FreeBSD returns the mod time of the symlink's containing
  2690. # directory).
  2691. if (
  2692. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2693. if test "$*" = "X"; then
  2694. # -L didn't work.
  2695. set X `ls -t "$srcdir/configure" conftest.file`
  2696. fi
  2697. rm -f conftest.file
  2698. if test "$*" != "X $srcdir/configure conftest.file" \
  2699. && test "$*" != "X conftest.file $srcdir/configure"; then
  2700. # If neither matched, then we have a broken ls. This can happen
  2701. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2702. # broken ls alias from the environment. This has actually
  2703. # happened. Such a system could not be considered "sane".
  2704. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2705. alias in your environment" "$LINENO" 5
  2706. fi
  2707. test "$2" = conftest.file
  2708. )
  2709. then
  2710. # Ok.
  2711. :
  2712. else
  2713. as_fn_error $? "newly created file is older than distributed files!
  2714. Check your system clock" "$LINENO" 5
  2715. fi
  2716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2717. $as_echo "yes" >&6; }
  2718. test "$program_prefix" != NONE &&
  2719. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2720. # Use a double $ so make ignores it.
  2721. test "$program_suffix" != NONE &&
  2722. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2723. # Double any \ or $.
  2724. # By default was `s,x,x', remove it if useless.
  2725. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2726. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2727. # expand $ac_aux_dir to an absolute path
  2728. am_aux_dir=`cd $ac_aux_dir && pwd`
  2729. if test x"${MISSING+set}" != xset; then
  2730. case $am_aux_dir in
  2731. *\ * | *\ *)
  2732. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2733. *)
  2734. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2735. esac
  2736. fi
  2737. # Use eval to expand $SHELL
  2738. if eval "$MISSING --run true"; then
  2739. am_missing_run="$MISSING --run "
  2740. else
  2741. am_missing_run=
  2742. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2743. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2744. fi
  2745. if test x"${install_sh}" != xset; then
  2746. case $am_aux_dir in
  2747. *\ * | *\ *)
  2748. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2749. *)
  2750. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2751. esac
  2752. fi
  2753. # Installed binaries are usually stripped using `strip' when the user
  2754. # run `make install-strip'. However `strip' might not be the right
  2755. # tool to use in cross-compilation environments, therefore Automake
  2756. # will honor the `STRIP' environment variable to overrule this program.
  2757. if test "$cross_compiling" != no; then
  2758. if test -n "$ac_tool_prefix"; then
  2759. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2760. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2762. $as_echo_n "checking for $ac_word... " >&6; }
  2763. if ${ac_cv_prog_STRIP+:} false; then :
  2764. $as_echo_n "(cached) " >&6
  2765. else
  2766. if test -n "$STRIP"; then
  2767. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2768. else
  2769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2770. for as_dir in $PATH
  2771. do
  2772. IFS=$as_save_IFS
  2773. test -z "$as_dir" && as_dir=.
  2774. for ac_exec_ext in '' $ac_executable_extensions; do
  2775. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2776. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2777. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2778. break 2
  2779. fi
  2780. done
  2781. done
  2782. IFS=$as_save_IFS
  2783. fi
  2784. fi
  2785. STRIP=$ac_cv_prog_STRIP
  2786. if test -n "$STRIP"; then
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2788. $as_echo "$STRIP" >&6; }
  2789. else
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2791. $as_echo "no" >&6; }
  2792. fi
  2793. fi
  2794. if test -z "$ac_cv_prog_STRIP"; then
  2795. ac_ct_STRIP=$STRIP
  2796. # Extract the first word of "strip", so it can be a program name with args.
  2797. set dummy strip; ac_word=$2
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2799. $as_echo_n "checking for $ac_word... " >&6; }
  2800. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2801. $as_echo_n "(cached) " >&6
  2802. else
  2803. if test -n "$ac_ct_STRIP"; then
  2804. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2805. else
  2806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2807. for as_dir in $PATH
  2808. do
  2809. IFS=$as_save_IFS
  2810. test -z "$as_dir" && as_dir=.
  2811. for ac_exec_ext in '' $ac_executable_extensions; do
  2812. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2813. ac_cv_prog_ac_ct_STRIP="strip"
  2814. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2815. break 2
  2816. fi
  2817. done
  2818. done
  2819. IFS=$as_save_IFS
  2820. fi
  2821. fi
  2822. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2823. if test -n "$ac_ct_STRIP"; then
  2824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2825. $as_echo "$ac_ct_STRIP" >&6; }
  2826. else
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2828. $as_echo "no" >&6; }
  2829. fi
  2830. if test "x$ac_ct_STRIP" = x; then
  2831. STRIP=":"
  2832. else
  2833. case $cross_compiling:$ac_tool_warned in
  2834. yes:)
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2836. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2837. ac_tool_warned=yes ;;
  2838. esac
  2839. STRIP=$ac_ct_STRIP
  2840. fi
  2841. else
  2842. STRIP="$ac_cv_prog_STRIP"
  2843. fi
  2844. fi
  2845. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2847. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2848. if test -z "$MKDIR_P"; then
  2849. if ${ac_cv_path_mkdir+:} false; then :
  2850. $as_echo_n "(cached) " >&6
  2851. else
  2852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2853. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2854. do
  2855. IFS=$as_save_IFS
  2856. test -z "$as_dir" && as_dir=.
  2857. for ac_prog in mkdir gmkdir; do
  2858. for ac_exec_ext in '' $ac_executable_extensions; do
  2859. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2860. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2861. 'mkdir (GNU coreutils) '* | \
  2862. 'mkdir (coreutils) '* | \
  2863. 'mkdir (fileutils) '4.1*)
  2864. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2865. break 3;;
  2866. esac
  2867. done
  2868. done
  2869. done
  2870. IFS=$as_save_IFS
  2871. fi
  2872. test -d ./--version && rmdir ./--version
  2873. if test "${ac_cv_path_mkdir+set}" = set; then
  2874. MKDIR_P="$ac_cv_path_mkdir -p"
  2875. else
  2876. # As a last resort, use the slow shell script. Don't cache a
  2877. # value for MKDIR_P within a source directory, because that will
  2878. # break other packages using the cache if that directory is
  2879. # removed, or if the value is a relative name.
  2880. MKDIR_P="$ac_install_sh -d"
  2881. fi
  2882. fi
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2884. $as_echo "$MKDIR_P" >&6; }
  2885. mkdir_p="$MKDIR_P"
  2886. case $mkdir_p in
  2887. [\\/$]* | ?:[\\/]*) ;;
  2888. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2889. esac
  2890. for ac_prog in gawk mawk nawk awk
  2891. do
  2892. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2893. set dummy $ac_prog; ac_word=$2
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2895. $as_echo_n "checking for $ac_word... " >&6; }
  2896. if ${ac_cv_prog_AWK+:} false; then :
  2897. $as_echo_n "(cached) " >&6
  2898. else
  2899. if test -n "$AWK"; then
  2900. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2901. else
  2902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2903. for as_dir in $PATH
  2904. do
  2905. IFS=$as_save_IFS
  2906. test -z "$as_dir" && as_dir=.
  2907. for ac_exec_ext in '' $ac_executable_extensions; do
  2908. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2909. ac_cv_prog_AWK="$ac_prog"
  2910. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2911. break 2
  2912. fi
  2913. done
  2914. done
  2915. IFS=$as_save_IFS
  2916. fi
  2917. fi
  2918. AWK=$ac_cv_prog_AWK
  2919. if test -n "$AWK"; then
  2920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2921. $as_echo "$AWK" >&6; }
  2922. else
  2923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2924. $as_echo "no" >&6; }
  2925. fi
  2926. test -n "$AWK" && break
  2927. done
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2929. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2930. set x ${MAKE-make}
  2931. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2932. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2933. $as_echo_n "(cached) " >&6
  2934. else
  2935. cat >conftest.make <<\_ACEOF
  2936. SHELL = /bin/sh
  2937. all:
  2938. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2939. _ACEOF
  2940. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2941. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2942. *@@@%%%=?*=@@@%%%*)
  2943. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2944. *)
  2945. eval ac_cv_prog_make_${ac_make}_set=no;;
  2946. esac
  2947. rm -f conftest.make
  2948. fi
  2949. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2951. $as_echo "yes" >&6; }
  2952. SET_MAKE=
  2953. else
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2955. $as_echo "no" >&6; }
  2956. SET_MAKE="MAKE=${MAKE-make}"
  2957. fi
  2958. rm -rf .tst 2>/dev/null
  2959. mkdir .tst 2>/dev/null
  2960. if test -d .tst; then
  2961. am__leading_dot=.
  2962. else
  2963. am__leading_dot=_
  2964. fi
  2965. rmdir .tst 2>/dev/null
  2966. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2967. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2968. # is not polluted with repeated "-I."
  2969. am__isrc=' -I$(srcdir)'
  2970. # test to see if srcdir already configured
  2971. if test -f $srcdir/config.status; then
  2972. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2973. fi
  2974. fi
  2975. # test whether we have cygpath
  2976. if test -z "$CYGPATH_W"; then
  2977. if (cygpath --version) >/dev/null 2>/dev/null; then
  2978. CYGPATH_W='cygpath -w'
  2979. else
  2980. CYGPATH_W=echo
  2981. fi
  2982. fi
  2983. # Define the identity of the package.
  2984. PACKAGE='file'
  2985. VERSION='5.13'
  2986. cat >>confdefs.h <<_ACEOF
  2987. #define PACKAGE "$PACKAGE"
  2988. _ACEOF
  2989. cat >>confdefs.h <<_ACEOF
  2990. #define VERSION "$VERSION"
  2991. _ACEOF
  2992. # Some tools Automake needs.
  2993. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2994. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2995. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2996. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2997. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2998. # We need awk for the "check" target. The system "awk" is bad on
  2999. # some platforms.
  3000. # Always define AMTAR for backward compatibility.
  3001. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3002. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3003. # Check whether --enable-silent-rules was given.
  3004. if test "${enable_silent_rules+set}" = set; then :
  3005. enableval=$enable_silent_rules;
  3006. fi
  3007. case $enable_silent_rules in
  3008. yes) AM_DEFAULT_VERBOSITY=0;;
  3009. no) AM_DEFAULT_VERBOSITY=1;;
  3010. *) AM_DEFAULT_VERBOSITY=0;;
  3011. esac
  3012. AM_BACKSLASH='\'
  3013. ac_config_headers="$ac_config_headers config.h"
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
  3015. $as_echo_n "checking for builtin ELF support... " >&6; }
  3016. # Check whether --enable-elf was given.
  3017. if test "${enable_elf+set}" = set; then :
  3018. enableval=$enable_elf; if test "${enableval}" = yes; then
  3019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3020. $as_echo "yes" >&6; }
  3021. $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
  3022. else
  3023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3024. $as_echo "no" >&6; }
  3025. fi
  3026. else
  3027. # enable by default
  3028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3029. $as_echo "yes" >&6; }
  3030. $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
  3031. fi
  3032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
  3033. $as_echo_n "checking for ELF core file support... " >&6; }
  3034. # Check whether --enable-elf-core was given.
  3035. if test "${enable_elf_core+set}" = set; then :
  3036. enableval=$enable_elf_core; if test "${enableval}" = yes; then
  3037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3038. $as_echo "yes" >&6; }
  3039. $as_echo "#define ELFCORE 1" >>confdefs.h
  3040. else
  3041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3042. $as_echo "no" >&6; }
  3043. fi
  3044. else
  3045. # enable by default
  3046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3047. $as_echo "yes" >&6; }
  3048. $as_echo "#define ELFCORE 1" >>confdefs.h
  3049. fi
  3050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
  3051. $as_echo_n "checking for file formats in man section 5... " >&6; }
  3052. # Check whether --enable-fsect-man5 was given.
  3053. if test "${enable_fsect_man5+set}" = set; then :
  3054. enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
  3055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3056. $as_echo "yes" >&6; }
  3057. fsect=5
  3058. else
  3059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3060. $as_echo "no" >&6; }
  3061. fsect=4
  3062. fi
  3063. else
  3064. # disable by default
  3065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3066. $as_echo "no" >&6; }
  3067. fsect=4
  3068. fi
  3069. # Make sure we can run config.sub.
  3070. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3071. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3073. $as_echo_n "checking build system type... " >&6; }
  3074. if ${ac_cv_build+:} false; then :
  3075. $as_echo_n "(cached) " >&6
  3076. else
  3077. ac_build_alias=$build_alias
  3078. test "x$ac_build_alias" = x &&
  3079. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3080. test "x$ac_build_alias" = x &&
  3081. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3082. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3083. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3084. fi
  3085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3086. $as_echo "$ac_cv_build" >&6; }
  3087. case $ac_cv_build in
  3088. *-*-*) ;;
  3089. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3090. esac
  3091. build=$ac_cv_build
  3092. ac_save_IFS=$IFS; IFS='-'
  3093. set x $ac_cv_build
  3094. shift
  3095. build_cpu=$1
  3096. build_vendor=$2
  3097. shift; shift
  3098. # Remember, the first character of IFS is used to create $*,
  3099. # except with old shells:
  3100. build_os=$*
  3101. IFS=$ac_save_IFS
  3102. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3104. $as_echo_n "checking host system type... " >&6; }
  3105. if ${ac_cv_host+:} false; then :
  3106. $as_echo_n "(cached) " >&6
  3107. else
  3108. if test "x$host_alias" = x; then
  3109. ac_cv_host=$ac_cv_build
  3110. else
  3111. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3112. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3113. fi
  3114. fi
  3115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3116. $as_echo "$ac_cv_host" >&6; }
  3117. case $ac_cv_host in
  3118. *-*-*) ;;
  3119. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3120. esac
  3121. host=$ac_cv_host
  3122. ac_save_IFS=$IFS; IFS='-'
  3123. set x $ac_cv_host
  3124. shift
  3125. host_cpu=$1
  3126. host_vendor=$2
  3127. shift; shift
  3128. # Remember, the first character of IFS is used to create $*,
  3129. # except with old shells:
  3130. host_os=$*
  3131. IFS=$ac_save_IFS
  3132. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3133. case "$host_os" in
  3134. mingw32*)
  3135. MINGW=1
  3136. ;;
  3137. *)
  3138. MINGW=0
  3139. ;;
  3140. esac
  3141. if test "$MINGW" = 1; then
  3142. MINGW_TRUE=
  3143. MINGW_FALSE='#'
  3144. else
  3145. MINGW_TRUE='#'
  3146. MINGW_FALSE=
  3147. fi
  3148. pkgdatadir='$(datadir)/misc'
  3149. if test x$fsect = x5; then
  3150. FSECT5_TRUE=
  3151. FSECT5_FALSE='#'
  3152. else
  3153. FSECT5_TRUE='#'
  3154. FSECT5_FALSE=
  3155. fi
  3156. DEPDIR="${am__leading_dot}deps"
  3157. ac_config_commands="$ac_config_commands depfiles"
  3158. am_make=${MAKE-make}
  3159. cat > confinc << 'END'
  3160. am__doit:
  3161. @echo this is the am__doit target
  3162. .PHONY: am__doit
  3163. END
  3164. # If we don't find an include directive, just comment out the code.
  3165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3166. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3167. am__include="#"
  3168. am__quote=
  3169. _am_result=none
  3170. # First try GNU make style include.
  3171. echo "include confinc" > confmf
  3172. # Ignore all kinds of additional output from `make'.
  3173. case `$am_make -s -f confmf 2> /dev/null` in #(
  3174. *the\ am__doit\ target*)
  3175. am__include=include
  3176. am__quote=
  3177. _am_result=GNU
  3178. ;;
  3179. esac
  3180. # Now try BSD make style include.
  3181. if test "$am__include" = "#"; then
  3182. echo '.include "confinc"' > confmf
  3183. case `$am_make -s -f confmf 2> /dev/null` in #(
  3184. *the\ am__doit\ target*)
  3185. am__include=.include
  3186. am__quote="\""
  3187. _am_result=BSD
  3188. ;;
  3189. esac
  3190. fi
  3191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3192. $as_echo "$_am_result" >&6; }
  3193. rm -f confinc confmf
  3194. # Check whether --enable-dependency-tracking was given.
  3195. if test "${enable_dependency_tracking+set}" = set; then :
  3196. enableval=$enable_dependency_tracking;
  3197. fi
  3198. if test "x$enable_dependency_tracking" != xno; then
  3199. am_depcomp="$ac_aux_dir/depcomp"
  3200. AMDEPBACKSLASH='\'
  3201. fi
  3202. if test "x$enable_dependency_tracking" != xno; then
  3203. AMDEP_TRUE=
  3204. AMDEP_FALSE='#'
  3205. else
  3206. AMDEP_TRUE='#'
  3207. AMDEP_FALSE=
  3208. fi
  3209. ac_ext=c
  3210. ac_cpp='$CPP $CPPFLAGS'
  3211. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3212. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3213. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3214. if test -n "$ac_tool_prefix"; then
  3215. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3216. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3218. $as_echo_n "checking for $ac_word... " >&6; }
  3219. if ${ac_cv_prog_CC+:} false; then :
  3220. $as_echo_n "(cached) " >&6
  3221. else
  3222. if test -n "$CC"; then
  3223. ac_cv_prog_CC="$CC" # Let the user override the test.
  3224. else
  3225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3226. for as_dir in $PATH
  3227. do
  3228. IFS=$as_save_IFS
  3229. test -z "$as_dir" && as_dir=.
  3230. for ac_exec_ext in '' $ac_executable_extensions; do
  3231. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3232. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3233. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3234. break 2
  3235. fi
  3236. done
  3237. done
  3238. IFS=$as_save_IFS
  3239. fi
  3240. fi
  3241. CC=$ac_cv_prog_CC
  3242. if test -n "$CC"; then
  3243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3244. $as_echo "$CC" >&6; }
  3245. else
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3247. $as_echo "no" >&6; }
  3248. fi
  3249. fi
  3250. if test -z "$ac_cv_prog_CC"; then
  3251. ac_ct_CC=$CC
  3252. # Extract the first word of "gcc", so it can be a program name with args.
  3253. set dummy gcc; ac_word=$2
  3254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3255. $as_echo_n "checking for $ac_word... " >&6; }
  3256. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3257. $as_echo_n "(cached) " >&6
  3258. else
  3259. if test -n "$ac_ct_CC"; then
  3260. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3261. else
  3262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3263. for as_dir in $PATH
  3264. do
  3265. IFS=$as_save_IFS
  3266. test -z "$as_dir" && as_dir=.
  3267. for ac_exec_ext in '' $ac_executable_extensions; do
  3268. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3269. ac_cv_prog_ac_ct_CC="gcc"
  3270. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3271. break 2
  3272. fi
  3273. done
  3274. done
  3275. IFS=$as_save_IFS
  3276. fi
  3277. fi
  3278. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3279. if test -n "$ac_ct_CC"; then
  3280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3281. $as_echo "$ac_ct_CC" >&6; }
  3282. else
  3283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3284. $as_echo "no" >&6; }
  3285. fi
  3286. if test "x$ac_ct_CC" = x; then
  3287. CC=""
  3288. else
  3289. case $cross_compiling:$ac_tool_warned in
  3290. yes:)
  3291. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3292. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3293. ac_tool_warned=yes ;;
  3294. esac
  3295. CC=$ac_ct_CC
  3296. fi
  3297. else
  3298. CC="$ac_cv_prog_CC"
  3299. fi
  3300. if test -z "$CC"; then
  3301. if test -n "$ac_tool_prefix"; then
  3302. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3303. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3305. $as_echo_n "checking for $ac_word... " >&6; }
  3306. if ${ac_cv_prog_CC+:} false; then :
  3307. $as_echo_n "(cached) " >&6
  3308. else
  3309. if test -n "$CC"; then
  3310. ac_cv_prog_CC="$CC" # Let the user override the test.
  3311. else
  3312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3313. for as_dir in $PATH
  3314. do
  3315. IFS=$as_save_IFS
  3316. test -z "$as_dir" && as_dir=.
  3317. for ac_exec_ext in '' $ac_executable_extensions; do
  3318. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3319. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3320. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3321. break 2
  3322. fi
  3323. done
  3324. done
  3325. IFS=$as_save_IFS
  3326. fi
  3327. fi
  3328. CC=$ac_cv_prog_CC
  3329. if test -n "$CC"; then
  3330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3331. $as_echo "$CC" >&6; }
  3332. else
  3333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3334. $as_echo "no" >&6; }
  3335. fi
  3336. fi
  3337. fi
  3338. if test -z "$CC"; then
  3339. # Extract the first word of "cc", so it can be a program name with args.
  3340. set dummy cc; ac_word=$2
  3341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3342. $as_echo_n "checking for $ac_word... " >&6; }
  3343. if ${ac_cv_prog_CC+:} false; then :
  3344. $as_echo_n "(cached) " >&6
  3345. else
  3346. if test -n "$CC"; then
  3347. ac_cv_prog_CC="$CC" # Let the user override the test.
  3348. else
  3349. ac_prog_rejected=no
  3350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3351. for as_dir in $PATH
  3352. do
  3353. IFS=$as_save_IFS
  3354. test -z "$as_dir" && as_dir=.
  3355. for ac_exec_ext in '' $ac_executable_extensions; do
  3356. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3357. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3358. ac_prog_rejected=yes
  3359. continue
  3360. fi
  3361. ac_cv_prog_CC="cc"
  3362. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3363. break 2
  3364. fi
  3365. done
  3366. done
  3367. IFS=$as_save_IFS
  3368. if test $ac_prog_rejected = yes; then
  3369. # We found a bogon in the path, so make sure we never use it.
  3370. set dummy $ac_cv_prog_CC
  3371. shift
  3372. if test $# != 0; then
  3373. # We chose a different compiler from the bogus one.
  3374. # However, it has the same basename, so the bogon will be chosen
  3375. # first if we set CC to just the basename; use the full file name.
  3376. shift
  3377. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3378. fi
  3379. fi
  3380. fi
  3381. fi
  3382. CC=$ac_cv_prog_CC
  3383. if test -n "$CC"; then
  3384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3385. $as_echo "$CC" >&6; }
  3386. else
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3388. $as_echo "no" >&6; }
  3389. fi
  3390. fi
  3391. if test -z "$CC"; then
  3392. if test -n "$ac_tool_prefix"; then
  3393. for ac_prog in cl.exe
  3394. do
  3395. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3396. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3398. $as_echo_n "checking for $ac_word... " >&6; }
  3399. if ${ac_cv_prog_CC+:} false; then :
  3400. $as_echo_n "(cached) " >&6
  3401. else
  3402. if test -n "$CC"; then
  3403. ac_cv_prog_CC="$CC" # Let the user override the test.
  3404. else
  3405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3406. for as_dir in $PATH
  3407. do
  3408. IFS=$as_save_IFS
  3409. test -z "$as_dir" && as_dir=.
  3410. for ac_exec_ext in '' $ac_executable_extensions; do
  3411. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3412. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3413. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3414. break 2
  3415. fi
  3416. done
  3417. done
  3418. IFS=$as_save_IFS
  3419. fi
  3420. fi
  3421. CC=$ac_cv_prog_CC
  3422. if test -n "$CC"; then
  3423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3424. $as_echo "$CC" >&6; }
  3425. else
  3426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3427. $as_echo "no" >&6; }
  3428. fi
  3429. test -n "$CC" && break
  3430. done
  3431. fi
  3432. if test -z "$CC"; then
  3433. ac_ct_CC=$CC
  3434. for ac_prog in cl.exe
  3435. do
  3436. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3437. set dummy $ac_prog; ac_word=$2
  3438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3439. $as_echo_n "checking for $ac_word... " >&6; }
  3440. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3441. $as_echo_n "(cached) " >&6
  3442. else
  3443. if test -n "$ac_ct_CC"; then
  3444. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3445. else
  3446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3447. for as_dir in $PATH
  3448. do
  3449. IFS=$as_save_IFS
  3450. test -z "$as_dir" && as_dir=.
  3451. for ac_exec_ext in '' $ac_executable_extensions; do
  3452. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3453. ac_cv_prog_ac_ct_CC="$ac_prog"
  3454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3455. break 2
  3456. fi
  3457. done
  3458. done
  3459. IFS=$as_save_IFS
  3460. fi
  3461. fi
  3462. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3463. if test -n "$ac_ct_CC"; then
  3464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3465. $as_echo "$ac_ct_CC" >&6; }
  3466. else
  3467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3468. $as_echo "no" >&6; }
  3469. fi
  3470. test -n "$ac_ct_CC" && break
  3471. done
  3472. if test "x$ac_ct_CC" = x; then
  3473. CC=""
  3474. else
  3475. case $cross_compiling:$ac_tool_warned in
  3476. yes:)
  3477. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3478. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3479. ac_tool_warned=yes ;;
  3480. esac
  3481. CC=$ac_ct_CC
  3482. fi
  3483. fi
  3484. fi
  3485. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3486. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3487. as_fn_error $? "no acceptable C compiler found in \$PATH
  3488. See \`config.log' for more details" "$LINENO" 5; }
  3489. # Provide some information about the compiler.
  3490. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3491. set X $ac_compile
  3492. ac_compiler=$2
  3493. for ac_option in --version -v -V -qversion; do
  3494. { { ac_try="$ac_compiler $ac_option >&5"
  3495. case "(($ac_try" in
  3496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3497. *) ac_try_echo=$ac_try;;
  3498. esac
  3499. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3500. $as_echo "$ac_try_echo"; } >&5
  3501. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3502. ac_status=$?
  3503. if test -s conftest.err; then
  3504. sed '10a\
  3505. ... rest of stderr output deleted ...
  3506. 10q' conftest.err >conftest.er1
  3507. cat conftest.er1 >&5
  3508. fi
  3509. rm -f conftest.er1 conftest.err
  3510. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3511. test $ac_status = 0; }
  3512. done
  3513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3514. /* end confdefs.h. */
  3515. int
  3516. main ()
  3517. {
  3518. ;
  3519. return 0;
  3520. }
  3521. _ACEOF
  3522. ac_clean_files_save=$ac_clean_files
  3523. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3524. # Try to create an executable without -o first, disregard a.out.
  3525. # It will help us diagnose broken compilers, and finding out an intuition
  3526. # of exeext.
  3527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3528. $as_echo_n "checking whether the C compiler works... " >&6; }
  3529. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3530. # The possible output files:
  3531. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3532. ac_rmfiles=
  3533. for ac_file in $ac_files
  3534. do
  3535. case $ac_file in
  3536. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3537. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3538. esac
  3539. done
  3540. rm -f $ac_rmfiles
  3541. if { { ac_try="$ac_link_default"
  3542. case "(($ac_try" in
  3543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3544. *) ac_try_echo=$ac_try;;
  3545. esac
  3546. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3547. $as_echo "$ac_try_echo"; } >&5
  3548. (eval "$ac_link_default") 2>&5
  3549. ac_status=$?
  3550. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3551. test $ac_status = 0; }; then :
  3552. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3553. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3554. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3555. # so that the user can short-circuit this test for compilers unknown to
  3556. # Autoconf.
  3557. for ac_file in $ac_files ''
  3558. do
  3559. test -f "$ac_file" || continue
  3560. case $ac_file in
  3561. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3562. ;;
  3563. [ab].out )
  3564. # We found the default executable, but exeext='' is most
  3565. # certainly right.
  3566. break;;
  3567. *.* )
  3568. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3569. then :; else
  3570. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3571. fi
  3572. # We set ac_cv_exeext here because the later test for it is not
  3573. # safe: cross compilers may not add the suffix if given an `-o'
  3574. # argument, so we may need to know it at that point already.
  3575. # Even if this section looks crufty: it has the advantage of
  3576. # actually working.
  3577. break;;
  3578. * )
  3579. break;;
  3580. esac
  3581. done
  3582. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3583. else
  3584. ac_file=''
  3585. fi
  3586. if test -z "$ac_file"; then :
  3587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3588. $as_echo "no" >&6; }
  3589. $as_echo "$as_me: failed program was:" >&5
  3590. sed 's/^/| /' conftest.$ac_ext >&5
  3591. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3592. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3593. as_fn_error 77 "C compiler cannot create executables
  3594. See \`config.log' for more details" "$LINENO" 5; }
  3595. else
  3596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3597. $as_echo "yes" >&6; }
  3598. fi
  3599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3600. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3602. $as_echo "$ac_file" >&6; }
  3603. ac_exeext=$ac_cv_exeext
  3604. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3605. ac_clean_files=$ac_clean_files_save
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3607. $as_echo_n "checking for suffix of executables... " >&6; }
  3608. if { { ac_try="$ac_link"
  3609. case "(($ac_try" in
  3610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3611. *) ac_try_echo=$ac_try;;
  3612. esac
  3613. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3614. $as_echo "$ac_try_echo"; } >&5
  3615. (eval "$ac_link") 2>&5
  3616. ac_status=$?
  3617. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3618. test $ac_status = 0; }; then :
  3619. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3620. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3621. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3622. # `rm'.
  3623. for ac_file in conftest.exe conftest conftest.*; do
  3624. test -f "$ac_file" || continue
  3625. case $ac_file in
  3626. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3627. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3628. break;;
  3629. * ) break;;
  3630. esac
  3631. done
  3632. else
  3633. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3634. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3635. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3636. See \`config.log' for more details" "$LINENO" 5; }
  3637. fi
  3638. rm -f conftest conftest$ac_cv_exeext
  3639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3640. $as_echo "$ac_cv_exeext" >&6; }
  3641. rm -f conftest.$ac_ext
  3642. EXEEXT=$ac_cv_exeext
  3643. ac_exeext=$EXEEXT
  3644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3645. /* end confdefs.h. */
  3646. #include <stdio.h>
  3647. int
  3648. main ()
  3649. {
  3650. FILE *f = fopen ("conftest.out", "w");
  3651. return ferror (f) || fclose (f) != 0;
  3652. ;
  3653. return 0;
  3654. }
  3655. _ACEOF
  3656. ac_clean_files="$ac_clean_files conftest.out"
  3657. # Check that the compiler produces executables we can run. If not, either
  3658. # the compiler is broken, or we cross compile.
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3660. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3661. if test "$cross_compiling" != yes; then
  3662. { { ac_try="$ac_link"
  3663. case "(($ac_try" in
  3664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3665. *) ac_try_echo=$ac_try;;
  3666. esac
  3667. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3668. $as_echo "$ac_try_echo"; } >&5
  3669. (eval "$ac_link") 2>&5
  3670. ac_status=$?
  3671. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3672. test $ac_status = 0; }
  3673. if { ac_try='./conftest$ac_cv_exeext'
  3674. { { case "(($ac_try" in
  3675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3676. *) ac_try_echo=$ac_try;;
  3677. esac
  3678. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3679. $as_echo "$ac_try_echo"; } >&5
  3680. (eval "$ac_try") 2>&5
  3681. ac_status=$?
  3682. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3683. test $ac_status = 0; }; }; then
  3684. cross_compiling=no
  3685. else
  3686. if test "$cross_compiling" = maybe; then
  3687. cross_compiling=yes
  3688. else
  3689. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3690. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3691. as_fn_error $? "cannot run C compiled programs.
  3692. If you meant to cross compile, use \`--host'.
  3693. See \`config.log' for more details" "$LINENO" 5; }
  3694. fi
  3695. fi
  3696. fi
  3697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3698. $as_echo "$cross_compiling" >&6; }
  3699. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3700. ac_clean_files=$ac_clean_files_save
  3701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3702. $as_echo_n "checking for suffix of object files... " >&6; }
  3703. if ${ac_cv_objext+:} false; then :
  3704. $as_echo_n "(cached) " >&6
  3705. else
  3706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3707. /* end confdefs.h. */
  3708. int
  3709. main ()
  3710. {
  3711. ;
  3712. return 0;
  3713. }
  3714. _ACEOF
  3715. rm -f conftest.o conftest.obj
  3716. if { { ac_try="$ac_compile"
  3717. case "(($ac_try" in
  3718. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3719. *) ac_try_echo=$ac_try;;
  3720. esac
  3721. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3722. $as_echo "$ac_try_echo"; } >&5
  3723. (eval "$ac_compile") 2>&5
  3724. ac_status=$?
  3725. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3726. test $ac_status = 0; }; then :
  3727. for ac_file in conftest.o conftest.obj conftest.*; do
  3728. test -f "$ac_file" || continue;
  3729. case $ac_file in
  3730. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3731. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3732. break;;
  3733. esac
  3734. done
  3735. else
  3736. $as_echo "$as_me: failed program was:" >&5
  3737. sed 's/^/| /' conftest.$ac_ext >&5
  3738. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3739. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3740. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3741. See \`config.log' for more details" "$LINENO" 5; }
  3742. fi
  3743. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3744. fi
  3745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3746. $as_echo "$ac_cv_objext" >&6; }
  3747. OBJEXT=$ac_cv_objext
  3748. ac_objext=$OBJEXT
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3750. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3751. if ${ac_cv_c_compiler_gnu+:} false; then :
  3752. $as_echo_n "(cached) " >&6
  3753. else
  3754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3755. /* end confdefs.h. */
  3756. int
  3757. main ()
  3758. {
  3759. #ifndef __GNUC__
  3760. choke me
  3761. #endif
  3762. ;
  3763. return 0;
  3764. }
  3765. _ACEOF
  3766. if ac_fn_c_try_compile "$LINENO"; then :
  3767. ac_compiler_gnu=yes
  3768. else
  3769. ac_compiler_gnu=no
  3770. fi
  3771. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3772. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3773. fi
  3774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3775. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3776. if test $ac_compiler_gnu = yes; then
  3777. GCC=yes
  3778. else
  3779. GCC=
  3780. fi
  3781. ac_test_CFLAGS=${CFLAGS+set}
  3782. ac_save_CFLAGS=$CFLAGS
  3783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3784. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3785. if ${ac_cv_prog_cc_g+:} false; then :
  3786. $as_echo_n "(cached) " >&6
  3787. else
  3788. ac_save_c_werror_flag=$ac_c_werror_flag
  3789. ac_c_werror_flag=yes
  3790. ac_cv_prog_cc_g=no
  3791. CFLAGS="-g"
  3792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3793. /* end confdefs.h. */
  3794. int
  3795. main ()
  3796. {
  3797. ;
  3798. return 0;
  3799. }
  3800. _ACEOF
  3801. if ac_fn_c_try_compile "$LINENO"; then :
  3802. ac_cv_prog_cc_g=yes
  3803. else
  3804. CFLAGS=""
  3805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3806. /* end confdefs.h. */
  3807. int
  3808. main ()
  3809. {
  3810. ;
  3811. return 0;
  3812. }
  3813. _ACEOF
  3814. if ac_fn_c_try_compile "$LINENO"; then :
  3815. else
  3816. ac_c_werror_flag=$ac_save_c_werror_flag
  3817. CFLAGS="-g"
  3818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3819. /* end confdefs.h. */
  3820. int
  3821. main ()
  3822. {
  3823. ;
  3824. return 0;
  3825. }
  3826. _ACEOF
  3827. if ac_fn_c_try_compile "$LINENO"; then :
  3828. ac_cv_prog_cc_g=yes
  3829. fi
  3830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3831. fi
  3832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3833. fi
  3834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3835. ac_c_werror_flag=$ac_save_c_werror_flag
  3836. fi
  3837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3838. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3839. if test "$ac_test_CFLAGS" = set; then
  3840. CFLAGS=$ac_save_CFLAGS
  3841. elif test $ac_cv_prog_cc_g = yes; then
  3842. if test "$GCC" = yes; then
  3843. CFLAGS="-g -O2"
  3844. else
  3845. CFLAGS="-g"
  3846. fi
  3847. else
  3848. if test "$GCC" = yes; then
  3849. CFLAGS="-O2"
  3850. else
  3851. CFLAGS=
  3852. fi
  3853. fi
  3854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3855. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3856. if ${ac_cv_prog_cc_c89+:} false; then :
  3857. $as_echo_n "(cached) " >&6
  3858. else
  3859. ac_cv_prog_cc_c89=no
  3860. ac_save_CC=$CC
  3861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3862. /* end confdefs.h. */
  3863. #include <stdarg.h>
  3864. #include <stdio.h>
  3865. #include <sys/types.h>
  3866. #include <sys/stat.h>
  3867. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3868. struct buf { int x; };
  3869. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3870. static char *e (p, i)
  3871. char **p;
  3872. int i;
  3873. {
  3874. return p[i];
  3875. }
  3876. static char *f (char * (*g) (char **, int), char **p, ...)
  3877. {
  3878. char *s;
  3879. va_list v;
  3880. va_start (v,p);
  3881. s = g (p, va_arg (v,int));
  3882. va_end (v);
  3883. return s;
  3884. }
  3885. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3886. function prototypes and stuff, but not '\xHH' hex character constants.
  3887. These don't provoke an error unfortunately, instead are silently treated
  3888. as 'x'. The following induces an error, until -std is added to get
  3889. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3890. array size at least. It's necessary to write '\x00'==0 to get something
  3891. that's true only with -std. */
  3892. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3893. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3894. inside strings and character constants. */
  3895. #define FOO(x) 'x'
  3896. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3897. int test (int i, double x);
  3898. struct s1 {int (*f) (int a);};
  3899. struct s2 {int (*f) (double a);};
  3900. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3901. int argc;
  3902. char **argv;
  3903. int
  3904. main ()
  3905. {
  3906. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3907. ;
  3908. return 0;
  3909. }
  3910. _ACEOF
  3911. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3912. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3913. do
  3914. CC="$ac_save_CC $ac_arg"
  3915. if ac_fn_c_try_compile "$LINENO"; then :
  3916. ac_cv_prog_cc_c89=$ac_arg
  3917. fi
  3918. rm -f core conftest.err conftest.$ac_objext
  3919. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3920. done
  3921. rm -f conftest.$ac_ext
  3922. CC=$ac_save_CC
  3923. fi
  3924. # AC_CACHE_VAL
  3925. case "x$ac_cv_prog_cc_c89" in
  3926. x)
  3927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3928. $as_echo "none needed" >&6; } ;;
  3929. xno)
  3930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3931. $as_echo "unsupported" >&6; } ;;
  3932. *)
  3933. CC="$CC $ac_cv_prog_cc_c89"
  3934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3935. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3936. esac
  3937. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3938. fi
  3939. ac_ext=c
  3940. ac_cpp='$CPP $CPPFLAGS'
  3941. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3942. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3943. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3944. depcc="$CC" am_compiler_list=
  3945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3946. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3947. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3948. $as_echo_n "(cached) " >&6
  3949. else
  3950. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3951. # We make a subdir and do the tests there. Otherwise we can end up
  3952. # making bogus files that we don't know about and never remove. For
  3953. # instance it was reported that on HP-UX the gcc test will end up
  3954. # making a dummy file named `D' -- because `-MD' means `put the output
  3955. # in D'.
  3956. mkdir conftest.dir
  3957. # Copy depcomp to subdir because otherwise we won't find it if we're
  3958. # using a relative directory.
  3959. cp "$am_depcomp" conftest.dir
  3960. cd conftest.dir
  3961. # We will build objects and dependencies in a subdirectory because
  3962. # it helps to detect inapplicable dependency modes. For instance
  3963. # both Tru64's cc and ICC support -MD to output dependencies as a
  3964. # side effect of compilation, but ICC will put the dependencies in
  3965. # the current directory while Tru64 will put them in the object
  3966. # directory.
  3967. mkdir sub
  3968. am_cv_CC_dependencies_compiler_type=none
  3969. if test "$am_compiler_list" = ""; then
  3970. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3971. fi
  3972. am__universal=false
  3973. case " $depcc " in #(
  3974. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3975. esac
  3976. for depmode in $am_compiler_list; do
  3977. # Setup a source with many dependencies, because some compilers
  3978. # like to wrap large dependency lists on column 80 (with \), and
  3979. # we should not choose a depcomp mode which is confused by this.
  3980. #
  3981. # We need to recreate these files for each test, as the compiler may
  3982. # overwrite some of them when testing with obscure command lines.
  3983. # This happens at least with the AIX C compiler.
  3984. : > sub/conftest.c
  3985. for i in 1 2 3 4 5 6; do
  3986. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3987. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3988. # Solaris 8's {/usr,}/bin/sh.
  3989. touch sub/conftst$i.h
  3990. done
  3991. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3992. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3993. # mode. It turns out that the SunPro C++ compiler does not properly
  3994. # handle `-M -o', and we need to detect this. Also, some Intel
  3995. # versions had trouble with output in subdirs
  3996. am__obj=sub/conftest.${OBJEXT-o}
  3997. am__minus_obj="-o $am__obj"
  3998. case $depmode in
  3999. gcc)
  4000. # This depmode causes a compiler race in universal mode.
  4001. test "$am__universal" = false || continue
  4002. ;;
  4003. nosideeffect)
  4004. # after this tag, mechanisms are not by side-effect, so they'll
  4005. # only be used when explicitly requested
  4006. if test "x$enable_dependency_tracking" = xyes; then
  4007. continue
  4008. else
  4009. break
  4010. fi
  4011. ;;
  4012. msvisualcpp | msvcmsys)
  4013. # This compiler won't grok `-c -o', but also, the minuso test has
  4014. # not run yet. These depmodes are late enough in the game, and
  4015. # so weak that their functioning should not be impacted.
  4016. am__obj=conftest.${OBJEXT-o}
  4017. am__minus_obj=
  4018. ;;
  4019. none) break ;;
  4020. esac
  4021. if depmode=$depmode \
  4022. source=sub/conftest.c object=$am__obj \
  4023. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4024. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4025. >/dev/null 2>conftest.err &&
  4026. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4027. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4028. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4029. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4030. # icc doesn't choke on unknown options, it will just issue warnings
  4031. # or remarks (even with -Werror). So we grep stderr for any message
  4032. # that says an option was ignored or not supported.
  4033. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4034. # icc: Command line warning: ignoring option '-M'; no argument required
  4035. # The diagnosis changed in icc 8.0:
  4036. # icc: Command line remark: option '-MP' not supported
  4037. if (grep 'ignoring option' conftest.err ||
  4038. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4039. am_cv_CC_dependencies_compiler_type=$depmode
  4040. break
  4041. fi
  4042. fi
  4043. done
  4044. cd ..
  4045. rm -rf conftest.dir
  4046. else
  4047. am_cv_CC_dependencies_compiler_type=none
  4048. fi
  4049. fi
  4050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4051. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4052. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4053. if
  4054. test "x$enable_dependency_tracking" != xno \
  4055. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4056. am__fastdepCC_TRUE=
  4057. am__fastdepCC_FALSE='#'
  4058. else
  4059. am__fastdepCC_TRUE='#'
  4060. am__fastdepCC_FALSE=
  4061. fi
  4062. case $ac_cv_prog_cc_stdc in #(
  4063. no) :
  4064. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  4065. *) :
  4066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  4067. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  4068. if ${ac_cv_prog_cc_c99+:} false; then :
  4069. $as_echo_n "(cached) " >&6
  4070. else
  4071. ac_cv_prog_cc_c99=no
  4072. ac_save_CC=$CC
  4073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4074. /* end confdefs.h. */
  4075. #include <stdarg.h>
  4076. #include <stdbool.h>
  4077. #include <stdlib.h>
  4078. #include <wchar.h>
  4079. #include <stdio.h>
  4080. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  4081. #define debug(...) fprintf (stderr, __VA_ARGS__)
  4082. #define showlist(...) puts (#__VA_ARGS__)
  4083. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  4084. static void
  4085. test_varargs_macros (void)
  4086. {
  4087. int x = 1234;
  4088. int y = 5678;
  4089. debug ("Flag");
  4090. debug ("X = %d\n", x);
  4091. showlist (The first, second, and third items.);
  4092. report (x>y, "x is %d but y is %d", x, y);
  4093. }
  4094. // Check long long types.
  4095. #define BIG64 18446744073709551615ull
  4096. #define BIG32 4294967295ul
  4097. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  4098. #if !BIG_OK
  4099. your preprocessor is broken;
  4100. #endif
  4101. #if BIG_OK
  4102. #else
  4103. your preprocessor is broken;
  4104. #endif
  4105. static long long int bignum = -9223372036854775807LL;
  4106. static unsigned long long int ubignum = BIG64;
  4107. struct incomplete_array
  4108. {
  4109. int datasize;
  4110. double data[];
  4111. };
  4112. struct named_init {
  4113. int number;
  4114. const wchar_t *name;
  4115. double average;
  4116. };
  4117. typedef const char *ccp;
  4118. static inline int
  4119. test_restrict (ccp restrict text)
  4120. {
  4121. // See if C++-style comments work.
  4122. // Iterate through items via the restricted pointer.
  4123. // Also check for declarations in for loops.
  4124. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  4125. continue;
  4126. return 0;
  4127. }
  4128. // Check varargs and va_copy.
  4129. static void
  4130. test_varargs (const char *format, ...)
  4131. {
  4132. va_list args;
  4133. va_start (args, format);
  4134. va_list args_copy;
  4135. va_copy (args_copy, args);
  4136. const char *str;
  4137. int number;
  4138. float fnumber;
  4139. while (*format)
  4140. {
  4141. switch (*format++)
  4142. {
  4143. case 's': // string
  4144. str = va_arg (args_copy, const char *);
  4145. break;
  4146. case 'd': // int
  4147. number = va_arg (args_copy, int);
  4148. break;
  4149. case 'f': // float
  4150. fnumber = va_arg (args_copy, double);
  4151. break;
  4152. default:
  4153. break;
  4154. }
  4155. }
  4156. va_end (args_copy);
  4157. va_end (args);
  4158. }
  4159. int
  4160. main ()
  4161. {
  4162. // Check bool.
  4163. _Bool success = false;
  4164. // Check restrict.
  4165. if (test_restrict ("String literal") == 0)
  4166. success = true;
  4167. char *restrict newvar = "Another string";
  4168. // Check varargs.
  4169. test_varargs ("s, d' f .", "string", 65, 34.234);
  4170. test_varargs_macros ();
  4171. // Check flexible array members.
  4172. struct incomplete_array *ia =
  4173. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  4174. ia->datasize = 10;
  4175. for (int i = 0; i < ia->datasize; ++i)
  4176. ia->data[i] = i * 1.234;
  4177. // Check named initializers.
  4178. struct named_init ni = {
  4179. .number = 34,
  4180. .name = L"Test wide string",
  4181. .average = 543.34343,
  4182. };
  4183. ni.number = 58;
  4184. int dynamic_array[ni.number];
  4185. dynamic_array[ni.number - 1] = 543;
  4186. // work around unused variable warnings
  4187. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  4188. || dynamic_array[ni.number - 1] != 543);
  4189. ;
  4190. return 0;
  4191. }
  4192. _ACEOF
  4193. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
  4194. do
  4195. CC="$ac_save_CC $ac_arg"
  4196. if ac_fn_c_try_compile "$LINENO"; then :
  4197. ac_cv_prog_cc_c99=$ac_arg
  4198. fi
  4199. rm -f core conftest.err conftest.$ac_objext
  4200. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4201. done
  4202. rm -f conftest.$ac_ext
  4203. CC=$ac_save_CC
  4204. fi
  4205. # AC_CACHE_VAL
  4206. case "x$ac_cv_prog_cc_c99" in
  4207. x)
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4209. $as_echo "none needed" >&6; } ;;
  4210. xno)
  4211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4212. $as_echo "unsupported" >&6; } ;;
  4213. *)
  4214. CC="$CC $ac_cv_prog_cc_c99"
  4215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4216. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  4217. esac
  4218. if test "x$ac_cv_prog_cc_c99" != xno; then :
  4219. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4220. else
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4222. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4223. if ${ac_cv_prog_cc_c89+:} false; then :
  4224. $as_echo_n "(cached) " >&6
  4225. else
  4226. ac_cv_prog_cc_c89=no
  4227. ac_save_CC=$CC
  4228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4229. /* end confdefs.h. */
  4230. #include <stdarg.h>
  4231. #include <stdio.h>
  4232. #include <sys/types.h>
  4233. #include <sys/stat.h>
  4234. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4235. struct buf { int x; };
  4236. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4237. static char *e (p, i)
  4238. char **p;
  4239. int i;
  4240. {
  4241. return p[i];
  4242. }
  4243. static char *f (char * (*g) (char **, int), char **p, ...)
  4244. {
  4245. char *s;
  4246. va_list v;
  4247. va_start (v,p);
  4248. s = g (p, va_arg (v,int));
  4249. va_end (v);
  4250. return s;
  4251. }
  4252. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4253. function prototypes and stuff, but not '\xHH' hex character constants.
  4254. These don't provoke an error unfortunately, instead are silently treated
  4255. as 'x'. The following induces an error, until -std is added to get
  4256. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4257. array size at least. It's necessary to write '\x00'==0 to get something
  4258. that's true only with -std. */
  4259. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4260. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4261. inside strings and character constants. */
  4262. #define FOO(x) 'x'
  4263. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4264. int test (int i, double x);
  4265. struct s1 {int (*f) (int a);};
  4266. struct s2 {int (*f) (double a);};
  4267. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4268. int argc;
  4269. char **argv;
  4270. int
  4271. main ()
  4272. {
  4273. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4274. ;
  4275. return 0;
  4276. }
  4277. _ACEOF
  4278. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4279. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4280. do
  4281. CC="$ac_save_CC $ac_arg"
  4282. if ac_fn_c_try_compile "$LINENO"; then :
  4283. ac_cv_prog_cc_c89=$ac_arg
  4284. fi
  4285. rm -f core conftest.err conftest.$ac_objext
  4286. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4287. done
  4288. rm -f conftest.$ac_ext
  4289. CC=$ac_save_CC
  4290. fi
  4291. # AC_CACHE_VAL
  4292. case "x$ac_cv_prog_cc_c89" in
  4293. x)
  4294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4295. $as_echo "none needed" >&6; } ;;
  4296. xno)
  4297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4298. $as_echo "unsupported" >&6; } ;;
  4299. *)
  4300. CC="$CC $ac_cv_prog_cc_c89"
  4301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4302. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4303. esac
  4304. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4305. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4306. else
  4307. ac_cv_prog_cc_stdc=no
  4308. fi
  4309. fi
  4310. ;;
  4311. esac
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  4313. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  4314. if ${ac_cv_prog_cc_stdc+:} false; then :
  4315. $as_echo_n "(cached) " >&6
  4316. fi
  4317. case $ac_cv_prog_cc_stdc in #(
  4318. no) :
  4319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4320. $as_echo "unsupported" >&6; } ;; #(
  4321. '') :
  4322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4323. $as_echo "none needed" >&6; } ;; #(
  4324. *) :
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  4326. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  4327. esac
  4328. ac_ext=c
  4329. ac_cpp='$CPP $CPPFLAGS'
  4330. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4331. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4332. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4334. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4335. # On Suns, sometimes $CPP names a directory.
  4336. if test -n "$CPP" && test -d "$CPP"; then
  4337. CPP=
  4338. fi
  4339. if test -z "$CPP"; then
  4340. if ${ac_cv_prog_CPP+:} false; then :
  4341. $as_echo_n "(cached) " >&6
  4342. else
  4343. # Double quotes because CPP needs to be expanded
  4344. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4345. do
  4346. ac_preproc_ok=false
  4347. for ac_c_preproc_warn_flag in '' yes
  4348. do
  4349. # Use a header file that comes with gcc, so configuring glibc
  4350. # with a fresh cross-compiler works.
  4351. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4352. # <limits.h> exists even on freestanding compilers.
  4353. # On the NeXT, cc -E runs the code through the compiler's parser,
  4354. # not just through cpp. "Syntax error" is here to catch this case.
  4355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4356. /* end confdefs.h. */
  4357. #ifdef __STDC__
  4358. # include <limits.h>
  4359. #else
  4360. # include <assert.h>
  4361. #endif
  4362. Syntax error
  4363. _ACEOF
  4364. if ac_fn_c_try_cpp "$LINENO"; then :
  4365. else
  4366. # Broken: fails on valid input.
  4367. continue
  4368. fi
  4369. rm -f conftest.err conftest.i conftest.$ac_ext
  4370. # OK, works on sane cases. Now check whether nonexistent headers
  4371. # can be detected and how.
  4372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4373. /* end confdefs.h. */
  4374. #include <ac_nonexistent.h>
  4375. _ACEOF
  4376. if ac_fn_c_try_cpp "$LINENO"; then :
  4377. # Broken: success on invalid input.
  4378. continue
  4379. else
  4380. # Passes both tests.
  4381. ac_preproc_ok=:
  4382. break
  4383. fi
  4384. rm -f conftest.err conftest.i conftest.$ac_ext
  4385. done
  4386. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4387. rm -f conftest.i conftest.err conftest.$ac_ext
  4388. if $ac_preproc_ok; then :
  4389. break
  4390. fi
  4391. done
  4392. ac_cv_prog_CPP=$CPP
  4393. fi
  4394. CPP=$ac_cv_prog_CPP
  4395. else
  4396. ac_cv_prog_CPP=$CPP
  4397. fi
  4398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4399. $as_echo "$CPP" >&6; }
  4400. ac_preproc_ok=false
  4401. for ac_c_preproc_warn_flag in '' yes
  4402. do
  4403. # Use a header file that comes with gcc, so configuring glibc
  4404. # with a fresh cross-compiler works.
  4405. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4406. # <limits.h> exists even on freestanding compilers.
  4407. # On the NeXT, cc -E runs the code through the compiler's parser,
  4408. # not just through cpp. "Syntax error" is here to catch this case.
  4409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4410. /* end confdefs.h. */
  4411. #ifdef __STDC__
  4412. # include <limits.h>
  4413. #else
  4414. # include <assert.h>
  4415. #endif
  4416. Syntax error
  4417. _ACEOF
  4418. if ac_fn_c_try_cpp "$LINENO"; then :
  4419. else
  4420. # Broken: fails on valid input.
  4421. continue
  4422. fi
  4423. rm -f conftest.err conftest.i conftest.$ac_ext
  4424. # OK, works on sane cases. Now check whether nonexistent headers
  4425. # can be detected and how.
  4426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4427. /* end confdefs.h. */
  4428. #include <ac_nonexistent.h>
  4429. _ACEOF
  4430. if ac_fn_c_try_cpp "$LINENO"; then :
  4431. # Broken: success on invalid input.
  4432. continue
  4433. else
  4434. # Passes both tests.
  4435. ac_preproc_ok=:
  4436. break
  4437. fi
  4438. rm -f conftest.err conftest.i conftest.$ac_ext
  4439. done
  4440. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4441. rm -f conftest.i conftest.err conftest.$ac_ext
  4442. if $ac_preproc_ok; then :
  4443. else
  4444. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4445. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4446. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4447. See \`config.log' for more details" "$LINENO" 5; }
  4448. fi
  4449. ac_ext=c
  4450. ac_cpp='$CPP $CPPFLAGS'
  4451. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4452. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4453. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4455. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4456. if ${ac_cv_path_GREP+:} false; then :
  4457. $as_echo_n "(cached) " >&6
  4458. else
  4459. if test -z "$GREP"; then
  4460. ac_path_GREP_found=false
  4461. # Loop through the user's path and test for each of PROGNAME-LIST
  4462. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4463. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4464. do
  4465. IFS=$as_save_IFS
  4466. test -z "$as_dir" && as_dir=.
  4467. for ac_prog in grep ggrep; do
  4468. for ac_exec_ext in '' $ac_executable_extensions; do
  4469. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4470. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4471. # Check for GNU ac_path_GREP and select it if it is found.
  4472. # Check for GNU $ac_path_GREP
  4473. case `"$ac_path_GREP" --version 2>&1` in
  4474. *GNU*)
  4475. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4476. *)
  4477. ac_count=0
  4478. $as_echo_n 0123456789 >"conftest.in"
  4479. while :
  4480. do
  4481. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4482. mv "conftest.tmp" "conftest.in"
  4483. cp "conftest.in" "conftest.nl"
  4484. $as_echo 'GREP' >> "conftest.nl"
  4485. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4486. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4487. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4488. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4489. # Best one so far, save it but keep looking for a better one
  4490. ac_cv_path_GREP="$ac_path_GREP"
  4491. ac_path_GREP_max=$ac_count
  4492. fi
  4493. # 10*(2^10) chars as input seems more than enough
  4494. test $ac_count -gt 10 && break
  4495. done
  4496. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4497. esac
  4498. $ac_path_GREP_found && break 3
  4499. done
  4500. done
  4501. done
  4502. IFS=$as_save_IFS
  4503. if test -z "$ac_cv_path_GREP"; then
  4504. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4505. fi
  4506. else
  4507. ac_cv_path_GREP=$GREP
  4508. fi
  4509. fi
  4510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4511. $as_echo "$ac_cv_path_GREP" >&6; }
  4512. GREP="$ac_cv_path_GREP"
  4513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4514. $as_echo_n "checking for egrep... " >&6; }
  4515. if ${ac_cv_path_EGREP+:} false; then :
  4516. $as_echo_n "(cached) " >&6
  4517. else
  4518. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4519. then ac_cv_path_EGREP="$GREP -E"
  4520. else
  4521. if test -z "$EGREP"; then
  4522. ac_path_EGREP_found=false
  4523. # Loop through the user's path and test for each of PROGNAME-LIST
  4524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4525. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4526. do
  4527. IFS=$as_save_IFS
  4528. test -z "$as_dir" && as_dir=.
  4529. for ac_prog in egrep; do
  4530. for ac_exec_ext in '' $ac_executable_extensions; do
  4531. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4532. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4533. # Check for GNU ac_path_EGREP and select it if it is found.
  4534. # Check for GNU $ac_path_EGREP
  4535. case `"$ac_path_EGREP" --version 2>&1` in
  4536. *GNU*)
  4537. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4538. *)
  4539. ac_count=0
  4540. $as_echo_n 0123456789 >"conftest.in"
  4541. while :
  4542. do
  4543. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4544. mv "conftest.tmp" "conftest.in"
  4545. cp "conftest.in" "conftest.nl"
  4546. $as_echo 'EGREP' >> "conftest.nl"
  4547. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4548. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4549. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4550. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4551. # Best one so far, save it but keep looking for a better one
  4552. ac_cv_path_EGREP="$ac_path_EGREP"
  4553. ac_path_EGREP_max=$ac_count
  4554. fi
  4555. # 10*(2^10) chars as input seems more than enough
  4556. test $ac_count -gt 10 && break
  4557. done
  4558. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4559. esac
  4560. $ac_path_EGREP_found && break 3
  4561. done
  4562. done
  4563. done
  4564. IFS=$as_save_IFS
  4565. if test -z "$ac_cv_path_EGREP"; then
  4566. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4567. fi
  4568. else
  4569. ac_cv_path_EGREP=$EGREP
  4570. fi
  4571. fi
  4572. fi
  4573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4574. $as_echo "$ac_cv_path_EGREP" >&6; }
  4575. EGREP="$ac_cv_path_EGREP"
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4577. $as_echo_n "checking for ANSI C header files... " >&6; }
  4578. if ${ac_cv_header_stdc+:} false; then :
  4579. $as_echo_n "(cached) " >&6
  4580. else
  4581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4582. /* end confdefs.h. */
  4583. #include <stdlib.h>
  4584. #include <stdarg.h>
  4585. #include <string.h>
  4586. #include <float.h>
  4587. int
  4588. main ()
  4589. {
  4590. ;
  4591. return 0;
  4592. }
  4593. _ACEOF
  4594. if ac_fn_c_try_compile "$LINENO"; then :
  4595. ac_cv_header_stdc=yes
  4596. else
  4597. ac_cv_header_stdc=no
  4598. fi
  4599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4600. if test $ac_cv_header_stdc = yes; then
  4601. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4603. /* end confdefs.h. */
  4604. #include <string.h>
  4605. _ACEOF
  4606. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4607. $EGREP "memchr" >/dev/null 2>&1; then :
  4608. else
  4609. ac_cv_header_stdc=no
  4610. fi
  4611. rm -f conftest*
  4612. fi
  4613. if test $ac_cv_header_stdc = yes; then
  4614. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4616. /* end confdefs.h. */
  4617. #include <stdlib.h>
  4618. _ACEOF
  4619. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4620. $EGREP "free" >/dev/null 2>&1; then :
  4621. else
  4622. ac_cv_header_stdc=no
  4623. fi
  4624. rm -f conftest*
  4625. fi
  4626. if test $ac_cv_header_stdc = yes; then
  4627. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4628. if test "$cross_compiling" = yes; then :
  4629. :
  4630. else
  4631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4632. /* end confdefs.h. */
  4633. #include <ctype.h>
  4634. #include <stdlib.h>
  4635. #if ((' ' & 0x0FF) == 0x020)
  4636. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4637. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4638. #else
  4639. # define ISLOWER(c) \
  4640. (('a' <= (c) && (c) <= 'i') \
  4641. || ('j' <= (c) && (c) <= 'r') \
  4642. || ('s' <= (c) && (c) <= 'z'))
  4643. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4644. #endif
  4645. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4646. int
  4647. main ()
  4648. {
  4649. int i;
  4650. for (i = 0; i < 256; i++)
  4651. if (XOR (islower (i), ISLOWER (i))
  4652. || toupper (i) != TOUPPER (i))
  4653. return 2;
  4654. return 0;
  4655. }
  4656. _ACEOF
  4657. if ac_fn_c_try_run "$LINENO"; then :
  4658. else
  4659. ac_cv_header_stdc=no
  4660. fi
  4661. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4662. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4663. fi
  4664. fi
  4665. fi
  4666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4667. $as_echo "$ac_cv_header_stdc" >&6; }
  4668. if test $ac_cv_header_stdc = yes; then
  4669. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4670. fi
  4671. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4672. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4673. inttypes.h stdint.h unistd.h
  4674. do :
  4675. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4676. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4677. "
  4678. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4679. cat >>confdefs.h <<_ACEOF
  4680. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4681. _ACEOF
  4682. fi
  4683. done
  4684. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4685. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4686. MINIX=yes
  4687. else
  4688. MINIX=
  4689. fi
  4690. if test "$MINIX" = yes; then
  4691. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4692. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4693. $as_echo "#define _MINIX 1" >>confdefs.h
  4694. fi
  4695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4696. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4697. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4698. $as_echo_n "(cached) " >&6
  4699. else
  4700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4701. /* end confdefs.h. */
  4702. # define __EXTENSIONS__ 1
  4703. $ac_includes_default
  4704. int
  4705. main ()
  4706. {
  4707. ;
  4708. return 0;
  4709. }
  4710. _ACEOF
  4711. if ac_fn_c_try_compile "$LINENO"; then :
  4712. ac_cv_safe_to_define___extensions__=yes
  4713. else
  4714. ac_cv_safe_to_define___extensions__=no
  4715. fi
  4716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4717. fi
  4718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4719. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4720. test $ac_cv_safe_to_define___extensions__ = yes &&
  4721. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4722. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4723. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4724. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4725. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4726. if test "x$CC" != xcc; then
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4728. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4729. else
  4730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4731. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4732. fi
  4733. set dummy $CC; ac_cc=`$as_echo "$2" |
  4734. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4735. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  4736. $as_echo_n "(cached) " >&6
  4737. else
  4738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4739. /* end confdefs.h. */
  4740. int
  4741. main ()
  4742. {
  4743. ;
  4744. return 0;
  4745. }
  4746. _ACEOF
  4747. # Make sure it works both with $CC and with simple cc.
  4748. # We do the test twice because some compilers refuse to overwrite an
  4749. # existing .o file with -o, though they will create one.
  4750. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4751. rm -f conftest2.*
  4752. if { { case "(($ac_try" in
  4753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4754. *) ac_try_echo=$ac_try;;
  4755. esac
  4756. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4757. $as_echo "$ac_try_echo"; } >&5
  4758. (eval "$ac_try") 2>&5
  4759. ac_status=$?
  4760. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4761. test $ac_status = 0; } &&
  4762. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4763. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4764. *) ac_try_echo=$ac_try;;
  4765. esac
  4766. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4767. $as_echo "$ac_try_echo"; } >&5
  4768. (eval "$ac_try") 2>&5
  4769. ac_status=$?
  4770. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4771. test $ac_status = 0; };
  4772. then
  4773. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4774. if test "x$CC" != xcc; then
  4775. # Test first that cc exists at all.
  4776. if { ac_try='cc -c conftest.$ac_ext >&5'
  4777. { { case "(($ac_try" in
  4778. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4779. *) ac_try_echo=$ac_try;;
  4780. esac
  4781. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4782. $as_echo "$ac_try_echo"; } >&5
  4783. (eval "$ac_try") 2>&5
  4784. ac_status=$?
  4785. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4786. test $ac_status = 0; }; }; then
  4787. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4788. rm -f conftest2.*
  4789. if { { case "(($ac_try" in
  4790. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4791. *) ac_try_echo=$ac_try;;
  4792. esac
  4793. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4794. $as_echo "$ac_try_echo"; } >&5
  4795. (eval "$ac_try") 2>&5
  4796. ac_status=$?
  4797. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4798. test $ac_status = 0; } &&
  4799. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4801. *) ac_try_echo=$ac_try;;
  4802. esac
  4803. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4804. $as_echo "$ac_try_echo"; } >&5
  4805. (eval "$ac_try") 2>&5
  4806. ac_status=$?
  4807. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4808. test $ac_status = 0; };
  4809. then
  4810. # cc works too.
  4811. :
  4812. else
  4813. # cc exists but doesn't like -o.
  4814. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4815. fi
  4816. fi
  4817. fi
  4818. else
  4819. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4820. fi
  4821. rm -f core conftest*
  4822. fi
  4823. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4825. $as_echo "yes" >&6; }
  4826. else
  4827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4828. $as_echo "no" >&6; }
  4829. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4830. fi
  4831. # FIXME: we rely on the cache variable name because
  4832. # there is no other way.
  4833. set dummy $CC
  4834. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4835. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4836. if test "$am_t" != yes; then
  4837. # Losing compiler, so override with the script.
  4838. # FIXME: It is wrong to rewrite CC.
  4839. # But if we don't then we get into trouble of one sort or another.
  4840. # A longer-term fix would be to have automake use am__CC in this case,
  4841. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4842. CC="$am_aux_dir/compile $CC"
  4843. fi
  4844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4845. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4846. if ${ac_cv_c_bigendian+:} false; then :
  4847. $as_echo_n "(cached) " >&6
  4848. else
  4849. ac_cv_c_bigendian=unknown
  4850. # See if we're dealing with a universal compiler.
  4851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4852. /* end confdefs.h. */
  4853. #ifndef __APPLE_CC__
  4854. not a universal capable compiler
  4855. #endif
  4856. typedef int dummy;
  4857. _ACEOF
  4858. if ac_fn_c_try_compile "$LINENO"; then :
  4859. # Check for potential -arch flags. It is not universal unless
  4860. # there are at least two -arch flags with different values.
  4861. ac_arch=
  4862. ac_prev=
  4863. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4864. if test -n "$ac_prev"; then
  4865. case $ac_word in
  4866. i?86 | x86_64 | ppc | ppc64)
  4867. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4868. ac_arch=$ac_word
  4869. else
  4870. ac_cv_c_bigendian=universal
  4871. break
  4872. fi
  4873. ;;
  4874. esac
  4875. ac_prev=
  4876. elif test "x$ac_word" = "x-arch"; then
  4877. ac_prev=arch
  4878. fi
  4879. done
  4880. fi
  4881. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4882. if test $ac_cv_c_bigendian = unknown; then
  4883. # See if sys/param.h defines the BYTE_ORDER macro.
  4884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4885. /* end confdefs.h. */
  4886. #include <sys/types.h>
  4887. #include <sys/param.h>
  4888. int
  4889. main ()
  4890. {
  4891. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4892. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4893. && LITTLE_ENDIAN)
  4894. bogus endian macros
  4895. #endif
  4896. ;
  4897. return 0;
  4898. }
  4899. _ACEOF
  4900. if ac_fn_c_try_compile "$LINENO"; then :
  4901. # It does; now see whether it defined to BIG_ENDIAN or not.
  4902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4903. /* end confdefs.h. */
  4904. #include <sys/types.h>
  4905. #include <sys/param.h>
  4906. int
  4907. main ()
  4908. {
  4909. #if BYTE_ORDER != BIG_ENDIAN
  4910. not big endian
  4911. #endif
  4912. ;
  4913. return 0;
  4914. }
  4915. _ACEOF
  4916. if ac_fn_c_try_compile "$LINENO"; then :
  4917. ac_cv_c_bigendian=yes
  4918. else
  4919. ac_cv_c_bigendian=no
  4920. fi
  4921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4922. fi
  4923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4924. fi
  4925. if test $ac_cv_c_bigendian = unknown; then
  4926. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4928. /* end confdefs.h. */
  4929. #include <limits.h>
  4930. int
  4931. main ()
  4932. {
  4933. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4934. bogus endian macros
  4935. #endif
  4936. ;
  4937. return 0;
  4938. }
  4939. _ACEOF
  4940. if ac_fn_c_try_compile "$LINENO"; then :
  4941. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4943. /* end confdefs.h. */
  4944. #include <limits.h>
  4945. int
  4946. main ()
  4947. {
  4948. #ifndef _BIG_ENDIAN
  4949. not big endian
  4950. #endif
  4951. ;
  4952. return 0;
  4953. }
  4954. _ACEOF
  4955. if ac_fn_c_try_compile "$LINENO"; then :
  4956. ac_cv_c_bigendian=yes
  4957. else
  4958. ac_cv_c_bigendian=no
  4959. fi
  4960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4961. fi
  4962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4963. fi
  4964. if test $ac_cv_c_bigendian = unknown; then
  4965. # Compile a test program.
  4966. if test "$cross_compiling" = yes; then :
  4967. # Try to guess by grepping values from an object file.
  4968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4969. /* end confdefs.h. */
  4970. short int ascii_mm[] =
  4971. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4972. short int ascii_ii[] =
  4973. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4974. int use_ascii (int i) {
  4975. return ascii_mm[i] + ascii_ii[i];
  4976. }
  4977. short int ebcdic_ii[] =
  4978. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4979. short int ebcdic_mm[] =
  4980. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4981. int use_ebcdic (int i) {
  4982. return ebcdic_mm[i] + ebcdic_ii[i];
  4983. }
  4984. extern int foo;
  4985. int
  4986. main ()
  4987. {
  4988. return use_ascii (foo) == use_ebcdic (foo);
  4989. ;
  4990. return 0;
  4991. }
  4992. _ACEOF
  4993. if ac_fn_c_try_compile "$LINENO"; then :
  4994. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4995. ac_cv_c_bigendian=yes
  4996. fi
  4997. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4998. if test "$ac_cv_c_bigendian" = unknown; then
  4999. ac_cv_c_bigendian=no
  5000. else
  5001. # finding both strings is unlikely to happen, but who knows?
  5002. ac_cv_c_bigendian=unknown
  5003. fi
  5004. fi
  5005. fi
  5006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5007. else
  5008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5009. /* end confdefs.h. */
  5010. $ac_includes_default
  5011. int
  5012. main ()
  5013. {
  5014. /* Are we little or big endian? From Harbison&Steele. */
  5015. union
  5016. {
  5017. long int l;
  5018. char c[sizeof (long int)];
  5019. } u;
  5020. u.l = 1;
  5021. return u.c[sizeof (long int) - 1] == 1;
  5022. ;
  5023. return 0;
  5024. }
  5025. _ACEOF
  5026. if ac_fn_c_try_run "$LINENO"; then :
  5027. ac_cv_c_bigendian=no
  5028. else
  5029. ac_cv_c_bigendian=yes
  5030. fi
  5031. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5032. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5033. fi
  5034. fi
  5035. fi
  5036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  5037. $as_echo "$ac_cv_c_bigendian" >&6; }
  5038. case $ac_cv_c_bigendian in #(
  5039. yes)
  5040. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  5041. ;; #(
  5042. no)
  5043. ;; #(
  5044. universal)
  5045. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  5046. ;; #(
  5047. *)
  5048. as_fn_error $? "unknown endianness
  5049. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  5050. esac
  5051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5052. $as_echo_n "checking whether ln -s works... " >&6; }
  5053. LN_S=$as_ln_s
  5054. if test "$LN_S" = "ln -s"; then
  5055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5056. $as_echo "yes" >&6; }
  5057. else
  5058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5059. $as_echo "no, using $LN_S" >&6; }
  5060. fi
  5061. case `pwd` in
  5062. *\ * | *\ *)
  5063. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5064. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5065. esac
  5066. macro_version='2.2.6b'
  5067. macro_revision='1.3017'
  5068. ltmain="$ac_aux_dir/ltmain.sh"
  5069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5070. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5071. if ${ac_cv_path_SED+:} false; then :
  5072. $as_echo_n "(cached) " >&6
  5073. else
  5074. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5075. for ac_i in 1 2 3 4 5 6 7; do
  5076. ac_script="$ac_script$as_nl$ac_script"
  5077. done
  5078. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5079. { ac_script=; unset ac_script;}
  5080. if test -z "$SED"; then
  5081. ac_path_SED_found=false
  5082. # Loop through the user's path and test for each of PROGNAME-LIST
  5083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5084. for as_dir in $PATH
  5085. do
  5086. IFS=$as_save_IFS
  5087. test -z "$as_dir" && as_dir=.
  5088. for ac_prog in sed gsed; do
  5089. for ac_exec_ext in '' $ac_executable_extensions; do
  5090. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5091. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  5092. # Check for GNU ac_path_SED and select it if it is found.
  5093. # Check for GNU $ac_path_SED
  5094. case `"$ac_path_SED" --version 2>&1` in
  5095. *GNU*)
  5096. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5097. *)
  5098. ac_count=0
  5099. $as_echo_n 0123456789 >"conftest.in"
  5100. while :
  5101. do
  5102. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5103. mv "conftest.tmp" "conftest.in"
  5104. cp "conftest.in" "conftest.nl"
  5105. $as_echo '' >> "conftest.nl"
  5106. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5107. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5108. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5109. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5110. # Best one so far, save it but keep looking for a better one
  5111. ac_cv_path_SED="$ac_path_SED"
  5112. ac_path_SED_max=$ac_count
  5113. fi
  5114. # 10*(2^10) chars as input seems more than enough
  5115. test $ac_count -gt 10 && break
  5116. done
  5117. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5118. esac
  5119. $ac_path_SED_found && break 3
  5120. done
  5121. done
  5122. done
  5123. IFS=$as_save_IFS
  5124. if test -z "$ac_cv_path_SED"; then
  5125. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5126. fi
  5127. else
  5128. ac_cv_path_SED=$SED
  5129. fi
  5130. fi
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5132. $as_echo "$ac_cv_path_SED" >&6; }
  5133. SED="$ac_cv_path_SED"
  5134. rm -f conftest.sed
  5135. test -z "$SED" && SED=sed
  5136. Xsed="$SED -e 1s/^X//"
  5137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5138. $as_echo_n "checking for fgrep... " >&6; }
  5139. if ${ac_cv_path_FGREP+:} false; then :
  5140. $as_echo_n "(cached) " >&6
  5141. else
  5142. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5143. then ac_cv_path_FGREP="$GREP -F"
  5144. else
  5145. if test -z "$FGREP"; then
  5146. ac_path_FGREP_found=false
  5147. # Loop through the user's path and test for each of PROGNAME-LIST
  5148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5149. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5150. do
  5151. IFS=$as_save_IFS
  5152. test -z "$as_dir" && as_dir=.
  5153. for ac_prog in fgrep; do
  5154. for ac_exec_ext in '' $ac_executable_extensions; do
  5155. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5156. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  5157. # Check for GNU ac_path_FGREP and select it if it is found.
  5158. # Check for GNU $ac_path_FGREP
  5159. case `"$ac_path_FGREP" --version 2>&1` in
  5160. *GNU*)
  5161. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5162. *)
  5163. ac_count=0
  5164. $as_echo_n 0123456789 >"conftest.in"
  5165. while :
  5166. do
  5167. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5168. mv "conftest.tmp" "conftest.in"
  5169. cp "conftest.in" "conftest.nl"
  5170. $as_echo 'FGREP' >> "conftest.nl"
  5171. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5172. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5173. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5174. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5175. # Best one so far, save it but keep looking for a better one
  5176. ac_cv_path_FGREP="$ac_path_FGREP"
  5177. ac_path_FGREP_max=$ac_count
  5178. fi
  5179. # 10*(2^10) chars as input seems more than enough
  5180. test $ac_count -gt 10 && break
  5181. done
  5182. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5183. esac
  5184. $ac_path_FGREP_found && break 3
  5185. done
  5186. done
  5187. done
  5188. IFS=$as_save_IFS
  5189. if test -z "$ac_cv_path_FGREP"; then
  5190. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5191. fi
  5192. else
  5193. ac_cv_path_FGREP=$FGREP
  5194. fi
  5195. fi
  5196. fi
  5197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5198. $as_echo "$ac_cv_path_FGREP" >&6; }
  5199. FGREP="$ac_cv_path_FGREP"
  5200. test -z "$GREP" && GREP=grep
  5201. # Check whether --with-gnu-ld was given.
  5202. if test "${with_gnu_ld+set}" = set; then :
  5203. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5204. else
  5205. with_gnu_ld=no
  5206. fi
  5207. ac_prog=ld
  5208. if test "$GCC" = yes; then
  5209. # Check if gcc -print-prog-name=ld gives a path.
  5210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5211. $as_echo_n "checking for ld used by $CC... " >&6; }
  5212. case $host in
  5213. *-*-mingw*)
  5214. # gcc leaves a trailing carriage return which upsets mingw
  5215. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5216. *)
  5217. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5218. esac
  5219. case $ac_prog in
  5220. # Accept absolute paths.
  5221. [\\/]* | ?:[\\/]*)
  5222. re_direlt='/[^/][^/]*/\.\./'
  5223. # Canonicalize the pathname of ld
  5224. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5225. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5226. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5227. done
  5228. test -z "$LD" && LD="$ac_prog"
  5229. ;;
  5230. "")
  5231. # If it fails, then pretend we aren't using GCC.
  5232. ac_prog=ld
  5233. ;;
  5234. *)
  5235. # If it is relative, then search for the first ld in PATH.
  5236. with_gnu_ld=unknown
  5237. ;;
  5238. esac
  5239. elif test "$with_gnu_ld" = yes; then
  5240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5241. $as_echo_n "checking for GNU ld... " >&6; }
  5242. else
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5244. $as_echo_n "checking for non-GNU ld... " >&6; }
  5245. fi
  5246. if ${lt_cv_path_LD+:} false; then :
  5247. $as_echo_n "(cached) " >&6
  5248. else
  5249. if test -z "$LD"; then
  5250. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5251. for ac_dir in $PATH; do
  5252. IFS="$lt_save_ifs"
  5253. test -z "$ac_dir" && ac_dir=.
  5254. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5255. lt_cv_path_LD="$ac_dir/$ac_prog"
  5256. # Check to see if the program is GNU ld. I'd rather use --version,
  5257. # but apparently some variants of GNU ld only accept -v.
  5258. # Break only if it was the GNU/non-GNU ld that we prefer.
  5259. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5260. *GNU* | *'with BFD'*)
  5261. test "$with_gnu_ld" != no && break
  5262. ;;
  5263. *)
  5264. test "$with_gnu_ld" != yes && break
  5265. ;;
  5266. esac
  5267. fi
  5268. done
  5269. IFS="$lt_save_ifs"
  5270. else
  5271. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5272. fi
  5273. fi
  5274. LD="$lt_cv_path_LD"
  5275. if test -n "$LD"; then
  5276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5277. $as_echo "$LD" >&6; }
  5278. else
  5279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5280. $as_echo "no" >&6; }
  5281. fi
  5282. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5284. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5285. if ${lt_cv_prog_gnu_ld+:} false; then :
  5286. $as_echo_n "(cached) " >&6
  5287. else
  5288. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5289. case `$LD -v 2>&1 </dev/null` in
  5290. *GNU* | *'with BFD'*)
  5291. lt_cv_prog_gnu_ld=yes
  5292. ;;
  5293. *)
  5294. lt_cv_prog_gnu_ld=no
  5295. ;;
  5296. esac
  5297. fi
  5298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5299. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5300. with_gnu_ld=$lt_cv_prog_gnu_ld
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5302. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5303. if ${lt_cv_path_NM+:} false; then :
  5304. $as_echo_n "(cached) " >&6
  5305. else
  5306. if test -n "$NM"; then
  5307. # Let the user override the test.
  5308. lt_cv_path_NM="$NM"
  5309. else
  5310. lt_nm_to_check="${ac_tool_prefix}nm"
  5311. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5312. lt_nm_to_check="$lt_nm_to_check nm"
  5313. fi
  5314. for lt_tmp_nm in $lt_nm_to_check; do
  5315. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5316. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5317. IFS="$lt_save_ifs"
  5318. test -z "$ac_dir" && ac_dir=.
  5319. tmp_nm="$ac_dir/$lt_tmp_nm"
  5320. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5321. # Check to see if the nm accepts a BSD-compat flag.
  5322. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5323. # nm: unknown option "B" ignored
  5324. # Tru64's nm complains that /dev/null is an invalid object file
  5325. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5326. */dev/null* | *'Invalid file or object type'*)
  5327. lt_cv_path_NM="$tmp_nm -B"
  5328. break
  5329. ;;
  5330. *)
  5331. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5332. */dev/null*)
  5333. lt_cv_path_NM="$tmp_nm -p"
  5334. break
  5335. ;;
  5336. *)
  5337. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5338. continue # so that we can try to find one that supports BSD flags
  5339. ;;
  5340. esac
  5341. ;;
  5342. esac
  5343. fi
  5344. done
  5345. IFS="$lt_save_ifs"
  5346. done
  5347. : ${lt_cv_path_NM=no}
  5348. fi
  5349. fi
  5350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5351. $as_echo "$lt_cv_path_NM" >&6; }
  5352. if test "$lt_cv_path_NM" != "no"; then
  5353. NM="$lt_cv_path_NM"
  5354. else
  5355. # Didn't find any BSD compatible name lister, look for dumpbin.
  5356. if test -n "$ac_tool_prefix"; then
  5357. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  5358. do
  5359. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5360. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5362. $as_echo_n "checking for $ac_word... " >&6; }
  5363. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5364. $as_echo_n "(cached) " >&6
  5365. else
  5366. if test -n "$DUMPBIN"; then
  5367. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5368. else
  5369. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5370. for as_dir in $PATH
  5371. do
  5372. IFS=$as_save_IFS
  5373. test -z "$as_dir" && as_dir=.
  5374. for ac_exec_ext in '' $ac_executable_extensions; do
  5375. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5376. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5377. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5378. break 2
  5379. fi
  5380. done
  5381. done
  5382. IFS=$as_save_IFS
  5383. fi
  5384. fi
  5385. DUMPBIN=$ac_cv_prog_DUMPBIN
  5386. if test -n "$DUMPBIN"; then
  5387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5388. $as_echo "$DUMPBIN" >&6; }
  5389. else
  5390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5391. $as_echo "no" >&6; }
  5392. fi
  5393. test -n "$DUMPBIN" && break
  5394. done
  5395. fi
  5396. if test -z "$DUMPBIN"; then
  5397. ac_ct_DUMPBIN=$DUMPBIN
  5398. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  5399. do
  5400. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5401. set dummy $ac_prog; ac_word=$2
  5402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5403. $as_echo_n "checking for $ac_word... " >&6; }
  5404. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5405. $as_echo_n "(cached) " >&6
  5406. else
  5407. if test -n "$ac_ct_DUMPBIN"; then
  5408. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5409. else
  5410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5411. for as_dir in $PATH
  5412. do
  5413. IFS=$as_save_IFS
  5414. test -z "$as_dir" && as_dir=.
  5415. for ac_exec_ext in '' $ac_executable_extensions; do
  5416. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5417. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5418. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5419. break 2
  5420. fi
  5421. done
  5422. done
  5423. IFS=$as_save_IFS
  5424. fi
  5425. fi
  5426. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5427. if test -n "$ac_ct_DUMPBIN"; then
  5428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5429. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5430. else
  5431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5432. $as_echo "no" >&6; }
  5433. fi
  5434. test -n "$ac_ct_DUMPBIN" && break
  5435. done
  5436. if test "x$ac_ct_DUMPBIN" = x; then
  5437. DUMPBIN=":"
  5438. else
  5439. case $cross_compiling:$ac_tool_warned in
  5440. yes:)
  5441. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5442. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5443. ac_tool_warned=yes ;;
  5444. esac
  5445. DUMPBIN=$ac_ct_DUMPBIN
  5446. fi
  5447. fi
  5448. if test "$DUMPBIN" != ":"; then
  5449. NM="$DUMPBIN"
  5450. fi
  5451. fi
  5452. test -z "$NM" && NM=nm
  5453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5454. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5455. if ${lt_cv_nm_interface+:} false; then :
  5456. $as_echo_n "(cached) " >&6
  5457. else
  5458. lt_cv_nm_interface="BSD nm"
  5459. echo "int some_variable = 0;" > conftest.$ac_ext
  5460. (eval echo "\"\$as_me:6077: $ac_compile\"" >&5)
  5461. (eval "$ac_compile" 2>conftest.err)
  5462. cat conftest.err >&5
  5463. (eval echo "\"\$as_me:6080: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5464. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5465. cat conftest.err >&5
  5466. (eval echo "\"\$as_me:6083: output\"" >&5)
  5467. cat conftest.out >&5
  5468. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5469. lt_cv_nm_interface="MS dumpbin"
  5470. fi
  5471. rm -f conftest*
  5472. fi
  5473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5474. $as_echo "$lt_cv_nm_interface" >&6; }
  5475. # find the maximum length of command line arguments
  5476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5477. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5478. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5479. $as_echo_n "(cached) " >&6
  5480. else
  5481. i=0
  5482. teststring="ABCD"
  5483. case $build_os in
  5484. msdosdjgpp*)
  5485. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5486. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5487. # during glob expansion). Even if it were fixed, the result of this
  5488. # check would be larger than it should be.
  5489. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5490. ;;
  5491. gnu*)
  5492. # Under GNU Hurd, this test is not required because there is
  5493. # no limit to the length of command line arguments.
  5494. # Libtool will interpret -1 as no limit whatsoever
  5495. lt_cv_sys_max_cmd_len=-1;
  5496. ;;
  5497. cygwin* | mingw* | cegcc*)
  5498. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5499. # about 5 minutes as the teststring grows exponentially.
  5500. # Worse, since 9x/ME are not pre-emptively multitasking,
  5501. # you end up with a "frozen" computer, even though with patience
  5502. # the test eventually succeeds (with a max line length of 256k).
  5503. # Instead, let's just punt: use the minimum linelength reported by
  5504. # all of the supported platforms: 8192 (on NT/2K/XP).
  5505. lt_cv_sys_max_cmd_len=8192;
  5506. ;;
  5507. amigaos*)
  5508. # On AmigaOS with pdksh, this test takes hours, literally.
  5509. # So we just punt and use a minimum line length of 8192.
  5510. lt_cv_sys_max_cmd_len=8192;
  5511. ;;
  5512. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5513. # This has been around since 386BSD, at least. Likely further.
  5514. if test -x /sbin/sysctl; then
  5515. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5516. elif test -x /usr/sbin/sysctl; then
  5517. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5518. else
  5519. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5520. fi
  5521. # And add a safety zone
  5522. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5523. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5524. ;;
  5525. interix*)
  5526. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5527. lt_cv_sys_max_cmd_len=196608
  5528. ;;
  5529. osf*)
  5530. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5531. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5532. # nice to cause kernel panics so lets avoid the loop below.
  5533. # First set a reasonable default.
  5534. lt_cv_sys_max_cmd_len=16384
  5535. #
  5536. if test -x /sbin/sysconfig; then
  5537. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5538. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5539. esac
  5540. fi
  5541. ;;
  5542. sco3.2v5*)
  5543. lt_cv_sys_max_cmd_len=102400
  5544. ;;
  5545. sysv5* | sco5v6* | sysv4.2uw2*)
  5546. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5547. if test -n "$kargmax"; then
  5548. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5549. else
  5550. lt_cv_sys_max_cmd_len=32768
  5551. fi
  5552. ;;
  5553. *)
  5554. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5555. if test -n "$lt_cv_sys_max_cmd_len"; then
  5556. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5557. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5558. else
  5559. # Make teststring a little bigger before we do anything with it.
  5560. # a 1K string should be a reasonable start.
  5561. for i in 1 2 3 4 5 6 7 8 ; do
  5562. teststring=$teststring$teststring
  5563. done
  5564. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5565. # If test is not a shell built-in, we'll probably end up computing a
  5566. # maximum length that is only half of the actual maximum length, but
  5567. # we can't tell.
  5568. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  5569. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  5570. test $i != 17 # 1/2 MB should be enough
  5571. do
  5572. i=`expr $i + 1`
  5573. teststring=$teststring$teststring
  5574. done
  5575. # Only check the string length outside the loop.
  5576. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5577. teststring=
  5578. # Add a significant safety factor because C++ compilers can tack on
  5579. # massive amounts of additional arguments before passing them to the
  5580. # linker. It appears as though 1/2 is a usable value.
  5581. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5582. fi
  5583. ;;
  5584. esac
  5585. fi
  5586. if test -n $lt_cv_sys_max_cmd_len ; then
  5587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5588. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5589. else
  5590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5591. $as_echo "none" >&6; }
  5592. fi
  5593. max_cmd_len=$lt_cv_sys_max_cmd_len
  5594. : ${CP="cp -f"}
  5595. : ${MV="mv -f"}
  5596. : ${RM="rm -f"}
  5597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5598. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5599. # Try some XSI features
  5600. xsi_shell=no
  5601. ( _lt_dummy="a/b/c"
  5602. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5603. = c,a/b,, \
  5604. && eval 'test $(( 1 + 1 )) -eq 2 \
  5605. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5606. && xsi_shell=yes
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5608. $as_echo "$xsi_shell" >&6; }
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5610. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5611. lt_shell_append=no
  5612. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5613. >/dev/null 2>&1 \
  5614. && lt_shell_append=yes
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5616. $as_echo "$lt_shell_append" >&6; }
  5617. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5618. lt_unset=unset
  5619. else
  5620. lt_unset=false
  5621. fi
  5622. # test EBCDIC or ASCII
  5623. case `echo X|tr X '\101'` in
  5624. A) # ASCII based system
  5625. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5626. lt_SP2NL='tr \040 \012'
  5627. lt_NL2SP='tr \015\012 \040\040'
  5628. ;;
  5629. *) # EBCDIC based system
  5630. lt_SP2NL='tr \100 \n'
  5631. lt_NL2SP='tr \r\n \100\100'
  5632. ;;
  5633. esac
  5634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5635. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5636. if ${lt_cv_ld_reload_flag+:} false; then :
  5637. $as_echo_n "(cached) " >&6
  5638. else
  5639. lt_cv_ld_reload_flag='-r'
  5640. fi
  5641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5642. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5643. reload_flag=$lt_cv_ld_reload_flag
  5644. case $reload_flag in
  5645. "" | " "*) ;;
  5646. *) reload_flag=" $reload_flag" ;;
  5647. esac
  5648. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5649. case $host_os in
  5650. darwin*)
  5651. if test "$GCC" = yes; then
  5652. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5653. else
  5654. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5655. fi
  5656. ;;
  5657. esac
  5658. if test -n "$ac_tool_prefix"; then
  5659. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5660. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5662. $as_echo_n "checking for $ac_word... " >&6; }
  5663. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5664. $as_echo_n "(cached) " >&6
  5665. else
  5666. if test -n "$OBJDUMP"; then
  5667. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5668. else
  5669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5670. for as_dir in $PATH
  5671. do
  5672. IFS=$as_save_IFS
  5673. test -z "$as_dir" && as_dir=.
  5674. for ac_exec_ext in '' $ac_executable_extensions; do
  5675. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5676. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5677. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5678. break 2
  5679. fi
  5680. done
  5681. done
  5682. IFS=$as_save_IFS
  5683. fi
  5684. fi
  5685. OBJDUMP=$ac_cv_prog_OBJDUMP
  5686. if test -n "$OBJDUMP"; then
  5687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5688. $as_echo "$OBJDUMP" >&6; }
  5689. else
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5691. $as_echo "no" >&6; }
  5692. fi
  5693. fi
  5694. if test -z "$ac_cv_prog_OBJDUMP"; then
  5695. ac_ct_OBJDUMP=$OBJDUMP
  5696. # Extract the first word of "objdump", so it can be a program name with args.
  5697. set dummy objdump; ac_word=$2
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5699. $as_echo_n "checking for $ac_word... " >&6; }
  5700. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5701. $as_echo_n "(cached) " >&6
  5702. else
  5703. if test -n "$ac_ct_OBJDUMP"; then
  5704. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5705. else
  5706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5707. for as_dir in $PATH
  5708. do
  5709. IFS=$as_save_IFS
  5710. test -z "$as_dir" && as_dir=.
  5711. for ac_exec_ext in '' $ac_executable_extensions; do
  5712. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5713. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5714. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5715. break 2
  5716. fi
  5717. done
  5718. done
  5719. IFS=$as_save_IFS
  5720. fi
  5721. fi
  5722. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5723. if test -n "$ac_ct_OBJDUMP"; then
  5724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5725. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5726. else
  5727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5728. $as_echo "no" >&6; }
  5729. fi
  5730. if test "x$ac_ct_OBJDUMP" = x; then
  5731. OBJDUMP="false"
  5732. else
  5733. case $cross_compiling:$ac_tool_warned in
  5734. yes:)
  5735. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5736. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5737. ac_tool_warned=yes ;;
  5738. esac
  5739. OBJDUMP=$ac_ct_OBJDUMP
  5740. fi
  5741. else
  5742. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5743. fi
  5744. test -z "$OBJDUMP" && OBJDUMP=objdump
  5745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5746. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5747. if ${lt_cv_deplibs_check_method+:} false; then :
  5748. $as_echo_n "(cached) " >&6
  5749. else
  5750. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5751. lt_cv_file_magic_test_file=
  5752. lt_cv_deplibs_check_method='unknown'
  5753. # Need to set the preceding variable on all platforms that support
  5754. # interlibrary dependencies.
  5755. # 'none' -- dependencies not supported.
  5756. # `unknown' -- same as none, but documents that we really don't know.
  5757. # 'pass_all' -- all dependencies passed with no checks.
  5758. # 'test_compile' -- check by making test program.
  5759. # 'file_magic [[regex]]' -- check by looking for files in library path
  5760. # which responds to the $file_magic_cmd with a given extended regex.
  5761. # If you have `file' or equivalent on your system and you're not sure
  5762. # whether `pass_all' will *always* work, you probably want this one.
  5763. case $host_os in
  5764. aix[4-9]*)
  5765. lt_cv_deplibs_check_method=pass_all
  5766. ;;
  5767. beos*)
  5768. lt_cv_deplibs_check_method=pass_all
  5769. ;;
  5770. bsdi[45]*)
  5771. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5772. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5773. lt_cv_file_magic_test_file=/shlib/libc.so
  5774. ;;
  5775. cygwin*)
  5776. # func_win32_libid is a shell function defined in ltmain.sh
  5777. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5778. lt_cv_file_magic_cmd='func_win32_libid'
  5779. ;;
  5780. mingw* | pw32*)
  5781. # Base MSYS/MinGW do not provide the 'file' command needed by
  5782. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5783. # unless we find 'file', for example because we are cross-compiling.
  5784. if ( file / ) >/dev/null 2>&1; then
  5785. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5786. lt_cv_file_magic_cmd='func_win32_libid'
  5787. else
  5788. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5789. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5790. fi
  5791. ;;
  5792. cegcc)
  5793. # use the weaker test based on 'objdump'. See mingw*.
  5794. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5795. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5796. ;;
  5797. darwin* | rhapsody*)
  5798. lt_cv_deplibs_check_method=pass_all
  5799. ;;
  5800. freebsd* | dragonfly*)
  5801. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5802. case $host_cpu in
  5803. i*86 )
  5804. # Not sure whether the presence of OpenBSD here was a mistake.
  5805. # Let's accept both of them until this is cleared up.
  5806. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5807. lt_cv_file_magic_cmd=/usr/bin/file
  5808. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5809. ;;
  5810. esac
  5811. else
  5812. lt_cv_deplibs_check_method=pass_all
  5813. fi
  5814. ;;
  5815. gnu*)
  5816. lt_cv_deplibs_check_method=pass_all
  5817. ;;
  5818. hpux10.20* | hpux11*)
  5819. lt_cv_file_magic_cmd=/usr/bin/file
  5820. case $host_cpu in
  5821. ia64*)
  5822. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5823. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5824. ;;
  5825. hppa*64*)
  5826. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  5827. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5828. ;;
  5829. *)
  5830. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5831. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5832. ;;
  5833. esac
  5834. ;;
  5835. interix[3-9]*)
  5836. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5837. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5838. ;;
  5839. irix5* | irix6* | nonstopux*)
  5840. case $LD in
  5841. *-32|*"-32 ") libmagic=32-bit;;
  5842. *-n32|*"-n32 ") libmagic=N32;;
  5843. *-64|*"-64 ") libmagic=64-bit;;
  5844. *) libmagic=never-match;;
  5845. esac
  5846. lt_cv_deplibs_check_method=pass_all
  5847. ;;
  5848. # This must be Linux ELF.
  5849. linux* | k*bsd*-gnu)
  5850. lt_cv_deplibs_check_method=pass_all
  5851. ;;
  5852. netbsd*)
  5853. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5854. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5855. else
  5856. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5857. fi
  5858. ;;
  5859. newos6*)
  5860. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5861. lt_cv_file_magic_cmd=/usr/bin/file
  5862. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5863. ;;
  5864. *nto* | *qnx*)
  5865. lt_cv_deplibs_check_method=pass_all
  5866. ;;
  5867. openbsd*)
  5868. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5869. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5870. else
  5871. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5872. fi
  5873. ;;
  5874. osf3* | osf4* | osf5*)
  5875. lt_cv_deplibs_check_method=pass_all
  5876. ;;
  5877. rdos*)
  5878. lt_cv_deplibs_check_method=pass_all
  5879. ;;
  5880. solaris*)
  5881. lt_cv_deplibs_check_method=pass_all
  5882. ;;
  5883. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5884. lt_cv_deplibs_check_method=pass_all
  5885. ;;
  5886. sysv4 | sysv4.3*)
  5887. case $host_vendor in
  5888. motorola)
  5889. 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]'
  5890. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5891. ;;
  5892. ncr)
  5893. lt_cv_deplibs_check_method=pass_all
  5894. ;;
  5895. sequent)
  5896. lt_cv_file_magic_cmd='/bin/file'
  5897. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5898. ;;
  5899. sni)
  5900. lt_cv_file_magic_cmd='/bin/file'
  5901. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5902. lt_cv_file_magic_test_file=/lib/libc.so
  5903. ;;
  5904. siemens)
  5905. lt_cv_deplibs_check_method=pass_all
  5906. ;;
  5907. pc)
  5908. lt_cv_deplibs_check_method=pass_all
  5909. ;;
  5910. esac
  5911. ;;
  5912. tpf*)
  5913. lt_cv_deplibs_check_method=pass_all
  5914. ;;
  5915. esac
  5916. fi
  5917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5918. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5919. file_magic_cmd=$lt_cv_file_magic_cmd
  5920. deplibs_check_method=$lt_cv_deplibs_check_method
  5921. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5922. if test -n "$ac_tool_prefix"; then
  5923. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5924. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5926. $as_echo_n "checking for $ac_word... " >&6; }
  5927. if ${ac_cv_prog_AR+:} false; then :
  5928. $as_echo_n "(cached) " >&6
  5929. else
  5930. if test -n "$AR"; then
  5931. ac_cv_prog_AR="$AR" # Let the user override the test.
  5932. else
  5933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5934. for as_dir in $PATH
  5935. do
  5936. IFS=$as_save_IFS
  5937. test -z "$as_dir" && as_dir=.
  5938. for ac_exec_ext in '' $ac_executable_extensions; do
  5939. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5940. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5941. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5942. break 2
  5943. fi
  5944. done
  5945. done
  5946. IFS=$as_save_IFS
  5947. fi
  5948. fi
  5949. AR=$ac_cv_prog_AR
  5950. if test -n "$AR"; then
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5952. $as_echo "$AR" >&6; }
  5953. else
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5955. $as_echo "no" >&6; }
  5956. fi
  5957. fi
  5958. if test -z "$ac_cv_prog_AR"; then
  5959. ac_ct_AR=$AR
  5960. # Extract the first word of "ar", so it can be a program name with args.
  5961. set dummy ar; ac_word=$2
  5962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5963. $as_echo_n "checking for $ac_word... " >&6; }
  5964. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5965. $as_echo_n "(cached) " >&6
  5966. else
  5967. if test -n "$ac_ct_AR"; then
  5968. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5969. else
  5970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5971. for as_dir in $PATH
  5972. do
  5973. IFS=$as_save_IFS
  5974. test -z "$as_dir" && as_dir=.
  5975. for ac_exec_ext in '' $ac_executable_extensions; do
  5976. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5977. ac_cv_prog_ac_ct_AR="ar"
  5978. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5979. break 2
  5980. fi
  5981. done
  5982. done
  5983. IFS=$as_save_IFS
  5984. fi
  5985. fi
  5986. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5987. if test -n "$ac_ct_AR"; then
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5989. $as_echo "$ac_ct_AR" >&6; }
  5990. else
  5991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5992. $as_echo "no" >&6; }
  5993. fi
  5994. if test "x$ac_ct_AR" = x; then
  5995. AR="false"
  5996. else
  5997. case $cross_compiling:$ac_tool_warned in
  5998. yes:)
  5999. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6000. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6001. ac_tool_warned=yes ;;
  6002. esac
  6003. AR=$ac_ct_AR
  6004. fi
  6005. else
  6006. AR="$ac_cv_prog_AR"
  6007. fi
  6008. test -z "$AR" && AR=ar
  6009. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6010. if test -n "$ac_tool_prefix"; then
  6011. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6012. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6014. $as_echo_n "checking for $ac_word... " >&6; }
  6015. if ${ac_cv_prog_STRIP+:} false; then :
  6016. $as_echo_n "(cached) " >&6
  6017. else
  6018. if test -n "$STRIP"; then
  6019. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6020. else
  6021. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6022. for as_dir in $PATH
  6023. do
  6024. IFS=$as_save_IFS
  6025. test -z "$as_dir" && as_dir=.
  6026. for ac_exec_ext in '' $ac_executable_extensions; do
  6027. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6028. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6029. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6030. break 2
  6031. fi
  6032. done
  6033. done
  6034. IFS=$as_save_IFS
  6035. fi
  6036. fi
  6037. STRIP=$ac_cv_prog_STRIP
  6038. if test -n "$STRIP"; then
  6039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6040. $as_echo "$STRIP" >&6; }
  6041. else
  6042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6043. $as_echo "no" >&6; }
  6044. fi
  6045. fi
  6046. if test -z "$ac_cv_prog_STRIP"; then
  6047. ac_ct_STRIP=$STRIP
  6048. # Extract the first word of "strip", so it can be a program name with args.
  6049. set dummy strip; ac_word=$2
  6050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6051. $as_echo_n "checking for $ac_word... " >&6; }
  6052. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6053. $as_echo_n "(cached) " >&6
  6054. else
  6055. if test -n "$ac_ct_STRIP"; then
  6056. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6057. else
  6058. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6059. for as_dir in $PATH
  6060. do
  6061. IFS=$as_save_IFS
  6062. test -z "$as_dir" && as_dir=.
  6063. for ac_exec_ext in '' $ac_executable_extensions; do
  6064. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6065. ac_cv_prog_ac_ct_STRIP="strip"
  6066. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6067. break 2
  6068. fi
  6069. done
  6070. done
  6071. IFS=$as_save_IFS
  6072. fi
  6073. fi
  6074. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6075. if test -n "$ac_ct_STRIP"; then
  6076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6077. $as_echo "$ac_ct_STRIP" >&6; }
  6078. else
  6079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6080. $as_echo "no" >&6; }
  6081. fi
  6082. if test "x$ac_ct_STRIP" = x; then
  6083. STRIP=":"
  6084. else
  6085. case $cross_compiling:$ac_tool_warned in
  6086. yes:)
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6088. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6089. ac_tool_warned=yes ;;
  6090. esac
  6091. STRIP=$ac_ct_STRIP
  6092. fi
  6093. else
  6094. STRIP="$ac_cv_prog_STRIP"
  6095. fi
  6096. test -z "$STRIP" && STRIP=:
  6097. if test -n "$ac_tool_prefix"; then
  6098. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6099. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6101. $as_echo_n "checking for $ac_word... " >&6; }
  6102. if ${ac_cv_prog_RANLIB+:} false; then :
  6103. $as_echo_n "(cached) " >&6
  6104. else
  6105. if test -n "$RANLIB"; then
  6106. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6107. else
  6108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6109. for as_dir in $PATH
  6110. do
  6111. IFS=$as_save_IFS
  6112. test -z "$as_dir" && as_dir=.
  6113. for ac_exec_ext in '' $ac_executable_extensions; do
  6114. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6115. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6116. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6117. break 2
  6118. fi
  6119. done
  6120. done
  6121. IFS=$as_save_IFS
  6122. fi
  6123. fi
  6124. RANLIB=$ac_cv_prog_RANLIB
  6125. if test -n "$RANLIB"; then
  6126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6127. $as_echo "$RANLIB" >&6; }
  6128. else
  6129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6130. $as_echo "no" >&6; }
  6131. fi
  6132. fi
  6133. if test -z "$ac_cv_prog_RANLIB"; then
  6134. ac_ct_RANLIB=$RANLIB
  6135. # Extract the first word of "ranlib", so it can be a program name with args.
  6136. set dummy ranlib; ac_word=$2
  6137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6138. $as_echo_n "checking for $ac_word... " >&6; }
  6139. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6140. $as_echo_n "(cached) " >&6
  6141. else
  6142. if test -n "$ac_ct_RANLIB"; then
  6143. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6144. else
  6145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6146. for as_dir in $PATH
  6147. do
  6148. IFS=$as_save_IFS
  6149. test -z "$as_dir" && as_dir=.
  6150. for ac_exec_ext in '' $ac_executable_extensions; do
  6151. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6152. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6153. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6154. break 2
  6155. fi
  6156. done
  6157. done
  6158. IFS=$as_save_IFS
  6159. fi
  6160. fi
  6161. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6162. if test -n "$ac_ct_RANLIB"; then
  6163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6164. $as_echo "$ac_ct_RANLIB" >&6; }
  6165. else
  6166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6167. $as_echo "no" >&6; }
  6168. fi
  6169. if test "x$ac_ct_RANLIB" = x; then
  6170. RANLIB=":"
  6171. else
  6172. case $cross_compiling:$ac_tool_warned in
  6173. yes:)
  6174. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6175. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6176. ac_tool_warned=yes ;;
  6177. esac
  6178. RANLIB=$ac_ct_RANLIB
  6179. fi
  6180. else
  6181. RANLIB="$ac_cv_prog_RANLIB"
  6182. fi
  6183. test -z "$RANLIB" && RANLIB=:
  6184. # Determine commands to create old-style static archives.
  6185. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6186. old_postinstall_cmds='chmod 644 $oldlib'
  6187. old_postuninstall_cmds=
  6188. if test -n "$RANLIB"; then
  6189. case $host_os in
  6190. openbsd*)
  6191. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6192. ;;
  6193. *)
  6194. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6195. ;;
  6196. esac
  6197. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6198. fi
  6199. # If no C compiler was specified, use CC.
  6200. LTCC=${LTCC-"$CC"}
  6201. # If no C compiler flags were specified, use CFLAGS.
  6202. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6203. # Allow CC to be a program name with arguments.
  6204. compiler=$CC
  6205. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6207. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6208. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6209. $as_echo_n "(cached) " >&6
  6210. else
  6211. # These are sane defaults that work on at least a few old systems.
  6212. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6213. # Character class describing NM global symbol codes.
  6214. symcode='[BCDEGRST]'
  6215. # Regexp to match symbols that can be accessed directly from C.
  6216. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6217. # Define system-specific variables.
  6218. case $host_os in
  6219. aix*)
  6220. symcode='[BCDT]'
  6221. ;;
  6222. cygwin* | mingw* | pw32* | cegcc*)
  6223. symcode='[ABCDGISTW]'
  6224. ;;
  6225. hpux*)
  6226. if test "$host_cpu" = ia64; then
  6227. symcode='[ABCDEGRST]'
  6228. fi
  6229. ;;
  6230. irix* | nonstopux*)
  6231. symcode='[BCDEGRST]'
  6232. ;;
  6233. osf*)
  6234. symcode='[BCDEGQRST]'
  6235. ;;
  6236. solaris*)
  6237. symcode='[BDRT]'
  6238. ;;
  6239. sco3.2v5*)
  6240. symcode='[DT]'
  6241. ;;
  6242. sysv4.2uw2*)
  6243. symcode='[DT]'
  6244. ;;
  6245. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6246. symcode='[ABDT]'
  6247. ;;
  6248. sysv4)
  6249. symcode='[DFNSTU]'
  6250. ;;
  6251. esac
  6252. # If we're using GNU nm, then use its standard symbol codes.
  6253. case `$NM -V 2>&1` in
  6254. *GNU* | *'with BFD'*)
  6255. symcode='[ABCDGIRSTW]' ;;
  6256. esac
  6257. # Transform an extracted symbol line into a proper C declaration.
  6258. # Some systems (esp. on ia64) link data and code symbols differently,
  6259. # so use this general approach.
  6260. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6261. # Transform an extracted symbol line into symbol name and symbol address
  6262. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6263. 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'"
  6264. # Handle CRLF in mingw tool chain
  6265. opt_cr=
  6266. case $build_os in
  6267. mingw*)
  6268. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6269. ;;
  6270. esac
  6271. # Try without a prefix underscore, then with it.
  6272. for ac_symprfx in "" "_"; do
  6273. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6274. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6275. # Write the raw and C identifiers.
  6276. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6277. # Fake it for dumpbin and say T for any non-static function
  6278. # and D for any global variable.
  6279. # Also find C++ and __fastcall symbols from MSVC++,
  6280. # which start with @ or ?.
  6281. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6282. " {last_section=section; section=\$ 3};"\
  6283. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6284. " \$ 0!~/External *\|/{next};"\
  6285. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6286. " {if(hide[section]) next};"\
  6287. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6288. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6289. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6290. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6291. " ' prfx=^$ac_symprfx"
  6292. else
  6293. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6294. fi
  6295. # Check to see that the pipe works correctly.
  6296. pipe_works=no
  6297. rm -f conftest*
  6298. cat > conftest.$ac_ext <<_LT_EOF
  6299. #ifdef __cplusplus
  6300. extern "C" {
  6301. #endif
  6302. char nm_test_var;
  6303. void nm_test_func(void);
  6304. void nm_test_func(void){}
  6305. #ifdef __cplusplus
  6306. }
  6307. #endif
  6308. int main(){nm_test_var='a';nm_test_func();return(0);}
  6309. _LT_EOF
  6310. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6311. (eval $ac_compile) 2>&5
  6312. ac_status=$?
  6313. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6314. test $ac_status = 0; }; then
  6315. # Now try to grab the symbols.
  6316. nlist=conftest.nm
  6317. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  6318. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  6319. ac_status=$?
  6320. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6321. test $ac_status = 0; } && test -s "$nlist"; then
  6322. # Try sorting and uniquifying the output.
  6323. if sort "$nlist" | uniq > "$nlist"T; then
  6324. mv -f "$nlist"T "$nlist"
  6325. else
  6326. rm -f "$nlist"T
  6327. fi
  6328. # Make sure that we snagged all the symbols we need.
  6329. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6330. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6331. cat <<_LT_EOF > conftest.$ac_ext
  6332. #ifdef __cplusplus
  6333. extern "C" {
  6334. #endif
  6335. _LT_EOF
  6336. # Now generate the symbol file.
  6337. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6338. cat <<_LT_EOF >> conftest.$ac_ext
  6339. /* The mapping between symbol names and symbols. */
  6340. const struct {
  6341. const char *name;
  6342. void *address;
  6343. }
  6344. lt__PROGRAM__LTX_preloaded_symbols[] =
  6345. {
  6346. { "@PROGRAM@", (void *) 0 },
  6347. _LT_EOF
  6348. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6349. cat <<\_LT_EOF >> conftest.$ac_ext
  6350. {0, (void *) 0}
  6351. };
  6352. /* This works around a problem in FreeBSD linker */
  6353. #ifdef FREEBSD_WORKAROUND
  6354. static const void *lt_preloaded_setup() {
  6355. return lt__PROGRAM__LTX_preloaded_symbols;
  6356. }
  6357. #endif
  6358. #ifdef __cplusplus
  6359. }
  6360. #endif
  6361. _LT_EOF
  6362. # Now try linking the two files.
  6363. mv conftest.$ac_objext conftstm.$ac_objext
  6364. lt_save_LIBS="$LIBS"
  6365. lt_save_CFLAGS="$CFLAGS"
  6366. LIBS="conftstm.$ac_objext"
  6367. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6368. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6369. (eval $ac_link) 2>&5
  6370. ac_status=$?
  6371. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6372. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6373. pipe_works=yes
  6374. fi
  6375. LIBS="$lt_save_LIBS"
  6376. CFLAGS="$lt_save_CFLAGS"
  6377. else
  6378. echo "cannot find nm_test_func in $nlist" >&5
  6379. fi
  6380. else
  6381. echo "cannot find nm_test_var in $nlist" >&5
  6382. fi
  6383. else
  6384. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6385. fi
  6386. else
  6387. echo "$progname: failed program was:" >&5
  6388. cat conftest.$ac_ext >&5
  6389. fi
  6390. rm -rf conftest* conftst*
  6391. # Do not use the global_symbol_pipe unless it works.
  6392. if test "$pipe_works" = yes; then
  6393. break
  6394. else
  6395. lt_cv_sys_global_symbol_pipe=
  6396. fi
  6397. done
  6398. fi
  6399. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6400. lt_cv_sys_global_symbol_to_cdecl=
  6401. fi
  6402. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6404. $as_echo "failed" >&6; }
  6405. else
  6406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6407. $as_echo "ok" >&6; }
  6408. fi
  6409. # Check whether --enable-libtool-lock was given.
  6410. if test "${enable_libtool_lock+set}" = set; then :
  6411. enableval=$enable_libtool_lock;
  6412. fi
  6413. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6414. # Some flags need to be propagated to the compiler or linker for good
  6415. # libtool support.
  6416. case $host in
  6417. ia64-*-hpux*)
  6418. # Find out which ABI we are using.
  6419. echo 'int i;' > conftest.$ac_ext
  6420. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6421. (eval $ac_compile) 2>&5
  6422. ac_status=$?
  6423. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6424. test $ac_status = 0; }; then
  6425. case `/usr/bin/file conftest.$ac_objext` in
  6426. *ELF-32*)
  6427. HPUX_IA64_MODE="32"
  6428. ;;
  6429. *ELF-64*)
  6430. HPUX_IA64_MODE="64"
  6431. ;;
  6432. esac
  6433. fi
  6434. rm -rf conftest*
  6435. ;;
  6436. *-*-irix6*)
  6437. # Find out which ABI we are using.
  6438. echo '#line 7277 "configure"' > conftest.$ac_ext
  6439. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6440. (eval $ac_compile) 2>&5
  6441. ac_status=$?
  6442. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6443. test $ac_status = 0; }; then
  6444. if test "$lt_cv_prog_gnu_ld" = yes; then
  6445. case `/usr/bin/file conftest.$ac_objext` in
  6446. *32-bit*)
  6447. LD="${LD-ld} -melf32bsmip"
  6448. ;;
  6449. *N32*)
  6450. LD="${LD-ld} -melf32bmipn32"
  6451. ;;
  6452. *64-bit*)
  6453. LD="${LD-ld} -melf64bmip"
  6454. ;;
  6455. esac
  6456. else
  6457. case `/usr/bin/file conftest.$ac_objext` in
  6458. *32-bit*)
  6459. LD="${LD-ld} -32"
  6460. ;;
  6461. *N32*)
  6462. LD="${LD-ld} -n32"
  6463. ;;
  6464. *64-bit*)
  6465. LD="${LD-ld} -64"
  6466. ;;
  6467. esac
  6468. fi
  6469. fi
  6470. rm -rf conftest*
  6471. ;;
  6472. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6473. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6474. # Find out which ABI we are using.
  6475. echo 'int i;' > conftest.$ac_ext
  6476. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6477. (eval $ac_compile) 2>&5
  6478. ac_status=$?
  6479. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6480. test $ac_status = 0; }; then
  6481. case `/usr/bin/file conftest.o` in
  6482. *32-bit*)
  6483. case $host in
  6484. x86_64-*kfreebsd*-gnu)
  6485. LD="${LD-ld} -m elf_i386_fbsd"
  6486. ;;
  6487. x86_64-*linux*)
  6488. LD="${LD-ld} -m elf_i386"
  6489. ;;
  6490. ppc64-*linux*|powerpc64-*linux*)
  6491. LD="${LD-ld} -m elf32ppclinux"
  6492. ;;
  6493. s390x-*linux*)
  6494. LD="${LD-ld} -m elf_s390"
  6495. ;;
  6496. sparc64-*linux*)
  6497. LD="${LD-ld} -m elf32_sparc"
  6498. ;;
  6499. esac
  6500. ;;
  6501. *64-bit*)
  6502. case $host in
  6503. x86_64-*kfreebsd*-gnu)
  6504. LD="${LD-ld} -m elf_x86_64_fbsd"
  6505. ;;
  6506. x86_64-*linux*)
  6507. LD="${LD-ld} -m elf_x86_64"
  6508. ;;
  6509. ppc*-*linux*|powerpc*-*linux*)
  6510. LD="${LD-ld} -m elf64ppc"
  6511. ;;
  6512. s390*-*linux*|s390*-*tpf*)
  6513. LD="${LD-ld} -m elf64_s390"
  6514. ;;
  6515. sparc*-*linux*)
  6516. LD="${LD-ld} -m elf64_sparc"
  6517. ;;
  6518. esac
  6519. ;;
  6520. esac
  6521. fi
  6522. rm -rf conftest*
  6523. ;;
  6524. *-*-sco3.2v5*)
  6525. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6526. SAVE_CFLAGS="$CFLAGS"
  6527. CFLAGS="$CFLAGS -belf"
  6528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6529. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6530. if ${lt_cv_cc_needs_belf+:} false; then :
  6531. $as_echo_n "(cached) " >&6
  6532. else
  6533. ac_ext=c
  6534. ac_cpp='$CPP $CPPFLAGS'
  6535. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6536. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6537. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6539. /* end confdefs.h. */
  6540. int
  6541. main ()
  6542. {
  6543. ;
  6544. return 0;
  6545. }
  6546. _ACEOF
  6547. if ac_fn_c_try_link "$LINENO"; then :
  6548. lt_cv_cc_needs_belf=yes
  6549. else
  6550. lt_cv_cc_needs_belf=no
  6551. fi
  6552. rm -f core conftest.err conftest.$ac_objext \
  6553. conftest$ac_exeext conftest.$ac_ext
  6554. ac_ext=c
  6555. ac_cpp='$CPP $CPPFLAGS'
  6556. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6557. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6558. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6559. fi
  6560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6561. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6562. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6563. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6564. CFLAGS="$SAVE_CFLAGS"
  6565. fi
  6566. ;;
  6567. sparc*-*solaris*)
  6568. # Find out which ABI we are using.
  6569. echo 'int i;' > conftest.$ac_ext
  6570. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6571. (eval $ac_compile) 2>&5
  6572. ac_status=$?
  6573. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6574. test $ac_status = 0; }; then
  6575. case `/usr/bin/file conftest.o` in
  6576. *64-bit*)
  6577. case $lt_cv_prog_gnu_ld in
  6578. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6579. *)
  6580. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6581. LD="${LD-ld} -64"
  6582. fi
  6583. ;;
  6584. esac
  6585. ;;
  6586. esac
  6587. fi
  6588. rm -rf conftest*
  6589. ;;
  6590. esac
  6591. need_locks="$enable_libtool_lock"
  6592. case $host_os in
  6593. rhapsody* | darwin*)
  6594. if test -n "$ac_tool_prefix"; then
  6595. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6596. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6598. $as_echo_n "checking for $ac_word... " >&6; }
  6599. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6600. $as_echo_n "(cached) " >&6
  6601. else
  6602. if test -n "$DSYMUTIL"; then
  6603. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6604. else
  6605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6606. for as_dir in $PATH
  6607. do
  6608. IFS=$as_save_IFS
  6609. test -z "$as_dir" && as_dir=.
  6610. for ac_exec_ext in '' $ac_executable_extensions; do
  6611. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6612. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6613. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6614. break 2
  6615. fi
  6616. done
  6617. done
  6618. IFS=$as_save_IFS
  6619. fi
  6620. fi
  6621. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6622. if test -n "$DSYMUTIL"; then
  6623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6624. $as_echo "$DSYMUTIL" >&6; }
  6625. else
  6626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6627. $as_echo "no" >&6; }
  6628. fi
  6629. fi
  6630. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6631. ac_ct_DSYMUTIL=$DSYMUTIL
  6632. # Extract the first word of "dsymutil", so it can be a program name with args.
  6633. set dummy dsymutil; ac_word=$2
  6634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6635. $as_echo_n "checking for $ac_word... " >&6; }
  6636. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6637. $as_echo_n "(cached) " >&6
  6638. else
  6639. if test -n "$ac_ct_DSYMUTIL"; then
  6640. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6641. else
  6642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6643. for as_dir in $PATH
  6644. do
  6645. IFS=$as_save_IFS
  6646. test -z "$as_dir" && as_dir=.
  6647. for ac_exec_ext in '' $ac_executable_extensions; do
  6648. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6649. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6650. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6651. break 2
  6652. fi
  6653. done
  6654. done
  6655. IFS=$as_save_IFS
  6656. fi
  6657. fi
  6658. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6659. if test -n "$ac_ct_DSYMUTIL"; then
  6660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6661. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6662. else
  6663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6664. $as_echo "no" >&6; }
  6665. fi
  6666. if test "x$ac_ct_DSYMUTIL" = x; then
  6667. DSYMUTIL=":"
  6668. else
  6669. case $cross_compiling:$ac_tool_warned in
  6670. yes:)
  6671. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6672. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6673. ac_tool_warned=yes ;;
  6674. esac
  6675. DSYMUTIL=$ac_ct_DSYMUTIL
  6676. fi
  6677. else
  6678. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6679. fi
  6680. if test -n "$ac_tool_prefix"; then
  6681. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6682. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6684. $as_echo_n "checking for $ac_word... " >&6; }
  6685. if ${ac_cv_prog_NMEDIT+:} false; then :
  6686. $as_echo_n "(cached) " >&6
  6687. else
  6688. if test -n "$NMEDIT"; then
  6689. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6690. else
  6691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6692. for as_dir in $PATH
  6693. do
  6694. IFS=$as_save_IFS
  6695. test -z "$as_dir" && as_dir=.
  6696. for ac_exec_ext in '' $ac_executable_extensions; do
  6697. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6698. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6700. break 2
  6701. fi
  6702. done
  6703. done
  6704. IFS=$as_save_IFS
  6705. fi
  6706. fi
  6707. NMEDIT=$ac_cv_prog_NMEDIT
  6708. if test -n "$NMEDIT"; then
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6710. $as_echo "$NMEDIT" >&6; }
  6711. else
  6712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6713. $as_echo "no" >&6; }
  6714. fi
  6715. fi
  6716. if test -z "$ac_cv_prog_NMEDIT"; then
  6717. ac_ct_NMEDIT=$NMEDIT
  6718. # Extract the first word of "nmedit", so it can be a program name with args.
  6719. set dummy nmedit; ac_word=$2
  6720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6721. $as_echo_n "checking for $ac_word... " >&6; }
  6722. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6723. $as_echo_n "(cached) " >&6
  6724. else
  6725. if test -n "$ac_ct_NMEDIT"; then
  6726. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6727. else
  6728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6729. for as_dir in $PATH
  6730. do
  6731. IFS=$as_save_IFS
  6732. test -z "$as_dir" && as_dir=.
  6733. for ac_exec_ext in '' $ac_executable_extensions; do
  6734. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6735. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6736. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6737. break 2
  6738. fi
  6739. done
  6740. done
  6741. IFS=$as_save_IFS
  6742. fi
  6743. fi
  6744. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6745. if test -n "$ac_ct_NMEDIT"; then
  6746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6747. $as_echo "$ac_ct_NMEDIT" >&6; }
  6748. else
  6749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6750. $as_echo "no" >&6; }
  6751. fi
  6752. if test "x$ac_ct_NMEDIT" = x; then
  6753. NMEDIT=":"
  6754. else
  6755. case $cross_compiling:$ac_tool_warned in
  6756. yes:)
  6757. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6758. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6759. ac_tool_warned=yes ;;
  6760. esac
  6761. NMEDIT=$ac_ct_NMEDIT
  6762. fi
  6763. else
  6764. NMEDIT="$ac_cv_prog_NMEDIT"
  6765. fi
  6766. if test -n "$ac_tool_prefix"; then
  6767. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6768. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6770. $as_echo_n "checking for $ac_word... " >&6; }
  6771. if ${ac_cv_prog_LIPO+:} false; then :
  6772. $as_echo_n "(cached) " >&6
  6773. else
  6774. if test -n "$LIPO"; then
  6775. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6776. else
  6777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6778. for as_dir in $PATH
  6779. do
  6780. IFS=$as_save_IFS
  6781. test -z "$as_dir" && as_dir=.
  6782. for ac_exec_ext in '' $ac_executable_extensions; do
  6783. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6784. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6785. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6786. break 2
  6787. fi
  6788. done
  6789. done
  6790. IFS=$as_save_IFS
  6791. fi
  6792. fi
  6793. LIPO=$ac_cv_prog_LIPO
  6794. if test -n "$LIPO"; then
  6795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6796. $as_echo "$LIPO" >&6; }
  6797. else
  6798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6799. $as_echo "no" >&6; }
  6800. fi
  6801. fi
  6802. if test -z "$ac_cv_prog_LIPO"; then
  6803. ac_ct_LIPO=$LIPO
  6804. # Extract the first word of "lipo", so it can be a program name with args.
  6805. set dummy lipo; ac_word=$2
  6806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6807. $as_echo_n "checking for $ac_word... " >&6; }
  6808. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6809. $as_echo_n "(cached) " >&6
  6810. else
  6811. if test -n "$ac_ct_LIPO"; then
  6812. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6813. else
  6814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6815. for as_dir in $PATH
  6816. do
  6817. IFS=$as_save_IFS
  6818. test -z "$as_dir" && as_dir=.
  6819. for ac_exec_ext in '' $ac_executable_extensions; do
  6820. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6821. ac_cv_prog_ac_ct_LIPO="lipo"
  6822. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6823. break 2
  6824. fi
  6825. done
  6826. done
  6827. IFS=$as_save_IFS
  6828. fi
  6829. fi
  6830. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6831. if test -n "$ac_ct_LIPO"; then
  6832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6833. $as_echo "$ac_ct_LIPO" >&6; }
  6834. else
  6835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6836. $as_echo "no" >&6; }
  6837. fi
  6838. if test "x$ac_ct_LIPO" = x; then
  6839. LIPO=":"
  6840. else
  6841. case $cross_compiling:$ac_tool_warned in
  6842. yes:)
  6843. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6844. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6845. ac_tool_warned=yes ;;
  6846. esac
  6847. LIPO=$ac_ct_LIPO
  6848. fi
  6849. else
  6850. LIPO="$ac_cv_prog_LIPO"
  6851. fi
  6852. if test -n "$ac_tool_prefix"; then
  6853. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6854. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6856. $as_echo_n "checking for $ac_word... " >&6; }
  6857. if ${ac_cv_prog_OTOOL+:} false; then :
  6858. $as_echo_n "(cached) " >&6
  6859. else
  6860. if test -n "$OTOOL"; then
  6861. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6862. else
  6863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6864. for as_dir in $PATH
  6865. do
  6866. IFS=$as_save_IFS
  6867. test -z "$as_dir" && as_dir=.
  6868. for ac_exec_ext in '' $ac_executable_extensions; do
  6869. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6870. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6871. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6872. break 2
  6873. fi
  6874. done
  6875. done
  6876. IFS=$as_save_IFS
  6877. fi
  6878. fi
  6879. OTOOL=$ac_cv_prog_OTOOL
  6880. if test -n "$OTOOL"; then
  6881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6882. $as_echo "$OTOOL" >&6; }
  6883. else
  6884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6885. $as_echo "no" >&6; }
  6886. fi
  6887. fi
  6888. if test -z "$ac_cv_prog_OTOOL"; then
  6889. ac_ct_OTOOL=$OTOOL
  6890. # Extract the first word of "otool", so it can be a program name with args.
  6891. set dummy otool; ac_word=$2
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6893. $as_echo_n "checking for $ac_word... " >&6; }
  6894. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6895. $as_echo_n "(cached) " >&6
  6896. else
  6897. if test -n "$ac_ct_OTOOL"; then
  6898. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6899. else
  6900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6901. for as_dir in $PATH
  6902. do
  6903. IFS=$as_save_IFS
  6904. test -z "$as_dir" && as_dir=.
  6905. for ac_exec_ext in '' $ac_executable_extensions; do
  6906. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6907. ac_cv_prog_ac_ct_OTOOL="otool"
  6908. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6909. break 2
  6910. fi
  6911. done
  6912. done
  6913. IFS=$as_save_IFS
  6914. fi
  6915. fi
  6916. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6917. if test -n "$ac_ct_OTOOL"; then
  6918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6919. $as_echo "$ac_ct_OTOOL" >&6; }
  6920. else
  6921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6922. $as_echo "no" >&6; }
  6923. fi
  6924. if test "x$ac_ct_OTOOL" = x; then
  6925. OTOOL=":"
  6926. else
  6927. case $cross_compiling:$ac_tool_warned in
  6928. yes:)
  6929. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6930. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6931. ac_tool_warned=yes ;;
  6932. esac
  6933. OTOOL=$ac_ct_OTOOL
  6934. fi
  6935. else
  6936. OTOOL="$ac_cv_prog_OTOOL"
  6937. fi
  6938. if test -n "$ac_tool_prefix"; then
  6939. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6940. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6942. $as_echo_n "checking for $ac_word... " >&6; }
  6943. if ${ac_cv_prog_OTOOL64+:} false; then :
  6944. $as_echo_n "(cached) " >&6
  6945. else
  6946. if test -n "$OTOOL64"; then
  6947. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6948. else
  6949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6950. for as_dir in $PATH
  6951. do
  6952. IFS=$as_save_IFS
  6953. test -z "$as_dir" && as_dir=.
  6954. for ac_exec_ext in '' $ac_executable_extensions; do
  6955. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6956. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6957. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6958. break 2
  6959. fi
  6960. done
  6961. done
  6962. IFS=$as_save_IFS
  6963. fi
  6964. fi
  6965. OTOOL64=$ac_cv_prog_OTOOL64
  6966. if test -n "$OTOOL64"; then
  6967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6968. $as_echo "$OTOOL64" >&6; }
  6969. else
  6970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6971. $as_echo "no" >&6; }
  6972. fi
  6973. fi
  6974. if test -z "$ac_cv_prog_OTOOL64"; then
  6975. ac_ct_OTOOL64=$OTOOL64
  6976. # Extract the first word of "otool64", so it can be a program name with args.
  6977. set dummy otool64; ac_word=$2
  6978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6979. $as_echo_n "checking for $ac_word... " >&6; }
  6980. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6981. $as_echo_n "(cached) " >&6
  6982. else
  6983. if test -n "$ac_ct_OTOOL64"; then
  6984. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6985. else
  6986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6987. for as_dir in $PATH
  6988. do
  6989. IFS=$as_save_IFS
  6990. test -z "$as_dir" && as_dir=.
  6991. for ac_exec_ext in '' $ac_executable_extensions; do
  6992. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6993. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6994. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6995. break 2
  6996. fi
  6997. done
  6998. done
  6999. IFS=$as_save_IFS
  7000. fi
  7001. fi
  7002. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7003. if test -n "$ac_ct_OTOOL64"; then
  7004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7005. $as_echo "$ac_ct_OTOOL64" >&6; }
  7006. else
  7007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7008. $as_echo "no" >&6; }
  7009. fi
  7010. if test "x$ac_ct_OTOOL64" = x; then
  7011. OTOOL64=":"
  7012. else
  7013. case $cross_compiling:$ac_tool_warned in
  7014. yes:)
  7015. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7016. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7017. ac_tool_warned=yes ;;
  7018. esac
  7019. OTOOL64=$ac_ct_OTOOL64
  7020. fi
  7021. else
  7022. OTOOL64="$ac_cv_prog_OTOOL64"
  7023. fi
  7024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7025. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7026. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7027. $as_echo_n "(cached) " >&6
  7028. else
  7029. lt_cv_apple_cc_single_mod=no
  7030. if test -z "${LT_MULTI_MODULE}"; then
  7031. # By default we will add the -single_module flag. You can override
  7032. # by either setting the environment variable LT_MULTI_MODULE
  7033. # non-empty at configure time, or by adding -multi_module to the
  7034. # link flags.
  7035. rm -rf libconftest.dylib*
  7036. echo "int foo(void){return 1;}" > conftest.c
  7037. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7038. -dynamiclib -Wl,-single_module conftest.c" >&5
  7039. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7040. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7041. _lt_result=$?
  7042. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7043. lt_cv_apple_cc_single_mod=yes
  7044. else
  7045. cat conftest.err >&5
  7046. fi
  7047. rm -rf libconftest.dylib*
  7048. rm -f conftest.*
  7049. fi
  7050. fi
  7051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7052. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7054. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7055. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7056. $as_echo_n "(cached) " >&6
  7057. else
  7058. lt_cv_ld_exported_symbols_list=no
  7059. save_LDFLAGS=$LDFLAGS
  7060. echo "_main" > conftest.sym
  7061. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7063. /* end confdefs.h. */
  7064. int
  7065. main ()
  7066. {
  7067. ;
  7068. return 0;
  7069. }
  7070. _ACEOF
  7071. if ac_fn_c_try_link "$LINENO"; then :
  7072. lt_cv_ld_exported_symbols_list=yes
  7073. else
  7074. lt_cv_ld_exported_symbols_list=no
  7075. fi
  7076. rm -f core conftest.err conftest.$ac_objext \
  7077. conftest$ac_exeext conftest.$ac_ext
  7078. LDFLAGS="$save_LDFLAGS"
  7079. fi
  7080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7081. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7082. case $host_os in
  7083. rhapsody* | darwin1.[012])
  7084. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7085. darwin1.*)
  7086. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7087. darwin*) # darwin 5.x on
  7088. # if running on 10.5 or later, the deployment target defaults
  7089. # to the OS version, if on x86, and 10.4, the deployment
  7090. # target defaults to 10.4. Don't you love it?
  7091. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7092. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7093. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7094. 10.[012]*)
  7095. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7096. 10.*)
  7097. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7098. esac
  7099. ;;
  7100. esac
  7101. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7102. _lt_dar_single_mod='$single_module'
  7103. fi
  7104. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7105. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7106. else
  7107. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7108. fi
  7109. if test "$DSYMUTIL" != ":"; then
  7110. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7111. else
  7112. _lt_dsymutil=
  7113. fi
  7114. ;;
  7115. esac
  7116. for ac_header in dlfcn.h
  7117. do :
  7118. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7119. "
  7120. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7121. cat >>confdefs.h <<_ACEOF
  7122. #define HAVE_DLFCN_H 1
  7123. _ACEOF
  7124. fi
  7125. done
  7126. # Set options
  7127. # Check whether --enable-static was given.
  7128. if test "${enable_static+set}" = set; then :
  7129. enableval=$enable_static; p=${PACKAGE-default}
  7130. case $enableval in
  7131. yes) enable_static=yes ;;
  7132. no) enable_static=no ;;
  7133. *)
  7134. enable_static=no
  7135. # Look at the argument we got. We use all the common list separators.
  7136. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7137. for pkg in $enableval; do
  7138. IFS="$lt_save_ifs"
  7139. if test "X$pkg" = "X$p"; then
  7140. enable_static=yes
  7141. fi
  7142. done
  7143. IFS="$lt_save_ifs"
  7144. ;;
  7145. esac
  7146. else
  7147. enable_static=no
  7148. fi
  7149. # Check whether --with-pic was given.
  7150. if test "${with_pic+set}" = set; then :
  7151. withval=$with_pic; pic_mode="$withval"
  7152. else
  7153. pic_mode=default
  7154. fi
  7155. test -z "$pic_mode" && pic_mode=yes
  7156. enable_dlopen=no
  7157. enable_win32_dll=no
  7158. # Check whether --enable-shared was given.
  7159. if test "${enable_shared+set}" = set; then :
  7160. enableval=$enable_shared; p=${PACKAGE-default}
  7161. case $enableval in
  7162. yes) enable_shared=yes ;;
  7163. no) enable_shared=no ;;
  7164. *)
  7165. enable_shared=no
  7166. # Look at the argument we got. We use all the common list separators.
  7167. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7168. for pkg in $enableval; do
  7169. IFS="$lt_save_ifs"
  7170. if test "X$pkg" = "X$p"; then
  7171. enable_shared=yes
  7172. fi
  7173. done
  7174. IFS="$lt_save_ifs"
  7175. ;;
  7176. esac
  7177. else
  7178. enable_shared=yes
  7179. fi
  7180. # Check whether --enable-fast-install was given.
  7181. if test "${enable_fast_install+set}" = set; then :
  7182. enableval=$enable_fast_install; p=${PACKAGE-default}
  7183. case $enableval in
  7184. yes) enable_fast_install=yes ;;
  7185. no) enable_fast_install=no ;;
  7186. *)
  7187. enable_fast_install=no
  7188. # Look at the argument we got. We use all the common list separators.
  7189. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7190. for pkg in $enableval; do
  7191. IFS="$lt_save_ifs"
  7192. if test "X$pkg" = "X$p"; then
  7193. enable_fast_install=yes
  7194. fi
  7195. done
  7196. IFS="$lt_save_ifs"
  7197. ;;
  7198. esac
  7199. else
  7200. enable_fast_install=yes
  7201. fi
  7202. # This can be used to rebuild libtool when needed
  7203. LIBTOOL_DEPS="$ltmain"
  7204. # Always use our own libtool.
  7205. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7206. test -z "$LN_S" && LN_S="ln -s"
  7207. if test -n "${ZSH_VERSION+set}" ; then
  7208. setopt NO_GLOB_SUBST
  7209. fi
  7210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7211. $as_echo_n "checking for objdir... " >&6; }
  7212. if ${lt_cv_objdir+:} false; then :
  7213. $as_echo_n "(cached) " >&6
  7214. else
  7215. rm -f .libs 2>/dev/null
  7216. mkdir .libs 2>/dev/null
  7217. if test -d .libs; then
  7218. lt_cv_objdir=.libs
  7219. else
  7220. # MS-DOS does not allow filenames that begin with a dot.
  7221. lt_cv_objdir=_libs
  7222. fi
  7223. rmdir .libs 2>/dev/null
  7224. fi
  7225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7226. $as_echo "$lt_cv_objdir" >&6; }
  7227. objdir=$lt_cv_objdir
  7228. cat >>confdefs.h <<_ACEOF
  7229. #define LT_OBJDIR "$lt_cv_objdir/"
  7230. _ACEOF
  7231. case $host_os in
  7232. aix3*)
  7233. # AIX sometimes has problems with the GCC collect2 program. For some
  7234. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7235. # vanish in a puff of smoke.
  7236. if test "X${COLLECT_NAMES+set}" != Xset; then
  7237. COLLECT_NAMES=
  7238. export COLLECT_NAMES
  7239. fi
  7240. ;;
  7241. esac
  7242. # Sed substitution that helps us do robust quoting. It backslashifies
  7243. # metacharacters that are still active within double-quoted strings.
  7244. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7245. # Same as above, but do not quote variable references.
  7246. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7247. # Sed substitution to delay expansion of an escaped shell variable in a
  7248. # double_quote_subst'ed string.
  7249. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7250. # Sed substitution to delay expansion of an escaped single quote.
  7251. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7252. # Sed substitution to avoid accidental globbing in evaled expressions
  7253. no_glob_subst='s/\*/\\\*/g'
  7254. # Global variables:
  7255. ofile=libtool
  7256. can_build_shared=yes
  7257. # All known linkers require a `.a' archive for static linking (except MSVC,
  7258. # which needs '.lib').
  7259. libext=a
  7260. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7261. old_CC="$CC"
  7262. old_CFLAGS="$CFLAGS"
  7263. # Set sane defaults for various variables
  7264. test -z "$CC" && CC=cc
  7265. test -z "$LTCC" && LTCC=$CC
  7266. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7267. test -z "$LD" && LD=ld
  7268. test -z "$ac_objext" && ac_objext=o
  7269. for cc_temp in $compiler""; do
  7270. case $cc_temp in
  7271. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7272. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7273. \-*) ;;
  7274. *) break;;
  7275. esac
  7276. done
  7277. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7278. # Only perform the check for file, if the check method requires it
  7279. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7280. case $deplibs_check_method in
  7281. file_magic*)
  7282. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7284. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7285. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7286. $as_echo_n "(cached) " >&6
  7287. else
  7288. case $MAGIC_CMD in
  7289. [\\/*] | ?:[\\/]*)
  7290. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7291. ;;
  7292. *)
  7293. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7294. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7295. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7296. for ac_dir in $ac_dummy; do
  7297. IFS="$lt_save_ifs"
  7298. test -z "$ac_dir" && ac_dir=.
  7299. if test -f $ac_dir/${ac_tool_prefix}file; then
  7300. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7301. if test -n "$file_magic_test_file"; then
  7302. case $deplibs_check_method in
  7303. "file_magic "*)
  7304. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7305. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7306. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7307. $EGREP "$file_magic_regex" > /dev/null; then
  7308. :
  7309. else
  7310. cat <<_LT_EOF 1>&2
  7311. *** Warning: the command libtool uses to detect shared libraries,
  7312. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7313. *** The result is that libtool may fail to recognize shared libraries
  7314. *** as such. This will affect the creation of libtool libraries that
  7315. *** depend on shared libraries, but programs linked with such libtool
  7316. *** libraries will work regardless of this problem. Nevertheless, you
  7317. *** may want to report the problem to your system manager and/or to
  7318. *** bug-libtool@gnu.org
  7319. _LT_EOF
  7320. fi ;;
  7321. esac
  7322. fi
  7323. break
  7324. fi
  7325. done
  7326. IFS="$lt_save_ifs"
  7327. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7328. ;;
  7329. esac
  7330. fi
  7331. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7332. if test -n "$MAGIC_CMD"; then
  7333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7334. $as_echo "$MAGIC_CMD" >&6; }
  7335. else
  7336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7337. $as_echo "no" >&6; }
  7338. fi
  7339. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7340. if test -n "$ac_tool_prefix"; then
  7341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7342. $as_echo_n "checking for file... " >&6; }
  7343. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7344. $as_echo_n "(cached) " >&6
  7345. else
  7346. case $MAGIC_CMD in
  7347. [\\/*] | ?:[\\/]*)
  7348. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7349. ;;
  7350. *)
  7351. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7352. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7353. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7354. for ac_dir in $ac_dummy; do
  7355. IFS="$lt_save_ifs"
  7356. test -z "$ac_dir" && ac_dir=.
  7357. if test -f $ac_dir/file; then
  7358. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7359. if test -n "$file_magic_test_file"; then
  7360. case $deplibs_check_method in
  7361. "file_magic "*)
  7362. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7363. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7364. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7365. $EGREP "$file_magic_regex" > /dev/null; then
  7366. :
  7367. else
  7368. cat <<_LT_EOF 1>&2
  7369. *** Warning: the command libtool uses to detect shared libraries,
  7370. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7371. *** The result is that libtool may fail to recognize shared libraries
  7372. *** as such. This will affect the creation of libtool libraries that
  7373. *** depend on shared libraries, but programs linked with such libtool
  7374. *** libraries will work regardless of this problem. Nevertheless, you
  7375. *** may want to report the problem to your system manager and/or to
  7376. *** bug-libtool@gnu.org
  7377. _LT_EOF
  7378. fi ;;
  7379. esac
  7380. fi
  7381. break
  7382. fi
  7383. done
  7384. IFS="$lt_save_ifs"
  7385. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7386. ;;
  7387. esac
  7388. fi
  7389. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7390. if test -n "$MAGIC_CMD"; then
  7391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7392. $as_echo "$MAGIC_CMD" >&6; }
  7393. else
  7394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7395. $as_echo "no" >&6; }
  7396. fi
  7397. else
  7398. MAGIC_CMD=:
  7399. fi
  7400. fi
  7401. fi
  7402. ;;
  7403. esac
  7404. # Use C for the default configuration in the libtool script
  7405. lt_save_CC="$CC"
  7406. ac_ext=c
  7407. ac_cpp='$CPP $CPPFLAGS'
  7408. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7409. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7410. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7411. # Source file extension for C test sources.
  7412. ac_ext=c
  7413. # Object file extension for compiled C test sources.
  7414. objext=o
  7415. objext=$objext
  7416. # Code to be used in simple compile tests
  7417. lt_simple_compile_test_code="int some_variable = 0;"
  7418. # Code to be used in simple link tests
  7419. lt_simple_link_test_code='int main(){return(0);}'
  7420. # If no C compiler was specified, use CC.
  7421. LTCC=${LTCC-"$CC"}
  7422. # If no C compiler flags were specified, use CFLAGS.
  7423. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7424. # Allow CC to be a program name with arguments.
  7425. compiler=$CC
  7426. # Save the default compiler, since it gets overwritten when the other
  7427. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7428. compiler_DEFAULT=$CC
  7429. # save warnings/boilerplate of simple test code
  7430. ac_outfile=conftest.$ac_objext
  7431. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7432. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7433. _lt_compiler_boilerplate=`cat conftest.err`
  7434. $RM conftest*
  7435. ac_outfile=conftest.$ac_objext
  7436. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7437. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7438. _lt_linker_boilerplate=`cat conftest.err`
  7439. $RM -r conftest*
  7440. ## CAVEAT EMPTOR:
  7441. ## There is no encapsulation within the following macros, do not change
  7442. ## the running order or otherwise move them around unless you know exactly
  7443. ## what you are doing...
  7444. if test -n "$compiler"; then
  7445. lt_prog_compiler_no_builtin_flag=
  7446. if test "$GCC" = yes; then
  7447. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7449. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7450. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7451. $as_echo_n "(cached) " >&6
  7452. else
  7453. lt_cv_prog_compiler_rtti_exceptions=no
  7454. ac_outfile=conftest.$ac_objext
  7455. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7456. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7457. # Insert the option either (1) after the last *FLAGS variable, or
  7458. # (2) before a word containing "conftest.", or (3) at the end.
  7459. # Note that $ac_compile itself does not contain backslashes and begins
  7460. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7461. # The option is referenced via a variable to avoid confusing sed.
  7462. lt_compile=`echo "$ac_compile" | $SED \
  7463. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7464. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7465. -e 's:$: $lt_compiler_flag:'`
  7466. (eval echo "\"\$as_me:8537: $lt_compile\"" >&5)
  7467. (eval "$lt_compile" 2>conftest.err)
  7468. ac_status=$?
  7469. cat conftest.err >&5
  7470. echo "$as_me:8541: \$? = $ac_status" >&5
  7471. if (exit $ac_status) && test -s "$ac_outfile"; then
  7472. # The compiler can only warn and ignore the option if not recognized
  7473. # So say no if there are warnings other than the usual output.
  7474. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7475. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7476. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7477. lt_cv_prog_compiler_rtti_exceptions=yes
  7478. fi
  7479. fi
  7480. $RM conftest*
  7481. fi
  7482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7483. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7484. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7485. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7486. else
  7487. :
  7488. fi
  7489. fi
  7490. lt_prog_compiler_wl=
  7491. lt_prog_compiler_pic=
  7492. lt_prog_compiler_static=
  7493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7494. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7495. if test "$GCC" = yes; then
  7496. lt_prog_compiler_wl='-Wl,'
  7497. lt_prog_compiler_static='-static'
  7498. case $host_os in
  7499. aix*)
  7500. # All AIX code is PIC.
  7501. if test "$host_cpu" = ia64; then
  7502. # AIX 5 now supports IA64 processor
  7503. lt_prog_compiler_static='-Bstatic'
  7504. fi
  7505. ;;
  7506. amigaos*)
  7507. case $host_cpu in
  7508. powerpc)
  7509. # see comment about AmigaOS4 .so support
  7510. lt_prog_compiler_pic='-fPIC'
  7511. ;;
  7512. m68k)
  7513. # FIXME: we need at least 68020 code to build shared libraries, but
  7514. # adding the `-m68020' flag to GCC prevents building anything better,
  7515. # like `-m68040'.
  7516. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7517. ;;
  7518. esac
  7519. ;;
  7520. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7521. # PIC is the default for these OSes.
  7522. ;;
  7523. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7524. # This hack is so that the source file can tell whether it is being
  7525. # built for inclusion in a dll (and should export symbols for example).
  7526. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7527. # (--disable-auto-import) libraries
  7528. lt_prog_compiler_pic='-DDLL_EXPORT'
  7529. ;;
  7530. darwin* | rhapsody*)
  7531. # PIC is the default on this platform
  7532. # Common symbols not allowed in MH_DYLIB files
  7533. lt_prog_compiler_pic='-fno-common'
  7534. ;;
  7535. hpux*)
  7536. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7537. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7538. # sets the default TLS model and affects inlining.
  7539. case $host_cpu in
  7540. hppa*64*)
  7541. # +Z the default
  7542. ;;
  7543. *)
  7544. lt_prog_compiler_pic='-fPIC'
  7545. ;;
  7546. esac
  7547. ;;
  7548. interix[3-9]*)
  7549. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7550. # Instead, we relocate shared libraries at runtime.
  7551. ;;
  7552. msdosdjgpp*)
  7553. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7554. # on systems that don't support them.
  7555. lt_prog_compiler_can_build_shared=no
  7556. enable_shared=no
  7557. ;;
  7558. *nto* | *qnx*)
  7559. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7560. # it will coredump.
  7561. lt_prog_compiler_pic='-fPIC -shared'
  7562. ;;
  7563. sysv4*MP*)
  7564. if test -d /usr/nec; then
  7565. lt_prog_compiler_pic=-Kconform_pic
  7566. fi
  7567. ;;
  7568. *)
  7569. lt_prog_compiler_pic='-fPIC'
  7570. ;;
  7571. esac
  7572. else
  7573. # PORTME Check for flag to pass linker flags through the system compiler.
  7574. case $host_os in
  7575. aix*)
  7576. lt_prog_compiler_wl='-Wl,'
  7577. if test "$host_cpu" = ia64; then
  7578. # AIX 5 now supports IA64 processor
  7579. lt_prog_compiler_static='-Bstatic'
  7580. else
  7581. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7582. fi
  7583. ;;
  7584. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7585. # This hack is so that the source file can tell whether it is being
  7586. # built for inclusion in a dll (and should export symbols for example).
  7587. lt_prog_compiler_pic='-DDLL_EXPORT'
  7588. ;;
  7589. hpux9* | hpux10* | hpux11*)
  7590. lt_prog_compiler_wl='-Wl,'
  7591. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7592. # not for PA HP-UX.
  7593. case $host_cpu in
  7594. hppa*64*|ia64*)
  7595. # +Z the default
  7596. ;;
  7597. *)
  7598. lt_prog_compiler_pic='+Z'
  7599. ;;
  7600. esac
  7601. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7602. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7603. ;;
  7604. irix5* | irix6* | nonstopux*)
  7605. lt_prog_compiler_wl='-Wl,'
  7606. # PIC (with -KPIC) is the default.
  7607. lt_prog_compiler_static='-non_shared'
  7608. ;;
  7609. linux* | k*bsd*-gnu)
  7610. case $cc_basename in
  7611. # old Intel for x86_64 which still supported -KPIC.
  7612. ecc*)
  7613. lt_prog_compiler_wl='-Wl,'
  7614. lt_prog_compiler_pic='-KPIC'
  7615. lt_prog_compiler_static='-static'
  7616. ;;
  7617. # icc used to be incompatible with GCC.
  7618. # ICC 10 doesn't accept -KPIC any more.
  7619. icc* | ifort*)
  7620. lt_prog_compiler_wl='-Wl,'
  7621. lt_prog_compiler_pic='-fPIC'
  7622. lt_prog_compiler_static='-static'
  7623. ;;
  7624. # Lahey Fortran 8.1.
  7625. lf95*)
  7626. lt_prog_compiler_wl='-Wl,'
  7627. lt_prog_compiler_pic='--shared'
  7628. lt_prog_compiler_static='--static'
  7629. ;;
  7630. pgcc* | pgf77* | pgf90* | pgf95*)
  7631. # Portland Group compilers (*not* the Pentium gcc compiler,
  7632. # which looks to be a dead project)
  7633. lt_prog_compiler_wl='-Wl,'
  7634. lt_prog_compiler_pic='-fpic'
  7635. lt_prog_compiler_static='-Bstatic'
  7636. ;;
  7637. ccc*)
  7638. lt_prog_compiler_wl='-Wl,'
  7639. # All Alpha code is PIC.
  7640. lt_prog_compiler_static='-non_shared'
  7641. ;;
  7642. xl*)
  7643. # IBM XL C 8.0/Fortran 10.1 on PPC
  7644. lt_prog_compiler_wl='-Wl,'
  7645. lt_prog_compiler_pic='-qpic'
  7646. lt_prog_compiler_static='-qstaticlink'
  7647. ;;
  7648. *)
  7649. case `$CC -V 2>&1 | sed 5q` in
  7650. *Sun\ C*)
  7651. # Sun C 5.9
  7652. lt_prog_compiler_pic='-KPIC'
  7653. lt_prog_compiler_static='-Bstatic'
  7654. lt_prog_compiler_wl='-Wl,'
  7655. ;;
  7656. *Sun\ F*)
  7657. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7658. lt_prog_compiler_pic='-KPIC'
  7659. lt_prog_compiler_static='-Bstatic'
  7660. lt_prog_compiler_wl=''
  7661. ;;
  7662. esac
  7663. ;;
  7664. esac
  7665. ;;
  7666. newsos6)
  7667. lt_prog_compiler_pic='-KPIC'
  7668. lt_prog_compiler_static='-Bstatic'
  7669. ;;
  7670. *nto* | *qnx*)
  7671. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7672. # it will coredump.
  7673. lt_prog_compiler_pic='-fPIC -shared'
  7674. ;;
  7675. osf3* | osf4* | osf5*)
  7676. lt_prog_compiler_wl='-Wl,'
  7677. # All OSF/1 code is PIC.
  7678. lt_prog_compiler_static='-non_shared'
  7679. ;;
  7680. rdos*)
  7681. lt_prog_compiler_static='-non_shared'
  7682. ;;
  7683. solaris*)
  7684. lt_prog_compiler_pic='-KPIC'
  7685. lt_prog_compiler_static='-Bstatic'
  7686. case $cc_basename in
  7687. f77* | f90* | f95*)
  7688. lt_prog_compiler_wl='-Qoption ld ';;
  7689. *)
  7690. lt_prog_compiler_wl='-Wl,';;
  7691. esac
  7692. ;;
  7693. sunos4*)
  7694. lt_prog_compiler_wl='-Qoption ld '
  7695. lt_prog_compiler_pic='-PIC'
  7696. lt_prog_compiler_static='-Bstatic'
  7697. ;;
  7698. sysv4 | sysv4.2uw2* | sysv4.3*)
  7699. lt_prog_compiler_wl='-Wl,'
  7700. lt_prog_compiler_pic='-KPIC'
  7701. lt_prog_compiler_static='-Bstatic'
  7702. ;;
  7703. sysv4*MP*)
  7704. if test -d /usr/nec ;then
  7705. lt_prog_compiler_pic='-Kconform_pic'
  7706. lt_prog_compiler_static='-Bstatic'
  7707. fi
  7708. ;;
  7709. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7710. lt_prog_compiler_wl='-Wl,'
  7711. lt_prog_compiler_pic='-KPIC'
  7712. lt_prog_compiler_static='-Bstatic'
  7713. ;;
  7714. unicos*)
  7715. lt_prog_compiler_wl='-Wl,'
  7716. lt_prog_compiler_can_build_shared=no
  7717. ;;
  7718. uts4*)
  7719. lt_prog_compiler_pic='-pic'
  7720. lt_prog_compiler_static='-Bstatic'
  7721. ;;
  7722. *)
  7723. lt_prog_compiler_can_build_shared=no
  7724. ;;
  7725. esac
  7726. fi
  7727. case $host_os in
  7728. # For platforms which do not support PIC, -DPIC is meaningless:
  7729. *djgpp*)
  7730. lt_prog_compiler_pic=
  7731. ;;
  7732. *)
  7733. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7734. ;;
  7735. esac
  7736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7737. $as_echo "$lt_prog_compiler_pic" >&6; }
  7738. #
  7739. # Check to make sure the PIC flag actually works.
  7740. #
  7741. if test -n "$lt_prog_compiler_pic"; then
  7742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7743. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7744. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7745. $as_echo_n "(cached) " >&6
  7746. else
  7747. lt_cv_prog_compiler_pic_works=no
  7748. ac_outfile=conftest.$ac_objext
  7749. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7750. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7751. # Insert the option either (1) after the last *FLAGS variable, or
  7752. # (2) before a word containing "conftest.", or (3) at the end.
  7753. # Note that $ac_compile itself does not contain backslashes and begins
  7754. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7755. # The option is referenced via a variable to avoid confusing sed.
  7756. lt_compile=`echo "$ac_compile" | $SED \
  7757. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7758. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7759. -e 's:$: $lt_compiler_flag:'`
  7760. (eval echo "\"\$as_me:8876: $lt_compile\"" >&5)
  7761. (eval "$lt_compile" 2>conftest.err)
  7762. ac_status=$?
  7763. cat conftest.err >&5
  7764. echo "$as_me:8880: \$? = $ac_status" >&5
  7765. if (exit $ac_status) && test -s "$ac_outfile"; then
  7766. # The compiler can only warn and ignore the option if not recognized
  7767. # So say no if there are warnings other than the usual output.
  7768. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7769. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7770. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7771. lt_cv_prog_compiler_pic_works=yes
  7772. fi
  7773. fi
  7774. $RM conftest*
  7775. fi
  7776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7777. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7778. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7779. case $lt_prog_compiler_pic in
  7780. "" | " "*) ;;
  7781. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7782. esac
  7783. else
  7784. lt_prog_compiler_pic=
  7785. lt_prog_compiler_can_build_shared=no
  7786. fi
  7787. fi
  7788. #
  7789. # Check to make sure the static flag actually works.
  7790. #
  7791. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7793. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7794. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7795. $as_echo_n "(cached) " >&6
  7796. else
  7797. lt_cv_prog_compiler_static_works=no
  7798. save_LDFLAGS="$LDFLAGS"
  7799. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7800. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7801. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7802. # The linker can only warn and ignore the option if not recognized
  7803. # So say no if there are warnings
  7804. if test -s conftest.err; then
  7805. # Append any errors to the config.log.
  7806. cat conftest.err 1>&5
  7807. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7808. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7809. if diff conftest.exp conftest.er2 >/dev/null; then
  7810. lt_cv_prog_compiler_static_works=yes
  7811. fi
  7812. else
  7813. lt_cv_prog_compiler_static_works=yes
  7814. fi
  7815. fi
  7816. $RM -r conftest*
  7817. LDFLAGS="$save_LDFLAGS"
  7818. fi
  7819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7820. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7821. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7822. :
  7823. else
  7824. lt_prog_compiler_static=
  7825. fi
  7826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7827. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7828. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7829. $as_echo_n "(cached) " >&6
  7830. else
  7831. lt_cv_prog_compiler_c_o=no
  7832. $RM -r conftest 2>/dev/null
  7833. mkdir conftest
  7834. cd conftest
  7835. mkdir out
  7836. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7837. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7838. # Insert the option either (1) after the last *FLAGS variable, or
  7839. # (2) before a word containing "conftest.", or (3) at the end.
  7840. # Note that $ac_compile itself does not contain backslashes and begins
  7841. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7842. lt_compile=`echo "$ac_compile" | $SED \
  7843. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7844. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7845. -e 's:$: $lt_compiler_flag:'`
  7846. (eval echo "\"\$as_me:8981: $lt_compile\"" >&5)
  7847. (eval "$lt_compile" 2>out/conftest.err)
  7848. ac_status=$?
  7849. cat out/conftest.err >&5
  7850. echo "$as_me:8985: \$? = $ac_status" >&5
  7851. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7852. then
  7853. # The compiler can only warn and ignore the option if not recognized
  7854. # So say no if there are warnings
  7855. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7856. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7857. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7858. lt_cv_prog_compiler_c_o=yes
  7859. fi
  7860. fi
  7861. chmod u+w . 2>&5
  7862. $RM conftest*
  7863. # SGI C++ compiler will create directory out/ii_files/ for
  7864. # template instantiation
  7865. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7866. $RM out/* && rmdir out
  7867. cd ..
  7868. $RM -r conftest
  7869. $RM conftest*
  7870. fi
  7871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7872. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7874. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7875. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7876. $as_echo_n "(cached) " >&6
  7877. else
  7878. lt_cv_prog_compiler_c_o=no
  7879. $RM -r conftest 2>/dev/null
  7880. mkdir conftest
  7881. cd conftest
  7882. mkdir out
  7883. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7884. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7885. # Insert the option either (1) after the last *FLAGS variable, or
  7886. # (2) before a word containing "conftest.", or (3) at the end.
  7887. # Note that $ac_compile itself does not contain backslashes and begins
  7888. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7889. lt_compile=`echo "$ac_compile" | $SED \
  7890. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7891. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7892. -e 's:$: $lt_compiler_flag:'`
  7893. (eval echo "\"\$as_me:9036: $lt_compile\"" >&5)
  7894. (eval "$lt_compile" 2>out/conftest.err)
  7895. ac_status=$?
  7896. cat out/conftest.err >&5
  7897. echo "$as_me:9040: \$? = $ac_status" >&5
  7898. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7899. then
  7900. # The compiler can only warn and ignore the option if not recognized
  7901. # So say no if there are warnings
  7902. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7903. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7904. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7905. lt_cv_prog_compiler_c_o=yes
  7906. fi
  7907. fi
  7908. chmod u+w . 2>&5
  7909. $RM conftest*
  7910. # SGI C++ compiler will create directory out/ii_files/ for
  7911. # template instantiation
  7912. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7913. $RM out/* && rmdir out
  7914. cd ..
  7915. $RM -r conftest
  7916. $RM conftest*
  7917. fi
  7918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7919. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7920. hard_links="nottested"
  7921. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7922. # do not overwrite the value of need_locks provided by the user
  7923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7924. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7925. hard_links=yes
  7926. $RM conftest*
  7927. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7928. touch conftest.a
  7929. ln conftest.a conftest.b 2>&5 || hard_links=no
  7930. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7932. $as_echo "$hard_links" >&6; }
  7933. if test "$hard_links" = no; then
  7934. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7935. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7936. need_locks=warn
  7937. fi
  7938. else
  7939. need_locks=no
  7940. fi
  7941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7942. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7943. runpath_var=
  7944. allow_undefined_flag=
  7945. always_export_symbols=no
  7946. archive_cmds=
  7947. archive_expsym_cmds=
  7948. compiler_needs_object=no
  7949. enable_shared_with_static_runtimes=no
  7950. export_dynamic_flag_spec=
  7951. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7952. hardcode_automatic=no
  7953. hardcode_direct=no
  7954. hardcode_direct_absolute=no
  7955. hardcode_libdir_flag_spec=
  7956. hardcode_libdir_flag_spec_ld=
  7957. hardcode_libdir_separator=
  7958. hardcode_minus_L=no
  7959. hardcode_shlibpath_var=unsupported
  7960. inherit_rpath=no
  7961. link_all_deplibs=unknown
  7962. module_cmds=
  7963. module_expsym_cmds=
  7964. old_archive_from_new_cmds=
  7965. old_archive_from_expsyms_cmds=
  7966. thread_safe_flag_spec=
  7967. whole_archive_flag_spec=
  7968. # include_expsyms should be a list of space-separated symbols to be *always*
  7969. # included in the symbol list
  7970. include_expsyms=
  7971. # exclude_expsyms can be an extended regexp of symbols to exclude
  7972. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7973. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7974. # as well as any symbol that contains `d'.
  7975. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7976. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7977. # platforms (ab)use it in PIC code, but their linkers get confused if
  7978. # the symbol is explicitly referenced. Since portable code cannot
  7979. # rely on this symbol name, it's probably fine to never include it in
  7980. # preloaded symbol tables.
  7981. # Exclude shared library initialization/finalization symbols.
  7982. extract_expsyms_cmds=
  7983. case $host_os in
  7984. cygwin* | mingw* | pw32* | cegcc*)
  7985. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7986. # When not using gcc, we currently assume that we are using
  7987. # Microsoft Visual C++.
  7988. if test "$GCC" != yes; then
  7989. with_gnu_ld=no
  7990. fi
  7991. ;;
  7992. interix*)
  7993. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7994. with_gnu_ld=yes
  7995. ;;
  7996. openbsd*)
  7997. with_gnu_ld=no
  7998. ;;
  7999. esac
  8000. ld_shlibs=yes
  8001. if test "$with_gnu_ld" = yes; then
  8002. # If archive_cmds runs LD, not CC, wlarc should be empty
  8003. wlarc='${wl}'
  8004. # Set some defaults for GNU ld with shared library support. These
  8005. # are reset later if shared libraries are not supported. Putting them
  8006. # here allows them to be overridden if necessary.
  8007. runpath_var=LD_RUN_PATH
  8008. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8009. export_dynamic_flag_spec='${wl}--export-dynamic'
  8010. # ancient GNU ld didn't support --whole-archive et. al.
  8011. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8012. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8013. else
  8014. whole_archive_flag_spec=
  8015. fi
  8016. supports_anon_versioning=no
  8017. case `$LD -v 2>&1` in
  8018. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8019. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8020. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8021. *\ 2.11.*) ;; # other 2.11 versions
  8022. *) supports_anon_versioning=yes ;;
  8023. esac
  8024. # See if GNU ld supports shared libraries.
  8025. case $host_os in
  8026. aix[3-9]*)
  8027. # On AIX/PPC, the GNU linker is very broken
  8028. if test "$host_cpu" != ia64; then
  8029. ld_shlibs=no
  8030. cat <<_LT_EOF 1>&2
  8031. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8032. *** to be unable to reliably create shared libraries on AIX.
  8033. *** Therefore, libtool is disabling shared libraries support. If you
  8034. *** really care for shared libraries, you may want to modify your PATH
  8035. *** so that a non-GNU linker is found, and then restart.
  8036. _LT_EOF
  8037. fi
  8038. ;;
  8039. amigaos*)
  8040. case $host_cpu in
  8041. powerpc)
  8042. # see comment about AmigaOS4 .so support
  8043. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8044. archive_expsym_cmds=''
  8045. ;;
  8046. m68k)
  8047. 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)'
  8048. hardcode_libdir_flag_spec='-L$libdir'
  8049. hardcode_minus_L=yes
  8050. ;;
  8051. esac
  8052. ;;
  8053. beos*)
  8054. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8055. allow_undefined_flag=unsupported
  8056. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8057. # support --undefined. This deserves some investigation. FIXME
  8058. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8059. else
  8060. ld_shlibs=no
  8061. fi
  8062. ;;
  8063. cygwin* | mingw* | pw32* | cegcc*)
  8064. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8065. # as there is no search path for DLLs.
  8066. hardcode_libdir_flag_spec='-L$libdir'
  8067. allow_undefined_flag=unsupported
  8068. always_export_symbols=no
  8069. enable_shared_with_static_runtimes=yes
  8070. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8071. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8072. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8073. # If the export-symbols file already is a .def file (1st line
  8074. # is EXPORTS), use it as is; otherwise, prepend...
  8075. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8076. cp $export_symbols $output_objdir/$soname.def;
  8077. else
  8078. echo EXPORTS > $output_objdir/$soname.def;
  8079. cat $export_symbols >> $output_objdir/$soname.def;
  8080. fi~
  8081. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8082. else
  8083. ld_shlibs=no
  8084. fi
  8085. ;;
  8086. interix[3-9]*)
  8087. hardcode_direct=no
  8088. hardcode_shlibpath_var=no
  8089. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8090. export_dynamic_flag_spec='${wl}-E'
  8091. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8092. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8093. # default) and relocated if they conflict, which is a slow very memory
  8094. # consuming and fragmenting process. To avoid this, we pick a random,
  8095. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8096. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8097. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8098. 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'
  8099. ;;
  8100. gnu* | linux* | tpf* | k*bsd*-gnu)
  8101. tmp_diet=no
  8102. if test "$host_os" = linux-dietlibc; then
  8103. case $cc_basename in
  8104. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8105. esac
  8106. fi
  8107. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8108. && test "$tmp_diet" = no
  8109. then
  8110. tmp_addflag=
  8111. tmp_sharedflag='-shared'
  8112. case $cc_basename,$host_cpu in
  8113. pgcc*) # Portland Group C compiler
  8114. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8115. tmp_addflag=' $pic_flag'
  8116. ;;
  8117. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8118. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8119. tmp_addflag=' $pic_flag -Mnomain' ;;
  8120. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8121. tmp_addflag=' -i_dynamic' ;;
  8122. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8123. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8124. ifc* | ifort*) # Intel Fortran compiler
  8125. tmp_addflag=' -nofor_main' ;;
  8126. lf95*) # Lahey Fortran 8.1
  8127. whole_archive_flag_spec=
  8128. tmp_sharedflag='--shared' ;;
  8129. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8130. tmp_sharedflag='-qmkshrobj'
  8131. tmp_addflag= ;;
  8132. esac
  8133. case `$CC -V 2>&1 | sed 5q` in
  8134. *Sun\ C*) # Sun C 5.9
  8135. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8136. compiler_needs_object=yes
  8137. tmp_sharedflag='-G' ;;
  8138. *Sun\ F*) # Sun Fortran 8.3
  8139. tmp_sharedflag='-G' ;;
  8140. esac
  8141. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8142. if test "x$supports_anon_versioning" = xyes; then
  8143. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8144. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8145. echo "local: *; };" >> $output_objdir/$libname.ver~
  8146. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8147. fi
  8148. case $cc_basename in
  8149. xlf*)
  8150. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8151. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8152. hardcode_libdir_flag_spec=
  8153. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8154. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8155. if test "x$supports_anon_versioning" = xyes; then
  8156. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8157. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8158. echo "local: *; };" >> $output_objdir/$libname.ver~
  8159. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8160. fi
  8161. ;;
  8162. esac
  8163. else
  8164. ld_shlibs=no
  8165. fi
  8166. ;;
  8167. netbsd*)
  8168. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8169. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8170. wlarc=
  8171. else
  8172. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8173. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8174. fi
  8175. ;;
  8176. solaris*)
  8177. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8178. ld_shlibs=no
  8179. cat <<_LT_EOF 1>&2
  8180. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8181. *** create shared libraries on Solaris systems. Therefore, libtool
  8182. *** is disabling shared libraries support. We urge you to upgrade GNU
  8183. *** binutils to release 2.9.1 or newer. Another option is to modify
  8184. *** your PATH or compiler configuration so that the native linker is
  8185. *** used, and then restart.
  8186. _LT_EOF
  8187. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8188. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8189. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8190. else
  8191. ld_shlibs=no
  8192. fi
  8193. ;;
  8194. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8195. case `$LD -v 2>&1` in
  8196. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8197. ld_shlibs=no
  8198. cat <<_LT_EOF 1>&2
  8199. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8200. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8201. *** is disabling shared libraries support. We urge you to upgrade GNU
  8202. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8203. *** your PATH or compiler configuration so that the native linker is
  8204. *** used, and then restart.
  8205. _LT_EOF
  8206. ;;
  8207. *)
  8208. # For security reasons, it is highly recommended that you always
  8209. # use absolute paths for naming shared libraries, and exclude the
  8210. # DT_RUNPATH tag from executables and libraries. But doing so
  8211. # requires that you compile everything twice, which is a pain.
  8212. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8213. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8214. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8215. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8216. else
  8217. ld_shlibs=no
  8218. fi
  8219. ;;
  8220. esac
  8221. ;;
  8222. sunos4*)
  8223. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8224. wlarc=
  8225. hardcode_direct=yes
  8226. hardcode_shlibpath_var=no
  8227. ;;
  8228. *)
  8229. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8230. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8231. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8232. else
  8233. ld_shlibs=no
  8234. fi
  8235. ;;
  8236. esac
  8237. if test "$ld_shlibs" = no; then
  8238. runpath_var=
  8239. hardcode_libdir_flag_spec=
  8240. export_dynamic_flag_spec=
  8241. whole_archive_flag_spec=
  8242. fi
  8243. else
  8244. # PORTME fill in a description of your system's linker (not GNU ld)
  8245. case $host_os in
  8246. aix3*)
  8247. allow_undefined_flag=unsupported
  8248. always_export_symbols=yes
  8249. 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'
  8250. # Note: this linker hardcodes the directories in LIBPATH if there
  8251. # are no directories specified by -L.
  8252. hardcode_minus_L=yes
  8253. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8254. # Neither direct hardcoding nor static linking is supported with a
  8255. # broken collect2.
  8256. hardcode_direct=unsupported
  8257. fi
  8258. ;;
  8259. aix[4-9]*)
  8260. if test "$host_cpu" = ia64; then
  8261. # On IA64, the linker does run time linking by default, so we don't
  8262. # have to do anything special.
  8263. aix_use_runtimelinking=no
  8264. exp_sym_flag='-Bexport'
  8265. no_entry_flag=""
  8266. else
  8267. # If we're using GNU nm, then we don't want the "-C" option.
  8268. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8269. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8270. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8271. else
  8272. 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'
  8273. fi
  8274. aix_use_runtimelinking=no
  8275. # Test if we are trying to use run time linking or normal
  8276. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8277. # need to do runtime linking.
  8278. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8279. for ld_flag in $LDFLAGS; do
  8280. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8281. aix_use_runtimelinking=yes
  8282. break
  8283. fi
  8284. done
  8285. ;;
  8286. esac
  8287. exp_sym_flag='-bexport'
  8288. no_entry_flag='-bnoentry'
  8289. fi
  8290. # When large executables or shared objects are built, AIX ld can
  8291. # have problems creating the table of contents. If linking a library
  8292. # or program results in "error TOC overflow" add -mminimal-toc to
  8293. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8294. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8295. archive_cmds=''
  8296. hardcode_direct=yes
  8297. hardcode_direct_absolute=yes
  8298. hardcode_libdir_separator=':'
  8299. link_all_deplibs=yes
  8300. file_list_spec='${wl}-f,'
  8301. if test "$GCC" = yes; then
  8302. case $host_os in aix4.[012]|aix4.[012].*)
  8303. # We only want to do this on AIX 4.2 and lower, the check
  8304. # below for broken collect2 doesn't work under 4.3+
  8305. collect2name=`${CC} -print-prog-name=collect2`
  8306. if test -f "$collect2name" &&
  8307. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8308. then
  8309. # We have reworked collect2
  8310. :
  8311. else
  8312. # We have old collect2
  8313. hardcode_direct=unsupported
  8314. # It fails to find uninstalled libraries when the uninstalled
  8315. # path is not listed in the libpath. Setting hardcode_minus_L
  8316. # to unsupported forces relinking
  8317. hardcode_minus_L=yes
  8318. hardcode_libdir_flag_spec='-L$libdir'
  8319. hardcode_libdir_separator=
  8320. fi
  8321. ;;
  8322. esac
  8323. shared_flag='-shared'
  8324. if test "$aix_use_runtimelinking" = yes; then
  8325. shared_flag="$shared_flag "'${wl}-G'
  8326. fi
  8327. else
  8328. # not using gcc
  8329. if test "$host_cpu" = ia64; then
  8330. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8331. # chokes on -Wl,-G. The following line is correct:
  8332. shared_flag='-G'
  8333. else
  8334. if test "$aix_use_runtimelinking" = yes; then
  8335. shared_flag='${wl}-G'
  8336. else
  8337. shared_flag='${wl}-bM:SRE'
  8338. fi
  8339. fi
  8340. fi
  8341. export_dynamic_flag_spec='${wl}-bexpall'
  8342. # It seems that -bexpall does not export symbols beginning with
  8343. # underscore (_), so it is better to generate a list of symbols to export.
  8344. always_export_symbols=yes
  8345. if test "$aix_use_runtimelinking" = yes; then
  8346. # Warning - without using the other runtime loading flags (-brtl),
  8347. # -berok will link without error, but may produce a broken library.
  8348. allow_undefined_flag='-berok'
  8349. # Determine the default libpath from the value encoded in an
  8350. # empty executable.
  8351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8352. /* end confdefs.h. */
  8353. int
  8354. main ()
  8355. {
  8356. ;
  8357. return 0;
  8358. }
  8359. _ACEOF
  8360. if ac_fn_c_try_link "$LINENO"; then :
  8361. lt_aix_libpath_sed='
  8362. /Import File Strings/,/^$/ {
  8363. /^0/ {
  8364. s/^0 *\(.*\)$/\1/
  8365. p
  8366. }
  8367. }'
  8368. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8369. # Check for a 64-bit object if we didn't find anything.
  8370. if test -z "$aix_libpath"; then
  8371. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8372. fi
  8373. fi
  8374. rm -f core conftest.err conftest.$ac_objext \
  8375. conftest$ac_exeext conftest.$ac_ext
  8376. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8377. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8378. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8379. else
  8380. if test "$host_cpu" = ia64; then
  8381. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8382. allow_undefined_flag="-z nodefs"
  8383. 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"
  8384. else
  8385. # Determine the default libpath from the value encoded in an
  8386. # empty executable.
  8387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8388. /* end confdefs.h. */
  8389. int
  8390. main ()
  8391. {
  8392. ;
  8393. return 0;
  8394. }
  8395. _ACEOF
  8396. if ac_fn_c_try_link "$LINENO"; then :
  8397. lt_aix_libpath_sed='
  8398. /Import File Strings/,/^$/ {
  8399. /^0/ {
  8400. s/^0 *\(.*\)$/\1/
  8401. p
  8402. }
  8403. }'
  8404. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8405. # Check for a 64-bit object if we didn't find anything.
  8406. if test -z "$aix_libpath"; then
  8407. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8408. fi
  8409. fi
  8410. rm -f core conftest.err conftest.$ac_objext \
  8411. conftest$ac_exeext conftest.$ac_ext
  8412. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8413. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8414. # Warning - without using the other run time loading flags,
  8415. # -berok will link without error, but may produce a broken library.
  8416. no_undefined_flag=' ${wl}-bernotok'
  8417. allow_undefined_flag=' ${wl}-berok'
  8418. # Exported symbols can be pulled into shared objects from archives
  8419. whole_archive_flag_spec='$convenience'
  8420. archive_cmds_need_lc=yes
  8421. # This is similar to how AIX traditionally builds its shared libraries.
  8422. 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'
  8423. fi
  8424. fi
  8425. ;;
  8426. amigaos*)
  8427. case $host_cpu in
  8428. powerpc)
  8429. # see comment about AmigaOS4 .so support
  8430. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8431. archive_expsym_cmds=''
  8432. ;;
  8433. m68k)
  8434. 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)'
  8435. hardcode_libdir_flag_spec='-L$libdir'
  8436. hardcode_minus_L=yes
  8437. ;;
  8438. esac
  8439. ;;
  8440. bsdi[45]*)
  8441. export_dynamic_flag_spec=-rdynamic
  8442. ;;
  8443. cygwin* | mingw* | pw32* | cegcc*)
  8444. # When not using gcc, we currently assume that we are using
  8445. # Microsoft Visual C++.
  8446. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8447. # no search path for DLLs.
  8448. hardcode_libdir_flag_spec=' '
  8449. allow_undefined_flag=unsupported
  8450. # Tell ltmain to make .lib files, not .a files.
  8451. libext=lib
  8452. # Tell ltmain to make .dll files, not .so files.
  8453. shrext_cmds=".dll"
  8454. # FIXME: Setting linknames here is a bad hack.
  8455. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8456. # The linker will automatically build a .lib file if we build a DLL.
  8457. old_archive_from_new_cmds='true'
  8458. # FIXME: Should let the user specify the lib program.
  8459. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8460. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8461. enable_shared_with_static_runtimes=yes
  8462. ;;
  8463. darwin* | rhapsody*)
  8464. archive_cmds_need_lc=no
  8465. hardcode_direct=no
  8466. hardcode_automatic=yes
  8467. hardcode_shlibpath_var=unsupported
  8468. whole_archive_flag_spec=''
  8469. link_all_deplibs=yes
  8470. allow_undefined_flag="$_lt_dar_allow_undefined"
  8471. case $cc_basename in
  8472. ifort*) _lt_dar_can_shared=yes ;;
  8473. *) _lt_dar_can_shared=$GCC ;;
  8474. esac
  8475. if test "$_lt_dar_can_shared" = "yes"; then
  8476. output_verbose_link_cmd=echo
  8477. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8478. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8479. 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}"
  8480. 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}"
  8481. else
  8482. ld_shlibs=no
  8483. fi
  8484. ;;
  8485. dgux*)
  8486. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8487. hardcode_libdir_flag_spec='-L$libdir'
  8488. hardcode_shlibpath_var=no
  8489. ;;
  8490. freebsd1*)
  8491. ld_shlibs=no
  8492. ;;
  8493. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8494. # support. Future versions do this automatically, but an explicit c++rt0.o
  8495. # does not break anything, and helps significantly (at the cost of a little
  8496. # extra space).
  8497. freebsd2.2*)
  8498. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8499. hardcode_libdir_flag_spec='-R$libdir'
  8500. hardcode_direct=yes
  8501. hardcode_shlibpath_var=no
  8502. ;;
  8503. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8504. freebsd2*)
  8505. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8506. hardcode_direct=yes
  8507. hardcode_minus_L=yes
  8508. hardcode_shlibpath_var=no
  8509. ;;
  8510. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8511. freebsd* | dragonfly*)
  8512. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8513. hardcode_libdir_flag_spec='-R$libdir'
  8514. hardcode_direct=yes
  8515. hardcode_shlibpath_var=no
  8516. ;;
  8517. hpux9*)
  8518. if test "$GCC" = yes; then
  8519. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8520. else
  8521. 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'
  8522. fi
  8523. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8524. hardcode_libdir_separator=:
  8525. hardcode_direct=yes
  8526. # hardcode_minus_L: Not really in the search PATH,
  8527. # but as the default location of the library.
  8528. hardcode_minus_L=yes
  8529. export_dynamic_flag_spec='${wl}-E'
  8530. ;;
  8531. hpux10*)
  8532. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8533. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8534. else
  8535. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8536. fi
  8537. if test "$with_gnu_ld" = no; then
  8538. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8539. hardcode_libdir_flag_spec_ld='+b $libdir'
  8540. hardcode_libdir_separator=:
  8541. hardcode_direct=yes
  8542. hardcode_direct_absolute=yes
  8543. export_dynamic_flag_spec='${wl}-E'
  8544. # hardcode_minus_L: Not really in the search PATH,
  8545. # but as the default location of the library.
  8546. hardcode_minus_L=yes
  8547. fi
  8548. ;;
  8549. hpux11*)
  8550. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8551. case $host_cpu in
  8552. hppa*64*)
  8553. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8554. ;;
  8555. ia64*)
  8556. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8557. ;;
  8558. *)
  8559. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8560. ;;
  8561. esac
  8562. else
  8563. case $host_cpu in
  8564. hppa*64*)
  8565. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8566. ;;
  8567. ia64*)
  8568. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8569. ;;
  8570. *)
  8571. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8572. ;;
  8573. esac
  8574. fi
  8575. if test "$with_gnu_ld" = no; then
  8576. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8577. hardcode_libdir_separator=:
  8578. case $host_cpu in
  8579. hppa*64*|ia64*)
  8580. hardcode_direct=no
  8581. hardcode_shlibpath_var=no
  8582. ;;
  8583. *)
  8584. hardcode_direct=yes
  8585. hardcode_direct_absolute=yes
  8586. export_dynamic_flag_spec='${wl}-E'
  8587. # hardcode_minus_L: Not really in the search PATH,
  8588. # but as the default location of the library.
  8589. hardcode_minus_L=yes
  8590. ;;
  8591. esac
  8592. fi
  8593. ;;
  8594. irix5* | irix6* | nonstopux*)
  8595. if test "$GCC" = yes; then
  8596. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8597. # Try to use the -exported_symbol ld option, if it does not
  8598. # work, assume that -exports_file does not work either and
  8599. # implicitly export all symbols.
  8600. save_LDFLAGS="$LDFLAGS"
  8601. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8603. /* end confdefs.h. */
  8604. int foo(void) {}
  8605. _ACEOF
  8606. if ac_fn_c_try_link "$LINENO"; then :
  8607. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8608. fi
  8609. rm -f core conftest.err conftest.$ac_objext \
  8610. conftest$ac_exeext conftest.$ac_ext
  8611. LDFLAGS="$save_LDFLAGS"
  8612. else
  8613. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8614. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8615. fi
  8616. archive_cmds_need_lc='no'
  8617. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8618. hardcode_libdir_separator=:
  8619. inherit_rpath=yes
  8620. link_all_deplibs=yes
  8621. ;;
  8622. netbsd*)
  8623. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8624. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8625. else
  8626. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8627. fi
  8628. hardcode_libdir_flag_spec='-R$libdir'
  8629. hardcode_direct=yes
  8630. hardcode_shlibpath_var=no
  8631. ;;
  8632. newsos6)
  8633. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8634. hardcode_direct=yes
  8635. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8636. hardcode_libdir_separator=:
  8637. hardcode_shlibpath_var=no
  8638. ;;
  8639. *nto* | *qnx*)
  8640. ;;
  8641. openbsd*)
  8642. if test -f /usr/libexec/ld.so; then
  8643. hardcode_direct=yes
  8644. hardcode_shlibpath_var=no
  8645. hardcode_direct_absolute=yes
  8646. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8647. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8648. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8649. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8650. export_dynamic_flag_spec='${wl}-E'
  8651. else
  8652. case $host_os in
  8653. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8654. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8655. hardcode_libdir_flag_spec='-R$libdir'
  8656. ;;
  8657. *)
  8658. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8659. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8660. ;;
  8661. esac
  8662. fi
  8663. else
  8664. ld_shlibs=no
  8665. fi
  8666. ;;
  8667. os2*)
  8668. hardcode_libdir_flag_spec='-L$libdir'
  8669. hardcode_minus_L=yes
  8670. allow_undefined_flag=unsupported
  8671. 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'
  8672. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8673. ;;
  8674. osf3*)
  8675. if test "$GCC" = yes; then
  8676. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8677. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8678. else
  8679. allow_undefined_flag=' -expect_unresolved \*'
  8680. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8681. fi
  8682. archive_cmds_need_lc='no'
  8683. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8684. hardcode_libdir_separator=:
  8685. ;;
  8686. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8687. if test "$GCC" = yes; then
  8688. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8689. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8690. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8691. else
  8692. allow_undefined_flag=' -expect_unresolved \*'
  8693. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8694. 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~
  8695. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8696. # Both c and cxx compiler support -rpath directly
  8697. hardcode_libdir_flag_spec='-rpath $libdir'
  8698. fi
  8699. archive_cmds_need_lc='no'
  8700. hardcode_libdir_separator=:
  8701. ;;
  8702. solaris*)
  8703. no_undefined_flag=' -z defs'
  8704. if test "$GCC" = yes; then
  8705. wlarc='${wl}'
  8706. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8707. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8708. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8709. else
  8710. case `$CC -V 2>&1` in
  8711. *"Compilers 5.0"*)
  8712. wlarc=''
  8713. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8714. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8715. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8716. ;;
  8717. *)
  8718. wlarc='${wl}'
  8719. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8720. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8721. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8722. ;;
  8723. esac
  8724. fi
  8725. hardcode_libdir_flag_spec='-R$libdir'
  8726. hardcode_shlibpath_var=no
  8727. case $host_os in
  8728. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8729. *)
  8730. # The compiler driver will combine and reorder linker options,
  8731. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8732. # but is careful enough not to reorder.
  8733. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8734. if test "$GCC" = yes; then
  8735. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8736. else
  8737. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8738. fi
  8739. ;;
  8740. esac
  8741. link_all_deplibs=yes
  8742. ;;
  8743. sunos4*)
  8744. if test "x$host_vendor" = xsequent; then
  8745. # Use $CC to link under sequent, because it throws in some extra .o
  8746. # files that make .init and .fini sections work.
  8747. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8748. else
  8749. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8750. fi
  8751. hardcode_libdir_flag_spec='-L$libdir'
  8752. hardcode_direct=yes
  8753. hardcode_minus_L=yes
  8754. hardcode_shlibpath_var=no
  8755. ;;
  8756. sysv4)
  8757. case $host_vendor in
  8758. sni)
  8759. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8760. hardcode_direct=yes # is this really true???
  8761. ;;
  8762. siemens)
  8763. ## LD is ld it makes a PLAMLIB
  8764. ## CC just makes a GrossModule.
  8765. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8766. reload_cmds='$CC -r -o $output$reload_objs'
  8767. hardcode_direct=no
  8768. ;;
  8769. motorola)
  8770. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8771. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8772. ;;
  8773. esac
  8774. runpath_var='LD_RUN_PATH'
  8775. hardcode_shlibpath_var=no
  8776. ;;
  8777. sysv4.3*)
  8778. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8779. hardcode_shlibpath_var=no
  8780. export_dynamic_flag_spec='-Bexport'
  8781. ;;
  8782. sysv4*MP*)
  8783. if test -d /usr/nec; then
  8784. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8785. hardcode_shlibpath_var=no
  8786. runpath_var=LD_RUN_PATH
  8787. hardcode_runpath_var=yes
  8788. ld_shlibs=yes
  8789. fi
  8790. ;;
  8791. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8792. no_undefined_flag='${wl}-z,text'
  8793. archive_cmds_need_lc=no
  8794. hardcode_shlibpath_var=no
  8795. runpath_var='LD_RUN_PATH'
  8796. if test "$GCC" = yes; then
  8797. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8798. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8799. else
  8800. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8801. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8802. fi
  8803. ;;
  8804. sysv5* | sco3.2v5* | sco5v6*)
  8805. # Note: We can NOT use -z defs as we might desire, because we do not
  8806. # link with -lc, and that would cause any symbols used from libc to
  8807. # always be unresolved, which means just about no library would
  8808. # ever link correctly. If we're not using GNU ld we use -z text
  8809. # though, which does catch some bad symbols but isn't as heavy-handed
  8810. # as -z defs.
  8811. no_undefined_flag='${wl}-z,text'
  8812. allow_undefined_flag='${wl}-z,nodefs'
  8813. archive_cmds_need_lc=no
  8814. hardcode_shlibpath_var=no
  8815. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8816. hardcode_libdir_separator=':'
  8817. link_all_deplibs=yes
  8818. export_dynamic_flag_spec='${wl}-Bexport'
  8819. runpath_var='LD_RUN_PATH'
  8820. if test "$GCC" = yes; then
  8821. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8822. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8823. else
  8824. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8825. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8826. fi
  8827. ;;
  8828. uts4*)
  8829. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8830. hardcode_libdir_flag_spec='-L$libdir'
  8831. hardcode_shlibpath_var=no
  8832. ;;
  8833. *)
  8834. ld_shlibs=no
  8835. ;;
  8836. esac
  8837. if test x$host_vendor = xsni; then
  8838. case $host in
  8839. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8840. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8841. ;;
  8842. esac
  8843. fi
  8844. fi
  8845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8846. $as_echo "$ld_shlibs" >&6; }
  8847. test "$ld_shlibs" = no && can_build_shared=no
  8848. with_gnu_ld=$with_gnu_ld
  8849. #
  8850. # Do we need to explicitly link libc?
  8851. #
  8852. case "x$archive_cmds_need_lc" in
  8853. x|xyes)
  8854. # Assume -lc should be added
  8855. archive_cmds_need_lc=yes
  8856. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8857. case $archive_cmds in
  8858. *'~'*)
  8859. # FIXME: we may have to deal with multi-command sequences.
  8860. ;;
  8861. '$CC '*)
  8862. # Test whether the compiler implicitly links with -lc since on some
  8863. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8864. # to ld, don't add -lc before -lgcc.
  8865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8866. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8867. $RM conftest*
  8868. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8869. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8870. (eval $ac_compile) 2>&5
  8871. ac_status=$?
  8872. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8873. test $ac_status = 0; } 2>conftest.err; then
  8874. soname=conftest
  8875. lib=conftest
  8876. libobjs=conftest.$ac_objext
  8877. deplibs=
  8878. wl=$lt_prog_compiler_wl
  8879. pic_flag=$lt_prog_compiler_pic
  8880. compiler_flags=-v
  8881. linker_flags=-v
  8882. verstring=
  8883. output_objdir=.
  8884. libname=conftest
  8885. lt_save_allow_undefined_flag=$allow_undefined_flag
  8886. allow_undefined_flag=
  8887. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8888. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8889. ac_status=$?
  8890. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8891. test $ac_status = 0; }
  8892. then
  8893. archive_cmds_need_lc=no
  8894. else
  8895. archive_cmds_need_lc=yes
  8896. fi
  8897. allow_undefined_flag=$lt_save_allow_undefined_flag
  8898. else
  8899. cat conftest.err 1>&5
  8900. fi
  8901. $RM conftest*
  8902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8903. $as_echo "$archive_cmds_need_lc" >&6; }
  8904. ;;
  8905. esac
  8906. fi
  8907. ;;
  8908. esac
  8909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8910. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8911. if test "$GCC" = yes; then
  8912. case $host_os in
  8913. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8914. *) lt_awk_arg="/^libraries:/" ;;
  8915. esac
  8916. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8917. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8918. # if the path contains ";" then we assume it to be the separator
  8919. # otherwise default to the standard path separator (i.e. ":") - it is
  8920. # assumed that no part of a normal pathname contains ";" but that should
  8921. # okay in the real world where ";" in dirpaths is itself problematic.
  8922. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8923. else
  8924. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8925. fi
  8926. # Ok, now we have the path, separated by spaces, we can step through it
  8927. # and add multilib dir if necessary.
  8928. lt_tmp_lt_search_path_spec=
  8929. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8930. for lt_sys_path in $lt_search_path_spec; do
  8931. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8932. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8933. else
  8934. test -d "$lt_sys_path" && \
  8935. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8936. fi
  8937. done
  8938. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8939. BEGIN {RS=" "; FS="/|\n";} {
  8940. lt_foo="";
  8941. lt_count=0;
  8942. for (lt_i = NF; lt_i > 0; lt_i--) {
  8943. if ($lt_i != "" && $lt_i != ".") {
  8944. if ($lt_i == "..") {
  8945. lt_count++;
  8946. } else {
  8947. if (lt_count == 0) {
  8948. lt_foo="/" $lt_i lt_foo;
  8949. } else {
  8950. lt_count--;
  8951. }
  8952. }
  8953. }
  8954. }
  8955. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8956. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8957. }'`
  8958. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8959. else
  8960. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8961. fi
  8962. library_names_spec=
  8963. libname_spec='lib$name'
  8964. soname_spec=
  8965. shrext_cmds=".so"
  8966. postinstall_cmds=
  8967. postuninstall_cmds=
  8968. finish_cmds=
  8969. finish_eval=
  8970. shlibpath_var=
  8971. shlibpath_overrides_runpath=unknown
  8972. version_type=none
  8973. dynamic_linker="$host_os ld.so"
  8974. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8975. need_lib_prefix=unknown
  8976. hardcode_into_libs=no
  8977. # when you set need_version to no, make sure it does not cause -set_version
  8978. # flags to be left without arguments
  8979. need_version=unknown
  8980. case $host_os in
  8981. aix3*)
  8982. version_type=linux
  8983. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8984. shlibpath_var=LIBPATH
  8985. # AIX 3 has no versioning support, so we append a major version to the name.
  8986. soname_spec='${libname}${release}${shared_ext}$major'
  8987. ;;
  8988. aix[4-9]*)
  8989. version_type=linux
  8990. need_lib_prefix=no
  8991. need_version=no
  8992. hardcode_into_libs=yes
  8993. if test "$host_cpu" = ia64; then
  8994. # AIX 5 supports IA64
  8995. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8996. shlibpath_var=LD_LIBRARY_PATH
  8997. else
  8998. # With GCC up to 2.95.x, collect2 would create an import file
  8999. # for dependence libraries. The import file would start with
  9000. # the line `#! .'. This would cause the generated library to
  9001. # depend on `.', always an invalid library. This was fixed in
  9002. # development snapshots of GCC prior to 3.0.
  9003. case $host_os in
  9004. aix4 | aix4.[01] | aix4.[01].*)
  9005. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9006. echo ' yes '
  9007. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9008. :
  9009. else
  9010. can_build_shared=no
  9011. fi
  9012. ;;
  9013. esac
  9014. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9015. # soname into executable. Probably we can add versioning support to
  9016. # collect2, so additional links can be useful in future.
  9017. if test "$aix_use_runtimelinking" = yes; then
  9018. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9019. # instead of lib<name>.a to let people know that these are not
  9020. # typical AIX shared libraries.
  9021. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9022. else
  9023. # We preserve .a as extension for shared libraries through AIX4.2
  9024. # and later when we are not doing run time linking.
  9025. library_names_spec='${libname}${release}.a $libname.a'
  9026. soname_spec='${libname}${release}${shared_ext}$major'
  9027. fi
  9028. shlibpath_var=LIBPATH
  9029. fi
  9030. ;;
  9031. amigaos*)
  9032. case $host_cpu in
  9033. powerpc)
  9034. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9035. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9036. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9037. ;;
  9038. m68k)
  9039. library_names_spec='$libname.ixlibrary $libname.a'
  9040. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9041. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
  9042. ;;
  9043. esac
  9044. ;;
  9045. beos*)
  9046. library_names_spec='${libname}${shared_ext}'
  9047. dynamic_linker="$host_os ld.so"
  9048. shlibpath_var=LIBRARY_PATH
  9049. ;;
  9050. bsdi[45]*)
  9051. version_type=linux
  9052. need_version=no
  9053. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9054. soname_spec='${libname}${release}${shared_ext}$major'
  9055. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9056. shlibpath_var=LD_LIBRARY_PATH
  9057. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9058. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9059. # the default ld.so.conf also contains /usr/contrib/lib and
  9060. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9061. # libtool to hard-code these into programs
  9062. ;;
  9063. cygwin* | mingw* | pw32* | cegcc*)
  9064. version_type=windows
  9065. shrext_cmds=".dll"
  9066. need_version=no
  9067. need_lib_prefix=no
  9068. case $GCC,$host_os in
  9069. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9070. library_names_spec='$libname.dll.a'
  9071. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9072. postinstall_cmds='base_file=`basename \${file}`~
  9073. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9074. dldir=$destdir/`dirname \$dlpath`~
  9075. test -d \$dldir || mkdir -p \$dldir~
  9076. $install_prog $dir/$dlname \$dldir/$dlname~
  9077. chmod a+x \$dldir/$dlname~
  9078. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9079. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9080. fi'
  9081. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9082. dlpath=$dir/\$dldll~
  9083. $RM \$dlpath'
  9084. shlibpath_overrides_runpath=yes
  9085. case $host_os in
  9086. cygwin*)
  9087. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9088. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9089. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9090. ;;
  9091. mingw* | cegcc*)
  9092. # MinGW DLLs use traditional 'lib' prefix
  9093. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9094. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9095. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9096. # It is most probably a Windows format PATH printed by
  9097. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9098. # path with ; separators, and with drive letters. We can handle the
  9099. # drive letters (cygwin fileutils understands them), so leave them,
  9100. # especially as we might pass files found there to a mingw objdump,
  9101. # which wouldn't understand a cygwinified path. Ahh.
  9102. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9103. else
  9104. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9105. fi
  9106. ;;
  9107. pw32*)
  9108. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9109. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9110. ;;
  9111. esac
  9112. ;;
  9113. *)
  9114. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9115. ;;
  9116. esac
  9117. dynamic_linker='Win32 ld.exe'
  9118. # FIXME: first we should search . and the directory the executable is in
  9119. shlibpath_var=PATH
  9120. ;;
  9121. darwin* | rhapsody*)
  9122. dynamic_linker="$host_os dyld"
  9123. version_type=darwin
  9124. need_lib_prefix=no
  9125. need_version=no
  9126. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9127. soname_spec='${libname}${release}${major}$shared_ext'
  9128. shlibpath_overrides_runpath=yes
  9129. shlibpath_var=DYLD_LIBRARY_PATH
  9130. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9131. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9132. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9133. ;;
  9134. dgux*)
  9135. version_type=linux
  9136. need_lib_prefix=no
  9137. need_version=no
  9138. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9139. soname_spec='${libname}${release}${shared_ext}$major'
  9140. shlibpath_var=LD_LIBRARY_PATH
  9141. ;;
  9142. freebsd1*)
  9143. dynamic_linker=no
  9144. ;;
  9145. freebsd* | dragonfly*)
  9146. # DragonFly does not have aout. When/if they implement a new
  9147. # versioning mechanism, adjust this.
  9148. if test -x /usr/bin/objformat; then
  9149. objformat=`/usr/bin/objformat`
  9150. else
  9151. case $host_os in
  9152. freebsd[123]*) objformat=aout ;;
  9153. *) objformat=elf ;;
  9154. esac
  9155. fi
  9156. version_type=freebsd-$objformat
  9157. case $version_type in
  9158. freebsd-elf*)
  9159. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9160. need_version=no
  9161. need_lib_prefix=no
  9162. ;;
  9163. freebsd-*)
  9164. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9165. need_version=yes
  9166. ;;
  9167. esac
  9168. shlibpath_var=LD_LIBRARY_PATH
  9169. case $host_os in
  9170. freebsd2*)
  9171. shlibpath_overrides_runpath=yes
  9172. ;;
  9173. freebsd3.[01]* | freebsdelf3.[01]*)
  9174. shlibpath_overrides_runpath=yes
  9175. hardcode_into_libs=yes
  9176. ;;
  9177. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9178. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9179. shlibpath_overrides_runpath=no
  9180. hardcode_into_libs=yes
  9181. ;;
  9182. *) # from 4.6 on, and DragonFly
  9183. shlibpath_overrides_runpath=yes
  9184. hardcode_into_libs=yes
  9185. ;;
  9186. esac
  9187. ;;
  9188. gnu*)
  9189. version_type=linux
  9190. need_lib_prefix=no
  9191. need_version=no
  9192. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9193. soname_spec='${libname}${release}${shared_ext}$major'
  9194. shlibpath_var=LD_LIBRARY_PATH
  9195. hardcode_into_libs=yes
  9196. ;;
  9197. hpux9* | hpux10* | hpux11*)
  9198. # Give a soname corresponding to the major version so that dld.sl refuses to
  9199. # link against other versions.
  9200. version_type=sunos
  9201. need_lib_prefix=no
  9202. need_version=no
  9203. case $host_cpu in
  9204. ia64*)
  9205. shrext_cmds='.so'
  9206. hardcode_into_libs=yes
  9207. dynamic_linker="$host_os dld.so"
  9208. shlibpath_var=LD_LIBRARY_PATH
  9209. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9210. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9211. soname_spec='${libname}${release}${shared_ext}$major'
  9212. if test "X$HPUX_IA64_MODE" = X32; then
  9213. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9214. else
  9215. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9216. fi
  9217. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9218. ;;
  9219. hppa*64*)
  9220. shrext_cmds='.sl'
  9221. hardcode_into_libs=yes
  9222. dynamic_linker="$host_os dld.sl"
  9223. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9224. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9225. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9226. soname_spec='${libname}${release}${shared_ext}$major'
  9227. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9228. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9229. ;;
  9230. *)
  9231. shrext_cmds='.sl'
  9232. dynamic_linker="$host_os dld.sl"
  9233. shlibpath_var=SHLIB_PATH
  9234. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9235. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9236. soname_spec='${libname}${release}${shared_ext}$major'
  9237. ;;
  9238. esac
  9239. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9240. postinstall_cmds='chmod 555 $lib'
  9241. ;;
  9242. interix[3-9]*)
  9243. version_type=linux
  9244. need_lib_prefix=no
  9245. need_version=no
  9246. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9247. soname_spec='${libname}${release}${shared_ext}$major'
  9248. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9249. shlibpath_var=LD_LIBRARY_PATH
  9250. shlibpath_overrides_runpath=no
  9251. hardcode_into_libs=yes
  9252. ;;
  9253. irix5* | irix6* | nonstopux*)
  9254. case $host_os in
  9255. nonstopux*) version_type=nonstopux ;;
  9256. *)
  9257. if test "$lt_cv_prog_gnu_ld" = yes; then
  9258. version_type=linux
  9259. else
  9260. version_type=irix
  9261. fi ;;
  9262. esac
  9263. need_lib_prefix=no
  9264. need_version=no
  9265. soname_spec='${libname}${release}${shared_ext}$major'
  9266. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9267. case $host_os in
  9268. irix5* | nonstopux*)
  9269. libsuff= shlibsuff=
  9270. ;;
  9271. *)
  9272. case $LD in # libtool.m4 will add one of these switches to LD
  9273. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9274. libsuff= shlibsuff= libmagic=32-bit;;
  9275. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9276. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9277. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9278. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9279. *) libsuff= shlibsuff= libmagic=never-match;;
  9280. esac
  9281. ;;
  9282. esac
  9283. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9284. shlibpath_overrides_runpath=no
  9285. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9286. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9287. hardcode_into_libs=yes
  9288. ;;
  9289. # No shared lib support for Linux oldld, aout, or coff.
  9290. linux*oldld* | linux*aout* | linux*coff*)
  9291. dynamic_linker=no
  9292. ;;
  9293. # This must be Linux ELF.
  9294. linux* | k*bsd*-gnu)
  9295. version_type=linux
  9296. need_lib_prefix=no
  9297. need_version=no
  9298. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9299. soname_spec='${libname}${release}${shared_ext}$major'
  9300. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9301. shlibpath_var=LD_LIBRARY_PATH
  9302. shlibpath_overrides_runpath=no
  9303. # Some binutils ld are patched to set DT_RUNPATH
  9304. save_LDFLAGS=$LDFLAGS
  9305. save_libdir=$libdir
  9306. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9307. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9309. /* end confdefs.h. */
  9310. int
  9311. main ()
  9312. {
  9313. ;
  9314. return 0;
  9315. }
  9316. _ACEOF
  9317. if ac_fn_c_try_link "$LINENO"; then :
  9318. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9319. shlibpath_overrides_runpath=yes
  9320. fi
  9321. fi
  9322. rm -f core conftest.err conftest.$ac_objext \
  9323. conftest$ac_exeext conftest.$ac_ext
  9324. LDFLAGS=$save_LDFLAGS
  9325. libdir=$save_libdir
  9326. # This implies no fast_install, which is unacceptable.
  9327. # Some rework will be needed to allow for fast_install
  9328. # before this can be enabled.
  9329. hardcode_into_libs=yes
  9330. # Append ld.so.conf contents to the search path
  9331. if test -f /etc/ld.so.conf; then
  9332. 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;/^$/d' | tr '\n' ' '`
  9333. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9334. fi
  9335. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9336. # powerpc, because MkLinux only supported shared libraries with the
  9337. # GNU dynamic linker. Since this was broken with cross compilers,
  9338. # most powerpc-linux boxes support dynamic linking these days and
  9339. # people can always --disable-shared, the test was removed, and we
  9340. # assume the GNU/Linux dynamic linker is in use.
  9341. dynamic_linker='GNU/Linux ld.so'
  9342. ;;
  9343. netbsd*)
  9344. version_type=sunos
  9345. need_lib_prefix=no
  9346. need_version=no
  9347. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9348. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9349. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9350. dynamic_linker='NetBSD (a.out) ld.so'
  9351. else
  9352. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9353. soname_spec='${libname}${release}${shared_ext}$major'
  9354. dynamic_linker='NetBSD ld.elf_so'
  9355. fi
  9356. shlibpath_var=LD_LIBRARY_PATH
  9357. shlibpath_overrides_runpath=yes
  9358. hardcode_into_libs=yes
  9359. ;;
  9360. newsos6)
  9361. version_type=linux
  9362. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9363. shlibpath_var=LD_LIBRARY_PATH
  9364. shlibpath_overrides_runpath=yes
  9365. ;;
  9366. *nto* | *qnx*)
  9367. version_type=qnx
  9368. need_lib_prefix=no
  9369. need_version=no
  9370. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9371. soname_spec='${libname}${release}${shared_ext}$major'
  9372. shlibpath_var=LD_LIBRARY_PATH
  9373. shlibpath_overrides_runpath=no
  9374. hardcode_into_libs=yes
  9375. dynamic_linker='ldqnx.so'
  9376. ;;
  9377. openbsd*)
  9378. version_type=sunos
  9379. sys_lib_dlsearch_path_spec="/usr/lib"
  9380. need_lib_prefix=no
  9381. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9382. case $host_os in
  9383. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9384. *) need_version=no ;;
  9385. esac
  9386. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9387. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9388. shlibpath_var=LD_LIBRARY_PATH
  9389. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9390. case $host_os in
  9391. openbsd2.[89] | openbsd2.[89].*)
  9392. shlibpath_overrides_runpath=no
  9393. ;;
  9394. *)
  9395. shlibpath_overrides_runpath=yes
  9396. ;;
  9397. esac
  9398. else
  9399. shlibpath_overrides_runpath=yes
  9400. fi
  9401. ;;
  9402. os2*)
  9403. libname_spec='$name'
  9404. shrext_cmds=".dll"
  9405. need_lib_prefix=no
  9406. library_names_spec='$libname${shared_ext} $libname.a'
  9407. dynamic_linker='OS/2 ld.exe'
  9408. shlibpath_var=LIBPATH
  9409. ;;
  9410. osf3* | osf4* | osf5*)
  9411. version_type=osf
  9412. need_lib_prefix=no
  9413. need_version=no
  9414. soname_spec='${libname}${release}${shared_ext}$major'
  9415. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9416. shlibpath_var=LD_LIBRARY_PATH
  9417. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9418. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9419. ;;
  9420. rdos*)
  9421. dynamic_linker=no
  9422. ;;
  9423. solaris*)
  9424. version_type=linux
  9425. need_lib_prefix=no
  9426. need_version=no
  9427. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9428. soname_spec='${libname}${release}${shared_ext}$major'
  9429. shlibpath_var=LD_LIBRARY_PATH
  9430. shlibpath_overrides_runpath=yes
  9431. hardcode_into_libs=yes
  9432. # ldd complains unless libraries are executable
  9433. postinstall_cmds='chmod +x $lib'
  9434. ;;
  9435. sunos4*)
  9436. version_type=sunos
  9437. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9438. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9439. shlibpath_var=LD_LIBRARY_PATH
  9440. shlibpath_overrides_runpath=yes
  9441. if test "$with_gnu_ld" = yes; then
  9442. need_lib_prefix=no
  9443. fi
  9444. need_version=yes
  9445. ;;
  9446. sysv4 | sysv4.3*)
  9447. version_type=linux
  9448. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9449. soname_spec='${libname}${release}${shared_ext}$major'
  9450. shlibpath_var=LD_LIBRARY_PATH
  9451. case $host_vendor in
  9452. sni)
  9453. shlibpath_overrides_runpath=no
  9454. need_lib_prefix=no
  9455. runpath_var=LD_RUN_PATH
  9456. ;;
  9457. siemens)
  9458. need_lib_prefix=no
  9459. ;;
  9460. motorola)
  9461. need_lib_prefix=no
  9462. need_version=no
  9463. shlibpath_overrides_runpath=no
  9464. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9465. ;;
  9466. esac
  9467. ;;
  9468. sysv4*MP*)
  9469. if test -d /usr/nec ;then
  9470. version_type=linux
  9471. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9472. soname_spec='$libname${shared_ext}.$major'
  9473. shlibpath_var=LD_LIBRARY_PATH
  9474. fi
  9475. ;;
  9476. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9477. version_type=freebsd-elf
  9478. need_lib_prefix=no
  9479. need_version=no
  9480. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9481. soname_spec='${libname}${release}${shared_ext}$major'
  9482. shlibpath_var=LD_LIBRARY_PATH
  9483. shlibpath_overrides_runpath=yes
  9484. hardcode_into_libs=yes
  9485. if test "$with_gnu_ld" = yes; then
  9486. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9487. else
  9488. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9489. case $host_os in
  9490. sco3.2v5*)
  9491. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9492. ;;
  9493. esac
  9494. fi
  9495. sys_lib_dlsearch_path_spec='/usr/lib'
  9496. ;;
  9497. tpf*)
  9498. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9499. version_type=linux
  9500. need_lib_prefix=no
  9501. need_version=no
  9502. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9503. shlibpath_var=LD_LIBRARY_PATH
  9504. shlibpath_overrides_runpath=no
  9505. hardcode_into_libs=yes
  9506. ;;
  9507. uts4*)
  9508. version_type=linux
  9509. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9510. soname_spec='${libname}${release}${shared_ext}$major'
  9511. shlibpath_var=LD_LIBRARY_PATH
  9512. ;;
  9513. *)
  9514. dynamic_linker=no
  9515. ;;
  9516. esac
  9517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9518. $as_echo "$dynamic_linker" >&6; }
  9519. test "$dynamic_linker" = no && can_build_shared=no
  9520. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9521. if test "$GCC" = yes; then
  9522. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9523. fi
  9524. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9525. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9526. fi
  9527. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9528. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9529. fi
  9530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9531. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9532. hardcode_action=
  9533. if test -n "$hardcode_libdir_flag_spec" ||
  9534. test -n "$runpath_var" ||
  9535. test "X$hardcode_automatic" = "Xyes" ; then
  9536. # We can hardcode non-existent directories.
  9537. if test "$hardcode_direct" != no &&
  9538. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9539. # have to relink, otherwise we might link with an installed library
  9540. # when we should be linking with a yet-to-be-installed one
  9541. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9542. test "$hardcode_minus_L" != no; then
  9543. # Linking always hardcodes the temporary library directory.
  9544. hardcode_action=relink
  9545. else
  9546. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9547. hardcode_action=immediate
  9548. fi
  9549. else
  9550. # We cannot hardcode anything, or else we can only hardcode existing
  9551. # directories.
  9552. hardcode_action=unsupported
  9553. fi
  9554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9555. $as_echo "$hardcode_action" >&6; }
  9556. if test "$hardcode_action" = relink ||
  9557. test "$inherit_rpath" = yes; then
  9558. # Fast installation is not supported
  9559. enable_fast_install=no
  9560. elif test "$shlibpath_overrides_runpath" = yes ||
  9561. test "$enable_shared" = no; then
  9562. # Fast installation is not necessary
  9563. enable_fast_install=needless
  9564. fi
  9565. if test "x$enable_dlopen" != xyes; then
  9566. enable_dlopen=unknown
  9567. enable_dlopen_self=unknown
  9568. enable_dlopen_self_static=unknown
  9569. else
  9570. lt_cv_dlopen=no
  9571. lt_cv_dlopen_libs=
  9572. case $host_os in
  9573. beos*)
  9574. lt_cv_dlopen="load_add_on"
  9575. lt_cv_dlopen_libs=
  9576. lt_cv_dlopen_self=yes
  9577. ;;
  9578. mingw* | pw32* | cegcc*)
  9579. lt_cv_dlopen="LoadLibrary"
  9580. lt_cv_dlopen_libs=
  9581. ;;
  9582. cygwin*)
  9583. lt_cv_dlopen="dlopen"
  9584. lt_cv_dlopen_libs=
  9585. ;;
  9586. darwin*)
  9587. # if libdl is installed we need to link against it
  9588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9589. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9590. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9591. $as_echo_n "(cached) " >&6
  9592. else
  9593. ac_check_lib_save_LIBS=$LIBS
  9594. LIBS="-ldl $LIBS"
  9595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9596. /* end confdefs.h. */
  9597. /* Override any GCC internal prototype to avoid an error.
  9598. Use char because int might match the return type of a GCC
  9599. builtin and then its argument prototype would still apply. */
  9600. #ifdef __cplusplus
  9601. extern "C"
  9602. #endif
  9603. char dlopen ();
  9604. int
  9605. main ()
  9606. {
  9607. return dlopen ();
  9608. ;
  9609. return 0;
  9610. }
  9611. _ACEOF
  9612. if ac_fn_c_try_link "$LINENO"; then :
  9613. ac_cv_lib_dl_dlopen=yes
  9614. else
  9615. ac_cv_lib_dl_dlopen=no
  9616. fi
  9617. rm -f core conftest.err conftest.$ac_objext \
  9618. conftest$ac_exeext conftest.$ac_ext
  9619. LIBS=$ac_check_lib_save_LIBS
  9620. fi
  9621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9622. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9623. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9624. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9625. else
  9626. lt_cv_dlopen="dyld"
  9627. lt_cv_dlopen_libs=
  9628. lt_cv_dlopen_self=yes
  9629. fi
  9630. ;;
  9631. *)
  9632. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9633. if test "x$ac_cv_func_shl_load" = xyes; then :
  9634. lt_cv_dlopen="shl_load"
  9635. else
  9636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9637. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9638. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9639. $as_echo_n "(cached) " >&6
  9640. else
  9641. ac_check_lib_save_LIBS=$LIBS
  9642. LIBS="-ldld $LIBS"
  9643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9644. /* end confdefs.h. */
  9645. /* Override any GCC internal prototype to avoid an error.
  9646. Use char because int might match the return type of a GCC
  9647. builtin and then its argument prototype would still apply. */
  9648. #ifdef __cplusplus
  9649. extern "C"
  9650. #endif
  9651. char shl_load ();
  9652. int
  9653. main ()
  9654. {
  9655. return shl_load ();
  9656. ;
  9657. return 0;
  9658. }
  9659. _ACEOF
  9660. if ac_fn_c_try_link "$LINENO"; then :
  9661. ac_cv_lib_dld_shl_load=yes
  9662. else
  9663. ac_cv_lib_dld_shl_load=no
  9664. fi
  9665. rm -f core conftest.err conftest.$ac_objext \
  9666. conftest$ac_exeext conftest.$ac_ext
  9667. LIBS=$ac_check_lib_save_LIBS
  9668. fi
  9669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9670. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9671. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9672. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9673. else
  9674. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9675. if test "x$ac_cv_func_dlopen" = xyes; then :
  9676. lt_cv_dlopen="dlopen"
  9677. else
  9678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9679. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9680. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9681. $as_echo_n "(cached) " >&6
  9682. else
  9683. ac_check_lib_save_LIBS=$LIBS
  9684. LIBS="-ldl $LIBS"
  9685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9686. /* end confdefs.h. */
  9687. /* Override any GCC internal prototype to avoid an error.
  9688. Use char because int might match the return type of a GCC
  9689. builtin and then its argument prototype would still apply. */
  9690. #ifdef __cplusplus
  9691. extern "C"
  9692. #endif
  9693. char dlopen ();
  9694. int
  9695. main ()
  9696. {
  9697. return dlopen ();
  9698. ;
  9699. return 0;
  9700. }
  9701. _ACEOF
  9702. if ac_fn_c_try_link "$LINENO"; then :
  9703. ac_cv_lib_dl_dlopen=yes
  9704. else
  9705. ac_cv_lib_dl_dlopen=no
  9706. fi
  9707. rm -f core conftest.err conftest.$ac_objext \
  9708. conftest$ac_exeext conftest.$ac_ext
  9709. LIBS=$ac_check_lib_save_LIBS
  9710. fi
  9711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9712. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9713. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9714. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9715. else
  9716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9717. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9718. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9719. $as_echo_n "(cached) " >&6
  9720. else
  9721. ac_check_lib_save_LIBS=$LIBS
  9722. LIBS="-lsvld $LIBS"
  9723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9724. /* end confdefs.h. */
  9725. /* Override any GCC internal prototype to avoid an error.
  9726. Use char because int might match the return type of a GCC
  9727. builtin and then its argument prototype would still apply. */
  9728. #ifdef __cplusplus
  9729. extern "C"
  9730. #endif
  9731. char dlopen ();
  9732. int
  9733. main ()
  9734. {
  9735. return dlopen ();
  9736. ;
  9737. return 0;
  9738. }
  9739. _ACEOF
  9740. if ac_fn_c_try_link "$LINENO"; then :
  9741. ac_cv_lib_svld_dlopen=yes
  9742. else
  9743. ac_cv_lib_svld_dlopen=no
  9744. fi
  9745. rm -f core conftest.err conftest.$ac_objext \
  9746. conftest$ac_exeext conftest.$ac_ext
  9747. LIBS=$ac_check_lib_save_LIBS
  9748. fi
  9749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9750. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9751. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9752. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9753. else
  9754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9755. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9756. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9757. $as_echo_n "(cached) " >&6
  9758. else
  9759. ac_check_lib_save_LIBS=$LIBS
  9760. LIBS="-ldld $LIBS"
  9761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9762. /* end confdefs.h. */
  9763. /* Override any GCC internal prototype to avoid an error.
  9764. Use char because int might match the return type of a GCC
  9765. builtin and then its argument prototype would still apply. */
  9766. #ifdef __cplusplus
  9767. extern "C"
  9768. #endif
  9769. char dld_link ();
  9770. int
  9771. main ()
  9772. {
  9773. return dld_link ();
  9774. ;
  9775. return 0;
  9776. }
  9777. _ACEOF
  9778. if ac_fn_c_try_link "$LINENO"; then :
  9779. ac_cv_lib_dld_dld_link=yes
  9780. else
  9781. ac_cv_lib_dld_dld_link=no
  9782. fi
  9783. rm -f core conftest.err conftest.$ac_objext \
  9784. conftest$ac_exeext conftest.$ac_ext
  9785. LIBS=$ac_check_lib_save_LIBS
  9786. fi
  9787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9788. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9789. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9790. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9791. fi
  9792. fi
  9793. fi
  9794. fi
  9795. fi
  9796. fi
  9797. ;;
  9798. esac
  9799. if test "x$lt_cv_dlopen" != xno; then
  9800. enable_dlopen=yes
  9801. else
  9802. enable_dlopen=no
  9803. fi
  9804. case $lt_cv_dlopen in
  9805. dlopen)
  9806. save_CPPFLAGS="$CPPFLAGS"
  9807. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9808. save_LDFLAGS="$LDFLAGS"
  9809. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9810. save_LIBS="$LIBS"
  9811. LIBS="$lt_cv_dlopen_libs $LIBS"
  9812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9813. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9814. if ${lt_cv_dlopen_self+:} false; then :
  9815. $as_echo_n "(cached) " >&6
  9816. else
  9817. if test "$cross_compiling" = yes; then :
  9818. lt_cv_dlopen_self=cross
  9819. else
  9820. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9821. lt_status=$lt_dlunknown
  9822. cat > conftest.$ac_ext <<_LT_EOF
  9823. #line 11403 "configure"
  9824. #include "confdefs.h"
  9825. #if HAVE_DLFCN_H
  9826. #include <dlfcn.h>
  9827. #endif
  9828. #include <stdio.h>
  9829. #ifdef RTLD_GLOBAL
  9830. # define LT_DLGLOBAL RTLD_GLOBAL
  9831. #else
  9832. # ifdef DL_GLOBAL
  9833. # define LT_DLGLOBAL DL_GLOBAL
  9834. # else
  9835. # define LT_DLGLOBAL 0
  9836. # endif
  9837. #endif
  9838. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9839. find out it does not work in some platform. */
  9840. #ifndef LT_DLLAZY_OR_NOW
  9841. # ifdef RTLD_LAZY
  9842. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9843. # else
  9844. # ifdef DL_LAZY
  9845. # define LT_DLLAZY_OR_NOW DL_LAZY
  9846. # else
  9847. # ifdef RTLD_NOW
  9848. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9849. # else
  9850. # ifdef DL_NOW
  9851. # define LT_DLLAZY_OR_NOW DL_NOW
  9852. # else
  9853. # define LT_DLLAZY_OR_NOW 0
  9854. # endif
  9855. # endif
  9856. # endif
  9857. # endif
  9858. #endif
  9859. void fnord() { int i=42;}
  9860. int main ()
  9861. {
  9862. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9863. int status = $lt_dlunknown;
  9864. if (self)
  9865. {
  9866. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9867. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9868. /* dlclose (self); */
  9869. }
  9870. else
  9871. puts (dlerror ());
  9872. return status;
  9873. }
  9874. _LT_EOF
  9875. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9876. (eval $ac_link) 2>&5
  9877. ac_status=$?
  9878. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9879. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9880. (./conftest; exit; ) >&5 2>/dev/null
  9881. lt_status=$?
  9882. case x$lt_status in
  9883. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9884. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9885. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9886. esac
  9887. else :
  9888. # compilation failed
  9889. lt_cv_dlopen_self=no
  9890. fi
  9891. fi
  9892. rm -fr conftest*
  9893. fi
  9894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9895. $as_echo "$lt_cv_dlopen_self" >&6; }
  9896. if test "x$lt_cv_dlopen_self" = xyes; then
  9897. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9899. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9900. if ${lt_cv_dlopen_self_static+:} false; then :
  9901. $as_echo_n "(cached) " >&6
  9902. else
  9903. if test "$cross_compiling" = yes; then :
  9904. lt_cv_dlopen_self_static=cross
  9905. else
  9906. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9907. lt_status=$lt_dlunknown
  9908. cat > conftest.$ac_ext <<_LT_EOF
  9909. #line 11499 "configure"
  9910. #include "confdefs.h"
  9911. #if HAVE_DLFCN_H
  9912. #include <dlfcn.h>
  9913. #endif
  9914. #include <stdio.h>
  9915. #ifdef RTLD_GLOBAL
  9916. # define LT_DLGLOBAL RTLD_GLOBAL
  9917. #else
  9918. # ifdef DL_GLOBAL
  9919. # define LT_DLGLOBAL DL_GLOBAL
  9920. # else
  9921. # define LT_DLGLOBAL 0
  9922. # endif
  9923. #endif
  9924. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9925. find out it does not work in some platform. */
  9926. #ifndef LT_DLLAZY_OR_NOW
  9927. # ifdef RTLD_LAZY
  9928. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9929. # else
  9930. # ifdef DL_LAZY
  9931. # define LT_DLLAZY_OR_NOW DL_LAZY
  9932. # else
  9933. # ifdef RTLD_NOW
  9934. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9935. # else
  9936. # ifdef DL_NOW
  9937. # define LT_DLLAZY_OR_NOW DL_NOW
  9938. # else
  9939. # define LT_DLLAZY_OR_NOW 0
  9940. # endif
  9941. # endif
  9942. # endif
  9943. # endif
  9944. #endif
  9945. void fnord() { int i=42;}
  9946. int main ()
  9947. {
  9948. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9949. int status = $lt_dlunknown;
  9950. if (self)
  9951. {
  9952. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9953. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9954. /* dlclose (self); */
  9955. }
  9956. else
  9957. puts (dlerror ());
  9958. return status;
  9959. }
  9960. _LT_EOF
  9961. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9962. (eval $ac_link) 2>&5
  9963. ac_status=$?
  9964. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9965. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9966. (./conftest; exit; ) >&5 2>/dev/null
  9967. lt_status=$?
  9968. case x$lt_status in
  9969. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9970. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9971. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9972. esac
  9973. else :
  9974. # compilation failed
  9975. lt_cv_dlopen_self_static=no
  9976. fi
  9977. fi
  9978. rm -fr conftest*
  9979. fi
  9980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9981. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9982. fi
  9983. CPPFLAGS="$save_CPPFLAGS"
  9984. LDFLAGS="$save_LDFLAGS"
  9985. LIBS="$save_LIBS"
  9986. ;;
  9987. esac
  9988. case $lt_cv_dlopen_self in
  9989. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9990. *) enable_dlopen_self=unknown ;;
  9991. esac
  9992. case $lt_cv_dlopen_self_static in
  9993. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9994. *) enable_dlopen_self_static=unknown ;;
  9995. esac
  9996. fi
  9997. striplib=
  9998. old_striplib=
  9999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10000. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10001. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10002. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10003. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10005. $as_echo "yes" >&6; }
  10006. else
  10007. # FIXME - insert some real tests, host_os isn't really good enough
  10008. case $host_os in
  10009. darwin*)
  10010. if test -n "$STRIP" ; then
  10011. striplib="$STRIP -x"
  10012. old_striplib="$STRIP -S"
  10013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10014. $as_echo "yes" >&6; }
  10015. else
  10016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10017. $as_echo "no" >&6; }
  10018. fi
  10019. ;;
  10020. *)
  10021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10022. $as_echo "no" >&6; }
  10023. ;;
  10024. esac
  10025. fi
  10026. # Report which library types will actually be built
  10027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10028. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10030. $as_echo "$can_build_shared" >&6; }
  10031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10032. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10033. test "$can_build_shared" = "no" && enable_shared=no
  10034. # On AIX, shared libraries and static libraries use the same namespace, and
  10035. # are all built from PIC.
  10036. case $host_os in
  10037. aix3*)
  10038. test "$enable_shared" = yes && enable_static=no
  10039. if test -n "$RANLIB"; then
  10040. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10041. postinstall_cmds='$RANLIB $lib'
  10042. fi
  10043. ;;
  10044. aix[4-9]*)
  10045. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10046. test "$enable_shared" = yes && enable_static=no
  10047. fi
  10048. ;;
  10049. esac
  10050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10051. $as_echo "$enable_shared" >&6; }
  10052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10053. $as_echo_n "checking whether to build static libraries... " >&6; }
  10054. # Make sure either enable_shared or enable_static is yes.
  10055. test "$enable_shared" = yes || enable_static=yes
  10056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10057. $as_echo "$enable_static" >&6; }
  10058. fi
  10059. ac_ext=c
  10060. ac_cpp='$CPP $CPPFLAGS'
  10061. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10062. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10063. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10064. CC="$lt_save_CC"
  10065. ac_config_commands="$ac_config_commands libtool"
  10066. # Only expand once:
  10067. CFLAG_VISIBILITY=
  10068. HAVE_VISIBILITY=0
  10069. if test -n "$GCC"; then
  10070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
  10071. $as_echo_n "checking whether the -Werror option is usable... " >&6; }
  10072. if ${gl_cv_cc_vis_werror+:} false; then :
  10073. $as_echo_n "(cached) " >&6
  10074. else
  10075. gl_save_CFLAGS="$CFLAGS"
  10076. CFLAGS="$CFLAGS -Werror"
  10077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10078. /* end confdefs.h. */
  10079. int
  10080. main ()
  10081. {
  10082. ;
  10083. return 0;
  10084. }
  10085. _ACEOF
  10086. if ac_fn_c_try_compile "$LINENO"; then :
  10087. gl_cv_cc_vis_werror=yes
  10088. else
  10089. gl_cv_cc_vis_werror=no
  10090. fi
  10091. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10092. CFLAGS="$gl_save_CFLAGS"
  10093. fi
  10094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
  10095. $as_echo "$gl_cv_cc_vis_werror" >&6; }
  10096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  10097. $as_echo_n "checking for simple visibility declarations... " >&6; }
  10098. if ${gl_cv_cc_visibility+:} false; then :
  10099. $as_echo_n "(cached) " >&6
  10100. else
  10101. gl_save_CFLAGS="$CFLAGS"
  10102. CFLAGS="$CFLAGS -fvisibility=hidden"
  10103. if test $gl_cv_cc_vis_werror = yes; then
  10104. CFLAGS="$CFLAGS -Werror"
  10105. fi
  10106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10107. /* end confdefs.h. */
  10108. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  10109. extern __attribute__((__visibility__("default"))) int exportedvar;
  10110. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  10111. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  10112. void dummyfunc (void) {}
  10113. int
  10114. main ()
  10115. {
  10116. ;
  10117. return 0;
  10118. }
  10119. _ACEOF
  10120. if ac_fn_c_try_compile "$LINENO"; then :
  10121. gl_cv_cc_visibility=yes
  10122. else
  10123. gl_cv_cc_visibility=no
  10124. fi
  10125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10126. CFLAGS="$gl_save_CFLAGS"
  10127. fi
  10128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  10129. $as_echo "$gl_cv_cc_visibility" >&6; }
  10130. if test $gl_cv_cc_visibility = yes; then
  10131. CFLAG_VISIBILITY="-fvisibility=hidden"
  10132. HAVE_VISIBILITY=1
  10133. fi
  10134. fi
  10135. cat >>confdefs.h <<_ACEOF
  10136. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  10137. _ACEOF
  10138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  10139. $as_echo_n "checking for ANSI C header files... " >&6; }
  10140. if ${ac_cv_header_stdc+:} false; then :
  10141. $as_echo_n "(cached) " >&6
  10142. else
  10143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10144. /* end confdefs.h. */
  10145. #include <stdlib.h>
  10146. #include <stdarg.h>
  10147. #include <string.h>
  10148. #include <float.h>
  10149. int
  10150. main ()
  10151. {
  10152. ;
  10153. return 0;
  10154. }
  10155. _ACEOF
  10156. if ac_fn_c_try_compile "$LINENO"; then :
  10157. ac_cv_header_stdc=yes
  10158. else
  10159. ac_cv_header_stdc=no
  10160. fi
  10161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10162. if test $ac_cv_header_stdc = yes; then
  10163. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  10164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10165. /* end confdefs.h. */
  10166. #include <string.h>
  10167. _ACEOF
  10168. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10169. $EGREP "memchr" >/dev/null 2>&1; then :
  10170. else
  10171. ac_cv_header_stdc=no
  10172. fi
  10173. rm -f conftest*
  10174. fi
  10175. if test $ac_cv_header_stdc = yes; then
  10176. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  10177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10178. /* end confdefs.h. */
  10179. #include <stdlib.h>
  10180. _ACEOF
  10181. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10182. $EGREP "free" >/dev/null 2>&1; then :
  10183. else
  10184. ac_cv_header_stdc=no
  10185. fi
  10186. rm -f conftest*
  10187. fi
  10188. if test $ac_cv_header_stdc = yes; then
  10189. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  10190. if test "$cross_compiling" = yes; then :
  10191. :
  10192. else
  10193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10194. /* end confdefs.h. */
  10195. #include <ctype.h>
  10196. #include <stdlib.h>
  10197. #if ((' ' & 0x0FF) == 0x020)
  10198. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10199. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10200. #else
  10201. # define ISLOWER(c) \
  10202. (('a' <= (c) && (c) <= 'i') \
  10203. || ('j' <= (c) && (c) <= 'r') \
  10204. || ('s' <= (c) && (c) <= 'z'))
  10205. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10206. #endif
  10207. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10208. int
  10209. main ()
  10210. {
  10211. int i;
  10212. for (i = 0; i < 256; i++)
  10213. if (XOR (islower (i), ISLOWER (i))
  10214. || toupper (i) != TOUPPER (i))
  10215. return 2;
  10216. return 0;
  10217. }
  10218. _ACEOF
  10219. if ac_fn_c_try_run "$LINENO"; then :
  10220. else
  10221. ac_cv_header_stdc=no
  10222. fi
  10223. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10224. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10225. fi
  10226. fi
  10227. fi
  10228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  10229. $as_echo "$ac_cv_header_stdc" >&6; }
  10230. if test $ac_cv_header_stdc = yes; then
  10231. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  10232. fi
  10233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
  10234. $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  10235. if ${ac_cv_header_sys_types_h_makedev+:} false; then :
  10236. $as_echo_n "(cached) " >&6
  10237. else
  10238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10239. /* end confdefs.h. */
  10240. #include <sys/types.h>
  10241. int
  10242. main ()
  10243. {
  10244. return makedev(0, 0);
  10245. ;
  10246. return 0;
  10247. }
  10248. _ACEOF
  10249. if ac_fn_c_try_link "$LINENO"; then :
  10250. ac_cv_header_sys_types_h_makedev=yes
  10251. else
  10252. ac_cv_header_sys_types_h_makedev=no
  10253. fi
  10254. rm -f core conftest.err conftest.$ac_objext \
  10255. conftest$ac_exeext conftest.$ac_ext
  10256. fi
  10257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
  10258. $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  10259. if test $ac_cv_header_sys_types_h_makedev = no; then
  10260. ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  10261. if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
  10262. $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  10263. fi
  10264. if test $ac_cv_header_sys_mkdev_h = no; then
  10265. ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  10266. if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
  10267. $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  10268. fi
  10269. fi
  10270. fi
  10271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  10272. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  10273. if ${ac_cv_header_sys_wait_h+:} false; then :
  10274. $as_echo_n "(cached) " >&6
  10275. else
  10276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10277. /* end confdefs.h. */
  10278. #include <sys/types.h>
  10279. #include <sys/wait.h>
  10280. #ifndef WEXITSTATUS
  10281. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  10282. #endif
  10283. #ifndef WIFEXITED
  10284. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  10285. #endif
  10286. int
  10287. main ()
  10288. {
  10289. int s;
  10290. wait (&s);
  10291. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  10292. ;
  10293. return 0;
  10294. }
  10295. _ACEOF
  10296. if ac_fn_c_try_compile "$LINENO"; then :
  10297. ac_cv_header_sys_wait_h=yes
  10298. else
  10299. ac_cv_header_sys_wait_h=no
  10300. fi
  10301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10302. fi
  10303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  10304. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  10305. if test $ac_cv_header_sys_wait_h = yes; then
  10306. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  10307. fi
  10308. for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h
  10309. do :
  10310. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10311. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10312. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10313. cat >>confdefs.h <<_ACEOF
  10314. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10315. _ACEOF
  10316. fi
  10317. done
  10318. for ac_header in stddef.h utime.h wchar.h wctype.h limits.h
  10319. do :
  10320. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10321. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10322. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10323. cat >>confdefs.h <<_ACEOF
  10324. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10325. _ACEOF
  10326. fi
  10327. done
  10328. for ac_header in getopt.h err.h
  10329. do :
  10330. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10331. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10332. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10333. cat >>confdefs.h <<_ACEOF
  10334. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10335. _ACEOF
  10336. fi
  10337. done
  10338. for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
  10339. do :
  10340. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10341. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10342. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10343. cat >>confdefs.h <<_ACEOF
  10344. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10345. _ACEOF
  10346. fi
  10347. done
  10348. for ac_header in zlib.h
  10349. do :
  10350. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  10351. if test "x$ac_cv_header_zlib_h" = xyes; then :
  10352. cat >>confdefs.h <<_ACEOF
  10353. #define HAVE_ZLIB_H 1
  10354. _ACEOF
  10355. fi
  10356. done
  10357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  10358. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  10359. if ${ac_cv_c_const+:} false; then :
  10360. $as_echo_n "(cached) " >&6
  10361. else
  10362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10363. /* end confdefs.h. */
  10364. int
  10365. main ()
  10366. {
  10367. /* FIXME: Include the comments suggested by Paul. */
  10368. #ifndef __cplusplus
  10369. /* Ultrix mips cc rejects this. */
  10370. typedef int charset[2];
  10371. const charset cs;
  10372. /* SunOS 4.1.1 cc rejects this. */
  10373. char const *const *pcpcc;
  10374. char **ppc;
  10375. /* NEC SVR4.0.2 mips cc rejects this. */
  10376. struct point {int x, y;};
  10377. static struct point const zero = {0,0};
  10378. /* AIX XL C 1.02.0.0 rejects this.
  10379. It does not let you subtract one const X* pointer from another in
  10380. an arm of an if-expression whose if-part is not a constant
  10381. expression */
  10382. const char *g = "string";
  10383. pcpcc = &g + (g ? g-g : 0);
  10384. /* HPUX 7.0 cc rejects these. */
  10385. ++pcpcc;
  10386. ppc = (char**) pcpcc;
  10387. pcpcc = (char const *const *) ppc;
  10388. { /* SCO 3.2v4 cc rejects this. */
  10389. char *t;
  10390. char const *s = 0 ? (char *) 0 : (char const *) 0;
  10391. *t++ = 0;
  10392. if (s) return 0;
  10393. }
  10394. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  10395. int x[] = {25, 17};
  10396. const int *foo = &x[0];
  10397. ++foo;
  10398. }
  10399. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  10400. typedef const int *iptr;
  10401. iptr p = 0;
  10402. ++p;
  10403. }
  10404. { /* AIX XL C 1.02.0.0 rejects this saying
  10405. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  10406. struct s { int j; const int *ap[3]; };
  10407. struct s *b; b->j = 5;
  10408. }
  10409. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  10410. const int foo = 10;
  10411. if (!foo) return 0;
  10412. }
  10413. return !cs[0] && !zero.x;
  10414. #endif
  10415. ;
  10416. return 0;
  10417. }
  10418. _ACEOF
  10419. if ac_fn_c_try_compile "$LINENO"; then :
  10420. ac_cv_c_const=yes
  10421. else
  10422. ac_cv_c_const=no
  10423. fi
  10424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10425. fi
  10426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  10427. $as_echo "$ac_cv_c_const" >&6; }
  10428. if test $ac_cv_c_const = no; then
  10429. $as_echo "#define const /**/" >>confdefs.h
  10430. fi
  10431. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  10432. if test "x$ac_cv_type_off_t" = xyes; then :
  10433. else
  10434. cat >>confdefs.h <<_ACEOF
  10435. #define off_t long int
  10436. _ACEOF
  10437. fi
  10438. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  10439. if test "x$ac_cv_type_size_t" = xyes; then :
  10440. else
  10441. cat >>confdefs.h <<_ACEOF
  10442. #define size_t unsigned int
  10443. _ACEOF
  10444. fi
  10445. ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
  10446. if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
  10447. cat >>confdefs.h <<_ACEOF
  10448. #define HAVE_STRUCT_STAT_ST_RDEV 1
  10449. _ACEOF
  10450. fi
  10451. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
  10452. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
  10453. cat >>confdefs.h <<_ACEOF
  10454. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  10455. _ACEOF
  10456. fi
  10457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  10458. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  10459. if ${ac_cv_struct_tm+:} false; then :
  10460. $as_echo_n "(cached) " >&6
  10461. else
  10462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10463. /* end confdefs.h. */
  10464. #include <sys/types.h>
  10465. #include <time.h>
  10466. int
  10467. main ()
  10468. {
  10469. struct tm tm;
  10470. int *p = &tm.tm_sec;
  10471. return !p;
  10472. ;
  10473. return 0;
  10474. }
  10475. _ACEOF
  10476. if ac_fn_c_try_compile "$LINENO"; then :
  10477. ac_cv_struct_tm=time.h
  10478. else
  10479. ac_cv_struct_tm=sys/time.h
  10480. fi
  10481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10482. fi
  10483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  10484. $as_echo "$ac_cv_struct_tm" >&6; }
  10485. if test $ac_cv_struct_tm = sys/time.h; then
  10486. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  10487. fi
  10488. ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  10489. #include <$ac_cv_struct_tm>
  10490. "
  10491. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  10492. cat >>confdefs.h <<_ACEOF
  10493. #define HAVE_STRUCT_TM_TM_ZONE 1
  10494. _ACEOF
  10495. fi
  10496. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  10497. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  10498. else
  10499. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  10500. "
  10501. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  10502. ac_have_decl=1
  10503. else
  10504. ac_have_decl=0
  10505. fi
  10506. cat >>confdefs.h <<_ACEOF
  10507. #define HAVE_DECL_TZNAME $ac_have_decl
  10508. _ACEOF
  10509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  10510. $as_echo_n "checking for tzname... " >&6; }
  10511. if ${ac_cv_var_tzname+:} false; then :
  10512. $as_echo_n "(cached) " >&6
  10513. else
  10514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10515. /* end confdefs.h. */
  10516. #include <time.h>
  10517. #if !HAVE_DECL_TZNAME
  10518. extern char *tzname[];
  10519. #endif
  10520. int
  10521. main ()
  10522. {
  10523. return tzname[0][0];
  10524. ;
  10525. return 0;
  10526. }
  10527. _ACEOF
  10528. if ac_fn_c_try_link "$LINENO"; then :
  10529. ac_cv_var_tzname=yes
  10530. else
  10531. ac_cv_var_tzname=no
  10532. fi
  10533. rm -f core conftest.err conftest.$ac_objext \
  10534. conftest$ac_exeext conftest.$ac_ext
  10535. fi
  10536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  10537. $as_echo "$ac_cv_var_tzname" >&6; }
  10538. if test $ac_cv_var_tzname = yes; then
  10539. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  10540. fi
  10541. fi
  10542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
  10543. $as_echo_n "checking for tm_zone in struct tm... " >&6; }
  10544. if ${ac_cv_struct_tm_zone+:} false; then :
  10545. $as_echo_n "(cached) " >&6
  10546. else
  10547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10548. /* end confdefs.h. */
  10549. #include <sys/types.h>
  10550. #include <$ac_cv_struct_tm>
  10551. int
  10552. main ()
  10553. {
  10554. struct tm tm; tm.tm_zone;
  10555. ;
  10556. return 0;
  10557. }
  10558. _ACEOF
  10559. if ac_fn_c_try_compile "$LINENO"; then :
  10560. ac_cv_struct_tm_zone=yes
  10561. else
  10562. ac_cv_struct_tm_zone=no
  10563. fi
  10564. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10565. fi
  10566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
  10567. $as_echo "$ac_cv_struct_tm_zone" >&6; }
  10568. if test "$ac_cv_struct_tm_zone" = yes; then
  10569. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  10570. fi
  10571. # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
  10572. # consider it declared and we won't give our own extern.
  10573. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  10574. "
  10575. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  10576. ac_have_decl=1
  10577. else
  10578. ac_have_decl=0
  10579. fi
  10580. cat >>confdefs.h <<_ACEOF
  10581. #define HAVE_DECL_TZNAME $ac_have_decl
  10582. _ACEOF
  10583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  10584. $as_echo_n "checking for tzname... " >&6; }
  10585. if ${ac_cv_var_tzname+:} false; then :
  10586. $as_echo_n "(cached) " >&6
  10587. else
  10588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10589. /* end confdefs.h. */
  10590. #include <time.h>
  10591. #if !HAVE_DECL_TZNAME
  10592. extern char *tzname[];
  10593. #endif
  10594. int
  10595. main ()
  10596. {
  10597. return tzname[0][0];
  10598. ;
  10599. return 0;
  10600. }
  10601. _ACEOF
  10602. if ac_fn_c_try_link "$LINENO"; then :
  10603. ac_cv_var_tzname=yes
  10604. else
  10605. ac_cv_var_tzname=no
  10606. fi
  10607. rm -f core conftest.err conftest.$ac_objext \
  10608. conftest$ac_exeext conftest.$ac_ext
  10609. fi
  10610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  10611. $as_echo "$ac_cv_var_tzname" >&6; }
  10612. if test $ac_cv_var_tzname = yes; then
  10613. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  10614. fi
  10615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
  10616. $as_echo_n "checking for tm_isdst in struct tm... " >&6; }
  10617. if ${ac_cv_struct_tm_isdst+:} false; then :
  10618. $as_echo_n "(cached) " >&6
  10619. else
  10620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10621. /* end confdefs.h. */
  10622. #include <sys/types.h>
  10623. #include <$ac_cv_struct_tm>
  10624. int
  10625. main ()
  10626. {
  10627. struct tm tm; tm.tm_isdst;
  10628. ;
  10629. return 0;
  10630. }
  10631. _ACEOF
  10632. if ac_fn_c_try_compile "$LINENO"; then :
  10633. ac_cv_struct_tm_isdst=yes
  10634. else
  10635. ac_cv_struct_tm_isdst=no
  10636. fi
  10637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10638. fi
  10639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
  10640. $as_echo "$ac_cv_struct_tm_isdst" >&6; }
  10641. if test "$ac_cv_struct_tm_isdst" = yes; then
  10642. $as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h
  10643. fi
  10644. ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
  10645. "
  10646. if test "x$ac_cv_have_decl_daylight" = xyes; then :
  10647. ac_have_decl=1
  10648. else
  10649. ac_have_decl=0
  10650. fi
  10651. cat >>confdefs.h <<_ACEOF
  10652. #define HAVE_DECL_DAYLIGHT $ac_have_decl
  10653. _ACEOF
  10654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
  10655. $as_echo_n "checking for daylight... " >&6; }
  10656. if ${ac_cv_var_daylight+:} false; then :
  10657. $as_echo_n "(cached) " >&6
  10658. else
  10659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10660. /* end confdefs.h. */
  10661. #include <time.h>
  10662. #if !HAVE_DECL_DAYLIGHT
  10663. extern int daylight;
  10664. #endif
  10665. int
  10666. main ()
  10667. {
  10668. atoi(daylight);
  10669. ;
  10670. return 0;
  10671. }
  10672. _ACEOF
  10673. if ac_fn_c_try_link "$LINENO"; then :
  10674. ac_cv_var_daylight=yes
  10675. else
  10676. ac_cv_var_daylight=no
  10677. fi
  10678. rm -f core conftest.err conftest.$ac_objext \
  10679. conftest$ac_exeext conftest.$ac_ext
  10680. fi
  10681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
  10682. $as_echo "$ac_cv_var_daylight" >&6; }
  10683. if test $ac_cv_var_daylight = yes; then
  10684. $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
  10685. fi
  10686. # Check whether --enable-largefile was given.
  10687. if test "${enable_largefile+set}" = set; then :
  10688. enableval=$enable_largefile;
  10689. fi
  10690. if test "$enable_largefile" != no; then
  10691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  10692. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  10693. if ${ac_cv_sys_largefile_CC+:} false; then :
  10694. $as_echo_n "(cached) " >&6
  10695. else
  10696. ac_cv_sys_largefile_CC=no
  10697. if test "$GCC" != yes; then
  10698. ac_save_CC=$CC
  10699. while :; do
  10700. # IRIX 6.2 and later do not support large files by default,
  10701. # so use the C compiler's -n32 option if that helps.
  10702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10703. /* end confdefs.h. */
  10704. #include <sys/types.h>
  10705. /* Check that off_t can represent 2**63 - 1 correctly.
  10706. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10707. since some C++ compilers masquerading as C compilers
  10708. incorrectly reject 9223372036854775807. */
  10709. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10710. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10711. && LARGE_OFF_T % 2147483647 == 1)
  10712. ? 1 : -1];
  10713. int
  10714. main ()
  10715. {
  10716. ;
  10717. return 0;
  10718. }
  10719. _ACEOF
  10720. if ac_fn_c_try_compile "$LINENO"; then :
  10721. break
  10722. fi
  10723. rm -f core conftest.err conftest.$ac_objext
  10724. CC="$CC -n32"
  10725. if ac_fn_c_try_compile "$LINENO"; then :
  10726. ac_cv_sys_largefile_CC=' -n32'; break
  10727. fi
  10728. rm -f core conftest.err conftest.$ac_objext
  10729. break
  10730. done
  10731. CC=$ac_save_CC
  10732. rm -f conftest.$ac_ext
  10733. fi
  10734. fi
  10735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  10736. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  10737. if test "$ac_cv_sys_largefile_CC" != no; then
  10738. CC=$CC$ac_cv_sys_largefile_CC
  10739. fi
  10740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10741. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  10742. if ${ac_cv_sys_file_offset_bits+:} false; then :
  10743. $as_echo_n "(cached) " >&6
  10744. else
  10745. while :; do
  10746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10747. /* end confdefs.h. */
  10748. #include <sys/types.h>
  10749. /* Check that off_t can represent 2**63 - 1 correctly.
  10750. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10751. since some C++ compilers masquerading as C compilers
  10752. incorrectly reject 9223372036854775807. */
  10753. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10754. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10755. && LARGE_OFF_T % 2147483647 == 1)
  10756. ? 1 : -1];
  10757. int
  10758. main ()
  10759. {
  10760. ;
  10761. return 0;
  10762. }
  10763. _ACEOF
  10764. if ac_fn_c_try_compile "$LINENO"; then :
  10765. ac_cv_sys_file_offset_bits=no; break
  10766. fi
  10767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10769. /* end confdefs.h. */
  10770. #define _FILE_OFFSET_BITS 64
  10771. #include <sys/types.h>
  10772. /* Check that off_t can represent 2**63 - 1 correctly.
  10773. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10774. since some C++ compilers masquerading as C compilers
  10775. incorrectly reject 9223372036854775807. */
  10776. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10777. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10778. && LARGE_OFF_T % 2147483647 == 1)
  10779. ? 1 : -1];
  10780. int
  10781. main ()
  10782. {
  10783. ;
  10784. return 0;
  10785. }
  10786. _ACEOF
  10787. if ac_fn_c_try_compile "$LINENO"; then :
  10788. ac_cv_sys_file_offset_bits=64; break
  10789. fi
  10790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10791. ac_cv_sys_file_offset_bits=unknown
  10792. break
  10793. done
  10794. fi
  10795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  10796. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  10797. case $ac_cv_sys_file_offset_bits in #(
  10798. no | unknown) ;;
  10799. *)
  10800. cat >>confdefs.h <<_ACEOF
  10801. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10802. _ACEOF
  10803. ;;
  10804. esac
  10805. rm -rf conftest*
  10806. if test $ac_cv_sys_file_offset_bits = unknown; then
  10807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  10808. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  10809. if ${ac_cv_sys_large_files+:} false; then :
  10810. $as_echo_n "(cached) " >&6
  10811. else
  10812. while :; do
  10813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10814. /* end confdefs.h. */
  10815. #include <sys/types.h>
  10816. /* Check that off_t can represent 2**63 - 1 correctly.
  10817. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10818. since some C++ compilers masquerading as C compilers
  10819. incorrectly reject 9223372036854775807. */
  10820. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10821. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10822. && LARGE_OFF_T % 2147483647 == 1)
  10823. ? 1 : -1];
  10824. int
  10825. main ()
  10826. {
  10827. ;
  10828. return 0;
  10829. }
  10830. _ACEOF
  10831. if ac_fn_c_try_compile "$LINENO"; then :
  10832. ac_cv_sys_large_files=no; break
  10833. fi
  10834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10836. /* end confdefs.h. */
  10837. #define _LARGE_FILES 1
  10838. #include <sys/types.h>
  10839. /* Check that off_t can represent 2**63 - 1 correctly.
  10840. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10841. since some C++ compilers masquerading as C compilers
  10842. incorrectly reject 9223372036854775807. */
  10843. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10844. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10845. && LARGE_OFF_T % 2147483647 == 1)
  10846. ? 1 : -1];
  10847. int
  10848. main ()
  10849. {
  10850. ;
  10851. return 0;
  10852. }
  10853. _ACEOF
  10854. if ac_fn_c_try_compile "$LINENO"; then :
  10855. ac_cv_sys_large_files=1; break
  10856. fi
  10857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10858. ac_cv_sys_large_files=unknown
  10859. break
  10860. done
  10861. fi
  10862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  10863. $as_echo "$ac_cv_sys_large_files" >&6; }
  10864. case $ac_cv_sys_large_files in #(
  10865. no | unknown) ;;
  10866. *)
  10867. cat >>confdefs.h <<_ACEOF
  10868. #define _LARGE_FILES $ac_cv_sys_large_files
  10869. _ACEOF
  10870. ;;
  10871. esac
  10872. rm -rf conftest*
  10873. fi
  10874. fi
  10875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  10876. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  10877. if ${ac_cv_sys_largefile_source+:} false; then :
  10878. $as_echo_n "(cached) " >&6
  10879. else
  10880. while :; do
  10881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10882. /* end confdefs.h. */
  10883. #include <sys/types.h> /* for off_t */
  10884. #include <stdio.h>
  10885. int
  10886. main ()
  10887. {
  10888. int (*fp) (FILE *, off_t, int) = fseeko;
  10889. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  10890. ;
  10891. return 0;
  10892. }
  10893. _ACEOF
  10894. if ac_fn_c_try_link "$LINENO"; then :
  10895. ac_cv_sys_largefile_source=no; break
  10896. fi
  10897. rm -f core conftest.err conftest.$ac_objext \
  10898. conftest$ac_exeext conftest.$ac_ext
  10899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10900. /* end confdefs.h. */
  10901. #define _LARGEFILE_SOURCE 1
  10902. #include <sys/types.h> /* for off_t */
  10903. #include <stdio.h>
  10904. int
  10905. main ()
  10906. {
  10907. int (*fp) (FILE *, off_t, int) = fseeko;
  10908. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  10909. ;
  10910. return 0;
  10911. }
  10912. _ACEOF
  10913. if ac_fn_c_try_link "$LINENO"; then :
  10914. ac_cv_sys_largefile_source=1; break
  10915. fi
  10916. rm -f core conftest.err conftest.$ac_objext \
  10917. conftest$ac_exeext conftest.$ac_ext
  10918. ac_cv_sys_largefile_source=unknown
  10919. break
  10920. done
  10921. fi
  10922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  10923. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  10924. case $ac_cv_sys_largefile_source in #(
  10925. no | unknown) ;;
  10926. *)
  10927. cat >>confdefs.h <<_ACEOF
  10928. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  10929. _ACEOF
  10930. ;;
  10931. esac
  10932. rm -rf conftest*
  10933. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  10934. # in glibc 2.1.3, but that breaks too many other things.
  10935. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  10936. if test $ac_cv_sys_largefile_source != unknown; then
  10937. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  10938. fi
  10939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
  10940. $as_echo_n "checking for mbstate_t... " >&6; }
  10941. if ${ac_cv_type_mbstate_t+:} false; then :
  10942. $as_echo_n "(cached) " >&6
  10943. else
  10944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10945. /* end confdefs.h. */
  10946. $ac_includes_default
  10947. # include <wchar.h>
  10948. int
  10949. main ()
  10950. {
  10951. mbstate_t x; return sizeof x;
  10952. ;
  10953. return 0;
  10954. }
  10955. _ACEOF
  10956. if ac_fn_c_try_compile "$LINENO"; then :
  10957. ac_cv_type_mbstate_t=yes
  10958. else
  10959. ac_cv_type_mbstate_t=no
  10960. fi
  10961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10962. fi
  10963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
  10964. $as_echo "$ac_cv_type_mbstate_t" >&6; }
  10965. if test $ac_cv_type_mbstate_t = yes; then
  10966. $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
  10967. else
  10968. $as_echo "#define mbstate_t int" >>confdefs.h
  10969. fi
  10970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
  10971. $as_echo_n "checking for struct option in getopt... " >&6; }
  10972. if ${ac_cv_struct_option_getopt_h+:} false; then :
  10973. $as_echo_n "(cached) " >&6
  10974. else
  10975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10976. /* end confdefs.h. */
  10977. #include <getopt.h>
  10978. int
  10979. main ()
  10980. {
  10981. struct option op; op.name;
  10982. ;
  10983. return 0;
  10984. }
  10985. _ACEOF
  10986. if ac_fn_c_try_compile "$LINENO"; then :
  10987. ac_cv_struct_option_getopt_h=yes
  10988. else
  10989. ac_cv_struct_option_getopt_h=no
  10990. fi
  10991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10992. fi
  10993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
  10994. $as_echo "$ac_cv_struct_option_getopt_h" >&6; }
  10995. if test "$ac_cv_struct_option_getopt_h" = yes; then
  10996. $as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
  10997. fi
  10998. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  10999. if test "x$ac_cv_type_pid_t" = xyes; then :
  11000. else
  11001. cat >>confdefs.h <<_ACEOF
  11002. #define pid_t int
  11003. _ACEOF
  11004. fi
  11005. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  11006. case $ac_cv_c_uint8_t in #(
  11007. no|yes) ;; #(
  11008. *)
  11009. $as_echo "#define _UINT8_T 1" >>confdefs.h
  11010. cat >>confdefs.h <<_ACEOF
  11011. #define uint8_t $ac_cv_c_uint8_t
  11012. _ACEOF
  11013. ;;
  11014. esac
  11015. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  11016. case $ac_cv_c_uint16_t in #(
  11017. no|yes) ;; #(
  11018. *)
  11019. cat >>confdefs.h <<_ACEOF
  11020. #define uint16_t $ac_cv_c_uint16_t
  11021. _ACEOF
  11022. ;;
  11023. esac
  11024. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  11025. case $ac_cv_c_uint32_t in #(
  11026. no|yes) ;; #(
  11027. *)
  11028. $as_echo "#define _UINT32_T 1" >>confdefs.h
  11029. cat >>confdefs.h <<_ACEOF
  11030. #define uint32_t $ac_cv_c_uint32_t
  11031. _ACEOF
  11032. ;;
  11033. esac
  11034. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  11035. case $ac_cv_c_int32_t in #(
  11036. no|yes) ;; #(
  11037. *)
  11038. cat >>confdefs.h <<_ACEOF
  11039. #define int32_t $ac_cv_c_int32_t
  11040. _ACEOF
  11041. ;;
  11042. esac
  11043. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  11044. case $ac_cv_c_uint64_t in #(
  11045. no|yes) ;; #(
  11046. *)
  11047. $as_echo "#define _UINT64_T 1" >>confdefs.h
  11048. cat >>confdefs.h <<_ACEOF
  11049. #define uint64_t $ac_cv_c_uint64_t
  11050. _ACEOF
  11051. ;;
  11052. esac
  11053. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  11054. case $ac_cv_c_int64_t in #(
  11055. no|yes) ;; #(
  11056. *)
  11057. cat >>confdefs.h <<_ACEOF
  11058. #define int64_t $ac_cv_c_int64_t
  11059. _ACEOF
  11060. ;;
  11061. esac
  11062. # The cast to long int works around a bug in the HP C Compiler
  11063. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11064. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11065. # This bug is HP SR number 8606223364.
  11066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  11067. $as_echo_n "checking size of long long... " >&6; }
  11068. if ${ac_cv_sizeof_long_long+:} false; then :
  11069. $as_echo_n "(cached) " >&6
  11070. else
  11071. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  11072. else
  11073. if test "$ac_cv_type_long_long" = yes; then
  11074. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11075. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11076. as_fn_error 77 "cannot compute sizeof (long long)
  11077. See \`config.log' for more details" "$LINENO" 5; }
  11078. else
  11079. ac_cv_sizeof_long_long=0
  11080. fi
  11081. fi
  11082. fi
  11083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  11084. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  11085. cat >>confdefs.h <<_ACEOF
  11086. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  11087. _ACEOF
  11088. for ac_header in $ac_header_list
  11089. do :
  11090. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11091. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  11092. "
  11093. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11094. cat >>confdefs.h <<_ACEOF
  11095. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11096. _ACEOF
  11097. fi
  11098. done
  11099. for ac_func in getpagesize
  11100. do :
  11101. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  11102. if test "x$ac_cv_func_getpagesize" = xyes; then :
  11103. cat >>confdefs.h <<_ACEOF
  11104. #define HAVE_GETPAGESIZE 1
  11105. _ACEOF
  11106. fi
  11107. done
  11108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  11109. $as_echo_n "checking for working mmap... " >&6; }
  11110. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  11111. $as_echo_n "(cached) " >&6
  11112. else
  11113. if test "$cross_compiling" = yes; then :
  11114. ac_cv_func_mmap_fixed_mapped=no
  11115. else
  11116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11117. /* end confdefs.h. */
  11118. $ac_includes_default
  11119. /* malloc might have been renamed as rpl_malloc. */
  11120. #undef malloc
  11121. /* Thanks to Mike Haertel and Jim Avera for this test.
  11122. Here is a matrix of mmap possibilities:
  11123. mmap private not fixed
  11124. mmap private fixed at somewhere currently unmapped
  11125. mmap private fixed at somewhere already mapped
  11126. mmap shared not fixed
  11127. mmap shared fixed at somewhere currently unmapped
  11128. mmap shared fixed at somewhere already mapped
  11129. For private mappings, we should verify that changes cannot be read()
  11130. back from the file, nor mmap's back from the file at a different
  11131. address. (There have been systems where private was not correctly
  11132. implemented like the infamous i386 svr4.0, and systems where the
  11133. VM page cache was not coherent with the file system buffer cache
  11134. like early versions of FreeBSD and possibly contemporary NetBSD.)
  11135. For shared mappings, we should conversely verify that changes get
  11136. propagated back to all the places they're supposed to be.
  11137. Grep wants private fixed already mapped.
  11138. The main things grep needs to know about mmap are:
  11139. * does it exist and is it safe to write into the mmap'd area
  11140. * how to use it (BSD variants) */
  11141. #include <fcntl.h>
  11142. #include <sys/mman.h>
  11143. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  11144. char *malloc ();
  11145. #endif
  11146. /* This mess was copied from the GNU getpagesize.h. */
  11147. #ifndef HAVE_GETPAGESIZE
  11148. # ifdef _SC_PAGESIZE
  11149. # define getpagesize() sysconf(_SC_PAGESIZE)
  11150. # else /* no _SC_PAGESIZE */
  11151. # ifdef HAVE_SYS_PARAM_H
  11152. # include <sys/param.h>
  11153. # ifdef EXEC_PAGESIZE
  11154. # define getpagesize() EXEC_PAGESIZE
  11155. # else /* no EXEC_PAGESIZE */
  11156. # ifdef NBPG
  11157. # define getpagesize() NBPG * CLSIZE
  11158. # ifndef CLSIZE
  11159. # define CLSIZE 1
  11160. # endif /* no CLSIZE */
  11161. # else /* no NBPG */
  11162. # ifdef NBPC
  11163. # define getpagesize() NBPC
  11164. # else /* no NBPC */
  11165. # ifdef PAGESIZE
  11166. # define getpagesize() PAGESIZE
  11167. # endif /* PAGESIZE */
  11168. # endif /* no NBPC */
  11169. # endif /* no NBPG */
  11170. # endif /* no EXEC_PAGESIZE */
  11171. # else /* no HAVE_SYS_PARAM_H */
  11172. # define getpagesize() 8192 /* punt totally */
  11173. # endif /* no HAVE_SYS_PARAM_H */
  11174. # endif /* no _SC_PAGESIZE */
  11175. #endif /* no HAVE_GETPAGESIZE */
  11176. int
  11177. main ()
  11178. {
  11179. char *data, *data2, *data3;
  11180. const char *cdata2;
  11181. int i, pagesize;
  11182. int fd, fd2;
  11183. pagesize = getpagesize ();
  11184. /* First, make a file with some known garbage in it. */
  11185. data = (char *) malloc (pagesize);
  11186. if (!data)
  11187. return 1;
  11188. for (i = 0; i < pagesize; ++i)
  11189. *(data + i) = rand ();
  11190. umask (0);
  11191. fd = creat ("conftest.mmap", 0600);
  11192. if (fd < 0)
  11193. return 2;
  11194. if (write (fd, data, pagesize) != pagesize)
  11195. return 3;
  11196. close (fd);
  11197. /* Next, check that the tail of a page is zero-filled. File must have
  11198. non-zero length, otherwise we risk SIGBUS for entire page. */
  11199. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  11200. if (fd2 < 0)
  11201. return 4;
  11202. cdata2 = "";
  11203. if (write (fd2, cdata2, 1) != 1)
  11204. return 5;
  11205. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  11206. if (data2 == MAP_FAILED)
  11207. return 6;
  11208. for (i = 0; i < pagesize; ++i)
  11209. if (*(data2 + i))
  11210. return 7;
  11211. close (fd2);
  11212. if (munmap (data2, pagesize))
  11213. return 8;
  11214. /* Next, try to mmap the file at a fixed address which already has
  11215. something else allocated at it. If we can, also make sure that
  11216. we see the same garbage. */
  11217. fd = open ("conftest.mmap", O_RDWR);
  11218. if (fd < 0)
  11219. return 9;
  11220. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  11221. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  11222. return 10;
  11223. for (i = 0; i < pagesize; ++i)
  11224. if (*(data + i) != *(data2 + i))
  11225. return 11;
  11226. /* Finally, make sure that changes to the mapped area do not
  11227. percolate back to the file as seen by read(). (This is a bug on
  11228. some variants of i386 svr4.0.) */
  11229. for (i = 0; i < pagesize; ++i)
  11230. *(data2 + i) = *(data2 + i) + 1;
  11231. data3 = (char *) malloc (pagesize);
  11232. if (!data3)
  11233. return 12;
  11234. if (read (fd, data3, pagesize) != pagesize)
  11235. return 13;
  11236. for (i = 0; i < pagesize; ++i)
  11237. if (*(data + i) != *(data3 + i))
  11238. return 14;
  11239. close (fd);
  11240. return 0;
  11241. }
  11242. _ACEOF
  11243. if ac_fn_c_try_run "$LINENO"; then :
  11244. ac_cv_func_mmap_fixed_mapped=yes
  11245. else
  11246. ac_cv_func_mmap_fixed_mapped=no
  11247. fi
  11248. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11249. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11250. fi
  11251. fi
  11252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  11253. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  11254. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  11255. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  11256. fi
  11257. rm -f conftest.mmap conftest.txt
  11258. for ac_header in vfork.h
  11259. do :
  11260. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  11261. if test "x$ac_cv_header_vfork_h" = xyes; then :
  11262. cat >>confdefs.h <<_ACEOF
  11263. #define HAVE_VFORK_H 1
  11264. _ACEOF
  11265. fi
  11266. done
  11267. for ac_func in fork vfork
  11268. do :
  11269. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11270. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11271. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11272. cat >>confdefs.h <<_ACEOF
  11273. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11274. _ACEOF
  11275. fi
  11276. done
  11277. if test "x$ac_cv_func_fork" = xyes; then
  11278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  11279. $as_echo_n "checking for working fork... " >&6; }
  11280. if ${ac_cv_func_fork_works+:} false; then :
  11281. $as_echo_n "(cached) " >&6
  11282. else
  11283. if test "$cross_compiling" = yes; then :
  11284. ac_cv_func_fork_works=cross
  11285. else
  11286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11287. /* end confdefs.h. */
  11288. $ac_includes_default
  11289. int
  11290. main ()
  11291. {
  11292. /* By Ruediger Kuhlmann. */
  11293. return fork () < 0;
  11294. ;
  11295. return 0;
  11296. }
  11297. _ACEOF
  11298. if ac_fn_c_try_run "$LINENO"; then :
  11299. ac_cv_func_fork_works=yes
  11300. else
  11301. ac_cv_func_fork_works=no
  11302. fi
  11303. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11304. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11305. fi
  11306. fi
  11307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  11308. $as_echo "$ac_cv_func_fork_works" >&6; }
  11309. else
  11310. ac_cv_func_fork_works=$ac_cv_func_fork
  11311. fi
  11312. if test "x$ac_cv_func_fork_works" = xcross; then
  11313. case $host in
  11314. *-*-amigaos* | *-*-msdosdjgpp*)
  11315. # Override, as these systems have only a dummy fork() stub
  11316. ac_cv_func_fork_works=no
  11317. ;;
  11318. *)
  11319. ac_cv_func_fork_works=yes
  11320. ;;
  11321. esac
  11322. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  11323. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  11324. fi
  11325. ac_cv_func_vfork_works=$ac_cv_func_vfork
  11326. if test "x$ac_cv_func_vfork" = xyes; then
  11327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  11328. $as_echo_n "checking for working vfork... " >&6; }
  11329. if ${ac_cv_func_vfork_works+:} false; then :
  11330. $as_echo_n "(cached) " >&6
  11331. else
  11332. if test "$cross_compiling" = yes; then :
  11333. ac_cv_func_vfork_works=cross
  11334. else
  11335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11336. /* end confdefs.h. */
  11337. /* Thanks to Paul Eggert for this test. */
  11338. $ac_includes_default
  11339. #include <sys/wait.h>
  11340. #ifdef HAVE_VFORK_H
  11341. # include <vfork.h>
  11342. #endif
  11343. /* On some sparc systems, changes by the child to local and incoming
  11344. argument registers are propagated back to the parent. The compiler
  11345. is told about this with #include <vfork.h>, but some compilers
  11346. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  11347. static variable whose address is put into a register that is
  11348. clobbered by the vfork. */
  11349. static void
  11350. #ifdef __cplusplus
  11351. sparc_address_test (int arg)
  11352. # else
  11353. sparc_address_test (arg) int arg;
  11354. #endif
  11355. {
  11356. static pid_t child;
  11357. if (!child) {
  11358. child = vfork ();
  11359. if (child < 0) {
  11360. perror ("vfork");
  11361. _exit(2);
  11362. }
  11363. if (!child) {
  11364. arg = getpid();
  11365. write(-1, "", 0);
  11366. _exit (arg);
  11367. }
  11368. }
  11369. }
  11370. int
  11371. main ()
  11372. {
  11373. pid_t parent = getpid ();
  11374. pid_t child;
  11375. sparc_address_test (0);
  11376. child = vfork ();
  11377. if (child == 0) {
  11378. /* Here is another test for sparc vfork register problems. This
  11379. test uses lots of local variables, at least as many local
  11380. variables as main has allocated so far including compiler
  11381. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  11382. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  11383. reuse the register of parent for one of the local variables,
  11384. since it will think that parent can't possibly be used any more
  11385. in this routine. Assigning to the local variable will thus
  11386. munge parent in the parent process. */
  11387. pid_t
  11388. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  11389. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  11390. /* Convince the compiler that p..p7 are live; otherwise, it might
  11391. use the same hardware register for all 8 local variables. */
  11392. if (p != p1 || p != p2 || p != p3 || p != p4
  11393. || p != p5 || p != p6 || p != p7)
  11394. _exit(1);
  11395. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  11396. from child file descriptors. If the child closes a descriptor
  11397. before it execs or exits, this munges the parent's descriptor
  11398. as well. Test for this by closing stdout in the child. */
  11399. _exit(close(fileno(stdout)) != 0);
  11400. } else {
  11401. int status;
  11402. struct stat st;
  11403. while (wait(&status) != child)
  11404. ;
  11405. return (
  11406. /* Was there some problem with vforking? */
  11407. child < 0
  11408. /* Did the child fail? (This shouldn't happen.) */
  11409. || status
  11410. /* Did the vfork/compiler bug occur? */
  11411. || parent != getpid()
  11412. /* Did the file descriptor bug occur? */
  11413. || fstat(fileno(stdout), &st) != 0
  11414. );
  11415. }
  11416. }
  11417. _ACEOF
  11418. if ac_fn_c_try_run "$LINENO"; then :
  11419. ac_cv_func_vfork_works=yes
  11420. else
  11421. ac_cv_func_vfork_works=no
  11422. fi
  11423. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11424. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11425. fi
  11426. fi
  11427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  11428. $as_echo "$ac_cv_func_vfork_works" >&6; }
  11429. fi;
  11430. if test "x$ac_cv_func_fork_works" = xcross; then
  11431. ac_cv_func_vfork_works=$ac_cv_func_vfork
  11432. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  11433. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  11434. fi
  11435. if test "x$ac_cv_func_vfork_works" = xyes; then
  11436. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  11437. else
  11438. $as_echo "#define vfork fork" >>confdefs.h
  11439. fi
  11440. if test "x$ac_cv_func_fork_works" = xyes; then
  11441. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  11442. fi
  11443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
  11444. $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
  11445. if ${ac_cv_func_mbrtowc+:} false; then :
  11446. $as_echo_n "(cached) " >&6
  11447. else
  11448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11449. /* end confdefs.h. */
  11450. #include <wchar.h>
  11451. int
  11452. main ()
  11453. {
  11454. wchar_t wc;
  11455. char const s[] = "";
  11456. size_t n = 1;
  11457. mbstate_t state;
  11458. return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
  11459. ;
  11460. return 0;
  11461. }
  11462. _ACEOF
  11463. if ac_fn_c_try_link "$LINENO"; then :
  11464. ac_cv_func_mbrtowc=yes
  11465. else
  11466. ac_cv_func_mbrtowc=no
  11467. fi
  11468. rm -f core conftest.err conftest.$ac_objext \
  11469. conftest$ac_exeext conftest.$ac_ext
  11470. fi
  11471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
  11472. $as_echo "$ac_cv_func_mbrtowc" >&6; }
  11473. if test $ac_cv_func_mbrtowc = yes; then
  11474. $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
  11475. fi
  11476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
  11477. $as_echo_n "checking for gcc compiler warnings... " >&6; }
  11478. # Check whether --enable-warnings was given.
  11479. if test "${enable_warnings+set}" = set; then :
  11480. enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
  11481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11482. $as_echo "no" >&6; }
  11483. WARNINGS=
  11484. else
  11485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11486. $as_echo "yes" >&6; }
  11487. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  11488. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  11489. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  11490. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  11491. fi
  11492. else
  11493. if test "$GCC" = yes; then
  11494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11495. $as_echo "yes" >&6; }
  11496. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  11497. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  11498. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  11499. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  11500. else
  11501. WARNINGS=
  11502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11503. $as_echo "no" >&6; }
  11504. fi
  11505. fi
  11506. for ac_func in strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof
  11507. do :
  11508. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11509. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11510. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11511. cat >>confdefs.h <<_ACEOF
  11512. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11513. _ACEOF
  11514. fi
  11515. done
  11516. ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
  11517. if test "x$ac_cv_func_getopt_long" = xyes; then :
  11518. $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
  11519. else
  11520. case " $LIBOBJS " in
  11521. *" getopt_long.$ac_objext "* ) ;;
  11522. *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
  11523. ;;
  11524. esac
  11525. fi
  11526. ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
  11527. if test "x$ac_cv_func_asprintf" = xyes; then :
  11528. $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
  11529. else
  11530. case " $LIBOBJS " in
  11531. *" asprintf.$ac_objext "* ) ;;
  11532. *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
  11533. ;;
  11534. esac
  11535. fi
  11536. ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
  11537. if test "x$ac_cv_func_vasprintf" = xyes; then :
  11538. $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
  11539. else
  11540. case " $LIBOBJS " in
  11541. *" vasprintf.$ac_objext "* ) ;;
  11542. *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
  11543. ;;
  11544. esac
  11545. fi
  11546. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  11547. if test "x$ac_cv_func_strlcpy" = xyes; then :
  11548. $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
  11549. else
  11550. case " $LIBOBJS " in
  11551. *" strlcpy.$ac_objext "* ) ;;
  11552. *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
  11553. ;;
  11554. esac
  11555. fi
  11556. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  11557. if test "x$ac_cv_func_strlcat" = xyes; then :
  11558. $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
  11559. else
  11560. case " $LIBOBJS " in
  11561. *" strlcat.$ac_objext "* ) ;;
  11562. *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
  11563. ;;
  11564. esac
  11565. fi
  11566. ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
  11567. if test "x$ac_cv_func_getline" = xyes; then :
  11568. $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
  11569. else
  11570. case " $LIBOBJS " in
  11571. *" getline.$ac_objext "* ) ;;
  11572. *) LIBOBJS="$LIBOBJS getline.$ac_objext"
  11573. ;;
  11574. esac
  11575. fi
  11576. ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
  11577. if test "x$ac_cv_func_ctime_r" = xyes; then :
  11578. $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
  11579. else
  11580. case " $LIBOBJS " in
  11581. *" ctime_r.$ac_objext "* ) ;;
  11582. *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
  11583. ;;
  11584. esac
  11585. fi
  11586. ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  11587. if test "x$ac_cv_func_asctime_r" = xyes; then :
  11588. $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h
  11589. else
  11590. case " $LIBOBJS " in
  11591. *" asctime_r.$ac_objext "* ) ;;
  11592. *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
  11593. ;;
  11594. esac
  11595. fi
  11596. ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
  11597. if test "x$ac_cv_func_pread" = xyes; then :
  11598. $as_echo "#define HAVE_PREAD 1" >>confdefs.h
  11599. else
  11600. case " $LIBOBJS " in
  11601. *" pread.$ac_objext "* ) ;;
  11602. *) LIBOBJS="$LIBOBJS pread.$ac_objext"
  11603. ;;
  11604. esac
  11605. fi
  11606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
  11607. $as_echo_n "checking for gzopen in -lz... " >&6; }
  11608. if ${ac_cv_lib_z_gzopen+:} false; then :
  11609. $as_echo_n "(cached) " >&6
  11610. else
  11611. ac_check_lib_save_LIBS=$LIBS
  11612. LIBS="-lz $LIBS"
  11613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11614. /* end confdefs.h. */
  11615. /* Override any GCC internal prototype to avoid an error.
  11616. Use char because int might match the return type of a GCC
  11617. builtin and then its argument prototype would still apply. */
  11618. #ifdef __cplusplus
  11619. extern "C"
  11620. #endif
  11621. char gzopen ();
  11622. int
  11623. main ()
  11624. {
  11625. return gzopen ();
  11626. ;
  11627. return 0;
  11628. }
  11629. _ACEOF
  11630. if ac_fn_c_try_link "$LINENO"; then :
  11631. ac_cv_lib_z_gzopen=yes
  11632. else
  11633. ac_cv_lib_z_gzopen=no
  11634. fi
  11635. rm -f core conftest.err conftest.$ac_objext \
  11636. conftest$ac_exeext conftest.$ac_ext
  11637. LIBS=$ac_check_lib_save_LIBS
  11638. fi
  11639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
  11640. $as_echo "$ac_cv_lib_z_gzopen" >&6; }
  11641. if test "x$ac_cv_lib_z_gzopen" = xyes; then :
  11642. cat >>confdefs.h <<_ACEOF
  11643. #define HAVE_LIBZ 1
  11644. _ACEOF
  11645. LIBS="-lz $LIBS"
  11646. fi
  11647. if test "$MINGW" = 1; then
  11648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
  11649. $as_echo_n "checking for regexec in -lgnurx... " >&6; }
  11650. if ${ac_cv_lib_gnurx_regexec+:} false; then :
  11651. $as_echo_n "(cached) " >&6
  11652. else
  11653. ac_check_lib_save_LIBS=$LIBS
  11654. LIBS="-lgnurx $LIBS"
  11655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11656. /* end confdefs.h. */
  11657. /* Override any GCC internal prototype to avoid an error.
  11658. Use char because int might match the return type of a GCC
  11659. builtin and then its argument prototype would still apply. */
  11660. #ifdef __cplusplus
  11661. extern "C"
  11662. #endif
  11663. char regexec ();
  11664. int
  11665. main ()
  11666. {
  11667. return regexec ();
  11668. ;
  11669. return 0;
  11670. }
  11671. _ACEOF
  11672. if ac_fn_c_try_link "$LINENO"; then :
  11673. ac_cv_lib_gnurx_regexec=yes
  11674. else
  11675. ac_cv_lib_gnurx_regexec=no
  11676. fi
  11677. rm -f core conftest.err conftest.$ac_objext \
  11678. conftest$ac_exeext conftest.$ac_ext
  11679. LIBS=$ac_check_lib_save_LIBS
  11680. fi
  11681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
  11682. $as_echo "$ac_cv_lib_gnurx_regexec" >&6; }
  11683. if test "x$ac_cv_lib_gnurx_regexec" = xyes; then :
  11684. cat >>confdefs.h <<_ACEOF
  11685. #define HAVE_LIBGNURX 1
  11686. _ACEOF
  11687. LIBS="-lgnurx $LIBS"
  11688. else
  11689. as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
  11690. fi
  11691. fi
  11692. if test "$cross_compiling" = yes; then
  11693. IS_CROSS_COMPILE_TRUE=
  11694. IS_CROSS_COMPILE_FALSE='#'
  11695. else
  11696. IS_CROSS_COMPILE_TRUE='#'
  11697. IS_CROSS_COMPILE_FALSE=
  11698. fi
  11699. ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
  11700. cat >confcache <<\_ACEOF
  11701. # This file is a shell script that caches the results of configure
  11702. # tests run on this system so they can be shared between configure
  11703. # scripts and configure runs, see configure's option --config-cache.
  11704. # It is not useful on other systems. If it contains results you don't
  11705. # want to keep, you may remove or edit it.
  11706. #
  11707. # config.status only pays attention to the cache file if you give it
  11708. # the --recheck option to rerun configure.
  11709. #
  11710. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11711. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11712. # following values.
  11713. _ACEOF
  11714. # The following way of writing the cache mishandles newlines in values,
  11715. # but we know of no workaround that is simple, portable, and efficient.
  11716. # So, we kill variables containing newlines.
  11717. # Ultrix sh set writes to stderr and can't be redirected directly,
  11718. # and sets the high bit in the cache file unless we assign to the vars.
  11719. (
  11720. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11721. eval ac_val=\$$ac_var
  11722. case $ac_val in #(
  11723. *${as_nl}*)
  11724. case $ac_var in #(
  11725. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11726. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11727. esac
  11728. case $ac_var in #(
  11729. _ | IFS | as_nl) ;; #(
  11730. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11731. *) { eval $ac_var=; unset $ac_var;} ;;
  11732. esac ;;
  11733. esac
  11734. done
  11735. (set) 2>&1 |
  11736. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11737. *${as_nl}ac_space=\ *)
  11738. # `set' does not quote correctly, so add quotes: double-quote
  11739. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11740. sed -n \
  11741. "s/'/'\\\\''/g;
  11742. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11743. ;; #(
  11744. *)
  11745. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11746. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11747. ;;
  11748. esac |
  11749. sort
  11750. ) |
  11751. sed '
  11752. /^ac_cv_env_/b end
  11753. t clear
  11754. :clear
  11755. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11756. t end
  11757. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11758. :end' >>confcache
  11759. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11760. if test -w "$cache_file"; then
  11761. if test "x$cache_file" != "x/dev/null"; then
  11762. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11763. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11764. if test ! -f "$cache_file" || test -h "$cache_file"; then
  11765. cat confcache >"$cache_file"
  11766. else
  11767. case $cache_file in #(
  11768. */* | ?:*)
  11769. mv -f confcache "$cache_file"$$ &&
  11770. mv -f "$cache_file"$$ "$cache_file" ;; #(
  11771. *)
  11772. mv -f confcache "$cache_file" ;;
  11773. esac
  11774. fi
  11775. fi
  11776. else
  11777. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11778. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11779. fi
  11780. fi
  11781. rm -f confcache
  11782. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11783. # Let make expand exec_prefix.
  11784. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11785. DEFS=-DHAVE_CONFIG_H
  11786. ac_libobjs=
  11787. ac_ltlibobjs=
  11788. U=
  11789. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11790. # 1. Remove the extension, and $U if already installed.
  11791. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11792. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11793. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11794. # will be set to the directory where LIBOBJS objects are built.
  11795. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11796. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11797. done
  11798. LIBOBJS=$ac_libobjs
  11799. LTLIBOBJS=$ac_ltlibobjs
  11800. if test -n "$EXEEXT"; then
  11801. am__EXEEXT_TRUE=
  11802. am__EXEEXT_FALSE='#'
  11803. else
  11804. am__EXEEXT_TRUE='#'
  11805. am__EXEEXT_FALSE=
  11806. fi
  11807. if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
  11808. as_fn_error $? "conditional \"MINGW\" was never defined.
  11809. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11810. fi
  11811. if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
  11812. as_fn_error $? "conditional \"FSECT5\" was never defined.
  11813. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11814. fi
  11815. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11816. as_fn_error $? "conditional \"AMDEP\" was never defined.
  11817. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11818. fi
  11819. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11820. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11821. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11822. fi
  11823. if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
  11824. as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
  11825. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11826. fi
  11827. : "${CONFIG_STATUS=./config.status}"
  11828. ac_write_fail=0
  11829. ac_clean_files_save=$ac_clean_files
  11830. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11831. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11832. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11833. as_write_fail=0
  11834. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11835. #! $SHELL
  11836. # Generated by $as_me.
  11837. # Run this file to recreate the current configuration.
  11838. # Compiler output produced by configure, useful for debugging
  11839. # configure, is in config.log if it exists.
  11840. debug=false
  11841. ac_cs_recheck=false
  11842. ac_cs_silent=false
  11843. SHELL=\${CONFIG_SHELL-$SHELL}
  11844. export SHELL
  11845. _ASEOF
  11846. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11847. ## -------------------- ##
  11848. ## M4sh Initialization. ##
  11849. ## -------------------- ##
  11850. # Be more Bourne compatible
  11851. DUALCASE=1; export DUALCASE # for MKS sh
  11852. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11853. emulate sh
  11854. NULLCMD=:
  11855. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11856. # is contrary to our usage. Disable this feature.
  11857. alias -g '${1+"$@"}'='"$@"'
  11858. setopt NO_GLOB_SUBST
  11859. else
  11860. case `(set -o) 2>/dev/null` in #(
  11861. *posix*) :
  11862. set -o posix ;; #(
  11863. *) :
  11864. ;;
  11865. esac
  11866. fi
  11867. as_nl='
  11868. '
  11869. export as_nl
  11870. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11871. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11872. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11873. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11874. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11875. # but without wasting forks for bash or zsh.
  11876. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11877. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11878. as_echo='print -r --'
  11879. as_echo_n='print -rn --'
  11880. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11881. as_echo='printf %s\n'
  11882. as_echo_n='printf %s'
  11883. else
  11884. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11885. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11886. as_echo_n='/usr/ucb/echo -n'
  11887. else
  11888. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11889. as_echo_n_body='eval
  11890. arg=$1;
  11891. case $arg in #(
  11892. *"$as_nl"*)
  11893. expr "X$arg" : "X\\(.*\\)$as_nl";
  11894. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11895. esac;
  11896. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11897. '
  11898. export as_echo_n_body
  11899. as_echo_n='sh -c $as_echo_n_body as_echo'
  11900. fi
  11901. export as_echo_body
  11902. as_echo='sh -c $as_echo_body as_echo'
  11903. fi
  11904. # The user is always right.
  11905. if test "${PATH_SEPARATOR+set}" != set; then
  11906. PATH_SEPARATOR=:
  11907. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11908. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11909. PATH_SEPARATOR=';'
  11910. }
  11911. fi
  11912. # IFS
  11913. # We need space, tab and new line, in precisely that order. Quoting is
  11914. # there to prevent editors from complaining about space-tab.
  11915. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11916. # splitting by setting IFS to empty value.)
  11917. IFS=" "" $as_nl"
  11918. # Find who we are. Look in the path if we contain no directory separator.
  11919. as_myself=
  11920. case $0 in #((
  11921. *[\\/]* ) as_myself=$0 ;;
  11922. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11923. for as_dir in $PATH
  11924. do
  11925. IFS=$as_save_IFS
  11926. test -z "$as_dir" && as_dir=.
  11927. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11928. done
  11929. IFS=$as_save_IFS
  11930. ;;
  11931. esac
  11932. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11933. # in which case we are not to be found in the path.
  11934. if test "x$as_myself" = x; then
  11935. as_myself=$0
  11936. fi
  11937. if test ! -f "$as_myself"; then
  11938. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11939. exit 1
  11940. fi
  11941. # Unset variables that we do not need and which cause bugs (e.g. in
  11942. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11943. # suppresses any "Segmentation fault" message there. '((' could
  11944. # trigger a bug in pdksh 5.2.14.
  11945. for as_var in BASH_ENV ENV MAIL MAILPATH
  11946. do eval test x\${$as_var+set} = xset \
  11947. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11948. done
  11949. PS1='$ '
  11950. PS2='> '
  11951. PS4='+ '
  11952. # NLS nuisances.
  11953. LC_ALL=C
  11954. export LC_ALL
  11955. LANGUAGE=C
  11956. export LANGUAGE
  11957. # CDPATH.
  11958. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11959. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  11960. # ----------------------------------------
  11961. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11962. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11963. # script with STATUS, using 1 if that was 0.
  11964. as_fn_error ()
  11965. {
  11966. as_status=$1; test $as_status -eq 0 && as_status=1
  11967. if test "$4"; then
  11968. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11969. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  11970. fi
  11971. $as_echo "$as_me: error: $2" >&2
  11972. as_fn_exit $as_status
  11973. } # as_fn_error
  11974. # as_fn_set_status STATUS
  11975. # -----------------------
  11976. # Set $? to STATUS, without forking.
  11977. as_fn_set_status ()
  11978. {
  11979. return $1
  11980. } # as_fn_set_status
  11981. # as_fn_exit STATUS
  11982. # -----------------
  11983. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11984. as_fn_exit ()
  11985. {
  11986. set +e
  11987. as_fn_set_status $1
  11988. exit $1
  11989. } # as_fn_exit
  11990. # as_fn_unset VAR
  11991. # ---------------
  11992. # Portably unset VAR.
  11993. as_fn_unset ()
  11994. {
  11995. { eval $1=; unset $1;}
  11996. }
  11997. as_unset=as_fn_unset
  11998. # as_fn_append VAR VALUE
  11999. # ----------------------
  12000. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12001. # advantage of any shell optimizations that allow amortized linear growth over
  12002. # repeated appends, instead of the typical quadratic growth present in naive
  12003. # implementations.
  12004. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12005. eval 'as_fn_append ()
  12006. {
  12007. eval $1+=\$2
  12008. }'
  12009. else
  12010. as_fn_append ()
  12011. {
  12012. eval $1=\$$1\$2
  12013. }
  12014. fi # as_fn_append
  12015. # as_fn_arith ARG...
  12016. # ------------------
  12017. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12018. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12019. # must be portable across $(()) and expr.
  12020. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12021. eval 'as_fn_arith ()
  12022. {
  12023. as_val=$(( $* ))
  12024. }'
  12025. else
  12026. as_fn_arith ()
  12027. {
  12028. as_val=`expr "$@" || test $? -eq 1`
  12029. }
  12030. fi # as_fn_arith
  12031. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12032. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12033. as_expr=expr
  12034. else
  12035. as_expr=false
  12036. fi
  12037. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12038. as_basename=basename
  12039. else
  12040. as_basename=false
  12041. fi
  12042. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12043. as_dirname=dirname
  12044. else
  12045. as_dirname=false
  12046. fi
  12047. as_me=`$as_basename -- "$0" ||
  12048. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12049. X"$0" : 'X\(//\)$' \| \
  12050. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12051. $as_echo X/"$0" |
  12052. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12053. s//\1/
  12054. q
  12055. }
  12056. /^X\/\(\/\/\)$/{
  12057. s//\1/
  12058. q
  12059. }
  12060. /^X\/\(\/\).*/{
  12061. s//\1/
  12062. q
  12063. }
  12064. s/.*/./; q'`
  12065. # Avoid depending upon Character Ranges.
  12066. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12067. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12068. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12069. as_cr_digits='0123456789'
  12070. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12071. ECHO_C= ECHO_N= ECHO_T=
  12072. case `echo -n x` in #(((((
  12073. -n*)
  12074. case `echo 'xy\c'` in
  12075. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12076. xy) ECHO_C='\c';;
  12077. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12078. ECHO_T=' ';;
  12079. esac;;
  12080. *)
  12081. ECHO_N='-n';;
  12082. esac
  12083. rm -f conf$$ conf$$.exe conf$$.file
  12084. if test -d conf$$.dir; then
  12085. rm -f conf$$.dir/conf$$.file
  12086. else
  12087. rm -f conf$$.dir
  12088. mkdir conf$$.dir 2>/dev/null
  12089. fi
  12090. if (echo >conf$$.file) 2>/dev/null; then
  12091. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12092. as_ln_s='ln -s'
  12093. # ... but there are two gotchas:
  12094. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12095. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12096. # In both cases, we have to default to `cp -p'.
  12097. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12098. as_ln_s='cp -p'
  12099. elif ln conf$$.file conf$$ 2>/dev/null; then
  12100. as_ln_s=ln
  12101. else
  12102. as_ln_s='cp -p'
  12103. fi
  12104. else
  12105. as_ln_s='cp -p'
  12106. fi
  12107. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12108. rmdir conf$$.dir 2>/dev/null
  12109. # as_fn_mkdir_p
  12110. # -------------
  12111. # Create "$as_dir" as a directory, including parents if necessary.
  12112. as_fn_mkdir_p ()
  12113. {
  12114. case $as_dir in #(
  12115. -*) as_dir=./$as_dir;;
  12116. esac
  12117. test -d "$as_dir" || eval $as_mkdir_p || {
  12118. as_dirs=
  12119. while :; do
  12120. case $as_dir in #(
  12121. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12122. *) as_qdir=$as_dir;;
  12123. esac
  12124. as_dirs="'$as_qdir' $as_dirs"
  12125. as_dir=`$as_dirname -- "$as_dir" ||
  12126. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12127. X"$as_dir" : 'X\(//\)[^/]' \| \
  12128. X"$as_dir" : 'X\(//\)$' \| \
  12129. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12130. $as_echo X"$as_dir" |
  12131. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12132. s//\1/
  12133. q
  12134. }
  12135. /^X\(\/\/\)[^/].*/{
  12136. s//\1/
  12137. q
  12138. }
  12139. /^X\(\/\/\)$/{
  12140. s//\1/
  12141. q
  12142. }
  12143. /^X\(\/\).*/{
  12144. s//\1/
  12145. q
  12146. }
  12147. s/.*/./; q'`
  12148. test -d "$as_dir" && break
  12149. done
  12150. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12151. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  12152. } # as_fn_mkdir_p
  12153. if mkdir -p . 2>/dev/null; then
  12154. as_mkdir_p='mkdir -p "$as_dir"'
  12155. else
  12156. test -d ./-p && rmdir ./-p
  12157. as_mkdir_p=false
  12158. fi
  12159. if test -x / >/dev/null 2>&1; then
  12160. as_test_x='test -x'
  12161. else
  12162. if ls -dL / >/dev/null 2>&1; then
  12163. as_ls_L_option=L
  12164. else
  12165. as_ls_L_option=
  12166. fi
  12167. as_test_x='
  12168. eval sh -c '\''
  12169. if test -d "$1"; then
  12170. test -d "$1/.";
  12171. else
  12172. case $1 in #(
  12173. -*)set "./$1";;
  12174. esac;
  12175. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  12176. ???[sx]*):;;*)false;;esac;fi
  12177. '\'' sh
  12178. '
  12179. fi
  12180. as_executable_p=$as_test_x
  12181. # Sed expression to map a string onto a valid CPP name.
  12182. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12183. # Sed expression to map a string onto a valid variable name.
  12184. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12185. exec 6>&1
  12186. ## ----------------------------------- ##
  12187. ## Main body of $CONFIG_STATUS script. ##
  12188. ## ----------------------------------- ##
  12189. _ASEOF
  12190. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12191. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12192. # Save the log message, to keep $0 and so on meaningful, and to
  12193. # report actual input values of CONFIG_FILES etc. instead of their
  12194. # values after options handling.
  12195. ac_log="
  12196. This file was extended by file $as_me 5.13, which was
  12197. generated by GNU Autoconf 2.68. Invocation command line was
  12198. CONFIG_FILES = $CONFIG_FILES
  12199. CONFIG_HEADERS = $CONFIG_HEADERS
  12200. CONFIG_LINKS = $CONFIG_LINKS
  12201. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12202. $ $0 $@
  12203. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12204. "
  12205. _ACEOF
  12206. case $ac_config_files in *"
  12207. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12208. esac
  12209. case $ac_config_headers in *"
  12210. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12211. esac
  12212. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12213. # Files that config.status was made for.
  12214. config_files="$ac_config_files"
  12215. config_headers="$ac_config_headers"
  12216. config_commands="$ac_config_commands"
  12217. _ACEOF
  12218. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12219. ac_cs_usage="\
  12220. \`$as_me' instantiates files and other configuration actions
  12221. from templates according to the current configuration. Unless the files
  12222. and actions are specified as TAGs, all are instantiated by default.
  12223. Usage: $0 [OPTION]... [TAG]...
  12224. -h, --help print this help, then exit
  12225. -V, --version print version number and configuration settings, then exit
  12226. --config print configuration, then exit
  12227. -q, --quiet, --silent
  12228. do not print progress messages
  12229. -d, --debug don't remove temporary files
  12230. --recheck update $as_me by reconfiguring in the same conditions
  12231. --file=FILE[:TEMPLATE]
  12232. instantiate the configuration file FILE
  12233. --header=FILE[:TEMPLATE]
  12234. instantiate the configuration header FILE
  12235. Configuration files:
  12236. $config_files
  12237. Configuration headers:
  12238. $config_headers
  12239. Configuration commands:
  12240. $config_commands
  12241. Report bugs to <christos@astron.com>."
  12242. _ACEOF
  12243. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12244. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  12245. ac_cs_version="\\
  12246. file config.status 5.13
  12247. configured by $0, generated by GNU Autoconf 2.68,
  12248. with options \\"\$ac_cs_config\\"
  12249. Copyright (C) 2010 Free Software Foundation, Inc.
  12250. This config.status script is free software; the Free Software Foundation
  12251. gives unlimited permission to copy, distribute and modify it."
  12252. ac_pwd='$ac_pwd'
  12253. srcdir='$srcdir'
  12254. INSTALL='$INSTALL'
  12255. MKDIR_P='$MKDIR_P'
  12256. AWK='$AWK'
  12257. test -n "\$AWK" || AWK=awk
  12258. _ACEOF
  12259. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12260. # The default lists apply if the user does not specify any file.
  12261. ac_need_defaults=:
  12262. while test $# != 0
  12263. do
  12264. case $1 in
  12265. --*=?*)
  12266. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12267. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12268. ac_shift=:
  12269. ;;
  12270. --*=)
  12271. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12272. ac_optarg=
  12273. ac_shift=:
  12274. ;;
  12275. *)
  12276. ac_option=$1
  12277. ac_optarg=$2
  12278. ac_shift=shift
  12279. ;;
  12280. esac
  12281. case $ac_option in
  12282. # Handling of the options.
  12283. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12284. ac_cs_recheck=: ;;
  12285. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12286. $as_echo "$ac_cs_version"; exit ;;
  12287. --config | --confi | --conf | --con | --co | --c )
  12288. $as_echo "$ac_cs_config"; exit ;;
  12289. --debug | --debu | --deb | --de | --d | -d )
  12290. debug=: ;;
  12291. --file | --fil | --fi | --f )
  12292. $ac_shift
  12293. case $ac_optarg in
  12294. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12295. '') as_fn_error $? "missing file argument" ;;
  12296. esac
  12297. as_fn_append CONFIG_FILES " '$ac_optarg'"
  12298. ac_need_defaults=false;;
  12299. --header | --heade | --head | --hea )
  12300. $ac_shift
  12301. case $ac_optarg in
  12302. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12303. esac
  12304. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  12305. ac_need_defaults=false;;
  12306. --he | --h)
  12307. # Conflict between --help and --header
  12308. as_fn_error $? "ambiguous option: \`$1'
  12309. Try \`$0 --help' for more information.";;
  12310. --help | --hel | -h )
  12311. $as_echo "$ac_cs_usage"; exit ;;
  12312. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12313. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12314. ac_cs_silent=: ;;
  12315. # This is an error.
  12316. -*) as_fn_error $? "unrecognized option: \`$1'
  12317. Try \`$0 --help' for more information." ;;
  12318. *) as_fn_append ac_config_targets " $1"
  12319. ac_need_defaults=false ;;
  12320. esac
  12321. shift
  12322. done
  12323. ac_configure_extra_args=
  12324. if $ac_cs_silent; then
  12325. exec 6>/dev/null
  12326. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12327. fi
  12328. _ACEOF
  12329. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12330. if \$ac_cs_recheck; then
  12331. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12332. shift
  12333. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12334. CONFIG_SHELL='$SHELL'
  12335. export CONFIG_SHELL
  12336. exec "\$@"
  12337. fi
  12338. _ACEOF
  12339. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12340. exec 5>>config.log
  12341. {
  12342. echo
  12343. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12344. ## Running $as_me. ##
  12345. _ASBOX
  12346. $as_echo "$ac_log"
  12347. } >&5
  12348. _ACEOF
  12349. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12350. #
  12351. # INIT-COMMANDS
  12352. #
  12353. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  12354. # The HP-UX ksh and POSIX shell print the target directory to stdout
  12355. # if CDPATH is set.
  12356. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12357. sed_quote_subst='$sed_quote_subst'
  12358. double_quote_subst='$double_quote_subst'
  12359. delay_variable_subst='$delay_variable_subst'
  12360. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  12361. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  12362. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  12363. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  12364. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  12365. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  12366. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  12367. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  12368. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  12369. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  12370. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  12371. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  12372. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  12373. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  12374. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  12375. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  12376. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  12377. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  12378. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  12379. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  12380. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  12381. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  12382. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  12383. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  12384. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  12385. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  12386. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12387. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12388. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  12389. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  12390. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  12391. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  12392. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  12393. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  12394. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  12395. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12396. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12397. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12398. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  12399. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  12400. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  12401. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  12402. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  12403. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  12404. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  12405. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  12406. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  12407. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  12408. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  12409. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  12410. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12411. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  12412. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  12413. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  12414. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  12415. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  12416. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  12417. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  12418. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  12419. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  12420. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  12421. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  12422. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12423. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12424. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  12425. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  12426. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12427. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12428. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  12429. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12430. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12431. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12432. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12433. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12434. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12435. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  12436. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12437. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12438. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12439. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  12440. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  12441. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  12442. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  12443. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  12444. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  12445. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  12446. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  12447. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  12448. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  12449. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  12450. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12451. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  12452. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  12453. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12454. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12455. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  12456. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  12457. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  12458. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  12459. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  12460. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  12461. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  12462. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12463. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12464. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12465. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12466. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12467. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12468. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  12469. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  12470. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12471. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12472. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  12473. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  12474. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  12475. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  12476. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  12477. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  12478. LTCC='$LTCC'
  12479. LTCFLAGS='$LTCFLAGS'
  12480. compiler='$compiler_DEFAULT'
  12481. # Quote evaled strings.
  12482. for var in SED \
  12483. GREP \
  12484. EGREP \
  12485. FGREP \
  12486. LD \
  12487. NM \
  12488. LN_S \
  12489. lt_SP2NL \
  12490. lt_NL2SP \
  12491. reload_flag \
  12492. OBJDUMP \
  12493. deplibs_check_method \
  12494. file_magic_cmd \
  12495. AR \
  12496. AR_FLAGS \
  12497. STRIP \
  12498. RANLIB \
  12499. CC \
  12500. CFLAGS \
  12501. compiler \
  12502. lt_cv_sys_global_symbol_pipe \
  12503. lt_cv_sys_global_symbol_to_cdecl \
  12504. lt_cv_sys_global_symbol_to_c_name_address \
  12505. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  12506. SHELL \
  12507. ECHO \
  12508. lt_prog_compiler_no_builtin_flag \
  12509. lt_prog_compiler_wl \
  12510. lt_prog_compiler_pic \
  12511. lt_prog_compiler_static \
  12512. lt_cv_prog_compiler_c_o \
  12513. need_locks \
  12514. DSYMUTIL \
  12515. NMEDIT \
  12516. LIPO \
  12517. OTOOL \
  12518. OTOOL64 \
  12519. shrext_cmds \
  12520. export_dynamic_flag_spec \
  12521. whole_archive_flag_spec \
  12522. compiler_needs_object \
  12523. with_gnu_ld \
  12524. allow_undefined_flag \
  12525. no_undefined_flag \
  12526. hardcode_libdir_flag_spec \
  12527. hardcode_libdir_flag_spec_ld \
  12528. hardcode_libdir_separator \
  12529. fix_srcfile_path \
  12530. exclude_expsyms \
  12531. include_expsyms \
  12532. file_list_spec \
  12533. variables_saved_for_relink \
  12534. libname_spec \
  12535. library_names_spec \
  12536. soname_spec \
  12537. finish_eval \
  12538. old_striplib \
  12539. striplib; do
  12540. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  12541. *[\\\\\\\`\\"\\\$]*)
  12542. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  12543. ;;
  12544. *)
  12545. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12546. ;;
  12547. esac
  12548. done
  12549. # Double-quote double-evaled strings.
  12550. for var in reload_cmds \
  12551. old_postinstall_cmds \
  12552. old_postuninstall_cmds \
  12553. old_archive_cmds \
  12554. extract_expsyms_cmds \
  12555. old_archive_from_new_cmds \
  12556. old_archive_from_expsyms_cmds \
  12557. archive_cmds \
  12558. archive_expsym_cmds \
  12559. module_cmds \
  12560. module_expsym_cmds \
  12561. export_symbols_cmds \
  12562. prelink_cmds \
  12563. postinstall_cmds \
  12564. postuninstall_cmds \
  12565. finish_cmds \
  12566. sys_lib_search_path_spec \
  12567. sys_lib_dlsearch_path_spec; do
  12568. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  12569. *[\\\\\\\`\\"\\\$]*)
  12570. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  12571. ;;
  12572. *)
  12573. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12574. ;;
  12575. esac
  12576. done
  12577. # Fix-up fallback echo if it was mangled by the above quoting rules.
  12578. case \$lt_ECHO in
  12579. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  12580. ;;
  12581. esac
  12582. ac_aux_dir='$ac_aux_dir'
  12583. xsi_shell='$xsi_shell'
  12584. lt_shell_append='$lt_shell_append'
  12585. # See if we are running on zsh, and set the options which allow our
  12586. # commands through without removal of \ escapes INIT.
  12587. if test -n "\${ZSH_VERSION+set}" ; then
  12588. setopt NO_GLOB_SUBST
  12589. fi
  12590. PACKAGE='$PACKAGE'
  12591. VERSION='$VERSION'
  12592. TIMESTAMP='$TIMESTAMP'
  12593. RM='$RM'
  12594. ofile='$ofile'
  12595. _ACEOF
  12596. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12597. # Handling of arguments.
  12598. for ac_config_target in $ac_config_targets
  12599. do
  12600. case $ac_config_target in
  12601. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12602. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12603. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  12604. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12605. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12606. "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
  12607. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  12608. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  12609. "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  12610. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  12611. esac
  12612. done
  12613. # If the user did not use the arguments to specify the items to instantiate,
  12614. # then the envvar interface is used. Set only those that are not.
  12615. # We use the long form for the default assignment because of an extremely
  12616. # bizarre bug on SunOS 4.1.3.
  12617. if $ac_need_defaults; then
  12618. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12619. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12620. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12621. fi
  12622. # Have a temporary directory for convenience. Make it in the build tree
  12623. # simply because there is no reason against having it here, and in addition,
  12624. # creating and moving files from /tmp can sometimes cause problems.
  12625. # Hook for its removal unless debugging.
  12626. # Note that there is a small window in which the directory will not be cleaned:
  12627. # after its creation but before its name has been assigned to `$tmp'.
  12628. $debug ||
  12629. {
  12630. tmp= ac_tmp=
  12631. trap 'exit_status=$?
  12632. : "${ac_tmp:=$tmp}"
  12633. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  12634. ' 0
  12635. trap 'as_fn_exit 1' 1 2 13 15
  12636. }
  12637. # Create a (secure) tmp directory for tmp files.
  12638. {
  12639. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12640. test -d "$tmp"
  12641. } ||
  12642. {
  12643. tmp=./conf$$-$RANDOM
  12644. (umask 077 && mkdir "$tmp")
  12645. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  12646. ac_tmp=$tmp
  12647. # Set up the scripts for CONFIG_FILES section.
  12648. # No need to generate them if there are no CONFIG_FILES.
  12649. # This happens for instance with `./config.status config.h'.
  12650. if test -n "$CONFIG_FILES"; then
  12651. ac_cr=`echo X | tr X '\015'`
  12652. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12653. # But we know of no other shell where ac_cr would be empty at this
  12654. # point, so we can use a bashism as a fallback.
  12655. if test "x$ac_cr" = x; then
  12656. eval ac_cr=\$\'\\r\'
  12657. fi
  12658. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12659. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12660. ac_cs_awk_cr='\\r'
  12661. else
  12662. ac_cs_awk_cr=$ac_cr
  12663. fi
  12664. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  12665. _ACEOF
  12666. {
  12667. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12668. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12669. echo "_ACEOF"
  12670. } >conf$$subs.sh ||
  12671. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12672. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  12673. ac_delim='%!_!# '
  12674. for ac_last_try in false false false false false :; do
  12675. . ./conf$$subs.sh ||
  12676. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12677. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12678. if test $ac_delim_n = $ac_delim_num; then
  12679. break
  12680. elif $ac_last_try; then
  12681. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12682. else
  12683. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12684. fi
  12685. done
  12686. rm -f conf$$subs.sh
  12687. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12688. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  12689. _ACEOF
  12690. sed -n '
  12691. h
  12692. s/^/S["/; s/!.*/"]=/
  12693. p
  12694. g
  12695. s/^[^!]*!//
  12696. :repl
  12697. t repl
  12698. s/'"$ac_delim"'$//
  12699. t delim
  12700. :nl
  12701. h
  12702. s/\(.\{148\}\)..*/\1/
  12703. t more1
  12704. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12705. p
  12706. n
  12707. b repl
  12708. :more1
  12709. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12710. p
  12711. g
  12712. s/.\{148\}//
  12713. t nl
  12714. :delim
  12715. h
  12716. s/\(.\{148\}\)..*/\1/
  12717. t more2
  12718. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12719. p
  12720. b
  12721. :more2
  12722. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12723. p
  12724. g
  12725. s/.\{148\}//
  12726. t delim
  12727. ' <conf$$subs.awk | sed '
  12728. /^[^""]/{
  12729. N
  12730. s/\n//
  12731. }
  12732. ' >>$CONFIG_STATUS || ac_write_fail=1
  12733. rm -f conf$$subs.awk
  12734. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12735. _ACAWK
  12736. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  12737. for (key in S) S_is_set[key] = 1
  12738. FS = ""
  12739. }
  12740. {
  12741. line = $ 0
  12742. nfields = split(line, field, "@")
  12743. substed = 0
  12744. len = length(field[1])
  12745. for (i = 2; i < nfields; i++) {
  12746. key = field[i]
  12747. keylen = length(key)
  12748. if (S_is_set[key]) {
  12749. value = S[key]
  12750. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12751. len += length(value) + length(field[++i])
  12752. substed = 1
  12753. } else
  12754. len += 1 + keylen
  12755. }
  12756. print line
  12757. }
  12758. _ACAWK
  12759. _ACEOF
  12760. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12761. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12762. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12763. else
  12764. cat
  12765. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  12766. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  12767. _ACEOF
  12768. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  12769. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  12770. # trailing colons and then remove the whole line if VPATH becomes empty
  12771. # (actually we leave an empty line to preserve line numbers).
  12772. if test "x$srcdir" = x.; then
  12773. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  12774. h
  12775. s///
  12776. s/^/:/
  12777. s/[ ]*$/:/
  12778. s/:\$(srcdir):/:/g
  12779. s/:\${srcdir}:/:/g
  12780. s/:@srcdir@:/:/g
  12781. s/^:*//
  12782. s/:*$//
  12783. x
  12784. s/\(=[ ]*\).*/\1/
  12785. G
  12786. s/\n//
  12787. s/^[^=]*=[ ]*$//
  12788. }'
  12789. fi
  12790. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12791. fi # test -n "$CONFIG_FILES"
  12792. # Set up the scripts for CONFIG_HEADERS section.
  12793. # No need to generate them if there are no CONFIG_HEADERS.
  12794. # This happens for instance with `./config.status Makefile'.
  12795. if test -n "$CONFIG_HEADERS"; then
  12796. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  12797. BEGIN {
  12798. _ACEOF
  12799. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12800. # here-document in config.status, that substitutes the proper values into
  12801. # config.h.in to produce config.h.
  12802. # Create a delimiter string that does not exist in confdefs.h, to ease
  12803. # handling of long lines.
  12804. ac_delim='%!_!# '
  12805. for ac_last_try in false false :; do
  12806. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  12807. if test -z "$ac_tt"; then
  12808. break
  12809. elif $ac_last_try; then
  12810. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  12811. else
  12812. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12813. fi
  12814. done
  12815. # For the awk script, D is an array of macro values keyed by name,
  12816. # likewise P contains macro parameters if any. Preserve backslash
  12817. # newline sequences.
  12818. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12819. sed -n '
  12820. s/.\{148\}/&'"$ac_delim"'/g
  12821. t rset
  12822. :rset
  12823. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12824. t def
  12825. d
  12826. :def
  12827. s/\\$//
  12828. t bsnl
  12829. s/["\\]/\\&/g
  12830. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12831. D["\1"]=" \3"/p
  12832. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12833. d
  12834. :bsnl
  12835. s/["\\]/\\&/g
  12836. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12837. D["\1"]=" \3\\\\\\n"\\/p
  12838. t cont
  12839. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12840. t cont
  12841. d
  12842. :cont
  12843. n
  12844. s/.\{148\}/&'"$ac_delim"'/g
  12845. t clear
  12846. :clear
  12847. s/\\$//
  12848. t bsnlc
  12849. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12850. d
  12851. :bsnlc
  12852. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12853. b cont
  12854. ' <confdefs.h | sed '
  12855. s/'"$ac_delim"'/"\\\
  12856. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12857. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12858. for (key in D) D_is_set[key] = 1
  12859. FS = ""
  12860. }
  12861. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12862. line = \$ 0
  12863. split(line, arg, " ")
  12864. if (arg[1] == "#") {
  12865. defundef = arg[2]
  12866. mac1 = arg[3]
  12867. } else {
  12868. defundef = substr(arg[1], 2)
  12869. mac1 = arg[2]
  12870. }
  12871. split(mac1, mac2, "(") #)
  12872. macro = mac2[1]
  12873. prefix = substr(line, 1, index(line, defundef) - 1)
  12874. if (D_is_set[macro]) {
  12875. # Preserve the white space surrounding the "#".
  12876. print prefix "define", macro P[macro] D[macro]
  12877. next
  12878. } else {
  12879. # Replace #undef with comments. This is necessary, for example,
  12880. # in the case of _POSIX_SOURCE, which is predefined and required
  12881. # on some systems where configure will not decide to define it.
  12882. if (defundef == "undef") {
  12883. print "/*", prefix defundef, macro, "*/"
  12884. next
  12885. }
  12886. }
  12887. }
  12888. { print }
  12889. _ACAWK
  12890. _ACEOF
  12891. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12892. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  12893. fi # test -n "$CONFIG_HEADERS"
  12894. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  12895. shift
  12896. for ac_tag
  12897. do
  12898. case $ac_tag in
  12899. :[FHLC]) ac_mode=$ac_tag; continue;;
  12900. esac
  12901. case $ac_mode$ac_tag in
  12902. :[FHL]*:*);;
  12903. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12904. :[FH]-) ac_tag=-:-;;
  12905. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12906. esac
  12907. ac_save_IFS=$IFS
  12908. IFS=:
  12909. set x $ac_tag
  12910. IFS=$ac_save_IFS
  12911. shift
  12912. ac_file=$1
  12913. shift
  12914. case $ac_mode in
  12915. :L) ac_source=$1;;
  12916. :[FH])
  12917. ac_file_inputs=
  12918. for ac_f
  12919. do
  12920. case $ac_f in
  12921. -) ac_f="$ac_tmp/stdin";;
  12922. *) # Look for the file first in the build tree, then in the source tree
  12923. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12924. # because $ac_f cannot contain `:'.
  12925. test -f "$ac_f" ||
  12926. case $ac_f in
  12927. [\\/$]*) false;;
  12928. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12929. esac ||
  12930. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12931. esac
  12932. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12933. as_fn_append ac_file_inputs " '$ac_f'"
  12934. done
  12935. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12936. # use $as_me), people would be surprised to read:
  12937. # /* config.h. Generated by config.status. */
  12938. configure_input='Generated from '`
  12939. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12940. `' by configure.'
  12941. if test x"$ac_file" != x-; then
  12942. configure_input="$ac_file. $configure_input"
  12943. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12944. $as_echo "$as_me: creating $ac_file" >&6;}
  12945. fi
  12946. # Neutralize special characters interpreted by sed in replacement strings.
  12947. case $configure_input in #(
  12948. *\&* | *\|* | *\\* )
  12949. ac_sed_conf_input=`$as_echo "$configure_input" |
  12950. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12951. *) ac_sed_conf_input=$configure_input;;
  12952. esac
  12953. case $ac_tag in
  12954. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  12955. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  12956. esac
  12957. ;;
  12958. esac
  12959. ac_dir=`$as_dirname -- "$ac_file" ||
  12960. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12961. X"$ac_file" : 'X\(//\)[^/]' \| \
  12962. X"$ac_file" : 'X\(//\)$' \| \
  12963. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12964. $as_echo X"$ac_file" |
  12965. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12966. s//\1/
  12967. q
  12968. }
  12969. /^X\(\/\/\)[^/].*/{
  12970. s//\1/
  12971. q
  12972. }
  12973. /^X\(\/\/\)$/{
  12974. s//\1/
  12975. q
  12976. }
  12977. /^X\(\/\).*/{
  12978. s//\1/
  12979. q
  12980. }
  12981. s/.*/./; q'`
  12982. as_dir="$ac_dir"; as_fn_mkdir_p
  12983. ac_builddir=.
  12984. case "$ac_dir" in
  12985. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12986. *)
  12987. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12988. # A ".." for each directory in $ac_dir_suffix.
  12989. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12990. case $ac_top_builddir_sub in
  12991. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12992. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12993. esac ;;
  12994. esac
  12995. ac_abs_top_builddir=$ac_pwd
  12996. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12997. # for backward compatibility:
  12998. ac_top_builddir=$ac_top_build_prefix
  12999. case $srcdir in
  13000. .) # We are building in place.
  13001. ac_srcdir=.
  13002. ac_top_srcdir=$ac_top_builddir_sub
  13003. ac_abs_top_srcdir=$ac_pwd ;;
  13004. [\\/]* | ?:[\\/]* ) # Absolute name.
  13005. ac_srcdir=$srcdir$ac_dir_suffix;
  13006. ac_top_srcdir=$srcdir
  13007. ac_abs_top_srcdir=$srcdir ;;
  13008. *) # Relative name.
  13009. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13010. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13011. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13012. esac
  13013. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13014. case $ac_mode in
  13015. :F)
  13016. #
  13017. # CONFIG_FILE
  13018. #
  13019. case $INSTALL in
  13020. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13021. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13022. esac
  13023. ac_MKDIR_P=$MKDIR_P
  13024. case $MKDIR_P in
  13025. [\\/$]* | ?:[\\/]* ) ;;
  13026. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13027. esac
  13028. _ACEOF
  13029. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13030. # If the template does not know about datarootdir, expand it.
  13031. # FIXME: This hack should be removed a few years after 2.60.
  13032. ac_datarootdir_hack=; ac_datarootdir_seen=
  13033. ac_sed_dataroot='
  13034. /datarootdir/ {
  13035. p
  13036. q
  13037. }
  13038. /@datadir@/p
  13039. /@docdir@/p
  13040. /@infodir@/p
  13041. /@localedir@/p
  13042. /@mandir@/p'
  13043. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13044. *datarootdir*) ac_datarootdir_seen=yes;;
  13045. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13046. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13047. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13048. _ACEOF
  13049. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13050. ac_datarootdir_hack='
  13051. s&@datadir@&$datadir&g
  13052. s&@docdir@&$docdir&g
  13053. s&@infodir@&$infodir&g
  13054. s&@localedir@&$localedir&g
  13055. s&@mandir@&$mandir&g
  13056. s&\\\${datarootdir}&$datarootdir&g' ;;
  13057. esac
  13058. _ACEOF
  13059. # Neutralize VPATH when `$srcdir' = `.'.
  13060. # Shell code in configure.ac might set extrasub.
  13061. # FIXME: do we really want to maintain this feature?
  13062. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13063. ac_sed_extra="$ac_vpsub
  13064. $extrasub
  13065. _ACEOF
  13066. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13067. :t
  13068. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13069. s|@configure_input@|$ac_sed_conf_input|;t t
  13070. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13071. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13072. s&@srcdir@&$ac_srcdir&;t t
  13073. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13074. s&@top_srcdir@&$ac_top_srcdir&;t t
  13075. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13076. s&@builddir@&$ac_builddir&;t t
  13077. s&@abs_builddir@&$ac_abs_builddir&;t t
  13078. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13079. s&@INSTALL@&$ac_INSTALL&;t t
  13080. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13081. $ac_datarootdir_hack
  13082. "
  13083. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  13084. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13085. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13086. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  13087. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  13088. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  13089. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13090. which seems to be undefined. Please make sure it is defined" >&5
  13091. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13092. which seems to be undefined. Please make sure it is defined" >&2;}
  13093. rm -f "$ac_tmp/stdin"
  13094. case $ac_file in
  13095. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  13096. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  13097. esac \
  13098. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13099. ;;
  13100. :H)
  13101. #
  13102. # CONFIG_HEADER
  13103. #
  13104. if test x"$ac_file" != x-; then
  13105. {
  13106. $as_echo "/* $configure_input */" \
  13107. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  13108. } >"$ac_tmp/config.h" \
  13109. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13110. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  13111. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13112. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13113. else
  13114. rm -f "$ac_file"
  13115. mv "$ac_tmp/config.h" "$ac_file" \
  13116. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13117. fi
  13118. else
  13119. $as_echo "/* $configure_input */" \
  13120. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  13121. || as_fn_error $? "could not create -" "$LINENO" 5
  13122. fi
  13123. # Compute "$ac_file"'s index in $config_headers.
  13124. _am_arg="$ac_file"
  13125. _am_stamp_count=1
  13126. for _am_header in $config_headers :; do
  13127. case $_am_header in
  13128. $_am_arg | $_am_arg:* )
  13129. break ;;
  13130. * )
  13131. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13132. esac
  13133. done
  13134. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  13135. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13136. X"$_am_arg" : 'X\(//\)[^/]' \| \
  13137. X"$_am_arg" : 'X\(//\)$' \| \
  13138. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  13139. $as_echo X"$_am_arg" |
  13140. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13141. s//\1/
  13142. q
  13143. }
  13144. /^X\(\/\/\)[^/].*/{
  13145. s//\1/
  13146. q
  13147. }
  13148. /^X\(\/\/\)$/{
  13149. s//\1/
  13150. q
  13151. }
  13152. /^X\(\/\).*/{
  13153. s//\1/
  13154. q
  13155. }
  13156. s/.*/./; q'`/stamp-h$_am_stamp_count
  13157. ;;
  13158. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13159. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13160. ;;
  13161. esac
  13162. case $ac_file$ac_mode in
  13163. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  13164. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  13165. # are listed without --file. Let's play safe and only enable the eval
  13166. # if we detect the quoting.
  13167. case $CONFIG_FILES in
  13168. *\'*) eval set x "$CONFIG_FILES" ;;
  13169. *) set x $CONFIG_FILES ;;
  13170. esac
  13171. shift
  13172. for mf
  13173. do
  13174. # Strip MF so we end up with the name of the file.
  13175. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13176. # Check whether this is an Automake generated Makefile or not.
  13177. # We used to match only the files named `Makefile.in', but
  13178. # some people rename them; so instead we look at the file content.
  13179. # Grep'ing the first line is not enough: some people post-process
  13180. # each Makefile.in and add a new line on top of each file to say so.
  13181. # Grep'ing the whole file is not good either: AIX grep has a line
  13182. # limit of 2048, but all sed's we know have understand at least 4000.
  13183. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13184. dirpart=`$as_dirname -- "$mf" ||
  13185. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13186. X"$mf" : 'X\(//\)[^/]' \| \
  13187. X"$mf" : 'X\(//\)$' \| \
  13188. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13189. $as_echo X"$mf" |
  13190. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13191. s//\1/
  13192. q
  13193. }
  13194. /^X\(\/\/\)[^/].*/{
  13195. s//\1/
  13196. q
  13197. }
  13198. /^X\(\/\/\)$/{
  13199. s//\1/
  13200. q
  13201. }
  13202. /^X\(\/\).*/{
  13203. s//\1/
  13204. q
  13205. }
  13206. s/.*/./; q'`
  13207. else
  13208. continue
  13209. fi
  13210. # Extract the definition of DEPDIR, am__include, and am__quote
  13211. # from the Makefile without running `make'.
  13212. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13213. test -z "$DEPDIR" && continue
  13214. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13215. test -z "am__include" && continue
  13216. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13217. # When using ansi2knr, U may be empty or an underscore; expand it
  13218. U=`sed -n 's/^U = //p' < "$mf"`
  13219. # Find all dependency output files, they are included files with
  13220. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13221. # simplest approach to changing $(DEPDIR) to its actual value in the
  13222. # expansion.
  13223. for file in `sed -n "
  13224. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13225. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13226. # Make sure the directory exists.
  13227. test -f "$dirpart/$file" && continue
  13228. fdir=`$as_dirname -- "$file" ||
  13229. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13230. X"$file" : 'X\(//\)[^/]' \| \
  13231. X"$file" : 'X\(//\)$' \| \
  13232. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13233. $as_echo X"$file" |
  13234. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13235. s//\1/
  13236. q
  13237. }
  13238. /^X\(\/\/\)[^/].*/{
  13239. s//\1/
  13240. q
  13241. }
  13242. /^X\(\/\/\)$/{
  13243. s//\1/
  13244. q
  13245. }
  13246. /^X\(\/\).*/{
  13247. s//\1/
  13248. q
  13249. }
  13250. s/.*/./; q'`
  13251. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  13252. # echo "creating $dirpart/$file"
  13253. echo '# dummy' > "$dirpart/$file"
  13254. done
  13255. done
  13256. }
  13257. ;;
  13258. "libtool":C)
  13259. # See if we are running on zsh, and set the options which allow our
  13260. # commands through without removal of \ escapes.
  13261. if test -n "${ZSH_VERSION+set}" ; then
  13262. setopt NO_GLOB_SUBST
  13263. fi
  13264. cfgfile="${ofile}T"
  13265. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13266. $RM "$cfgfile"
  13267. cat <<_LT_EOF >> "$cfgfile"
  13268. #! $SHELL
  13269. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  13270. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  13271. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13272. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13273. #
  13274. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  13275. # 2006, 2007, 2008 Free Software Foundation, Inc.
  13276. # Written by Gordon Matzigkeit, 1996
  13277. #
  13278. # This file is part of GNU Libtool.
  13279. #
  13280. # GNU Libtool is free software; you can redistribute it and/or
  13281. # modify it under the terms of the GNU General Public License as
  13282. # published by the Free Software Foundation; either version 2 of
  13283. # the License, or (at your option) any later version.
  13284. #
  13285. # As a special exception to the GNU General Public License,
  13286. # if you distribute this file as part of a program or library that
  13287. # is built using GNU Libtool, you may include this file under the
  13288. # same distribution terms that you use for the rest of that program.
  13289. #
  13290. # GNU Libtool is distributed in the hope that it will be useful,
  13291. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13292. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13293. # GNU General Public License for more details.
  13294. #
  13295. # You should have received a copy of the GNU General Public License
  13296. # along with GNU Libtool; see the file COPYING. If not, a copy
  13297. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  13298. # obtained by writing to the Free Software Foundation, Inc.,
  13299. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  13300. # The names of the tagged configurations supported by this script.
  13301. available_tags=""
  13302. # ### BEGIN LIBTOOL CONFIG
  13303. # Which release of libtool.m4 was used?
  13304. macro_version=$macro_version
  13305. macro_revision=$macro_revision
  13306. # Whether or not to build static libraries.
  13307. build_old_libs=$enable_static
  13308. # What type of objects to build.
  13309. pic_mode=$pic_mode
  13310. # Whether or not to build shared libraries.
  13311. build_libtool_libs=$enable_shared
  13312. # Whether or not to optimize for fast installation.
  13313. fast_install=$enable_fast_install
  13314. # The host system.
  13315. host_alias=$host_alias
  13316. host=$host
  13317. host_os=$host_os
  13318. # The build system.
  13319. build_alias=$build_alias
  13320. build=$build
  13321. build_os=$build_os
  13322. # A sed program that does not truncate output.
  13323. SED=$lt_SED
  13324. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  13325. Xsed="\$SED -e 1s/^X//"
  13326. # A grep program that handles long lines.
  13327. GREP=$lt_GREP
  13328. # An ERE matcher.
  13329. EGREP=$lt_EGREP
  13330. # A literal string matcher.
  13331. FGREP=$lt_FGREP
  13332. # A BSD- or MS-compatible name lister.
  13333. NM=$lt_NM
  13334. # Whether we need soft or hard links.
  13335. LN_S=$lt_LN_S
  13336. # What is the maximum length of a command?
  13337. max_cmd_len=$max_cmd_len
  13338. # Object file suffix (normally "o").
  13339. objext=$ac_objext
  13340. # Executable file suffix (normally "").
  13341. exeext=$exeext
  13342. # whether the shell understands "unset".
  13343. lt_unset=$lt_unset
  13344. # turn spaces into newlines.
  13345. SP2NL=$lt_lt_SP2NL
  13346. # turn newlines into spaces.
  13347. NL2SP=$lt_lt_NL2SP
  13348. # How to create reloadable object files.
  13349. reload_flag=$lt_reload_flag
  13350. reload_cmds=$lt_reload_cmds
  13351. # An object symbol dumper.
  13352. OBJDUMP=$lt_OBJDUMP
  13353. # Method to check whether dependent libraries are shared objects.
  13354. deplibs_check_method=$lt_deplibs_check_method
  13355. # Command to use when deplibs_check_method == "file_magic".
  13356. file_magic_cmd=$lt_file_magic_cmd
  13357. # The archiver.
  13358. AR=$lt_AR
  13359. AR_FLAGS=$lt_AR_FLAGS
  13360. # A symbol stripping program.
  13361. STRIP=$lt_STRIP
  13362. # Commands used to install an old-style archive.
  13363. RANLIB=$lt_RANLIB
  13364. old_postinstall_cmds=$lt_old_postinstall_cmds
  13365. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13366. # A C compiler.
  13367. LTCC=$lt_CC
  13368. # LTCC compiler flags.
  13369. LTCFLAGS=$lt_CFLAGS
  13370. # Take the output of nm and produce a listing of raw symbols and C names.
  13371. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13372. # Transform the output of nm in a proper C declaration.
  13373. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13374. # Transform the output of nm in a C name address pair.
  13375. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13376. # Transform the output of nm in a C name address pair when lib prefix is needed.
  13377. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  13378. # The name of the directory that contains temporary libtool files.
  13379. objdir=$objdir
  13380. # Shell to use when invoking shell scripts.
  13381. SHELL=$lt_SHELL
  13382. # An echo program that does not interpret backslashes.
  13383. ECHO=$lt_ECHO
  13384. # Used to examine libraries when file_magic_cmd begins with "file".
  13385. MAGIC_CMD=$MAGIC_CMD
  13386. # Must we lock files when doing compilation?
  13387. need_locks=$lt_need_locks
  13388. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  13389. DSYMUTIL=$lt_DSYMUTIL
  13390. # Tool to change global to local symbols on Mac OS X.
  13391. NMEDIT=$lt_NMEDIT
  13392. # Tool to manipulate fat objects and archives on Mac OS X.
  13393. LIPO=$lt_LIPO
  13394. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  13395. OTOOL=$lt_OTOOL
  13396. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  13397. OTOOL64=$lt_OTOOL64
  13398. # Old archive suffix (normally "a").
  13399. libext=$libext
  13400. # Shared library suffix (normally ".so").
  13401. shrext_cmds=$lt_shrext_cmds
  13402. # The commands to extract the exported symbol list from a shared archive.
  13403. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13404. # Variables whose values should be saved in libtool wrapper scripts and
  13405. # restored at link time.
  13406. variables_saved_for_relink=$lt_variables_saved_for_relink
  13407. # Do we need the "lib" prefix for modules?
  13408. need_lib_prefix=$need_lib_prefix
  13409. # Do we need a version for libraries?
  13410. need_version=$need_version
  13411. # Library versioning type.
  13412. version_type=$version_type
  13413. # Shared library runtime path variable.
  13414. runpath_var=$runpath_var
  13415. # Shared library path variable.
  13416. shlibpath_var=$shlibpath_var
  13417. # Is shlibpath searched before the hard-coded library search path?
  13418. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13419. # Format of library name prefix.
  13420. libname_spec=$lt_libname_spec
  13421. # List of archive names. First name is the real one, the rest are links.
  13422. # The last name is the one that the linker finds with -lNAME
  13423. library_names_spec=$lt_library_names_spec
  13424. # The coded name of the library, if different from the real name.
  13425. soname_spec=$lt_soname_spec
  13426. # Command to use after installation of a shared archive.
  13427. postinstall_cmds=$lt_postinstall_cmds
  13428. # Command to use after uninstallation of a shared archive.
  13429. postuninstall_cmds=$lt_postuninstall_cmds
  13430. # Commands used to finish a libtool library installation in a directory.
  13431. finish_cmds=$lt_finish_cmds
  13432. # As "finish_cmds", except a single script fragment to be evaled but
  13433. # not shown.
  13434. finish_eval=$lt_finish_eval
  13435. # Whether we should hardcode library paths into libraries.
  13436. hardcode_into_libs=$hardcode_into_libs
  13437. # Compile-time system search path for libraries.
  13438. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13439. # Run-time system search path for libraries.
  13440. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13441. # Whether dlopen is supported.
  13442. dlopen_support=$enable_dlopen
  13443. # Whether dlopen of programs is supported.
  13444. dlopen_self=$enable_dlopen_self
  13445. # Whether dlopen of statically linked programs is supported.
  13446. dlopen_self_static=$enable_dlopen_self_static
  13447. # Commands to strip libraries.
  13448. old_striplib=$lt_old_striplib
  13449. striplib=$lt_striplib
  13450. # The linker used to build libraries.
  13451. LD=$lt_LD
  13452. # Commands used to build an old-style archive.
  13453. old_archive_cmds=$lt_old_archive_cmds
  13454. # A language specific compiler.
  13455. CC=$lt_compiler
  13456. # Is the compiler the GNU compiler?
  13457. with_gcc=$GCC
  13458. # Compiler flag to turn off builtin functions.
  13459. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  13460. # How to pass a linker flag through the compiler.
  13461. wl=$lt_lt_prog_compiler_wl
  13462. # Additional compiler flags for building library objects.
  13463. pic_flag=$lt_lt_prog_compiler_pic
  13464. # Compiler flag to prevent dynamic linking.
  13465. link_static_flag=$lt_lt_prog_compiler_static
  13466. # Does compiler simultaneously support -c and -o options?
  13467. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  13468. # Whether or not to add -lc for building shared libraries.
  13469. build_libtool_need_lc=$archive_cmds_need_lc
  13470. # Whether or not to disallow shared libs when runtime libs are static.
  13471. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  13472. # Compiler flag to allow reflexive dlopens.
  13473. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  13474. # Compiler flag to generate shared objects directly from archives.
  13475. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13476. # Whether the compiler copes with passing no objects directly.
  13477. compiler_needs_object=$lt_compiler_needs_object
  13478. # Create an old-style archive from a shared archive.
  13479. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13480. # Create a temporary old-style archive to link instead of a shared archive.
  13481. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13482. # Commands used to build a shared archive.
  13483. archive_cmds=$lt_archive_cmds
  13484. archive_expsym_cmds=$lt_archive_expsym_cmds
  13485. # Commands used to build a loadable module if different from building
  13486. # a shared archive.
  13487. module_cmds=$lt_module_cmds
  13488. module_expsym_cmds=$lt_module_expsym_cmds
  13489. # Whether we are building with GNU ld or not.
  13490. with_gnu_ld=$lt_with_gnu_ld
  13491. # Flag that allows shared libraries with undefined symbols to be built.
  13492. allow_undefined_flag=$lt_allow_undefined_flag
  13493. # Flag that enforces no undefined symbols.
  13494. no_undefined_flag=$lt_no_undefined_flag
  13495. # Flag to hardcode \$libdir into a binary during linking.
  13496. # This must work even if \$libdir does not exist
  13497. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  13498. # If ld is used when linking, flag to hardcode \$libdir into a binary
  13499. # during linking. This must work even if \$libdir does not exist.
  13500. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  13501. # Whether we need a single "-rpath" flag with a separated argument.
  13502. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  13503. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13504. # DIR into the resulting binary.
  13505. hardcode_direct=$hardcode_direct
  13506. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13507. # DIR into the resulting binary and the resulting library dependency is
  13508. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  13509. # library is relocated.
  13510. hardcode_direct_absolute=$hardcode_direct_absolute
  13511. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13512. # into the resulting binary.
  13513. hardcode_minus_L=$hardcode_minus_L
  13514. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13515. # into the resulting binary.
  13516. hardcode_shlibpath_var=$hardcode_shlibpath_var
  13517. # Set to "yes" if building a shared library automatically hardcodes DIR
  13518. # into the library and all subsequent libraries and executables linked
  13519. # against it.
  13520. hardcode_automatic=$hardcode_automatic
  13521. # Set to yes if linker adds runtime paths of dependent libraries
  13522. # to runtime path list.
  13523. inherit_rpath=$inherit_rpath
  13524. # Whether libtool must link a program against all its dependency libraries.
  13525. link_all_deplibs=$link_all_deplibs
  13526. # Fix the shell variable \$srcfile for the compiler.
  13527. fix_srcfile_path=$lt_fix_srcfile_path
  13528. # Set to "yes" if exported symbols are required.
  13529. always_export_symbols=$always_export_symbols
  13530. # The commands to list exported symbols.
  13531. export_symbols_cmds=$lt_export_symbols_cmds
  13532. # Symbols that should not be listed in the preloaded symbols.
  13533. exclude_expsyms=$lt_exclude_expsyms
  13534. # Symbols that must always be exported.
  13535. include_expsyms=$lt_include_expsyms
  13536. # Commands necessary for linking programs (against libraries) with templates.
  13537. prelink_cmds=$lt_prelink_cmds
  13538. # Specify filename containing input files.
  13539. file_list_spec=$lt_file_list_spec
  13540. # How to hardcode a shared library path into an executable.
  13541. hardcode_action=$hardcode_action
  13542. # ### END LIBTOOL CONFIG
  13543. _LT_EOF
  13544. case $host_os in
  13545. aix3*)
  13546. cat <<\_LT_EOF >> "$cfgfile"
  13547. # AIX sometimes has problems with the GCC collect2 program. For some
  13548. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13549. # vanish in a puff of smoke.
  13550. if test "X${COLLECT_NAMES+set}" != Xset; then
  13551. COLLECT_NAMES=
  13552. export COLLECT_NAMES
  13553. fi
  13554. _LT_EOF
  13555. ;;
  13556. esac
  13557. ltmain="$ac_aux_dir/ltmain.sh"
  13558. # We use sed instead of cat because bash on DJGPP gets confused if
  13559. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13560. # text mode, it properly converts lines to CR/LF. This bash problem
  13561. # is reportedly fixed, but why not run on old versions too?
  13562. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  13563. || (rm -f "$cfgfile"; exit 1)
  13564. case $xsi_shell in
  13565. yes)
  13566. cat << \_LT_EOF >> "$cfgfile"
  13567. # func_dirname file append nondir_replacement
  13568. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13569. # otherwise set result to NONDIR_REPLACEMENT.
  13570. func_dirname ()
  13571. {
  13572. case ${1} in
  13573. */*) func_dirname_result="${1%/*}${2}" ;;
  13574. * ) func_dirname_result="${3}" ;;
  13575. esac
  13576. }
  13577. # func_basename file
  13578. func_basename ()
  13579. {
  13580. func_basename_result="${1##*/}"
  13581. }
  13582. # func_dirname_and_basename file append nondir_replacement
  13583. # perform func_basename and func_dirname in a single function
  13584. # call:
  13585. # dirname: Compute the dirname of FILE. If nonempty,
  13586. # add APPEND to the result, otherwise set result
  13587. # to NONDIR_REPLACEMENT.
  13588. # value returned in "$func_dirname_result"
  13589. # basename: Compute filename of FILE.
  13590. # value retuned in "$func_basename_result"
  13591. # Implementation must be kept synchronized with func_dirname
  13592. # and func_basename. For efficiency, we do not delegate to
  13593. # those functions but instead duplicate the functionality here.
  13594. func_dirname_and_basename ()
  13595. {
  13596. case ${1} in
  13597. */*) func_dirname_result="${1%/*}${2}" ;;
  13598. * ) func_dirname_result="${3}" ;;
  13599. esac
  13600. func_basename_result="${1##*/}"
  13601. }
  13602. # func_stripname prefix suffix name
  13603. # strip PREFIX and SUFFIX off of NAME.
  13604. # PREFIX and SUFFIX must not contain globbing or regex special
  13605. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13606. # dot (in which case that matches only a dot).
  13607. func_stripname ()
  13608. {
  13609. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  13610. # positional parameters, so assign one to ordinary parameter first.
  13611. func_stripname_result=${3}
  13612. func_stripname_result=${func_stripname_result#"${1}"}
  13613. func_stripname_result=${func_stripname_result%"${2}"}
  13614. }
  13615. # func_opt_split
  13616. func_opt_split ()
  13617. {
  13618. func_opt_split_opt=${1%%=*}
  13619. func_opt_split_arg=${1#*=}
  13620. }
  13621. # func_lo2o object
  13622. func_lo2o ()
  13623. {
  13624. case ${1} in
  13625. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  13626. *) func_lo2o_result=${1} ;;
  13627. esac
  13628. }
  13629. # func_xform libobj-or-source
  13630. func_xform ()
  13631. {
  13632. func_xform_result=${1%.*}.lo
  13633. }
  13634. # func_arith arithmetic-term...
  13635. func_arith ()
  13636. {
  13637. func_arith_result=$(( $* ))
  13638. }
  13639. # func_len string
  13640. # STRING may not start with a hyphen.
  13641. func_len ()
  13642. {
  13643. func_len_result=${#1}
  13644. }
  13645. _LT_EOF
  13646. ;;
  13647. *) # Bourne compatible functions.
  13648. cat << \_LT_EOF >> "$cfgfile"
  13649. # func_dirname file append nondir_replacement
  13650. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13651. # otherwise set result to NONDIR_REPLACEMENT.
  13652. func_dirname ()
  13653. {
  13654. # Extract subdirectory from the argument.
  13655. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  13656. if test "X$func_dirname_result" = "X${1}"; then
  13657. func_dirname_result="${3}"
  13658. else
  13659. func_dirname_result="$func_dirname_result${2}"
  13660. fi
  13661. }
  13662. # func_basename file
  13663. func_basename ()
  13664. {
  13665. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  13666. }
  13667. # func_stripname prefix suffix name
  13668. # strip PREFIX and SUFFIX off of NAME.
  13669. # PREFIX and SUFFIX must not contain globbing or regex special
  13670. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13671. # dot (in which case that matches only a dot).
  13672. # func_strip_suffix prefix name
  13673. func_stripname ()
  13674. {
  13675. case ${2} in
  13676. .*) func_stripname_result=`$ECHO "X${3}" \
  13677. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  13678. *) func_stripname_result=`$ECHO "X${3}" \
  13679. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  13680. esac
  13681. }
  13682. # sed scripts:
  13683. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  13684. my_sed_long_arg='1s/^-[^=]*=//'
  13685. # func_opt_split
  13686. func_opt_split ()
  13687. {
  13688. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  13689. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  13690. }
  13691. # func_lo2o object
  13692. func_lo2o ()
  13693. {
  13694. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  13695. }
  13696. # func_xform libobj-or-source
  13697. func_xform ()
  13698. {
  13699. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  13700. }
  13701. # func_arith arithmetic-term...
  13702. func_arith ()
  13703. {
  13704. func_arith_result=`expr "$@"`
  13705. }
  13706. # func_len string
  13707. # STRING may not start with a hyphen.
  13708. func_len ()
  13709. {
  13710. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  13711. }
  13712. _LT_EOF
  13713. esac
  13714. case $lt_shell_append in
  13715. yes)
  13716. cat << \_LT_EOF >> "$cfgfile"
  13717. # func_append var value
  13718. # Append VALUE to the end of shell variable VAR.
  13719. func_append ()
  13720. {
  13721. eval "$1+=\$2"
  13722. }
  13723. _LT_EOF
  13724. ;;
  13725. *)
  13726. cat << \_LT_EOF >> "$cfgfile"
  13727. # func_append var value
  13728. # Append VALUE to the end of shell variable VAR.
  13729. func_append ()
  13730. {
  13731. eval "$1=\$$1\$2"
  13732. }
  13733. _LT_EOF
  13734. ;;
  13735. esac
  13736. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  13737. || (rm -f "$cfgfile"; exit 1)
  13738. mv -f "$cfgfile" "$ofile" ||
  13739. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13740. chmod +x "$ofile"
  13741. ;;
  13742. esac
  13743. done # for ac_tag
  13744. as_fn_exit 0
  13745. _ACEOF
  13746. ac_clean_files=$ac_clean_files_save
  13747. test $ac_write_fail = 0 ||
  13748. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13749. # configure is writing to config.log, and then calls config.status.
  13750. # config.status does its own redirection, appending to config.log.
  13751. # Unfortunately, on DOS this fails, as config.log is still kept open
  13752. # by configure, so config.status won't be able to write to it; its
  13753. # output is simply discarded. So we exec the FD to /dev/null,
  13754. # effectively closing config.log, so it can be properly (re)opened and
  13755. # appended to by config.status. When coming back to configure, we
  13756. # need to make the FD available again.
  13757. if test "$no_create" != yes; then
  13758. ac_cs_success=:
  13759. ac_config_status_args=
  13760. test "$silent" = yes &&
  13761. ac_config_status_args="$ac_config_status_args --quiet"
  13762. exec 5>/dev/null
  13763. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13764. exec 5>>config.log
  13765. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13766. # would make configure fail if this is the last instruction.
  13767. $ac_cs_success || as_fn_exit 1
  13768. fi
  13769. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13770. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13771. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13772. fi