configure 388 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for libssp 1.0.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test \$(( 1 + 1 )) = 2 || exit 1
  159. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  160. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  161. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  162. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  163. PATH=/empty FPATH=/empty; export PATH FPATH
  164. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  165. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  166. if (eval "$as_required") 2>/dev/null; then :
  167. as_have_required=yes
  168. else
  169. as_have_required=no
  170. fi
  171. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  172. else
  173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  174. as_found=false
  175. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  176. do
  177. IFS=$as_save_IFS
  178. test -z "$as_dir" && as_dir=.
  179. as_found=:
  180. case $as_dir in #(
  181. /*)
  182. for as_base in sh bash ksh sh5; do
  183. # Try only shells that exist, to save several forks.
  184. as_shell=$as_dir/$as_base
  185. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  186. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. CONFIG_SHELL=$as_shell as_have_required=yes
  188. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. break 2
  190. fi
  191. fi
  192. done;;
  193. esac
  194. as_found=false
  195. done
  196. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  197. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  198. CONFIG_SHELL=$SHELL as_have_required=yes
  199. fi; }
  200. IFS=$as_save_IFS
  201. if test "x$CONFIG_SHELL" != x; then :
  202. # We cannot yet assume a decent shell, so we have to provide a
  203. # neutralization value for shells without unset; and this also
  204. # works around shells that cannot unset nonexistent variables.
  205. BASH_ENV=/dev/null
  206. ENV=/dev/null
  207. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  208. export CONFIG_SHELL
  209. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  210. fi
  211. if test x$as_have_required = xno; then :
  212. $as_echo "$0: This script requires a shell more modern than all"
  213. $as_echo "$0: the shells that I found on your system."
  214. if test x${ZSH_VERSION+set} = xset ; then
  215. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  216. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  217. else
  218. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  219. $0: including any error possibly output before this
  220. $0: message. Then install a modern shell, or manually run
  221. $0: the script under such a shell if you do have one."
  222. fi
  223. exit 1
  224. fi
  225. fi
  226. fi
  227. SHELL=${CONFIG_SHELL-/bin/sh}
  228. export SHELL
  229. # Unset more variables known to interfere with behavior of common tools.
  230. CLICOLOR_FORCE= GREP_OPTIONS=
  231. unset CLICOLOR_FORCE GREP_OPTIONS
  232. ## --------------------- ##
  233. ## M4sh Shell Functions. ##
  234. ## --------------------- ##
  235. # as_fn_unset VAR
  236. # ---------------
  237. # Portably unset VAR.
  238. as_fn_unset ()
  239. {
  240. { eval $1=; unset $1;}
  241. }
  242. as_unset=as_fn_unset
  243. # as_fn_set_status STATUS
  244. # -----------------------
  245. # Set $? to STATUS, without forking.
  246. as_fn_set_status ()
  247. {
  248. return $1
  249. } # as_fn_set_status
  250. # as_fn_exit STATUS
  251. # -----------------
  252. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  253. as_fn_exit ()
  254. {
  255. set +e
  256. as_fn_set_status $1
  257. exit $1
  258. } # as_fn_exit
  259. # as_fn_mkdir_p
  260. # -------------
  261. # Create "$as_dir" as a directory, including parents if necessary.
  262. as_fn_mkdir_p ()
  263. {
  264. case $as_dir in #(
  265. -*) as_dir=./$as_dir;;
  266. esac
  267. test -d "$as_dir" || eval $as_mkdir_p || {
  268. as_dirs=
  269. while :; do
  270. case $as_dir in #(
  271. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  272. *) as_qdir=$as_dir;;
  273. esac
  274. as_dirs="'$as_qdir' $as_dirs"
  275. as_dir=`$as_dirname -- "$as_dir" ||
  276. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  277. X"$as_dir" : 'X\(//\)[^/]' \| \
  278. X"$as_dir" : 'X\(//\)$' \| \
  279. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  280. $as_echo X"$as_dir" |
  281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)[^/].*/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\/\)$/{
  290. s//\1/
  291. q
  292. }
  293. /^X\(\/\).*/{
  294. s//\1/
  295. q
  296. }
  297. s/.*/./; q'`
  298. test -d "$as_dir" && break
  299. done
  300. test -z "$as_dirs" || eval "mkdir $as_dirs"
  301. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  302. } # as_fn_mkdir_p
  303. # as_fn_append VAR VALUE
  304. # ----------------------
  305. # Append the text in VALUE to the end of the definition contained in VAR. Take
  306. # advantage of any shell optimizations that allow amortized linear growth over
  307. # repeated appends, instead of the typical quadratic growth present in naive
  308. # implementations.
  309. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  310. eval 'as_fn_append ()
  311. {
  312. eval $1+=\$2
  313. }'
  314. else
  315. as_fn_append ()
  316. {
  317. eval $1=\$$1\$2
  318. }
  319. fi # as_fn_append
  320. # as_fn_arith ARG...
  321. # ------------------
  322. # Perform arithmetic evaluation on the ARGs, and store the result in the
  323. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  324. # must be portable across $(()) and expr.
  325. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  326. eval 'as_fn_arith ()
  327. {
  328. as_val=$(( $* ))
  329. }'
  330. else
  331. as_fn_arith ()
  332. {
  333. as_val=`expr "$@" || test $? -eq 1`
  334. }
  335. fi # as_fn_arith
  336. # as_fn_error ERROR [LINENO LOG_FD]
  337. # ---------------------------------
  338. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  339. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  340. # script with status $?, using 1 if that was 0.
  341. as_fn_error ()
  342. {
  343. as_status=$?; test $as_status -eq 0 && as_status=1
  344. if test "$3"; then
  345. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  346. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  347. fi
  348. $as_echo "$as_me: error: $1" >&2
  349. as_fn_exit $as_status
  350. } # as_fn_error
  351. if expr a : '\(a\)' >/dev/null 2>&1 &&
  352. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  353. as_expr=expr
  354. else
  355. as_expr=false
  356. fi
  357. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  358. as_basename=basename
  359. else
  360. as_basename=false
  361. fi
  362. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  363. as_dirname=dirname
  364. else
  365. as_dirname=false
  366. fi
  367. as_me=`$as_basename -- "$0" ||
  368. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  369. X"$0" : 'X\(//\)$' \| \
  370. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  371. $as_echo X/"$0" |
  372. sed '/^.*\/\([^/][^/]*\)\/*$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\/\)$/{
  377. s//\1/
  378. q
  379. }
  380. /^X\/\(\/\).*/{
  381. s//\1/
  382. q
  383. }
  384. s/.*/./; q'`
  385. # Avoid depending upon Character Ranges.
  386. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  387. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  388. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  389. as_cr_digits='0123456789'
  390. as_cr_alnum=$as_cr_Letters$as_cr_digits
  391. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  392. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  393. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  394. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  395. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  396. sed -n '
  397. p
  398. /[$]LINENO/=
  399. ' <$as_myself |
  400. sed '
  401. s/[$]LINENO.*/&-/
  402. t lineno
  403. b
  404. :lineno
  405. N
  406. :loop
  407. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  408. t loop
  409. s/-\n.*//
  410. ' >$as_me.lineno &&
  411. chmod +x "$as_me.lineno" ||
  412. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  413. # Don't try to exec as it changes $[0], causing all sort of problems
  414. # (the dirname of $[0] is not the place where we might find the
  415. # original and so on. Autoconf is especially sensitive to this).
  416. . "./$as_me.lineno"
  417. # Exit status is that of the last command.
  418. exit
  419. }
  420. ECHO_C= ECHO_N= ECHO_T=
  421. case `echo -n x` in #(((((
  422. -n*)
  423. case `echo 'xy\c'` in
  424. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  425. xy) ECHO_C='\c';;
  426. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  427. ECHO_T=' ';;
  428. esac;;
  429. *)
  430. ECHO_N='-n';;
  431. esac
  432. rm -f conf$$ conf$$.exe conf$$.file
  433. if test -d conf$$.dir; then
  434. rm -f conf$$.dir/conf$$.file
  435. else
  436. rm -f conf$$.dir
  437. mkdir conf$$.dir 2>/dev/null
  438. fi
  439. if (echo >conf$$.file) 2>/dev/null; then
  440. if ln -s conf$$.file conf$$ 2>/dev/null; then
  441. as_ln_s='ln -s'
  442. # ... but there are two gotchas:
  443. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  444. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  445. # In both cases, we have to default to `cp -p'.
  446. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  447. as_ln_s='cp -p'
  448. elif ln conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s=ln
  450. else
  451. as_ln_s='cp -p'
  452. fi
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  457. rmdir conf$$.dir 2>/dev/null
  458. if mkdir -p . 2>/dev/null; then
  459. as_mkdir_p='mkdir -p "$as_dir"'
  460. else
  461. test -d ./-p && rmdir ./-p
  462. as_mkdir_p=false
  463. fi
  464. if test -x / >/dev/null 2>&1; then
  465. as_test_x='test -x'
  466. else
  467. if ls -dL / >/dev/null 2>&1; then
  468. as_ls_L_option=L
  469. else
  470. as_ls_L_option=
  471. fi
  472. as_test_x='
  473. eval sh -c '\''
  474. if test -d "$1"; then
  475. test -d "$1/.";
  476. else
  477. case $1 in #(
  478. -*)set "./$1";;
  479. esac;
  480. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  481. ???[sx]*):;;*)false;;esac;fi
  482. '\'' sh
  483. '
  484. fi
  485. as_executable_p=$as_test_x
  486. # Sed expression to map a string onto a valid CPP name.
  487. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  488. # Sed expression to map a string onto a valid variable name.
  489. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  490. SHELL=${CONFIG_SHELL-/bin/sh}
  491. exec 7<&0 </dev/null 6>&1
  492. # Name of the host.
  493. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  494. # so uname gets run too.
  495. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  496. #
  497. # Initializations.
  498. #
  499. ac_default_prefix=/usr/local
  500. ac_clean_files=
  501. ac_config_libobj_dir=.
  502. LIBOBJS=
  503. cross_compiling=no
  504. subdirs=
  505. MFLAGS=
  506. MAKEFLAGS=
  507. # Identity of this package.
  508. PACKAGE_NAME='libssp'
  509. PACKAGE_TARNAME='libssp'
  510. PACKAGE_VERSION='1.0'
  511. PACKAGE_STRING='libssp 1.0'
  512. PACKAGE_BUGREPORT=''
  513. PACKAGE_URL=''
  514. ac_unique_file="ssp.c"
  515. # Factoring default headers for most tests.
  516. ac_includes_default="\
  517. #include <stdio.h>
  518. #ifdef HAVE_SYS_TYPES_H
  519. # include <sys/types.h>
  520. #endif
  521. #ifdef HAVE_SYS_STAT_H
  522. # include <sys/stat.h>
  523. #endif
  524. #ifdef STDC_HEADERS
  525. # include <stdlib.h>
  526. # include <stddef.h>
  527. #else
  528. # ifdef HAVE_STDLIB_H
  529. # include <stdlib.h>
  530. # endif
  531. #endif
  532. #ifdef HAVE_STRING_H
  533. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  534. # include <memory.h>
  535. # endif
  536. # include <string.h>
  537. #endif
  538. #ifdef HAVE_STRINGS_H
  539. # include <strings.h>
  540. #endif
  541. #ifdef HAVE_INTTYPES_H
  542. # include <inttypes.h>
  543. #endif
  544. #ifdef HAVE_STDINT_H
  545. # include <stdint.h>
  546. #endif
  547. #ifdef HAVE_UNISTD_H
  548. # include <unistd.h>
  549. #endif"
  550. ac_subst_vars='am__EXEEXT_FALSE
  551. am__EXEEXT_TRUE
  552. LTLIBOBJS
  553. LIBOBJS
  554. toolexeclibdir
  555. toolexecdir
  556. enable_static
  557. enable_shared
  558. lt_host_flags
  559. OTOOL64
  560. OTOOL
  561. LIPO
  562. NMEDIT
  563. DSYMUTIL
  564. RANLIB
  565. AR
  566. OBJDUMP
  567. LN_S
  568. NM
  569. ac_ct_DUMPBIN
  570. DUMPBIN
  571. LD
  572. FGREP
  573. SED
  574. LIBTOOL
  575. ssp_have_usable_vsnprintf
  576. EGREP
  577. GREP
  578. LIBSSP_USE_SYMVER_SUN_FALSE
  579. LIBSSP_USE_SYMVER_SUN_TRUE
  580. LIBSSP_USE_SYMVER_GNU_FALSE
  581. LIBSSP_USE_SYMVER_GNU_TRUE
  582. LIBSSP_USE_SYMVER_FALSE
  583. LIBSSP_USE_SYMVER_TRUE
  584. CPP
  585. am__fastdepCC_FALSE
  586. am__fastdepCC_TRUE
  587. CCDEPMODE
  588. AMDEPBACKSLASH
  589. AMDEP_FALSE
  590. AMDEP_TRUE
  591. am__quote
  592. am__include
  593. DEPDIR
  594. OBJEXT
  595. EXEEXT
  596. ac_ct_CC
  597. CPPFLAGS
  598. LDFLAGS
  599. CFLAGS
  600. CC
  601. multi_basedir
  602. MAINT
  603. MAINTAINER_MODE_FALSE
  604. MAINTAINER_MODE_TRUE
  605. am__untar
  606. am__tar
  607. AMTAR
  608. am__leading_dot
  609. SET_MAKE
  610. AWK
  611. mkdir_p
  612. MKDIR_P
  613. INSTALL_STRIP_PROGRAM
  614. STRIP
  615. install_sh
  616. MAKEINFO
  617. AUTOHEADER
  618. AUTOMAKE
  619. AUTOCONF
  620. ACLOCAL
  621. VERSION
  622. PACKAGE
  623. CYGPATH_W
  624. am__isrc
  625. INSTALL_DATA
  626. INSTALL_SCRIPT
  627. INSTALL_PROGRAM
  628. target_noncanonical
  629. target_os
  630. target_vendor
  631. target_cpu
  632. target
  633. host_os
  634. host_vendor
  635. host_cpu
  636. host
  637. build_os
  638. build_vendor
  639. build_cpu
  640. build
  641. target_alias
  642. host_alias
  643. build_alias
  644. LIBS
  645. ECHO_T
  646. ECHO_N
  647. ECHO_C
  648. DEFS
  649. mandir
  650. localedir
  651. libdir
  652. psdir
  653. pdfdir
  654. dvidir
  655. htmldir
  656. infodir
  657. docdir
  658. oldincludedir
  659. includedir
  660. localstatedir
  661. sharedstatedir
  662. sysconfdir
  663. datadir
  664. datarootdir
  665. libexecdir
  666. sbindir
  667. bindir
  668. program_transform_name
  669. prefix
  670. exec_prefix
  671. PACKAGE_URL
  672. PACKAGE_BUGREPORT
  673. PACKAGE_STRING
  674. PACKAGE_VERSION
  675. PACKAGE_TARNAME
  676. PACKAGE_NAME
  677. PATH_SEPARATOR
  678. SHELL'
  679. ac_subst_files=''
  680. ac_user_opts='
  681. enable_option_checking
  682. enable_version_specific_runtime_libs
  683. enable_maintainer_mode
  684. enable_multilib
  685. enable_dependency_tracking
  686. enable_symvers
  687. enable_shared
  688. enable_static
  689. with_pic
  690. enable_fast_install
  691. with_gnu_ld
  692. enable_libtool_lock
  693. '
  694. ac_precious_vars='build_alias
  695. host_alias
  696. target_alias
  697. CPP
  698. CPPFLAGS'
  699. # Initialize some variables set by options.
  700. ac_init_help=
  701. ac_init_version=false
  702. ac_unrecognized_opts=
  703. ac_unrecognized_sep=
  704. # The variables have the same names as the options, with
  705. # dashes changed to underlines.
  706. cache_file=/dev/null
  707. exec_prefix=NONE
  708. no_create=
  709. no_recursion=
  710. prefix=NONE
  711. program_prefix=NONE
  712. program_suffix=NONE
  713. program_transform_name=s,x,x,
  714. silent=
  715. site=
  716. srcdir=
  717. verbose=
  718. x_includes=NONE
  719. x_libraries=NONE
  720. # Installation directory options.
  721. # These are left unexpanded so users can "make install exec_prefix=/foo"
  722. # and all the variables that are supposed to be based on exec_prefix
  723. # by default will actually change.
  724. # Use braces instead of parens because sh, perl, etc. also accept them.
  725. # (The list follows the same order as the GNU Coding Standards.)
  726. bindir='${exec_prefix}/bin'
  727. sbindir='${exec_prefix}/sbin'
  728. libexecdir='${exec_prefix}/libexec'
  729. datarootdir='${prefix}/share'
  730. datadir='${datarootdir}'
  731. sysconfdir='${prefix}/etc'
  732. sharedstatedir='${prefix}/com'
  733. localstatedir='${prefix}/var'
  734. includedir='${prefix}/include'
  735. oldincludedir='/usr/include'
  736. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  737. infodir='${datarootdir}/info'
  738. htmldir='${docdir}'
  739. dvidir='${docdir}'
  740. pdfdir='${docdir}'
  741. psdir='${docdir}'
  742. libdir='${exec_prefix}/lib'
  743. localedir='${datarootdir}/locale'
  744. mandir='${datarootdir}/man'
  745. ac_prev=
  746. ac_dashdash=
  747. for ac_option
  748. do
  749. # If the previous option needs an argument, assign it.
  750. if test -n "$ac_prev"; then
  751. eval $ac_prev=\$ac_option
  752. ac_prev=
  753. continue
  754. fi
  755. case $ac_option in
  756. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  757. *) ac_optarg=yes ;;
  758. esac
  759. # Accept the important Cygnus configure options, so we can diagnose typos.
  760. case $ac_dashdash$ac_option in
  761. --)
  762. ac_dashdash=yes ;;
  763. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  764. ac_prev=bindir ;;
  765. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  766. bindir=$ac_optarg ;;
  767. -build | --build | --buil | --bui | --bu)
  768. ac_prev=build_alias ;;
  769. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  770. build_alias=$ac_optarg ;;
  771. -cache-file | --cache-file | --cache-fil | --cache-fi \
  772. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  773. ac_prev=cache_file ;;
  774. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  775. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  776. cache_file=$ac_optarg ;;
  777. --config-cache | -C)
  778. cache_file=config.cache ;;
  779. -datadir | --datadir | --datadi | --datad)
  780. ac_prev=datadir ;;
  781. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  782. datadir=$ac_optarg ;;
  783. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  784. | --dataroo | --dataro | --datar)
  785. ac_prev=datarootdir ;;
  786. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  787. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  788. datarootdir=$ac_optarg ;;
  789. -disable-* | --disable-*)
  790. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  791. # Reject names that are not valid shell variable names.
  792. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  793. as_fn_error "invalid feature name: $ac_useropt"
  794. ac_useropt_orig=$ac_useropt
  795. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  796. case $ac_user_opts in
  797. *"
  798. "enable_$ac_useropt"
  799. "*) ;;
  800. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  801. ac_unrecognized_sep=', ';;
  802. esac
  803. eval enable_$ac_useropt=no ;;
  804. -docdir | --docdir | --docdi | --doc | --do)
  805. ac_prev=docdir ;;
  806. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  807. docdir=$ac_optarg ;;
  808. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  809. ac_prev=dvidir ;;
  810. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  811. dvidir=$ac_optarg ;;
  812. -enable-* | --enable-*)
  813. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  814. # Reject names that are not valid shell variable names.
  815. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  816. as_fn_error "invalid feature name: $ac_useropt"
  817. ac_useropt_orig=$ac_useropt
  818. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  819. case $ac_user_opts in
  820. *"
  821. "enable_$ac_useropt"
  822. "*) ;;
  823. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  824. ac_unrecognized_sep=', ';;
  825. esac
  826. eval enable_$ac_useropt=\$ac_optarg ;;
  827. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  828. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  829. | --exec | --exe | --ex)
  830. ac_prev=exec_prefix ;;
  831. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  832. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  833. | --exec=* | --exe=* | --ex=*)
  834. exec_prefix=$ac_optarg ;;
  835. -gas | --gas | --ga | --g)
  836. # Obsolete; use --with-gas.
  837. with_gas=yes ;;
  838. -help | --help | --hel | --he | -h)
  839. ac_init_help=long ;;
  840. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  841. ac_init_help=recursive ;;
  842. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  843. ac_init_help=short ;;
  844. -host | --host | --hos | --ho)
  845. ac_prev=host_alias ;;
  846. -host=* | --host=* | --hos=* | --ho=*)
  847. host_alias=$ac_optarg ;;
  848. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  849. ac_prev=htmldir ;;
  850. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  851. | --ht=*)
  852. htmldir=$ac_optarg ;;
  853. -includedir | --includedir | --includedi | --included | --include \
  854. | --includ | --inclu | --incl | --inc)
  855. ac_prev=includedir ;;
  856. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  857. | --includ=* | --inclu=* | --incl=* | --inc=*)
  858. includedir=$ac_optarg ;;
  859. -infodir | --infodir | --infodi | --infod | --info | --inf)
  860. ac_prev=infodir ;;
  861. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  862. infodir=$ac_optarg ;;
  863. -libdir | --libdir | --libdi | --libd)
  864. ac_prev=libdir ;;
  865. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  866. libdir=$ac_optarg ;;
  867. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  868. | --libexe | --libex | --libe)
  869. ac_prev=libexecdir ;;
  870. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  871. | --libexe=* | --libex=* | --libe=*)
  872. libexecdir=$ac_optarg ;;
  873. -localedir | --localedir | --localedi | --localed | --locale)
  874. ac_prev=localedir ;;
  875. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  876. localedir=$ac_optarg ;;
  877. -localstatedir | --localstatedir | --localstatedi | --localstated \
  878. | --localstate | --localstat | --localsta | --localst | --locals)
  879. ac_prev=localstatedir ;;
  880. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  881. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  882. localstatedir=$ac_optarg ;;
  883. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  884. ac_prev=mandir ;;
  885. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  886. mandir=$ac_optarg ;;
  887. -nfp | --nfp | --nf)
  888. # Obsolete; use --without-fp.
  889. with_fp=no ;;
  890. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  891. | --no-cr | --no-c | -n)
  892. no_create=yes ;;
  893. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  894. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  895. no_recursion=yes ;;
  896. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  897. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  898. | --oldin | --oldi | --old | --ol | --o)
  899. ac_prev=oldincludedir ;;
  900. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  901. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  902. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  903. oldincludedir=$ac_optarg ;;
  904. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  905. ac_prev=prefix ;;
  906. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  907. prefix=$ac_optarg ;;
  908. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  909. | --program-pre | --program-pr | --program-p)
  910. ac_prev=program_prefix ;;
  911. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  912. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  913. program_prefix=$ac_optarg ;;
  914. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  915. | --program-suf | --program-su | --program-s)
  916. ac_prev=program_suffix ;;
  917. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  918. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  919. program_suffix=$ac_optarg ;;
  920. -program-transform-name | --program-transform-name \
  921. | --program-transform-nam | --program-transform-na \
  922. | --program-transform-n | --program-transform- \
  923. | --program-transform | --program-transfor \
  924. | --program-transfo | --program-transf \
  925. | --program-trans | --program-tran \
  926. | --progr-tra | --program-tr | --program-t)
  927. ac_prev=program_transform_name ;;
  928. -program-transform-name=* | --program-transform-name=* \
  929. | --program-transform-nam=* | --program-transform-na=* \
  930. | --program-transform-n=* | --program-transform-=* \
  931. | --program-transform=* | --program-transfor=* \
  932. | --program-transfo=* | --program-transf=* \
  933. | --program-trans=* | --program-tran=* \
  934. | --progr-tra=* | --program-tr=* | --program-t=*)
  935. program_transform_name=$ac_optarg ;;
  936. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  937. ac_prev=pdfdir ;;
  938. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  939. pdfdir=$ac_optarg ;;
  940. -psdir | --psdir | --psdi | --psd | --ps)
  941. ac_prev=psdir ;;
  942. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  943. psdir=$ac_optarg ;;
  944. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  945. | -silent | --silent | --silen | --sile | --sil)
  946. silent=yes ;;
  947. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  948. ac_prev=sbindir ;;
  949. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  950. | --sbi=* | --sb=*)
  951. sbindir=$ac_optarg ;;
  952. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  953. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  954. | --sharedst | --shareds | --shared | --share | --shar \
  955. | --sha | --sh)
  956. ac_prev=sharedstatedir ;;
  957. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  958. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  959. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  960. | --sha=* | --sh=*)
  961. sharedstatedir=$ac_optarg ;;
  962. -site | --site | --sit)
  963. ac_prev=site ;;
  964. -site=* | --site=* | --sit=*)
  965. site=$ac_optarg ;;
  966. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  967. ac_prev=srcdir ;;
  968. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  969. srcdir=$ac_optarg ;;
  970. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  971. | --syscon | --sysco | --sysc | --sys | --sy)
  972. ac_prev=sysconfdir ;;
  973. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  974. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  975. sysconfdir=$ac_optarg ;;
  976. -target | --target | --targe | --targ | --tar | --ta | --t)
  977. ac_prev=target_alias ;;
  978. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  979. target_alias=$ac_optarg ;;
  980. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  981. verbose=yes ;;
  982. -version | --version | --versio | --versi | --vers | -V)
  983. ac_init_version=: ;;
  984. -with-* | --with-*)
  985. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  986. # Reject names that are not valid shell variable names.
  987. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  988. as_fn_error "invalid package name: $ac_useropt"
  989. ac_useropt_orig=$ac_useropt
  990. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  991. case $ac_user_opts in
  992. *"
  993. "with_$ac_useropt"
  994. "*) ;;
  995. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  996. ac_unrecognized_sep=', ';;
  997. esac
  998. eval with_$ac_useropt=\$ac_optarg ;;
  999. -without-* | --without-*)
  1000. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1001. # Reject names that are not valid shell variable names.
  1002. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1003. as_fn_error "invalid package name: $ac_useropt"
  1004. ac_useropt_orig=$ac_useropt
  1005. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1006. case $ac_user_opts in
  1007. *"
  1008. "with_$ac_useropt"
  1009. "*) ;;
  1010. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1011. ac_unrecognized_sep=', ';;
  1012. esac
  1013. eval with_$ac_useropt=no ;;
  1014. --x)
  1015. # Obsolete; use --with-x.
  1016. with_x=yes ;;
  1017. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1018. | --x-incl | --x-inc | --x-in | --x-i)
  1019. ac_prev=x_includes ;;
  1020. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1021. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1022. x_includes=$ac_optarg ;;
  1023. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1024. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1025. ac_prev=x_libraries ;;
  1026. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1027. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1028. x_libraries=$ac_optarg ;;
  1029. -*) as_fn_error "unrecognized option: \`$ac_option'
  1030. Try \`$0 --help' for more information."
  1031. ;;
  1032. *=*)
  1033. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1034. # Reject names that are not valid shell variable names.
  1035. case $ac_envvar in #(
  1036. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1037. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1038. esac
  1039. eval $ac_envvar=\$ac_optarg
  1040. export $ac_envvar ;;
  1041. *)
  1042. # FIXME: should be removed in autoconf 3.0.
  1043. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1044. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1045. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1046. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1047. ;;
  1048. esac
  1049. done
  1050. if test -n "$ac_prev"; then
  1051. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1052. as_fn_error "missing argument to $ac_option"
  1053. fi
  1054. if test -n "$ac_unrecognized_opts"; then
  1055. case $enable_option_checking in
  1056. no) ;;
  1057. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1058. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1059. esac
  1060. fi
  1061. # Check all directory arguments for consistency.
  1062. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1063. datadir sysconfdir sharedstatedir localstatedir includedir \
  1064. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1065. libdir localedir mandir
  1066. do
  1067. eval ac_val=\$$ac_var
  1068. # Remove trailing slashes.
  1069. case $ac_val in
  1070. */ )
  1071. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1072. eval $ac_var=\$ac_val;;
  1073. esac
  1074. # Be sure to have absolute directory names.
  1075. case $ac_val in
  1076. [\\/$]* | ?:[\\/]* ) continue;;
  1077. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1078. esac
  1079. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1080. done
  1081. # There might be people who depend on the old broken behavior: `$host'
  1082. # used to hold the argument of --host etc.
  1083. # FIXME: To remove some day.
  1084. build=$build_alias
  1085. host=$host_alias
  1086. target=$target_alias
  1087. # FIXME: To remove some day.
  1088. if test "x$host_alias" != x; then
  1089. if test "x$build_alias" = x; then
  1090. cross_compiling=maybe
  1091. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1092. If a cross compiler is detected then cross compile mode will be used." >&2
  1093. elif test "x$build_alias" != "x$host_alias"; then
  1094. cross_compiling=yes
  1095. fi
  1096. fi
  1097. ac_tool_prefix=
  1098. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1099. test "$silent" = yes && exec 6>/dev/null
  1100. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1101. ac_ls_di=`ls -di .` &&
  1102. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1103. as_fn_error "working directory cannot be determined"
  1104. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1105. as_fn_error "pwd does not report name of working directory"
  1106. # Find the source files, if location was not specified.
  1107. if test -z "$srcdir"; then
  1108. ac_srcdir_defaulted=yes
  1109. # Try the directory containing this script, then the parent directory.
  1110. ac_confdir=`$as_dirname -- "$as_myself" ||
  1111. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1112. X"$as_myself" : 'X\(//\)[^/]' \| \
  1113. X"$as_myself" : 'X\(//\)$' \| \
  1114. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1115. $as_echo X"$as_myself" |
  1116. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1117. s//\1/
  1118. q
  1119. }
  1120. /^X\(\/\/\)[^/].*/{
  1121. s//\1/
  1122. q
  1123. }
  1124. /^X\(\/\/\)$/{
  1125. s//\1/
  1126. q
  1127. }
  1128. /^X\(\/\).*/{
  1129. s//\1/
  1130. q
  1131. }
  1132. s/.*/./; q'`
  1133. srcdir=$ac_confdir
  1134. if test ! -r "$srcdir/$ac_unique_file"; then
  1135. srcdir=..
  1136. fi
  1137. else
  1138. ac_srcdir_defaulted=no
  1139. fi
  1140. if test ! -r "$srcdir/$ac_unique_file"; then
  1141. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1142. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1143. fi
  1144. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1145. ac_abs_confdir=`(
  1146. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1147. pwd)`
  1148. # When building in place, set srcdir=.
  1149. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1150. srcdir=.
  1151. fi
  1152. # Remove unnecessary trailing slashes from srcdir.
  1153. # Double slashes in file names in object file debugging info
  1154. # mess up M-x gdb in Emacs.
  1155. case $srcdir in
  1156. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1157. esac
  1158. for ac_var in $ac_precious_vars; do
  1159. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1160. eval ac_env_${ac_var}_value=\$${ac_var}
  1161. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1162. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1163. done
  1164. #
  1165. # Report the --help message.
  1166. #
  1167. if test "$ac_init_help" = "long"; then
  1168. # Omit some internal or obsolete options to make the list less imposing.
  1169. # This message is too long to be a string in the A/UX 3.1 sh.
  1170. cat <<_ACEOF
  1171. \`configure' configures libssp 1.0 to adapt to many kinds of systems.
  1172. Usage: $0 [OPTION]... [VAR=VALUE]...
  1173. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1174. VAR=VALUE. See below for descriptions of some of the useful variables.
  1175. Defaults for the options are specified in brackets.
  1176. Configuration:
  1177. -h, --help display this help and exit
  1178. --help=short display options specific to this package
  1179. --help=recursive display the short help of all the included packages
  1180. -V, --version display version information and exit
  1181. -q, --quiet, --silent do not print \`checking...' messages
  1182. --cache-file=FILE cache test results in FILE [disabled]
  1183. -C, --config-cache alias for \`--cache-file=config.cache'
  1184. -n, --no-create do not create output files
  1185. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1186. Installation directories:
  1187. --prefix=PREFIX install architecture-independent files in PREFIX
  1188. [$ac_default_prefix]
  1189. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1190. [PREFIX]
  1191. By default, \`make install' will install all the files in
  1192. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1193. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1194. for instance \`--prefix=\$HOME'.
  1195. For better control, use the options below.
  1196. Fine tuning of the installation directories:
  1197. --bindir=DIR user executables [EPREFIX/bin]
  1198. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1199. --libexecdir=DIR program executables [EPREFIX/libexec]
  1200. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1201. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1202. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1203. --libdir=DIR object code libraries [EPREFIX/lib]
  1204. --includedir=DIR C header files [PREFIX/include]
  1205. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1206. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1207. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1208. --infodir=DIR info documentation [DATAROOTDIR/info]
  1209. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1210. --mandir=DIR man documentation [DATAROOTDIR/man]
  1211. --docdir=DIR documentation root [DATAROOTDIR/doc/libssp]
  1212. --htmldir=DIR html documentation [DOCDIR]
  1213. --dvidir=DIR dvi documentation [DOCDIR]
  1214. --pdfdir=DIR pdf documentation [DOCDIR]
  1215. --psdir=DIR ps documentation [DOCDIR]
  1216. _ACEOF
  1217. cat <<\_ACEOF
  1218. Program names:
  1219. --program-prefix=PREFIX prepend PREFIX to installed program names
  1220. --program-suffix=SUFFIX append SUFFIX to installed program names
  1221. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1222. System types:
  1223. --build=BUILD configure for building on BUILD [guessed]
  1224. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1225. --target=TARGET configure for building compilers for TARGET [HOST]
  1226. _ACEOF
  1227. fi
  1228. if test -n "$ac_init_help"; then
  1229. case $ac_init_help in
  1230. short | recursive ) echo "Configuration of libssp 1.0:";;
  1231. esac
  1232. cat <<\_ACEOF
  1233. Optional Features:
  1234. --disable-option-checking ignore unrecognized --enable/--with options
  1235. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1236. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1237. --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
  1238. --enable-maintainer-mode enable make rules and dependencies not useful
  1239. (and sometimes confusing) to the casual installer
  1240. --enable-multilib build many library versions (default)
  1241. --disable-dependency-tracking speeds up one-time build
  1242. --enable-dependency-tracking do not reject slow dependency extractors
  1243. --disable-symvers disable symbol versioning for libssp
  1244. --enable-shared[=PKGS] build shared libraries [default=yes]
  1245. --enable-static[=PKGS] build static libraries [default=yes]
  1246. --enable-fast-install[=PKGS]
  1247. optimize for fast installation [default=yes]
  1248. --disable-libtool-lock avoid locking (might break parallel builds)
  1249. Optional Packages:
  1250. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1251. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1252. --with-pic try to use only PIC/non-PIC objects [default=use
  1253. both]
  1254. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1255. Some influential environment variables:
  1256. CC C compiler command
  1257. CFLAGS C compiler flags
  1258. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1259. nonstandard directory <lib dir>
  1260. LIBS libraries to pass to the linker, e.g. -l<library>
  1261. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1262. you have headers in a nonstandard directory <include dir>
  1263. CPP C preprocessor
  1264. Use these variables to override the choices made by `configure' or to help
  1265. it to find libraries and programs with nonstandard names/locations.
  1266. Report bugs to the package provider.
  1267. _ACEOF
  1268. ac_status=$?
  1269. fi
  1270. if test "$ac_init_help" = "recursive"; then
  1271. # If there are subdirs, report their specific --help.
  1272. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1273. test -d "$ac_dir" ||
  1274. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1275. continue
  1276. ac_builddir=.
  1277. case "$ac_dir" in
  1278. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1279. *)
  1280. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1281. # A ".." for each directory in $ac_dir_suffix.
  1282. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1283. case $ac_top_builddir_sub in
  1284. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1285. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1286. esac ;;
  1287. esac
  1288. ac_abs_top_builddir=$ac_pwd
  1289. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1290. # for backward compatibility:
  1291. ac_top_builddir=$ac_top_build_prefix
  1292. case $srcdir in
  1293. .) # We are building in place.
  1294. ac_srcdir=.
  1295. ac_top_srcdir=$ac_top_builddir_sub
  1296. ac_abs_top_srcdir=$ac_pwd ;;
  1297. [\\/]* | ?:[\\/]* ) # Absolute name.
  1298. ac_srcdir=$srcdir$ac_dir_suffix;
  1299. ac_top_srcdir=$srcdir
  1300. ac_abs_top_srcdir=$srcdir ;;
  1301. *) # Relative name.
  1302. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1303. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1304. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1305. esac
  1306. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1307. cd "$ac_dir" || { ac_status=$?; continue; }
  1308. # Check for guested configure.
  1309. if test -f "$ac_srcdir/configure.gnu"; then
  1310. echo &&
  1311. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1312. elif test -f "$ac_srcdir/configure"; then
  1313. echo &&
  1314. $SHELL "$ac_srcdir/configure" --help=recursive
  1315. else
  1316. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1317. fi || ac_status=$?
  1318. cd "$ac_pwd" || { ac_status=$?; break; }
  1319. done
  1320. fi
  1321. test -n "$ac_init_help" && exit $ac_status
  1322. if $ac_init_version; then
  1323. cat <<\_ACEOF
  1324. libssp configure 1.0
  1325. generated by GNU Autoconf 2.64
  1326. Copyright (C) 2009 Free Software Foundation, Inc.
  1327. This configure script is free software; the Free Software Foundation
  1328. gives unlimited permission to copy, distribute and modify it.
  1329. _ACEOF
  1330. exit
  1331. fi
  1332. ## ------------------------ ##
  1333. ## Autoconf initialization. ##
  1334. ## ------------------------ ##
  1335. # ac_fn_c_try_compile LINENO
  1336. # --------------------------
  1337. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1338. ac_fn_c_try_compile ()
  1339. {
  1340. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1341. rm -f conftest.$ac_objext
  1342. if { { ac_try="$ac_compile"
  1343. case "(($ac_try" in
  1344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1345. *) ac_try_echo=$ac_try;;
  1346. esac
  1347. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1348. $as_echo "$ac_try_echo"; } >&5
  1349. (eval "$ac_compile") 2>conftest.err
  1350. ac_status=$?
  1351. if test -s conftest.err; then
  1352. grep -v '^ *+' conftest.err >conftest.er1
  1353. cat conftest.er1 >&5
  1354. mv -f conftest.er1 conftest.err
  1355. fi
  1356. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1357. test $ac_status = 0; } && {
  1358. test -z "$ac_c_werror_flag" ||
  1359. test ! -s conftest.err
  1360. } && test -s conftest.$ac_objext; then :
  1361. ac_retval=0
  1362. else
  1363. $as_echo "$as_me: failed program was:" >&5
  1364. sed 's/^/| /' conftest.$ac_ext >&5
  1365. ac_retval=1
  1366. fi
  1367. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1368. return $ac_retval
  1369. } # ac_fn_c_try_compile
  1370. # ac_fn_c_try_cpp LINENO
  1371. # ----------------------
  1372. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1373. ac_fn_c_try_cpp ()
  1374. {
  1375. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1376. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1377. case "(($ac_try" in
  1378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1379. *) ac_try_echo=$ac_try;;
  1380. esac
  1381. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1382. $as_echo "$ac_try_echo"; } >&5
  1383. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1384. ac_status=$?
  1385. if test -s conftest.err; then
  1386. grep -v '^ *+' conftest.err >conftest.er1
  1387. cat conftest.er1 >&5
  1388. mv -f conftest.er1 conftest.err
  1389. fi
  1390. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1391. test $ac_status = 0; } >/dev/null && {
  1392. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1393. test ! -s conftest.err
  1394. }; then :
  1395. ac_retval=0
  1396. else
  1397. $as_echo "$as_me: failed program was:" >&5
  1398. sed 's/^/| /' conftest.$ac_ext >&5
  1399. ac_retval=1
  1400. fi
  1401. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1402. return $ac_retval
  1403. } # ac_fn_c_try_cpp
  1404. # ac_fn_c_try_link LINENO
  1405. # -----------------------
  1406. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1407. ac_fn_c_try_link ()
  1408. {
  1409. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1410. rm -f conftest.$ac_objext conftest$ac_exeext
  1411. if { { ac_try="$ac_link"
  1412. case "(($ac_try" in
  1413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1414. *) ac_try_echo=$ac_try;;
  1415. esac
  1416. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1417. $as_echo "$ac_try_echo"; } >&5
  1418. (eval "$ac_link") 2>conftest.err
  1419. ac_status=$?
  1420. if test -s conftest.err; then
  1421. grep -v '^ *+' conftest.err >conftest.er1
  1422. cat conftest.er1 >&5
  1423. mv -f conftest.er1 conftest.err
  1424. fi
  1425. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1426. test $ac_status = 0; } && {
  1427. test -z "$ac_c_werror_flag" ||
  1428. test ! -s conftest.err
  1429. } && test -s conftest$ac_exeext && {
  1430. test "$cross_compiling" = yes ||
  1431. $as_test_x conftest$ac_exeext
  1432. }; then :
  1433. ac_retval=0
  1434. else
  1435. $as_echo "$as_me: failed program was:" >&5
  1436. sed 's/^/| /' conftest.$ac_ext >&5
  1437. ac_retval=1
  1438. fi
  1439. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1440. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1441. # interfere with the next link command; also delete a directory that is
  1442. # left behind by Apple's compiler. We do this before executing the actions.
  1443. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1444. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1445. return $ac_retval
  1446. } # ac_fn_c_try_link
  1447. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1448. # -------------------------------------------------------
  1449. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1450. # the include files in INCLUDES and setting the cache variable VAR
  1451. # accordingly.
  1452. ac_fn_c_check_header_mongrel ()
  1453. {
  1454. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1455. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1457. $as_echo_n "checking for $2... " >&6; }
  1458. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1459. $as_echo_n "(cached) " >&6
  1460. fi
  1461. eval ac_res=\$$3
  1462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1463. $as_echo "$ac_res" >&6; }
  1464. else
  1465. # Is the header compilable?
  1466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1467. $as_echo_n "checking $2 usability... " >&6; }
  1468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1469. /* end confdefs.h. */
  1470. $4
  1471. #include <$2>
  1472. _ACEOF
  1473. if ac_fn_c_try_compile "$LINENO"; then :
  1474. ac_header_compiler=yes
  1475. else
  1476. ac_header_compiler=no
  1477. fi
  1478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1480. $as_echo "$ac_header_compiler" >&6; }
  1481. # Is the header present?
  1482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1483. $as_echo_n "checking $2 presence... " >&6; }
  1484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1485. /* end confdefs.h. */
  1486. #include <$2>
  1487. _ACEOF
  1488. if ac_fn_c_try_cpp "$LINENO"; then :
  1489. ac_header_preproc=yes
  1490. else
  1491. ac_header_preproc=no
  1492. fi
  1493. rm -f conftest.err conftest.$ac_ext
  1494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1495. $as_echo "$ac_header_preproc" >&6; }
  1496. # So? What about this header?
  1497. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1498. yes:no: )
  1499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1500. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1501. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1502. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1503. ;;
  1504. no:yes:* )
  1505. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1506. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1507. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1508. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1509. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1510. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1511. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1512. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1514. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1515. ;;
  1516. esac
  1517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1518. $as_echo_n "checking for $2... " >&6; }
  1519. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1520. $as_echo_n "(cached) " >&6
  1521. else
  1522. eval "$3=\$ac_header_compiler"
  1523. fi
  1524. eval ac_res=\$$3
  1525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1526. $as_echo "$ac_res" >&6; }
  1527. fi
  1528. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1529. } # ac_fn_c_check_header_mongrel
  1530. # ac_fn_c_try_run LINENO
  1531. # ----------------------
  1532. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1533. # that executables *can* be run.
  1534. ac_fn_c_try_run ()
  1535. {
  1536. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1537. if { { ac_try="$ac_link"
  1538. case "(($ac_try" in
  1539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1540. *) ac_try_echo=$ac_try;;
  1541. esac
  1542. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1543. $as_echo "$ac_try_echo"; } >&5
  1544. (eval "$ac_link") 2>&5
  1545. ac_status=$?
  1546. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1547. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1548. { { case "(($ac_try" in
  1549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1550. *) ac_try_echo=$ac_try;;
  1551. esac
  1552. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1553. $as_echo "$ac_try_echo"; } >&5
  1554. (eval "$ac_try") 2>&5
  1555. ac_status=$?
  1556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1557. test $ac_status = 0; }; }; then :
  1558. ac_retval=0
  1559. else
  1560. $as_echo "$as_me: program exited with status $ac_status" >&5
  1561. $as_echo "$as_me: failed program was:" >&5
  1562. sed 's/^/| /' conftest.$ac_ext >&5
  1563. ac_retval=$ac_status
  1564. fi
  1565. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1566. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1567. return $ac_retval
  1568. } # ac_fn_c_try_run
  1569. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1570. # -------------------------------------------------------
  1571. # Tests whether HEADER exists and can be compiled using the include files in
  1572. # INCLUDES, setting the cache variable VAR accordingly.
  1573. ac_fn_c_check_header_compile ()
  1574. {
  1575. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1577. $as_echo_n "checking for $2... " >&6; }
  1578. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1579. $as_echo_n "(cached) " >&6
  1580. else
  1581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1582. /* end confdefs.h. */
  1583. $4
  1584. #include <$2>
  1585. _ACEOF
  1586. if ac_fn_c_try_compile "$LINENO"; then :
  1587. eval "$3=yes"
  1588. else
  1589. eval "$3=no"
  1590. fi
  1591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1592. fi
  1593. eval ac_res=\$$3
  1594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1595. $as_echo "$ac_res" >&6; }
  1596. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1597. } # ac_fn_c_check_header_compile
  1598. # ac_fn_c_check_func LINENO FUNC VAR
  1599. # ----------------------------------
  1600. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1601. ac_fn_c_check_func ()
  1602. {
  1603. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1605. $as_echo_n "checking for $2... " >&6; }
  1606. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1607. $as_echo_n "(cached) " >&6
  1608. else
  1609. if test x$gcc_no_link = xyes; then
  1610. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  1611. fi
  1612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1613. /* end confdefs.h. */
  1614. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1615. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1616. #define $2 innocuous_$2
  1617. /* System header to define __stub macros and hopefully few prototypes,
  1618. which can conflict with char $2 (); below.
  1619. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1620. <limits.h> exists even on freestanding compilers. */
  1621. #ifdef __STDC__
  1622. # include <limits.h>
  1623. #else
  1624. # include <assert.h>
  1625. #endif
  1626. #undef $2
  1627. /* Override any GCC internal prototype to avoid an error.
  1628. Use char because int might match the return type of a GCC
  1629. builtin and then its argument prototype would still apply. */
  1630. #ifdef __cplusplus
  1631. extern "C"
  1632. #endif
  1633. char $2 ();
  1634. /* The GNU C library defines this for functions which it implements
  1635. to always fail with ENOSYS. Some functions are actually named
  1636. something starting with __ and the normal name is an alias. */
  1637. #if defined __stub_$2 || defined __stub___$2
  1638. choke me
  1639. #endif
  1640. int
  1641. main ()
  1642. {
  1643. return $2 ();
  1644. ;
  1645. return 0;
  1646. }
  1647. _ACEOF
  1648. if ac_fn_c_try_link "$LINENO"; then :
  1649. eval "$3=yes"
  1650. else
  1651. eval "$3=no"
  1652. fi
  1653. rm -f core conftest.err conftest.$ac_objext \
  1654. conftest$ac_exeext conftest.$ac_ext
  1655. fi
  1656. eval ac_res=\$$3
  1657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1658. $as_echo "$ac_res" >&6; }
  1659. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1660. } # ac_fn_c_check_func
  1661. cat >config.log <<_ACEOF
  1662. This file contains any messages produced by compilers while
  1663. running configure, to aid debugging if configure makes a mistake.
  1664. It was created by libssp $as_me 1.0, which was
  1665. generated by GNU Autoconf 2.64. Invocation command line was
  1666. $ $0 $@
  1667. _ACEOF
  1668. exec 5>>config.log
  1669. {
  1670. cat <<_ASUNAME
  1671. ## --------- ##
  1672. ## Platform. ##
  1673. ## --------- ##
  1674. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1675. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1676. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1677. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1678. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1679. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1680. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1681. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1682. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1683. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1684. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1685. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1686. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1687. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1688. _ASUNAME
  1689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1690. for as_dir in $PATH
  1691. do
  1692. IFS=$as_save_IFS
  1693. test -z "$as_dir" && as_dir=.
  1694. $as_echo "PATH: $as_dir"
  1695. done
  1696. IFS=$as_save_IFS
  1697. } >&5
  1698. cat >&5 <<_ACEOF
  1699. ## ----------- ##
  1700. ## Core tests. ##
  1701. ## ----------- ##
  1702. _ACEOF
  1703. # Keep a trace of the command line.
  1704. # Strip out --no-create and --no-recursion so they do not pile up.
  1705. # Strip out --silent because we don't want to record it for future runs.
  1706. # Also quote any args containing shell meta-characters.
  1707. # Make two passes to allow for proper duplicate-argument suppression.
  1708. ac_configure_args=
  1709. ac_configure_args0=
  1710. ac_configure_args1=
  1711. ac_must_keep_next=false
  1712. for ac_pass in 1 2
  1713. do
  1714. for ac_arg
  1715. do
  1716. case $ac_arg in
  1717. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1718. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1719. | -silent | --silent | --silen | --sile | --sil)
  1720. continue ;;
  1721. *\'*)
  1722. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1723. esac
  1724. case $ac_pass in
  1725. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1726. 2)
  1727. as_fn_append ac_configure_args1 " '$ac_arg'"
  1728. if test $ac_must_keep_next = true; then
  1729. ac_must_keep_next=false # Got value, back to normal.
  1730. else
  1731. case $ac_arg in
  1732. *=* | --config-cache | -C | -disable-* | --disable-* \
  1733. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1734. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1735. | -with-* | --with-* | -without-* | --without-* | --x)
  1736. case "$ac_configure_args0 " in
  1737. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1738. esac
  1739. ;;
  1740. -* ) ac_must_keep_next=true ;;
  1741. esac
  1742. fi
  1743. as_fn_append ac_configure_args " '$ac_arg'"
  1744. ;;
  1745. esac
  1746. done
  1747. done
  1748. { ac_configure_args0=; unset ac_configure_args0;}
  1749. { ac_configure_args1=; unset ac_configure_args1;}
  1750. # When interrupted or exit'd, cleanup temporary files, and complete
  1751. # config.log. We remove comments because anyway the quotes in there
  1752. # would cause problems or look ugly.
  1753. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1754. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1755. trap 'exit_status=$?
  1756. # Save into config.log some information that might help in debugging.
  1757. {
  1758. echo
  1759. cat <<\_ASBOX
  1760. ## ---------------- ##
  1761. ## Cache variables. ##
  1762. ## ---------------- ##
  1763. _ASBOX
  1764. echo
  1765. # The following way of writing the cache mishandles newlines in values,
  1766. (
  1767. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1768. eval ac_val=\$$ac_var
  1769. case $ac_val in #(
  1770. *${as_nl}*)
  1771. case $ac_var in #(
  1772. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1773. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1774. esac
  1775. case $ac_var in #(
  1776. _ | IFS | as_nl) ;; #(
  1777. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1778. *) { eval $ac_var=; unset $ac_var;} ;;
  1779. esac ;;
  1780. esac
  1781. done
  1782. (set) 2>&1 |
  1783. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1784. *${as_nl}ac_space=\ *)
  1785. sed -n \
  1786. "s/'\''/'\''\\\\'\'''\''/g;
  1787. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1788. ;; #(
  1789. *)
  1790. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1791. ;;
  1792. esac |
  1793. sort
  1794. )
  1795. echo
  1796. cat <<\_ASBOX
  1797. ## ----------------- ##
  1798. ## Output variables. ##
  1799. ## ----------------- ##
  1800. _ASBOX
  1801. echo
  1802. for ac_var in $ac_subst_vars
  1803. do
  1804. eval ac_val=\$$ac_var
  1805. case $ac_val in
  1806. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1807. esac
  1808. $as_echo "$ac_var='\''$ac_val'\''"
  1809. done | sort
  1810. echo
  1811. if test -n "$ac_subst_files"; then
  1812. cat <<\_ASBOX
  1813. ## ------------------- ##
  1814. ## File substitutions. ##
  1815. ## ------------------- ##
  1816. _ASBOX
  1817. echo
  1818. for ac_var in $ac_subst_files
  1819. do
  1820. eval ac_val=\$$ac_var
  1821. case $ac_val in
  1822. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1823. esac
  1824. $as_echo "$ac_var='\''$ac_val'\''"
  1825. done | sort
  1826. echo
  1827. fi
  1828. if test -s confdefs.h; then
  1829. cat <<\_ASBOX
  1830. ## ----------- ##
  1831. ## confdefs.h. ##
  1832. ## ----------- ##
  1833. _ASBOX
  1834. echo
  1835. cat confdefs.h
  1836. echo
  1837. fi
  1838. test "$ac_signal" != 0 &&
  1839. $as_echo "$as_me: caught signal $ac_signal"
  1840. $as_echo "$as_me: exit $exit_status"
  1841. } >&5
  1842. rm -f core *.core core.conftest.* &&
  1843. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1844. exit $exit_status
  1845. ' 0
  1846. for ac_signal in 1 2 13 15; do
  1847. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1848. done
  1849. ac_signal=0
  1850. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1851. rm -f -r conftest* confdefs.h
  1852. $as_echo "/* confdefs.h */" > confdefs.h
  1853. # Predefined preprocessor variables.
  1854. cat >>confdefs.h <<_ACEOF
  1855. #define PACKAGE_NAME "$PACKAGE_NAME"
  1856. _ACEOF
  1857. cat >>confdefs.h <<_ACEOF
  1858. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1859. _ACEOF
  1860. cat >>confdefs.h <<_ACEOF
  1861. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1862. _ACEOF
  1863. cat >>confdefs.h <<_ACEOF
  1864. #define PACKAGE_STRING "$PACKAGE_STRING"
  1865. _ACEOF
  1866. cat >>confdefs.h <<_ACEOF
  1867. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1868. _ACEOF
  1869. cat >>confdefs.h <<_ACEOF
  1870. #define PACKAGE_URL "$PACKAGE_URL"
  1871. _ACEOF
  1872. # Let the site file select an alternate cache file if it wants to.
  1873. # Prefer an explicitly selected file to automatically selected ones.
  1874. ac_site_file1=NONE
  1875. ac_site_file2=NONE
  1876. if test -n "$CONFIG_SITE"; then
  1877. ac_site_file1=$CONFIG_SITE
  1878. elif test "x$prefix" != xNONE; then
  1879. ac_site_file1=$prefix/share/config.site
  1880. ac_site_file2=$prefix/etc/config.site
  1881. else
  1882. ac_site_file1=$ac_default_prefix/share/config.site
  1883. ac_site_file2=$ac_default_prefix/etc/config.site
  1884. fi
  1885. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1886. do
  1887. test "x$ac_site_file" = xNONE && continue
  1888. if test -r "$ac_site_file"; then
  1889. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1890. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1891. sed 's/^/| /' "$ac_site_file" >&5
  1892. . "$ac_site_file"
  1893. fi
  1894. done
  1895. if test -r "$cache_file"; then
  1896. # Some versions of bash will fail to source /dev/null (special
  1897. # files actually), so we avoid doing that.
  1898. if test -f "$cache_file"; then
  1899. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1900. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1901. case $cache_file in
  1902. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1903. *) . "./$cache_file";;
  1904. esac
  1905. fi
  1906. else
  1907. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1908. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1909. >$cache_file
  1910. fi
  1911. # Check that the precious variables saved in the cache have kept the same
  1912. # value.
  1913. ac_cache_corrupted=false
  1914. for ac_var in $ac_precious_vars; do
  1915. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1916. eval ac_new_set=\$ac_env_${ac_var}_set
  1917. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1918. eval ac_new_val=\$ac_env_${ac_var}_value
  1919. case $ac_old_set,$ac_new_set in
  1920. set,)
  1921. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1922. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1923. ac_cache_corrupted=: ;;
  1924. ,set)
  1925. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1926. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1927. ac_cache_corrupted=: ;;
  1928. ,);;
  1929. *)
  1930. if test "x$ac_old_val" != "x$ac_new_val"; then
  1931. # differences in whitespace do not lead to failure.
  1932. ac_old_val_w=`echo x $ac_old_val`
  1933. ac_new_val_w=`echo x $ac_new_val`
  1934. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1936. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1937. ac_cache_corrupted=:
  1938. else
  1939. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1940. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1941. eval $ac_var=\$ac_old_val
  1942. fi
  1943. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1944. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1946. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1947. fi;;
  1948. esac
  1949. # Pass precious variables to config.status.
  1950. if test "$ac_new_set" = set; then
  1951. case $ac_new_val in
  1952. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1953. *) ac_arg=$ac_var=$ac_new_val ;;
  1954. esac
  1955. case " $ac_configure_args " in
  1956. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1957. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1958. esac
  1959. fi
  1960. done
  1961. if $ac_cache_corrupted; then
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1963. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1965. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1966. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1967. fi
  1968. ## -------------------- ##
  1969. ## Main body of script. ##
  1970. ## -------------------- ##
  1971. ac_ext=c
  1972. ac_cpp='$CPP $CPPFLAGS'
  1973. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1974. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1975. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1976. ac_aux_dir=
  1977. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1978. for ac_t in install-sh install.sh shtool; do
  1979. if test -f "$ac_dir/$ac_t"; then
  1980. ac_aux_dir=$ac_dir
  1981. ac_install_sh="$ac_aux_dir/$ac_t -c"
  1982. break 2
  1983. fi
  1984. done
  1985. done
  1986. if test -z "$ac_aux_dir"; then
  1987. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  1988. fi
  1989. # These three variables are undocumented and unsupported,
  1990. # and are intended to be withdrawn in a future Autoconf release.
  1991. # They can cause serious problems if a builder's source tree is in a directory
  1992. # whose full name contains unusual characters.
  1993. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1994. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1995. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1996. # Make sure we can run config.sub.
  1997. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1998. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  1999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2000. $as_echo_n "checking build system type... " >&6; }
  2001. if test "${ac_cv_build+set}" = set; then :
  2002. $as_echo_n "(cached) " >&6
  2003. else
  2004. ac_build_alias=$build_alias
  2005. test "x$ac_build_alias" = x &&
  2006. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2007. test "x$ac_build_alias" = x &&
  2008. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2009. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2010. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2011. fi
  2012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2013. $as_echo "$ac_cv_build" >&6; }
  2014. case $ac_cv_build in
  2015. *-*-*) ;;
  2016. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2017. esac
  2018. build=$ac_cv_build
  2019. ac_save_IFS=$IFS; IFS='-'
  2020. set x $ac_cv_build
  2021. shift
  2022. build_cpu=$1
  2023. build_vendor=$2
  2024. shift; shift
  2025. # Remember, the first character of IFS is used to create $*,
  2026. # except with old shells:
  2027. build_os=$*
  2028. IFS=$ac_save_IFS
  2029. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2031. $as_echo_n "checking host system type... " >&6; }
  2032. if test "${ac_cv_host+set}" = set; then :
  2033. $as_echo_n "(cached) " >&6
  2034. else
  2035. if test "x$host_alias" = x; then
  2036. ac_cv_host=$ac_cv_build
  2037. else
  2038. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2039. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2040. fi
  2041. fi
  2042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2043. $as_echo "$ac_cv_host" >&6; }
  2044. case $ac_cv_host in
  2045. *-*-*) ;;
  2046. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2047. esac
  2048. host=$ac_cv_host
  2049. ac_save_IFS=$IFS; IFS='-'
  2050. set x $ac_cv_host
  2051. shift
  2052. host_cpu=$1
  2053. host_vendor=$2
  2054. shift; shift
  2055. # Remember, the first character of IFS is used to create $*,
  2056. # except with old shells:
  2057. host_os=$*
  2058. IFS=$ac_save_IFS
  2059. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2061. $as_echo_n "checking target system type... " >&6; }
  2062. if test "${ac_cv_target+set}" = set; then :
  2063. $as_echo_n "(cached) " >&6
  2064. else
  2065. if test "x$target_alias" = x; then
  2066. ac_cv_target=$ac_cv_host
  2067. else
  2068. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2069. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2070. fi
  2071. fi
  2072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2073. $as_echo "$ac_cv_target" >&6; }
  2074. case $ac_cv_target in
  2075. *-*-*) ;;
  2076. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2077. esac
  2078. target=$ac_cv_target
  2079. ac_save_IFS=$IFS; IFS='-'
  2080. set x $ac_cv_target
  2081. shift
  2082. target_cpu=$1
  2083. target_vendor=$2
  2084. shift; shift
  2085. # Remember, the first character of IFS is used to create $*,
  2086. # except with old shells:
  2087. target_os=$*
  2088. IFS=$ac_save_IFS
  2089. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2090. # The aliases save the names the user supplied, while $host etc.
  2091. # will get canonicalized.
  2092. test -n "$target_alias" &&
  2093. test "$program_prefix$program_suffix$program_transform_name" = \
  2094. NONENONEs,x,x, &&
  2095. program_prefix=${target_alias}-
  2096. case ${build_alias} in
  2097. "") build_noncanonical=${build} ;;
  2098. *) build_noncanonical=${build_alias} ;;
  2099. esac
  2100. case ${host_alias} in
  2101. "") host_noncanonical=${build_noncanonical} ;;
  2102. *) host_noncanonical=${host_alias} ;;
  2103. esac
  2104. case ${target_alias} in
  2105. "") target_noncanonical=${host_noncanonical} ;;
  2106. *) target_noncanonical=${target_alias} ;;
  2107. esac
  2108. am__api_version='1.11'
  2109. # Find a good install program. We prefer a C program (faster),
  2110. # so one script is as good as another. But avoid the broken or
  2111. # incompatible versions:
  2112. # SysV /etc/install, /usr/sbin/install
  2113. # SunOS /usr/etc/install
  2114. # IRIX /sbin/install
  2115. # AIX /bin/install
  2116. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2117. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2118. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2119. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2120. # OS/2's system install, which has a completely different semantic
  2121. # ./install, which can be erroneously created by make from ./install.sh.
  2122. # Reject install programs that cannot install multiple files.
  2123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2124. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2125. if test -z "$INSTALL"; then
  2126. if test "${ac_cv_path_install+set}" = set; then :
  2127. $as_echo_n "(cached) " >&6
  2128. else
  2129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2130. for as_dir in $PATH
  2131. do
  2132. IFS=$as_save_IFS
  2133. test -z "$as_dir" && as_dir=.
  2134. # Account for people who put trailing slashes in PATH elements.
  2135. case $as_dir/ in #((
  2136. ./ | .// | /[cC]/* | \
  2137. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2138. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2139. /usr/ucb/* ) ;;
  2140. *)
  2141. # OSF1 and SCO ODT 3.0 have their own names for install.
  2142. # Don't use installbsd from OSF since it installs stuff as root
  2143. # by default.
  2144. for ac_prog in ginstall scoinst install; do
  2145. for ac_exec_ext in '' $ac_executable_extensions; do
  2146. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2147. if test $ac_prog = install &&
  2148. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2149. # AIX install. It has an incompatible calling convention.
  2150. :
  2151. elif test $ac_prog = install &&
  2152. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2153. # program-specific install script used by HP pwplus--don't use.
  2154. :
  2155. else
  2156. rm -rf conftest.one conftest.two conftest.dir
  2157. echo one > conftest.one
  2158. echo two > conftest.two
  2159. mkdir conftest.dir
  2160. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2161. test -s conftest.one && test -s conftest.two &&
  2162. test -s conftest.dir/conftest.one &&
  2163. test -s conftest.dir/conftest.two
  2164. then
  2165. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2166. break 3
  2167. fi
  2168. fi
  2169. fi
  2170. done
  2171. done
  2172. ;;
  2173. esac
  2174. done
  2175. IFS=$as_save_IFS
  2176. rm -rf conftest.one conftest.two conftest.dir
  2177. fi
  2178. if test "${ac_cv_path_install+set}" = set; then
  2179. INSTALL=$ac_cv_path_install
  2180. else
  2181. # As a last resort, use the slow shell script. Don't cache a
  2182. # value for INSTALL within a source directory, because that will
  2183. # break other packages using the cache if that directory is
  2184. # removed, or if the value is a relative name.
  2185. INSTALL=$ac_install_sh
  2186. fi
  2187. fi
  2188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2189. $as_echo "$INSTALL" >&6; }
  2190. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2191. # It thinks the first close brace ends the variable substitution.
  2192. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2193. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2194. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2196. $as_echo_n "checking whether build environment is sane... " >&6; }
  2197. # Just in case
  2198. sleep 1
  2199. echo timestamp > conftest.file
  2200. # Reject unsafe characters in $srcdir or the absolute working directory
  2201. # name. Accept space and tab only in the latter.
  2202. am_lf='
  2203. '
  2204. case `pwd` in
  2205. *[\\\"\#\$\&\'\`$am_lf]*)
  2206. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2207. esac
  2208. case $srcdir in
  2209. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2210. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2211. esac
  2212. # Do `set' in a subshell so we don't clobber the current shell's
  2213. # arguments. Must try -L first in case configure is actually a
  2214. # symlink; some systems play weird games with the mod time of symlinks
  2215. # (eg FreeBSD returns the mod time of the symlink's containing
  2216. # directory).
  2217. if (
  2218. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2219. if test "$*" = "X"; then
  2220. # -L didn't work.
  2221. set X `ls -t "$srcdir/configure" conftest.file`
  2222. fi
  2223. rm -f conftest.file
  2224. if test "$*" != "X $srcdir/configure conftest.file" \
  2225. && test "$*" != "X conftest.file $srcdir/configure"; then
  2226. # If neither matched, then we have a broken ls. This can happen
  2227. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2228. # broken ls alias from the environment. This has actually
  2229. # happened. Such a system could not be considered "sane".
  2230. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2231. alias in your environment" "$LINENO" 5
  2232. fi
  2233. test "$2" = conftest.file
  2234. )
  2235. then
  2236. # Ok.
  2237. :
  2238. else
  2239. as_fn_error "newly created file is older than distributed files!
  2240. Check your system clock" "$LINENO" 5
  2241. fi
  2242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2243. $as_echo "yes" >&6; }
  2244. test "$program_prefix" != NONE &&
  2245. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2246. # Use a double $ so make ignores it.
  2247. test "$program_suffix" != NONE &&
  2248. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2249. # Double any \ or $.
  2250. # By default was `s,x,x', remove it if useless.
  2251. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2252. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2253. # expand $ac_aux_dir to an absolute path
  2254. am_aux_dir=`cd $ac_aux_dir && pwd`
  2255. if test x"${MISSING+set}" != xset; then
  2256. case $am_aux_dir in
  2257. *\ * | *\ *)
  2258. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2259. *)
  2260. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2261. esac
  2262. fi
  2263. # Use eval to expand $SHELL
  2264. if eval "$MISSING --run true"; then
  2265. am_missing_run="$MISSING --run "
  2266. else
  2267. am_missing_run=
  2268. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2269. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2270. fi
  2271. if test x"${install_sh}" != xset; then
  2272. case $am_aux_dir in
  2273. *\ * | *\ *)
  2274. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2275. *)
  2276. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2277. esac
  2278. fi
  2279. # Installed binaries are usually stripped using `strip' when the user
  2280. # run `make install-strip'. However `strip' might not be the right
  2281. # tool to use in cross-compilation environments, therefore Automake
  2282. # will honor the `STRIP' environment variable to overrule this program.
  2283. if test "$cross_compiling" != no; then
  2284. if test -n "$ac_tool_prefix"; then
  2285. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2286. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2288. $as_echo_n "checking for $ac_word... " >&6; }
  2289. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2290. $as_echo_n "(cached) " >&6
  2291. else
  2292. if test -n "$STRIP"; then
  2293. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2294. else
  2295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2296. for as_dir in $PATH
  2297. do
  2298. IFS=$as_save_IFS
  2299. test -z "$as_dir" && as_dir=.
  2300. for ac_exec_ext in '' $ac_executable_extensions; do
  2301. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2302. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2303. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2304. break 2
  2305. fi
  2306. done
  2307. done
  2308. IFS=$as_save_IFS
  2309. fi
  2310. fi
  2311. STRIP=$ac_cv_prog_STRIP
  2312. if test -n "$STRIP"; then
  2313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2314. $as_echo "$STRIP" >&6; }
  2315. else
  2316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2317. $as_echo "no" >&6; }
  2318. fi
  2319. fi
  2320. if test -z "$ac_cv_prog_STRIP"; then
  2321. ac_ct_STRIP=$STRIP
  2322. # Extract the first word of "strip", so it can be a program name with args.
  2323. set dummy strip; ac_word=$2
  2324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2325. $as_echo_n "checking for $ac_word... " >&6; }
  2326. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2327. $as_echo_n "(cached) " >&6
  2328. else
  2329. if test -n "$ac_ct_STRIP"; then
  2330. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2331. else
  2332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2333. for as_dir in $PATH
  2334. do
  2335. IFS=$as_save_IFS
  2336. test -z "$as_dir" && as_dir=.
  2337. for ac_exec_ext in '' $ac_executable_extensions; do
  2338. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2339. ac_cv_prog_ac_ct_STRIP="strip"
  2340. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2341. break 2
  2342. fi
  2343. done
  2344. done
  2345. IFS=$as_save_IFS
  2346. fi
  2347. fi
  2348. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2349. if test -n "$ac_ct_STRIP"; then
  2350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2351. $as_echo "$ac_ct_STRIP" >&6; }
  2352. else
  2353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2354. $as_echo "no" >&6; }
  2355. fi
  2356. if test "x$ac_ct_STRIP" = x; then
  2357. STRIP=":"
  2358. else
  2359. case $cross_compiling:$ac_tool_warned in
  2360. yes:)
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2362. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2363. ac_tool_warned=yes ;;
  2364. esac
  2365. STRIP=$ac_ct_STRIP
  2366. fi
  2367. else
  2368. STRIP="$ac_cv_prog_STRIP"
  2369. fi
  2370. fi
  2371. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2373. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2374. if test -z "$MKDIR_P"; then
  2375. if test "${ac_cv_path_mkdir+set}" = set; then :
  2376. $as_echo_n "(cached) " >&6
  2377. else
  2378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2379. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2380. do
  2381. IFS=$as_save_IFS
  2382. test -z "$as_dir" && as_dir=.
  2383. for ac_prog in mkdir gmkdir; do
  2384. for ac_exec_ext in '' $ac_executable_extensions; do
  2385. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2386. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2387. 'mkdir (GNU coreutils) '* | \
  2388. 'mkdir (coreutils) '* | \
  2389. 'mkdir (fileutils) '4.1*)
  2390. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2391. break 3;;
  2392. esac
  2393. done
  2394. done
  2395. done
  2396. IFS=$as_save_IFS
  2397. fi
  2398. if test "${ac_cv_path_mkdir+set}" = set; then
  2399. MKDIR_P="$ac_cv_path_mkdir -p"
  2400. else
  2401. # As a last resort, use the slow shell script. Don't cache a
  2402. # value for MKDIR_P within a source directory, because that will
  2403. # break other packages using the cache if that directory is
  2404. # removed, or if the value is a relative name.
  2405. test -d ./--version && rmdir ./--version
  2406. MKDIR_P="$ac_install_sh -d"
  2407. fi
  2408. fi
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2410. $as_echo "$MKDIR_P" >&6; }
  2411. mkdir_p="$MKDIR_P"
  2412. case $mkdir_p in
  2413. [\\/$]* | ?:[\\/]*) ;;
  2414. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2415. esac
  2416. for ac_prog in gawk mawk nawk awk
  2417. do
  2418. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2419. set dummy $ac_prog; ac_word=$2
  2420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2421. $as_echo_n "checking for $ac_word... " >&6; }
  2422. if test "${ac_cv_prog_AWK+set}" = set; then :
  2423. $as_echo_n "(cached) " >&6
  2424. else
  2425. if test -n "$AWK"; then
  2426. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2427. else
  2428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2429. for as_dir in $PATH
  2430. do
  2431. IFS=$as_save_IFS
  2432. test -z "$as_dir" && as_dir=.
  2433. for ac_exec_ext in '' $ac_executable_extensions; do
  2434. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2435. ac_cv_prog_AWK="$ac_prog"
  2436. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2437. break 2
  2438. fi
  2439. done
  2440. done
  2441. IFS=$as_save_IFS
  2442. fi
  2443. fi
  2444. AWK=$ac_cv_prog_AWK
  2445. if test -n "$AWK"; then
  2446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2447. $as_echo "$AWK" >&6; }
  2448. else
  2449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2450. $as_echo "no" >&6; }
  2451. fi
  2452. test -n "$AWK" && break
  2453. done
  2454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2455. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2456. set x ${MAKE-make}
  2457. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2458. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2459. $as_echo_n "(cached) " >&6
  2460. else
  2461. cat >conftest.make <<\_ACEOF
  2462. SHELL = /bin/sh
  2463. all:
  2464. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2465. _ACEOF
  2466. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2467. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2468. *@@@%%%=?*=@@@%%%*)
  2469. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2470. *)
  2471. eval ac_cv_prog_make_${ac_make}_set=no;;
  2472. esac
  2473. rm -f conftest.make
  2474. fi
  2475. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2477. $as_echo "yes" >&6; }
  2478. SET_MAKE=
  2479. else
  2480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2481. $as_echo "no" >&6; }
  2482. SET_MAKE="MAKE=${MAKE-make}"
  2483. fi
  2484. rm -rf .tst 2>/dev/null
  2485. mkdir .tst 2>/dev/null
  2486. if test -d .tst; then
  2487. am__leading_dot=.
  2488. else
  2489. am__leading_dot=_
  2490. fi
  2491. rmdir .tst 2>/dev/null
  2492. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2493. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2494. # is not polluted with repeated "-I."
  2495. am__isrc=' -I$(srcdir)'
  2496. # test to see if srcdir already configured
  2497. if test -f $srcdir/config.status; then
  2498. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2499. fi
  2500. fi
  2501. # test whether we have cygpath
  2502. if test -z "$CYGPATH_W"; then
  2503. if (cygpath --version) >/dev/null 2>/dev/null; then
  2504. CYGPATH_W='cygpath -w'
  2505. else
  2506. CYGPATH_W=echo
  2507. fi
  2508. fi
  2509. # Define the identity of the package.
  2510. PACKAGE='libssp'
  2511. VERSION='1.0'
  2512. cat >>confdefs.h <<_ACEOF
  2513. #define PACKAGE "$PACKAGE"
  2514. _ACEOF
  2515. cat >>confdefs.h <<_ACEOF
  2516. #define VERSION "$VERSION"
  2517. _ACEOF
  2518. # Some tools Automake needs.
  2519. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2520. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2521. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2522. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2523. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2524. # We need awk for the "check" target. The system "awk" is bad on
  2525. # some platforms.
  2526. # Always define AMTAR for backward compatibility.
  2527. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2528. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  2530. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  2531. # Check whether --enable-version-specific-runtime-libs was given.
  2532. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  2533. enableval=$enable_version_specific_runtime_libs; case "$enableval" in
  2534. yes) version_specific_libs=yes ;;
  2535. no) version_specific_libs=no ;;
  2536. *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  2537. esac
  2538. else
  2539. version_specific_libs=no
  2540. fi
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
  2542. $as_echo "$version_specific_libs" >&6; }
  2543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2544. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2545. # Check whether --enable-maintainer-mode was given.
  2546. if test "${enable_maintainer_mode+set}" = set; then :
  2547. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2548. else
  2549. USE_MAINTAINER_MODE=no
  2550. fi
  2551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2552. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2553. if test $USE_MAINTAINER_MODE = yes; then
  2554. MAINTAINER_MODE_TRUE=
  2555. MAINTAINER_MODE_FALSE='#'
  2556. else
  2557. MAINTAINER_MODE_TRUE='#'
  2558. MAINTAINER_MODE_FALSE=
  2559. fi
  2560. MAINT=$MAINTAINER_MODE_TRUE
  2561. # Default to --enable-multilib
  2562. # Check whether --enable-multilib was given.
  2563. if test "${enable_multilib+set}" = set; then :
  2564. enableval=$enable_multilib; case "$enableval" in
  2565. yes) multilib=yes ;;
  2566. no) multilib=no ;;
  2567. *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2568. esac
  2569. else
  2570. multilib=yes
  2571. fi
  2572. # We may get other options which we leave undocumented:
  2573. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2574. # See config-ml.in if you want the gory details.
  2575. if test "$srcdir" = "."; then
  2576. if test "$with_target_subdir" != "."; then
  2577. multi_basedir="$srcdir/$with_multisrctop../.."
  2578. else
  2579. multi_basedir="$srcdir/$with_multisrctop.."
  2580. fi
  2581. else
  2582. multi_basedir="$srcdir/.."
  2583. fi
  2584. # Even if the default multilib is not a cross compilation,
  2585. # it may be that some of the other multilibs are.
  2586. if test $cross_compiling = no && test $multilib = yes \
  2587. && test "x${with_multisubdir}" != x ; then
  2588. cross_compiling=maybe
  2589. fi
  2590. ac_config_commands="$ac_config_commands default-1"
  2591. target_alias=${target_alias-$host_alias}
  2592. ac_config_headers="$ac_config_headers config.h"
  2593. ac_ext=c
  2594. ac_cpp='$CPP $CPPFLAGS'
  2595. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2596. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2597. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2598. # The same as in boehm-gc and libstdc++. Have to borrow it from there.
  2599. # We must force CC to /not/ be precious variables; otherwise
  2600. # the wrong, non-multilib-adjusted value will be used in multilibs.
  2601. # As a side effect, we have to subst CFLAGS ourselves.
  2602. ac_ext=c
  2603. ac_cpp='$CPP $CPPFLAGS'
  2604. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2605. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2606. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2607. if test -n "$ac_tool_prefix"; then
  2608. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2609. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2611. $as_echo_n "checking for $ac_word... " >&6; }
  2612. if test "${ac_cv_prog_CC+set}" = set; then :
  2613. $as_echo_n "(cached) " >&6
  2614. else
  2615. if test -n "$CC"; then
  2616. ac_cv_prog_CC="$CC" # Let the user override the test.
  2617. else
  2618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2619. for as_dir in $PATH
  2620. do
  2621. IFS=$as_save_IFS
  2622. test -z "$as_dir" && as_dir=.
  2623. for ac_exec_ext in '' $ac_executable_extensions; do
  2624. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2625. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2626. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2627. break 2
  2628. fi
  2629. done
  2630. done
  2631. IFS=$as_save_IFS
  2632. fi
  2633. fi
  2634. CC=$ac_cv_prog_CC
  2635. if test -n "$CC"; then
  2636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2637. $as_echo "$CC" >&6; }
  2638. else
  2639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2640. $as_echo "no" >&6; }
  2641. fi
  2642. fi
  2643. if test -z "$ac_cv_prog_CC"; then
  2644. ac_ct_CC=$CC
  2645. # Extract the first word of "gcc", so it can be a program name with args.
  2646. set dummy gcc; ac_word=$2
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2648. $as_echo_n "checking for $ac_word... " >&6; }
  2649. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2650. $as_echo_n "(cached) " >&6
  2651. else
  2652. if test -n "$ac_ct_CC"; then
  2653. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2654. else
  2655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2656. for as_dir in $PATH
  2657. do
  2658. IFS=$as_save_IFS
  2659. test -z "$as_dir" && as_dir=.
  2660. for ac_exec_ext in '' $ac_executable_extensions; do
  2661. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2662. ac_cv_prog_ac_ct_CC="gcc"
  2663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2664. break 2
  2665. fi
  2666. done
  2667. done
  2668. IFS=$as_save_IFS
  2669. fi
  2670. fi
  2671. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2672. if test -n "$ac_ct_CC"; then
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2674. $as_echo "$ac_ct_CC" >&6; }
  2675. else
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2677. $as_echo "no" >&6; }
  2678. fi
  2679. if test "x$ac_ct_CC" = x; then
  2680. CC=""
  2681. else
  2682. case $cross_compiling:$ac_tool_warned in
  2683. yes:)
  2684. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2685. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2686. ac_tool_warned=yes ;;
  2687. esac
  2688. CC=$ac_ct_CC
  2689. fi
  2690. else
  2691. CC="$ac_cv_prog_CC"
  2692. fi
  2693. if test -z "$CC"; then
  2694. if test -n "$ac_tool_prefix"; then
  2695. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2696. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2698. $as_echo_n "checking for $ac_word... " >&6; }
  2699. if test "${ac_cv_prog_CC+set}" = set; then :
  2700. $as_echo_n "(cached) " >&6
  2701. else
  2702. if test -n "$CC"; then
  2703. ac_cv_prog_CC="$CC" # Let the user override the test.
  2704. else
  2705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2706. for as_dir in $PATH
  2707. do
  2708. IFS=$as_save_IFS
  2709. test -z "$as_dir" && as_dir=.
  2710. for ac_exec_ext in '' $ac_executable_extensions; do
  2711. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2712. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2713. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2714. break 2
  2715. fi
  2716. done
  2717. done
  2718. IFS=$as_save_IFS
  2719. fi
  2720. fi
  2721. CC=$ac_cv_prog_CC
  2722. if test -n "$CC"; then
  2723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2724. $as_echo "$CC" >&6; }
  2725. else
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2727. $as_echo "no" >&6; }
  2728. fi
  2729. fi
  2730. fi
  2731. if test -z "$CC"; then
  2732. # Extract the first word of "cc", so it can be a program name with args.
  2733. set dummy cc; ac_word=$2
  2734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2735. $as_echo_n "checking for $ac_word... " >&6; }
  2736. if test "${ac_cv_prog_CC+set}" = set; then :
  2737. $as_echo_n "(cached) " >&6
  2738. else
  2739. if test -n "$CC"; then
  2740. ac_cv_prog_CC="$CC" # Let the user override the test.
  2741. else
  2742. ac_prog_rejected=no
  2743. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2744. for as_dir in $PATH
  2745. do
  2746. IFS=$as_save_IFS
  2747. test -z "$as_dir" && as_dir=.
  2748. for ac_exec_ext in '' $ac_executable_extensions; do
  2749. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2750. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2751. ac_prog_rejected=yes
  2752. continue
  2753. fi
  2754. ac_cv_prog_CC="cc"
  2755. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2756. break 2
  2757. fi
  2758. done
  2759. done
  2760. IFS=$as_save_IFS
  2761. if test $ac_prog_rejected = yes; then
  2762. # We found a bogon in the path, so make sure we never use it.
  2763. set dummy $ac_cv_prog_CC
  2764. shift
  2765. if test $# != 0; then
  2766. # We chose a different compiler from the bogus one.
  2767. # However, it has the same basename, so the bogon will be chosen
  2768. # first if we set CC to just the basename; use the full file name.
  2769. shift
  2770. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2771. fi
  2772. fi
  2773. fi
  2774. fi
  2775. CC=$ac_cv_prog_CC
  2776. if test -n "$CC"; then
  2777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2778. $as_echo "$CC" >&6; }
  2779. else
  2780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2781. $as_echo "no" >&6; }
  2782. fi
  2783. fi
  2784. if test -z "$CC"; then
  2785. if test -n "$ac_tool_prefix"; then
  2786. for ac_prog in cl.exe
  2787. do
  2788. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2789. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2791. $as_echo_n "checking for $ac_word... " >&6; }
  2792. if test "${ac_cv_prog_CC+set}" = set; then :
  2793. $as_echo_n "(cached) " >&6
  2794. else
  2795. if test -n "$CC"; then
  2796. ac_cv_prog_CC="$CC" # Let the user override the test.
  2797. else
  2798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2799. for as_dir in $PATH
  2800. do
  2801. IFS=$as_save_IFS
  2802. test -z "$as_dir" && as_dir=.
  2803. for ac_exec_ext in '' $ac_executable_extensions; do
  2804. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2805. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2806. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2807. break 2
  2808. fi
  2809. done
  2810. done
  2811. IFS=$as_save_IFS
  2812. fi
  2813. fi
  2814. CC=$ac_cv_prog_CC
  2815. if test -n "$CC"; then
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2817. $as_echo "$CC" >&6; }
  2818. else
  2819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2820. $as_echo "no" >&6; }
  2821. fi
  2822. test -n "$CC" && break
  2823. done
  2824. fi
  2825. if test -z "$CC"; then
  2826. ac_ct_CC=$CC
  2827. for ac_prog in cl.exe
  2828. do
  2829. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2830. set dummy $ac_prog; ac_word=$2
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2832. $as_echo_n "checking for $ac_word... " >&6; }
  2833. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2834. $as_echo_n "(cached) " >&6
  2835. else
  2836. if test -n "$ac_ct_CC"; then
  2837. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2838. else
  2839. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2840. for as_dir in $PATH
  2841. do
  2842. IFS=$as_save_IFS
  2843. test -z "$as_dir" && as_dir=.
  2844. for ac_exec_ext in '' $ac_executable_extensions; do
  2845. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2846. ac_cv_prog_ac_ct_CC="$ac_prog"
  2847. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2848. break 2
  2849. fi
  2850. done
  2851. done
  2852. IFS=$as_save_IFS
  2853. fi
  2854. fi
  2855. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2856. if test -n "$ac_ct_CC"; then
  2857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2858. $as_echo "$ac_ct_CC" >&6; }
  2859. else
  2860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2861. $as_echo "no" >&6; }
  2862. fi
  2863. test -n "$ac_ct_CC" && break
  2864. done
  2865. if test "x$ac_ct_CC" = x; then
  2866. CC=""
  2867. else
  2868. case $cross_compiling:$ac_tool_warned in
  2869. yes:)
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2871. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2872. ac_tool_warned=yes ;;
  2873. esac
  2874. CC=$ac_ct_CC
  2875. fi
  2876. fi
  2877. fi
  2878. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2879. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2880. as_fn_error "no acceptable C compiler found in \$PATH
  2881. See \`config.log' for more details." "$LINENO" 5; }
  2882. # Provide some information about the compiler.
  2883. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2884. set X $ac_compile
  2885. ac_compiler=$2
  2886. for ac_option in --version -v -V -qversion; do
  2887. { { ac_try="$ac_compiler $ac_option >&5"
  2888. case "(($ac_try" in
  2889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2890. *) ac_try_echo=$ac_try;;
  2891. esac
  2892. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2893. $as_echo "$ac_try_echo"; } >&5
  2894. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2895. ac_status=$?
  2896. if test -s conftest.err; then
  2897. sed '10a\
  2898. ... rest of stderr output deleted ...
  2899. 10q' conftest.err >conftest.er1
  2900. cat conftest.er1 >&5
  2901. rm -f conftest.er1 conftest.err
  2902. fi
  2903. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2904. test $ac_status = 0; }
  2905. done
  2906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2907. /* end confdefs.h. */
  2908. int
  2909. main ()
  2910. {
  2911. ;
  2912. return 0;
  2913. }
  2914. _ACEOF
  2915. # FIXME: Cleanup?
  2916. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  2917. (eval $ac_link) 2>&5
  2918. ac_status=$?
  2919. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2920. test $ac_status = 0; }; then :
  2921. gcc_no_link=no
  2922. else
  2923. gcc_no_link=yes
  2924. fi
  2925. if test x$gcc_no_link = xyes; then
  2926. # Setting cross_compile will disable run tests; it will
  2927. # also disable AC_CHECK_FILE but that's generally
  2928. # correct if we can't link.
  2929. cross_compiling=yes
  2930. EXEEXT=
  2931. else
  2932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2933. /* end confdefs.h. */
  2934. int
  2935. main ()
  2936. {
  2937. ;
  2938. return 0;
  2939. }
  2940. _ACEOF
  2941. ac_clean_files_save=$ac_clean_files
  2942. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2943. # Try to create an executable without -o first, disregard a.out.
  2944. # It will help us diagnose broken compilers, and finding out an intuition
  2945. # of exeext.
  2946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2947. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2948. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2949. # The possible output files:
  2950. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2951. ac_rmfiles=
  2952. for ac_file in $ac_files
  2953. do
  2954. case $ac_file in
  2955. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2956. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2957. esac
  2958. done
  2959. rm -f $ac_rmfiles
  2960. if { { ac_try="$ac_link_default"
  2961. case "(($ac_try" in
  2962. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2963. *) ac_try_echo=$ac_try;;
  2964. esac
  2965. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2966. $as_echo "$ac_try_echo"; } >&5
  2967. (eval "$ac_link_default") 2>&5
  2968. ac_status=$?
  2969. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2970. test $ac_status = 0; }; then :
  2971. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2972. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2973. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2974. # so that the user can short-circuit this test for compilers unknown to
  2975. # Autoconf.
  2976. for ac_file in $ac_files ''
  2977. do
  2978. test -f "$ac_file" || continue
  2979. case $ac_file in
  2980. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2981. ;;
  2982. [ab].out )
  2983. # We found the default executable, but exeext='' is most
  2984. # certainly right.
  2985. break;;
  2986. *.* )
  2987. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2988. then :; else
  2989. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2990. fi
  2991. # We set ac_cv_exeext here because the later test for it is not
  2992. # safe: cross compilers may not add the suffix if given an `-o'
  2993. # argument, so we may need to know it at that point already.
  2994. # Even if this section looks crufty: it has the advantage of
  2995. # actually working.
  2996. break;;
  2997. * )
  2998. break;;
  2999. esac
  3000. done
  3001. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3002. else
  3003. ac_file=''
  3004. fi
  3005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3006. $as_echo "$ac_file" >&6; }
  3007. if test -z "$ac_file"; then :
  3008. $as_echo "$as_me: failed program was:" >&5
  3009. sed 's/^/| /' conftest.$ac_ext >&5
  3010. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3011. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3012. { as_fn_set_status 77
  3013. as_fn_error "C compiler cannot create executables
  3014. See \`config.log' for more details." "$LINENO" 5; }; }
  3015. fi
  3016. ac_exeext=$ac_cv_exeext
  3017. # Check that the compiler produces executables we can run. If not, either
  3018. # the compiler is broken, or we cross compile.
  3019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3020. $as_echo_n "checking whether the C compiler works... " >&6; }
  3021. # If not cross compiling, check that we can run a simple program.
  3022. if test "$cross_compiling" != yes; then
  3023. if { ac_try='./$ac_file'
  3024. { { case "(($ac_try" in
  3025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3026. *) ac_try_echo=$ac_try;;
  3027. esac
  3028. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3029. $as_echo "$ac_try_echo"; } >&5
  3030. (eval "$ac_try") 2>&5
  3031. ac_status=$?
  3032. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3033. test $ac_status = 0; }; }; then
  3034. cross_compiling=no
  3035. else
  3036. if test "$cross_compiling" = maybe; then
  3037. cross_compiling=yes
  3038. else
  3039. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3040. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3041. as_fn_error "cannot run C compiled programs.
  3042. If you meant to cross compile, use \`--host'.
  3043. See \`config.log' for more details." "$LINENO" 5; }
  3044. fi
  3045. fi
  3046. fi
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3048. $as_echo "yes" >&6; }
  3049. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3050. ac_clean_files=$ac_clean_files_save
  3051. # Check that the compiler produces executables we can run. If not, either
  3052. # the compiler is broken, or we cross compile.
  3053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3054. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3056. $as_echo "$cross_compiling" >&6; }
  3057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3058. $as_echo_n "checking for suffix of executables... " >&6; }
  3059. if { { ac_try="$ac_link"
  3060. case "(($ac_try" in
  3061. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3062. *) ac_try_echo=$ac_try;;
  3063. esac
  3064. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3065. $as_echo "$ac_try_echo"; } >&5
  3066. (eval "$ac_link") 2>&5
  3067. ac_status=$?
  3068. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3069. test $ac_status = 0; }; then :
  3070. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3071. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3072. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3073. # `rm'.
  3074. for ac_file in conftest.exe conftest conftest.*; do
  3075. test -f "$ac_file" || continue
  3076. case $ac_file in
  3077. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3078. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3079. break;;
  3080. * ) break;;
  3081. esac
  3082. done
  3083. else
  3084. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3085. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3086. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3087. See \`config.log' for more details." "$LINENO" 5; }
  3088. fi
  3089. rm -f conftest$ac_cv_exeext
  3090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3091. $as_echo "$ac_cv_exeext" >&6; }
  3092. rm -f conftest.$ac_ext
  3093. EXEEXT=$ac_cv_exeext
  3094. ac_exeext=$EXEEXT
  3095. fi
  3096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3097. $as_echo_n "checking for suffix of object files... " >&6; }
  3098. if test "${ac_cv_objext+set}" = set; then :
  3099. $as_echo_n "(cached) " >&6
  3100. else
  3101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3102. /* end confdefs.h. */
  3103. int
  3104. main ()
  3105. {
  3106. ;
  3107. return 0;
  3108. }
  3109. _ACEOF
  3110. rm -f conftest.o conftest.obj
  3111. if { { ac_try="$ac_compile"
  3112. case "(($ac_try" in
  3113. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3114. *) ac_try_echo=$ac_try;;
  3115. esac
  3116. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3117. $as_echo "$ac_try_echo"; } >&5
  3118. (eval "$ac_compile") 2>&5
  3119. ac_status=$?
  3120. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3121. test $ac_status = 0; }; then :
  3122. for ac_file in conftest.o conftest.obj conftest.*; do
  3123. test -f "$ac_file" || continue;
  3124. case $ac_file in
  3125. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3126. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3127. break;;
  3128. esac
  3129. done
  3130. else
  3131. $as_echo "$as_me: failed program was:" >&5
  3132. sed 's/^/| /' conftest.$ac_ext >&5
  3133. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3134. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3135. as_fn_error "cannot compute suffix of object files: cannot compile
  3136. See \`config.log' for more details." "$LINENO" 5; }
  3137. fi
  3138. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3139. fi
  3140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3141. $as_echo "$ac_cv_objext" >&6; }
  3142. OBJEXT=$ac_cv_objext
  3143. ac_objext=$OBJEXT
  3144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3145. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3146. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3147. $as_echo_n "(cached) " >&6
  3148. else
  3149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3150. /* end confdefs.h. */
  3151. int
  3152. main ()
  3153. {
  3154. #ifndef __GNUC__
  3155. choke me
  3156. #endif
  3157. ;
  3158. return 0;
  3159. }
  3160. _ACEOF
  3161. if ac_fn_c_try_compile "$LINENO"; then :
  3162. ac_compiler_gnu=yes
  3163. else
  3164. ac_compiler_gnu=no
  3165. fi
  3166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3167. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3168. fi
  3169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3170. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3171. if test $ac_compiler_gnu = yes; then
  3172. GCC=yes
  3173. else
  3174. GCC=
  3175. fi
  3176. ac_test_CFLAGS=${CFLAGS+set}
  3177. ac_save_CFLAGS=$CFLAGS
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3179. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3180. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3181. $as_echo_n "(cached) " >&6
  3182. else
  3183. ac_save_c_werror_flag=$ac_c_werror_flag
  3184. ac_c_werror_flag=yes
  3185. ac_cv_prog_cc_g=no
  3186. CFLAGS="-g"
  3187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3188. /* end confdefs.h. */
  3189. int
  3190. main ()
  3191. {
  3192. ;
  3193. return 0;
  3194. }
  3195. _ACEOF
  3196. if ac_fn_c_try_compile "$LINENO"; then :
  3197. ac_cv_prog_cc_g=yes
  3198. else
  3199. CFLAGS=""
  3200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3201. /* end confdefs.h. */
  3202. int
  3203. main ()
  3204. {
  3205. ;
  3206. return 0;
  3207. }
  3208. _ACEOF
  3209. if ac_fn_c_try_compile "$LINENO"; then :
  3210. else
  3211. ac_c_werror_flag=$ac_save_c_werror_flag
  3212. CFLAGS="-g"
  3213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3214. /* end confdefs.h. */
  3215. int
  3216. main ()
  3217. {
  3218. ;
  3219. return 0;
  3220. }
  3221. _ACEOF
  3222. if ac_fn_c_try_compile "$LINENO"; then :
  3223. ac_cv_prog_cc_g=yes
  3224. fi
  3225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3226. fi
  3227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3228. fi
  3229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3230. ac_c_werror_flag=$ac_save_c_werror_flag
  3231. fi
  3232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3233. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3234. if test "$ac_test_CFLAGS" = set; then
  3235. CFLAGS=$ac_save_CFLAGS
  3236. elif test $ac_cv_prog_cc_g = yes; then
  3237. if test "$GCC" = yes; then
  3238. CFLAGS="-g -O2"
  3239. else
  3240. CFLAGS="-g"
  3241. fi
  3242. else
  3243. if test "$GCC" = yes; then
  3244. CFLAGS="-O2"
  3245. else
  3246. CFLAGS=
  3247. fi
  3248. fi
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3250. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3251. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3252. $as_echo_n "(cached) " >&6
  3253. else
  3254. ac_cv_prog_cc_c89=no
  3255. ac_save_CC=$CC
  3256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3257. /* end confdefs.h. */
  3258. #include <stdarg.h>
  3259. #include <stdio.h>
  3260. #include <sys/types.h>
  3261. #include <sys/stat.h>
  3262. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3263. struct buf { int x; };
  3264. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3265. static char *e (p, i)
  3266. char **p;
  3267. int i;
  3268. {
  3269. return p[i];
  3270. }
  3271. static char *f (char * (*g) (char **, int), char **p, ...)
  3272. {
  3273. char *s;
  3274. va_list v;
  3275. va_start (v,p);
  3276. s = g (p, va_arg (v,int));
  3277. va_end (v);
  3278. return s;
  3279. }
  3280. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3281. function prototypes and stuff, but not '\xHH' hex character constants.
  3282. These don't provoke an error unfortunately, instead are silently treated
  3283. as 'x'. The following induces an error, until -std is added to get
  3284. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3285. array size at least. It's necessary to write '\x00'==0 to get something
  3286. that's true only with -std. */
  3287. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3288. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3289. inside strings and character constants. */
  3290. #define FOO(x) 'x'
  3291. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3292. int test (int i, double x);
  3293. struct s1 {int (*f) (int a);};
  3294. struct s2 {int (*f) (double a);};
  3295. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3296. int argc;
  3297. char **argv;
  3298. int
  3299. main ()
  3300. {
  3301. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3302. ;
  3303. return 0;
  3304. }
  3305. _ACEOF
  3306. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3307. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3308. do
  3309. CC="$ac_save_CC $ac_arg"
  3310. if ac_fn_c_try_compile "$LINENO"; then :
  3311. ac_cv_prog_cc_c89=$ac_arg
  3312. fi
  3313. rm -f core conftest.err conftest.$ac_objext
  3314. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3315. done
  3316. rm -f conftest.$ac_ext
  3317. CC=$ac_save_CC
  3318. fi
  3319. # AC_CACHE_VAL
  3320. case "x$ac_cv_prog_cc_c89" in
  3321. x)
  3322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3323. $as_echo "none needed" >&6; } ;;
  3324. xno)
  3325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3326. $as_echo "unsupported" >&6; } ;;
  3327. *)
  3328. CC="$CC $ac_cv_prog_cc_c89"
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3330. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3331. esac
  3332. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3333. fi
  3334. ac_ext=c
  3335. ac_cpp='$CPP $CPPFLAGS'
  3336. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3337. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3338. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3339. DEPDIR="${am__leading_dot}deps"
  3340. ac_config_commands="$ac_config_commands depfiles"
  3341. am_make=${MAKE-make}
  3342. cat > confinc << 'END'
  3343. am__doit:
  3344. @echo this is the am__doit target
  3345. .PHONY: am__doit
  3346. END
  3347. # If we don't find an include directive, just comment out the code.
  3348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3349. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3350. am__include="#"
  3351. am__quote=
  3352. _am_result=none
  3353. # First try GNU make style include.
  3354. echo "include confinc" > confmf
  3355. # Ignore all kinds of additional output from `make'.
  3356. case `$am_make -s -f confmf 2> /dev/null` in #(
  3357. *the\ am__doit\ target*)
  3358. am__include=include
  3359. am__quote=
  3360. _am_result=GNU
  3361. ;;
  3362. esac
  3363. # Now try BSD make style include.
  3364. if test "$am__include" = "#"; then
  3365. echo '.include "confinc"' > confmf
  3366. case `$am_make -s -f confmf 2> /dev/null` in #(
  3367. *the\ am__doit\ target*)
  3368. am__include=.include
  3369. am__quote="\""
  3370. _am_result=BSD
  3371. ;;
  3372. esac
  3373. fi
  3374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3375. $as_echo "$_am_result" >&6; }
  3376. rm -f confinc confmf
  3377. # Check whether --enable-dependency-tracking was given.
  3378. if test "${enable_dependency_tracking+set}" = set; then :
  3379. enableval=$enable_dependency_tracking;
  3380. fi
  3381. if test "x$enable_dependency_tracking" != xno; then
  3382. am_depcomp="$ac_aux_dir/depcomp"
  3383. AMDEPBACKSLASH='\'
  3384. fi
  3385. if test "x$enable_dependency_tracking" != xno; then
  3386. AMDEP_TRUE=
  3387. AMDEP_FALSE='#'
  3388. else
  3389. AMDEP_TRUE='#'
  3390. AMDEP_FALSE=
  3391. fi
  3392. depcc="$CC" am_compiler_list=
  3393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3394. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3395. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3396. $as_echo_n "(cached) " >&6
  3397. else
  3398. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3399. # We make a subdir and do the tests there. Otherwise we can end up
  3400. # making bogus files that we don't know about and never remove. For
  3401. # instance it was reported that on HP-UX the gcc test will end up
  3402. # making a dummy file named `D' -- because `-MD' means `put the output
  3403. # in D'.
  3404. mkdir conftest.dir
  3405. # Copy depcomp to subdir because otherwise we won't find it if we're
  3406. # using a relative directory.
  3407. cp "$am_depcomp" conftest.dir
  3408. cd conftest.dir
  3409. # We will build objects and dependencies in a subdirectory because
  3410. # it helps to detect inapplicable dependency modes. For instance
  3411. # both Tru64's cc and ICC support -MD to output dependencies as a
  3412. # side effect of compilation, but ICC will put the dependencies in
  3413. # the current directory while Tru64 will put them in the object
  3414. # directory.
  3415. mkdir sub
  3416. am_cv_CC_dependencies_compiler_type=none
  3417. if test "$am_compiler_list" = ""; then
  3418. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3419. fi
  3420. am__universal=false
  3421. case " $depcc " in #(
  3422. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3423. esac
  3424. for depmode in $am_compiler_list; do
  3425. # Setup a source with many dependencies, because some compilers
  3426. # like to wrap large dependency lists on column 80 (with \), and
  3427. # we should not choose a depcomp mode which is confused by this.
  3428. #
  3429. # We need to recreate these files for each test, as the compiler may
  3430. # overwrite some of them when testing with obscure command lines.
  3431. # This happens at least with the AIX C compiler.
  3432. : > sub/conftest.c
  3433. for i in 1 2 3 4 5 6; do
  3434. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3435. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3436. # Solaris 8's {/usr,}/bin/sh.
  3437. touch sub/conftst$i.h
  3438. done
  3439. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3440. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3441. # mode. It turns out that the SunPro C++ compiler does not properly
  3442. # handle `-M -o', and we need to detect this. Also, some Intel
  3443. # versions had trouble with output in subdirs
  3444. am__obj=sub/conftest.${OBJEXT-o}
  3445. am__minus_obj="-o $am__obj"
  3446. case $depmode in
  3447. gcc)
  3448. # This depmode causes a compiler race in universal mode.
  3449. test "$am__universal" = false || continue
  3450. ;;
  3451. nosideeffect)
  3452. # after this tag, mechanisms are not by side-effect, so they'll
  3453. # only be used when explicitly requested
  3454. if test "x$enable_dependency_tracking" = xyes; then
  3455. continue
  3456. else
  3457. break
  3458. fi
  3459. ;;
  3460. msvisualcpp | msvcmsys)
  3461. # This compiler won't grok `-c -o', but also, the minuso test has
  3462. # not run yet. These depmodes are late enough in the game, and
  3463. # so weak that their functioning should not be impacted.
  3464. am__obj=conftest.${OBJEXT-o}
  3465. am__minus_obj=
  3466. ;;
  3467. none) break ;;
  3468. esac
  3469. if depmode=$depmode \
  3470. source=sub/conftest.c object=$am__obj \
  3471. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3472. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3473. >/dev/null 2>conftest.err &&
  3474. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3475. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3476. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3477. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3478. # icc doesn't choke on unknown options, it will just issue warnings
  3479. # or remarks (even with -Werror). So we grep stderr for any message
  3480. # that says an option was ignored or not supported.
  3481. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3482. # icc: Command line warning: ignoring option '-M'; no argument required
  3483. # The diagnosis changed in icc 8.0:
  3484. # icc: Command line remark: option '-MP' not supported
  3485. if (grep 'ignoring option' conftest.err ||
  3486. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3487. am_cv_CC_dependencies_compiler_type=$depmode
  3488. break
  3489. fi
  3490. fi
  3491. done
  3492. cd ..
  3493. rm -rf conftest.dir
  3494. else
  3495. am_cv_CC_dependencies_compiler_type=none
  3496. fi
  3497. fi
  3498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3499. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3500. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3501. if
  3502. test "x$enable_dependency_tracking" != xno \
  3503. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3504. am__fastdepCC_TRUE=
  3505. am__fastdepCC_FALSE='#'
  3506. else
  3507. am__fastdepCC_TRUE='#'
  3508. am__fastdepCC_FALSE=
  3509. fi
  3510. if test "x$GCC" != "xyes"; then
  3511. as_fn_error "libssp must be built with GCC" "$LINENO" 5
  3512. fi
  3513. ac_ext=c
  3514. ac_cpp='$CPP $CPPFLAGS'
  3515. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3516. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3517. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3519. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3520. # On Suns, sometimes $CPP names a directory.
  3521. if test -n "$CPP" && test -d "$CPP"; then
  3522. CPP=
  3523. fi
  3524. if test -z "$CPP"; then
  3525. if test "${ac_cv_prog_CPP+set}" = set; then :
  3526. $as_echo_n "(cached) " >&6
  3527. else
  3528. # Double quotes because CPP needs to be expanded
  3529. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3530. do
  3531. ac_preproc_ok=false
  3532. for ac_c_preproc_warn_flag in '' yes
  3533. do
  3534. # Use a header file that comes with gcc, so configuring glibc
  3535. # with a fresh cross-compiler works.
  3536. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3537. # <limits.h> exists even on freestanding compilers.
  3538. # On the NeXT, cc -E runs the code through the compiler's parser,
  3539. # not just through cpp. "Syntax error" is here to catch this case.
  3540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3541. /* end confdefs.h. */
  3542. #ifdef __STDC__
  3543. # include <limits.h>
  3544. #else
  3545. # include <assert.h>
  3546. #endif
  3547. Syntax error
  3548. _ACEOF
  3549. if ac_fn_c_try_cpp "$LINENO"; then :
  3550. else
  3551. # Broken: fails on valid input.
  3552. continue
  3553. fi
  3554. rm -f conftest.err conftest.$ac_ext
  3555. # OK, works on sane cases. Now check whether nonexistent headers
  3556. # can be detected and how.
  3557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3558. /* end confdefs.h. */
  3559. #include <ac_nonexistent.h>
  3560. _ACEOF
  3561. if ac_fn_c_try_cpp "$LINENO"; then :
  3562. # Broken: success on invalid input.
  3563. continue
  3564. else
  3565. # Passes both tests.
  3566. ac_preproc_ok=:
  3567. break
  3568. fi
  3569. rm -f conftest.err conftest.$ac_ext
  3570. done
  3571. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3572. rm -f conftest.err conftest.$ac_ext
  3573. if $ac_preproc_ok; then :
  3574. break
  3575. fi
  3576. done
  3577. ac_cv_prog_CPP=$CPP
  3578. fi
  3579. CPP=$ac_cv_prog_CPP
  3580. else
  3581. ac_cv_prog_CPP=$CPP
  3582. fi
  3583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3584. $as_echo "$CPP" >&6; }
  3585. ac_preproc_ok=false
  3586. for ac_c_preproc_warn_flag in '' yes
  3587. do
  3588. # Use a header file that comes with gcc, so configuring glibc
  3589. # with a fresh cross-compiler works.
  3590. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3591. # <limits.h> exists even on freestanding compilers.
  3592. # On the NeXT, cc -E runs the code through the compiler's parser,
  3593. # not just through cpp. "Syntax error" is here to catch this case.
  3594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3595. /* end confdefs.h. */
  3596. #ifdef __STDC__
  3597. # include <limits.h>
  3598. #else
  3599. # include <assert.h>
  3600. #endif
  3601. Syntax error
  3602. _ACEOF
  3603. if ac_fn_c_try_cpp "$LINENO"; then :
  3604. else
  3605. # Broken: fails on valid input.
  3606. continue
  3607. fi
  3608. rm -f conftest.err conftest.$ac_ext
  3609. # OK, works on sane cases. Now check whether nonexistent headers
  3610. # can be detected and how.
  3611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3612. /* end confdefs.h. */
  3613. #include <ac_nonexistent.h>
  3614. _ACEOF
  3615. if ac_fn_c_try_cpp "$LINENO"; then :
  3616. # Broken: success on invalid input.
  3617. continue
  3618. else
  3619. # Passes both tests.
  3620. ac_preproc_ok=:
  3621. break
  3622. fi
  3623. rm -f conftest.err conftest.$ac_ext
  3624. done
  3625. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3626. rm -f conftest.err conftest.$ac_ext
  3627. if $ac_preproc_ok; then :
  3628. else
  3629. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3630. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3631. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  3632. See \`config.log' for more details." "$LINENO" 5; }
  3633. fi
  3634. ac_ext=c
  3635. ac_cpp='$CPP $CPPFLAGS'
  3636. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3637. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3638. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fstack-protector works" >&5
  3640. $as_echo_n "checking whether -fstack-protector works... " >&6; }
  3641. save_CFLAGS="$CFLAGS"
  3642. CFLAGS="$CFLAGS -fstack-protector -Werror"
  3643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3644. /* end confdefs.h. */
  3645. void __attribute__((noinline)) bar (char *x)
  3646. {
  3647. __builtin_memset (x, 0, 64);
  3648. }
  3649. int
  3650. main ()
  3651. {
  3652. char buf[64]; bar (buf);
  3653. ;
  3654. return 0;
  3655. }
  3656. _ACEOF
  3657. if ac_fn_c_try_compile "$LINENO"; then :
  3658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3659. $as_echo "yes" >&6; }
  3660. else
  3661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3662. $as_echo "no" >&6; }
  3663. fi
  3664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3665. CFLAGS="$save_CFLAGS"
  3666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
  3667. $as_echo_n "checking whether hidden visibility is supported... " >&6; }
  3668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3669. /* end confdefs.h. */
  3670. void __attribute__((visibility ("hidden"))) bar (void) {}
  3671. int
  3672. main ()
  3673. {
  3674. ;
  3675. return 0;
  3676. }
  3677. _ACEOF
  3678. if ac_fn_c_try_compile "$LINENO"; then :
  3679. ssp_hidden=yes
  3680. else
  3681. ssp_hidden=no
  3682. fi
  3683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_hidden" >&5
  3685. $as_echo "$ssp_hidden" >&6; }
  3686. if test x$ssp_hidden = xyes; then
  3687. $as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
  3688. fi
  3689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
  3690. $as_echo_n "checking whether symbol versioning is supported... " >&6; }
  3691. # Check whether --enable-symvers was given.
  3692. if test "${enable_symvers+set}" = set; then :
  3693. enableval=$enable_symvers; ssp_use_symver=$enableval
  3694. else
  3695. ssp_use_symver=yes
  3696. fi
  3697. if test "x$ssp_use_symver" != xno; then
  3698. if test x$gcc_no_link = xyes; then
  3699. # If we cannot link, we cannot build shared libraries, so do not use
  3700. # symbol versioning.
  3701. ssp_use_symver=no
  3702. else
  3703. save_LDFLAGS="$LDFLAGS"
  3704. LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
  3705. cat > conftest.map <<EOF
  3706. FOO_1.0 {
  3707. global: *foo*; bar; local: *;
  3708. };
  3709. EOF
  3710. if test x$gcc_no_link = xyes; then
  3711. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  3712. fi
  3713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3714. /* end confdefs.h. */
  3715. int foo;
  3716. int
  3717. main ()
  3718. {
  3719. ;
  3720. return 0;
  3721. }
  3722. _ACEOF
  3723. if ac_fn_c_try_link "$LINENO"; then :
  3724. ssp_use_symver=gnu
  3725. else
  3726. ssp_use_symver=no
  3727. fi
  3728. rm -f core conftest.err conftest.$ac_objext \
  3729. conftest$ac_exeext conftest.$ac_ext
  3730. if test x$ssp_use_symver = xno; then
  3731. case "$target_os" in
  3732. solaris2*)
  3733. LDFLAGS="$save_LDFLAGS"
  3734. LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
  3735. # Sun ld cannot handle wildcards and treats all entries as undefined.
  3736. cat > conftest.map <<EOF
  3737. FOO_1.0 {
  3738. global: foo; local: *;
  3739. };
  3740. EOF
  3741. if test x$gcc_no_link = xyes; then
  3742. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  3743. fi
  3744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3745. /* end confdefs.h. */
  3746. int foo;
  3747. int
  3748. main ()
  3749. {
  3750. ;
  3751. return 0;
  3752. }
  3753. _ACEOF
  3754. if ac_fn_c_try_link "$LINENO"; then :
  3755. ssp_use_symver=sun
  3756. else
  3757. ssp_use_symver=no
  3758. fi
  3759. rm -f core conftest.err conftest.$ac_objext \
  3760. conftest$ac_exeext conftest.$ac_ext
  3761. ;;
  3762. esac
  3763. fi
  3764. LDFLAGS="$save_LDFLAGS"
  3765. fi
  3766. fi
  3767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_use_symver" >&5
  3768. $as_echo "$ssp_use_symver" >&6; }
  3769. if test "x$ssp_use_symver" != xno; then
  3770. LIBSSP_USE_SYMVER_TRUE=
  3771. LIBSSP_USE_SYMVER_FALSE='#'
  3772. else
  3773. LIBSSP_USE_SYMVER_TRUE='#'
  3774. LIBSSP_USE_SYMVER_FALSE=
  3775. fi
  3776. if test "x$ssp_use_symver" = xgnu; then
  3777. LIBSSP_USE_SYMVER_GNU_TRUE=
  3778. LIBSSP_USE_SYMVER_GNU_FALSE='#'
  3779. else
  3780. LIBSSP_USE_SYMVER_GNU_TRUE='#'
  3781. LIBSSP_USE_SYMVER_GNU_FALSE=
  3782. fi
  3783. if test "x$ssp_use_symver" = xsun; then
  3784. LIBSSP_USE_SYMVER_SUN_TRUE=
  3785. LIBSSP_USE_SYMVER_SUN_FALSE='#'
  3786. else
  3787. LIBSSP_USE_SYMVER_SUN_TRUE='#'
  3788. LIBSSP_USE_SYMVER_SUN_FALSE=
  3789. fi
  3790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3791. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3792. if test "${ac_cv_path_GREP+set}" = set; then :
  3793. $as_echo_n "(cached) " >&6
  3794. else
  3795. if test -z "$GREP"; then
  3796. ac_path_GREP_found=false
  3797. # Loop through the user's path and test for each of PROGNAME-LIST
  3798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3799. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3800. do
  3801. IFS=$as_save_IFS
  3802. test -z "$as_dir" && as_dir=.
  3803. for ac_prog in grep ggrep; do
  3804. for ac_exec_ext in '' $ac_executable_extensions; do
  3805. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3806. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3807. # Check for GNU ac_path_GREP and select it if it is found.
  3808. # Check for GNU $ac_path_GREP
  3809. case `"$ac_path_GREP" --version 2>&1` in
  3810. *GNU*)
  3811. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3812. *)
  3813. ac_count=0
  3814. $as_echo_n 0123456789 >"conftest.in"
  3815. while :
  3816. do
  3817. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3818. mv "conftest.tmp" "conftest.in"
  3819. cp "conftest.in" "conftest.nl"
  3820. $as_echo 'GREP' >> "conftest.nl"
  3821. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3822. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3823. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3824. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3825. # Best one so far, save it but keep looking for a better one
  3826. ac_cv_path_GREP="$ac_path_GREP"
  3827. ac_path_GREP_max=$ac_count
  3828. fi
  3829. # 10*(2^10) chars as input seems more than enough
  3830. test $ac_count -gt 10 && break
  3831. done
  3832. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3833. esac
  3834. $ac_path_GREP_found && break 3
  3835. done
  3836. done
  3837. done
  3838. IFS=$as_save_IFS
  3839. if test -z "$ac_cv_path_GREP"; then
  3840. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3841. fi
  3842. else
  3843. ac_cv_path_GREP=$GREP
  3844. fi
  3845. fi
  3846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3847. $as_echo "$ac_cv_path_GREP" >&6; }
  3848. GREP="$ac_cv_path_GREP"
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3850. $as_echo_n "checking for egrep... " >&6; }
  3851. if test "${ac_cv_path_EGREP+set}" = set; then :
  3852. $as_echo_n "(cached) " >&6
  3853. else
  3854. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3855. then ac_cv_path_EGREP="$GREP -E"
  3856. else
  3857. if test -z "$EGREP"; then
  3858. ac_path_EGREP_found=false
  3859. # Loop through the user's path and test for each of PROGNAME-LIST
  3860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3861. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3862. do
  3863. IFS=$as_save_IFS
  3864. test -z "$as_dir" && as_dir=.
  3865. for ac_prog in egrep; do
  3866. for ac_exec_ext in '' $ac_executable_extensions; do
  3867. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3868. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3869. # Check for GNU ac_path_EGREP and select it if it is found.
  3870. # Check for GNU $ac_path_EGREP
  3871. case `"$ac_path_EGREP" --version 2>&1` in
  3872. *GNU*)
  3873. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3874. *)
  3875. ac_count=0
  3876. $as_echo_n 0123456789 >"conftest.in"
  3877. while :
  3878. do
  3879. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3880. mv "conftest.tmp" "conftest.in"
  3881. cp "conftest.in" "conftest.nl"
  3882. $as_echo 'EGREP' >> "conftest.nl"
  3883. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3884. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3885. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3886. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3887. # Best one so far, save it but keep looking for a better one
  3888. ac_cv_path_EGREP="$ac_path_EGREP"
  3889. ac_path_EGREP_max=$ac_count
  3890. fi
  3891. # 10*(2^10) chars as input seems more than enough
  3892. test $ac_count -gt 10 && break
  3893. done
  3894. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3895. esac
  3896. $ac_path_EGREP_found && break 3
  3897. done
  3898. done
  3899. done
  3900. IFS=$as_save_IFS
  3901. if test -z "$ac_cv_path_EGREP"; then
  3902. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3903. fi
  3904. else
  3905. ac_cv_path_EGREP=$EGREP
  3906. fi
  3907. fi
  3908. fi
  3909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3910. $as_echo "$ac_cv_path_EGREP" >&6; }
  3911. EGREP="$ac_cv_path_EGREP"
  3912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3913. $as_echo_n "checking for ANSI C header files... " >&6; }
  3914. if test "${ac_cv_header_stdc+set}" = set; then :
  3915. $as_echo_n "(cached) " >&6
  3916. else
  3917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3918. /* end confdefs.h. */
  3919. #include <stdlib.h>
  3920. #include <stdarg.h>
  3921. #include <string.h>
  3922. #include <float.h>
  3923. int
  3924. main ()
  3925. {
  3926. ;
  3927. return 0;
  3928. }
  3929. _ACEOF
  3930. if ac_fn_c_try_compile "$LINENO"; then :
  3931. ac_cv_header_stdc=yes
  3932. else
  3933. ac_cv_header_stdc=no
  3934. fi
  3935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3936. if test $ac_cv_header_stdc = yes; then
  3937. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3939. /* end confdefs.h. */
  3940. #include <string.h>
  3941. _ACEOF
  3942. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3943. $EGREP "memchr" >/dev/null 2>&1; then :
  3944. else
  3945. ac_cv_header_stdc=no
  3946. fi
  3947. rm -f conftest*
  3948. fi
  3949. if test $ac_cv_header_stdc = yes; then
  3950. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3952. /* end confdefs.h. */
  3953. #include <stdlib.h>
  3954. _ACEOF
  3955. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3956. $EGREP "free" >/dev/null 2>&1; then :
  3957. else
  3958. ac_cv_header_stdc=no
  3959. fi
  3960. rm -f conftest*
  3961. fi
  3962. if test $ac_cv_header_stdc = yes; then
  3963. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3964. if test "$cross_compiling" = yes; then :
  3965. :
  3966. else
  3967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3968. /* end confdefs.h. */
  3969. #include <ctype.h>
  3970. #include <stdlib.h>
  3971. #if ((' ' & 0x0FF) == 0x020)
  3972. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3973. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3974. #else
  3975. # define ISLOWER(c) \
  3976. (('a' <= (c) && (c) <= 'i') \
  3977. || ('j' <= (c) && (c) <= 'r') \
  3978. || ('s' <= (c) && (c) <= 'z'))
  3979. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3980. #endif
  3981. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3982. int
  3983. main ()
  3984. {
  3985. int i;
  3986. for (i = 0; i < 256; i++)
  3987. if (XOR (islower (i), ISLOWER (i))
  3988. || toupper (i) != TOUPPER (i))
  3989. return 2;
  3990. return 0;
  3991. }
  3992. _ACEOF
  3993. if ac_fn_c_try_run "$LINENO"; then :
  3994. else
  3995. ac_cv_header_stdc=no
  3996. fi
  3997. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3998. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3999. fi
  4000. fi
  4001. fi
  4002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4003. $as_echo "$ac_cv_header_stdc" >&6; }
  4004. if test $ac_cv_header_stdc = yes; then
  4005. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4006. fi
  4007. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4008. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4009. inttypes.h stdint.h unistd.h
  4010. do :
  4011. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4012. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4013. "
  4014. eval as_val=\$$as_ac_Header
  4015. if test "x$as_val" = x""yes; then :
  4016. cat >>confdefs.h <<_ACEOF
  4017. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4018. _ACEOF
  4019. fi
  4020. done
  4021. for ac_header in alloca.h malloc.h paths.h syslog.h string.h unistd.h fcntl.h stdio.h limits.h
  4022. do :
  4023. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4024. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4025. eval as_val=\$$as_ac_Header
  4026. if test "x$as_val" = x""yes; then :
  4027. cat >>confdefs.h <<_ACEOF
  4028. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4029. _ACEOF
  4030. fi
  4031. done
  4032. if test x$gcc_no_link = xyes; then
  4033. # Presume the ISO C functions are available; add target-specific
  4034. # configuration here if required.
  4035. $as_echo "#define HAVE_STRNCPY 1" >>confdefs.h
  4036. $as_echo "#define HAVE_STRNCAT 1" >>confdefs.h
  4037. else
  4038. for ac_func in memmove mempcpy strncpy strncat
  4039. do :
  4040. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4041. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4042. eval as_val=\$$as_ac_var
  4043. if test "x$as_val" = x""yes; then :
  4044. cat >>confdefs.h <<_ACEOF
  4045. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4046. _ACEOF
  4047. fi
  4048. done
  4049. fi
  4050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is usable" >&5
  4051. $as_echo_n "checking whether vsnprintf is usable... " >&6; }
  4052. if test "$cross_compiling" = yes; then :
  4053. ssp_have_usable_vsnprintf=undef
  4054. else
  4055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4056. /* end confdefs.h. */
  4057. #include <stdarg.h>
  4058. #include <string.h>
  4059. #include <stdio.h>
  4060. int foo (char *buf, size_t n, const char *fmt, ...)
  4061. {
  4062. va_list ap;
  4063. int ret;
  4064. va_start (ap, fmt);
  4065. ret = vsnprintf (buf, n, fmt, ap);
  4066. va_end (ap);
  4067. return ret;
  4068. }
  4069. int
  4070. main ()
  4071. {
  4072. char buf[8]; memset (buf, 'A', sizeof (buf));
  4073. if (foo (buf, 4, ".%s.", "CDEFG") != 7)
  4074. return 1;
  4075. return memcmp (buf, ".CD\0AAAA", sizeof (buf)) != 0;
  4076. ;
  4077. return 0;
  4078. }
  4079. _ACEOF
  4080. if ac_fn_c_try_run "$LINENO"; then :
  4081. ssp_have_usable_vsnprintf=define
  4082. else
  4083. ssp_have_usable_vsnprintf=undef
  4084. fi
  4085. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4086. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4087. fi
  4088. if test "x$ssp_have_usable_vsnprintf" = xdefine; then
  4089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4090. $as_echo "yes" >&6; }
  4091. $as_echo "#define HAVE_USABLE_VSNPRINTF 1" >>confdefs.h
  4092. else
  4093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4094. $as_echo "no" >&6; }
  4095. fi
  4096. case `pwd` in
  4097. *\ * | *\ *)
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4099. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4100. esac
  4101. macro_version='2.2.7a'
  4102. macro_revision='1.3134'
  4103. ltmain="$ac_aux_dir/ltmain.sh"
  4104. # Backslashify metacharacters that are still active within
  4105. # double-quoted strings.
  4106. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4107. # Same as above, but do not quote variable references.
  4108. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4109. # Sed substitution to delay expansion of an escaped shell variable in a
  4110. # double_quote_subst'ed string.
  4111. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4112. # Sed substitution to delay expansion of an escaped single quote.
  4113. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4114. # Sed substitution to avoid accidental globbing in evaled expressions
  4115. no_glob_subst='s/\*/\\\*/g'
  4116. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4117. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4118. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4120. $as_echo_n "checking how to print strings... " >&6; }
  4121. # Test print first, because it will be a builtin if present.
  4122. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4123. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4124. ECHO='print -r --'
  4125. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4126. ECHO='printf %s\n'
  4127. else
  4128. # Use this function as a fallback that always works.
  4129. func_fallback_echo ()
  4130. {
  4131. eval 'cat <<_LTECHO_EOF
  4132. $1
  4133. _LTECHO_EOF'
  4134. }
  4135. ECHO='func_fallback_echo'
  4136. fi
  4137. # func_echo_all arg...
  4138. # Invoke $ECHO with all args, space-separated.
  4139. func_echo_all ()
  4140. {
  4141. $ECHO ""
  4142. }
  4143. case "$ECHO" in
  4144. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4145. $as_echo "printf" >&6; } ;;
  4146. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4147. $as_echo "print -r" >&6; } ;;
  4148. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4149. $as_echo "cat" >&6; } ;;
  4150. esac
  4151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4152. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4153. if test "${ac_cv_path_SED+set}" = set; then :
  4154. $as_echo_n "(cached) " >&6
  4155. else
  4156. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4157. for ac_i in 1 2 3 4 5 6 7; do
  4158. ac_script="$ac_script$as_nl$ac_script"
  4159. done
  4160. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4161. { ac_script=; unset ac_script;}
  4162. if test -z "$SED"; then
  4163. ac_path_SED_found=false
  4164. # Loop through the user's path and test for each of PROGNAME-LIST
  4165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4166. for as_dir in $PATH
  4167. do
  4168. IFS=$as_save_IFS
  4169. test -z "$as_dir" && as_dir=.
  4170. for ac_prog in sed gsed; do
  4171. for ac_exec_ext in '' $ac_executable_extensions; do
  4172. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4173. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4174. # Check for GNU ac_path_SED and select it if it is found.
  4175. # Check for GNU $ac_path_SED
  4176. case `"$ac_path_SED" --version 2>&1` in
  4177. *GNU*)
  4178. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4179. *)
  4180. ac_count=0
  4181. $as_echo_n 0123456789 >"conftest.in"
  4182. while :
  4183. do
  4184. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4185. mv "conftest.tmp" "conftest.in"
  4186. cp "conftest.in" "conftest.nl"
  4187. $as_echo '' >> "conftest.nl"
  4188. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4189. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4190. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4191. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4192. # Best one so far, save it but keep looking for a better one
  4193. ac_cv_path_SED="$ac_path_SED"
  4194. ac_path_SED_max=$ac_count
  4195. fi
  4196. # 10*(2^10) chars as input seems more than enough
  4197. test $ac_count -gt 10 && break
  4198. done
  4199. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4200. esac
  4201. $ac_path_SED_found && break 3
  4202. done
  4203. done
  4204. done
  4205. IFS=$as_save_IFS
  4206. if test -z "$ac_cv_path_SED"; then
  4207. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4208. fi
  4209. else
  4210. ac_cv_path_SED=$SED
  4211. fi
  4212. fi
  4213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4214. $as_echo "$ac_cv_path_SED" >&6; }
  4215. SED="$ac_cv_path_SED"
  4216. rm -f conftest.sed
  4217. test -z "$SED" && SED=sed
  4218. Xsed="$SED -e 1s/^X//"
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4220. $as_echo_n "checking for fgrep... " >&6; }
  4221. if test "${ac_cv_path_FGREP+set}" = set; then :
  4222. $as_echo_n "(cached) " >&6
  4223. else
  4224. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4225. then ac_cv_path_FGREP="$GREP -F"
  4226. else
  4227. if test -z "$FGREP"; then
  4228. ac_path_FGREP_found=false
  4229. # Loop through the user's path and test for each of PROGNAME-LIST
  4230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4231. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4232. do
  4233. IFS=$as_save_IFS
  4234. test -z "$as_dir" && as_dir=.
  4235. for ac_prog in fgrep; do
  4236. for ac_exec_ext in '' $ac_executable_extensions; do
  4237. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4238. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4239. # Check for GNU ac_path_FGREP and select it if it is found.
  4240. # Check for GNU $ac_path_FGREP
  4241. case `"$ac_path_FGREP" --version 2>&1` in
  4242. *GNU*)
  4243. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4244. *)
  4245. ac_count=0
  4246. $as_echo_n 0123456789 >"conftest.in"
  4247. while :
  4248. do
  4249. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4250. mv "conftest.tmp" "conftest.in"
  4251. cp "conftest.in" "conftest.nl"
  4252. $as_echo 'FGREP' >> "conftest.nl"
  4253. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4254. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4255. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4256. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4257. # Best one so far, save it but keep looking for a better one
  4258. ac_cv_path_FGREP="$ac_path_FGREP"
  4259. ac_path_FGREP_max=$ac_count
  4260. fi
  4261. # 10*(2^10) chars as input seems more than enough
  4262. test $ac_count -gt 10 && break
  4263. done
  4264. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4265. esac
  4266. $ac_path_FGREP_found && break 3
  4267. done
  4268. done
  4269. done
  4270. IFS=$as_save_IFS
  4271. if test -z "$ac_cv_path_FGREP"; then
  4272. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4273. fi
  4274. else
  4275. ac_cv_path_FGREP=$FGREP
  4276. fi
  4277. fi
  4278. fi
  4279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4280. $as_echo "$ac_cv_path_FGREP" >&6; }
  4281. FGREP="$ac_cv_path_FGREP"
  4282. test -z "$GREP" && GREP=grep
  4283. # Check whether --with-gnu-ld was given.
  4284. if test "${with_gnu_ld+set}" = set; then :
  4285. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4286. else
  4287. with_gnu_ld=no
  4288. fi
  4289. ac_prog=ld
  4290. if test "$GCC" = yes; then
  4291. # Check if gcc -print-prog-name=ld gives a path.
  4292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4293. $as_echo_n "checking for ld used by $CC... " >&6; }
  4294. case $host in
  4295. *-*-mingw*)
  4296. # gcc leaves a trailing carriage return which upsets mingw
  4297. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4298. *)
  4299. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4300. esac
  4301. case $ac_prog in
  4302. # Accept absolute paths.
  4303. [\\/]* | ?:[\\/]*)
  4304. re_direlt='/[^/][^/]*/\.\./'
  4305. # Canonicalize the pathname of ld
  4306. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4307. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4308. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4309. done
  4310. test -z "$LD" && LD="$ac_prog"
  4311. ;;
  4312. "")
  4313. # If it fails, then pretend we aren't using GCC.
  4314. ac_prog=ld
  4315. ;;
  4316. *)
  4317. # If it is relative, then search for the first ld in PATH.
  4318. with_gnu_ld=unknown
  4319. ;;
  4320. esac
  4321. elif test "$with_gnu_ld" = yes; then
  4322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4323. $as_echo_n "checking for GNU ld... " >&6; }
  4324. else
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4326. $as_echo_n "checking for non-GNU ld... " >&6; }
  4327. fi
  4328. if test "${lt_cv_path_LD+set}" = set; then :
  4329. $as_echo_n "(cached) " >&6
  4330. else
  4331. if test -z "$LD"; then
  4332. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4333. for ac_dir in $PATH; do
  4334. IFS="$lt_save_ifs"
  4335. test -z "$ac_dir" && ac_dir=.
  4336. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4337. lt_cv_path_LD="$ac_dir/$ac_prog"
  4338. # Check to see if the program is GNU ld. I'd rather use --version,
  4339. # but apparently some variants of GNU ld only accept -v.
  4340. # Break only if it was the GNU/non-GNU ld that we prefer.
  4341. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4342. *GNU* | *'with BFD'*)
  4343. test "$with_gnu_ld" != no && break
  4344. ;;
  4345. *)
  4346. test "$with_gnu_ld" != yes && break
  4347. ;;
  4348. esac
  4349. fi
  4350. done
  4351. IFS="$lt_save_ifs"
  4352. else
  4353. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4354. fi
  4355. fi
  4356. LD="$lt_cv_path_LD"
  4357. if test -n "$LD"; then
  4358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4359. $as_echo "$LD" >&6; }
  4360. else
  4361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4362. $as_echo "no" >&6; }
  4363. fi
  4364. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4366. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4367. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4368. $as_echo_n "(cached) " >&6
  4369. else
  4370. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4371. case `$LD -v 2>&1 </dev/null` in
  4372. *GNU* | *'with BFD'*)
  4373. lt_cv_prog_gnu_ld=yes
  4374. ;;
  4375. *)
  4376. lt_cv_prog_gnu_ld=no
  4377. ;;
  4378. esac
  4379. fi
  4380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4381. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4382. with_gnu_ld=$lt_cv_prog_gnu_ld
  4383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4384. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4385. if test "${lt_cv_path_NM+set}" = set; then :
  4386. $as_echo_n "(cached) " >&6
  4387. else
  4388. if test -n "$NM"; then
  4389. # Let the user override the test.
  4390. lt_cv_path_NM="$NM"
  4391. else
  4392. lt_nm_to_check="${ac_tool_prefix}nm"
  4393. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4394. lt_nm_to_check="$lt_nm_to_check nm"
  4395. fi
  4396. for lt_tmp_nm in $lt_nm_to_check; do
  4397. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4398. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4399. IFS="$lt_save_ifs"
  4400. test -z "$ac_dir" && ac_dir=.
  4401. tmp_nm="$ac_dir/$lt_tmp_nm"
  4402. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4403. # Check to see if the nm accepts a BSD-compat flag.
  4404. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4405. # nm: unknown option "B" ignored
  4406. # Tru64's nm complains that /dev/null is an invalid object file
  4407. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4408. */dev/null* | *'Invalid file or object type'*)
  4409. lt_cv_path_NM="$tmp_nm -B"
  4410. break
  4411. ;;
  4412. *)
  4413. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4414. */dev/null*)
  4415. lt_cv_path_NM="$tmp_nm -p"
  4416. break
  4417. ;;
  4418. *)
  4419. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4420. continue # so that we can try to find one that supports BSD flags
  4421. ;;
  4422. esac
  4423. ;;
  4424. esac
  4425. fi
  4426. done
  4427. IFS="$lt_save_ifs"
  4428. done
  4429. : ${lt_cv_path_NM=no}
  4430. fi
  4431. fi
  4432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4433. $as_echo "$lt_cv_path_NM" >&6; }
  4434. if test "$lt_cv_path_NM" != "no"; then
  4435. NM="$lt_cv_path_NM"
  4436. else
  4437. # Didn't find any BSD compatible name lister, look for dumpbin.
  4438. if test -n "$DUMPBIN"; then :
  4439. # Let the user override the test.
  4440. else
  4441. if test -n "$ac_tool_prefix"; then
  4442. for ac_prog in dumpbin "link -dump"
  4443. do
  4444. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4445. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4447. $as_echo_n "checking for $ac_word... " >&6; }
  4448. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4449. $as_echo_n "(cached) " >&6
  4450. else
  4451. if test -n "$DUMPBIN"; then
  4452. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4453. else
  4454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4455. for as_dir in $PATH
  4456. do
  4457. IFS=$as_save_IFS
  4458. test -z "$as_dir" && as_dir=.
  4459. for ac_exec_ext in '' $ac_executable_extensions; do
  4460. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4461. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4462. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4463. break 2
  4464. fi
  4465. done
  4466. done
  4467. IFS=$as_save_IFS
  4468. fi
  4469. fi
  4470. DUMPBIN=$ac_cv_prog_DUMPBIN
  4471. if test -n "$DUMPBIN"; then
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4473. $as_echo "$DUMPBIN" >&6; }
  4474. else
  4475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4476. $as_echo "no" >&6; }
  4477. fi
  4478. test -n "$DUMPBIN" && break
  4479. done
  4480. fi
  4481. if test -z "$DUMPBIN"; then
  4482. ac_ct_DUMPBIN=$DUMPBIN
  4483. for ac_prog in dumpbin "link -dump"
  4484. do
  4485. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4486. set dummy $ac_prog; ac_word=$2
  4487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4488. $as_echo_n "checking for $ac_word... " >&6; }
  4489. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4490. $as_echo_n "(cached) " >&6
  4491. else
  4492. if test -n "$ac_ct_DUMPBIN"; then
  4493. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4494. else
  4495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4496. for as_dir in $PATH
  4497. do
  4498. IFS=$as_save_IFS
  4499. test -z "$as_dir" && as_dir=.
  4500. for ac_exec_ext in '' $ac_executable_extensions; do
  4501. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4502. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4503. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4504. break 2
  4505. fi
  4506. done
  4507. done
  4508. IFS=$as_save_IFS
  4509. fi
  4510. fi
  4511. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4512. if test -n "$ac_ct_DUMPBIN"; then
  4513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4514. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4515. else
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4517. $as_echo "no" >&6; }
  4518. fi
  4519. test -n "$ac_ct_DUMPBIN" && break
  4520. done
  4521. if test "x$ac_ct_DUMPBIN" = x; then
  4522. DUMPBIN=":"
  4523. else
  4524. case $cross_compiling:$ac_tool_warned in
  4525. yes:)
  4526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4527. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4528. ac_tool_warned=yes ;;
  4529. esac
  4530. DUMPBIN=$ac_ct_DUMPBIN
  4531. fi
  4532. fi
  4533. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4534. *COFF*)
  4535. DUMPBIN="$DUMPBIN -symbols"
  4536. ;;
  4537. *)
  4538. DUMPBIN=:
  4539. ;;
  4540. esac
  4541. fi
  4542. if test "$DUMPBIN" != ":"; then
  4543. NM="$DUMPBIN"
  4544. fi
  4545. fi
  4546. test -z "$NM" && NM=nm
  4547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4548. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4549. if test "${lt_cv_nm_interface+set}" = set; then :
  4550. $as_echo_n "(cached) " >&6
  4551. else
  4552. lt_cv_nm_interface="BSD nm"
  4553. echo "int some_variable = 0;" > conftest.$ac_ext
  4554. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4555. (eval "$ac_compile" 2>conftest.err)
  4556. cat conftest.err >&5
  4557. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4558. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4559. cat conftest.err >&5
  4560. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4561. cat conftest.out >&5
  4562. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4563. lt_cv_nm_interface="MS dumpbin"
  4564. fi
  4565. rm -f conftest*
  4566. fi
  4567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4568. $as_echo "$lt_cv_nm_interface" >&6; }
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4570. $as_echo_n "checking whether ln -s works... " >&6; }
  4571. LN_S=$as_ln_s
  4572. if test "$LN_S" = "ln -s"; then
  4573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4574. $as_echo "yes" >&6; }
  4575. else
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4577. $as_echo "no, using $LN_S" >&6; }
  4578. fi
  4579. # find the maximum length of command line arguments
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4581. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4582. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4583. $as_echo_n "(cached) " >&6
  4584. else
  4585. i=0
  4586. teststring="ABCD"
  4587. case $build_os in
  4588. msdosdjgpp*)
  4589. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4590. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4591. # during glob expansion). Even if it were fixed, the result of this
  4592. # check would be larger than it should be.
  4593. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4594. ;;
  4595. gnu*)
  4596. # Under GNU Hurd, this test is not required because there is
  4597. # no limit to the length of command line arguments.
  4598. # Libtool will interpret -1 as no limit whatsoever
  4599. lt_cv_sys_max_cmd_len=-1;
  4600. ;;
  4601. cygwin* | mingw* | cegcc*)
  4602. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4603. # about 5 minutes as the teststring grows exponentially.
  4604. # Worse, since 9x/ME are not pre-emptively multitasking,
  4605. # you end up with a "frozen" computer, even though with patience
  4606. # the test eventually succeeds (with a max line length of 256k).
  4607. # Instead, let's just punt: use the minimum linelength reported by
  4608. # all of the supported platforms: 8192 (on NT/2K/XP).
  4609. lt_cv_sys_max_cmd_len=8192;
  4610. ;;
  4611. mint*)
  4612. # On MiNT this can take a long time and run out of memory.
  4613. lt_cv_sys_max_cmd_len=8192;
  4614. ;;
  4615. amigaos*)
  4616. # On AmigaOS with pdksh, this test takes hours, literally.
  4617. # So we just punt and use a minimum line length of 8192.
  4618. lt_cv_sys_max_cmd_len=8192;
  4619. ;;
  4620. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4621. # This has been around since 386BSD, at least. Likely further.
  4622. if test -x /sbin/sysctl; then
  4623. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4624. elif test -x /usr/sbin/sysctl; then
  4625. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4626. else
  4627. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4628. fi
  4629. # And add a safety zone
  4630. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4631. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4632. ;;
  4633. interix*)
  4634. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4635. lt_cv_sys_max_cmd_len=196608
  4636. ;;
  4637. osf*)
  4638. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4639. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4640. # nice to cause kernel panics so lets avoid the loop below.
  4641. # First set a reasonable default.
  4642. lt_cv_sys_max_cmd_len=16384
  4643. #
  4644. if test -x /sbin/sysconfig; then
  4645. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4646. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4647. esac
  4648. fi
  4649. ;;
  4650. sco3.2v5*)
  4651. lt_cv_sys_max_cmd_len=102400
  4652. ;;
  4653. sysv5* | sco5v6* | sysv4.2uw2*)
  4654. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4655. if test -n "$kargmax"; then
  4656. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4657. else
  4658. lt_cv_sys_max_cmd_len=32768
  4659. fi
  4660. ;;
  4661. *)
  4662. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4663. if test -n "$lt_cv_sys_max_cmd_len"; then
  4664. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4665. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4666. else
  4667. # Make teststring a little bigger before we do anything with it.
  4668. # a 1K string should be a reasonable start.
  4669. for i in 1 2 3 4 5 6 7 8 ; do
  4670. teststring=$teststring$teststring
  4671. done
  4672. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4673. # If test is not a shell built-in, we'll probably end up computing a
  4674. # maximum length that is only half of the actual maximum length, but
  4675. # we can't tell.
  4676. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4677. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4678. test $i != 17 # 1/2 MB should be enough
  4679. do
  4680. i=`expr $i + 1`
  4681. teststring=$teststring$teststring
  4682. done
  4683. # Only check the string length outside the loop.
  4684. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4685. teststring=
  4686. # Add a significant safety factor because C++ compilers can tack on
  4687. # massive amounts of additional arguments before passing them to the
  4688. # linker. It appears as though 1/2 is a usable value.
  4689. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4690. fi
  4691. ;;
  4692. esac
  4693. fi
  4694. if test -n $lt_cv_sys_max_cmd_len ; then
  4695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4696. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4697. else
  4698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4699. $as_echo "none" >&6; }
  4700. fi
  4701. max_cmd_len=$lt_cv_sys_max_cmd_len
  4702. : ${CP="cp -f"}
  4703. : ${MV="mv -f"}
  4704. : ${RM="rm -f"}
  4705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4706. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4707. # Try some XSI features
  4708. xsi_shell=no
  4709. ( _lt_dummy="a/b/c"
  4710. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4711. = c,a/b,, \
  4712. && eval 'test $(( 1 + 1 )) -eq 2 \
  4713. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4714. && xsi_shell=yes
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4716. $as_echo "$xsi_shell" >&6; }
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4718. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4719. lt_shell_append=no
  4720. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4721. >/dev/null 2>&1 \
  4722. && lt_shell_append=yes
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4724. $as_echo "$lt_shell_append" >&6; }
  4725. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4726. lt_unset=unset
  4727. else
  4728. lt_unset=false
  4729. fi
  4730. # test EBCDIC or ASCII
  4731. case `echo X|tr X '\101'` in
  4732. A) # ASCII based system
  4733. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4734. lt_SP2NL='tr \040 \012'
  4735. lt_NL2SP='tr \015\012 \040\040'
  4736. ;;
  4737. *) # EBCDIC based system
  4738. lt_SP2NL='tr \100 \n'
  4739. lt_NL2SP='tr \r\n \100\100'
  4740. ;;
  4741. esac
  4742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4743. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4744. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4745. $as_echo_n "(cached) " >&6
  4746. else
  4747. lt_cv_ld_reload_flag='-r'
  4748. fi
  4749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4750. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4751. reload_flag=$lt_cv_ld_reload_flag
  4752. case $reload_flag in
  4753. "" | " "*) ;;
  4754. *) reload_flag=" $reload_flag" ;;
  4755. esac
  4756. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4757. case $host_os in
  4758. darwin*)
  4759. if test "$GCC" = yes; then
  4760. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4761. else
  4762. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4763. fi
  4764. ;;
  4765. esac
  4766. if test -n "$ac_tool_prefix"; then
  4767. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4768. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4770. $as_echo_n "checking for $ac_word... " >&6; }
  4771. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4772. $as_echo_n "(cached) " >&6
  4773. else
  4774. if test -n "$OBJDUMP"; then
  4775. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4776. else
  4777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4778. for as_dir in $PATH
  4779. do
  4780. IFS=$as_save_IFS
  4781. test -z "$as_dir" && as_dir=.
  4782. for ac_exec_ext in '' $ac_executable_extensions; do
  4783. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4784. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4785. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4786. break 2
  4787. fi
  4788. done
  4789. done
  4790. IFS=$as_save_IFS
  4791. fi
  4792. fi
  4793. OBJDUMP=$ac_cv_prog_OBJDUMP
  4794. if test -n "$OBJDUMP"; then
  4795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4796. $as_echo "$OBJDUMP" >&6; }
  4797. else
  4798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4799. $as_echo "no" >&6; }
  4800. fi
  4801. fi
  4802. if test -z "$ac_cv_prog_OBJDUMP"; then
  4803. ac_ct_OBJDUMP=$OBJDUMP
  4804. # Extract the first word of "objdump", so it can be a program name with args.
  4805. set dummy objdump; ac_word=$2
  4806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4807. $as_echo_n "checking for $ac_word... " >&6; }
  4808. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4809. $as_echo_n "(cached) " >&6
  4810. else
  4811. if test -n "$ac_ct_OBJDUMP"; then
  4812. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4813. else
  4814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4815. for as_dir in $PATH
  4816. do
  4817. IFS=$as_save_IFS
  4818. test -z "$as_dir" && as_dir=.
  4819. for ac_exec_ext in '' $ac_executable_extensions; do
  4820. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4821. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4822. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4823. break 2
  4824. fi
  4825. done
  4826. done
  4827. IFS=$as_save_IFS
  4828. fi
  4829. fi
  4830. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4831. if test -n "$ac_ct_OBJDUMP"; then
  4832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4833. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4834. else
  4835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4836. $as_echo "no" >&6; }
  4837. fi
  4838. if test "x$ac_ct_OBJDUMP" = x; then
  4839. OBJDUMP="false"
  4840. else
  4841. case $cross_compiling:$ac_tool_warned in
  4842. yes:)
  4843. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4844. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4845. ac_tool_warned=yes ;;
  4846. esac
  4847. OBJDUMP=$ac_ct_OBJDUMP
  4848. fi
  4849. else
  4850. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4851. fi
  4852. test -z "$OBJDUMP" && OBJDUMP=objdump
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4854. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4855. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4856. $as_echo_n "(cached) " >&6
  4857. else
  4858. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4859. lt_cv_file_magic_test_file=
  4860. lt_cv_deplibs_check_method='unknown'
  4861. # Need to set the preceding variable on all platforms that support
  4862. # interlibrary dependencies.
  4863. # 'none' -- dependencies not supported.
  4864. # `unknown' -- same as none, but documents that we really don't know.
  4865. # 'pass_all' -- all dependencies passed with no checks.
  4866. # 'test_compile' -- check by making test program.
  4867. # 'file_magic [[regex]]' -- check by looking for files in library path
  4868. # which responds to the $file_magic_cmd with a given extended regex.
  4869. # If you have `file' or equivalent on your system and you're not sure
  4870. # whether `pass_all' will *always* work, you probably want this one.
  4871. case $host_os in
  4872. aix[4-9]*)
  4873. lt_cv_deplibs_check_method=pass_all
  4874. ;;
  4875. beos*)
  4876. lt_cv_deplibs_check_method=pass_all
  4877. ;;
  4878. bsdi[45]*)
  4879. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4880. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4881. lt_cv_file_magic_test_file=/shlib/libc.so
  4882. ;;
  4883. cygwin*)
  4884. # func_win32_libid is a shell function defined in ltmain.sh
  4885. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4886. lt_cv_file_magic_cmd='func_win32_libid'
  4887. ;;
  4888. mingw* | pw32*)
  4889. # Base MSYS/MinGW do not provide the 'file' command needed by
  4890. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4891. # unless we find 'file', for example because we are cross-compiling.
  4892. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4893. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4894. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4895. lt_cv_file_magic_cmd='func_win32_libid'
  4896. else
  4897. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4898. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4899. fi
  4900. ;;
  4901. cegcc*)
  4902. # use the weaker test based on 'objdump'. See mingw*.
  4903. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4904. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4905. ;;
  4906. darwin* | rhapsody*)
  4907. lt_cv_deplibs_check_method=pass_all
  4908. ;;
  4909. freebsd* | dragonfly*)
  4910. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4911. case $host_cpu in
  4912. i*86 )
  4913. # Not sure whether the presence of OpenBSD here was a mistake.
  4914. # Let's accept both of them until this is cleared up.
  4915. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4916. lt_cv_file_magic_cmd=/usr/bin/file
  4917. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4918. ;;
  4919. esac
  4920. else
  4921. lt_cv_deplibs_check_method=pass_all
  4922. fi
  4923. ;;
  4924. gnu*)
  4925. lt_cv_deplibs_check_method=pass_all
  4926. ;;
  4927. haiku*)
  4928. lt_cv_deplibs_check_method=pass_all
  4929. ;;
  4930. hpux10.20* | hpux11*)
  4931. lt_cv_file_magic_cmd=/usr/bin/file
  4932. case $host_cpu in
  4933. ia64*)
  4934. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4935. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4936. ;;
  4937. hppa*64*)
  4938. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4939. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4940. ;;
  4941. *)
  4942. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4943. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4944. ;;
  4945. esac
  4946. ;;
  4947. interix[3-9]*)
  4948. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4949. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4950. ;;
  4951. irix5* | irix6* | nonstopux*)
  4952. case $LD in
  4953. *-32|*"-32 ") libmagic=32-bit;;
  4954. *-n32|*"-n32 ") libmagic=N32;;
  4955. *-64|*"-64 ") libmagic=64-bit;;
  4956. *) libmagic=never-match;;
  4957. esac
  4958. lt_cv_deplibs_check_method=pass_all
  4959. ;;
  4960. # This must be Linux ELF.
  4961. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4962. lt_cv_deplibs_check_method=pass_all
  4963. ;;
  4964. netbsd*)
  4965. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4966. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4967. else
  4968. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4969. fi
  4970. ;;
  4971. newos6*)
  4972. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4973. lt_cv_file_magic_cmd=/usr/bin/file
  4974. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4975. ;;
  4976. *nto* | *qnx*)
  4977. lt_cv_deplibs_check_method=pass_all
  4978. ;;
  4979. openbsd*)
  4980. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4981. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4982. else
  4983. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4984. fi
  4985. ;;
  4986. osf3* | osf4* | osf5*)
  4987. lt_cv_deplibs_check_method=pass_all
  4988. ;;
  4989. rdos*)
  4990. lt_cv_deplibs_check_method=pass_all
  4991. ;;
  4992. solaris*)
  4993. lt_cv_deplibs_check_method=pass_all
  4994. ;;
  4995. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4996. lt_cv_deplibs_check_method=pass_all
  4997. ;;
  4998. sysv4 | sysv4.3*)
  4999. case $host_vendor in
  5000. motorola)
  5001. 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]'
  5002. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5003. ;;
  5004. ncr)
  5005. lt_cv_deplibs_check_method=pass_all
  5006. ;;
  5007. sequent)
  5008. lt_cv_file_magic_cmd='/bin/file'
  5009. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5010. ;;
  5011. sni)
  5012. lt_cv_file_magic_cmd='/bin/file'
  5013. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5014. lt_cv_file_magic_test_file=/lib/libc.so
  5015. ;;
  5016. siemens)
  5017. lt_cv_deplibs_check_method=pass_all
  5018. ;;
  5019. pc)
  5020. lt_cv_deplibs_check_method=pass_all
  5021. ;;
  5022. esac
  5023. ;;
  5024. tpf*)
  5025. lt_cv_deplibs_check_method=pass_all
  5026. ;;
  5027. esac
  5028. fi
  5029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5030. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5031. file_magic_cmd=$lt_cv_file_magic_cmd
  5032. deplibs_check_method=$lt_cv_deplibs_check_method
  5033. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5034. if test -n "$ac_tool_prefix"; then
  5035. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5036. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5038. $as_echo_n "checking for $ac_word... " >&6; }
  5039. if test "${ac_cv_prog_AR+set}" = set; then :
  5040. $as_echo_n "(cached) " >&6
  5041. else
  5042. if test -n "$AR"; then
  5043. ac_cv_prog_AR="$AR" # Let the user override the test.
  5044. else
  5045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5046. for as_dir in $PATH
  5047. do
  5048. IFS=$as_save_IFS
  5049. test -z "$as_dir" && as_dir=.
  5050. for ac_exec_ext in '' $ac_executable_extensions; do
  5051. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5052. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5053. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5054. break 2
  5055. fi
  5056. done
  5057. done
  5058. IFS=$as_save_IFS
  5059. fi
  5060. fi
  5061. AR=$ac_cv_prog_AR
  5062. if test -n "$AR"; then
  5063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5064. $as_echo "$AR" >&6; }
  5065. else
  5066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5067. $as_echo "no" >&6; }
  5068. fi
  5069. fi
  5070. if test -z "$ac_cv_prog_AR"; then
  5071. ac_ct_AR=$AR
  5072. # Extract the first word of "ar", so it can be a program name with args.
  5073. set dummy ar; ac_word=$2
  5074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5075. $as_echo_n "checking for $ac_word... " >&6; }
  5076. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5077. $as_echo_n "(cached) " >&6
  5078. else
  5079. if test -n "$ac_ct_AR"; then
  5080. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5081. else
  5082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5083. for as_dir in $PATH
  5084. do
  5085. IFS=$as_save_IFS
  5086. test -z "$as_dir" && as_dir=.
  5087. for ac_exec_ext in '' $ac_executable_extensions; do
  5088. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5089. ac_cv_prog_ac_ct_AR="ar"
  5090. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5091. break 2
  5092. fi
  5093. done
  5094. done
  5095. IFS=$as_save_IFS
  5096. fi
  5097. fi
  5098. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5099. if test -n "$ac_ct_AR"; then
  5100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5101. $as_echo "$ac_ct_AR" >&6; }
  5102. else
  5103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5104. $as_echo "no" >&6; }
  5105. fi
  5106. if test "x$ac_ct_AR" = x; then
  5107. AR="false"
  5108. else
  5109. case $cross_compiling:$ac_tool_warned in
  5110. yes:)
  5111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5112. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5113. ac_tool_warned=yes ;;
  5114. esac
  5115. AR=$ac_ct_AR
  5116. fi
  5117. else
  5118. AR="$ac_cv_prog_AR"
  5119. fi
  5120. test -z "$AR" && AR=ar
  5121. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5122. if test -n "$ac_tool_prefix"; then
  5123. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5124. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5126. $as_echo_n "checking for $ac_word... " >&6; }
  5127. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5128. $as_echo_n "(cached) " >&6
  5129. else
  5130. if test -n "$STRIP"; then
  5131. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5132. else
  5133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5134. for as_dir in $PATH
  5135. do
  5136. IFS=$as_save_IFS
  5137. test -z "$as_dir" && as_dir=.
  5138. for ac_exec_ext in '' $ac_executable_extensions; do
  5139. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5140. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5141. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5142. break 2
  5143. fi
  5144. done
  5145. done
  5146. IFS=$as_save_IFS
  5147. fi
  5148. fi
  5149. STRIP=$ac_cv_prog_STRIP
  5150. if test -n "$STRIP"; then
  5151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5152. $as_echo "$STRIP" >&6; }
  5153. else
  5154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5155. $as_echo "no" >&6; }
  5156. fi
  5157. fi
  5158. if test -z "$ac_cv_prog_STRIP"; then
  5159. ac_ct_STRIP=$STRIP
  5160. # Extract the first word of "strip", so it can be a program name with args.
  5161. set dummy strip; ac_word=$2
  5162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5163. $as_echo_n "checking for $ac_word... " >&6; }
  5164. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5165. $as_echo_n "(cached) " >&6
  5166. else
  5167. if test -n "$ac_ct_STRIP"; then
  5168. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5169. else
  5170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5171. for as_dir in $PATH
  5172. do
  5173. IFS=$as_save_IFS
  5174. test -z "$as_dir" && as_dir=.
  5175. for ac_exec_ext in '' $ac_executable_extensions; do
  5176. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5177. ac_cv_prog_ac_ct_STRIP="strip"
  5178. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5179. break 2
  5180. fi
  5181. done
  5182. done
  5183. IFS=$as_save_IFS
  5184. fi
  5185. fi
  5186. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5187. if test -n "$ac_ct_STRIP"; then
  5188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5189. $as_echo "$ac_ct_STRIP" >&6; }
  5190. else
  5191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5192. $as_echo "no" >&6; }
  5193. fi
  5194. if test "x$ac_ct_STRIP" = x; then
  5195. STRIP=":"
  5196. else
  5197. case $cross_compiling:$ac_tool_warned in
  5198. yes:)
  5199. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5200. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5201. ac_tool_warned=yes ;;
  5202. esac
  5203. STRIP=$ac_ct_STRIP
  5204. fi
  5205. else
  5206. STRIP="$ac_cv_prog_STRIP"
  5207. fi
  5208. test -z "$STRIP" && STRIP=:
  5209. if test -n "$ac_tool_prefix"; then
  5210. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5211. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5213. $as_echo_n "checking for $ac_word... " >&6; }
  5214. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5215. $as_echo_n "(cached) " >&6
  5216. else
  5217. if test -n "$RANLIB"; then
  5218. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5219. else
  5220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5221. for as_dir in $PATH
  5222. do
  5223. IFS=$as_save_IFS
  5224. test -z "$as_dir" && as_dir=.
  5225. for ac_exec_ext in '' $ac_executable_extensions; do
  5226. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5227. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5228. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5229. break 2
  5230. fi
  5231. done
  5232. done
  5233. IFS=$as_save_IFS
  5234. fi
  5235. fi
  5236. RANLIB=$ac_cv_prog_RANLIB
  5237. if test -n "$RANLIB"; then
  5238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5239. $as_echo "$RANLIB" >&6; }
  5240. else
  5241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5242. $as_echo "no" >&6; }
  5243. fi
  5244. fi
  5245. if test -z "$ac_cv_prog_RANLIB"; then
  5246. ac_ct_RANLIB=$RANLIB
  5247. # Extract the first word of "ranlib", so it can be a program name with args.
  5248. set dummy ranlib; ac_word=$2
  5249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5250. $as_echo_n "checking for $ac_word... " >&6; }
  5251. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5252. $as_echo_n "(cached) " >&6
  5253. else
  5254. if test -n "$ac_ct_RANLIB"; then
  5255. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5256. else
  5257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5258. for as_dir in $PATH
  5259. do
  5260. IFS=$as_save_IFS
  5261. test -z "$as_dir" && as_dir=.
  5262. for ac_exec_ext in '' $ac_executable_extensions; do
  5263. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5264. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5265. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5266. break 2
  5267. fi
  5268. done
  5269. done
  5270. IFS=$as_save_IFS
  5271. fi
  5272. fi
  5273. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5274. if test -n "$ac_ct_RANLIB"; then
  5275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5276. $as_echo "$ac_ct_RANLIB" >&6; }
  5277. else
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5279. $as_echo "no" >&6; }
  5280. fi
  5281. if test "x$ac_ct_RANLIB" = x; then
  5282. RANLIB=":"
  5283. else
  5284. case $cross_compiling:$ac_tool_warned in
  5285. yes:)
  5286. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5287. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5288. ac_tool_warned=yes ;;
  5289. esac
  5290. RANLIB=$ac_ct_RANLIB
  5291. fi
  5292. else
  5293. RANLIB="$ac_cv_prog_RANLIB"
  5294. fi
  5295. test -z "$RANLIB" && RANLIB=:
  5296. # Determine commands to create old-style static archives.
  5297. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5298. old_postinstall_cmds='chmod 644 $oldlib'
  5299. old_postuninstall_cmds=
  5300. if test -n "$RANLIB"; then
  5301. case $host_os in
  5302. openbsd*)
  5303. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5304. ;;
  5305. *)
  5306. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5307. ;;
  5308. esac
  5309. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5310. fi
  5311. case $host_os in
  5312. darwin*)
  5313. lock_old_archive_extraction=yes ;;
  5314. *)
  5315. lock_old_archive_extraction=no ;;
  5316. esac
  5317. # If no C compiler was specified, use CC.
  5318. LTCC=${LTCC-"$CC"}
  5319. # If no C compiler flags were specified, use CFLAGS.
  5320. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5321. # Allow CC to be a program name with arguments.
  5322. compiler=$CC
  5323. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5325. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5326. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5327. $as_echo_n "(cached) " >&6
  5328. else
  5329. # These are sane defaults that work on at least a few old systems.
  5330. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5331. # Character class describing NM global symbol codes.
  5332. symcode='[BCDEGRST]'
  5333. # Regexp to match symbols that can be accessed directly from C.
  5334. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5335. # Define system-specific variables.
  5336. case $host_os in
  5337. aix*)
  5338. symcode='[BCDT]'
  5339. ;;
  5340. cygwin* | mingw* | pw32* | cegcc*)
  5341. symcode='[ABCDGISTW]'
  5342. ;;
  5343. hpux*)
  5344. if test "$host_cpu" = ia64; then
  5345. symcode='[ABCDEGRST]'
  5346. fi
  5347. ;;
  5348. irix* | nonstopux*)
  5349. symcode='[BCDEGRST]'
  5350. ;;
  5351. osf*)
  5352. symcode='[BCDEGQRST]'
  5353. ;;
  5354. solaris*)
  5355. symcode='[BDRT]'
  5356. ;;
  5357. sco3.2v5*)
  5358. symcode='[DT]'
  5359. ;;
  5360. sysv4.2uw2*)
  5361. symcode='[DT]'
  5362. ;;
  5363. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5364. symcode='[ABDT]'
  5365. ;;
  5366. sysv4)
  5367. symcode='[DFNSTU]'
  5368. ;;
  5369. esac
  5370. # If we're using GNU nm, then use its standard symbol codes.
  5371. case `$NM -V 2>&1` in
  5372. *GNU* | *'with BFD'*)
  5373. symcode='[ABCDGIRSTW]' ;;
  5374. esac
  5375. # Transform an extracted symbol line into a proper C declaration.
  5376. # Some systems (esp. on ia64) link data and code symbols differently,
  5377. # so use this general approach.
  5378. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5379. # Transform an extracted symbol line into symbol name and symbol address
  5380. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5381. 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'"
  5382. # Handle CRLF in mingw tool chain
  5383. opt_cr=
  5384. case $build_os in
  5385. mingw*)
  5386. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5387. ;;
  5388. esac
  5389. # Try without a prefix underscore, then with it.
  5390. for ac_symprfx in "" "_"; do
  5391. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5392. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5393. # Write the raw and C identifiers.
  5394. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5395. # Fake it for dumpbin and say T for any non-static function
  5396. # and D for any global variable.
  5397. # Also find C++ and __fastcall symbols from MSVC++,
  5398. # which start with @ or ?.
  5399. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5400. " {last_section=section; section=\$ 3};"\
  5401. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5402. " \$ 0!~/External *\|/{next};"\
  5403. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5404. " {if(hide[section]) next};"\
  5405. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5406. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5407. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5408. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5409. " ' prfx=^$ac_symprfx"
  5410. else
  5411. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5412. fi
  5413. # Check to see that the pipe works correctly.
  5414. pipe_works=no
  5415. rm -f conftest*
  5416. cat > conftest.$ac_ext <<_LT_EOF
  5417. #ifdef __cplusplus
  5418. extern "C" {
  5419. #endif
  5420. char nm_test_var;
  5421. void nm_test_func(void);
  5422. void nm_test_func(void){}
  5423. #ifdef __cplusplus
  5424. }
  5425. #endif
  5426. int main(){nm_test_var='a';nm_test_func();return(0);}
  5427. _LT_EOF
  5428. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5429. (eval $ac_compile) 2>&5
  5430. ac_status=$?
  5431. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5432. test $ac_status = 0; }; then
  5433. # Now try to grab the symbols.
  5434. nlist=conftest.nm
  5435. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5436. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5437. ac_status=$?
  5438. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5439. test $ac_status = 0; } && test -s "$nlist"; then
  5440. # Try sorting and uniquifying the output.
  5441. if sort "$nlist" | uniq > "$nlist"T; then
  5442. mv -f "$nlist"T "$nlist"
  5443. else
  5444. rm -f "$nlist"T
  5445. fi
  5446. # Make sure that we snagged all the symbols we need.
  5447. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5448. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5449. cat <<_LT_EOF > conftest.$ac_ext
  5450. #ifdef __cplusplus
  5451. extern "C" {
  5452. #endif
  5453. _LT_EOF
  5454. # Now generate the symbol file.
  5455. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5456. cat <<_LT_EOF >> conftest.$ac_ext
  5457. /* The mapping between symbol names and symbols. */
  5458. const struct {
  5459. const char *name;
  5460. void *address;
  5461. }
  5462. lt__PROGRAM__LTX_preloaded_symbols[] =
  5463. {
  5464. { "@PROGRAM@", (void *) 0 },
  5465. _LT_EOF
  5466. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5467. cat <<\_LT_EOF >> conftest.$ac_ext
  5468. {0, (void *) 0}
  5469. };
  5470. /* This works around a problem in FreeBSD linker */
  5471. #ifdef FREEBSD_WORKAROUND
  5472. static const void *lt_preloaded_setup() {
  5473. return lt__PROGRAM__LTX_preloaded_symbols;
  5474. }
  5475. #endif
  5476. #ifdef __cplusplus
  5477. }
  5478. #endif
  5479. _LT_EOF
  5480. # Now try linking the two files.
  5481. mv conftest.$ac_objext conftstm.$ac_objext
  5482. lt_save_LIBS="$LIBS"
  5483. lt_save_CFLAGS="$CFLAGS"
  5484. LIBS="conftstm.$ac_objext"
  5485. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5486. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5487. (eval $ac_link) 2>&5
  5488. ac_status=$?
  5489. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5490. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5491. pipe_works=yes
  5492. fi
  5493. LIBS="$lt_save_LIBS"
  5494. CFLAGS="$lt_save_CFLAGS"
  5495. else
  5496. echo "cannot find nm_test_func in $nlist" >&5
  5497. fi
  5498. else
  5499. echo "cannot find nm_test_var in $nlist" >&5
  5500. fi
  5501. else
  5502. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5503. fi
  5504. else
  5505. echo "$progname: failed program was:" >&5
  5506. cat conftest.$ac_ext >&5
  5507. fi
  5508. rm -rf conftest* conftst*
  5509. # Do not use the global_symbol_pipe unless it works.
  5510. if test "$pipe_works" = yes; then
  5511. break
  5512. else
  5513. lt_cv_sys_global_symbol_pipe=
  5514. fi
  5515. done
  5516. fi
  5517. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5518. lt_cv_sys_global_symbol_to_cdecl=
  5519. fi
  5520. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5522. $as_echo "failed" >&6; }
  5523. else
  5524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5525. $as_echo "ok" >&6; }
  5526. fi
  5527. # Check whether --enable-libtool-lock was given.
  5528. if test "${enable_libtool_lock+set}" = set; then :
  5529. enableval=$enable_libtool_lock;
  5530. fi
  5531. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5532. # Some flags need to be propagated to the compiler or linker for good
  5533. # libtool support.
  5534. case $host in
  5535. ia64-*-hpux*)
  5536. # Find out which ABI we are using.
  5537. echo 'int i;' > conftest.$ac_ext
  5538. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5539. (eval $ac_compile) 2>&5
  5540. ac_status=$?
  5541. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5542. test $ac_status = 0; }; then
  5543. case `/usr/bin/file conftest.$ac_objext` in
  5544. *ELF-32*)
  5545. HPUX_IA64_MODE="32"
  5546. ;;
  5547. *ELF-64*)
  5548. HPUX_IA64_MODE="64"
  5549. ;;
  5550. esac
  5551. fi
  5552. rm -rf conftest*
  5553. ;;
  5554. *-*-irix6*)
  5555. # Find out which ABI we are using.
  5556. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5557. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5558. (eval $ac_compile) 2>&5
  5559. ac_status=$?
  5560. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5561. test $ac_status = 0; }; then
  5562. if test "$lt_cv_prog_gnu_ld" = yes; then
  5563. case `/usr/bin/file conftest.$ac_objext` in
  5564. *32-bit*)
  5565. LD="${LD-ld} -melf32bsmip"
  5566. ;;
  5567. *N32*)
  5568. LD="${LD-ld} -melf32bmipn32"
  5569. ;;
  5570. *64-bit*)
  5571. LD="${LD-ld} -melf64bmip"
  5572. ;;
  5573. esac
  5574. else
  5575. case `/usr/bin/file conftest.$ac_objext` in
  5576. *32-bit*)
  5577. LD="${LD-ld} -32"
  5578. ;;
  5579. *N32*)
  5580. LD="${LD-ld} -n32"
  5581. ;;
  5582. *64-bit*)
  5583. LD="${LD-ld} -64"
  5584. ;;
  5585. esac
  5586. fi
  5587. fi
  5588. rm -rf conftest*
  5589. ;;
  5590. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5591. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5592. # Find out which ABI we are using.
  5593. echo 'int i;' > conftest.$ac_ext
  5594. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5595. (eval $ac_compile) 2>&5
  5596. ac_status=$?
  5597. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5598. test $ac_status = 0; }; then
  5599. case `/usr/bin/file conftest.o` in
  5600. *32-bit*)
  5601. case $host in
  5602. x86_64-*kfreebsd*-gnu)
  5603. LD="${LD-ld} -m elf_i386_fbsd"
  5604. ;;
  5605. x86_64-*linux*)
  5606. case `/usr/bin/file conftest.o` in
  5607. *x86-64*)
  5608. LD="${LD-ld} -m elf32_x86_64"
  5609. ;;
  5610. *)
  5611. LD="${LD-ld} -m elf_i386"
  5612. ;;
  5613. esac
  5614. ;;
  5615. powerpc64le-*linux*)
  5616. LD="${LD-ld} -m elf32lppclinux"
  5617. ;;
  5618. powerpc64-*linux*)
  5619. LD="${LD-ld} -m elf32ppclinux"
  5620. ;;
  5621. s390x-*linux*)
  5622. LD="${LD-ld} -m elf_s390"
  5623. ;;
  5624. sparc64-*linux*)
  5625. LD="${LD-ld} -m elf32_sparc"
  5626. ;;
  5627. esac
  5628. ;;
  5629. *64-bit*)
  5630. case $host in
  5631. x86_64-*kfreebsd*-gnu)
  5632. LD="${LD-ld} -m elf_x86_64_fbsd"
  5633. ;;
  5634. x86_64-*linux*)
  5635. LD="${LD-ld} -m elf_x86_64"
  5636. ;;
  5637. powerpcle-*linux*)
  5638. LD="${LD-ld} -m elf64lppc"
  5639. ;;
  5640. powerpc-*linux*)
  5641. LD="${LD-ld} -m elf64ppc"
  5642. ;;
  5643. s390*-*linux*|s390*-*tpf*)
  5644. LD="${LD-ld} -m elf64_s390"
  5645. ;;
  5646. sparc*-*linux*)
  5647. LD="${LD-ld} -m elf64_sparc"
  5648. ;;
  5649. esac
  5650. ;;
  5651. esac
  5652. fi
  5653. rm -rf conftest*
  5654. ;;
  5655. *-*-sco3.2v5*)
  5656. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5657. SAVE_CFLAGS="$CFLAGS"
  5658. CFLAGS="$CFLAGS -belf"
  5659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5660. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5661. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5662. $as_echo_n "(cached) " >&6
  5663. else
  5664. ac_ext=c
  5665. ac_cpp='$CPP $CPPFLAGS'
  5666. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5667. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5668. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5669. if test x$gcc_no_link = xyes; then
  5670. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  5671. fi
  5672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5673. /* end confdefs.h. */
  5674. int
  5675. main ()
  5676. {
  5677. ;
  5678. return 0;
  5679. }
  5680. _ACEOF
  5681. if ac_fn_c_try_link "$LINENO"; then :
  5682. lt_cv_cc_needs_belf=yes
  5683. else
  5684. lt_cv_cc_needs_belf=no
  5685. fi
  5686. rm -f core conftest.err conftest.$ac_objext \
  5687. conftest$ac_exeext conftest.$ac_ext
  5688. ac_ext=c
  5689. ac_cpp='$CPP $CPPFLAGS'
  5690. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5691. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5692. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5693. fi
  5694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5695. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5696. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5697. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5698. CFLAGS="$SAVE_CFLAGS"
  5699. fi
  5700. ;;
  5701. sparc*-*solaris*)
  5702. # Find out which ABI we are using.
  5703. echo 'int i;' > conftest.$ac_ext
  5704. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5705. (eval $ac_compile) 2>&5
  5706. ac_status=$?
  5707. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5708. test $ac_status = 0; }; then
  5709. case `/usr/bin/file conftest.o` in
  5710. *64-bit*)
  5711. case $lt_cv_prog_gnu_ld in
  5712. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5713. *)
  5714. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5715. LD="${LD-ld} -64"
  5716. fi
  5717. ;;
  5718. esac
  5719. ;;
  5720. esac
  5721. fi
  5722. rm -rf conftest*
  5723. ;;
  5724. esac
  5725. need_locks="$enable_libtool_lock"
  5726. case $host_os in
  5727. rhapsody* | darwin*)
  5728. if test -n "$ac_tool_prefix"; then
  5729. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5730. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5732. $as_echo_n "checking for $ac_word... " >&6; }
  5733. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5734. $as_echo_n "(cached) " >&6
  5735. else
  5736. if test -n "$DSYMUTIL"; then
  5737. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5738. else
  5739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5740. for as_dir in $PATH
  5741. do
  5742. IFS=$as_save_IFS
  5743. test -z "$as_dir" && as_dir=.
  5744. for ac_exec_ext in '' $ac_executable_extensions; do
  5745. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5746. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5748. break 2
  5749. fi
  5750. done
  5751. done
  5752. IFS=$as_save_IFS
  5753. fi
  5754. fi
  5755. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5756. if test -n "$DSYMUTIL"; then
  5757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5758. $as_echo "$DSYMUTIL" >&6; }
  5759. else
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5761. $as_echo "no" >&6; }
  5762. fi
  5763. fi
  5764. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5765. ac_ct_DSYMUTIL=$DSYMUTIL
  5766. # Extract the first word of "dsymutil", so it can be a program name with args.
  5767. set dummy dsymutil; ac_word=$2
  5768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5769. $as_echo_n "checking for $ac_word... " >&6; }
  5770. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5771. $as_echo_n "(cached) " >&6
  5772. else
  5773. if test -n "$ac_ct_DSYMUTIL"; then
  5774. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5775. else
  5776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5777. for as_dir in $PATH
  5778. do
  5779. IFS=$as_save_IFS
  5780. test -z "$as_dir" && as_dir=.
  5781. for ac_exec_ext in '' $ac_executable_extensions; do
  5782. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5783. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5784. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5785. break 2
  5786. fi
  5787. done
  5788. done
  5789. IFS=$as_save_IFS
  5790. fi
  5791. fi
  5792. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5793. if test -n "$ac_ct_DSYMUTIL"; then
  5794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5795. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5796. else
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5798. $as_echo "no" >&6; }
  5799. fi
  5800. if test "x$ac_ct_DSYMUTIL" = x; then
  5801. DSYMUTIL=":"
  5802. else
  5803. case $cross_compiling:$ac_tool_warned in
  5804. yes:)
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5806. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5807. ac_tool_warned=yes ;;
  5808. esac
  5809. DSYMUTIL=$ac_ct_DSYMUTIL
  5810. fi
  5811. else
  5812. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5813. fi
  5814. if test -n "$ac_tool_prefix"; then
  5815. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5816. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5818. $as_echo_n "checking for $ac_word... " >&6; }
  5819. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5820. $as_echo_n "(cached) " >&6
  5821. else
  5822. if test -n "$NMEDIT"; then
  5823. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5824. else
  5825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5826. for as_dir in $PATH
  5827. do
  5828. IFS=$as_save_IFS
  5829. test -z "$as_dir" && as_dir=.
  5830. for ac_exec_ext in '' $ac_executable_extensions; do
  5831. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5832. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5833. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5834. break 2
  5835. fi
  5836. done
  5837. done
  5838. IFS=$as_save_IFS
  5839. fi
  5840. fi
  5841. NMEDIT=$ac_cv_prog_NMEDIT
  5842. if test -n "$NMEDIT"; then
  5843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5844. $as_echo "$NMEDIT" >&6; }
  5845. else
  5846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5847. $as_echo "no" >&6; }
  5848. fi
  5849. fi
  5850. if test -z "$ac_cv_prog_NMEDIT"; then
  5851. ac_ct_NMEDIT=$NMEDIT
  5852. # Extract the first word of "nmedit", so it can be a program name with args.
  5853. set dummy nmedit; ac_word=$2
  5854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5855. $as_echo_n "checking for $ac_word... " >&6; }
  5856. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5857. $as_echo_n "(cached) " >&6
  5858. else
  5859. if test -n "$ac_ct_NMEDIT"; then
  5860. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5861. else
  5862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5863. for as_dir in $PATH
  5864. do
  5865. IFS=$as_save_IFS
  5866. test -z "$as_dir" && as_dir=.
  5867. for ac_exec_ext in '' $ac_executable_extensions; do
  5868. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5869. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5870. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5871. break 2
  5872. fi
  5873. done
  5874. done
  5875. IFS=$as_save_IFS
  5876. fi
  5877. fi
  5878. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5879. if test -n "$ac_ct_NMEDIT"; then
  5880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5881. $as_echo "$ac_ct_NMEDIT" >&6; }
  5882. else
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5884. $as_echo "no" >&6; }
  5885. fi
  5886. if test "x$ac_ct_NMEDIT" = x; then
  5887. NMEDIT=":"
  5888. else
  5889. case $cross_compiling:$ac_tool_warned in
  5890. yes:)
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5892. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5893. ac_tool_warned=yes ;;
  5894. esac
  5895. NMEDIT=$ac_ct_NMEDIT
  5896. fi
  5897. else
  5898. NMEDIT="$ac_cv_prog_NMEDIT"
  5899. fi
  5900. if test -n "$ac_tool_prefix"; then
  5901. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5902. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5904. $as_echo_n "checking for $ac_word... " >&6; }
  5905. if test "${ac_cv_prog_LIPO+set}" = set; then :
  5906. $as_echo_n "(cached) " >&6
  5907. else
  5908. if test -n "$LIPO"; then
  5909. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5910. else
  5911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5912. for as_dir in $PATH
  5913. do
  5914. IFS=$as_save_IFS
  5915. test -z "$as_dir" && as_dir=.
  5916. for ac_exec_ext in '' $ac_executable_extensions; do
  5917. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5918. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5919. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5920. break 2
  5921. fi
  5922. done
  5923. done
  5924. IFS=$as_save_IFS
  5925. fi
  5926. fi
  5927. LIPO=$ac_cv_prog_LIPO
  5928. if test -n "$LIPO"; then
  5929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5930. $as_echo "$LIPO" >&6; }
  5931. else
  5932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5933. $as_echo "no" >&6; }
  5934. fi
  5935. fi
  5936. if test -z "$ac_cv_prog_LIPO"; then
  5937. ac_ct_LIPO=$LIPO
  5938. # Extract the first word of "lipo", so it can be a program name with args.
  5939. set dummy lipo; ac_word=$2
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5941. $as_echo_n "checking for $ac_word... " >&6; }
  5942. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  5943. $as_echo_n "(cached) " >&6
  5944. else
  5945. if test -n "$ac_ct_LIPO"; then
  5946. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5947. else
  5948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5949. for as_dir in $PATH
  5950. do
  5951. IFS=$as_save_IFS
  5952. test -z "$as_dir" && as_dir=.
  5953. for ac_exec_ext in '' $ac_executable_extensions; do
  5954. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5955. ac_cv_prog_ac_ct_LIPO="lipo"
  5956. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5957. break 2
  5958. fi
  5959. done
  5960. done
  5961. IFS=$as_save_IFS
  5962. fi
  5963. fi
  5964. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5965. if test -n "$ac_ct_LIPO"; then
  5966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5967. $as_echo "$ac_ct_LIPO" >&6; }
  5968. else
  5969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5970. $as_echo "no" >&6; }
  5971. fi
  5972. if test "x$ac_ct_LIPO" = x; then
  5973. LIPO=":"
  5974. else
  5975. case $cross_compiling:$ac_tool_warned in
  5976. yes:)
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5978. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5979. ac_tool_warned=yes ;;
  5980. esac
  5981. LIPO=$ac_ct_LIPO
  5982. fi
  5983. else
  5984. LIPO="$ac_cv_prog_LIPO"
  5985. fi
  5986. if test -n "$ac_tool_prefix"; then
  5987. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5988. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5990. $as_echo_n "checking for $ac_word... " >&6; }
  5991. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  5992. $as_echo_n "(cached) " >&6
  5993. else
  5994. if test -n "$OTOOL"; then
  5995. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5996. else
  5997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5998. for as_dir in $PATH
  5999. do
  6000. IFS=$as_save_IFS
  6001. test -z "$as_dir" && as_dir=.
  6002. for ac_exec_ext in '' $ac_executable_extensions; do
  6003. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6004. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6005. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6006. break 2
  6007. fi
  6008. done
  6009. done
  6010. IFS=$as_save_IFS
  6011. fi
  6012. fi
  6013. OTOOL=$ac_cv_prog_OTOOL
  6014. if test -n "$OTOOL"; then
  6015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6016. $as_echo "$OTOOL" >&6; }
  6017. else
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6019. $as_echo "no" >&6; }
  6020. fi
  6021. fi
  6022. if test -z "$ac_cv_prog_OTOOL"; then
  6023. ac_ct_OTOOL=$OTOOL
  6024. # Extract the first word of "otool", so it can be a program name with args.
  6025. set dummy otool; ac_word=$2
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6027. $as_echo_n "checking for $ac_word... " >&6; }
  6028. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6029. $as_echo_n "(cached) " >&6
  6030. else
  6031. if test -n "$ac_ct_OTOOL"; then
  6032. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6033. else
  6034. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6035. for as_dir in $PATH
  6036. do
  6037. IFS=$as_save_IFS
  6038. test -z "$as_dir" && as_dir=.
  6039. for ac_exec_ext in '' $ac_executable_extensions; do
  6040. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6041. ac_cv_prog_ac_ct_OTOOL="otool"
  6042. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6043. break 2
  6044. fi
  6045. done
  6046. done
  6047. IFS=$as_save_IFS
  6048. fi
  6049. fi
  6050. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6051. if test -n "$ac_ct_OTOOL"; then
  6052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6053. $as_echo "$ac_ct_OTOOL" >&6; }
  6054. else
  6055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6056. $as_echo "no" >&6; }
  6057. fi
  6058. if test "x$ac_ct_OTOOL" = x; then
  6059. OTOOL=":"
  6060. else
  6061. case $cross_compiling:$ac_tool_warned in
  6062. yes:)
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6064. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6065. ac_tool_warned=yes ;;
  6066. esac
  6067. OTOOL=$ac_ct_OTOOL
  6068. fi
  6069. else
  6070. OTOOL="$ac_cv_prog_OTOOL"
  6071. fi
  6072. if test -n "$ac_tool_prefix"; then
  6073. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6074. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6076. $as_echo_n "checking for $ac_word... " >&6; }
  6077. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6078. $as_echo_n "(cached) " >&6
  6079. else
  6080. if test -n "$OTOOL64"; then
  6081. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6082. else
  6083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6084. for as_dir in $PATH
  6085. do
  6086. IFS=$as_save_IFS
  6087. test -z "$as_dir" && as_dir=.
  6088. for ac_exec_ext in '' $ac_executable_extensions; do
  6089. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6090. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6091. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6092. break 2
  6093. fi
  6094. done
  6095. done
  6096. IFS=$as_save_IFS
  6097. fi
  6098. fi
  6099. OTOOL64=$ac_cv_prog_OTOOL64
  6100. if test -n "$OTOOL64"; then
  6101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6102. $as_echo "$OTOOL64" >&6; }
  6103. else
  6104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6105. $as_echo "no" >&6; }
  6106. fi
  6107. fi
  6108. if test -z "$ac_cv_prog_OTOOL64"; then
  6109. ac_ct_OTOOL64=$OTOOL64
  6110. # Extract the first word of "otool64", so it can be a program name with args.
  6111. set dummy otool64; ac_word=$2
  6112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6113. $as_echo_n "checking for $ac_word... " >&6; }
  6114. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6115. $as_echo_n "(cached) " >&6
  6116. else
  6117. if test -n "$ac_ct_OTOOL64"; then
  6118. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6119. else
  6120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6121. for as_dir in $PATH
  6122. do
  6123. IFS=$as_save_IFS
  6124. test -z "$as_dir" && as_dir=.
  6125. for ac_exec_ext in '' $ac_executable_extensions; do
  6126. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6127. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6128. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6129. break 2
  6130. fi
  6131. done
  6132. done
  6133. IFS=$as_save_IFS
  6134. fi
  6135. fi
  6136. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6137. if test -n "$ac_ct_OTOOL64"; then
  6138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6139. $as_echo "$ac_ct_OTOOL64" >&6; }
  6140. else
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6142. $as_echo "no" >&6; }
  6143. fi
  6144. if test "x$ac_ct_OTOOL64" = x; then
  6145. OTOOL64=":"
  6146. else
  6147. case $cross_compiling:$ac_tool_warned in
  6148. yes:)
  6149. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6150. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6151. ac_tool_warned=yes ;;
  6152. esac
  6153. OTOOL64=$ac_ct_OTOOL64
  6154. fi
  6155. else
  6156. OTOOL64="$ac_cv_prog_OTOOL64"
  6157. fi
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6159. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6160. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6161. $as_echo_n "(cached) " >&6
  6162. else
  6163. lt_cv_apple_cc_single_mod=no
  6164. if test -z "${LT_MULTI_MODULE}"; then
  6165. # By default we will add the -single_module flag. You can override
  6166. # by either setting the environment variable LT_MULTI_MODULE
  6167. # non-empty at configure time, or by adding -multi_module to the
  6168. # link flags.
  6169. rm -rf libconftest.dylib*
  6170. echo "int foo(void){return 1;}" > conftest.c
  6171. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6172. -dynamiclib -Wl,-single_module conftest.c" >&5
  6173. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6174. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6175. _lt_result=$?
  6176. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6177. lt_cv_apple_cc_single_mod=yes
  6178. else
  6179. cat conftest.err >&5
  6180. fi
  6181. rm -rf libconftest.dylib*
  6182. rm -f conftest.*
  6183. fi
  6184. fi
  6185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6186. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6188. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6189. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6190. $as_echo_n "(cached) " >&6
  6191. else
  6192. lt_cv_ld_exported_symbols_list=no
  6193. save_LDFLAGS=$LDFLAGS
  6194. echo "_main" > conftest.sym
  6195. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6196. if test x$gcc_no_link = xyes; then
  6197. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  6198. fi
  6199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6200. /* end confdefs.h. */
  6201. int
  6202. main ()
  6203. {
  6204. ;
  6205. return 0;
  6206. }
  6207. _ACEOF
  6208. if ac_fn_c_try_link "$LINENO"; then :
  6209. lt_cv_ld_exported_symbols_list=yes
  6210. else
  6211. lt_cv_ld_exported_symbols_list=no
  6212. fi
  6213. rm -f core conftest.err conftest.$ac_objext \
  6214. conftest$ac_exeext conftest.$ac_ext
  6215. LDFLAGS="$save_LDFLAGS"
  6216. fi
  6217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6218. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6220. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6221. if test "${lt_cv_ld_force_load+set}" = set; then :
  6222. $as_echo_n "(cached) " >&6
  6223. else
  6224. lt_cv_ld_force_load=no
  6225. cat > conftest.c << _LT_EOF
  6226. int forced_loaded() { return 2;}
  6227. _LT_EOF
  6228. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6229. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6230. echo "$AR cru libconftest.a conftest.o" >&5
  6231. $AR cru libconftest.a conftest.o 2>&5
  6232. cat > conftest.c << _LT_EOF
  6233. int main() { return 0;}
  6234. _LT_EOF
  6235. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6236. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6237. _lt_result=$?
  6238. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6239. lt_cv_ld_force_load=yes
  6240. else
  6241. cat conftest.err >&5
  6242. fi
  6243. rm -f conftest.err libconftest.a conftest conftest.c
  6244. rm -rf conftest.dSYM
  6245. fi
  6246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6247. $as_echo "$lt_cv_ld_force_load" >&6; }
  6248. case $host_os in
  6249. rhapsody* | darwin1.[012])
  6250. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6251. darwin1.*)
  6252. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6253. darwin*) # darwin 5.x on
  6254. # if running on 10.5 or later, the deployment target defaults
  6255. # to the OS version, if on x86, and 10.4, the deployment
  6256. # target defaults to 10.4. Don't you love it?
  6257. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6258. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6259. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6260. 10.[012][,.]*)
  6261. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6262. 10.*)
  6263. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6264. esac
  6265. ;;
  6266. esac
  6267. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6268. _lt_dar_single_mod='$single_module'
  6269. fi
  6270. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6271. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6272. else
  6273. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6274. fi
  6275. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6276. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6277. else
  6278. _lt_dsymutil=
  6279. fi
  6280. ;;
  6281. esac
  6282. for ac_header in dlfcn.h
  6283. do :
  6284. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6285. "
  6286. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6287. cat >>confdefs.h <<_ACEOF
  6288. #define HAVE_DLFCN_H 1
  6289. _ACEOF
  6290. fi
  6291. done
  6292. # Set options
  6293. enable_dlopen=no
  6294. enable_win32_dll=no
  6295. # Check whether --enable-shared was given.
  6296. if test "${enable_shared+set}" = set; then :
  6297. enableval=$enable_shared; p=${PACKAGE-default}
  6298. case $enableval in
  6299. yes) enable_shared=yes ;;
  6300. no) enable_shared=no ;;
  6301. *)
  6302. enable_shared=no
  6303. # Look at the argument we got. We use all the common list separators.
  6304. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6305. for pkg in $enableval; do
  6306. IFS="$lt_save_ifs"
  6307. if test "X$pkg" = "X$p"; then
  6308. enable_shared=yes
  6309. fi
  6310. done
  6311. IFS="$lt_save_ifs"
  6312. ;;
  6313. esac
  6314. else
  6315. enable_shared=yes
  6316. fi
  6317. # Check whether --enable-static was given.
  6318. if test "${enable_static+set}" = set; then :
  6319. enableval=$enable_static; p=${PACKAGE-default}
  6320. case $enableval in
  6321. yes) enable_static=yes ;;
  6322. no) enable_static=no ;;
  6323. *)
  6324. enable_static=no
  6325. # Look at the argument we got. We use all the common list separators.
  6326. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6327. for pkg in $enableval; do
  6328. IFS="$lt_save_ifs"
  6329. if test "X$pkg" = "X$p"; then
  6330. enable_static=yes
  6331. fi
  6332. done
  6333. IFS="$lt_save_ifs"
  6334. ;;
  6335. esac
  6336. else
  6337. enable_static=yes
  6338. fi
  6339. # Check whether --with-pic was given.
  6340. if test "${with_pic+set}" = set; then :
  6341. withval=$with_pic; pic_mode="$withval"
  6342. else
  6343. pic_mode=default
  6344. fi
  6345. test -z "$pic_mode" && pic_mode=default
  6346. # Check whether --enable-fast-install was given.
  6347. if test "${enable_fast_install+set}" = set; then :
  6348. enableval=$enable_fast_install; p=${PACKAGE-default}
  6349. case $enableval in
  6350. yes) enable_fast_install=yes ;;
  6351. no) enable_fast_install=no ;;
  6352. *)
  6353. enable_fast_install=no
  6354. # Look at the argument we got. We use all the common list separators.
  6355. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6356. for pkg in $enableval; do
  6357. IFS="$lt_save_ifs"
  6358. if test "X$pkg" = "X$p"; then
  6359. enable_fast_install=yes
  6360. fi
  6361. done
  6362. IFS="$lt_save_ifs"
  6363. ;;
  6364. esac
  6365. else
  6366. enable_fast_install=yes
  6367. fi
  6368. # This can be used to rebuild libtool when needed
  6369. LIBTOOL_DEPS="$ltmain"
  6370. # Always use our own libtool.
  6371. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6372. test -z "$LN_S" && LN_S="ln -s"
  6373. if test -n "${ZSH_VERSION+set}" ; then
  6374. setopt NO_GLOB_SUBST
  6375. fi
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6377. $as_echo_n "checking for objdir... " >&6; }
  6378. if test "${lt_cv_objdir+set}" = set; then :
  6379. $as_echo_n "(cached) " >&6
  6380. else
  6381. rm -f .libs 2>/dev/null
  6382. mkdir .libs 2>/dev/null
  6383. if test -d .libs; then
  6384. lt_cv_objdir=.libs
  6385. else
  6386. # MS-DOS does not allow filenames that begin with a dot.
  6387. lt_cv_objdir=_libs
  6388. fi
  6389. rmdir .libs 2>/dev/null
  6390. fi
  6391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6392. $as_echo "$lt_cv_objdir" >&6; }
  6393. objdir=$lt_cv_objdir
  6394. cat >>confdefs.h <<_ACEOF
  6395. #define LT_OBJDIR "$lt_cv_objdir/"
  6396. _ACEOF
  6397. case $host_os in
  6398. aix3*)
  6399. # AIX sometimes has problems with the GCC collect2 program. For some
  6400. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6401. # vanish in a puff of smoke.
  6402. if test "X${COLLECT_NAMES+set}" != Xset; then
  6403. COLLECT_NAMES=
  6404. export COLLECT_NAMES
  6405. fi
  6406. ;;
  6407. esac
  6408. # Global variables:
  6409. ofile=libtool
  6410. can_build_shared=yes
  6411. # All known linkers require a `.a' archive for static linking (except MSVC,
  6412. # which needs '.lib').
  6413. libext=a
  6414. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6415. old_CC="$CC"
  6416. old_CFLAGS="$CFLAGS"
  6417. # Set sane defaults for various variables
  6418. test -z "$CC" && CC=cc
  6419. test -z "$LTCC" && LTCC=$CC
  6420. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6421. test -z "$LD" && LD=ld
  6422. test -z "$ac_objext" && ac_objext=o
  6423. for cc_temp in $compiler""; do
  6424. case $cc_temp in
  6425. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6426. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6427. \-*) ;;
  6428. *) break;;
  6429. esac
  6430. done
  6431. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6432. # Only perform the check for file, if the check method requires it
  6433. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6434. case $deplibs_check_method in
  6435. file_magic*)
  6436. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6438. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6439. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6440. $as_echo_n "(cached) " >&6
  6441. else
  6442. case $MAGIC_CMD in
  6443. [\\/*] | ?:[\\/]*)
  6444. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6445. ;;
  6446. *)
  6447. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6448. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6449. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6450. for ac_dir in $ac_dummy; do
  6451. IFS="$lt_save_ifs"
  6452. test -z "$ac_dir" && ac_dir=.
  6453. if test -f $ac_dir/${ac_tool_prefix}file; then
  6454. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6455. if test -n "$file_magic_test_file"; then
  6456. case $deplibs_check_method in
  6457. "file_magic "*)
  6458. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6459. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6460. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6461. $EGREP "$file_magic_regex" > /dev/null; then
  6462. :
  6463. else
  6464. cat <<_LT_EOF 1>&2
  6465. *** Warning: the command libtool uses to detect shared libraries,
  6466. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6467. *** The result is that libtool may fail to recognize shared libraries
  6468. *** as such. This will affect the creation of libtool libraries that
  6469. *** depend on shared libraries, but programs linked with such libtool
  6470. *** libraries will work regardless of this problem. Nevertheless, you
  6471. *** may want to report the problem to your system manager and/or to
  6472. *** bug-libtool@gnu.org
  6473. _LT_EOF
  6474. fi ;;
  6475. esac
  6476. fi
  6477. break
  6478. fi
  6479. done
  6480. IFS="$lt_save_ifs"
  6481. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6482. ;;
  6483. esac
  6484. fi
  6485. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6486. if test -n "$MAGIC_CMD"; then
  6487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6488. $as_echo "$MAGIC_CMD" >&6; }
  6489. else
  6490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6491. $as_echo "no" >&6; }
  6492. fi
  6493. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6494. if test -n "$ac_tool_prefix"; then
  6495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6496. $as_echo_n "checking for file... " >&6; }
  6497. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6498. $as_echo_n "(cached) " >&6
  6499. else
  6500. case $MAGIC_CMD in
  6501. [\\/*] | ?:[\\/]*)
  6502. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6503. ;;
  6504. *)
  6505. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6506. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6507. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6508. for ac_dir in $ac_dummy; do
  6509. IFS="$lt_save_ifs"
  6510. test -z "$ac_dir" && ac_dir=.
  6511. if test -f $ac_dir/file; then
  6512. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6513. if test -n "$file_magic_test_file"; then
  6514. case $deplibs_check_method in
  6515. "file_magic "*)
  6516. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6517. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6518. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6519. $EGREP "$file_magic_regex" > /dev/null; then
  6520. :
  6521. else
  6522. cat <<_LT_EOF 1>&2
  6523. *** Warning: the command libtool uses to detect shared libraries,
  6524. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6525. *** The result is that libtool may fail to recognize shared libraries
  6526. *** as such. This will affect the creation of libtool libraries that
  6527. *** depend on shared libraries, but programs linked with such libtool
  6528. *** libraries will work regardless of this problem. Nevertheless, you
  6529. *** may want to report the problem to your system manager and/or to
  6530. *** bug-libtool@gnu.org
  6531. _LT_EOF
  6532. fi ;;
  6533. esac
  6534. fi
  6535. break
  6536. fi
  6537. done
  6538. IFS="$lt_save_ifs"
  6539. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6540. ;;
  6541. esac
  6542. fi
  6543. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6544. if test -n "$MAGIC_CMD"; then
  6545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6546. $as_echo "$MAGIC_CMD" >&6; }
  6547. else
  6548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6549. $as_echo "no" >&6; }
  6550. fi
  6551. else
  6552. MAGIC_CMD=:
  6553. fi
  6554. fi
  6555. fi
  6556. ;;
  6557. esac
  6558. # Use C for the default configuration in the libtool script
  6559. lt_save_CC="$CC"
  6560. ac_ext=c
  6561. ac_cpp='$CPP $CPPFLAGS'
  6562. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6563. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6564. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6565. # Source file extension for C test sources.
  6566. ac_ext=c
  6567. # Object file extension for compiled C test sources.
  6568. objext=o
  6569. objext=$objext
  6570. # Code to be used in simple compile tests
  6571. lt_simple_compile_test_code="int some_variable = 0;"
  6572. # Code to be used in simple link tests
  6573. lt_simple_link_test_code='int main(){return(0);}'
  6574. # If no C compiler was specified, use CC.
  6575. LTCC=${LTCC-"$CC"}
  6576. # If no C compiler flags were specified, use CFLAGS.
  6577. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6578. # Allow CC to be a program name with arguments.
  6579. compiler=$CC
  6580. # Save the default compiler, since it gets overwritten when the other
  6581. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6582. compiler_DEFAULT=$CC
  6583. # save warnings/boilerplate of simple test code
  6584. ac_outfile=conftest.$ac_objext
  6585. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6586. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6587. _lt_compiler_boilerplate=`cat conftest.err`
  6588. $RM conftest*
  6589. ac_outfile=conftest.$ac_objext
  6590. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6591. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6592. _lt_linker_boilerplate=`cat conftest.err`
  6593. $RM -r conftest*
  6594. ## CAVEAT EMPTOR:
  6595. ## There is no encapsulation within the following macros, do not change
  6596. ## the running order or otherwise move them around unless you know exactly
  6597. ## what you are doing...
  6598. if test -n "$compiler"; then
  6599. lt_prog_compiler_no_builtin_flag=
  6600. if test "$GCC" = yes; then
  6601. case $cc_basename in
  6602. nvcc*)
  6603. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6604. *)
  6605. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6606. esac
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6608. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6609. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  6610. $as_echo_n "(cached) " >&6
  6611. else
  6612. lt_cv_prog_compiler_rtti_exceptions=no
  6613. ac_outfile=conftest.$ac_objext
  6614. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6615. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6616. # Insert the option either (1) after the last *FLAGS variable, or
  6617. # (2) before a word containing "conftest.", or (3) at the end.
  6618. # Note that $ac_compile itself does not contain backslashes and begins
  6619. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6620. # The option is referenced via a variable to avoid confusing sed.
  6621. lt_compile=`echo "$ac_compile" | $SED \
  6622. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6623. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6624. -e 's:$: $lt_compiler_flag:'`
  6625. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6626. (eval "$lt_compile" 2>conftest.err)
  6627. ac_status=$?
  6628. cat conftest.err >&5
  6629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6630. if (exit $ac_status) && test -s "$ac_outfile"; then
  6631. # The compiler can only warn and ignore the option if not recognized
  6632. # So say no if there are warnings other than the usual output.
  6633. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6634. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6635. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6636. lt_cv_prog_compiler_rtti_exceptions=yes
  6637. fi
  6638. fi
  6639. $RM conftest*
  6640. fi
  6641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6642. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6643. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6644. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6645. else
  6646. :
  6647. fi
  6648. fi
  6649. lt_prog_compiler_wl=
  6650. lt_prog_compiler_pic=
  6651. lt_prog_compiler_static=
  6652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6653. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6654. if test "$GCC" = yes; then
  6655. lt_prog_compiler_wl='-Wl,'
  6656. lt_prog_compiler_static='-static'
  6657. case $host_os in
  6658. aix*)
  6659. # All AIX code is PIC.
  6660. if test "$host_cpu" = ia64; then
  6661. # AIX 5 now supports IA64 processor
  6662. lt_prog_compiler_static='-Bstatic'
  6663. fi
  6664. lt_prog_compiler_pic='-fPIC'
  6665. ;;
  6666. amigaos*)
  6667. case $host_cpu in
  6668. powerpc)
  6669. # see comment about AmigaOS4 .so support
  6670. lt_prog_compiler_pic='-fPIC'
  6671. ;;
  6672. m68k)
  6673. # FIXME: we need at least 68020 code to build shared libraries, but
  6674. # adding the `-m68020' flag to GCC prevents building anything better,
  6675. # like `-m68040'.
  6676. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6677. ;;
  6678. esac
  6679. ;;
  6680. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6681. # PIC is the default for these OSes.
  6682. ;;
  6683. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6684. # This hack is so that the source file can tell whether it is being
  6685. # built for inclusion in a dll (and should export symbols for example).
  6686. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6687. # (--disable-auto-import) libraries
  6688. lt_prog_compiler_pic='-DDLL_EXPORT'
  6689. ;;
  6690. darwin* | rhapsody*)
  6691. # PIC is the default on this platform
  6692. # Common symbols not allowed in MH_DYLIB files
  6693. lt_prog_compiler_pic='-fno-common'
  6694. ;;
  6695. haiku*)
  6696. # PIC is the default for Haiku.
  6697. # The "-static" flag exists, but is broken.
  6698. lt_prog_compiler_static=
  6699. ;;
  6700. hpux*)
  6701. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6702. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6703. # sets the default TLS model and affects inlining.
  6704. case $host_cpu in
  6705. hppa*64*)
  6706. # +Z the default
  6707. ;;
  6708. *)
  6709. lt_prog_compiler_pic='-fPIC'
  6710. ;;
  6711. esac
  6712. ;;
  6713. interix[3-9]*)
  6714. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6715. # Instead, we relocate shared libraries at runtime.
  6716. ;;
  6717. msdosdjgpp*)
  6718. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6719. # on systems that don't support them.
  6720. lt_prog_compiler_can_build_shared=no
  6721. enable_shared=no
  6722. ;;
  6723. *nto* | *qnx*)
  6724. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6725. # it will coredump.
  6726. lt_prog_compiler_pic='-fPIC -shared'
  6727. ;;
  6728. sysv4*MP*)
  6729. if test -d /usr/nec; then
  6730. lt_prog_compiler_pic=-Kconform_pic
  6731. fi
  6732. ;;
  6733. *)
  6734. lt_prog_compiler_pic='-fPIC'
  6735. ;;
  6736. esac
  6737. case $cc_basename in
  6738. nvcc*) # Cuda Compiler Driver 2.2
  6739. lt_prog_compiler_wl='-Xlinker '
  6740. lt_prog_compiler_pic='-Xcompiler -fPIC'
  6741. ;;
  6742. esac
  6743. else
  6744. # PORTME Check for flag to pass linker flags through the system compiler.
  6745. case $host_os in
  6746. aix*)
  6747. lt_prog_compiler_wl='-Wl,'
  6748. if test "$host_cpu" = ia64; then
  6749. # AIX 5 now supports IA64 processor
  6750. lt_prog_compiler_static='-Bstatic'
  6751. else
  6752. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6753. fi
  6754. ;;
  6755. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6756. # This hack is so that the source file can tell whether it is being
  6757. # built for inclusion in a dll (and should export symbols for example).
  6758. lt_prog_compiler_pic='-DDLL_EXPORT'
  6759. ;;
  6760. hpux9* | hpux10* | hpux11*)
  6761. lt_prog_compiler_wl='-Wl,'
  6762. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6763. # not for PA HP-UX.
  6764. case $host_cpu in
  6765. hppa*64*|ia64*)
  6766. # +Z the default
  6767. ;;
  6768. *)
  6769. lt_prog_compiler_pic='+Z'
  6770. ;;
  6771. esac
  6772. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6773. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6774. ;;
  6775. irix5* | irix6* | nonstopux*)
  6776. lt_prog_compiler_wl='-Wl,'
  6777. # PIC (with -KPIC) is the default.
  6778. lt_prog_compiler_static='-non_shared'
  6779. ;;
  6780. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6781. case $cc_basename in
  6782. # old Intel for x86_64 which still supported -KPIC.
  6783. ecc*)
  6784. lt_prog_compiler_wl='-Wl,'
  6785. lt_prog_compiler_pic='-KPIC'
  6786. lt_prog_compiler_static='-static'
  6787. ;;
  6788. # icc used to be incompatible with GCC.
  6789. # ICC 10 doesn't accept -KPIC any more.
  6790. icc* | ifort*)
  6791. lt_prog_compiler_wl='-Wl,'
  6792. lt_prog_compiler_pic='-fPIC'
  6793. lt_prog_compiler_static='-static'
  6794. ;;
  6795. # Lahey Fortran 8.1.
  6796. lf95*)
  6797. lt_prog_compiler_wl='-Wl,'
  6798. lt_prog_compiler_pic='--shared'
  6799. lt_prog_compiler_static='--static'
  6800. ;;
  6801. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6802. # Portland Group compilers (*not* the Pentium gcc compiler,
  6803. # which looks to be a dead project)
  6804. lt_prog_compiler_wl='-Wl,'
  6805. lt_prog_compiler_pic='-fpic'
  6806. lt_prog_compiler_static='-Bstatic'
  6807. ;;
  6808. ccc*)
  6809. lt_prog_compiler_wl='-Wl,'
  6810. # All Alpha code is PIC.
  6811. lt_prog_compiler_static='-non_shared'
  6812. ;;
  6813. xl* | bgxl* | bgf* | mpixl*)
  6814. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6815. lt_prog_compiler_wl='-Wl,'
  6816. lt_prog_compiler_pic='-qpic'
  6817. lt_prog_compiler_static='-qstaticlink'
  6818. ;;
  6819. *)
  6820. case `$CC -V 2>&1 | sed 5q` in
  6821. *Sun\ F* | *Sun*Fortran*)
  6822. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6823. lt_prog_compiler_pic='-KPIC'
  6824. lt_prog_compiler_static='-Bstatic'
  6825. lt_prog_compiler_wl=''
  6826. ;;
  6827. *Sun\ C*)
  6828. # Sun C 5.9
  6829. lt_prog_compiler_pic='-KPIC'
  6830. lt_prog_compiler_static='-Bstatic'
  6831. lt_prog_compiler_wl='-Wl,'
  6832. ;;
  6833. esac
  6834. ;;
  6835. esac
  6836. ;;
  6837. newsos6)
  6838. lt_prog_compiler_pic='-KPIC'
  6839. lt_prog_compiler_static='-Bstatic'
  6840. ;;
  6841. *nto* | *qnx*)
  6842. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6843. # it will coredump.
  6844. lt_prog_compiler_pic='-fPIC -shared'
  6845. ;;
  6846. osf3* | osf4* | osf5*)
  6847. lt_prog_compiler_wl='-Wl,'
  6848. # All OSF/1 code is PIC.
  6849. lt_prog_compiler_static='-non_shared'
  6850. ;;
  6851. rdos*)
  6852. lt_prog_compiler_static='-non_shared'
  6853. ;;
  6854. solaris*)
  6855. lt_prog_compiler_pic='-KPIC'
  6856. lt_prog_compiler_static='-Bstatic'
  6857. case $cc_basename in
  6858. f77* | f90* | f95*)
  6859. lt_prog_compiler_wl='-Qoption ld ';;
  6860. *)
  6861. lt_prog_compiler_wl='-Wl,';;
  6862. esac
  6863. ;;
  6864. sunos4*)
  6865. lt_prog_compiler_wl='-Qoption ld '
  6866. lt_prog_compiler_pic='-PIC'
  6867. lt_prog_compiler_static='-Bstatic'
  6868. ;;
  6869. sysv4 | sysv4.2uw2* | sysv4.3*)
  6870. lt_prog_compiler_wl='-Wl,'
  6871. lt_prog_compiler_pic='-KPIC'
  6872. lt_prog_compiler_static='-Bstatic'
  6873. ;;
  6874. sysv4*MP*)
  6875. if test -d /usr/nec ;then
  6876. lt_prog_compiler_pic='-Kconform_pic'
  6877. lt_prog_compiler_static='-Bstatic'
  6878. fi
  6879. ;;
  6880. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6881. lt_prog_compiler_wl='-Wl,'
  6882. lt_prog_compiler_pic='-KPIC'
  6883. lt_prog_compiler_static='-Bstatic'
  6884. ;;
  6885. unicos*)
  6886. lt_prog_compiler_wl='-Wl,'
  6887. lt_prog_compiler_can_build_shared=no
  6888. ;;
  6889. uts4*)
  6890. lt_prog_compiler_pic='-pic'
  6891. lt_prog_compiler_static='-Bstatic'
  6892. ;;
  6893. *)
  6894. lt_prog_compiler_can_build_shared=no
  6895. ;;
  6896. esac
  6897. fi
  6898. case $host_os in
  6899. # For platforms which do not support PIC, -DPIC is meaningless:
  6900. *djgpp*)
  6901. lt_prog_compiler_pic=
  6902. ;;
  6903. *)
  6904. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6905. ;;
  6906. esac
  6907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  6908. $as_echo "$lt_prog_compiler_pic" >&6; }
  6909. #
  6910. # Check to make sure the PIC flag actually works.
  6911. #
  6912. if test -n "$lt_prog_compiler_pic"; then
  6913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6914. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6915. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  6916. $as_echo_n "(cached) " >&6
  6917. else
  6918. lt_cv_prog_compiler_pic_works=no
  6919. ac_outfile=conftest.$ac_objext
  6920. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6921. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6922. # Insert the option either (1) after the last *FLAGS variable, or
  6923. # (2) before a word containing "conftest.", or (3) at the end.
  6924. # Note that $ac_compile itself does not contain backslashes and begins
  6925. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6926. # The option is referenced via a variable to avoid confusing sed.
  6927. lt_compile=`echo "$ac_compile" | $SED \
  6928. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6929. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6930. -e 's:$: $lt_compiler_flag:'`
  6931. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6932. (eval "$lt_compile" 2>conftest.err)
  6933. ac_status=$?
  6934. cat conftest.err >&5
  6935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6936. if (exit $ac_status) && test -s "$ac_outfile"; then
  6937. # The compiler can only warn and ignore the option if not recognized
  6938. # So say no if there are warnings other than the usual output.
  6939. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6940. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6941. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6942. lt_cv_prog_compiler_pic_works=yes
  6943. fi
  6944. fi
  6945. $RM conftest*
  6946. fi
  6947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  6948. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  6949. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6950. case $lt_prog_compiler_pic in
  6951. "" | " "*) ;;
  6952. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6953. esac
  6954. else
  6955. lt_prog_compiler_pic=
  6956. lt_prog_compiler_can_build_shared=no
  6957. fi
  6958. fi
  6959. #
  6960. # Check to make sure the static flag actually works.
  6961. #
  6962. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6964. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  6965. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  6966. $as_echo_n "(cached) " >&6
  6967. else
  6968. lt_cv_prog_compiler_static_works=no
  6969. save_LDFLAGS="$LDFLAGS"
  6970. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6971. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6972. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6973. # The linker can only warn and ignore the option if not recognized
  6974. # So say no if there are warnings
  6975. if test -s conftest.err; then
  6976. # Append any errors to the config.log.
  6977. cat conftest.err 1>&5
  6978. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  6979. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6980. if diff conftest.exp conftest.er2 >/dev/null; then
  6981. lt_cv_prog_compiler_static_works=yes
  6982. fi
  6983. else
  6984. lt_cv_prog_compiler_static_works=yes
  6985. fi
  6986. fi
  6987. $RM -r conftest*
  6988. LDFLAGS="$save_LDFLAGS"
  6989. fi
  6990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  6991. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  6992. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  6993. :
  6994. else
  6995. lt_prog_compiler_static=
  6996. fi
  6997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6998. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6999. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7000. $as_echo_n "(cached) " >&6
  7001. else
  7002. lt_cv_prog_compiler_c_o=no
  7003. $RM -r conftest 2>/dev/null
  7004. mkdir conftest
  7005. cd conftest
  7006. mkdir out
  7007. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7008. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7009. # Insert the option either (1) after the last *FLAGS variable, or
  7010. # (2) before a word containing "conftest.", or (3) at the end.
  7011. # Note that $ac_compile itself does not contain backslashes and begins
  7012. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7013. lt_compile=`echo "$ac_compile" | $SED \
  7014. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7015. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7016. -e 's:$: $lt_compiler_flag:'`
  7017. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7018. (eval "$lt_compile" 2>out/conftest.err)
  7019. ac_status=$?
  7020. cat out/conftest.err >&5
  7021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7022. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7023. then
  7024. # The compiler can only warn and ignore the option if not recognized
  7025. # So say no if there are warnings
  7026. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7027. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7028. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7029. lt_cv_prog_compiler_c_o=yes
  7030. fi
  7031. fi
  7032. chmod u+w . 2>&5
  7033. $RM conftest*
  7034. # SGI C++ compiler will create directory out/ii_files/ for
  7035. # template instantiation
  7036. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7037. $RM out/* && rmdir out
  7038. cd ..
  7039. $RM -r conftest
  7040. $RM conftest*
  7041. fi
  7042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7043. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7045. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7046. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7047. $as_echo_n "(cached) " >&6
  7048. else
  7049. lt_cv_prog_compiler_c_o=no
  7050. $RM -r conftest 2>/dev/null
  7051. mkdir conftest
  7052. cd conftest
  7053. mkdir out
  7054. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7055. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7056. # Insert the option either (1) after the last *FLAGS variable, or
  7057. # (2) before a word containing "conftest.", or (3) at the end.
  7058. # Note that $ac_compile itself does not contain backslashes and begins
  7059. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7060. lt_compile=`echo "$ac_compile" | $SED \
  7061. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7062. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7063. -e 's:$: $lt_compiler_flag:'`
  7064. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7065. (eval "$lt_compile" 2>out/conftest.err)
  7066. ac_status=$?
  7067. cat out/conftest.err >&5
  7068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7069. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7070. then
  7071. # The compiler can only warn and ignore the option if not recognized
  7072. # So say no if there are warnings
  7073. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7074. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7075. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7076. lt_cv_prog_compiler_c_o=yes
  7077. fi
  7078. fi
  7079. chmod u+w . 2>&5
  7080. $RM conftest*
  7081. # SGI C++ compiler will create directory out/ii_files/ for
  7082. # template instantiation
  7083. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7084. $RM out/* && rmdir out
  7085. cd ..
  7086. $RM -r conftest
  7087. $RM conftest*
  7088. fi
  7089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7090. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7091. hard_links="nottested"
  7092. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7093. # do not overwrite the value of need_locks provided by the user
  7094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7095. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7096. hard_links=yes
  7097. $RM conftest*
  7098. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7099. touch conftest.a
  7100. ln conftest.a conftest.b 2>&5 || hard_links=no
  7101. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7103. $as_echo "$hard_links" >&6; }
  7104. if test "$hard_links" = no; then
  7105. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7106. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7107. need_locks=warn
  7108. fi
  7109. else
  7110. need_locks=no
  7111. fi
  7112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7113. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7114. runpath_var=
  7115. allow_undefined_flag=
  7116. always_export_symbols=no
  7117. archive_cmds=
  7118. archive_expsym_cmds=
  7119. compiler_needs_object=no
  7120. enable_shared_with_static_runtimes=no
  7121. export_dynamic_flag_spec=
  7122. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7123. hardcode_automatic=no
  7124. hardcode_direct=no
  7125. hardcode_direct_absolute=no
  7126. hardcode_libdir_flag_spec=
  7127. hardcode_libdir_flag_spec_ld=
  7128. hardcode_libdir_separator=
  7129. hardcode_minus_L=no
  7130. hardcode_shlibpath_var=unsupported
  7131. inherit_rpath=no
  7132. link_all_deplibs=unknown
  7133. module_cmds=
  7134. module_expsym_cmds=
  7135. old_archive_from_new_cmds=
  7136. old_archive_from_expsyms_cmds=
  7137. thread_safe_flag_spec=
  7138. whole_archive_flag_spec=
  7139. # include_expsyms should be a list of space-separated symbols to be *always*
  7140. # included in the symbol list
  7141. include_expsyms=
  7142. # exclude_expsyms can be an extended regexp of symbols to exclude
  7143. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7144. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7145. # as well as any symbol that contains `d'.
  7146. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7147. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7148. # platforms (ab)use it in PIC code, but their linkers get confused if
  7149. # the symbol is explicitly referenced. Since portable code cannot
  7150. # rely on this symbol name, it's probably fine to never include it in
  7151. # preloaded symbol tables.
  7152. # Exclude shared library initialization/finalization symbols.
  7153. extract_expsyms_cmds=
  7154. case $host_os in
  7155. cygwin* | mingw* | pw32* | cegcc*)
  7156. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7157. # When not using gcc, we currently assume that we are using
  7158. # Microsoft Visual C++.
  7159. if test "$GCC" != yes; then
  7160. with_gnu_ld=no
  7161. fi
  7162. ;;
  7163. interix*)
  7164. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7165. with_gnu_ld=yes
  7166. ;;
  7167. openbsd*)
  7168. with_gnu_ld=no
  7169. ;;
  7170. esac
  7171. ld_shlibs=yes
  7172. # On some targets, GNU ld is compatible enough with the native linker
  7173. # that we're better off using the native interface for both.
  7174. lt_use_gnu_ld_interface=no
  7175. if test "$with_gnu_ld" = yes; then
  7176. case $host_os in
  7177. aix*)
  7178. # The AIX port of GNU ld has always aspired to compatibility
  7179. # with the native linker. However, as the warning in the GNU ld
  7180. # block says, versions before 2.19.5* couldn't really create working
  7181. # shared libraries, regardless of the interface used.
  7182. case `$LD -v 2>&1` in
  7183. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7184. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7185. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7186. *)
  7187. lt_use_gnu_ld_interface=yes
  7188. ;;
  7189. esac
  7190. ;;
  7191. *)
  7192. lt_use_gnu_ld_interface=yes
  7193. ;;
  7194. esac
  7195. fi
  7196. if test "$lt_use_gnu_ld_interface" = yes; then
  7197. # If archive_cmds runs LD, not CC, wlarc should be empty
  7198. wlarc='${wl}'
  7199. # Set some defaults for GNU ld with shared library support. These
  7200. # are reset later if shared libraries are not supported. Putting them
  7201. # here allows them to be overridden if necessary.
  7202. runpath_var=LD_RUN_PATH
  7203. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7204. export_dynamic_flag_spec='${wl}--export-dynamic'
  7205. # ancient GNU ld didn't support --whole-archive et. al.
  7206. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7207. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7208. else
  7209. whole_archive_flag_spec=
  7210. fi
  7211. supports_anon_versioning=no
  7212. case `$LD -v 2>&1` in
  7213. *GNU\ gold*) supports_anon_versioning=yes ;;
  7214. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7215. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7216. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7217. *\ 2.11.*) ;; # other 2.11 versions
  7218. *) supports_anon_versioning=yes ;;
  7219. esac
  7220. # See if GNU ld supports shared libraries.
  7221. case $host_os in
  7222. aix[3-9]*)
  7223. # On AIX/PPC, the GNU linker is very broken
  7224. if test "$host_cpu" != ia64; then
  7225. ld_shlibs=no
  7226. cat <<_LT_EOF 1>&2
  7227. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7228. *** to be unable to reliably create shared libraries on AIX.
  7229. *** Therefore, libtool is disabling shared libraries support. If you
  7230. *** really care for shared libraries, you may want to install binutils
  7231. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7232. *** You will then need to restart the configuration process.
  7233. _LT_EOF
  7234. fi
  7235. ;;
  7236. amigaos*)
  7237. case $host_cpu in
  7238. powerpc)
  7239. # see comment about AmigaOS4 .so support
  7240. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7241. archive_expsym_cmds=''
  7242. ;;
  7243. m68k)
  7244. 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)'
  7245. hardcode_libdir_flag_spec='-L$libdir'
  7246. hardcode_minus_L=yes
  7247. ;;
  7248. esac
  7249. ;;
  7250. beos*)
  7251. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7252. allow_undefined_flag=unsupported
  7253. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7254. # support --undefined. This deserves some investigation. FIXME
  7255. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7256. else
  7257. ld_shlibs=no
  7258. fi
  7259. ;;
  7260. cygwin* | mingw* | pw32* | cegcc*)
  7261. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7262. # as there is no search path for DLLs.
  7263. hardcode_libdir_flag_spec='-L$libdir'
  7264. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7265. allow_undefined_flag=unsupported
  7266. always_export_symbols=no
  7267. enable_shared_with_static_runtimes=yes
  7268. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7269. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7270. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7271. # If the export-symbols file already is a .def file (1st line
  7272. # is EXPORTS), use it as is; otherwise, prepend...
  7273. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7274. cp $export_symbols $output_objdir/$soname.def;
  7275. else
  7276. echo EXPORTS > $output_objdir/$soname.def;
  7277. cat $export_symbols >> $output_objdir/$soname.def;
  7278. fi~
  7279. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7280. else
  7281. ld_shlibs=no
  7282. fi
  7283. ;;
  7284. haiku*)
  7285. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7286. link_all_deplibs=yes
  7287. ;;
  7288. interix[3-9]*)
  7289. hardcode_direct=no
  7290. hardcode_shlibpath_var=no
  7291. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7292. export_dynamic_flag_spec='${wl}-E'
  7293. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7294. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7295. # default) and relocated if they conflict, which is a slow very memory
  7296. # consuming and fragmenting process. To avoid this, we pick a random,
  7297. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7298. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7299. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7300. 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'
  7301. ;;
  7302. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7303. tmp_diet=no
  7304. if test "$host_os" = linux-dietlibc; then
  7305. case $cc_basename in
  7306. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7307. esac
  7308. fi
  7309. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7310. && test "$tmp_diet" = no
  7311. then
  7312. tmp_addflag=' $pic_flag'
  7313. tmp_sharedflag='-shared'
  7314. case $cc_basename,$host_cpu in
  7315. pgcc*) # Portland Group C compiler
  7316. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7317. tmp_addflag=' $pic_flag'
  7318. ;;
  7319. pgf77* | pgf90* | pgf95* | pgfortran*)
  7320. # Portland Group f77 and f90 compilers
  7321. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7322. tmp_addflag=' $pic_flag -Mnomain' ;;
  7323. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7324. tmp_addflag=' -i_dynamic' ;;
  7325. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7326. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7327. ifc* | ifort*) # Intel Fortran compiler
  7328. tmp_addflag=' -nofor_main' ;;
  7329. lf95*) # Lahey Fortran 8.1
  7330. whole_archive_flag_spec=
  7331. tmp_sharedflag='--shared' ;;
  7332. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7333. tmp_sharedflag='-qmkshrobj'
  7334. tmp_addflag= ;;
  7335. nvcc*) # Cuda Compiler Driver 2.2
  7336. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7337. compiler_needs_object=yes
  7338. ;;
  7339. esac
  7340. case `$CC -V 2>&1 | sed 5q` in
  7341. *Sun\ C*) # Sun C 5.9
  7342. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7343. compiler_needs_object=yes
  7344. tmp_sharedflag='-G' ;;
  7345. *Sun\ F*) # Sun Fortran 8.3
  7346. tmp_sharedflag='-G' ;;
  7347. esac
  7348. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7349. if test "x$supports_anon_versioning" = xyes; then
  7350. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7351. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7352. echo "local: *; };" >> $output_objdir/$libname.ver~
  7353. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7354. fi
  7355. case $cc_basename in
  7356. xlf* | bgf* | bgxlf* | mpixlf*)
  7357. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7358. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7359. hardcode_libdir_flag_spec=
  7360. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7361. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7362. if test "x$supports_anon_versioning" = xyes; then
  7363. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7364. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7365. echo "local: *; };" >> $output_objdir/$libname.ver~
  7366. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7367. fi
  7368. ;;
  7369. esac
  7370. else
  7371. ld_shlibs=no
  7372. fi
  7373. ;;
  7374. netbsd*)
  7375. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7376. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7377. wlarc=
  7378. else
  7379. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7380. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7381. fi
  7382. ;;
  7383. solaris*)
  7384. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7385. ld_shlibs=no
  7386. cat <<_LT_EOF 1>&2
  7387. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7388. *** create shared libraries on Solaris systems. Therefore, libtool
  7389. *** is disabling shared libraries support. We urge you to upgrade GNU
  7390. *** binutils to release 2.9.1 or newer. Another option is to modify
  7391. *** your PATH or compiler configuration so that the native linker is
  7392. *** used, and then restart.
  7393. _LT_EOF
  7394. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7395. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7396. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7397. else
  7398. ld_shlibs=no
  7399. fi
  7400. ;;
  7401. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7402. case `$LD -v 2>&1` in
  7403. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7404. ld_shlibs=no
  7405. cat <<_LT_EOF 1>&2
  7406. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7407. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7408. *** is disabling shared libraries support. We urge you to upgrade GNU
  7409. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7410. *** your PATH or compiler configuration so that the native linker is
  7411. *** used, and then restart.
  7412. _LT_EOF
  7413. ;;
  7414. *)
  7415. # For security reasons, it is highly recommended that you always
  7416. # use absolute paths for naming shared libraries, and exclude the
  7417. # DT_RUNPATH tag from executables and libraries. But doing so
  7418. # requires that you compile everything twice, which is a pain.
  7419. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7420. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7421. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7422. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7423. else
  7424. ld_shlibs=no
  7425. fi
  7426. ;;
  7427. esac
  7428. ;;
  7429. sunos4*)
  7430. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7431. wlarc=
  7432. hardcode_direct=yes
  7433. hardcode_shlibpath_var=no
  7434. ;;
  7435. *)
  7436. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7437. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7438. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7439. else
  7440. ld_shlibs=no
  7441. fi
  7442. ;;
  7443. esac
  7444. if test "$ld_shlibs" = no; then
  7445. runpath_var=
  7446. hardcode_libdir_flag_spec=
  7447. export_dynamic_flag_spec=
  7448. whole_archive_flag_spec=
  7449. fi
  7450. else
  7451. # PORTME fill in a description of your system's linker (not GNU ld)
  7452. case $host_os in
  7453. aix3*)
  7454. allow_undefined_flag=unsupported
  7455. always_export_symbols=yes
  7456. 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'
  7457. # Note: this linker hardcodes the directories in LIBPATH if there
  7458. # are no directories specified by -L.
  7459. hardcode_minus_L=yes
  7460. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7461. # Neither direct hardcoding nor static linking is supported with a
  7462. # broken collect2.
  7463. hardcode_direct=unsupported
  7464. fi
  7465. ;;
  7466. aix[4-9]*)
  7467. if test "$host_cpu" = ia64; then
  7468. # On IA64, the linker does run time linking by default, so we don't
  7469. # have to do anything special.
  7470. aix_use_runtimelinking=no
  7471. exp_sym_flag='-Bexport'
  7472. no_entry_flag=""
  7473. else
  7474. # If we're using GNU nm, then we don't want the "-C" option.
  7475. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7476. # Also, AIX nm treats weak defined symbols like other global
  7477. # defined symbols, whereas GNU nm marks them as "W".
  7478. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7479. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7480. else
  7481. 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'
  7482. fi
  7483. aix_use_runtimelinking=no
  7484. # Test if we are trying to use run time linking or normal
  7485. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7486. # need to do runtime linking.
  7487. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7488. for ld_flag in $LDFLAGS; do
  7489. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7490. aix_use_runtimelinking=yes
  7491. break
  7492. fi
  7493. done
  7494. ;;
  7495. esac
  7496. exp_sym_flag='-bexport'
  7497. no_entry_flag='-bnoentry'
  7498. fi
  7499. # When large executables or shared objects are built, AIX ld can
  7500. # have problems creating the table of contents. If linking a library
  7501. # or program results in "error TOC overflow" add -mminimal-toc to
  7502. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7503. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7504. archive_cmds=''
  7505. hardcode_direct=yes
  7506. hardcode_direct_absolute=yes
  7507. hardcode_libdir_separator=':'
  7508. link_all_deplibs=yes
  7509. file_list_spec='${wl}-f,'
  7510. if test "$GCC" = yes; then
  7511. case $host_os in aix4.[012]|aix4.[012].*)
  7512. # We only want to do this on AIX 4.2 and lower, the check
  7513. # below for broken collect2 doesn't work under 4.3+
  7514. collect2name=`${CC} -print-prog-name=collect2`
  7515. if test -f "$collect2name" &&
  7516. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7517. then
  7518. # We have reworked collect2
  7519. :
  7520. else
  7521. # We have old collect2
  7522. hardcode_direct=unsupported
  7523. # It fails to find uninstalled libraries when the uninstalled
  7524. # path is not listed in the libpath. Setting hardcode_minus_L
  7525. # to unsupported forces relinking
  7526. hardcode_minus_L=yes
  7527. hardcode_libdir_flag_spec='-L$libdir'
  7528. hardcode_libdir_separator=
  7529. fi
  7530. ;;
  7531. esac
  7532. shared_flag='-shared'
  7533. if test "$aix_use_runtimelinking" = yes; then
  7534. shared_flag="$shared_flag "'${wl}-G'
  7535. fi
  7536. else
  7537. # not using gcc
  7538. if test "$host_cpu" = ia64; then
  7539. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7540. # chokes on -Wl,-G. The following line is correct:
  7541. shared_flag='-G'
  7542. else
  7543. if test "$aix_use_runtimelinking" = yes; then
  7544. shared_flag='${wl}-G'
  7545. else
  7546. shared_flag='${wl}-bM:SRE'
  7547. fi
  7548. fi
  7549. fi
  7550. export_dynamic_flag_spec='${wl}-bexpall'
  7551. # It seems that -bexpall does not export symbols beginning with
  7552. # underscore (_), so it is better to generate a list of symbols to export.
  7553. always_export_symbols=yes
  7554. if test "$aix_use_runtimelinking" = yes; then
  7555. # Warning - without using the other runtime loading flags (-brtl),
  7556. # -berok will link without error, but may produce a broken library.
  7557. allow_undefined_flag='-berok'
  7558. # Determine the default libpath from the value encoded in an
  7559. # empty executable.
  7560. if test x$gcc_no_link = xyes; then
  7561. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7562. fi
  7563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7564. /* end confdefs.h. */
  7565. int
  7566. main ()
  7567. {
  7568. ;
  7569. return 0;
  7570. }
  7571. _ACEOF
  7572. if ac_fn_c_try_link "$LINENO"; then :
  7573. lt_aix_libpath_sed='
  7574. /Import File Strings/,/^$/ {
  7575. /^0/ {
  7576. s/^0 *\(.*\)$/\1/
  7577. p
  7578. }
  7579. }'
  7580. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7581. # Check for a 64-bit object if we didn't find anything.
  7582. if test -z "$aix_libpath"; then
  7583. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7584. fi
  7585. fi
  7586. rm -f core conftest.err conftest.$ac_objext \
  7587. conftest$ac_exeext conftest.$ac_ext
  7588. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7589. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7590. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7591. else
  7592. if test "$host_cpu" = ia64; then
  7593. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7594. allow_undefined_flag="-z nodefs"
  7595. 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"
  7596. else
  7597. # Determine the default libpath from the value encoded in an
  7598. # empty executable.
  7599. if test x$gcc_no_link = xyes; then
  7600. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7601. fi
  7602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7603. /* end confdefs.h. */
  7604. int
  7605. main ()
  7606. {
  7607. ;
  7608. return 0;
  7609. }
  7610. _ACEOF
  7611. if ac_fn_c_try_link "$LINENO"; then :
  7612. lt_aix_libpath_sed='
  7613. /Import File Strings/,/^$/ {
  7614. /^0/ {
  7615. s/^0 *\(.*\)$/\1/
  7616. p
  7617. }
  7618. }'
  7619. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7620. # Check for a 64-bit object if we didn't find anything.
  7621. if test -z "$aix_libpath"; then
  7622. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7623. fi
  7624. fi
  7625. rm -f core conftest.err conftest.$ac_objext \
  7626. conftest$ac_exeext conftest.$ac_ext
  7627. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7628. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7629. # Warning - without using the other run time loading flags,
  7630. # -berok will link without error, but may produce a broken library.
  7631. no_undefined_flag=' ${wl}-bernotok'
  7632. allow_undefined_flag=' ${wl}-berok'
  7633. if test "$with_gnu_ld" = yes; then
  7634. # We only use this code for GNU lds that support --whole-archive.
  7635. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7636. else
  7637. # Exported symbols can be pulled into shared objects from archives
  7638. whole_archive_flag_spec='$convenience'
  7639. fi
  7640. archive_cmds_need_lc=yes
  7641. # This is similar to how AIX traditionally builds its shared libraries.
  7642. 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'
  7643. fi
  7644. fi
  7645. ;;
  7646. amigaos*)
  7647. case $host_cpu in
  7648. powerpc)
  7649. # see comment about AmigaOS4 .so support
  7650. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7651. archive_expsym_cmds=''
  7652. ;;
  7653. m68k)
  7654. 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)'
  7655. hardcode_libdir_flag_spec='-L$libdir'
  7656. hardcode_minus_L=yes
  7657. ;;
  7658. esac
  7659. ;;
  7660. bsdi[45]*)
  7661. export_dynamic_flag_spec=-rdynamic
  7662. ;;
  7663. cygwin* | mingw* | pw32* | cegcc*)
  7664. # When not using gcc, we currently assume that we are using
  7665. # Microsoft Visual C++.
  7666. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7667. # no search path for DLLs.
  7668. hardcode_libdir_flag_spec=' '
  7669. allow_undefined_flag=unsupported
  7670. # Tell ltmain to make .lib files, not .a files.
  7671. libext=lib
  7672. # Tell ltmain to make .dll files, not .so files.
  7673. shrext_cmds=".dll"
  7674. # FIXME: Setting linknames here is a bad hack.
  7675. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7676. # The linker will automatically build a .lib file if we build a DLL.
  7677. old_archive_from_new_cmds='true'
  7678. # FIXME: Should let the user specify the lib program.
  7679. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7680. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7681. enable_shared_with_static_runtimes=yes
  7682. ;;
  7683. darwin* | rhapsody*)
  7684. archive_cmds_need_lc=no
  7685. hardcode_direct=no
  7686. hardcode_automatic=yes
  7687. hardcode_shlibpath_var=unsupported
  7688. if test "$lt_cv_ld_force_load" = "yes"; then
  7689. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  7690. else
  7691. whole_archive_flag_spec=''
  7692. fi
  7693. link_all_deplibs=yes
  7694. allow_undefined_flag="$_lt_dar_allow_undefined"
  7695. case $cc_basename in
  7696. ifort*) _lt_dar_can_shared=yes ;;
  7697. *) _lt_dar_can_shared=$GCC ;;
  7698. esac
  7699. if test "$_lt_dar_can_shared" = "yes"; then
  7700. output_verbose_link_cmd=func_echo_all
  7701. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7702. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7703. 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}"
  7704. 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}"
  7705. else
  7706. ld_shlibs=no
  7707. fi
  7708. ;;
  7709. dgux*)
  7710. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7711. hardcode_libdir_flag_spec='-L$libdir'
  7712. hardcode_shlibpath_var=no
  7713. ;;
  7714. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7715. # support. Future versions do this automatically, but an explicit c++rt0.o
  7716. # does not break anything, and helps significantly (at the cost of a little
  7717. # extra space).
  7718. freebsd2.2*)
  7719. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7720. hardcode_libdir_flag_spec='-R$libdir'
  7721. hardcode_direct=yes
  7722. hardcode_shlibpath_var=no
  7723. ;;
  7724. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7725. freebsd2.*)
  7726. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7727. hardcode_direct=yes
  7728. hardcode_minus_L=yes
  7729. hardcode_shlibpath_var=no
  7730. ;;
  7731. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7732. freebsd* | dragonfly*)
  7733. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7734. hardcode_libdir_flag_spec='-R$libdir'
  7735. hardcode_direct=yes
  7736. hardcode_shlibpath_var=no
  7737. ;;
  7738. hpux9*)
  7739. if test "$GCC" = yes; then
  7740. 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'
  7741. else
  7742. 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'
  7743. fi
  7744. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7745. hardcode_libdir_separator=:
  7746. hardcode_direct=yes
  7747. # hardcode_minus_L: Not really in the search PATH,
  7748. # but as the default location of the library.
  7749. hardcode_minus_L=yes
  7750. export_dynamic_flag_spec='${wl}-E'
  7751. ;;
  7752. hpux10*)
  7753. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7754. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7755. else
  7756. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7757. fi
  7758. if test "$with_gnu_ld" = no; then
  7759. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7760. hardcode_libdir_flag_spec_ld='+b $libdir'
  7761. hardcode_libdir_separator=:
  7762. hardcode_direct=yes
  7763. hardcode_direct_absolute=yes
  7764. export_dynamic_flag_spec='${wl}-E'
  7765. # hardcode_minus_L: Not really in the search PATH,
  7766. # but as the default location of the library.
  7767. hardcode_minus_L=yes
  7768. fi
  7769. ;;
  7770. hpux11*)
  7771. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7772. case $host_cpu in
  7773. hppa*64*)
  7774. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7775. ;;
  7776. ia64*)
  7777. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7778. ;;
  7779. *)
  7780. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7781. ;;
  7782. esac
  7783. else
  7784. case $host_cpu in
  7785. hppa*64*)
  7786. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7787. ;;
  7788. ia64*)
  7789. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7790. ;;
  7791. *)
  7792. # Older versions of the 11.00 compiler do not understand -b yet
  7793. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  7794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  7795. $as_echo_n "checking if $CC understands -b... " >&6; }
  7796. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  7797. $as_echo_n "(cached) " >&6
  7798. else
  7799. lt_cv_prog_compiler__b=no
  7800. save_LDFLAGS="$LDFLAGS"
  7801. LDFLAGS="$LDFLAGS -b"
  7802. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7803. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7804. # The linker can only warn and ignore the option if not recognized
  7805. # So say no if there are warnings
  7806. if test -s conftest.err; then
  7807. # Append any errors to the config.log.
  7808. cat conftest.err 1>&5
  7809. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7810. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7811. if diff conftest.exp conftest.er2 >/dev/null; then
  7812. lt_cv_prog_compiler__b=yes
  7813. fi
  7814. else
  7815. lt_cv_prog_compiler__b=yes
  7816. fi
  7817. fi
  7818. $RM -r conftest*
  7819. LDFLAGS="$save_LDFLAGS"
  7820. fi
  7821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  7822. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  7823. if test x"$lt_cv_prog_compiler__b" = xyes; then
  7824. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7825. else
  7826. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7827. fi
  7828. ;;
  7829. esac
  7830. fi
  7831. if test "$with_gnu_ld" = no; then
  7832. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7833. hardcode_libdir_separator=:
  7834. case $host_cpu in
  7835. hppa*64*|ia64*)
  7836. hardcode_direct=no
  7837. hardcode_shlibpath_var=no
  7838. ;;
  7839. *)
  7840. hardcode_direct=yes
  7841. hardcode_direct_absolute=yes
  7842. export_dynamic_flag_spec='${wl}-E'
  7843. # hardcode_minus_L: Not really in the search PATH,
  7844. # but as the default location of the library.
  7845. hardcode_minus_L=yes
  7846. ;;
  7847. esac
  7848. fi
  7849. ;;
  7850. irix5* | irix6* | nonstopux*)
  7851. if test "$GCC" = yes; then
  7852. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7853. # Try to use the -exported_symbol ld option, if it does not
  7854. # work, assume that -exports_file does not work either and
  7855. # implicitly export all symbols.
  7856. save_LDFLAGS="$LDFLAGS"
  7857. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7858. if test x$gcc_no_link = xyes; then
  7859. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7860. fi
  7861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7862. /* end confdefs.h. */
  7863. int foo(void) {}
  7864. _ACEOF
  7865. if ac_fn_c_try_link "$LINENO"; then :
  7866. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  7867. fi
  7868. rm -f core conftest.err conftest.$ac_objext \
  7869. conftest$ac_exeext conftest.$ac_ext
  7870. LDFLAGS="$save_LDFLAGS"
  7871. else
  7872. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  7873. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  7874. fi
  7875. archive_cmds_need_lc='no'
  7876. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7877. hardcode_libdir_separator=:
  7878. inherit_rpath=yes
  7879. link_all_deplibs=yes
  7880. ;;
  7881. netbsd*)
  7882. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7883. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7884. else
  7885. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7886. fi
  7887. hardcode_libdir_flag_spec='-R$libdir'
  7888. hardcode_direct=yes
  7889. hardcode_shlibpath_var=no
  7890. ;;
  7891. newsos6)
  7892. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7893. hardcode_direct=yes
  7894. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7895. hardcode_libdir_separator=:
  7896. hardcode_shlibpath_var=no
  7897. ;;
  7898. *nto* | *qnx*)
  7899. ;;
  7900. openbsd*)
  7901. if test -f /usr/libexec/ld.so; then
  7902. hardcode_direct=yes
  7903. hardcode_shlibpath_var=no
  7904. hardcode_direct_absolute=yes
  7905. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7906. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7907. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7908. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7909. export_dynamic_flag_spec='${wl}-E'
  7910. else
  7911. case $host_os in
  7912. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7913. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7914. hardcode_libdir_flag_spec='-R$libdir'
  7915. ;;
  7916. *)
  7917. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7918. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7919. ;;
  7920. esac
  7921. fi
  7922. else
  7923. ld_shlibs=no
  7924. fi
  7925. ;;
  7926. os2*)
  7927. hardcode_libdir_flag_spec='-L$libdir'
  7928. hardcode_minus_L=yes
  7929. allow_undefined_flag=unsupported
  7930. 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'
  7931. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7932. ;;
  7933. osf3*)
  7934. if test "$GCC" = yes; then
  7935. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7936. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7937. else
  7938. allow_undefined_flag=' -expect_unresolved \*'
  7939. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  7940. fi
  7941. archive_cmds_need_lc='no'
  7942. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7943. hardcode_libdir_separator=:
  7944. ;;
  7945. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7946. if test "$GCC" = yes; then
  7947. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7948. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7949. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7950. else
  7951. allow_undefined_flag=' -expect_unresolved \*'
  7952. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  7953. 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~
  7954. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  7955. # Both c and cxx compiler support -rpath directly
  7956. hardcode_libdir_flag_spec='-rpath $libdir'
  7957. fi
  7958. archive_cmds_need_lc='no'
  7959. hardcode_libdir_separator=:
  7960. ;;
  7961. solaris*)
  7962. no_undefined_flag=' -z defs'
  7963. if test "$GCC" = yes; then
  7964. wlarc='${wl}'
  7965. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7966. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7967. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7968. else
  7969. case `$CC -V 2>&1` in
  7970. *"Compilers 5.0"*)
  7971. wlarc=''
  7972. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7973. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7974. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7975. ;;
  7976. *)
  7977. wlarc='${wl}'
  7978. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7979. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7980. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7981. ;;
  7982. esac
  7983. fi
  7984. hardcode_libdir_flag_spec='-R$libdir'
  7985. hardcode_shlibpath_var=no
  7986. case $host_os in
  7987. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7988. *)
  7989. # The compiler driver will combine and reorder linker options,
  7990. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7991. # but is careful enough not to reorder.
  7992. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7993. if test "$GCC" = yes; then
  7994. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7995. else
  7996. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7997. fi
  7998. ;;
  7999. esac
  8000. link_all_deplibs=yes
  8001. ;;
  8002. sunos4*)
  8003. if test "x$host_vendor" = xsequent; then
  8004. # Use $CC to link under sequent, because it throws in some extra .o
  8005. # files that make .init and .fini sections work.
  8006. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8007. else
  8008. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8009. fi
  8010. hardcode_libdir_flag_spec='-L$libdir'
  8011. hardcode_direct=yes
  8012. hardcode_minus_L=yes
  8013. hardcode_shlibpath_var=no
  8014. ;;
  8015. sysv4)
  8016. case $host_vendor in
  8017. sni)
  8018. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8019. hardcode_direct=yes # is this really true???
  8020. ;;
  8021. siemens)
  8022. ## LD is ld it makes a PLAMLIB
  8023. ## CC just makes a GrossModule.
  8024. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8025. reload_cmds='$CC -r -o $output$reload_objs'
  8026. hardcode_direct=no
  8027. ;;
  8028. motorola)
  8029. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8030. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8031. ;;
  8032. esac
  8033. runpath_var='LD_RUN_PATH'
  8034. hardcode_shlibpath_var=no
  8035. ;;
  8036. sysv4.3*)
  8037. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8038. hardcode_shlibpath_var=no
  8039. export_dynamic_flag_spec='-Bexport'
  8040. ;;
  8041. sysv4*MP*)
  8042. if test -d /usr/nec; then
  8043. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8044. hardcode_shlibpath_var=no
  8045. runpath_var=LD_RUN_PATH
  8046. hardcode_runpath_var=yes
  8047. ld_shlibs=yes
  8048. fi
  8049. ;;
  8050. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8051. no_undefined_flag='${wl}-z,text'
  8052. archive_cmds_need_lc=no
  8053. hardcode_shlibpath_var=no
  8054. runpath_var='LD_RUN_PATH'
  8055. if test "$GCC" = yes; then
  8056. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8057. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8058. else
  8059. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8060. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8061. fi
  8062. ;;
  8063. sysv5* | sco3.2v5* | sco5v6*)
  8064. # Note: We can NOT use -z defs as we might desire, because we do not
  8065. # link with -lc, and that would cause any symbols used from libc to
  8066. # always be unresolved, which means just about no library would
  8067. # ever link correctly. If we're not using GNU ld we use -z text
  8068. # though, which does catch some bad symbols but isn't as heavy-handed
  8069. # as -z defs.
  8070. no_undefined_flag='${wl}-z,text'
  8071. allow_undefined_flag='${wl}-z,nodefs'
  8072. archive_cmds_need_lc=no
  8073. hardcode_shlibpath_var=no
  8074. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8075. hardcode_libdir_separator=':'
  8076. link_all_deplibs=yes
  8077. export_dynamic_flag_spec='${wl}-Bexport'
  8078. runpath_var='LD_RUN_PATH'
  8079. if test "$GCC" = yes; then
  8080. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8081. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8082. else
  8083. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8084. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8085. fi
  8086. ;;
  8087. uts4*)
  8088. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8089. hardcode_libdir_flag_spec='-L$libdir'
  8090. hardcode_shlibpath_var=no
  8091. ;;
  8092. *)
  8093. ld_shlibs=no
  8094. ;;
  8095. esac
  8096. if test x$host_vendor = xsni; then
  8097. case $host in
  8098. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8099. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8100. ;;
  8101. esac
  8102. fi
  8103. fi
  8104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8105. $as_echo "$ld_shlibs" >&6; }
  8106. test "$ld_shlibs" = no && can_build_shared=no
  8107. with_gnu_ld=$with_gnu_ld
  8108. #
  8109. # Do we need to explicitly link libc?
  8110. #
  8111. case "x$archive_cmds_need_lc" in
  8112. x|xyes)
  8113. # Assume -lc should be added
  8114. archive_cmds_need_lc=yes
  8115. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8116. case $archive_cmds in
  8117. *'~'*)
  8118. # FIXME: we may have to deal with multi-command sequences.
  8119. ;;
  8120. '$CC '*)
  8121. # Test whether the compiler implicitly links with -lc since on some
  8122. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8123. # to ld, don't add -lc before -lgcc.
  8124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8125. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8126. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8127. $as_echo_n "(cached) " >&6
  8128. else
  8129. $RM conftest*
  8130. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8131. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8132. (eval $ac_compile) 2>&5
  8133. ac_status=$?
  8134. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8135. test $ac_status = 0; } 2>conftest.err; then
  8136. soname=conftest
  8137. lib=conftest
  8138. libobjs=conftest.$ac_objext
  8139. deplibs=
  8140. wl=$lt_prog_compiler_wl
  8141. pic_flag=$lt_prog_compiler_pic
  8142. compiler_flags=-v
  8143. linker_flags=-v
  8144. verstring=
  8145. output_objdir=.
  8146. libname=conftest
  8147. lt_save_allow_undefined_flag=$allow_undefined_flag
  8148. allow_undefined_flag=
  8149. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8150. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8151. ac_status=$?
  8152. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8153. test $ac_status = 0; }
  8154. then
  8155. lt_cv_archive_cmds_need_lc=no
  8156. else
  8157. lt_cv_archive_cmds_need_lc=yes
  8158. fi
  8159. allow_undefined_flag=$lt_save_allow_undefined_flag
  8160. else
  8161. cat conftest.err 1>&5
  8162. fi
  8163. $RM conftest*
  8164. fi
  8165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8166. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8167. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8168. ;;
  8169. esac
  8170. fi
  8171. ;;
  8172. esac
  8173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8174. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8175. if test "$GCC" = yes; then
  8176. case $host_os in
  8177. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8178. *) lt_awk_arg="/^libraries:/" ;;
  8179. esac
  8180. case $host_os in
  8181. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8182. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8183. esac
  8184. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8185. case $lt_search_path_spec in
  8186. *\;*)
  8187. # if the path contains ";" then we assume it to be the separator
  8188. # otherwise default to the standard path separator (i.e. ":") - it is
  8189. # assumed that no part of a normal pathname contains ";" but that should
  8190. # okay in the real world where ";" in dirpaths is itself problematic.
  8191. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8192. ;;
  8193. *)
  8194. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8195. ;;
  8196. esac
  8197. # Ok, now we have the path, separated by spaces, we can step through it
  8198. # and add multilib dir if necessary.
  8199. lt_tmp_lt_search_path_spec=
  8200. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8201. for lt_sys_path in $lt_search_path_spec; do
  8202. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8203. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8204. else
  8205. test -d "$lt_sys_path" && \
  8206. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8207. fi
  8208. done
  8209. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8210. BEGIN {RS=" "; FS="/|\n";} {
  8211. lt_foo="";
  8212. lt_count=0;
  8213. for (lt_i = NF; lt_i > 0; lt_i--) {
  8214. if ($lt_i != "" && $lt_i != ".") {
  8215. if ($lt_i == "..") {
  8216. lt_count++;
  8217. } else {
  8218. if (lt_count == 0) {
  8219. lt_foo="/" $lt_i lt_foo;
  8220. } else {
  8221. lt_count--;
  8222. }
  8223. }
  8224. }
  8225. }
  8226. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8227. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8228. }'`
  8229. # AWK program above erroneously prepends '/' to C:/dos/paths
  8230. # for these hosts.
  8231. case $host_os in
  8232. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8233. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8234. esac
  8235. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8236. else
  8237. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8238. fi
  8239. library_names_spec=
  8240. libname_spec='lib$name'
  8241. soname_spec=
  8242. shrext_cmds=".so"
  8243. postinstall_cmds=
  8244. postuninstall_cmds=
  8245. finish_cmds=
  8246. finish_eval=
  8247. shlibpath_var=
  8248. shlibpath_overrides_runpath=unknown
  8249. version_type=none
  8250. dynamic_linker="$host_os ld.so"
  8251. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8252. need_lib_prefix=unknown
  8253. hardcode_into_libs=no
  8254. # when you set need_version to no, make sure it does not cause -set_version
  8255. # flags to be left without arguments
  8256. need_version=unknown
  8257. case $host_os in
  8258. aix3*)
  8259. version_type=linux
  8260. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8261. shlibpath_var=LIBPATH
  8262. # AIX 3 has no versioning support, so we append a major version to the name.
  8263. soname_spec='${libname}${release}${shared_ext}$major'
  8264. ;;
  8265. aix[4-9]*)
  8266. version_type=linux
  8267. need_lib_prefix=no
  8268. need_version=no
  8269. hardcode_into_libs=yes
  8270. if test "$host_cpu" = ia64; then
  8271. # AIX 5 supports IA64
  8272. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8273. shlibpath_var=LD_LIBRARY_PATH
  8274. else
  8275. # With GCC up to 2.95.x, collect2 would create an import file
  8276. # for dependence libraries. The import file would start with
  8277. # the line `#! .'. This would cause the generated library to
  8278. # depend on `.', always an invalid library. This was fixed in
  8279. # development snapshots of GCC prior to 3.0.
  8280. case $host_os in
  8281. aix4 | aix4.[01] | aix4.[01].*)
  8282. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8283. echo ' yes '
  8284. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8285. :
  8286. else
  8287. can_build_shared=no
  8288. fi
  8289. ;;
  8290. esac
  8291. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8292. # soname into executable. Probably we can add versioning support to
  8293. # collect2, so additional links can be useful in future.
  8294. if test "$aix_use_runtimelinking" = yes; then
  8295. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8296. # instead of lib<name>.a to let people know that these are not
  8297. # typical AIX shared libraries.
  8298. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8299. else
  8300. # We preserve .a as extension for shared libraries through AIX4.2
  8301. # and later when we are not doing run time linking.
  8302. library_names_spec='${libname}${release}.a $libname.a'
  8303. soname_spec='${libname}${release}${shared_ext}$major'
  8304. fi
  8305. shlibpath_var=LIBPATH
  8306. fi
  8307. ;;
  8308. amigaos*)
  8309. case $host_cpu in
  8310. powerpc)
  8311. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8312. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8313. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8314. ;;
  8315. m68k)
  8316. library_names_spec='$libname.ixlibrary $libname.a'
  8317. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8318. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8319. ;;
  8320. esac
  8321. ;;
  8322. beos*)
  8323. library_names_spec='${libname}${shared_ext}'
  8324. dynamic_linker="$host_os ld.so"
  8325. shlibpath_var=LIBRARY_PATH
  8326. ;;
  8327. bsdi[45]*)
  8328. version_type=linux
  8329. need_version=no
  8330. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8331. soname_spec='${libname}${release}${shared_ext}$major'
  8332. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8333. shlibpath_var=LD_LIBRARY_PATH
  8334. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8335. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8336. # the default ld.so.conf also contains /usr/contrib/lib and
  8337. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8338. # libtool to hard-code these into programs
  8339. ;;
  8340. cygwin* | mingw* | pw32* | cegcc*)
  8341. version_type=windows
  8342. shrext_cmds=".dll"
  8343. need_version=no
  8344. need_lib_prefix=no
  8345. case $GCC,$host_os in
  8346. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8347. library_names_spec='$libname.dll.a'
  8348. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8349. postinstall_cmds='base_file=`basename \${file}`~
  8350. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8351. dldir=$destdir/`dirname \$dlpath`~
  8352. test -d \$dldir || mkdir -p \$dldir~
  8353. $install_prog $dir/$dlname \$dldir/$dlname~
  8354. chmod a+x \$dldir/$dlname~
  8355. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8356. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8357. fi'
  8358. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8359. dlpath=$dir/\$dldll~
  8360. $RM \$dlpath'
  8361. shlibpath_overrides_runpath=yes
  8362. case $host_os in
  8363. cygwin*)
  8364. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8365. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8366. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8367. ;;
  8368. mingw* | cegcc*)
  8369. # MinGW DLLs use traditional 'lib' prefix
  8370. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8371. ;;
  8372. pw32*)
  8373. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8374. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8375. ;;
  8376. esac
  8377. ;;
  8378. *)
  8379. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8380. ;;
  8381. esac
  8382. dynamic_linker='Win32 ld.exe'
  8383. # FIXME: first we should search . and the directory the executable is in
  8384. shlibpath_var=PATH
  8385. ;;
  8386. darwin* | rhapsody*)
  8387. dynamic_linker="$host_os dyld"
  8388. version_type=darwin
  8389. need_lib_prefix=no
  8390. need_version=no
  8391. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8392. soname_spec='${libname}${release}${major}$shared_ext'
  8393. shlibpath_overrides_runpath=yes
  8394. shlibpath_var=DYLD_LIBRARY_PATH
  8395. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8396. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8397. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8398. ;;
  8399. dgux*)
  8400. version_type=linux
  8401. need_lib_prefix=no
  8402. need_version=no
  8403. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8404. soname_spec='${libname}${release}${shared_ext}$major'
  8405. shlibpath_var=LD_LIBRARY_PATH
  8406. ;;
  8407. freebsd* | dragonfly*)
  8408. # DragonFly does not have aout. When/if they implement a new
  8409. # versioning mechanism, adjust this.
  8410. if test -x /usr/bin/objformat; then
  8411. objformat=`/usr/bin/objformat`
  8412. else
  8413. case $host_os in
  8414. freebsd[23].*) objformat=aout ;;
  8415. *) objformat=elf ;;
  8416. esac
  8417. fi
  8418. version_type=freebsd-$objformat
  8419. case $version_type in
  8420. freebsd-elf*)
  8421. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8422. need_version=no
  8423. need_lib_prefix=no
  8424. ;;
  8425. freebsd-*)
  8426. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8427. need_version=yes
  8428. ;;
  8429. esac
  8430. shlibpath_var=LD_LIBRARY_PATH
  8431. case $host_os in
  8432. freebsd2.*)
  8433. shlibpath_overrides_runpath=yes
  8434. ;;
  8435. freebsd3.[01]* | freebsdelf3.[01]*)
  8436. shlibpath_overrides_runpath=yes
  8437. hardcode_into_libs=yes
  8438. ;;
  8439. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8440. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8441. shlibpath_overrides_runpath=no
  8442. hardcode_into_libs=yes
  8443. ;;
  8444. *) # from 4.6 on, and DragonFly
  8445. shlibpath_overrides_runpath=yes
  8446. hardcode_into_libs=yes
  8447. ;;
  8448. esac
  8449. ;;
  8450. gnu*)
  8451. version_type=linux
  8452. need_lib_prefix=no
  8453. need_version=no
  8454. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8455. soname_spec='${libname}${release}${shared_ext}$major'
  8456. shlibpath_var=LD_LIBRARY_PATH
  8457. hardcode_into_libs=yes
  8458. ;;
  8459. haiku*)
  8460. version_type=linux
  8461. need_lib_prefix=no
  8462. need_version=no
  8463. dynamic_linker="$host_os runtime_loader"
  8464. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8465. soname_spec='${libname}${release}${shared_ext}$major'
  8466. shlibpath_var=LIBRARY_PATH
  8467. shlibpath_overrides_runpath=yes
  8468. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  8469. hardcode_into_libs=yes
  8470. ;;
  8471. hpux9* | hpux10* | hpux11*)
  8472. # Give a soname corresponding to the major version so that dld.sl refuses to
  8473. # link against other versions.
  8474. version_type=sunos
  8475. need_lib_prefix=no
  8476. need_version=no
  8477. case $host_cpu in
  8478. ia64*)
  8479. shrext_cmds='.so'
  8480. hardcode_into_libs=yes
  8481. dynamic_linker="$host_os dld.so"
  8482. shlibpath_var=LD_LIBRARY_PATH
  8483. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8484. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8485. soname_spec='${libname}${release}${shared_ext}$major'
  8486. if test "X$HPUX_IA64_MODE" = X32; then
  8487. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8488. else
  8489. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8490. fi
  8491. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8492. ;;
  8493. hppa*64*)
  8494. shrext_cmds='.sl'
  8495. hardcode_into_libs=yes
  8496. dynamic_linker="$host_os dld.sl"
  8497. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8498. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8499. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8500. soname_spec='${libname}${release}${shared_ext}$major'
  8501. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8502. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8503. ;;
  8504. *)
  8505. shrext_cmds='.sl'
  8506. dynamic_linker="$host_os dld.sl"
  8507. shlibpath_var=SHLIB_PATH
  8508. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8509. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8510. soname_spec='${libname}${release}${shared_ext}$major'
  8511. ;;
  8512. esac
  8513. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8514. postinstall_cmds='chmod 555 $lib'
  8515. # or fails outright, so override atomically:
  8516. install_override_mode=555
  8517. ;;
  8518. interix[3-9]*)
  8519. version_type=linux
  8520. need_lib_prefix=no
  8521. need_version=no
  8522. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8523. soname_spec='${libname}${release}${shared_ext}$major'
  8524. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8525. shlibpath_var=LD_LIBRARY_PATH
  8526. shlibpath_overrides_runpath=no
  8527. hardcode_into_libs=yes
  8528. ;;
  8529. irix5* | irix6* | nonstopux*)
  8530. case $host_os in
  8531. nonstopux*) version_type=nonstopux ;;
  8532. *)
  8533. if test "$lt_cv_prog_gnu_ld" = yes; then
  8534. version_type=linux
  8535. else
  8536. version_type=irix
  8537. fi ;;
  8538. esac
  8539. need_lib_prefix=no
  8540. need_version=no
  8541. soname_spec='${libname}${release}${shared_ext}$major'
  8542. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8543. case $host_os in
  8544. irix5* | nonstopux*)
  8545. libsuff= shlibsuff=
  8546. ;;
  8547. *)
  8548. case $LD in # libtool.m4 will add one of these switches to LD
  8549. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8550. libsuff= shlibsuff= libmagic=32-bit;;
  8551. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8552. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8553. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8554. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8555. *) libsuff= shlibsuff= libmagic=never-match;;
  8556. esac
  8557. ;;
  8558. esac
  8559. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8560. shlibpath_overrides_runpath=no
  8561. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8562. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8563. hardcode_into_libs=yes
  8564. ;;
  8565. # No shared lib support for Linux oldld, aout, or coff.
  8566. linux*oldld* | linux*aout* | linux*coff*)
  8567. dynamic_linker=no
  8568. ;;
  8569. # This must be Linux ELF.
  8570. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8571. version_type=linux
  8572. need_lib_prefix=no
  8573. need_version=no
  8574. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8575. soname_spec='${libname}${release}${shared_ext}$major'
  8576. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8577. shlibpath_var=LD_LIBRARY_PATH
  8578. shlibpath_overrides_runpath=no
  8579. # Some binutils ld are patched to set DT_RUNPATH
  8580. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  8581. $as_echo_n "(cached) " >&6
  8582. else
  8583. lt_cv_shlibpath_overrides_runpath=no
  8584. save_LDFLAGS=$LDFLAGS
  8585. save_libdir=$libdir
  8586. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8587. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8588. if test x$gcc_no_link = xyes; then
  8589. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8590. fi
  8591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8592. /* end confdefs.h. */
  8593. int
  8594. main ()
  8595. {
  8596. ;
  8597. return 0;
  8598. }
  8599. _ACEOF
  8600. if ac_fn_c_try_link "$LINENO"; then :
  8601. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8602. lt_cv_shlibpath_overrides_runpath=yes
  8603. fi
  8604. fi
  8605. rm -f core conftest.err conftest.$ac_objext \
  8606. conftest$ac_exeext conftest.$ac_ext
  8607. LDFLAGS=$save_LDFLAGS
  8608. libdir=$save_libdir
  8609. fi
  8610. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8611. # This implies no fast_install, which is unacceptable.
  8612. # Some rework will be needed to allow for fast_install
  8613. # before this can be enabled.
  8614. hardcode_into_libs=yes
  8615. # Append ld.so.conf contents to the search path
  8616. if test -f /etc/ld.so.conf; then
  8617. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  8618. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8619. fi
  8620. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8621. # powerpc, because MkLinux only supported shared libraries with the
  8622. # GNU dynamic linker. Since this was broken with cross compilers,
  8623. # most powerpc-linux boxes support dynamic linking these days and
  8624. # people can always --disable-shared, the test was removed, and we
  8625. # assume the GNU/Linux dynamic linker is in use.
  8626. dynamic_linker='GNU/Linux ld.so'
  8627. ;;
  8628. netbsd*)
  8629. version_type=sunos
  8630. need_lib_prefix=no
  8631. need_version=no
  8632. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8633. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8634. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8635. dynamic_linker='NetBSD (a.out) ld.so'
  8636. else
  8637. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8638. soname_spec='${libname}${release}${shared_ext}$major'
  8639. dynamic_linker='NetBSD ld.elf_so'
  8640. fi
  8641. shlibpath_var=LD_LIBRARY_PATH
  8642. shlibpath_overrides_runpath=yes
  8643. hardcode_into_libs=yes
  8644. ;;
  8645. newsos6)
  8646. version_type=linux
  8647. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8648. shlibpath_var=LD_LIBRARY_PATH
  8649. shlibpath_overrides_runpath=yes
  8650. ;;
  8651. *nto* | *qnx*)
  8652. version_type=qnx
  8653. need_lib_prefix=no
  8654. need_version=no
  8655. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8656. soname_spec='${libname}${release}${shared_ext}$major'
  8657. shlibpath_var=LD_LIBRARY_PATH
  8658. shlibpath_overrides_runpath=no
  8659. hardcode_into_libs=yes
  8660. dynamic_linker='ldqnx.so'
  8661. ;;
  8662. openbsd*)
  8663. version_type=sunos
  8664. sys_lib_dlsearch_path_spec="/usr/lib"
  8665. need_lib_prefix=no
  8666. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8667. case $host_os in
  8668. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8669. *) need_version=no ;;
  8670. esac
  8671. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8672. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8673. shlibpath_var=LD_LIBRARY_PATH
  8674. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8675. case $host_os in
  8676. openbsd2.[89] | openbsd2.[89].*)
  8677. shlibpath_overrides_runpath=no
  8678. ;;
  8679. *)
  8680. shlibpath_overrides_runpath=yes
  8681. ;;
  8682. esac
  8683. else
  8684. shlibpath_overrides_runpath=yes
  8685. fi
  8686. ;;
  8687. os2*)
  8688. libname_spec='$name'
  8689. shrext_cmds=".dll"
  8690. need_lib_prefix=no
  8691. library_names_spec='$libname${shared_ext} $libname.a'
  8692. dynamic_linker='OS/2 ld.exe'
  8693. shlibpath_var=LIBPATH
  8694. ;;
  8695. osf3* | osf4* | osf5*)
  8696. version_type=osf
  8697. need_lib_prefix=no
  8698. need_version=no
  8699. soname_spec='${libname}${release}${shared_ext}$major'
  8700. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8701. shlibpath_var=LD_LIBRARY_PATH
  8702. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8703. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8704. ;;
  8705. rdos*)
  8706. dynamic_linker=no
  8707. ;;
  8708. solaris*)
  8709. version_type=linux
  8710. need_lib_prefix=no
  8711. need_version=no
  8712. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8713. soname_spec='${libname}${release}${shared_ext}$major'
  8714. shlibpath_var=LD_LIBRARY_PATH
  8715. shlibpath_overrides_runpath=yes
  8716. hardcode_into_libs=yes
  8717. # ldd complains unless libraries are executable
  8718. postinstall_cmds='chmod +x $lib'
  8719. ;;
  8720. sunos4*)
  8721. version_type=sunos
  8722. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8723. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8724. shlibpath_var=LD_LIBRARY_PATH
  8725. shlibpath_overrides_runpath=yes
  8726. if test "$with_gnu_ld" = yes; then
  8727. need_lib_prefix=no
  8728. fi
  8729. need_version=yes
  8730. ;;
  8731. sysv4 | sysv4.3*)
  8732. version_type=linux
  8733. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8734. soname_spec='${libname}${release}${shared_ext}$major'
  8735. shlibpath_var=LD_LIBRARY_PATH
  8736. case $host_vendor in
  8737. sni)
  8738. shlibpath_overrides_runpath=no
  8739. need_lib_prefix=no
  8740. runpath_var=LD_RUN_PATH
  8741. ;;
  8742. siemens)
  8743. need_lib_prefix=no
  8744. ;;
  8745. motorola)
  8746. need_lib_prefix=no
  8747. need_version=no
  8748. shlibpath_overrides_runpath=no
  8749. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8750. ;;
  8751. esac
  8752. ;;
  8753. sysv4*MP*)
  8754. if test -d /usr/nec ;then
  8755. version_type=linux
  8756. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8757. soname_spec='$libname${shared_ext}.$major'
  8758. shlibpath_var=LD_LIBRARY_PATH
  8759. fi
  8760. ;;
  8761. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8762. version_type=freebsd-elf
  8763. need_lib_prefix=no
  8764. need_version=no
  8765. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8766. soname_spec='${libname}${release}${shared_ext}$major'
  8767. shlibpath_var=LD_LIBRARY_PATH
  8768. shlibpath_overrides_runpath=yes
  8769. hardcode_into_libs=yes
  8770. if test "$with_gnu_ld" = yes; then
  8771. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8772. else
  8773. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8774. case $host_os in
  8775. sco3.2v5*)
  8776. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8777. ;;
  8778. esac
  8779. fi
  8780. sys_lib_dlsearch_path_spec='/usr/lib'
  8781. ;;
  8782. tpf*)
  8783. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8784. version_type=linux
  8785. need_lib_prefix=no
  8786. need_version=no
  8787. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8788. shlibpath_var=LD_LIBRARY_PATH
  8789. shlibpath_overrides_runpath=no
  8790. hardcode_into_libs=yes
  8791. ;;
  8792. uts4*)
  8793. version_type=linux
  8794. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8795. soname_spec='${libname}${release}${shared_ext}$major'
  8796. shlibpath_var=LD_LIBRARY_PATH
  8797. ;;
  8798. *)
  8799. dynamic_linker=no
  8800. ;;
  8801. esac
  8802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8803. $as_echo "$dynamic_linker" >&6; }
  8804. test "$dynamic_linker" = no && can_build_shared=no
  8805. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8806. if test "$GCC" = yes; then
  8807. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8808. fi
  8809. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8810. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8811. fi
  8812. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8813. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8814. fi
  8815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8816. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8817. hardcode_action=
  8818. if test -n "$hardcode_libdir_flag_spec" ||
  8819. test -n "$runpath_var" ||
  8820. test "X$hardcode_automatic" = "Xyes" ; then
  8821. # We can hardcode non-existent directories.
  8822. if test "$hardcode_direct" != no &&
  8823. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8824. # have to relink, otherwise we might link with an installed library
  8825. # when we should be linking with a yet-to-be-installed one
  8826. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8827. test "$hardcode_minus_L" != no; then
  8828. # Linking always hardcodes the temporary library directory.
  8829. hardcode_action=relink
  8830. else
  8831. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8832. hardcode_action=immediate
  8833. fi
  8834. else
  8835. # We cannot hardcode anything, or else we can only hardcode existing
  8836. # directories.
  8837. hardcode_action=unsupported
  8838. fi
  8839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8840. $as_echo "$hardcode_action" >&6; }
  8841. if test "$hardcode_action" = relink ||
  8842. test "$inherit_rpath" = yes; then
  8843. # Fast installation is not supported
  8844. enable_fast_install=no
  8845. elif test "$shlibpath_overrides_runpath" = yes ||
  8846. test "$enable_shared" = no; then
  8847. # Fast installation is not necessary
  8848. enable_fast_install=needless
  8849. fi
  8850. if test "x$enable_dlopen" != xyes; then
  8851. enable_dlopen=unknown
  8852. enable_dlopen_self=unknown
  8853. enable_dlopen_self_static=unknown
  8854. else
  8855. lt_cv_dlopen=no
  8856. lt_cv_dlopen_libs=
  8857. case $host_os in
  8858. beos*)
  8859. lt_cv_dlopen="load_add_on"
  8860. lt_cv_dlopen_libs=
  8861. lt_cv_dlopen_self=yes
  8862. ;;
  8863. mingw* | pw32* | cegcc*)
  8864. lt_cv_dlopen="LoadLibrary"
  8865. lt_cv_dlopen_libs=
  8866. ;;
  8867. cygwin*)
  8868. lt_cv_dlopen="dlopen"
  8869. lt_cv_dlopen_libs=
  8870. ;;
  8871. darwin*)
  8872. # if libdl is installed we need to link against it
  8873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8874. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8875. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8876. $as_echo_n "(cached) " >&6
  8877. else
  8878. ac_check_lib_save_LIBS=$LIBS
  8879. LIBS="-ldl $LIBS"
  8880. if test x$gcc_no_link = xyes; then
  8881. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8882. fi
  8883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8884. /* end confdefs.h. */
  8885. /* Override any GCC internal prototype to avoid an error.
  8886. Use char because int might match the return type of a GCC
  8887. builtin and then its argument prototype would still apply. */
  8888. #ifdef __cplusplus
  8889. extern "C"
  8890. #endif
  8891. char dlopen ();
  8892. int
  8893. main ()
  8894. {
  8895. return dlopen ();
  8896. ;
  8897. return 0;
  8898. }
  8899. _ACEOF
  8900. if ac_fn_c_try_link "$LINENO"; then :
  8901. ac_cv_lib_dl_dlopen=yes
  8902. else
  8903. ac_cv_lib_dl_dlopen=no
  8904. fi
  8905. rm -f core conftest.err conftest.$ac_objext \
  8906. conftest$ac_exeext conftest.$ac_ext
  8907. LIBS=$ac_check_lib_save_LIBS
  8908. fi
  8909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8910. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8911. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  8912. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8913. else
  8914. lt_cv_dlopen="dyld"
  8915. lt_cv_dlopen_libs=
  8916. lt_cv_dlopen_self=yes
  8917. fi
  8918. ;;
  8919. *)
  8920. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  8921. if test "x$ac_cv_func_shl_load" = x""yes; then :
  8922. lt_cv_dlopen="shl_load"
  8923. else
  8924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  8925. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8926. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  8927. $as_echo_n "(cached) " >&6
  8928. else
  8929. ac_check_lib_save_LIBS=$LIBS
  8930. LIBS="-ldld $LIBS"
  8931. if test x$gcc_no_link = xyes; then
  8932. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8933. fi
  8934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8935. /* end confdefs.h. */
  8936. /* Override any GCC internal prototype to avoid an error.
  8937. Use char because int might match the return type of a GCC
  8938. builtin and then its argument prototype would still apply. */
  8939. #ifdef __cplusplus
  8940. extern "C"
  8941. #endif
  8942. char shl_load ();
  8943. int
  8944. main ()
  8945. {
  8946. return shl_load ();
  8947. ;
  8948. return 0;
  8949. }
  8950. _ACEOF
  8951. if ac_fn_c_try_link "$LINENO"; then :
  8952. ac_cv_lib_dld_shl_load=yes
  8953. else
  8954. ac_cv_lib_dld_shl_load=no
  8955. fi
  8956. rm -f core conftest.err conftest.$ac_objext \
  8957. conftest$ac_exeext conftest.$ac_ext
  8958. LIBS=$ac_check_lib_save_LIBS
  8959. fi
  8960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  8961. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  8962. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  8963. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8964. else
  8965. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  8966. if test "x$ac_cv_func_dlopen" = x""yes; then :
  8967. lt_cv_dlopen="dlopen"
  8968. else
  8969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8970. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8971. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8972. $as_echo_n "(cached) " >&6
  8973. else
  8974. ac_check_lib_save_LIBS=$LIBS
  8975. LIBS="-ldl $LIBS"
  8976. if test x$gcc_no_link = xyes; then
  8977. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8978. fi
  8979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8980. /* end confdefs.h. */
  8981. /* Override any GCC internal prototype to avoid an error.
  8982. Use char because int might match the return type of a GCC
  8983. builtin and then its argument prototype would still apply. */
  8984. #ifdef __cplusplus
  8985. extern "C"
  8986. #endif
  8987. char dlopen ();
  8988. int
  8989. main ()
  8990. {
  8991. return dlopen ();
  8992. ;
  8993. return 0;
  8994. }
  8995. _ACEOF
  8996. if ac_fn_c_try_link "$LINENO"; then :
  8997. ac_cv_lib_dl_dlopen=yes
  8998. else
  8999. ac_cv_lib_dl_dlopen=no
  9000. fi
  9001. rm -f core conftest.err conftest.$ac_objext \
  9002. conftest$ac_exeext conftest.$ac_ext
  9003. LIBS=$ac_check_lib_save_LIBS
  9004. fi
  9005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9006. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9007. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9008. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9009. else
  9010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9011. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9012. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9013. $as_echo_n "(cached) " >&6
  9014. else
  9015. ac_check_lib_save_LIBS=$LIBS
  9016. LIBS="-lsvld $LIBS"
  9017. if test x$gcc_no_link = xyes; then
  9018. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9019. fi
  9020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9021. /* end confdefs.h. */
  9022. /* Override any GCC internal prototype to avoid an error.
  9023. Use char because int might match the return type of a GCC
  9024. builtin and then its argument prototype would still apply. */
  9025. #ifdef __cplusplus
  9026. extern "C"
  9027. #endif
  9028. char dlopen ();
  9029. int
  9030. main ()
  9031. {
  9032. return dlopen ();
  9033. ;
  9034. return 0;
  9035. }
  9036. _ACEOF
  9037. if ac_fn_c_try_link "$LINENO"; then :
  9038. ac_cv_lib_svld_dlopen=yes
  9039. else
  9040. ac_cv_lib_svld_dlopen=no
  9041. fi
  9042. rm -f core conftest.err conftest.$ac_objext \
  9043. conftest$ac_exeext conftest.$ac_ext
  9044. LIBS=$ac_check_lib_save_LIBS
  9045. fi
  9046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9047. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9048. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9049. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9050. else
  9051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9052. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9053. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9054. $as_echo_n "(cached) " >&6
  9055. else
  9056. ac_check_lib_save_LIBS=$LIBS
  9057. LIBS="-ldld $LIBS"
  9058. if test x$gcc_no_link = xyes; then
  9059. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9060. fi
  9061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9062. /* end confdefs.h. */
  9063. /* Override any GCC internal prototype to avoid an error.
  9064. Use char because int might match the return type of a GCC
  9065. builtin and then its argument prototype would still apply. */
  9066. #ifdef __cplusplus
  9067. extern "C"
  9068. #endif
  9069. char dld_link ();
  9070. int
  9071. main ()
  9072. {
  9073. return dld_link ();
  9074. ;
  9075. return 0;
  9076. }
  9077. _ACEOF
  9078. if ac_fn_c_try_link "$LINENO"; then :
  9079. ac_cv_lib_dld_dld_link=yes
  9080. else
  9081. ac_cv_lib_dld_dld_link=no
  9082. fi
  9083. rm -f core conftest.err conftest.$ac_objext \
  9084. conftest$ac_exeext conftest.$ac_ext
  9085. LIBS=$ac_check_lib_save_LIBS
  9086. fi
  9087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9088. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9089. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9090. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9091. fi
  9092. fi
  9093. fi
  9094. fi
  9095. fi
  9096. fi
  9097. ;;
  9098. esac
  9099. if test "x$lt_cv_dlopen" != xno; then
  9100. enable_dlopen=yes
  9101. else
  9102. enable_dlopen=no
  9103. fi
  9104. case $lt_cv_dlopen in
  9105. dlopen)
  9106. save_CPPFLAGS="$CPPFLAGS"
  9107. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9108. save_LDFLAGS="$LDFLAGS"
  9109. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9110. save_LIBS="$LIBS"
  9111. LIBS="$lt_cv_dlopen_libs $LIBS"
  9112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9113. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9114. if test "${lt_cv_dlopen_self+set}" = set; then :
  9115. $as_echo_n "(cached) " >&6
  9116. else
  9117. if test "$cross_compiling" = yes; then :
  9118. lt_cv_dlopen_self=cross
  9119. else
  9120. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9121. lt_status=$lt_dlunknown
  9122. cat > conftest.$ac_ext <<_LT_EOF
  9123. #line 10667 "configure"
  9124. #include "confdefs.h"
  9125. #if HAVE_DLFCN_H
  9126. #include <dlfcn.h>
  9127. #endif
  9128. #include <stdio.h>
  9129. #ifdef RTLD_GLOBAL
  9130. # define LT_DLGLOBAL RTLD_GLOBAL
  9131. #else
  9132. # ifdef DL_GLOBAL
  9133. # define LT_DLGLOBAL DL_GLOBAL
  9134. # else
  9135. # define LT_DLGLOBAL 0
  9136. # endif
  9137. #endif
  9138. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9139. find out it does not work in some platform. */
  9140. #ifndef LT_DLLAZY_OR_NOW
  9141. # ifdef RTLD_LAZY
  9142. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9143. # else
  9144. # ifdef DL_LAZY
  9145. # define LT_DLLAZY_OR_NOW DL_LAZY
  9146. # else
  9147. # ifdef RTLD_NOW
  9148. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9149. # else
  9150. # ifdef DL_NOW
  9151. # define LT_DLLAZY_OR_NOW DL_NOW
  9152. # else
  9153. # define LT_DLLAZY_OR_NOW 0
  9154. # endif
  9155. # endif
  9156. # endif
  9157. # endif
  9158. #endif
  9159. /* When -fvisbility=hidden is used, assume the code has been annotated
  9160. correspondingly for the symbols needed. */
  9161. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9162. void fnord () __attribute__((visibility("default")));
  9163. #endif
  9164. void fnord () { int i=42; }
  9165. int main ()
  9166. {
  9167. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9168. int status = $lt_dlunknown;
  9169. if (self)
  9170. {
  9171. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9172. else
  9173. {
  9174. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9175. else puts (dlerror ());
  9176. }
  9177. /* dlclose (self); */
  9178. }
  9179. else
  9180. puts (dlerror ());
  9181. return status;
  9182. }
  9183. _LT_EOF
  9184. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9185. (eval $ac_link) 2>&5
  9186. ac_status=$?
  9187. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9188. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9189. (./conftest; exit; ) >&5 2>/dev/null
  9190. lt_status=$?
  9191. case x$lt_status in
  9192. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9193. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9194. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9195. esac
  9196. else :
  9197. # compilation failed
  9198. lt_cv_dlopen_self=no
  9199. fi
  9200. fi
  9201. rm -fr conftest*
  9202. fi
  9203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9204. $as_echo "$lt_cv_dlopen_self" >&6; }
  9205. if test "x$lt_cv_dlopen_self" = xyes; then
  9206. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9208. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9209. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9210. $as_echo_n "(cached) " >&6
  9211. else
  9212. if test "$cross_compiling" = yes; then :
  9213. lt_cv_dlopen_self_static=cross
  9214. else
  9215. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9216. lt_status=$lt_dlunknown
  9217. cat > conftest.$ac_ext <<_LT_EOF
  9218. #line 10773 "configure"
  9219. #include "confdefs.h"
  9220. #if HAVE_DLFCN_H
  9221. #include <dlfcn.h>
  9222. #endif
  9223. #include <stdio.h>
  9224. #ifdef RTLD_GLOBAL
  9225. # define LT_DLGLOBAL RTLD_GLOBAL
  9226. #else
  9227. # ifdef DL_GLOBAL
  9228. # define LT_DLGLOBAL DL_GLOBAL
  9229. # else
  9230. # define LT_DLGLOBAL 0
  9231. # endif
  9232. #endif
  9233. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9234. find out it does not work in some platform. */
  9235. #ifndef LT_DLLAZY_OR_NOW
  9236. # ifdef RTLD_LAZY
  9237. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9238. # else
  9239. # ifdef DL_LAZY
  9240. # define LT_DLLAZY_OR_NOW DL_LAZY
  9241. # else
  9242. # ifdef RTLD_NOW
  9243. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9244. # else
  9245. # ifdef DL_NOW
  9246. # define LT_DLLAZY_OR_NOW DL_NOW
  9247. # else
  9248. # define LT_DLLAZY_OR_NOW 0
  9249. # endif
  9250. # endif
  9251. # endif
  9252. # endif
  9253. #endif
  9254. /* When -fvisbility=hidden is used, assume the code has been annotated
  9255. correspondingly for the symbols needed. */
  9256. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9257. void fnord () __attribute__((visibility("default")));
  9258. #endif
  9259. void fnord () { int i=42; }
  9260. int main ()
  9261. {
  9262. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9263. int status = $lt_dlunknown;
  9264. if (self)
  9265. {
  9266. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9267. else
  9268. {
  9269. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9270. else puts (dlerror ());
  9271. }
  9272. /* dlclose (self); */
  9273. }
  9274. else
  9275. puts (dlerror ());
  9276. return status;
  9277. }
  9278. _LT_EOF
  9279. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9280. (eval $ac_link) 2>&5
  9281. ac_status=$?
  9282. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9283. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9284. (./conftest; exit; ) >&5 2>/dev/null
  9285. lt_status=$?
  9286. case x$lt_status in
  9287. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9288. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9289. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9290. esac
  9291. else :
  9292. # compilation failed
  9293. lt_cv_dlopen_self_static=no
  9294. fi
  9295. fi
  9296. rm -fr conftest*
  9297. fi
  9298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9299. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9300. fi
  9301. CPPFLAGS="$save_CPPFLAGS"
  9302. LDFLAGS="$save_LDFLAGS"
  9303. LIBS="$save_LIBS"
  9304. ;;
  9305. esac
  9306. case $lt_cv_dlopen_self in
  9307. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9308. *) enable_dlopen_self=unknown ;;
  9309. esac
  9310. case $lt_cv_dlopen_self_static in
  9311. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9312. *) enable_dlopen_self_static=unknown ;;
  9313. esac
  9314. fi
  9315. striplib=
  9316. old_striplib=
  9317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9318. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9319. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9320. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9321. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9323. $as_echo "yes" >&6; }
  9324. else
  9325. # FIXME - insert some real tests, host_os isn't really good enough
  9326. case $host_os in
  9327. darwin*)
  9328. if test -n "$STRIP" ; then
  9329. striplib="$STRIP -x"
  9330. old_striplib="$STRIP -S"
  9331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9332. $as_echo "yes" >&6; }
  9333. else
  9334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9335. $as_echo "no" >&6; }
  9336. fi
  9337. ;;
  9338. *)
  9339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9340. $as_echo "no" >&6; }
  9341. ;;
  9342. esac
  9343. fi
  9344. # Report which library types will actually be built
  9345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9346. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9348. $as_echo "$can_build_shared" >&6; }
  9349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9350. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9351. test "$can_build_shared" = "no" && enable_shared=no
  9352. # On AIX, shared libraries and static libraries use the same namespace, and
  9353. # are all built from PIC.
  9354. case $host_os in
  9355. aix3*)
  9356. test "$enable_shared" = yes && enable_static=no
  9357. if test -n "$RANLIB"; then
  9358. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9359. postinstall_cmds='$RANLIB $lib'
  9360. fi
  9361. ;;
  9362. aix[4-9]*)
  9363. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9364. test "$enable_shared" = yes && enable_static=no
  9365. fi
  9366. ;;
  9367. esac
  9368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9369. $as_echo "$enable_shared" >&6; }
  9370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9371. $as_echo_n "checking whether to build static libraries... " >&6; }
  9372. # Make sure either enable_shared or enable_static is yes.
  9373. test "$enable_shared" = yes || enable_static=yes
  9374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9375. $as_echo "$enable_static" >&6; }
  9376. fi
  9377. ac_ext=c
  9378. ac_cpp='$CPP $CPPFLAGS'
  9379. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9380. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9381. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9382. CC="$lt_save_CC"
  9383. ac_config_commands="$ac_config_commands libtool"
  9384. # Only expand once:
  9385. case $host in
  9386. *-cygwin* | *-mingw*)
  9387. # 'host' will be top-level target in the case of a target lib,
  9388. # we must compare to with_cross_host to decide if this is a native
  9389. # or cross-compiler and select where to install dlls appropriately.
  9390. if test -n "$with_cross_host" &&
  9391. test x"$with_cross_host" != x"no"; then
  9392. lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
  9393. else
  9394. lt_host_flags='-no-undefined -bindir "$(bindir)"';
  9395. fi
  9396. ;;
  9397. *)
  9398. lt_host_flags=
  9399. ;;
  9400. esac
  9401. # Calculate toolexeclibdir
  9402. # Also toolexecdir, though it's only used in toolexeclibdir
  9403. case ${version_specific_libs} in
  9404. yes)
  9405. # Need the gcc compiler version to know where to install libraries
  9406. # and header files if --enable-version-specific-runtime-libs option
  9407. # is selected.
  9408. toolexecdir='$(libdir)/gcc/$(target_alias)'
  9409. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  9410. ;;
  9411. no)
  9412. if test -n "$with_cross_host" &&
  9413. test x"$with_cross_host" != x"no"; then
  9414. # Install a library built with a cross compiler in tooldir, not libdir.
  9415. toolexecdir='$(exec_prefix)/$(target_alias)'
  9416. toolexeclibdir='$(toolexecdir)/lib'
  9417. else
  9418. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  9419. toolexeclibdir='$(libdir)'
  9420. fi
  9421. multi_os_directory=`$CC -print-multi-os-directory`
  9422. case $multi_os_directory in
  9423. .) ;; # Avoid trailing /.
  9424. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  9425. esac
  9426. ;;
  9427. esac
  9428. if test ${multilib} = yes; then
  9429. multilib_arg="--enable-multilib"
  9430. else
  9431. multilib_arg=
  9432. fi
  9433. ac_config_files="$ac_config_files Makefile ssp/ssp.h"
  9434. cat >confcache <<\_ACEOF
  9435. # This file is a shell script that caches the results of configure
  9436. # tests run on this system so they can be shared between configure
  9437. # scripts and configure runs, see configure's option --config-cache.
  9438. # It is not useful on other systems. If it contains results you don't
  9439. # want to keep, you may remove or edit it.
  9440. #
  9441. # config.status only pays attention to the cache file if you give it
  9442. # the --recheck option to rerun configure.
  9443. #
  9444. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9445. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9446. # following values.
  9447. _ACEOF
  9448. # The following way of writing the cache mishandles newlines in values,
  9449. # but we know of no workaround that is simple, portable, and efficient.
  9450. # So, we kill variables containing newlines.
  9451. # Ultrix sh set writes to stderr and can't be redirected directly,
  9452. # and sets the high bit in the cache file unless we assign to the vars.
  9453. (
  9454. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9455. eval ac_val=\$$ac_var
  9456. case $ac_val in #(
  9457. *${as_nl}*)
  9458. case $ac_var in #(
  9459. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9460. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9461. esac
  9462. case $ac_var in #(
  9463. _ | IFS | as_nl) ;; #(
  9464. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9465. *) { eval $ac_var=; unset $ac_var;} ;;
  9466. esac ;;
  9467. esac
  9468. done
  9469. (set) 2>&1 |
  9470. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9471. *${as_nl}ac_space=\ *)
  9472. # `set' does not quote correctly, so add quotes: double-quote
  9473. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9474. sed -n \
  9475. "s/'/'\\\\''/g;
  9476. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9477. ;; #(
  9478. *)
  9479. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9480. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9481. ;;
  9482. esac |
  9483. sort
  9484. ) |
  9485. sed '
  9486. /^ac_cv_env_/b end
  9487. t clear
  9488. :clear
  9489. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9490. t end
  9491. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9492. :end' >>confcache
  9493. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9494. if test -w "$cache_file"; then
  9495. test "x$cache_file" != "x/dev/null" &&
  9496. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9497. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9498. cat confcache >$cache_file
  9499. else
  9500. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9501. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9502. fi
  9503. fi
  9504. rm -f confcache
  9505. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9506. # Let make expand exec_prefix.
  9507. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9508. DEFS=-DHAVE_CONFIG_H
  9509. ac_libobjs=
  9510. ac_ltlibobjs=
  9511. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9512. # 1. Remove the extension, and $U if already installed.
  9513. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9514. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9515. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9516. # will be set to the directory where LIBOBJS objects are built.
  9517. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9518. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9519. done
  9520. LIBOBJS=$ac_libobjs
  9521. LTLIBOBJS=$ac_ltlibobjs
  9522. if test -n "$EXEEXT"; then
  9523. am__EXEEXT_TRUE=
  9524. am__EXEEXT_FALSE='#'
  9525. else
  9526. am__EXEEXT_TRUE='#'
  9527. am__EXEEXT_FALSE=
  9528. fi
  9529. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  9530. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  9531. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9532. fi
  9533. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9534. as_fn_error "conditional \"AMDEP\" was never defined.
  9535. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9536. fi
  9537. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9538. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  9539. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9540. fi
  9541. if test -z "${LIBSSP_USE_SYMVER_TRUE}" && test -z "${LIBSSP_USE_SYMVER_FALSE}"; then
  9542. as_fn_error "conditional \"LIBSSP_USE_SYMVER\" was never defined.
  9543. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9544. fi
  9545. if test -z "${LIBSSP_USE_SYMVER_GNU_TRUE}" && test -z "${LIBSSP_USE_SYMVER_GNU_FALSE}"; then
  9546. as_fn_error "conditional \"LIBSSP_USE_SYMVER_GNU\" was never defined.
  9547. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9548. fi
  9549. if test -z "${LIBSSP_USE_SYMVER_SUN_TRUE}" && test -z "${LIBSSP_USE_SYMVER_SUN_FALSE}"; then
  9550. as_fn_error "conditional \"LIBSSP_USE_SYMVER_SUN\" was never defined.
  9551. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9552. fi
  9553. : ${CONFIG_STATUS=./config.status}
  9554. ac_write_fail=0
  9555. ac_clean_files_save=$ac_clean_files
  9556. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9557. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9558. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9559. as_write_fail=0
  9560. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9561. #! $SHELL
  9562. # Generated by $as_me.
  9563. # Run this file to recreate the current configuration.
  9564. # Compiler output produced by configure, useful for debugging
  9565. # configure, is in config.log if it exists.
  9566. debug=false
  9567. ac_cs_recheck=false
  9568. ac_cs_silent=false
  9569. SHELL=\${CONFIG_SHELL-$SHELL}
  9570. export SHELL
  9571. _ASEOF
  9572. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9573. ## -------------------- ##
  9574. ## M4sh Initialization. ##
  9575. ## -------------------- ##
  9576. # Be more Bourne compatible
  9577. DUALCASE=1; export DUALCASE # for MKS sh
  9578. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9579. emulate sh
  9580. NULLCMD=:
  9581. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9582. # is contrary to our usage. Disable this feature.
  9583. alias -g '${1+"$@"}'='"$@"'
  9584. setopt NO_GLOB_SUBST
  9585. else
  9586. case `(set -o) 2>/dev/null` in #(
  9587. *posix*) :
  9588. set -o posix ;; #(
  9589. *) :
  9590. ;;
  9591. esac
  9592. fi
  9593. as_nl='
  9594. '
  9595. export as_nl
  9596. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9597. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9598. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9599. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9600. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9601. # but without wasting forks for bash or zsh.
  9602. if test -z "$BASH_VERSION$ZSH_VERSION" \
  9603. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9604. as_echo='print -r --'
  9605. as_echo_n='print -rn --'
  9606. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9607. as_echo='printf %s\n'
  9608. as_echo_n='printf %s'
  9609. else
  9610. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9611. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9612. as_echo_n='/usr/ucb/echo -n'
  9613. else
  9614. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9615. as_echo_n_body='eval
  9616. arg=$1;
  9617. case $arg in #(
  9618. *"$as_nl"*)
  9619. expr "X$arg" : "X\\(.*\\)$as_nl";
  9620. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9621. esac;
  9622. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9623. '
  9624. export as_echo_n_body
  9625. as_echo_n='sh -c $as_echo_n_body as_echo'
  9626. fi
  9627. export as_echo_body
  9628. as_echo='sh -c $as_echo_body as_echo'
  9629. fi
  9630. # The user is always right.
  9631. if test "${PATH_SEPARATOR+set}" != set; then
  9632. PATH_SEPARATOR=:
  9633. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9634. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9635. PATH_SEPARATOR=';'
  9636. }
  9637. fi
  9638. # IFS
  9639. # We need space, tab and new line, in precisely that order. Quoting is
  9640. # there to prevent editors from complaining about space-tab.
  9641. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9642. # splitting by setting IFS to empty value.)
  9643. IFS=" "" $as_nl"
  9644. # Find who we are. Look in the path if we contain no directory separator.
  9645. case $0 in #((
  9646. *[\\/]* ) as_myself=$0 ;;
  9647. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9648. for as_dir in $PATH
  9649. do
  9650. IFS=$as_save_IFS
  9651. test -z "$as_dir" && as_dir=.
  9652. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9653. done
  9654. IFS=$as_save_IFS
  9655. ;;
  9656. esac
  9657. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9658. # in which case we are not to be found in the path.
  9659. if test "x$as_myself" = x; then
  9660. as_myself=$0
  9661. fi
  9662. if test ! -f "$as_myself"; then
  9663. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9664. exit 1
  9665. fi
  9666. # Unset variables that we do not need and which cause bugs (e.g. in
  9667. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  9668. # suppresses any "Segmentation fault" message there. '((' could
  9669. # trigger a bug in pdksh 5.2.14.
  9670. for as_var in BASH_ENV ENV MAIL MAILPATH
  9671. do eval test x\${$as_var+set} = xset \
  9672. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9673. done
  9674. PS1='$ '
  9675. PS2='> '
  9676. PS4='+ '
  9677. # NLS nuisances.
  9678. LC_ALL=C
  9679. export LC_ALL
  9680. LANGUAGE=C
  9681. export LANGUAGE
  9682. # CDPATH.
  9683. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9684. # as_fn_error ERROR [LINENO LOG_FD]
  9685. # ---------------------------------
  9686. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9687. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9688. # script with status $?, using 1 if that was 0.
  9689. as_fn_error ()
  9690. {
  9691. as_status=$?; test $as_status -eq 0 && as_status=1
  9692. if test "$3"; then
  9693. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9694. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  9695. fi
  9696. $as_echo "$as_me: error: $1" >&2
  9697. as_fn_exit $as_status
  9698. } # as_fn_error
  9699. # as_fn_set_status STATUS
  9700. # -----------------------
  9701. # Set $? to STATUS, without forking.
  9702. as_fn_set_status ()
  9703. {
  9704. return $1
  9705. } # as_fn_set_status
  9706. # as_fn_exit STATUS
  9707. # -----------------
  9708. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9709. as_fn_exit ()
  9710. {
  9711. set +e
  9712. as_fn_set_status $1
  9713. exit $1
  9714. } # as_fn_exit
  9715. # as_fn_unset VAR
  9716. # ---------------
  9717. # Portably unset VAR.
  9718. as_fn_unset ()
  9719. {
  9720. { eval $1=; unset $1;}
  9721. }
  9722. as_unset=as_fn_unset
  9723. # as_fn_append VAR VALUE
  9724. # ----------------------
  9725. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9726. # advantage of any shell optimizations that allow amortized linear growth over
  9727. # repeated appends, instead of the typical quadratic growth present in naive
  9728. # implementations.
  9729. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  9730. eval 'as_fn_append ()
  9731. {
  9732. eval $1+=\$2
  9733. }'
  9734. else
  9735. as_fn_append ()
  9736. {
  9737. eval $1=\$$1\$2
  9738. }
  9739. fi # as_fn_append
  9740. # as_fn_arith ARG...
  9741. # ------------------
  9742. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9743. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9744. # must be portable across $(()) and expr.
  9745. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  9746. eval 'as_fn_arith ()
  9747. {
  9748. as_val=$(( $* ))
  9749. }'
  9750. else
  9751. as_fn_arith ()
  9752. {
  9753. as_val=`expr "$@" || test $? -eq 1`
  9754. }
  9755. fi # as_fn_arith
  9756. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9757. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9758. as_expr=expr
  9759. else
  9760. as_expr=false
  9761. fi
  9762. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9763. as_basename=basename
  9764. else
  9765. as_basename=false
  9766. fi
  9767. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9768. as_dirname=dirname
  9769. else
  9770. as_dirname=false
  9771. fi
  9772. as_me=`$as_basename -- "$0" ||
  9773. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9774. X"$0" : 'X\(//\)$' \| \
  9775. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9776. $as_echo X/"$0" |
  9777. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9778. s//\1/
  9779. q
  9780. }
  9781. /^X\/\(\/\/\)$/{
  9782. s//\1/
  9783. q
  9784. }
  9785. /^X\/\(\/\).*/{
  9786. s//\1/
  9787. q
  9788. }
  9789. s/.*/./; q'`
  9790. # Avoid depending upon Character Ranges.
  9791. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9792. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9793. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9794. as_cr_digits='0123456789'
  9795. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9796. ECHO_C= ECHO_N= ECHO_T=
  9797. case `echo -n x` in #(((((
  9798. -n*)
  9799. case `echo 'xy\c'` in
  9800. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9801. xy) ECHO_C='\c';;
  9802. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9803. ECHO_T=' ';;
  9804. esac;;
  9805. *)
  9806. ECHO_N='-n';;
  9807. esac
  9808. rm -f conf$$ conf$$.exe conf$$.file
  9809. if test -d conf$$.dir; then
  9810. rm -f conf$$.dir/conf$$.file
  9811. else
  9812. rm -f conf$$.dir
  9813. mkdir conf$$.dir 2>/dev/null
  9814. fi
  9815. if (echo >conf$$.file) 2>/dev/null; then
  9816. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9817. as_ln_s='ln -s'
  9818. # ... but there are two gotchas:
  9819. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9820. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9821. # In both cases, we have to default to `cp -p'.
  9822. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9823. as_ln_s='cp -p'
  9824. elif ln conf$$.file conf$$ 2>/dev/null; then
  9825. as_ln_s=ln
  9826. else
  9827. as_ln_s='cp -p'
  9828. fi
  9829. else
  9830. as_ln_s='cp -p'
  9831. fi
  9832. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9833. rmdir conf$$.dir 2>/dev/null
  9834. # as_fn_mkdir_p
  9835. # -------------
  9836. # Create "$as_dir" as a directory, including parents if necessary.
  9837. as_fn_mkdir_p ()
  9838. {
  9839. case $as_dir in #(
  9840. -*) as_dir=./$as_dir;;
  9841. esac
  9842. test -d "$as_dir" || eval $as_mkdir_p || {
  9843. as_dirs=
  9844. while :; do
  9845. case $as_dir in #(
  9846. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9847. *) as_qdir=$as_dir;;
  9848. esac
  9849. as_dirs="'$as_qdir' $as_dirs"
  9850. as_dir=`$as_dirname -- "$as_dir" ||
  9851. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9852. X"$as_dir" : 'X\(//\)[^/]' \| \
  9853. X"$as_dir" : 'X\(//\)$' \| \
  9854. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9855. $as_echo X"$as_dir" |
  9856. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9857. s//\1/
  9858. q
  9859. }
  9860. /^X\(\/\/\)[^/].*/{
  9861. s//\1/
  9862. q
  9863. }
  9864. /^X\(\/\/\)$/{
  9865. s//\1/
  9866. q
  9867. }
  9868. /^X\(\/\).*/{
  9869. s//\1/
  9870. q
  9871. }
  9872. s/.*/./; q'`
  9873. test -d "$as_dir" && break
  9874. done
  9875. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9876. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  9877. } # as_fn_mkdir_p
  9878. if mkdir -p . 2>/dev/null; then
  9879. as_mkdir_p='mkdir -p "$as_dir"'
  9880. else
  9881. test -d ./-p && rmdir ./-p
  9882. as_mkdir_p=false
  9883. fi
  9884. if test -x / >/dev/null 2>&1; then
  9885. as_test_x='test -x'
  9886. else
  9887. if ls -dL / >/dev/null 2>&1; then
  9888. as_ls_L_option=L
  9889. else
  9890. as_ls_L_option=
  9891. fi
  9892. as_test_x='
  9893. eval sh -c '\''
  9894. if test -d "$1"; then
  9895. test -d "$1/.";
  9896. else
  9897. case $1 in #(
  9898. -*)set "./$1";;
  9899. esac;
  9900. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  9901. ???[sx]*):;;*)false;;esac;fi
  9902. '\'' sh
  9903. '
  9904. fi
  9905. as_executable_p=$as_test_x
  9906. # Sed expression to map a string onto a valid CPP name.
  9907. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9908. # Sed expression to map a string onto a valid variable name.
  9909. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9910. exec 6>&1
  9911. ## ----------------------------------- ##
  9912. ## Main body of $CONFIG_STATUS script. ##
  9913. ## ----------------------------------- ##
  9914. _ASEOF
  9915. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  9916. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9917. # Save the log message, to keep $0 and so on meaningful, and to
  9918. # report actual input values of CONFIG_FILES etc. instead of their
  9919. # values after options handling.
  9920. ac_log="
  9921. This file was extended by libssp $as_me 1.0, which was
  9922. generated by GNU Autoconf 2.64. Invocation command line was
  9923. CONFIG_FILES = $CONFIG_FILES
  9924. CONFIG_HEADERS = $CONFIG_HEADERS
  9925. CONFIG_LINKS = $CONFIG_LINKS
  9926. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9927. $ $0 $@
  9928. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9929. "
  9930. _ACEOF
  9931. case $ac_config_files in *"
  9932. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9933. esac
  9934. case $ac_config_headers in *"
  9935. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  9936. esac
  9937. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9938. # Files that config.status was made for.
  9939. config_files="$ac_config_files"
  9940. config_headers="$ac_config_headers"
  9941. config_commands="$ac_config_commands"
  9942. _ACEOF
  9943. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9944. ac_cs_usage="\
  9945. \`$as_me' instantiates files and other configuration actions
  9946. from templates according to the current configuration. Unless the files
  9947. and actions are specified as TAGs, all are instantiated by default.
  9948. Usage: $0 [OPTION]... [TAG]...
  9949. -h, --help print this help, then exit
  9950. -V, --version print version number and configuration settings, then exit
  9951. -q, --quiet, --silent
  9952. do not print progress messages
  9953. -d, --debug don't remove temporary files
  9954. --recheck update $as_me by reconfiguring in the same conditions
  9955. --file=FILE[:TEMPLATE]
  9956. instantiate the configuration file FILE
  9957. --header=FILE[:TEMPLATE]
  9958. instantiate the configuration header FILE
  9959. Configuration files:
  9960. $config_files
  9961. Configuration headers:
  9962. $config_headers
  9963. Configuration commands:
  9964. $config_commands
  9965. Report bugs to the package provider."
  9966. _ACEOF
  9967. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9968. ac_cs_version="\\
  9969. libssp config.status 1.0
  9970. configured by $0, generated by GNU Autoconf 2.64,
  9971. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  9972. Copyright (C) 2009 Free Software Foundation, Inc.
  9973. This config.status script is free software; the Free Software Foundation
  9974. gives unlimited permission to copy, distribute and modify it."
  9975. ac_pwd='$ac_pwd'
  9976. srcdir='$srcdir'
  9977. INSTALL='$INSTALL'
  9978. MKDIR_P='$MKDIR_P'
  9979. AWK='$AWK'
  9980. test -n "\$AWK" || AWK=awk
  9981. _ACEOF
  9982. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9983. # The default lists apply if the user does not specify any file.
  9984. ac_need_defaults=:
  9985. while test $# != 0
  9986. do
  9987. case $1 in
  9988. --*=*)
  9989. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9990. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9991. ac_shift=:
  9992. ;;
  9993. *)
  9994. ac_option=$1
  9995. ac_optarg=$2
  9996. ac_shift=shift
  9997. ;;
  9998. esac
  9999. case $ac_option in
  10000. # Handling of the options.
  10001. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10002. ac_cs_recheck=: ;;
  10003. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10004. $as_echo "$ac_cs_version"; exit ;;
  10005. --debug | --debu | --deb | --de | --d | -d )
  10006. debug=: ;;
  10007. --file | --fil | --fi | --f )
  10008. $ac_shift
  10009. case $ac_optarg in
  10010. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10011. esac
  10012. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10013. ac_need_defaults=false;;
  10014. --header | --heade | --head | --hea )
  10015. $ac_shift
  10016. case $ac_optarg in
  10017. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10018. esac
  10019. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  10020. ac_need_defaults=false;;
  10021. --he | --h)
  10022. # Conflict between --help and --header
  10023. as_fn_error "ambiguous option: \`$1'
  10024. Try \`$0 --help' for more information.";;
  10025. --help | --hel | -h )
  10026. $as_echo "$ac_cs_usage"; exit ;;
  10027. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10028. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10029. ac_cs_silent=: ;;
  10030. # This is an error.
  10031. -*) as_fn_error "unrecognized option: \`$1'
  10032. Try \`$0 --help' for more information." ;;
  10033. *) as_fn_append ac_config_targets " $1"
  10034. ac_need_defaults=false ;;
  10035. esac
  10036. shift
  10037. done
  10038. ac_configure_extra_args=
  10039. if $ac_cs_silent; then
  10040. exec 6>/dev/null
  10041. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10042. fi
  10043. _ACEOF
  10044. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10045. if \$ac_cs_recheck; then
  10046. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10047. shift
  10048. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10049. CONFIG_SHELL='$SHELL'
  10050. export CONFIG_SHELL
  10051. exec "\$@"
  10052. fi
  10053. _ACEOF
  10054. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10055. exec 5>>config.log
  10056. {
  10057. echo
  10058. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10059. ## Running $as_me. ##
  10060. _ASBOX
  10061. $as_echo "$ac_log"
  10062. } >&5
  10063. _ACEOF
  10064. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10065. #
  10066. # INIT-COMMANDS
  10067. #
  10068. srcdir="$srcdir"
  10069. host="$host"
  10070. target="$target"
  10071. with_multisubdir="$with_multisubdir"
  10072. with_multisrctop="$with_multisrctop"
  10073. with_target_subdir="$with_target_subdir"
  10074. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  10075. multi_basedir="$multi_basedir"
  10076. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  10077. CC="$CC"
  10078. CXX="$CXX"
  10079. GFORTRAN="$GFORTRAN"
  10080. GCJ="$GCJ"
  10081. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10082. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10083. # if CDPATH is set.
  10084. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10085. sed_quote_subst='$sed_quote_subst'
  10086. double_quote_subst='$double_quote_subst'
  10087. delay_variable_subst='$delay_variable_subst'
  10088. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  10089. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  10090. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  10091. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  10092. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  10093. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  10094. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  10095. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  10096. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  10097. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  10098. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  10099. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  10100. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  10101. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  10102. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  10103. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  10104. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  10105. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  10106. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  10107. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  10108. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  10109. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  10110. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  10111. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  10112. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  10113. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  10114. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  10115. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  10116. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  10117. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  10118. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  10119. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  10120. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  10121. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  10122. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  10123. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  10124. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  10125. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10126. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10127. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  10128. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  10129. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  10130. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  10131. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  10132. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  10133. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  10134. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  10135. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  10136. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10137. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  10138. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  10139. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  10140. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  10141. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  10142. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  10143. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  10144. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  10145. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  10146. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  10147. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  10148. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  10149. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  10150. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  10151. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  10152. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10153. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  10154. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  10155. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  10156. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  10157. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  10158. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  10159. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10160. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  10161. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10162. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  10163. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10164. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  10165. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10166. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10167. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  10168. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  10169. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  10170. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  10171. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  10172. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  10173. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10174. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  10175. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  10176. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  10177. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  10178. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  10179. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  10180. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  10181. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  10182. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  10183. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  10184. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  10185. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10186. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  10187. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  10188. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  10189. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10190. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  10191. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  10192. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  10193. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  10194. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  10195. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10196. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10197. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  10198. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  10199. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  10200. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  10201. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  10202. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  10203. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  10204. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  10205. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  10206. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  10207. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  10208. LTCC='$LTCC'
  10209. LTCFLAGS='$LTCFLAGS'
  10210. compiler='$compiler_DEFAULT'
  10211. # A function that is used when there is no print builtin or printf.
  10212. func_fallback_echo ()
  10213. {
  10214. eval 'cat <<_LTECHO_EOF
  10215. \$1
  10216. _LTECHO_EOF'
  10217. }
  10218. # Quote evaled strings.
  10219. for var in SHELL \
  10220. ECHO \
  10221. SED \
  10222. GREP \
  10223. EGREP \
  10224. FGREP \
  10225. LD \
  10226. NM \
  10227. LN_S \
  10228. lt_SP2NL \
  10229. lt_NL2SP \
  10230. reload_flag \
  10231. OBJDUMP \
  10232. deplibs_check_method \
  10233. file_magic_cmd \
  10234. AR \
  10235. AR_FLAGS \
  10236. STRIP \
  10237. RANLIB \
  10238. CC \
  10239. CFLAGS \
  10240. compiler \
  10241. lt_cv_sys_global_symbol_pipe \
  10242. lt_cv_sys_global_symbol_to_cdecl \
  10243. lt_cv_sys_global_symbol_to_c_name_address \
  10244. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10245. lt_prog_compiler_no_builtin_flag \
  10246. lt_prog_compiler_wl \
  10247. lt_prog_compiler_pic \
  10248. lt_prog_compiler_static \
  10249. lt_cv_prog_compiler_c_o \
  10250. need_locks \
  10251. DSYMUTIL \
  10252. NMEDIT \
  10253. LIPO \
  10254. OTOOL \
  10255. OTOOL64 \
  10256. shrext_cmds \
  10257. export_dynamic_flag_spec \
  10258. whole_archive_flag_spec \
  10259. compiler_needs_object \
  10260. with_gnu_ld \
  10261. allow_undefined_flag \
  10262. no_undefined_flag \
  10263. hardcode_libdir_flag_spec \
  10264. hardcode_libdir_flag_spec_ld \
  10265. hardcode_libdir_separator \
  10266. fix_srcfile_path \
  10267. exclude_expsyms \
  10268. include_expsyms \
  10269. file_list_spec \
  10270. variables_saved_for_relink \
  10271. libname_spec \
  10272. library_names_spec \
  10273. soname_spec \
  10274. install_override_mode \
  10275. finish_eval \
  10276. old_striplib \
  10277. striplib; do
  10278. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10279. *[\\\\\\\`\\"\\\$]*)
  10280. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10281. ;;
  10282. *)
  10283. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10284. ;;
  10285. esac
  10286. done
  10287. # Double-quote double-evaled strings.
  10288. for var in reload_cmds \
  10289. old_postinstall_cmds \
  10290. old_postuninstall_cmds \
  10291. old_archive_cmds \
  10292. extract_expsyms_cmds \
  10293. old_archive_from_new_cmds \
  10294. old_archive_from_expsyms_cmds \
  10295. archive_cmds \
  10296. archive_expsym_cmds \
  10297. module_cmds \
  10298. module_expsym_cmds \
  10299. export_symbols_cmds \
  10300. prelink_cmds \
  10301. postinstall_cmds \
  10302. postuninstall_cmds \
  10303. finish_cmds \
  10304. sys_lib_search_path_spec \
  10305. sys_lib_dlsearch_path_spec; do
  10306. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10307. *[\\\\\\\`\\"\\\$]*)
  10308. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10309. ;;
  10310. *)
  10311. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10312. ;;
  10313. esac
  10314. done
  10315. ac_aux_dir='$ac_aux_dir'
  10316. xsi_shell='$xsi_shell'
  10317. lt_shell_append='$lt_shell_append'
  10318. # See if we are running on zsh, and set the options which allow our
  10319. # commands through without removal of \ escapes INIT.
  10320. if test -n "\${ZSH_VERSION+set}" ; then
  10321. setopt NO_GLOB_SUBST
  10322. fi
  10323. PACKAGE='$PACKAGE'
  10324. VERSION='$VERSION'
  10325. TIMESTAMP='$TIMESTAMP'
  10326. RM='$RM'
  10327. ofile='$ofile'
  10328. _ACEOF
  10329. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10330. # Handling of arguments.
  10331. for ac_config_target in $ac_config_targets
  10332. do
  10333. case $ac_config_target in
  10334. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  10335. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10336. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10337. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10338. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10339. "ssp/ssp.h") CONFIG_FILES="$CONFIG_FILES ssp/ssp.h" ;;
  10340. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10341. esac
  10342. done
  10343. # If the user did not use the arguments to specify the items to instantiate,
  10344. # then the envvar interface is used. Set only those that are not.
  10345. # We use the long form for the default assignment because of an extremely
  10346. # bizarre bug on SunOS 4.1.3.
  10347. if $ac_need_defaults; then
  10348. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10349. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10350. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10351. fi
  10352. # Have a temporary directory for convenience. Make it in the build tree
  10353. # simply because there is no reason against having it here, and in addition,
  10354. # creating and moving files from /tmp can sometimes cause problems.
  10355. # Hook for its removal unless debugging.
  10356. # Note that there is a small window in which the directory will not be cleaned:
  10357. # after its creation but before its name has been assigned to `$tmp'.
  10358. $debug ||
  10359. {
  10360. tmp=
  10361. trap 'exit_status=$?
  10362. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  10363. ' 0
  10364. trap 'as_fn_exit 1' 1 2 13 15
  10365. }
  10366. # Create a (secure) tmp directory for tmp files.
  10367. {
  10368. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10369. test -n "$tmp" && test -d "$tmp"
  10370. } ||
  10371. {
  10372. tmp=./conf$$-$RANDOM
  10373. (umask 077 && mkdir "$tmp")
  10374. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  10375. # Set up the scripts for CONFIG_FILES section.
  10376. # No need to generate them if there are no CONFIG_FILES.
  10377. # This happens for instance with `./config.status config.h'.
  10378. if test -n "$CONFIG_FILES"; then
  10379. ac_cr=`echo X | tr X '\015'`
  10380. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10381. # But we know of no other shell where ac_cr would be empty at this
  10382. # point, so we can use a bashism as a fallback.
  10383. if test "x$ac_cr" = x; then
  10384. eval ac_cr=\$\'\\r\'
  10385. fi
  10386. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10387. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10388. ac_cs_awk_cr='\r'
  10389. else
  10390. ac_cs_awk_cr=$ac_cr
  10391. fi
  10392. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  10393. _ACEOF
  10394. {
  10395. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10396. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10397. echo "_ACEOF"
  10398. } >conf$$subs.sh ||
  10399. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  10400. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  10401. ac_delim='%!_!# '
  10402. for ac_last_try in false false false false false :; do
  10403. . ./conf$$subs.sh ||
  10404. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  10405. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10406. if test $ac_delim_n = $ac_delim_num; then
  10407. break
  10408. elif $ac_last_try; then
  10409. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  10410. else
  10411. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10412. fi
  10413. done
  10414. rm -f conf$$subs.sh
  10415. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10416. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  10417. _ACEOF
  10418. sed -n '
  10419. h
  10420. s/^/S["/; s/!.*/"]=/
  10421. p
  10422. g
  10423. s/^[^!]*!//
  10424. :repl
  10425. t repl
  10426. s/'"$ac_delim"'$//
  10427. t delim
  10428. :nl
  10429. h
  10430. s/\(.\{148\}\).*/\1/
  10431. t more1
  10432. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10433. p
  10434. n
  10435. b repl
  10436. :more1
  10437. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10438. p
  10439. g
  10440. s/.\{148\}//
  10441. t nl
  10442. :delim
  10443. h
  10444. s/\(.\{148\}\).*/\1/
  10445. t more2
  10446. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10447. p
  10448. b
  10449. :more2
  10450. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10451. p
  10452. g
  10453. s/.\{148\}//
  10454. t delim
  10455. ' <conf$$subs.awk | sed '
  10456. /^[^""]/{
  10457. N
  10458. s/\n//
  10459. }
  10460. ' >>$CONFIG_STATUS || ac_write_fail=1
  10461. rm -f conf$$subs.awk
  10462. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10463. _ACAWK
  10464. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  10465. for (key in S) S_is_set[key] = 1
  10466. FS = ""
  10467. }
  10468. {
  10469. line = $ 0
  10470. nfields = split(line, field, "@")
  10471. substed = 0
  10472. len = length(field[1])
  10473. for (i = 2; i < nfields; i++) {
  10474. key = field[i]
  10475. keylen = length(key)
  10476. if (S_is_set[key]) {
  10477. value = S[key]
  10478. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10479. len += length(value) + length(field[++i])
  10480. substed = 1
  10481. } else
  10482. len += 1 + keylen
  10483. }
  10484. print line
  10485. }
  10486. _ACAWK
  10487. _ACEOF
  10488. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10489. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10490. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10491. else
  10492. cat
  10493. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  10494. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  10495. _ACEOF
  10496. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10497. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10498. # trailing colons and then remove the whole line if VPATH becomes empty
  10499. # (actually we leave an empty line to preserve line numbers).
  10500. if test "x$srcdir" = x.; then
  10501. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10502. s/:*\$(srcdir):*/:/
  10503. s/:*\${srcdir}:*/:/
  10504. s/:*@srcdir@:*/:/
  10505. s/^\([^=]*=[ ]*\):*/\1/
  10506. s/:*$//
  10507. s/^[^=]*=[ ]*$//
  10508. }'
  10509. fi
  10510. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10511. fi # test -n "$CONFIG_FILES"
  10512. # Set up the scripts for CONFIG_HEADERS section.
  10513. # No need to generate them if there are no CONFIG_HEADERS.
  10514. # This happens for instance with `./config.status Makefile'.
  10515. if test -n "$CONFIG_HEADERS"; then
  10516. cat >"$tmp/defines.awk" <<\_ACAWK ||
  10517. BEGIN {
  10518. _ACEOF
  10519. # Transform confdefs.h into an awk script `defines.awk', embedded as
  10520. # here-document in config.status, that substitutes the proper values into
  10521. # config.h.in to produce config.h.
  10522. # Create a delimiter string that does not exist in confdefs.h, to ease
  10523. # handling of long lines.
  10524. ac_delim='%!_!# '
  10525. for ac_last_try in false false :; do
  10526. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  10527. if test -z "$ac_t"; then
  10528. break
  10529. elif $ac_last_try; then
  10530. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  10531. else
  10532. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10533. fi
  10534. done
  10535. # For the awk script, D is an array of macro values keyed by name,
  10536. # likewise P contains macro parameters if any. Preserve backslash
  10537. # newline sequences.
  10538. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  10539. sed -n '
  10540. s/.\{148\}/&'"$ac_delim"'/g
  10541. t rset
  10542. :rset
  10543. s/^[ ]*#[ ]*define[ ][ ]*/ /
  10544. t def
  10545. d
  10546. :def
  10547. s/\\$//
  10548. t bsnl
  10549. s/["\\]/\\&/g
  10550. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10551. D["\1"]=" \3"/p
  10552. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  10553. d
  10554. :bsnl
  10555. s/["\\]/\\&/g
  10556. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10557. D["\1"]=" \3\\\\\\n"\\/p
  10558. t cont
  10559. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  10560. t cont
  10561. d
  10562. :cont
  10563. n
  10564. s/.\{148\}/&'"$ac_delim"'/g
  10565. t clear
  10566. :clear
  10567. s/\\$//
  10568. t bsnlc
  10569. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  10570. d
  10571. :bsnlc
  10572. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  10573. b cont
  10574. ' <confdefs.h | sed '
  10575. s/'"$ac_delim"'/"\\\
  10576. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  10577. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10578. for (key in D) D_is_set[key] = 1
  10579. FS = ""
  10580. }
  10581. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  10582. line = \$ 0
  10583. split(line, arg, " ")
  10584. if (arg[1] == "#") {
  10585. defundef = arg[2]
  10586. mac1 = arg[3]
  10587. } else {
  10588. defundef = substr(arg[1], 2)
  10589. mac1 = arg[2]
  10590. }
  10591. split(mac1, mac2, "(") #)
  10592. macro = mac2[1]
  10593. prefix = substr(line, 1, index(line, defundef) - 1)
  10594. if (D_is_set[macro]) {
  10595. # Preserve the white space surrounding the "#".
  10596. print prefix "define", macro P[macro] D[macro]
  10597. next
  10598. } else {
  10599. # Replace #undef with comments. This is necessary, for example,
  10600. # in the case of _POSIX_SOURCE, which is predefined and required
  10601. # on some systems where configure will not decide to define it.
  10602. if (defundef == "undef") {
  10603. print "/*", prefix defundef, macro, "*/"
  10604. next
  10605. }
  10606. }
  10607. }
  10608. { print }
  10609. _ACAWK
  10610. _ACEOF
  10611. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10612. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  10613. fi # test -n "$CONFIG_HEADERS"
  10614. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  10615. shift
  10616. for ac_tag
  10617. do
  10618. case $ac_tag in
  10619. :[FHLC]) ac_mode=$ac_tag; continue;;
  10620. esac
  10621. case $ac_mode$ac_tag in
  10622. :[FHL]*:*);;
  10623. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  10624. :[FH]-) ac_tag=-:-;;
  10625. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10626. esac
  10627. ac_save_IFS=$IFS
  10628. IFS=:
  10629. set x $ac_tag
  10630. IFS=$ac_save_IFS
  10631. shift
  10632. ac_file=$1
  10633. shift
  10634. case $ac_mode in
  10635. :L) ac_source=$1;;
  10636. :[FH])
  10637. ac_file_inputs=
  10638. for ac_f
  10639. do
  10640. case $ac_f in
  10641. -) ac_f="$tmp/stdin";;
  10642. *) # Look for the file first in the build tree, then in the source tree
  10643. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10644. # because $ac_f cannot contain `:'.
  10645. test -f "$ac_f" ||
  10646. case $ac_f in
  10647. [\\/$]*) false;;
  10648. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10649. esac ||
  10650. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  10651. esac
  10652. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10653. as_fn_append ac_file_inputs " '$ac_f'"
  10654. done
  10655. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10656. # use $as_me), people would be surprised to read:
  10657. # /* config.h. Generated by config.status. */
  10658. configure_input='Generated from '`
  10659. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  10660. `' by configure.'
  10661. if test x"$ac_file" != x-; then
  10662. configure_input="$ac_file. $configure_input"
  10663. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  10664. $as_echo "$as_me: creating $ac_file" >&6;}
  10665. fi
  10666. # Neutralize special characters interpreted by sed in replacement strings.
  10667. case $configure_input in #(
  10668. *\&* | *\|* | *\\* )
  10669. ac_sed_conf_input=`$as_echo "$configure_input" |
  10670. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  10671. *) ac_sed_conf_input=$configure_input;;
  10672. esac
  10673. case $ac_tag in
  10674. *:-:* | *:-) cat >"$tmp/stdin" \
  10675. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  10676. esac
  10677. ;;
  10678. esac
  10679. ac_dir=`$as_dirname -- "$ac_file" ||
  10680. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10681. X"$ac_file" : 'X\(//\)[^/]' \| \
  10682. X"$ac_file" : 'X\(//\)$' \| \
  10683. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10684. $as_echo X"$ac_file" |
  10685. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10686. s//\1/
  10687. q
  10688. }
  10689. /^X\(\/\/\)[^/].*/{
  10690. s//\1/
  10691. q
  10692. }
  10693. /^X\(\/\/\)$/{
  10694. s//\1/
  10695. q
  10696. }
  10697. /^X\(\/\).*/{
  10698. s//\1/
  10699. q
  10700. }
  10701. s/.*/./; q'`
  10702. as_dir="$ac_dir"; as_fn_mkdir_p
  10703. ac_builddir=.
  10704. case "$ac_dir" in
  10705. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10706. *)
  10707. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  10708. # A ".." for each directory in $ac_dir_suffix.
  10709. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10710. case $ac_top_builddir_sub in
  10711. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10712. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10713. esac ;;
  10714. esac
  10715. ac_abs_top_builddir=$ac_pwd
  10716. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10717. # for backward compatibility:
  10718. ac_top_builddir=$ac_top_build_prefix
  10719. case $srcdir in
  10720. .) # We are building in place.
  10721. ac_srcdir=.
  10722. ac_top_srcdir=$ac_top_builddir_sub
  10723. ac_abs_top_srcdir=$ac_pwd ;;
  10724. [\\/]* | ?:[\\/]* ) # Absolute name.
  10725. ac_srcdir=$srcdir$ac_dir_suffix;
  10726. ac_top_srcdir=$srcdir
  10727. ac_abs_top_srcdir=$srcdir ;;
  10728. *) # Relative name.
  10729. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10730. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10731. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10732. esac
  10733. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10734. case $ac_mode in
  10735. :F)
  10736. #
  10737. # CONFIG_FILE
  10738. #
  10739. case $INSTALL in
  10740. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10741. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  10742. esac
  10743. ac_MKDIR_P=$MKDIR_P
  10744. case $MKDIR_P in
  10745. [\\/$]* | ?:[\\/]* ) ;;
  10746. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  10747. esac
  10748. _ACEOF
  10749. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10750. # If the template does not know about datarootdir, expand it.
  10751. # FIXME: This hack should be removed a few years after 2.60.
  10752. ac_datarootdir_hack=; ac_datarootdir_seen=
  10753. ac_sed_dataroot='
  10754. /datarootdir/ {
  10755. p
  10756. q
  10757. }
  10758. /@datadir@/p
  10759. /@docdir@/p
  10760. /@infodir@/p
  10761. /@localedir@/p
  10762. /@mandir@/p'
  10763. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10764. *datarootdir*) ac_datarootdir_seen=yes;;
  10765. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10766. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10767. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10768. _ACEOF
  10769. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10770. ac_datarootdir_hack='
  10771. s&@datadir@&$datadir&g
  10772. s&@docdir@&$docdir&g
  10773. s&@infodir@&$infodir&g
  10774. s&@localedir@&$localedir&g
  10775. s&@mandir@&$mandir&g
  10776. s&\\\${datarootdir}&$datarootdir&g' ;;
  10777. esac
  10778. _ACEOF
  10779. # Neutralize VPATH when `$srcdir' = `.'.
  10780. # Shell code in configure.ac might set extrasub.
  10781. # FIXME: do we really want to maintain this feature?
  10782. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10783. ac_sed_extra="$ac_vpsub
  10784. $extrasub
  10785. _ACEOF
  10786. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10787. :t
  10788. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10789. s|@configure_input@|$ac_sed_conf_input|;t t
  10790. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10791. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10792. s&@srcdir@&$ac_srcdir&;t t
  10793. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10794. s&@top_srcdir@&$ac_top_srcdir&;t t
  10795. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10796. s&@builddir@&$ac_builddir&;t t
  10797. s&@abs_builddir@&$ac_abs_builddir&;t t
  10798. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10799. s&@INSTALL@&$ac_INSTALL&;t t
  10800. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  10801. $ac_datarootdir_hack
  10802. "
  10803. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  10804. || as_fn_error "could not create $ac_file" "$LINENO" 5
  10805. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10806. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  10807. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  10808. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10809. which seems to be undefined. Please make sure it is defined." >&5
  10810. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10811. which seems to be undefined. Please make sure it is defined." >&2;}
  10812. rm -f "$tmp/stdin"
  10813. case $ac_file in
  10814. -) cat "$tmp/out" && rm -f "$tmp/out";;
  10815. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  10816. esac \
  10817. || as_fn_error "could not create $ac_file" "$LINENO" 5
  10818. ;;
  10819. :H)
  10820. #
  10821. # CONFIG_HEADER
  10822. #
  10823. if test x"$ac_file" != x-; then
  10824. {
  10825. $as_echo "/* $configure_input */" \
  10826. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  10827. } >"$tmp/config.h" \
  10828. || as_fn_error "could not create $ac_file" "$LINENO" 5
  10829. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  10830. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  10831. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  10832. else
  10833. rm -f "$ac_file"
  10834. mv "$tmp/config.h" "$ac_file" \
  10835. || as_fn_error "could not create $ac_file" "$LINENO" 5
  10836. fi
  10837. else
  10838. $as_echo "/* $configure_input */" \
  10839. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  10840. || as_fn_error "could not create -" "$LINENO" 5
  10841. fi
  10842. # Compute "$ac_file"'s index in $config_headers.
  10843. _am_arg="$ac_file"
  10844. _am_stamp_count=1
  10845. for _am_header in $config_headers :; do
  10846. case $_am_header in
  10847. $_am_arg | $_am_arg:* )
  10848. break ;;
  10849. * )
  10850. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  10851. esac
  10852. done
  10853. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  10854. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10855. X"$_am_arg" : 'X\(//\)[^/]' \| \
  10856. X"$_am_arg" : 'X\(//\)$' \| \
  10857. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  10858. $as_echo X"$_am_arg" |
  10859. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10860. s//\1/
  10861. q
  10862. }
  10863. /^X\(\/\/\)[^/].*/{
  10864. s//\1/
  10865. q
  10866. }
  10867. /^X\(\/\/\)$/{
  10868. s//\1/
  10869. q
  10870. }
  10871. /^X\(\/\).*/{
  10872. s//\1/
  10873. q
  10874. }
  10875. s/.*/./; q'`/stamp-h$_am_stamp_count
  10876. ;;
  10877. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  10878. $as_echo "$as_me: executing $ac_file commands" >&6;}
  10879. ;;
  10880. esac
  10881. case $ac_file$ac_mode in
  10882. "default-1":C)
  10883. # Only add multilib support code if we just rebuilt the top-level
  10884. # Makefile.
  10885. case " $CONFIG_FILES " in
  10886. *" Makefile "*)
  10887. ac_file=Makefile . ${multi_basedir}/config-ml.in
  10888. ;;
  10889. esac ;;
  10890. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  10891. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  10892. # are listed without --file. Let's play safe and only enable the eval
  10893. # if we detect the quoting.
  10894. case $CONFIG_FILES in
  10895. *\'*) eval set x "$CONFIG_FILES" ;;
  10896. *) set x $CONFIG_FILES ;;
  10897. esac
  10898. shift
  10899. for mf
  10900. do
  10901. # Strip MF so we end up with the name of the file.
  10902. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10903. # Check whether this is an Automake generated Makefile or not.
  10904. # We used to match only the files named `Makefile.in', but
  10905. # some people rename them; so instead we look at the file content.
  10906. # Grep'ing the first line is not enough: some people post-process
  10907. # each Makefile.in and add a new line on top of each file to say so.
  10908. # Grep'ing the whole file is not good either: AIX grep has a line
  10909. # limit of 2048, but all sed's we know have understand at least 4000.
  10910. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  10911. dirpart=`$as_dirname -- "$mf" ||
  10912. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10913. X"$mf" : 'X\(//\)[^/]' \| \
  10914. X"$mf" : 'X\(//\)$' \| \
  10915. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  10916. $as_echo X"$mf" |
  10917. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10918. s//\1/
  10919. q
  10920. }
  10921. /^X\(\/\/\)[^/].*/{
  10922. s//\1/
  10923. q
  10924. }
  10925. /^X\(\/\/\)$/{
  10926. s//\1/
  10927. q
  10928. }
  10929. /^X\(\/\).*/{
  10930. s//\1/
  10931. q
  10932. }
  10933. s/.*/./; q'`
  10934. else
  10935. continue
  10936. fi
  10937. # Extract the definition of DEPDIR, am__include, and am__quote
  10938. # from the Makefile without running `make'.
  10939. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  10940. test -z "$DEPDIR" && continue
  10941. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  10942. test -z "am__include" && continue
  10943. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  10944. # When using ansi2knr, U may be empty or an underscore; expand it
  10945. U=`sed -n 's/^U = //p' < "$mf"`
  10946. # Find all dependency output files, they are included files with
  10947. # $(DEPDIR) in their names. We invoke sed twice because it is the
  10948. # simplest approach to changing $(DEPDIR) to its actual value in the
  10949. # expansion.
  10950. for file in `sed -n "
  10951. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  10952. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  10953. # Make sure the directory exists.
  10954. test -f "$dirpart/$file" && continue
  10955. fdir=`$as_dirname -- "$file" ||
  10956. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10957. X"$file" : 'X\(//\)[^/]' \| \
  10958. X"$file" : 'X\(//\)$' \| \
  10959. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  10960. $as_echo X"$file" |
  10961. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10962. s//\1/
  10963. q
  10964. }
  10965. /^X\(\/\/\)[^/].*/{
  10966. s//\1/
  10967. q
  10968. }
  10969. /^X\(\/\/\)$/{
  10970. s//\1/
  10971. q
  10972. }
  10973. /^X\(\/\).*/{
  10974. s//\1/
  10975. q
  10976. }
  10977. s/.*/./; q'`
  10978. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  10979. # echo "creating $dirpart/$file"
  10980. echo '# dummy' > "$dirpart/$file"
  10981. done
  10982. done
  10983. }
  10984. ;;
  10985. "libtool":C)
  10986. # See if we are running on zsh, and set the options which allow our
  10987. # commands through without removal of \ escapes.
  10988. if test -n "${ZSH_VERSION+set}" ; then
  10989. setopt NO_GLOB_SUBST
  10990. fi
  10991. cfgfile="${ofile}T"
  10992. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  10993. $RM "$cfgfile"
  10994. cat <<_LT_EOF >> "$cfgfile"
  10995. #! $SHELL
  10996. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  10997. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  10998. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10999. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11000. #
  11001. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11002. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  11003. # Written by Gordon Matzigkeit, 1996
  11004. #
  11005. # This file is part of GNU Libtool.
  11006. #
  11007. # GNU Libtool is free software; you can redistribute it and/or
  11008. # modify it under the terms of the GNU General Public License as
  11009. # published by the Free Software Foundation; either version 2 of
  11010. # the License, or (at your option) any later version.
  11011. #
  11012. # As a special exception to the GNU General Public License,
  11013. # if you distribute this file as part of a program or library that
  11014. # is built using GNU Libtool, you may include this file under the
  11015. # same distribution terms that you use for the rest of that program.
  11016. #
  11017. # GNU Libtool is distributed in the hope that it will be useful,
  11018. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11019. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11020. # GNU General Public License for more details.
  11021. #
  11022. # You should have received a copy of the GNU General Public License
  11023. # along with GNU Libtool; see the file COPYING. If not, a copy
  11024. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11025. # obtained by writing to the Free Software Foundation, Inc.,
  11026. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11027. # The names of the tagged configurations supported by this script.
  11028. available_tags=""
  11029. # ### BEGIN LIBTOOL CONFIG
  11030. # Which release of libtool.m4 was used?
  11031. macro_version=$macro_version
  11032. macro_revision=$macro_revision
  11033. # Whether or not to build shared libraries.
  11034. build_libtool_libs=$enable_shared
  11035. # Whether or not to build static libraries.
  11036. build_old_libs=$enable_static
  11037. # What type of objects to build.
  11038. pic_mode=$pic_mode
  11039. # Whether or not to optimize for fast installation.
  11040. fast_install=$enable_fast_install
  11041. # Shell to use when invoking shell scripts.
  11042. SHELL=$lt_SHELL
  11043. # An echo program that protects backslashes.
  11044. ECHO=$lt_ECHO
  11045. # The host system.
  11046. host_alias=$host_alias
  11047. host=$host
  11048. host_os=$host_os
  11049. # The build system.
  11050. build_alias=$build_alias
  11051. build=$build
  11052. build_os=$build_os
  11053. # A sed program that does not truncate output.
  11054. SED=$lt_SED
  11055. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11056. Xsed="\$SED -e 1s/^X//"
  11057. # A grep program that handles long lines.
  11058. GREP=$lt_GREP
  11059. # An ERE matcher.
  11060. EGREP=$lt_EGREP
  11061. # A literal string matcher.
  11062. FGREP=$lt_FGREP
  11063. # A BSD- or MS-compatible name lister.
  11064. NM=$lt_NM
  11065. # Whether we need soft or hard links.
  11066. LN_S=$lt_LN_S
  11067. # What is the maximum length of a command?
  11068. max_cmd_len=$max_cmd_len
  11069. # Object file suffix (normally "o").
  11070. objext=$ac_objext
  11071. # Executable file suffix (normally "").
  11072. exeext=$exeext
  11073. # whether the shell understands "unset".
  11074. lt_unset=$lt_unset
  11075. # turn spaces into newlines.
  11076. SP2NL=$lt_lt_SP2NL
  11077. # turn newlines into spaces.
  11078. NL2SP=$lt_lt_NL2SP
  11079. # An object symbol dumper.
  11080. OBJDUMP=$lt_OBJDUMP
  11081. # Method to check whether dependent libraries are shared objects.
  11082. deplibs_check_method=$lt_deplibs_check_method
  11083. # Command to use when deplibs_check_method == "file_magic".
  11084. file_magic_cmd=$lt_file_magic_cmd
  11085. # The archiver.
  11086. AR=$lt_AR
  11087. AR_FLAGS=$lt_AR_FLAGS
  11088. # A symbol stripping program.
  11089. STRIP=$lt_STRIP
  11090. # Commands used to install an old-style archive.
  11091. RANLIB=$lt_RANLIB
  11092. old_postinstall_cmds=$lt_old_postinstall_cmds
  11093. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11094. # Whether to use a lock for old archive extraction.
  11095. lock_old_archive_extraction=$lock_old_archive_extraction
  11096. # A C compiler.
  11097. LTCC=$lt_CC
  11098. # LTCC compiler flags.
  11099. LTCFLAGS=$lt_CFLAGS
  11100. # Take the output of nm and produce a listing of raw symbols and C names.
  11101. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11102. # Transform the output of nm in a proper C declaration.
  11103. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11104. # Transform the output of nm in a C name address pair.
  11105. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11106. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11107. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11108. # The name of the directory that contains temporary libtool files.
  11109. objdir=$objdir
  11110. # Used to examine libraries when file_magic_cmd begins with "file".
  11111. MAGIC_CMD=$MAGIC_CMD
  11112. # Must we lock files when doing compilation?
  11113. need_locks=$lt_need_locks
  11114. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11115. DSYMUTIL=$lt_DSYMUTIL
  11116. # Tool to change global to local symbols on Mac OS X.
  11117. NMEDIT=$lt_NMEDIT
  11118. # Tool to manipulate fat objects and archives on Mac OS X.
  11119. LIPO=$lt_LIPO
  11120. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11121. OTOOL=$lt_OTOOL
  11122. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11123. OTOOL64=$lt_OTOOL64
  11124. # Old archive suffix (normally "a").
  11125. libext=$libext
  11126. # Shared library suffix (normally ".so").
  11127. shrext_cmds=$lt_shrext_cmds
  11128. # The commands to extract the exported symbol list from a shared archive.
  11129. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11130. # Variables whose values should be saved in libtool wrapper scripts and
  11131. # restored at link time.
  11132. variables_saved_for_relink=$lt_variables_saved_for_relink
  11133. # Do we need the "lib" prefix for modules?
  11134. need_lib_prefix=$need_lib_prefix
  11135. # Do we need a version for libraries?
  11136. need_version=$need_version
  11137. # Library versioning type.
  11138. version_type=$version_type
  11139. # Shared library runtime path variable.
  11140. runpath_var=$runpath_var
  11141. # Shared library path variable.
  11142. shlibpath_var=$shlibpath_var
  11143. # Is shlibpath searched before the hard-coded library search path?
  11144. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11145. # Format of library name prefix.
  11146. libname_spec=$lt_libname_spec
  11147. # List of archive names. First name is the real one, the rest are links.
  11148. # The last name is the one that the linker finds with -lNAME
  11149. library_names_spec=$lt_library_names_spec
  11150. # The coded name of the library, if different from the real name.
  11151. soname_spec=$lt_soname_spec
  11152. # Permission mode override for installation of shared libraries.
  11153. install_override_mode=$lt_install_override_mode
  11154. # Command to use after installation of a shared archive.
  11155. postinstall_cmds=$lt_postinstall_cmds
  11156. # Command to use after uninstallation of a shared archive.
  11157. postuninstall_cmds=$lt_postuninstall_cmds
  11158. # Commands used to finish a libtool library installation in a directory.
  11159. finish_cmds=$lt_finish_cmds
  11160. # As "finish_cmds", except a single script fragment to be evaled but
  11161. # not shown.
  11162. finish_eval=$lt_finish_eval
  11163. # Whether we should hardcode library paths into libraries.
  11164. hardcode_into_libs=$hardcode_into_libs
  11165. # Compile-time system search path for libraries.
  11166. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11167. # Run-time system search path for libraries.
  11168. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11169. # Whether dlopen is supported.
  11170. dlopen_support=$enable_dlopen
  11171. # Whether dlopen of programs is supported.
  11172. dlopen_self=$enable_dlopen_self
  11173. # Whether dlopen of statically linked programs is supported.
  11174. dlopen_self_static=$enable_dlopen_self_static
  11175. # Commands to strip libraries.
  11176. old_striplib=$lt_old_striplib
  11177. striplib=$lt_striplib
  11178. # The linker used to build libraries.
  11179. LD=$lt_LD
  11180. # How to create reloadable object files.
  11181. reload_flag=$lt_reload_flag
  11182. reload_cmds=$lt_reload_cmds
  11183. # Commands used to build an old-style archive.
  11184. old_archive_cmds=$lt_old_archive_cmds
  11185. # A language specific compiler.
  11186. CC=$lt_compiler
  11187. # Is the compiler the GNU compiler?
  11188. with_gcc=$GCC
  11189. # Compiler flag to turn off builtin functions.
  11190. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11191. # How to pass a linker flag through the compiler.
  11192. wl=$lt_lt_prog_compiler_wl
  11193. # Additional compiler flags for building library objects.
  11194. pic_flag=$lt_lt_prog_compiler_pic
  11195. # Compiler flag to prevent dynamic linking.
  11196. link_static_flag=$lt_lt_prog_compiler_static
  11197. # Does compiler simultaneously support -c and -o options?
  11198. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11199. # Whether or not to add -lc for building shared libraries.
  11200. build_libtool_need_lc=$archive_cmds_need_lc
  11201. # Whether or not to disallow shared libs when runtime libs are static.
  11202. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11203. # Compiler flag to allow reflexive dlopens.
  11204. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11205. # Compiler flag to generate shared objects directly from archives.
  11206. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11207. # Whether the compiler copes with passing no objects directly.
  11208. compiler_needs_object=$lt_compiler_needs_object
  11209. # Create an old-style archive from a shared archive.
  11210. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11211. # Create a temporary old-style archive to link instead of a shared archive.
  11212. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11213. # Commands used to build a shared archive.
  11214. archive_cmds=$lt_archive_cmds
  11215. archive_expsym_cmds=$lt_archive_expsym_cmds
  11216. # Commands used to build a loadable module if different from building
  11217. # a shared archive.
  11218. module_cmds=$lt_module_cmds
  11219. module_expsym_cmds=$lt_module_expsym_cmds
  11220. # Whether we are building with GNU ld or not.
  11221. with_gnu_ld=$lt_with_gnu_ld
  11222. # Flag that allows shared libraries with undefined symbols to be built.
  11223. allow_undefined_flag=$lt_allow_undefined_flag
  11224. # Flag that enforces no undefined symbols.
  11225. no_undefined_flag=$lt_no_undefined_flag
  11226. # Flag to hardcode \$libdir into a binary during linking.
  11227. # This must work even if \$libdir does not exist
  11228. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11229. # If ld is used when linking, flag to hardcode \$libdir into a binary
  11230. # during linking. This must work even if \$libdir does not exist.
  11231. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  11232. # Whether we need a single "-rpath" flag with a separated argument.
  11233. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11234. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11235. # DIR into the resulting binary.
  11236. hardcode_direct=$hardcode_direct
  11237. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11238. # DIR into the resulting binary and the resulting library dependency is
  11239. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11240. # library is relocated.
  11241. hardcode_direct_absolute=$hardcode_direct_absolute
  11242. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11243. # into the resulting binary.
  11244. hardcode_minus_L=$hardcode_minus_L
  11245. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11246. # into the resulting binary.
  11247. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11248. # Set to "yes" if building a shared library automatically hardcodes DIR
  11249. # into the library and all subsequent libraries and executables linked
  11250. # against it.
  11251. hardcode_automatic=$hardcode_automatic
  11252. # Set to yes if linker adds runtime paths of dependent libraries
  11253. # to runtime path list.
  11254. inherit_rpath=$inherit_rpath
  11255. # Whether libtool must link a program against all its dependency libraries.
  11256. link_all_deplibs=$link_all_deplibs
  11257. # Fix the shell variable \$srcfile for the compiler.
  11258. fix_srcfile_path=$lt_fix_srcfile_path
  11259. # Set to "yes" if exported symbols are required.
  11260. always_export_symbols=$always_export_symbols
  11261. # The commands to list exported symbols.
  11262. export_symbols_cmds=$lt_export_symbols_cmds
  11263. # Symbols that should not be listed in the preloaded symbols.
  11264. exclude_expsyms=$lt_exclude_expsyms
  11265. # Symbols that must always be exported.
  11266. include_expsyms=$lt_include_expsyms
  11267. # Commands necessary for linking programs (against libraries) with templates.
  11268. prelink_cmds=$lt_prelink_cmds
  11269. # Specify filename containing input files.
  11270. file_list_spec=$lt_file_list_spec
  11271. # How to hardcode a shared library path into an executable.
  11272. hardcode_action=$hardcode_action
  11273. # ### END LIBTOOL CONFIG
  11274. _LT_EOF
  11275. case $host_os in
  11276. aix3*)
  11277. cat <<\_LT_EOF >> "$cfgfile"
  11278. # AIX sometimes has problems with the GCC collect2 program. For some
  11279. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11280. # vanish in a puff of smoke.
  11281. if test "X${COLLECT_NAMES+set}" != Xset; then
  11282. COLLECT_NAMES=
  11283. export COLLECT_NAMES
  11284. fi
  11285. _LT_EOF
  11286. ;;
  11287. esac
  11288. ltmain="$ac_aux_dir/ltmain.sh"
  11289. # We use sed instead of cat because bash on DJGPP gets confused if
  11290. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11291. # text mode, it properly converts lines to CR/LF. This bash problem
  11292. # is reportedly fixed, but why not run on old versions too?
  11293. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  11294. || (rm -f "$cfgfile"; exit 1)
  11295. case $xsi_shell in
  11296. yes)
  11297. cat << \_LT_EOF >> "$cfgfile"
  11298. # func_dirname file append nondir_replacement
  11299. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11300. # otherwise set result to NONDIR_REPLACEMENT.
  11301. func_dirname ()
  11302. {
  11303. case ${1} in
  11304. */*) func_dirname_result="${1%/*}${2}" ;;
  11305. * ) func_dirname_result="${3}" ;;
  11306. esac
  11307. }
  11308. # func_basename file
  11309. func_basename ()
  11310. {
  11311. func_basename_result="${1##*/}"
  11312. }
  11313. # func_dirname_and_basename file append nondir_replacement
  11314. # perform func_basename and func_dirname in a single function
  11315. # call:
  11316. # dirname: Compute the dirname of FILE. If nonempty,
  11317. # add APPEND to the result, otherwise set result
  11318. # to NONDIR_REPLACEMENT.
  11319. # value returned in "$func_dirname_result"
  11320. # basename: Compute filename of FILE.
  11321. # value retuned in "$func_basename_result"
  11322. # Implementation must be kept synchronized with func_dirname
  11323. # and func_basename. For efficiency, we do not delegate to
  11324. # those functions but instead duplicate the functionality here.
  11325. func_dirname_and_basename ()
  11326. {
  11327. case ${1} in
  11328. */*) func_dirname_result="${1%/*}${2}" ;;
  11329. * ) func_dirname_result="${3}" ;;
  11330. esac
  11331. func_basename_result="${1##*/}"
  11332. }
  11333. # func_stripname prefix suffix name
  11334. # strip PREFIX and SUFFIX off of NAME.
  11335. # PREFIX and SUFFIX must not contain globbing or regex special
  11336. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11337. # dot (in which case that matches only a dot).
  11338. func_stripname ()
  11339. {
  11340. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11341. # positional parameters, so assign one to ordinary parameter first.
  11342. func_stripname_result=${3}
  11343. func_stripname_result=${func_stripname_result#"${1}"}
  11344. func_stripname_result=${func_stripname_result%"${2}"}
  11345. }
  11346. # func_opt_split
  11347. func_opt_split ()
  11348. {
  11349. func_opt_split_opt=${1%%=*}
  11350. func_opt_split_arg=${1#*=}
  11351. }
  11352. # func_lo2o object
  11353. func_lo2o ()
  11354. {
  11355. case ${1} in
  11356. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11357. *) func_lo2o_result=${1} ;;
  11358. esac
  11359. }
  11360. # func_xform libobj-or-source
  11361. func_xform ()
  11362. {
  11363. func_xform_result=${1%.*}.lo
  11364. }
  11365. # func_arith arithmetic-term...
  11366. func_arith ()
  11367. {
  11368. func_arith_result=$(( $* ))
  11369. }
  11370. # func_len string
  11371. # STRING may not start with a hyphen.
  11372. func_len ()
  11373. {
  11374. func_len_result=${#1}
  11375. }
  11376. _LT_EOF
  11377. ;;
  11378. *) # Bourne compatible functions.
  11379. cat << \_LT_EOF >> "$cfgfile"
  11380. # func_dirname file append nondir_replacement
  11381. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11382. # otherwise set result to NONDIR_REPLACEMENT.
  11383. func_dirname ()
  11384. {
  11385. # Extract subdirectory from the argument.
  11386. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  11387. if test "X$func_dirname_result" = "X${1}"; then
  11388. func_dirname_result="${3}"
  11389. else
  11390. func_dirname_result="$func_dirname_result${2}"
  11391. fi
  11392. }
  11393. # func_basename file
  11394. func_basename ()
  11395. {
  11396. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  11397. }
  11398. # func_stripname prefix suffix name
  11399. # strip PREFIX and SUFFIX off of NAME.
  11400. # PREFIX and SUFFIX must not contain globbing or regex special
  11401. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11402. # dot (in which case that matches only a dot).
  11403. # func_strip_suffix prefix name
  11404. func_stripname ()
  11405. {
  11406. case ${2} in
  11407. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  11408. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  11409. esac
  11410. }
  11411. # sed scripts:
  11412. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  11413. my_sed_long_arg='1s/^-[^=]*=//'
  11414. # func_opt_split
  11415. func_opt_split ()
  11416. {
  11417. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  11418. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  11419. }
  11420. # func_lo2o object
  11421. func_lo2o ()
  11422. {
  11423. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  11424. }
  11425. # func_xform libobj-or-source
  11426. func_xform ()
  11427. {
  11428. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  11429. }
  11430. # func_arith arithmetic-term...
  11431. func_arith ()
  11432. {
  11433. func_arith_result=`expr "$@"`
  11434. }
  11435. # func_len string
  11436. # STRING may not start with a hyphen.
  11437. func_len ()
  11438. {
  11439. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  11440. }
  11441. _LT_EOF
  11442. esac
  11443. case $lt_shell_append in
  11444. yes)
  11445. cat << \_LT_EOF >> "$cfgfile"
  11446. # func_append var value
  11447. # Append VALUE to the end of shell variable VAR.
  11448. func_append ()
  11449. {
  11450. eval "$1+=\$2"
  11451. }
  11452. _LT_EOF
  11453. ;;
  11454. *)
  11455. cat << \_LT_EOF >> "$cfgfile"
  11456. # func_append var value
  11457. # Append VALUE to the end of shell variable VAR.
  11458. func_append ()
  11459. {
  11460. eval "$1=\$$1\$2"
  11461. }
  11462. _LT_EOF
  11463. ;;
  11464. esac
  11465. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  11466. || (rm -f "$cfgfile"; exit 1)
  11467. mv -f "$cfgfile" "$ofile" ||
  11468. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11469. chmod +x "$ofile"
  11470. ;;
  11471. esac
  11472. done # for ac_tag
  11473. as_fn_exit 0
  11474. _ACEOF
  11475. ac_clean_files=$ac_clean_files_save
  11476. test $ac_write_fail = 0 ||
  11477. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11478. # configure is writing to config.log, and then calls config.status.
  11479. # config.status does its own redirection, appending to config.log.
  11480. # Unfortunately, on DOS this fails, as config.log is still kept open
  11481. # by configure, so config.status won't be able to write to it; its
  11482. # output is simply discarded. So we exec the FD to /dev/null,
  11483. # effectively closing config.log, so it can be properly (re)opened and
  11484. # appended to by config.status. When coming back to configure, we
  11485. # need to make the FD available again.
  11486. if test "$no_create" != yes; then
  11487. ac_cs_success=:
  11488. ac_config_status_args=
  11489. test "$silent" = yes &&
  11490. ac_config_status_args="$ac_config_status_args --quiet"
  11491. exec 5>/dev/null
  11492. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11493. exec 5>>config.log
  11494. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11495. # would make configure fail if this is the last instruction.
  11496. $ac_cs_success || as_fn_exit $?
  11497. fi
  11498. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11500. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11501. fi