configure 398 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for libssp 1.0.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  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. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1
  186. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  187. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. PATH=/empty FPATH=/empty; export PATH FPATH
  191. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  192. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='libssp'
  539. PACKAGE_TARNAME='libssp'
  540. PACKAGE_VERSION='1.0'
  541. PACKAGE_STRING='libssp 1.0'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. ac_unique_file="ssp.c"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='am__EXEEXT_FALSE
  581. am__EXEEXT_TRUE
  582. LTLIBOBJS
  583. LIBOBJS
  584. get_gcc_base_ver
  585. toolexeclibdir
  586. toolexecdir
  587. enable_static
  588. enable_shared
  589. lt_host_flags
  590. OTOOL64
  591. OTOOL
  592. LIPO
  593. NMEDIT
  594. DSYMUTIL
  595. RANLIB
  596. AR
  597. OBJDUMP
  598. LN_S
  599. NM
  600. ac_ct_DUMPBIN
  601. DUMPBIN
  602. LD
  603. FGREP
  604. SED
  605. LIBTOOL
  606. ssp_have_usable_vsnprintf
  607. EGREP
  608. GREP
  609. LIBSSP_USE_SYMVER_SUN_FALSE
  610. LIBSSP_USE_SYMVER_SUN_TRUE
  611. LIBSSP_USE_SYMVER_GNU_FALSE
  612. LIBSSP_USE_SYMVER_GNU_TRUE
  613. LIBSSP_USE_SYMVER_FALSE
  614. LIBSSP_USE_SYMVER_TRUE
  615. XCFLAGS
  616. CPP
  617. am__fastdepCC_FALSE
  618. am__fastdepCC_TRUE
  619. CCDEPMODE
  620. am__nodep
  621. AMDEPBACKSLASH
  622. AMDEP_FALSE
  623. AMDEP_TRUE
  624. am__quote
  625. am__include
  626. DEPDIR
  627. OBJEXT
  628. EXEEXT
  629. ac_ct_CC
  630. CPPFLAGS
  631. LDFLAGS
  632. CFLAGS
  633. CC
  634. multi_basedir
  635. MAINT
  636. MAINTAINER_MODE_FALSE
  637. MAINTAINER_MODE_TRUE
  638. AM_BACKSLASH
  639. AM_DEFAULT_VERBOSITY
  640. AM_DEFAULT_V
  641. AM_V
  642. am__untar
  643. am__tar
  644. AMTAR
  645. am__leading_dot
  646. SET_MAKE
  647. AWK
  648. mkdir_p
  649. MKDIR_P
  650. INSTALL_STRIP_PROGRAM
  651. STRIP
  652. install_sh
  653. MAKEINFO
  654. AUTOHEADER
  655. AUTOMAKE
  656. AUTOCONF
  657. ACLOCAL
  658. VERSION
  659. PACKAGE
  660. CYGPATH_W
  661. am__isrc
  662. INSTALL_DATA
  663. INSTALL_SCRIPT
  664. INSTALL_PROGRAM
  665. target_noncanonical
  666. target_os
  667. target_vendor
  668. target_cpu
  669. target
  670. host_os
  671. host_vendor
  672. host_cpu
  673. host
  674. build_os
  675. build_vendor
  676. build_cpu
  677. build
  678. target_alias
  679. host_alias
  680. build_alias
  681. LIBS
  682. ECHO_T
  683. ECHO_N
  684. ECHO_C
  685. DEFS
  686. mandir
  687. localedir
  688. libdir
  689. psdir
  690. pdfdir
  691. dvidir
  692. htmldir
  693. infodir
  694. docdir
  695. oldincludedir
  696. includedir
  697. localstatedir
  698. sharedstatedir
  699. sysconfdir
  700. datadir
  701. datarootdir
  702. libexecdir
  703. sbindir
  704. bindir
  705. program_transform_name
  706. prefix
  707. exec_prefix
  708. PACKAGE_URL
  709. PACKAGE_BUGREPORT
  710. PACKAGE_STRING
  711. PACKAGE_VERSION
  712. PACKAGE_TARNAME
  713. PACKAGE_NAME
  714. PATH_SEPARATOR
  715. SHELL'
  716. ac_subst_files=''
  717. ac_user_opts='
  718. enable_option_checking
  719. enable_silent_rules
  720. enable_version_specific_runtime_libs
  721. enable_maintainer_mode
  722. enable_multilib
  723. enable_dependency_tracking
  724. enable_cet
  725. enable_symvers
  726. enable_shared
  727. enable_static
  728. with_pic
  729. enable_fast_install
  730. with_gnu_ld
  731. enable_libtool_lock
  732. with_toolexeclibdir
  733. with_gcc_major_version_only
  734. '
  735. ac_precious_vars='build_alias
  736. host_alias
  737. target_alias
  738. CPP
  739. CPPFLAGS'
  740. # Initialize some variables set by options.
  741. ac_init_help=
  742. ac_init_version=false
  743. ac_unrecognized_opts=
  744. ac_unrecognized_sep=
  745. # The variables have the same names as the options, with
  746. # dashes changed to underlines.
  747. cache_file=/dev/null
  748. exec_prefix=NONE
  749. no_create=
  750. no_recursion=
  751. prefix=NONE
  752. program_prefix=NONE
  753. program_suffix=NONE
  754. program_transform_name=s,x,x,
  755. silent=
  756. site=
  757. srcdir=
  758. verbose=
  759. x_includes=NONE
  760. x_libraries=NONE
  761. # Installation directory options.
  762. # These are left unexpanded so users can "make install exec_prefix=/foo"
  763. # and all the variables that are supposed to be based on exec_prefix
  764. # by default will actually change.
  765. # Use braces instead of parens because sh, perl, etc. also accept them.
  766. # (The list follows the same order as the GNU Coding Standards.)
  767. bindir='${exec_prefix}/bin'
  768. sbindir='${exec_prefix}/sbin'
  769. libexecdir='${exec_prefix}/libexec'
  770. datarootdir='${prefix}/share'
  771. datadir='${datarootdir}'
  772. sysconfdir='${prefix}/etc'
  773. sharedstatedir='${prefix}/com'
  774. localstatedir='${prefix}/var'
  775. includedir='${prefix}/include'
  776. oldincludedir='/usr/include'
  777. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  778. infodir='${datarootdir}/info'
  779. htmldir='${docdir}'
  780. dvidir='${docdir}'
  781. pdfdir='${docdir}'
  782. psdir='${docdir}'
  783. libdir='${exec_prefix}/lib'
  784. localedir='${datarootdir}/locale'
  785. mandir='${datarootdir}/man'
  786. ac_prev=
  787. ac_dashdash=
  788. for ac_option
  789. do
  790. # If the previous option needs an argument, assign it.
  791. if test -n "$ac_prev"; then
  792. eval $ac_prev=\$ac_option
  793. ac_prev=
  794. continue
  795. fi
  796. case $ac_option in
  797. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  798. *=) ac_optarg= ;;
  799. *) ac_optarg=yes ;;
  800. esac
  801. # Accept the important Cygnus configure options, so we can diagnose typos.
  802. case $ac_dashdash$ac_option in
  803. --)
  804. ac_dashdash=yes ;;
  805. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  806. ac_prev=bindir ;;
  807. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  808. bindir=$ac_optarg ;;
  809. -build | --build | --buil | --bui | --bu)
  810. ac_prev=build_alias ;;
  811. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  812. build_alias=$ac_optarg ;;
  813. -cache-file | --cache-file | --cache-fil | --cache-fi \
  814. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  815. ac_prev=cache_file ;;
  816. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  817. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  818. cache_file=$ac_optarg ;;
  819. --config-cache | -C)
  820. cache_file=config.cache ;;
  821. -datadir | --datadir | --datadi | --datad)
  822. ac_prev=datadir ;;
  823. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  824. datadir=$ac_optarg ;;
  825. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  826. | --dataroo | --dataro | --datar)
  827. ac_prev=datarootdir ;;
  828. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  829. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  830. datarootdir=$ac_optarg ;;
  831. -disable-* | --disable-*)
  832. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  833. # Reject names that are not valid shell variable names.
  834. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  835. as_fn_error $? "invalid feature name: $ac_useropt"
  836. ac_useropt_orig=$ac_useropt
  837. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  838. case $ac_user_opts in
  839. *"
  840. "enable_$ac_useropt"
  841. "*) ;;
  842. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  843. ac_unrecognized_sep=', ';;
  844. esac
  845. eval enable_$ac_useropt=no ;;
  846. -docdir | --docdir | --docdi | --doc | --do)
  847. ac_prev=docdir ;;
  848. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  849. docdir=$ac_optarg ;;
  850. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  851. ac_prev=dvidir ;;
  852. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  853. dvidir=$ac_optarg ;;
  854. -enable-* | --enable-*)
  855. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  856. # Reject names that are not valid shell variable names.
  857. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  858. as_fn_error $? "invalid feature name: $ac_useropt"
  859. ac_useropt_orig=$ac_useropt
  860. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  861. case $ac_user_opts in
  862. *"
  863. "enable_$ac_useropt"
  864. "*) ;;
  865. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  866. ac_unrecognized_sep=', ';;
  867. esac
  868. eval enable_$ac_useropt=\$ac_optarg ;;
  869. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  870. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  871. | --exec | --exe | --ex)
  872. ac_prev=exec_prefix ;;
  873. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  874. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  875. | --exec=* | --exe=* | --ex=*)
  876. exec_prefix=$ac_optarg ;;
  877. -gas | --gas | --ga | --g)
  878. # Obsolete; use --with-gas.
  879. with_gas=yes ;;
  880. -help | --help | --hel | --he | -h)
  881. ac_init_help=long ;;
  882. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  883. ac_init_help=recursive ;;
  884. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  885. ac_init_help=short ;;
  886. -host | --host | --hos | --ho)
  887. ac_prev=host_alias ;;
  888. -host=* | --host=* | --hos=* | --ho=*)
  889. host_alias=$ac_optarg ;;
  890. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  891. ac_prev=htmldir ;;
  892. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  893. | --ht=*)
  894. htmldir=$ac_optarg ;;
  895. -includedir | --includedir | --includedi | --included | --include \
  896. | --includ | --inclu | --incl | --inc)
  897. ac_prev=includedir ;;
  898. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  899. | --includ=* | --inclu=* | --incl=* | --inc=*)
  900. includedir=$ac_optarg ;;
  901. -infodir | --infodir | --infodi | --infod | --info | --inf)
  902. ac_prev=infodir ;;
  903. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  904. infodir=$ac_optarg ;;
  905. -libdir | --libdir | --libdi | --libd)
  906. ac_prev=libdir ;;
  907. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  908. libdir=$ac_optarg ;;
  909. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  910. | --libexe | --libex | --libe)
  911. ac_prev=libexecdir ;;
  912. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  913. | --libexe=* | --libex=* | --libe=*)
  914. libexecdir=$ac_optarg ;;
  915. -localedir | --localedir | --localedi | --localed | --locale)
  916. ac_prev=localedir ;;
  917. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  918. localedir=$ac_optarg ;;
  919. -localstatedir | --localstatedir | --localstatedi | --localstated \
  920. | --localstate | --localstat | --localsta | --localst | --locals)
  921. ac_prev=localstatedir ;;
  922. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  923. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  924. localstatedir=$ac_optarg ;;
  925. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  926. ac_prev=mandir ;;
  927. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  928. mandir=$ac_optarg ;;
  929. -nfp | --nfp | --nf)
  930. # Obsolete; use --without-fp.
  931. with_fp=no ;;
  932. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  933. | --no-cr | --no-c | -n)
  934. no_create=yes ;;
  935. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  936. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  937. no_recursion=yes ;;
  938. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  939. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  940. | --oldin | --oldi | --old | --ol | --o)
  941. ac_prev=oldincludedir ;;
  942. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  943. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  944. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  945. oldincludedir=$ac_optarg ;;
  946. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  947. ac_prev=prefix ;;
  948. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  949. prefix=$ac_optarg ;;
  950. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  951. | --program-pre | --program-pr | --program-p)
  952. ac_prev=program_prefix ;;
  953. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  954. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  955. program_prefix=$ac_optarg ;;
  956. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  957. | --program-suf | --program-su | --program-s)
  958. ac_prev=program_suffix ;;
  959. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  960. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  961. program_suffix=$ac_optarg ;;
  962. -program-transform-name | --program-transform-name \
  963. | --program-transform-nam | --program-transform-na \
  964. | --program-transform-n | --program-transform- \
  965. | --program-transform | --program-transfor \
  966. | --program-transfo | --program-transf \
  967. | --program-trans | --program-tran \
  968. | --progr-tra | --program-tr | --program-t)
  969. ac_prev=program_transform_name ;;
  970. -program-transform-name=* | --program-transform-name=* \
  971. | --program-transform-nam=* | --program-transform-na=* \
  972. | --program-transform-n=* | --program-transform-=* \
  973. | --program-transform=* | --program-transfor=* \
  974. | --program-transfo=* | --program-transf=* \
  975. | --program-trans=* | --program-tran=* \
  976. | --progr-tra=* | --program-tr=* | --program-t=*)
  977. program_transform_name=$ac_optarg ;;
  978. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  979. ac_prev=pdfdir ;;
  980. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  981. pdfdir=$ac_optarg ;;
  982. -psdir | --psdir | --psdi | --psd | --ps)
  983. ac_prev=psdir ;;
  984. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  985. psdir=$ac_optarg ;;
  986. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  987. | -silent | --silent | --silen | --sile | --sil)
  988. silent=yes ;;
  989. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  990. ac_prev=sbindir ;;
  991. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  992. | --sbi=* | --sb=*)
  993. sbindir=$ac_optarg ;;
  994. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  995. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  996. | --sharedst | --shareds | --shared | --share | --shar \
  997. | --sha | --sh)
  998. ac_prev=sharedstatedir ;;
  999. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1000. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1001. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1002. | --sha=* | --sh=*)
  1003. sharedstatedir=$ac_optarg ;;
  1004. -site | --site | --sit)
  1005. ac_prev=site ;;
  1006. -site=* | --site=* | --sit=*)
  1007. site=$ac_optarg ;;
  1008. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1009. ac_prev=srcdir ;;
  1010. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1011. srcdir=$ac_optarg ;;
  1012. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1013. | --syscon | --sysco | --sysc | --sys | --sy)
  1014. ac_prev=sysconfdir ;;
  1015. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1016. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1017. sysconfdir=$ac_optarg ;;
  1018. -target | --target | --targe | --targ | --tar | --ta | --t)
  1019. ac_prev=target_alias ;;
  1020. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1021. target_alias=$ac_optarg ;;
  1022. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1023. verbose=yes ;;
  1024. -version | --version | --versio | --versi | --vers | -V)
  1025. ac_init_version=: ;;
  1026. -with-* | --with-*)
  1027. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1028. # Reject names that are not valid shell variable names.
  1029. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1030. as_fn_error $? "invalid package name: $ac_useropt"
  1031. ac_useropt_orig=$ac_useropt
  1032. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1033. case $ac_user_opts in
  1034. *"
  1035. "with_$ac_useropt"
  1036. "*) ;;
  1037. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1038. ac_unrecognized_sep=', ';;
  1039. esac
  1040. eval with_$ac_useropt=\$ac_optarg ;;
  1041. -without-* | --without-*)
  1042. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1043. # Reject names that are not valid shell variable names.
  1044. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1045. as_fn_error $? "invalid package name: $ac_useropt"
  1046. ac_useropt_orig=$ac_useropt
  1047. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1048. case $ac_user_opts in
  1049. *"
  1050. "with_$ac_useropt"
  1051. "*) ;;
  1052. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1053. ac_unrecognized_sep=', ';;
  1054. esac
  1055. eval with_$ac_useropt=no ;;
  1056. --x)
  1057. # Obsolete; use --with-x.
  1058. with_x=yes ;;
  1059. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1060. | --x-incl | --x-inc | --x-in | --x-i)
  1061. ac_prev=x_includes ;;
  1062. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1063. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1064. x_includes=$ac_optarg ;;
  1065. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1066. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1067. ac_prev=x_libraries ;;
  1068. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1069. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1070. x_libraries=$ac_optarg ;;
  1071. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1072. Try \`$0 --help' for more information"
  1073. ;;
  1074. *=*)
  1075. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1076. # Reject names that are not valid shell variable names.
  1077. case $ac_envvar in #(
  1078. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1079. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1080. esac
  1081. eval $ac_envvar=\$ac_optarg
  1082. export $ac_envvar ;;
  1083. *)
  1084. # FIXME: should be removed in autoconf 3.0.
  1085. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1086. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1087. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1088. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1089. ;;
  1090. esac
  1091. done
  1092. if test -n "$ac_prev"; then
  1093. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1094. as_fn_error $? "missing argument to $ac_option"
  1095. fi
  1096. if test -n "$ac_unrecognized_opts"; then
  1097. case $enable_option_checking in
  1098. no) ;;
  1099. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1100. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1101. esac
  1102. fi
  1103. # Check all directory arguments for consistency.
  1104. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1105. datadir sysconfdir sharedstatedir localstatedir includedir \
  1106. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1107. libdir localedir mandir
  1108. do
  1109. eval ac_val=\$$ac_var
  1110. # Remove trailing slashes.
  1111. case $ac_val in
  1112. */ )
  1113. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1114. eval $ac_var=\$ac_val;;
  1115. esac
  1116. # Be sure to have absolute directory names.
  1117. case $ac_val in
  1118. [\\/$]* | ?:[\\/]* ) continue;;
  1119. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1120. esac
  1121. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1122. done
  1123. # There might be people who depend on the old broken behavior: `$host'
  1124. # used to hold the argument of --host etc.
  1125. # FIXME: To remove some day.
  1126. build=$build_alias
  1127. host=$host_alias
  1128. target=$target_alias
  1129. # FIXME: To remove some day.
  1130. if test "x$host_alias" != x; then
  1131. if test "x$build_alias" = x; then
  1132. cross_compiling=maybe
  1133. elif test "x$build_alias" != "x$host_alias"; then
  1134. cross_compiling=yes
  1135. fi
  1136. fi
  1137. ac_tool_prefix=
  1138. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1139. test "$silent" = yes && exec 6>/dev/null
  1140. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1141. ac_ls_di=`ls -di .` &&
  1142. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1143. as_fn_error $? "working directory cannot be determined"
  1144. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1145. as_fn_error $? "pwd does not report name of working directory"
  1146. # Find the source files, if location was not specified.
  1147. if test -z "$srcdir"; then
  1148. ac_srcdir_defaulted=yes
  1149. # Try the directory containing this script, then the parent directory.
  1150. ac_confdir=`$as_dirname -- "$as_myself" ||
  1151. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1152. X"$as_myself" : 'X\(//\)[^/]' \| \
  1153. X"$as_myself" : 'X\(//\)$' \| \
  1154. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1155. $as_echo X"$as_myself" |
  1156. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1157. s//\1/
  1158. q
  1159. }
  1160. /^X\(\/\/\)[^/].*/{
  1161. s//\1/
  1162. q
  1163. }
  1164. /^X\(\/\/\)$/{
  1165. s//\1/
  1166. q
  1167. }
  1168. /^X\(\/\).*/{
  1169. s//\1/
  1170. q
  1171. }
  1172. s/.*/./; q'`
  1173. srcdir=$ac_confdir
  1174. if test ! -r "$srcdir/$ac_unique_file"; then
  1175. srcdir=..
  1176. fi
  1177. else
  1178. ac_srcdir_defaulted=no
  1179. fi
  1180. if test ! -r "$srcdir/$ac_unique_file"; then
  1181. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1182. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1183. fi
  1184. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1185. ac_abs_confdir=`(
  1186. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1187. pwd)`
  1188. # When building in place, set srcdir=.
  1189. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1190. srcdir=.
  1191. fi
  1192. # Remove unnecessary trailing slashes from srcdir.
  1193. # Double slashes in file names in object file debugging info
  1194. # mess up M-x gdb in Emacs.
  1195. case $srcdir in
  1196. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1197. esac
  1198. for ac_var in $ac_precious_vars; do
  1199. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1200. eval ac_env_${ac_var}_value=\$${ac_var}
  1201. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1202. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1203. done
  1204. #
  1205. # Report the --help message.
  1206. #
  1207. if test "$ac_init_help" = "long"; then
  1208. # Omit some internal or obsolete options to make the list less imposing.
  1209. # This message is too long to be a string in the A/UX 3.1 sh.
  1210. cat <<_ACEOF
  1211. \`configure' configures libssp 1.0 to adapt to many kinds of systems.
  1212. Usage: $0 [OPTION]... [VAR=VALUE]...
  1213. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1214. VAR=VALUE. See below for descriptions of some of the useful variables.
  1215. Defaults for the options are specified in brackets.
  1216. Configuration:
  1217. -h, --help display this help and exit
  1218. --help=short display options specific to this package
  1219. --help=recursive display the short help of all the included packages
  1220. -V, --version display version information and exit
  1221. -q, --quiet, --silent do not print \`checking ...' messages
  1222. --cache-file=FILE cache test results in FILE [disabled]
  1223. -C, --config-cache alias for \`--cache-file=config.cache'
  1224. -n, --no-create do not create output files
  1225. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1226. Installation directories:
  1227. --prefix=PREFIX install architecture-independent files in PREFIX
  1228. [$ac_default_prefix]
  1229. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1230. [PREFIX]
  1231. By default, \`make install' will install all the files in
  1232. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1233. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1234. for instance \`--prefix=\$HOME'.
  1235. For better control, use the options below.
  1236. Fine tuning of the installation directories:
  1237. --bindir=DIR user executables [EPREFIX/bin]
  1238. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1239. --libexecdir=DIR program executables [EPREFIX/libexec]
  1240. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1241. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1242. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1243. --libdir=DIR object code libraries [EPREFIX/lib]
  1244. --includedir=DIR C header files [PREFIX/include]
  1245. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1246. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1247. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1248. --infodir=DIR info documentation [DATAROOTDIR/info]
  1249. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1250. --mandir=DIR man documentation [DATAROOTDIR/man]
  1251. --docdir=DIR documentation root [DATAROOTDIR/doc/libssp]
  1252. --htmldir=DIR html documentation [DOCDIR]
  1253. --dvidir=DIR dvi documentation [DOCDIR]
  1254. --pdfdir=DIR pdf documentation [DOCDIR]
  1255. --psdir=DIR ps documentation [DOCDIR]
  1256. _ACEOF
  1257. cat <<\_ACEOF
  1258. Program names:
  1259. --program-prefix=PREFIX prepend PREFIX to installed program names
  1260. --program-suffix=SUFFIX append SUFFIX to installed program names
  1261. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1262. System types:
  1263. --build=BUILD configure for building on BUILD [guessed]
  1264. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1265. --target=TARGET configure for building compilers for TARGET [HOST]
  1266. _ACEOF
  1267. fi
  1268. if test -n "$ac_init_help"; then
  1269. case $ac_init_help in
  1270. short | recursive ) echo "Configuration of libssp 1.0:";;
  1271. esac
  1272. cat <<\_ACEOF
  1273. Optional Features:
  1274. --disable-option-checking ignore unrecognized --enable/--with options
  1275. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1276. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1277. --enable-silent-rules less verbose build output (undo: "make V=1")
  1278. --disable-silent-rules verbose build output (undo: "make V=0")
  1279. --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
  1280. --enable-maintainer-mode
  1281. enable make rules and dependencies not useful (and
  1282. sometimes confusing) to the casual installer
  1283. --enable-multilib build many library versions (default)
  1284. --enable-dependency-tracking
  1285. do not reject slow dependency extractors
  1286. --disable-dependency-tracking
  1287. speeds up one-time build
  1288. --enable-cet enable Intel CET in target libraries [default=auto]
  1289. --disable-symvers disable symbol versioning for libssp
  1290. --enable-shared[=PKGS] build shared libraries [default=yes]
  1291. --enable-static[=PKGS] build static libraries [default=yes]
  1292. --enable-fast-install[=PKGS]
  1293. optimize for fast installation [default=yes]
  1294. --disable-libtool-lock avoid locking (might break parallel builds)
  1295. Optional Packages:
  1296. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1297. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1298. --with-pic try to use only PIC/non-PIC objects [default=use
  1299. both]
  1300. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1301. --with-toolexeclibdir=DIR
  1302. install libraries built with a cross compiler within
  1303. DIR
  1304. --with-gcc-major-version-only
  1305. use only GCC major number in filesystem paths
  1306. Some influential environment variables:
  1307. CC C compiler command
  1308. CFLAGS C compiler flags
  1309. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1310. nonstandard directory <lib dir>
  1311. LIBS libraries to pass to the linker, e.g. -l<library>
  1312. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1313. you have headers in a nonstandard directory <include dir>
  1314. CPP C preprocessor
  1315. Use these variables to override the choices made by `configure' or to help
  1316. it to find libraries and programs with nonstandard names/locations.
  1317. Report bugs to the package provider.
  1318. _ACEOF
  1319. ac_status=$?
  1320. fi
  1321. if test "$ac_init_help" = "recursive"; then
  1322. # If there are subdirs, report their specific --help.
  1323. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1324. test -d "$ac_dir" ||
  1325. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1326. continue
  1327. ac_builddir=.
  1328. case "$ac_dir" in
  1329. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1330. *)
  1331. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1332. # A ".." for each directory in $ac_dir_suffix.
  1333. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1334. case $ac_top_builddir_sub in
  1335. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1336. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1337. esac ;;
  1338. esac
  1339. ac_abs_top_builddir=$ac_pwd
  1340. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1341. # for backward compatibility:
  1342. ac_top_builddir=$ac_top_build_prefix
  1343. case $srcdir in
  1344. .) # We are building in place.
  1345. ac_srcdir=.
  1346. ac_top_srcdir=$ac_top_builddir_sub
  1347. ac_abs_top_srcdir=$ac_pwd ;;
  1348. [\\/]* | ?:[\\/]* ) # Absolute name.
  1349. ac_srcdir=$srcdir$ac_dir_suffix;
  1350. ac_top_srcdir=$srcdir
  1351. ac_abs_top_srcdir=$srcdir ;;
  1352. *) # Relative name.
  1353. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1354. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1355. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1356. esac
  1357. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1358. cd "$ac_dir" || { ac_status=$?; continue; }
  1359. # Check for guested configure.
  1360. if test -f "$ac_srcdir/configure.gnu"; then
  1361. echo &&
  1362. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1363. elif test -f "$ac_srcdir/configure"; then
  1364. echo &&
  1365. $SHELL "$ac_srcdir/configure" --help=recursive
  1366. else
  1367. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1368. fi || ac_status=$?
  1369. cd "$ac_pwd" || { ac_status=$?; break; }
  1370. done
  1371. fi
  1372. test -n "$ac_init_help" && exit $ac_status
  1373. if $ac_init_version; then
  1374. cat <<\_ACEOF
  1375. libssp configure 1.0
  1376. generated by GNU Autoconf 2.69
  1377. Copyright (C) 2012 Free Software Foundation, Inc.
  1378. This configure script is free software; the Free Software Foundation
  1379. gives unlimited permission to copy, distribute and modify it.
  1380. _ACEOF
  1381. exit
  1382. fi
  1383. ## ------------------------ ##
  1384. ## Autoconf initialization. ##
  1385. ## ------------------------ ##
  1386. # ac_fn_c_try_compile LINENO
  1387. # --------------------------
  1388. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1389. ac_fn_c_try_compile ()
  1390. {
  1391. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1392. rm -f conftest.$ac_objext
  1393. if { { ac_try="$ac_compile"
  1394. case "(($ac_try" in
  1395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1396. *) ac_try_echo=$ac_try;;
  1397. esac
  1398. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1399. $as_echo "$ac_try_echo"; } >&5
  1400. (eval "$ac_compile") 2>conftest.err
  1401. ac_status=$?
  1402. if test -s conftest.err; then
  1403. grep -v '^ *+' conftest.err >conftest.er1
  1404. cat conftest.er1 >&5
  1405. mv -f conftest.er1 conftest.err
  1406. fi
  1407. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1408. test $ac_status = 0; } && {
  1409. test -z "$ac_c_werror_flag" ||
  1410. test ! -s conftest.err
  1411. } && test -s conftest.$ac_objext; then :
  1412. ac_retval=0
  1413. else
  1414. $as_echo "$as_me: failed program was:" >&5
  1415. sed 's/^/| /' conftest.$ac_ext >&5
  1416. ac_retval=1
  1417. fi
  1418. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1419. as_fn_set_status $ac_retval
  1420. } # ac_fn_c_try_compile
  1421. # ac_fn_c_try_cpp LINENO
  1422. # ----------------------
  1423. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1424. ac_fn_c_try_cpp ()
  1425. {
  1426. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1427. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1428. case "(($ac_try" in
  1429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1430. *) ac_try_echo=$ac_try;;
  1431. esac
  1432. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1433. $as_echo "$ac_try_echo"; } >&5
  1434. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1435. ac_status=$?
  1436. if test -s conftest.err; then
  1437. grep -v '^ *+' conftest.err >conftest.er1
  1438. cat conftest.er1 >&5
  1439. mv -f conftest.er1 conftest.err
  1440. fi
  1441. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1442. test $ac_status = 0; } > conftest.i && {
  1443. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1444. test ! -s conftest.err
  1445. }; then :
  1446. ac_retval=0
  1447. else
  1448. $as_echo "$as_me: failed program was:" >&5
  1449. sed 's/^/| /' conftest.$ac_ext >&5
  1450. ac_retval=1
  1451. fi
  1452. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1453. as_fn_set_status $ac_retval
  1454. } # ac_fn_c_try_cpp
  1455. # ac_fn_c_try_link LINENO
  1456. # -----------------------
  1457. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1458. ac_fn_c_try_link ()
  1459. {
  1460. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1461. rm -f conftest.$ac_objext conftest$ac_exeext
  1462. if { { ac_try="$ac_link"
  1463. case "(($ac_try" in
  1464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1465. *) ac_try_echo=$ac_try;;
  1466. esac
  1467. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1468. $as_echo "$ac_try_echo"; } >&5
  1469. (eval "$ac_link") 2>conftest.err
  1470. ac_status=$?
  1471. if test -s conftest.err; then
  1472. grep -v '^ *+' conftest.err >conftest.er1
  1473. cat conftest.er1 >&5
  1474. mv -f conftest.er1 conftest.err
  1475. fi
  1476. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1477. test $ac_status = 0; } && {
  1478. test -z "$ac_c_werror_flag" ||
  1479. test ! -s conftest.err
  1480. } && test -s conftest$ac_exeext && {
  1481. test "$cross_compiling" = yes ||
  1482. test -x conftest$ac_exeext
  1483. }; then :
  1484. ac_retval=0
  1485. else
  1486. $as_echo "$as_me: failed program was:" >&5
  1487. sed 's/^/| /' conftest.$ac_ext >&5
  1488. ac_retval=1
  1489. fi
  1490. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1491. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1492. # interfere with the next link command; also delete a directory that is
  1493. # left behind by Apple's compiler. We do this before executing the actions.
  1494. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1495. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1496. as_fn_set_status $ac_retval
  1497. } # ac_fn_c_try_link
  1498. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1499. # -------------------------------------------------------
  1500. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1501. # the include files in INCLUDES and setting the cache variable VAR
  1502. # accordingly.
  1503. ac_fn_c_check_header_mongrel ()
  1504. {
  1505. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1506. if eval \${$3+:} false; then :
  1507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1508. $as_echo_n "checking for $2... " >&6; }
  1509. if eval \${$3+:} false; then :
  1510. $as_echo_n "(cached) " >&6
  1511. fi
  1512. eval ac_res=\$$3
  1513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1514. $as_echo "$ac_res" >&6; }
  1515. else
  1516. # Is the header compilable?
  1517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1518. $as_echo_n "checking $2 usability... " >&6; }
  1519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1520. /* end confdefs.h. */
  1521. $4
  1522. #include <$2>
  1523. _ACEOF
  1524. if ac_fn_c_try_compile "$LINENO"; then :
  1525. ac_header_compiler=yes
  1526. else
  1527. ac_header_compiler=no
  1528. fi
  1529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1531. $as_echo "$ac_header_compiler" >&6; }
  1532. # Is the header present?
  1533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1534. $as_echo_n "checking $2 presence... " >&6; }
  1535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1536. /* end confdefs.h. */
  1537. #include <$2>
  1538. _ACEOF
  1539. if ac_fn_c_try_cpp "$LINENO"; then :
  1540. ac_header_preproc=yes
  1541. else
  1542. ac_header_preproc=no
  1543. fi
  1544. rm -f conftest.err conftest.i conftest.$ac_ext
  1545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1546. $as_echo "$ac_header_preproc" >&6; }
  1547. # So? What about this header?
  1548. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1549. yes:no: )
  1550. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1551. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1552. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1553. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1554. ;;
  1555. no:yes:* )
  1556. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1557. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1558. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1559. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1560. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1561. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1562. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1563. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1564. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1565. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1566. ;;
  1567. esac
  1568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1569. $as_echo_n "checking for $2... " >&6; }
  1570. if eval \${$3+:} false; then :
  1571. $as_echo_n "(cached) " >&6
  1572. else
  1573. eval "$3=\$ac_header_compiler"
  1574. fi
  1575. eval ac_res=\$$3
  1576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1577. $as_echo "$ac_res" >&6; }
  1578. fi
  1579. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1580. } # ac_fn_c_check_header_mongrel
  1581. # ac_fn_c_try_run LINENO
  1582. # ----------------------
  1583. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1584. # that executables *can* be run.
  1585. ac_fn_c_try_run ()
  1586. {
  1587. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1588. if { { ac_try="$ac_link"
  1589. case "(($ac_try" in
  1590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1591. *) ac_try_echo=$ac_try;;
  1592. esac
  1593. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1594. $as_echo "$ac_try_echo"; } >&5
  1595. (eval "$ac_link") 2>&5
  1596. ac_status=$?
  1597. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1598. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1599. { { case "(($ac_try" in
  1600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1601. *) ac_try_echo=$ac_try;;
  1602. esac
  1603. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1604. $as_echo "$ac_try_echo"; } >&5
  1605. (eval "$ac_try") 2>&5
  1606. ac_status=$?
  1607. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1608. test $ac_status = 0; }; }; then :
  1609. ac_retval=0
  1610. else
  1611. $as_echo "$as_me: program exited with status $ac_status" >&5
  1612. $as_echo "$as_me: failed program was:" >&5
  1613. sed 's/^/| /' conftest.$ac_ext >&5
  1614. ac_retval=$ac_status
  1615. fi
  1616. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1617. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1618. as_fn_set_status $ac_retval
  1619. } # ac_fn_c_try_run
  1620. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1621. # -------------------------------------------------------
  1622. # Tests whether HEADER exists and can be compiled using the include files in
  1623. # INCLUDES, setting the cache variable VAR accordingly.
  1624. ac_fn_c_check_header_compile ()
  1625. {
  1626. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1628. $as_echo_n "checking for $2... " >&6; }
  1629. if eval \${$3+:} false; then :
  1630. $as_echo_n "(cached) " >&6
  1631. else
  1632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1633. /* end confdefs.h. */
  1634. $4
  1635. #include <$2>
  1636. _ACEOF
  1637. if ac_fn_c_try_compile "$LINENO"; then :
  1638. eval "$3=yes"
  1639. else
  1640. eval "$3=no"
  1641. fi
  1642. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1643. fi
  1644. eval ac_res=\$$3
  1645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1646. $as_echo "$ac_res" >&6; }
  1647. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1648. } # ac_fn_c_check_header_compile
  1649. # ac_fn_c_check_func LINENO FUNC VAR
  1650. # ----------------------------------
  1651. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1652. ac_fn_c_check_func ()
  1653. {
  1654. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1656. $as_echo_n "checking for $2... " >&6; }
  1657. if eval \${$3+:} false; then :
  1658. $as_echo_n "(cached) " >&6
  1659. else
  1660. if test x$gcc_no_link = xyes; then
  1661. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  1662. fi
  1663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1664. /* end confdefs.h. */
  1665. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1666. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1667. #define $2 innocuous_$2
  1668. /* System header to define __stub macros and hopefully few prototypes,
  1669. which can conflict with char $2 (); below.
  1670. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1671. <limits.h> exists even on freestanding compilers. */
  1672. #ifdef __STDC__
  1673. # include <limits.h>
  1674. #else
  1675. # include <assert.h>
  1676. #endif
  1677. #undef $2
  1678. /* Override any GCC internal prototype to avoid an error.
  1679. Use char because int might match the return type of a GCC
  1680. builtin and then its argument prototype would still apply. */
  1681. #ifdef __cplusplus
  1682. extern "C"
  1683. #endif
  1684. char $2 ();
  1685. /* The GNU C library defines this for functions which it implements
  1686. to always fail with ENOSYS. Some functions are actually named
  1687. something starting with __ and the normal name is an alias. */
  1688. #if defined __stub_$2 || defined __stub___$2
  1689. choke me
  1690. #endif
  1691. int
  1692. main ()
  1693. {
  1694. return $2 ();
  1695. ;
  1696. return 0;
  1697. }
  1698. _ACEOF
  1699. if ac_fn_c_try_link "$LINENO"; then :
  1700. eval "$3=yes"
  1701. else
  1702. eval "$3=no"
  1703. fi
  1704. rm -f core conftest.err conftest.$ac_objext \
  1705. conftest$ac_exeext conftest.$ac_ext
  1706. fi
  1707. eval ac_res=\$$3
  1708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1709. $as_echo "$ac_res" >&6; }
  1710. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1711. } # ac_fn_c_check_func
  1712. cat >config.log <<_ACEOF
  1713. This file contains any messages produced by compilers while
  1714. running configure, to aid debugging if configure makes a mistake.
  1715. It was created by libssp $as_me 1.0, which was
  1716. generated by GNU Autoconf 2.69. Invocation command line was
  1717. $ $0 $@
  1718. _ACEOF
  1719. exec 5>>config.log
  1720. {
  1721. cat <<_ASUNAME
  1722. ## --------- ##
  1723. ## Platform. ##
  1724. ## --------- ##
  1725. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1726. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1727. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1728. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1729. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1730. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1731. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1732. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1733. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1734. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1735. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1736. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1737. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1738. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1739. _ASUNAME
  1740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1741. for as_dir in $PATH
  1742. do
  1743. IFS=$as_save_IFS
  1744. test -z "$as_dir" && as_dir=.
  1745. $as_echo "PATH: $as_dir"
  1746. done
  1747. IFS=$as_save_IFS
  1748. } >&5
  1749. cat >&5 <<_ACEOF
  1750. ## ----------- ##
  1751. ## Core tests. ##
  1752. ## ----------- ##
  1753. _ACEOF
  1754. # Keep a trace of the command line.
  1755. # Strip out --no-create and --no-recursion so they do not pile up.
  1756. # Strip out --silent because we don't want to record it for future runs.
  1757. # Also quote any args containing shell meta-characters.
  1758. # Make two passes to allow for proper duplicate-argument suppression.
  1759. ac_configure_args=
  1760. ac_configure_args0=
  1761. ac_configure_args1=
  1762. ac_must_keep_next=false
  1763. for ac_pass in 1 2
  1764. do
  1765. for ac_arg
  1766. do
  1767. case $ac_arg in
  1768. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1769. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1770. | -silent | --silent | --silen | --sile | --sil)
  1771. continue ;;
  1772. *\'*)
  1773. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1774. esac
  1775. case $ac_pass in
  1776. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1777. 2)
  1778. as_fn_append ac_configure_args1 " '$ac_arg'"
  1779. if test $ac_must_keep_next = true; then
  1780. ac_must_keep_next=false # Got value, back to normal.
  1781. else
  1782. case $ac_arg in
  1783. *=* | --config-cache | -C | -disable-* | --disable-* \
  1784. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1785. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1786. | -with-* | --with-* | -without-* | --without-* | --x)
  1787. case "$ac_configure_args0 " in
  1788. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1789. esac
  1790. ;;
  1791. -* ) ac_must_keep_next=true ;;
  1792. esac
  1793. fi
  1794. as_fn_append ac_configure_args " '$ac_arg'"
  1795. ;;
  1796. esac
  1797. done
  1798. done
  1799. { ac_configure_args0=; unset ac_configure_args0;}
  1800. { ac_configure_args1=; unset ac_configure_args1;}
  1801. # When interrupted or exit'd, cleanup temporary files, and complete
  1802. # config.log. We remove comments because anyway the quotes in there
  1803. # would cause problems or look ugly.
  1804. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1805. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1806. trap 'exit_status=$?
  1807. # Save into config.log some information that might help in debugging.
  1808. {
  1809. echo
  1810. $as_echo "## ---------------- ##
  1811. ## Cache variables. ##
  1812. ## ---------------- ##"
  1813. echo
  1814. # The following way of writing the cache mishandles newlines in values,
  1815. (
  1816. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1817. eval ac_val=\$$ac_var
  1818. case $ac_val in #(
  1819. *${as_nl}*)
  1820. case $ac_var in #(
  1821. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1822. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1823. esac
  1824. case $ac_var in #(
  1825. _ | IFS | as_nl) ;; #(
  1826. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1827. *) { eval $ac_var=; unset $ac_var;} ;;
  1828. esac ;;
  1829. esac
  1830. done
  1831. (set) 2>&1 |
  1832. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1833. *${as_nl}ac_space=\ *)
  1834. sed -n \
  1835. "s/'\''/'\''\\\\'\'''\''/g;
  1836. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1837. ;; #(
  1838. *)
  1839. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1840. ;;
  1841. esac |
  1842. sort
  1843. )
  1844. echo
  1845. $as_echo "## ----------------- ##
  1846. ## Output variables. ##
  1847. ## ----------------- ##"
  1848. echo
  1849. for ac_var in $ac_subst_vars
  1850. do
  1851. eval ac_val=\$$ac_var
  1852. case $ac_val in
  1853. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1854. esac
  1855. $as_echo "$ac_var='\''$ac_val'\''"
  1856. done | sort
  1857. echo
  1858. if test -n "$ac_subst_files"; then
  1859. $as_echo "## ------------------- ##
  1860. ## File substitutions. ##
  1861. ## ------------------- ##"
  1862. echo
  1863. for ac_var in $ac_subst_files
  1864. do
  1865. eval ac_val=\$$ac_var
  1866. case $ac_val in
  1867. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1868. esac
  1869. $as_echo "$ac_var='\''$ac_val'\''"
  1870. done | sort
  1871. echo
  1872. fi
  1873. if test -s confdefs.h; then
  1874. $as_echo "## ----------- ##
  1875. ## confdefs.h. ##
  1876. ## ----------- ##"
  1877. echo
  1878. cat confdefs.h
  1879. echo
  1880. fi
  1881. test "$ac_signal" != 0 &&
  1882. $as_echo "$as_me: caught signal $ac_signal"
  1883. $as_echo "$as_me: exit $exit_status"
  1884. } >&5
  1885. rm -f core *.core core.conftest.* &&
  1886. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1887. exit $exit_status
  1888. ' 0
  1889. for ac_signal in 1 2 13 15; do
  1890. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1891. done
  1892. ac_signal=0
  1893. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1894. rm -f -r conftest* confdefs.h
  1895. $as_echo "/* confdefs.h */" > confdefs.h
  1896. # Predefined preprocessor variables.
  1897. cat >>confdefs.h <<_ACEOF
  1898. #define PACKAGE_NAME "$PACKAGE_NAME"
  1899. _ACEOF
  1900. cat >>confdefs.h <<_ACEOF
  1901. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1902. _ACEOF
  1903. cat >>confdefs.h <<_ACEOF
  1904. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1905. _ACEOF
  1906. cat >>confdefs.h <<_ACEOF
  1907. #define PACKAGE_STRING "$PACKAGE_STRING"
  1908. _ACEOF
  1909. cat >>confdefs.h <<_ACEOF
  1910. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1911. _ACEOF
  1912. cat >>confdefs.h <<_ACEOF
  1913. #define PACKAGE_URL "$PACKAGE_URL"
  1914. _ACEOF
  1915. # Let the site file select an alternate cache file if it wants to.
  1916. # Prefer an explicitly selected file to automatically selected ones.
  1917. ac_site_file1=NONE
  1918. ac_site_file2=NONE
  1919. if test -n "$CONFIG_SITE"; then
  1920. # We do not want a PATH search for config.site.
  1921. case $CONFIG_SITE in #((
  1922. -*) ac_site_file1=./$CONFIG_SITE;;
  1923. */*) ac_site_file1=$CONFIG_SITE;;
  1924. *) ac_site_file1=./$CONFIG_SITE;;
  1925. esac
  1926. elif test "x$prefix" != xNONE; then
  1927. ac_site_file1=$prefix/share/config.site
  1928. ac_site_file2=$prefix/etc/config.site
  1929. else
  1930. ac_site_file1=$ac_default_prefix/share/config.site
  1931. ac_site_file2=$ac_default_prefix/etc/config.site
  1932. fi
  1933. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1934. do
  1935. test "x$ac_site_file" = xNONE && continue
  1936. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1937. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1938. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1939. sed 's/^/| /' "$ac_site_file" >&5
  1940. . "$ac_site_file" \
  1941. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1942. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1943. as_fn_error $? "failed to load site script $ac_site_file
  1944. See \`config.log' for more details" "$LINENO" 5; }
  1945. fi
  1946. done
  1947. if test -r "$cache_file"; then
  1948. # Some versions of bash will fail to source /dev/null (special files
  1949. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1950. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1951. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1952. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1953. case $cache_file in
  1954. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1955. *) . "./$cache_file";;
  1956. esac
  1957. fi
  1958. else
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1960. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1961. >$cache_file
  1962. fi
  1963. # Check that the precious variables saved in the cache have kept the same
  1964. # value.
  1965. ac_cache_corrupted=false
  1966. for ac_var in $ac_precious_vars; do
  1967. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1968. eval ac_new_set=\$ac_env_${ac_var}_set
  1969. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1970. eval ac_new_val=\$ac_env_${ac_var}_value
  1971. case $ac_old_set,$ac_new_set in
  1972. set,)
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1974. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1975. ac_cache_corrupted=: ;;
  1976. ,set)
  1977. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1978. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1979. ac_cache_corrupted=: ;;
  1980. ,);;
  1981. *)
  1982. if test "x$ac_old_val" != "x$ac_new_val"; then
  1983. # differences in whitespace do not lead to failure.
  1984. ac_old_val_w=`echo x $ac_old_val`
  1985. ac_new_val_w=`echo x $ac_new_val`
  1986. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1987. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1988. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1989. ac_cache_corrupted=:
  1990. else
  1991. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1992. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1993. eval $ac_var=\$ac_old_val
  1994. fi
  1995. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1996. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1997. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1998. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1999. fi;;
  2000. esac
  2001. # Pass precious variables to config.status.
  2002. if test "$ac_new_set" = set; then
  2003. case $ac_new_val in
  2004. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2005. *) ac_arg=$ac_var=$ac_new_val ;;
  2006. esac
  2007. case " $ac_configure_args " in
  2008. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2009. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2010. esac
  2011. fi
  2012. done
  2013. if $ac_cache_corrupted; then
  2014. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2015. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2016. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2017. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2018. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2019. fi
  2020. ## -------------------- ##
  2021. ## Main body of script. ##
  2022. ## -------------------- ##
  2023. ac_ext=c
  2024. ac_cpp='$CPP $CPPFLAGS'
  2025. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2026. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2027. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2028. ac_aux_dir=
  2029. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2030. if test -f "$ac_dir/install-sh"; then
  2031. ac_aux_dir=$ac_dir
  2032. ac_install_sh="$ac_aux_dir/install-sh -c"
  2033. break
  2034. elif test -f "$ac_dir/install.sh"; then
  2035. ac_aux_dir=$ac_dir
  2036. ac_install_sh="$ac_aux_dir/install.sh -c"
  2037. break
  2038. elif test -f "$ac_dir/shtool"; then
  2039. ac_aux_dir=$ac_dir
  2040. ac_install_sh="$ac_aux_dir/shtool install -c"
  2041. break
  2042. fi
  2043. done
  2044. if test -z "$ac_aux_dir"; then
  2045. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2046. fi
  2047. # These three variables are undocumented and unsupported,
  2048. # and are intended to be withdrawn in a future Autoconf release.
  2049. # They can cause serious problems if a builder's source tree is in a directory
  2050. # whose full name contains unusual characters.
  2051. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2052. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2053. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2054. # Make sure we can run config.sub.
  2055. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2056. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2058. $as_echo_n "checking build system type... " >&6; }
  2059. if ${ac_cv_build+:} false; then :
  2060. $as_echo_n "(cached) " >&6
  2061. else
  2062. ac_build_alias=$build_alias
  2063. test "x$ac_build_alias" = x &&
  2064. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2065. test "x$ac_build_alias" = x &&
  2066. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2067. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2068. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2069. fi
  2070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2071. $as_echo "$ac_cv_build" >&6; }
  2072. case $ac_cv_build in
  2073. *-*-*) ;;
  2074. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2075. esac
  2076. build=$ac_cv_build
  2077. ac_save_IFS=$IFS; IFS='-'
  2078. set x $ac_cv_build
  2079. shift
  2080. build_cpu=$1
  2081. build_vendor=$2
  2082. shift; shift
  2083. # Remember, the first character of IFS is used to create $*,
  2084. # except with old shells:
  2085. build_os=$*
  2086. IFS=$ac_save_IFS
  2087. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2089. $as_echo_n "checking host system type... " >&6; }
  2090. if ${ac_cv_host+:} false; then :
  2091. $as_echo_n "(cached) " >&6
  2092. else
  2093. if test "x$host_alias" = x; then
  2094. ac_cv_host=$ac_cv_build
  2095. else
  2096. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2097. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2098. fi
  2099. fi
  2100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2101. $as_echo "$ac_cv_host" >&6; }
  2102. case $ac_cv_host in
  2103. *-*-*) ;;
  2104. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2105. esac
  2106. host=$ac_cv_host
  2107. ac_save_IFS=$IFS; IFS='-'
  2108. set x $ac_cv_host
  2109. shift
  2110. host_cpu=$1
  2111. host_vendor=$2
  2112. shift; shift
  2113. # Remember, the first character of IFS is used to create $*,
  2114. # except with old shells:
  2115. host_os=$*
  2116. IFS=$ac_save_IFS
  2117. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2119. $as_echo_n "checking target system type... " >&6; }
  2120. if ${ac_cv_target+:} false; then :
  2121. $as_echo_n "(cached) " >&6
  2122. else
  2123. if test "x$target_alias" = x; then
  2124. ac_cv_target=$ac_cv_host
  2125. else
  2126. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2127. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2128. fi
  2129. fi
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2131. $as_echo "$ac_cv_target" >&6; }
  2132. case $ac_cv_target in
  2133. *-*-*) ;;
  2134. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2135. esac
  2136. target=$ac_cv_target
  2137. ac_save_IFS=$IFS; IFS='-'
  2138. set x $ac_cv_target
  2139. shift
  2140. target_cpu=$1
  2141. target_vendor=$2
  2142. shift; shift
  2143. # Remember, the first character of IFS is used to create $*,
  2144. # except with old shells:
  2145. target_os=$*
  2146. IFS=$ac_save_IFS
  2147. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2148. # The aliases save the names the user supplied, while $host etc.
  2149. # will get canonicalized.
  2150. test -n "$target_alias" &&
  2151. test "$program_prefix$program_suffix$program_transform_name" = \
  2152. NONENONEs,x,x, &&
  2153. program_prefix=${target_alias}-
  2154. case ${build_alias} in
  2155. "") build_noncanonical=${build} ;;
  2156. *) build_noncanonical=${build_alias} ;;
  2157. esac
  2158. case ${host_alias} in
  2159. "") host_noncanonical=${build_noncanonical} ;;
  2160. *) host_noncanonical=${host_alias} ;;
  2161. esac
  2162. case ${target_alias} in
  2163. "") target_noncanonical=${host_noncanonical} ;;
  2164. *) target_noncanonical=${target_alias} ;;
  2165. esac
  2166. am__api_version='1.15'
  2167. # Find a good install program. We prefer a C program (faster),
  2168. # so one script is as good as another. But avoid the broken or
  2169. # incompatible versions:
  2170. # SysV /etc/install, /usr/sbin/install
  2171. # SunOS /usr/etc/install
  2172. # IRIX /sbin/install
  2173. # AIX /bin/install
  2174. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2175. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2176. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2177. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2178. # OS/2's system install, which has a completely different semantic
  2179. # ./install, which can be erroneously created by make from ./install.sh.
  2180. # Reject install programs that cannot install multiple files.
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2182. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2183. if test -z "$INSTALL"; then
  2184. if ${ac_cv_path_install+:} false; then :
  2185. $as_echo_n "(cached) " >&6
  2186. else
  2187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2188. for as_dir in $PATH
  2189. do
  2190. IFS=$as_save_IFS
  2191. test -z "$as_dir" && as_dir=.
  2192. # Account for people who put trailing slashes in PATH elements.
  2193. case $as_dir/ in #((
  2194. ./ | .// | /[cC]/* | \
  2195. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2196. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2197. /usr/ucb/* ) ;;
  2198. *)
  2199. # OSF1 and SCO ODT 3.0 have their own names for install.
  2200. # Don't use installbsd from OSF since it installs stuff as root
  2201. # by default.
  2202. for ac_prog in ginstall scoinst install; do
  2203. for ac_exec_ext in '' $ac_executable_extensions; do
  2204. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2205. if test $ac_prog = install &&
  2206. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2207. # AIX install. It has an incompatible calling convention.
  2208. :
  2209. elif test $ac_prog = install &&
  2210. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2211. # program-specific install script used by HP pwplus--don't use.
  2212. :
  2213. else
  2214. rm -rf conftest.one conftest.two conftest.dir
  2215. echo one > conftest.one
  2216. echo two > conftest.two
  2217. mkdir conftest.dir
  2218. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2219. test -s conftest.one && test -s conftest.two &&
  2220. test -s conftest.dir/conftest.one &&
  2221. test -s conftest.dir/conftest.two
  2222. then
  2223. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2224. break 3
  2225. fi
  2226. fi
  2227. fi
  2228. done
  2229. done
  2230. ;;
  2231. esac
  2232. done
  2233. IFS=$as_save_IFS
  2234. rm -rf conftest.one conftest.two conftest.dir
  2235. fi
  2236. if test "${ac_cv_path_install+set}" = set; then
  2237. INSTALL=$ac_cv_path_install
  2238. else
  2239. # As a last resort, use the slow shell script. Don't cache a
  2240. # value for INSTALL within a source directory, because that will
  2241. # break other packages using the cache if that directory is
  2242. # removed, or if the value is a relative name.
  2243. INSTALL=$ac_install_sh
  2244. fi
  2245. fi
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2247. $as_echo "$INSTALL" >&6; }
  2248. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2249. # It thinks the first close brace ends the variable substitution.
  2250. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2251. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2252. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2254. $as_echo_n "checking whether build environment is sane... " >&6; }
  2255. # Reject unsafe characters in $srcdir or the absolute working directory
  2256. # name. Accept space and tab only in the latter.
  2257. am_lf='
  2258. '
  2259. case `pwd` in
  2260. *[\\\"\#\$\&\'\`$am_lf]*)
  2261. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2262. esac
  2263. case $srcdir in
  2264. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2265. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2266. esac
  2267. # Do 'set' in a subshell so we don't clobber the current shell's
  2268. # arguments. Must try -L first in case configure is actually a
  2269. # symlink; some systems play weird games with the mod time of symlinks
  2270. # (eg FreeBSD returns the mod time of the symlink's containing
  2271. # directory).
  2272. if (
  2273. am_has_slept=no
  2274. for am_try in 1 2; do
  2275. echo "timestamp, slept: $am_has_slept" > conftest.file
  2276. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2277. if test "$*" = "X"; then
  2278. # -L didn't work.
  2279. set X `ls -t "$srcdir/configure" conftest.file`
  2280. fi
  2281. if test "$*" != "X $srcdir/configure conftest.file" \
  2282. && test "$*" != "X conftest.file $srcdir/configure"; then
  2283. # If neither matched, then we have a broken ls. This can happen
  2284. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2285. # broken ls alias from the environment. This has actually
  2286. # happened. Such a system could not be considered "sane".
  2287. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2288. alias in your environment" "$LINENO" 5
  2289. fi
  2290. if test "$2" = conftest.file || test $am_try -eq 2; then
  2291. break
  2292. fi
  2293. # Just in case.
  2294. sleep 1
  2295. am_has_slept=yes
  2296. done
  2297. test "$2" = conftest.file
  2298. )
  2299. then
  2300. # Ok.
  2301. :
  2302. else
  2303. as_fn_error $? "newly created file is older than distributed files!
  2304. Check your system clock" "$LINENO" 5
  2305. fi
  2306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2307. $as_echo "yes" >&6; }
  2308. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2309. # generated files are strictly newer.
  2310. am_sleep_pid=
  2311. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2312. ( sleep 1 ) &
  2313. am_sleep_pid=$!
  2314. fi
  2315. rm -f conftest.file
  2316. test "$program_prefix" != NONE &&
  2317. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2318. # Use a double $ so make ignores it.
  2319. test "$program_suffix" != NONE &&
  2320. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2321. # Double any \ or $.
  2322. # By default was `s,x,x', remove it if useless.
  2323. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2324. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2325. # Expand $ac_aux_dir to an absolute path.
  2326. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2327. if test x"${MISSING+set}" != xset; then
  2328. case $am_aux_dir in
  2329. *\ * | *\ *)
  2330. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2331. *)
  2332. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2333. esac
  2334. fi
  2335. # Use eval to expand $SHELL
  2336. if eval "$MISSING --is-lightweight"; then
  2337. am_missing_run="$MISSING "
  2338. else
  2339. am_missing_run=
  2340. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2341. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2342. fi
  2343. if test x"${install_sh+set}" != xset; then
  2344. case $am_aux_dir in
  2345. *\ * | *\ *)
  2346. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2347. *)
  2348. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2349. esac
  2350. fi
  2351. # Installed binaries are usually stripped using 'strip' when the user
  2352. # run "make install-strip". However 'strip' might not be the right
  2353. # tool to use in cross-compilation environments, therefore Automake
  2354. # will honor the 'STRIP' environment variable to overrule this program.
  2355. if test "$cross_compiling" != no; then
  2356. if test -n "$ac_tool_prefix"; then
  2357. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2358. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2360. $as_echo_n "checking for $ac_word... " >&6; }
  2361. if ${ac_cv_prog_STRIP+:} false; then :
  2362. $as_echo_n "(cached) " >&6
  2363. else
  2364. if test -n "$STRIP"; then
  2365. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2366. else
  2367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2368. for as_dir in $PATH
  2369. do
  2370. IFS=$as_save_IFS
  2371. test -z "$as_dir" && as_dir=.
  2372. for ac_exec_ext in '' $ac_executable_extensions; do
  2373. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2374. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2375. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2376. break 2
  2377. fi
  2378. done
  2379. done
  2380. IFS=$as_save_IFS
  2381. fi
  2382. fi
  2383. STRIP=$ac_cv_prog_STRIP
  2384. if test -n "$STRIP"; then
  2385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2386. $as_echo "$STRIP" >&6; }
  2387. else
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2389. $as_echo "no" >&6; }
  2390. fi
  2391. fi
  2392. if test -z "$ac_cv_prog_STRIP"; then
  2393. ac_ct_STRIP=$STRIP
  2394. # Extract the first word of "strip", so it can be a program name with args.
  2395. set dummy strip; ac_word=$2
  2396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2397. $as_echo_n "checking for $ac_word... " >&6; }
  2398. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2399. $as_echo_n "(cached) " >&6
  2400. else
  2401. if test -n "$ac_ct_STRIP"; then
  2402. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2403. else
  2404. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2405. for as_dir in $PATH
  2406. do
  2407. IFS=$as_save_IFS
  2408. test -z "$as_dir" && as_dir=.
  2409. for ac_exec_ext in '' $ac_executable_extensions; do
  2410. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2411. ac_cv_prog_ac_ct_STRIP="strip"
  2412. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2413. break 2
  2414. fi
  2415. done
  2416. done
  2417. IFS=$as_save_IFS
  2418. fi
  2419. fi
  2420. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2421. if test -n "$ac_ct_STRIP"; then
  2422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2423. $as_echo "$ac_ct_STRIP" >&6; }
  2424. else
  2425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2426. $as_echo "no" >&6; }
  2427. fi
  2428. if test "x$ac_ct_STRIP" = x; then
  2429. STRIP=":"
  2430. else
  2431. case $cross_compiling:$ac_tool_warned in
  2432. yes:)
  2433. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2434. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2435. ac_tool_warned=yes ;;
  2436. esac
  2437. STRIP=$ac_ct_STRIP
  2438. fi
  2439. else
  2440. STRIP="$ac_cv_prog_STRIP"
  2441. fi
  2442. fi
  2443. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2445. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2446. if test -z "$MKDIR_P"; then
  2447. if ${ac_cv_path_mkdir+:} false; then :
  2448. $as_echo_n "(cached) " >&6
  2449. else
  2450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2451. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2452. do
  2453. IFS=$as_save_IFS
  2454. test -z "$as_dir" && as_dir=.
  2455. for ac_prog in mkdir gmkdir; do
  2456. for ac_exec_ext in '' $ac_executable_extensions; do
  2457. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2458. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2459. 'mkdir (GNU coreutils) '* | \
  2460. 'mkdir (coreutils) '* | \
  2461. 'mkdir (fileutils) '4.1*)
  2462. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2463. break 3;;
  2464. esac
  2465. done
  2466. done
  2467. done
  2468. IFS=$as_save_IFS
  2469. fi
  2470. test -d ./--version && rmdir ./--version
  2471. if test "${ac_cv_path_mkdir+set}" = set; then
  2472. MKDIR_P="$ac_cv_path_mkdir -p"
  2473. else
  2474. # As a last resort, use the slow shell script. Don't cache a
  2475. # value for MKDIR_P within a source directory, because that will
  2476. # break other packages using the cache if that directory is
  2477. # removed, or if the value is a relative name.
  2478. MKDIR_P="$ac_install_sh -d"
  2479. fi
  2480. fi
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2482. $as_echo "$MKDIR_P" >&6; }
  2483. for ac_prog in gawk mawk nawk awk
  2484. do
  2485. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2486. set dummy $ac_prog; ac_word=$2
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2488. $as_echo_n "checking for $ac_word... " >&6; }
  2489. if ${ac_cv_prog_AWK+:} false; then :
  2490. $as_echo_n "(cached) " >&6
  2491. else
  2492. if test -n "$AWK"; then
  2493. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2494. else
  2495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2496. for as_dir in $PATH
  2497. do
  2498. IFS=$as_save_IFS
  2499. test -z "$as_dir" && as_dir=.
  2500. for ac_exec_ext in '' $ac_executable_extensions; do
  2501. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2502. ac_cv_prog_AWK="$ac_prog"
  2503. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2504. break 2
  2505. fi
  2506. done
  2507. done
  2508. IFS=$as_save_IFS
  2509. fi
  2510. fi
  2511. AWK=$ac_cv_prog_AWK
  2512. if test -n "$AWK"; then
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2514. $as_echo "$AWK" >&6; }
  2515. else
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2517. $as_echo "no" >&6; }
  2518. fi
  2519. test -n "$AWK" && break
  2520. done
  2521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2522. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2523. set x ${MAKE-make}
  2524. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2525. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2526. $as_echo_n "(cached) " >&6
  2527. else
  2528. cat >conftest.make <<\_ACEOF
  2529. SHELL = /bin/sh
  2530. all:
  2531. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2532. _ACEOF
  2533. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2534. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2535. *@@@%%%=?*=@@@%%%*)
  2536. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2537. *)
  2538. eval ac_cv_prog_make_${ac_make}_set=no;;
  2539. esac
  2540. rm -f conftest.make
  2541. fi
  2542. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2544. $as_echo "yes" >&6; }
  2545. SET_MAKE=
  2546. else
  2547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2548. $as_echo "no" >&6; }
  2549. SET_MAKE="MAKE=${MAKE-make}"
  2550. fi
  2551. rm -rf .tst 2>/dev/null
  2552. mkdir .tst 2>/dev/null
  2553. if test -d .tst; then
  2554. am__leading_dot=.
  2555. else
  2556. am__leading_dot=_
  2557. fi
  2558. rmdir .tst 2>/dev/null
  2559. # Check whether --enable-silent-rules was given.
  2560. if test "${enable_silent_rules+set}" = set; then :
  2561. enableval=$enable_silent_rules;
  2562. fi
  2563. case $enable_silent_rules in # (((
  2564. yes) AM_DEFAULT_VERBOSITY=0;;
  2565. no) AM_DEFAULT_VERBOSITY=1;;
  2566. *) AM_DEFAULT_VERBOSITY=1;;
  2567. esac
  2568. am_make=${MAKE-make}
  2569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2570. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2571. if ${am_cv_make_support_nested_variables+:} false; then :
  2572. $as_echo_n "(cached) " >&6
  2573. else
  2574. if $as_echo 'TRUE=$(BAR$(V))
  2575. BAR0=false
  2576. BAR1=true
  2577. V=1
  2578. am__doit:
  2579. @$(TRUE)
  2580. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2581. am_cv_make_support_nested_variables=yes
  2582. else
  2583. am_cv_make_support_nested_variables=no
  2584. fi
  2585. fi
  2586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2587. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2588. if test $am_cv_make_support_nested_variables = yes; then
  2589. AM_V='$(V)'
  2590. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2591. else
  2592. AM_V=$AM_DEFAULT_VERBOSITY
  2593. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2594. fi
  2595. AM_BACKSLASH='\'
  2596. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2597. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2598. # is not polluted with repeated "-I."
  2599. am__isrc=' -I$(srcdir)'
  2600. # test to see if srcdir already configured
  2601. if test -f $srcdir/config.status; then
  2602. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2603. fi
  2604. fi
  2605. # test whether we have cygpath
  2606. if test -z "$CYGPATH_W"; then
  2607. if (cygpath --version) >/dev/null 2>/dev/null; then
  2608. CYGPATH_W='cygpath -w'
  2609. else
  2610. CYGPATH_W=echo
  2611. fi
  2612. fi
  2613. # Define the identity of the package.
  2614. PACKAGE='libssp'
  2615. VERSION='1.0'
  2616. cat >>confdefs.h <<_ACEOF
  2617. #define PACKAGE "$PACKAGE"
  2618. _ACEOF
  2619. cat >>confdefs.h <<_ACEOF
  2620. #define VERSION "$VERSION"
  2621. _ACEOF
  2622. # Some tools Automake needs.
  2623. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2624. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2625. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2626. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2627. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2628. # For better backward compatibility. To be removed once Automake 1.9.x
  2629. # dies out for good. For more background, see:
  2630. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2631. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2632. mkdir_p='$(MKDIR_P)'
  2633. # We need awk for the "check" target (and possibly the TAP driver). The
  2634. # system "awk" is bad on some platforms.
  2635. # Always define AMTAR for backward compatibility. Yes, it's still used
  2636. # in the wild :-( We should find a proper way to deprecate it ...
  2637. AMTAR='$${TAR-tar}'
  2638. # We'll loop over all known methods to create a tar archive until one works.
  2639. _am_tools='gnutar pax cpio none'
  2640. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2641. # POSIX will say in a future version that running "rm -f" with no argument
  2642. # is OK; and we want to be able to make that assumption in our Makefile
  2643. # recipes. So use an aggressive probe to check that the usage we want is
  2644. # actually supported "in the wild" to an acceptable degree.
  2645. # See automake bug#10828.
  2646. # To make any issue more visible, cause the running configure to be aborted
  2647. # by default if the 'rm' program in use doesn't match our expectations; the
  2648. # user can still override this though.
  2649. if rm -f && rm -fr && rm -rf; then : OK; else
  2650. cat >&2 <<'END'
  2651. Oops!
  2652. Your 'rm' program seems unable to run without file operands specified
  2653. on the command line, even when the '-f' option is present. This is contrary
  2654. to the behaviour of most rm programs out there, and not conforming with
  2655. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2656. Please tell bug-automake@gnu.org about your system, including the value
  2657. of your $PATH and any error possibly output before this message. This
  2658. can help us improve future automake versions.
  2659. END
  2660. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2661. echo 'Configuration will proceed anyway, since you have set the' >&2
  2662. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2663. echo >&2
  2664. else
  2665. cat >&2 <<'END'
  2666. Aborting the configuration process, to ensure you take notice of the issue.
  2667. You can download and install GNU coreutils to get an 'rm' implementation
  2668. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2669. If you want to complete the configuration process using your problematic
  2670. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2671. to "yes", and re-run configure.
  2672. END
  2673. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2674. fi
  2675. fi
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  2677. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  2678. # Check whether --enable-version-specific-runtime-libs was given.
  2679. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  2680. enableval=$enable_version_specific_runtime_libs; case "$enableval" in
  2681. yes) version_specific_libs=yes ;;
  2682. no) version_specific_libs=no ;;
  2683. *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  2684. esac
  2685. else
  2686. version_specific_libs=no
  2687. fi
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
  2689. $as_echo "$version_specific_libs" >&6; }
  2690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2691. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2692. # Check whether --enable-maintainer-mode was given.
  2693. if test "${enable_maintainer_mode+set}" = set; then :
  2694. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2695. else
  2696. USE_MAINTAINER_MODE=no
  2697. fi
  2698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2699. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2700. if test $USE_MAINTAINER_MODE = yes; then
  2701. MAINTAINER_MODE_TRUE=
  2702. MAINTAINER_MODE_FALSE='#'
  2703. else
  2704. MAINTAINER_MODE_TRUE='#'
  2705. MAINTAINER_MODE_FALSE=
  2706. fi
  2707. MAINT=$MAINTAINER_MODE_TRUE
  2708. # Default to --enable-multilib
  2709. # Check whether --enable-multilib was given.
  2710. if test "${enable_multilib+set}" = set; then :
  2711. enableval=$enable_multilib; case "$enableval" in
  2712. yes) multilib=yes ;;
  2713. no) multilib=no ;;
  2714. *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2715. esac
  2716. else
  2717. multilib=yes
  2718. fi
  2719. # We may get other options which we leave undocumented:
  2720. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2721. # See config-ml.in if you want the gory details.
  2722. if test "$srcdir" = "."; then
  2723. if test "$with_target_subdir" != "."; then
  2724. multi_basedir="$srcdir/$with_multisrctop../.."
  2725. else
  2726. multi_basedir="$srcdir/$with_multisrctop.."
  2727. fi
  2728. else
  2729. multi_basedir="$srcdir/.."
  2730. fi
  2731. # Even if the default multilib is not a cross compilation,
  2732. # it may be that some of the other multilibs are.
  2733. if test $cross_compiling = no && test $multilib = yes \
  2734. && test "x${with_multisubdir}" != x ; then
  2735. cross_compiling=maybe
  2736. fi
  2737. ac_config_commands="$ac_config_commands default-1"
  2738. target_alias=${target_alias-$host_alias}
  2739. ac_config_headers="$ac_config_headers config.h"
  2740. ac_ext=c
  2741. ac_cpp='$CPP $CPPFLAGS'
  2742. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2743. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2744. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2745. # The same as in boehm-gc and libstdc++. Have to borrow it from there.
  2746. # We must force CC to /not/ be precious variables; otherwise
  2747. # the wrong, non-multilib-adjusted value will be used in multilibs.
  2748. # As a side effect, we have to subst CFLAGS ourselves.
  2749. ac_ext=c
  2750. ac_cpp='$CPP $CPPFLAGS'
  2751. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2752. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2753. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2754. if test -n "$ac_tool_prefix"; then
  2755. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2756. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2758. $as_echo_n "checking for $ac_word... " >&6; }
  2759. if ${ac_cv_prog_CC+:} false; then :
  2760. $as_echo_n "(cached) " >&6
  2761. else
  2762. if test -n "$CC"; then
  2763. ac_cv_prog_CC="$CC" # Let the user override the test.
  2764. else
  2765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2766. for as_dir in $PATH
  2767. do
  2768. IFS=$as_save_IFS
  2769. test -z "$as_dir" && as_dir=.
  2770. for ac_exec_ext in '' $ac_executable_extensions; do
  2771. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2772. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2773. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2774. break 2
  2775. fi
  2776. done
  2777. done
  2778. IFS=$as_save_IFS
  2779. fi
  2780. fi
  2781. CC=$ac_cv_prog_CC
  2782. if test -n "$CC"; then
  2783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2784. $as_echo "$CC" >&6; }
  2785. else
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2787. $as_echo "no" >&6; }
  2788. fi
  2789. fi
  2790. if test -z "$ac_cv_prog_CC"; then
  2791. ac_ct_CC=$CC
  2792. # Extract the first word of "gcc", so it can be a program name with args.
  2793. set dummy gcc; ac_word=$2
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2795. $as_echo_n "checking for $ac_word... " >&6; }
  2796. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2797. $as_echo_n "(cached) " >&6
  2798. else
  2799. if test -n "$ac_ct_CC"; then
  2800. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2801. else
  2802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2803. for as_dir in $PATH
  2804. do
  2805. IFS=$as_save_IFS
  2806. test -z "$as_dir" && as_dir=.
  2807. for ac_exec_ext in '' $ac_executable_extensions; do
  2808. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2809. ac_cv_prog_ac_ct_CC="gcc"
  2810. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2811. break 2
  2812. fi
  2813. done
  2814. done
  2815. IFS=$as_save_IFS
  2816. fi
  2817. fi
  2818. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2819. if test -n "$ac_ct_CC"; then
  2820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2821. $as_echo "$ac_ct_CC" >&6; }
  2822. else
  2823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2824. $as_echo "no" >&6; }
  2825. fi
  2826. if test "x$ac_ct_CC" = x; then
  2827. CC=""
  2828. else
  2829. case $cross_compiling:$ac_tool_warned in
  2830. yes:)
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2832. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2833. ac_tool_warned=yes ;;
  2834. esac
  2835. CC=$ac_ct_CC
  2836. fi
  2837. else
  2838. CC="$ac_cv_prog_CC"
  2839. fi
  2840. if test -z "$CC"; then
  2841. if test -n "$ac_tool_prefix"; then
  2842. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2843. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2845. $as_echo_n "checking for $ac_word... " >&6; }
  2846. if ${ac_cv_prog_CC+:} false; then :
  2847. $as_echo_n "(cached) " >&6
  2848. else
  2849. if test -n "$CC"; then
  2850. ac_cv_prog_CC="$CC" # Let the user override the test.
  2851. else
  2852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2853. for as_dir in $PATH
  2854. do
  2855. IFS=$as_save_IFS
  2856. test -z "$as_dir" && as_dir=.
  2857. for ac_exec_ext in '' $ac_executable_extensions; do
  2858. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2859. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2860. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2861. break 2
  2862. fi
  2863. done
  2864. done
  2865. IFS=$as_save_IFS
  2866. fi
  2867. fi
  2868. CC=$ac_cv_prog_CC
  2869. if test -n "$CC"; then
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2871. $as_echo "$CC" >&6; }
  2872. else
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2874. $as_echo "no" >&6; }
  2875. fi
  2876. fi
  2877. fi
  2878. if test -z "$CC"; then
  2879. # Extract the first word of "cc", so it can be a program name with args.
  2880. set dummy cc; ac_word=$2
  2881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2882. $as_echo_n "checking for $ac_word... " >&6; }
  2883. if ${ac_cv_prog_CC+:} false; then :
  2884. $as_echo_n "(cached) " >&6
  2885. else
  2886. if test -n "$CC"; then
  2887. ac_cv_prog_CC="$CC" # Let the user override the test.
  2888. else
  2889. ac_prog_rejected=no
  2890. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2891. for as_dir in $PATH
  2892. do
  2893. IFS=$as_save_IFS
  2894. test -z "$as_dir" && as_dir=.
  2895. for ac_exec_ext in '' $ac_executable_extensions; do
  2896. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2897. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2898. ac_prog_rejected=yes
  2899. continue
  2900. fi
  2901. ac_cv_prog_CC="cc"
  2902. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2903. break 2
  2904. fi
  2905. done
  2906. done
  2907. IFS=$as_save_IFS
  2908. if test $ac_prog_rejected = yes; then
  2909. # We found a bogon in the path, so make sure we never use it.
  2910. set dummy $ac_cv_prog_CC
  2911. shift
  2912. if test $# != 0; then
  2913. # We chose a different compiler from the bogus one.
  2914. # However, it has the same basename, so the bogon will be chosen
  2915. # first if we set CC to just the basename; use the full file name.
  2916. shift
  2917. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2918. fi
  2919. fi
  2920. fi
  2921. fi
  2922. CC=$ac_cv_prog_CC
  2923. if test -n "$CC"; then
  2924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2925. $as_echo "$CC" >&6; }
  2926. else
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2928. $as_echo "no" >&6; }
  2929. fi
  2930. fi
  2931. if test -z "$CC"; then
  2932. if test -n "$ac_tool_prefix"; then
  2933. for ac_prog in cl.exe
  2934. do
  2935. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2936. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2938. $as_echo_n "checking for $ac_word... " >&6; }
  2939. if ${ac_cv_prog_CC+:} false; then :
  2940. $as_echo_n "(cached) " >&6
  2941. else
  2942. if test -n "$CC"; then
  2943. ac_cv_prog_CC="$CC" # Let the user override the test.
  2944. else
  2945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2946. for as_dir in $PATH
  2947. do
  2948. IFS=$as_save_IFS
  2949. test -z "$as_dir" && as_dir=.
  2950. for ac_exec_ext in '' $ac_executable_extensions; do
  2951. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2952. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2953. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2954. break 2
  2955. fi
  2956. done
  2957. done
  2958. IFS=$as_save_IFS
  2959. fi
  2960. fi
  2961. CC=$ac_cv_prog_CC
  2962. if test -n "$CC"; then
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2964. $as_echo "$CC" >&6; }
  2965. else
  2966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2967. $as_echo "no" >&6; }
  2968. fi
  2969. test -n "$CC" && break
  2970. done
  2971. fi
  2972. if test -z "$CC"; then
  2973. ac_ct_CC=$CC
  2974. for ac_prog in cl.exe
  2975. do
  2976. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2977. set dummy $ac_prog; ac_word=$2
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2979. $as_echo_n "checking for $ac_word... " >&6; }
  2980. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2981. $as_echo_n "(cached) " >&6
  2982. else
  2983. if test -n "$ac_ct_CC"; then
  2984. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2985. else
  2986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2987. for as_dir in $PATH
  2988. do
  2989. IFS=$as_save_IFS
  2990. test -z "$as_dir" && as_dir=.
  2991. for ac_exec_ext in '' $ac_executable_extensions; do
  2992. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2993. ac_cv_prog_ac_ct_CC="$ac_prog"
  2994. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2995. break 2
  2996. fi
  2997. done
  2998. done
  2999. IFS=$as_save_IFS
  3000. fi
  3001. fi
  3002. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3003. if test -n "$ac_ct_CC"; then
  3004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3005. $as_echo "$ac_ct_CC" >&6; }
  3006. else
  3007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3008. $as_echo "no" >&6; }
  3009. fi
  3010. test -n "$ac_ct_CC" && break
  3011. done
  3012. if test "x$ac_ct_CC" = x; then
  3013. CC=""
  3014. else
  3015. case $cross_compiling:$ac_tool_warned in
  3016. yes:)
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3018. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3019. ac_tool_warned=yes ;;
  3020. esac
  3021. CC=$ac_ct_CC
  3022. fi
  3023. fi
  3024. fi
  3025. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3026. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3027. as_fn_error $? "no acceptable C compiler found in \$PATH
  3028. See \`config.log' for more details" "$LINENO" 5; }
  3029. # Provide some information about the compiler.
  3030. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3031. set X $ac_compile
  3032. ac_compiler=$2
  3033. for ac_option in --version -v -V -qversion; do
  3034. { { ac_try="$ac_compiler $ac_option >&5"
  3035. case "(($ac_try" in
  3036. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3037. *) ac_try_echo=$ac_try;;
  3038. esac
  3039. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3040. $as_echo "$ac_try_echo"; } >&5
  3041. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3042. ac_status=$?
  3043. if test -s conftest.err; then
  3044. sed '10a\
  3045. ... rest of stderr output deleted ...
  3046. 10q' conftest.err >conftest.er1
  3047. cat conftest.er1 >&5
  3048. fi
  3049. rm -f conftest.er1 conftest.err
  3050. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3051. test $ac_status = 0; }
  3052. done
  3053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3054. /* end confdefs.h. */
  3055. #include <stdio.h>
  3056. int
  3057. main ()
  3058. {
  3059. printf ("hello world\n");
  3060. ;
  3061. return 0;
  3062. }
  3063. _ACEOF
  3064. # FIXME: Cleanup?
  3065. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&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. gcc_no_link=no
  3071. else
  3072. gcc_no_link=yes
  3073. fi
  3074. if test x$gcc_no_link = xyes; then
  3075. # Setting cross_compile will disable run tests; it will
  3076. # also disable AC_CHECK_FILE but that's generally
  3077. # correct if we can't link.
  3078. cross_compiling=yes
  3079. EXEEXT=
  3080. else
  3081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3082. /* end confdefs.h. */
  3083. int
  3084. main ()
  3085. {
  3086. ;
  3087. return 0;
  3088. }
  3089. _ACEOF
  3090. ac_clean_files_save=$ac_clean_files
  3091. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3092. # Try to create an executable without -o first, disregard a.out.
  3093. # It will help us diagnose broken compilers, and finding out an intuition
  3094. # of exeext.
  3095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3096. $as_echo_n "checking whether the C compiler works... " >&6; }
  3097. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3098. # The possible output files:
  3099. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3100. ac_rmfiles=
  3101. for ac_file in $ac_files
  3102. do
  3103. case $ac_file in
  3104. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3105. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3106. esac
  3107. done
  3108. rm -f $ac_rmfiles
  3109. if { { ac_try="$ac_link_default"
  3110. case "(($ac_try" in
  3111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3112. *) ac_try_echo=$ac_try;;
  3113. esac
  3114. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3115. $as_echo "$ac_try_echo"; } >&5
  3116. (eval "$ac_link_default") 2>&5
  3117. ac_status=$?
  3118. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3119. test $ac_status = 0; }; then :
  3120. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3121. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3122. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3123. # so that the user can short-circuit this test for compilers unknown to
  3124. # Autoconf.
  3125. for ac_file in $ac_files ''
  3126. do
  3127. test -f "$ac_file" || continue
  3128. case $ac_file in
  3129. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3130. ;;
  3131. [ab].out )
  3132. # We found the default executable, but exeext='' is most
  3133. # certainly right.
  3134. break;;
  3135. *.* )
  3136. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3137. then :; else
  3138. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3139. fi
  3140. # We set ac_cv_exeext here because the later test for it is not
  3141. # safe: cross compilers may not add the suffix if given an `-o'
  3142. # argument, so we may need to know it at that point already.
  3143. # Even if this section looks crufty: it has the advantage of
  3144. # actually working.
  3145. break;;
  3146. * )
  3147. break;;
  3148. esac
  3149. done
  3150. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3151. else
  3152. ac_file=''
  3153. fi
  3154. if test -z "$ac_file"; then :
  3155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3156. $as_echo "no" >&6; }
  3157. $as_echo "$as_me: failed program was:" >&5
  3158. sed 's/^/| /' conftest.$ac_ext >&5
  3159. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3160. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3161. as_fn_error 77 "C compiler cannot create executables
  3162. See \`config.log' for more details" "$LINENO" 5; }
  3163. else
  3164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3165. $as_echo "yes" >&6; }
  3166. fi
  3167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3168. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3170. $as_echo "$ac_file" >&6; }
  3171. ac_exeext=$ac_cv_exeext
  3172. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3173. ac_clean_files=$ac_clean_files_save
  3174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3175. $as_echo_n "checking for suffix of executables... " >&6; }
  3176. if { { ac_try="$ac_link"
  3177. case "(($ac_try" in
  3178. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3179. *) ac_try_echo=$ac_try;;
  3180. esac
  3181. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3182. $as_echo "$ac_try_echo"; } >&5
  3183. (eval "$ac_link") 2>&5
  3184. ac_status=$?
  3185. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3186. test $ac_status = 0; }; then :
  3187. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3188. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3189. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3190. # `rm'.
  3191. for ac_file in conftest.exe conftest conftest.*; do
  3192. test -f "$ac_file" || continue
  3193. case $ac_file in
  3194. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3195. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3196. break;;
  3197. * ) break;;
  3198. esac
  3199. done
  3200. else
  3201. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3202. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3203. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3204. See \`config.log' for more details" "$LINENO" 5; }
  3205. fi
  3206. rm -f conftest conftest$ac_cv_exeext
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3208. $as_echo "$ac_cv_exeext" >&6; }
  3209. rm -f conftest.$ac_ext
  3210. EXEEXT=$ac_cv_exeext
  3211. ac_exeext=$EXEEXT
  3212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3213. /* end confdefs.h. */
  3214. #include <stdio.h>
  3215. int
  3216. main ()
  3217. {
  3218. FILE *f = fopen ("conftest.out", "w");
  3219. return ferror (f) || fclose (f) != 0;
  3220. ;
  3221. return 0;
  3222. }
  3223. _ACEOF
  3224. ac_clean_files="$ac_clean_files conftest.out"
  3225. # Check that the compiler produces executables we can run. If not, either
  3226. # the compiler is broken, or we cross compile.
  3227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3228. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3229. if test "$cross_compiling" != yes; then
  3230. { { ac_try="$ac_link"
  3231. case "(($ac_try" in
  3232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3233. *) ac_try_echo=$ac_try;;
  3234. esac
  3235. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3236. $as_echo "$ac_try_echo"; } >&5
  3237. (eval "$ac_link") 2>&5
  3238. ac_status=$?
  3239. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3240. test $ac_status = 0; }
  3241. if { ac_try='./conftest$ac_cv_exeext'
  3242. { { case "(($ac_try" in
  3243. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3244. *) ac_try_echo=$ac_try;;
  3245. esac
  3246. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3247. $as_echo "$ac_try_echo"; } >&5
  3248. (eval "$ac_try") 2>&5
  3249. ac_status=$?
  3250. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3251. test $ac_status = 0; }; }; then
  3252. cross_compiling=no
  3253. else
  3254. if test "$cross_compiling" = maybe; then
  3255. cross_compiling=yes
  3256. else
  3257. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3258. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3259. as_fn_error $? "cannot run C compiled programs.
  3260. If you meant to cross compile, use \`--host'.
  3261. See \`config.log' for more details" "$LINENO" 5; }
  3262. fi
  3263. fi
  3264. fi
  3265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3266. $as_echo "$cross_compiling" >&6; }
  3267. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3268. ac_clean_files=$ac_clean_files_save
  3269. fi
  3270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3271. $as_echo_n "checking for suffix of object files... " >&6; }
  3272. if ${ac_cv_objext+:} false; then :
  3273. $as_echo_n "(cached) " >&6
  3274. else
  3275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3276. /* end confdefs.h. */
  3277. int
  3278. main ()
  3279. {
  3280. ;
  3281. return 0;
  3282. }
  3283. _ACEOF
  3284. rm -f conftest.o conftest.obj
  3285. if { { ac_try="$ac_compile"
  3286. case "(($ac_try" in
  3287. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3288. *) ac_try_echo=$ac_try;;
  3289. esac
  3290. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3291. $as_echo "$ac_try_echo"; } >&5
  3292. (eval "$ac_compile") 2>&5
  3293. ac_status=$?
  3294. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3295. test $ac_status = 0; }; then :
  3296. for ac_file in conftest.o conftest.obj conftest.*; do
  3297. test -f "$ac_file" || continue;
  3298. case $ac_file in
  3299. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3300. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3301. break;;
  3302. esac
  3303. done
  3304. else
  3305. $as_echo "$as_me: failed program was:" >&5
  3306. sed 's/^/| /' conftest.$ac_ext >&5
  3307. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3308. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3309. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3310. See \`config.log' for more details" "$LINENO" 5; }
  3311. fi
  3312. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3313. fi
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3315. $as_echo "$ac_cv_objext" >&6; }
  3316. OBJEXT=$ac_cv_objext
  3317. ac_objext=$OBJEXT
  3318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3319. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3320. if ${ac_cv_c_compiler_gnu+:} false; then :
  3321. $as_echo_n "(cached) " >&6
  3322. else
  3323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3324. /* end confdefs.h. */
  3325. int
  3326. main ()
  3327. {
  3328. #ifndef __GNUC__
  3329. choke me
  3330. #endif
  3331. ;
  3332. return 0;
  3333. }
  3334. _ACEOF
  3335. if ac_fn_c_try_compile "$LINENO"; then :
  3336. ac_compiler_gnu=yes
  3337. else
  3338. ac_compiler_gnu=no
  3339. fi
  3340. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3341. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3342. fi
  3343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3344. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3345. if test $ac_compiler_gnu = yes; then
  3346. GCC=yes
  3347. else
  3348. GCC=
  3349. fi
  3350. ac_test_CFLAGS=${CFLAGS+set}
  3351. ac_save_CFLAGS=$CFLAGS
  3352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3353. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3354. if ${ac_cv_prog_cc_g+:} false; then :
  3355. $as_echo_n "(cached) " >&6
  3356. else
  3357. ac_save_c_werror_flag=$ac_c_werror_flag
  3358. ac_c_werror_flag=yes
  3359. ac_cv_prog_cc_g=no
  3360. CFLAGS="-g"
  3361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3362. /* end confdefs.h. */
  3363. int
  3364. main ()
  3365. {
  3366. ;
  3367. return 0;
  3368. }
  3369. _ACEOF
  3370. if ac_fn_c_try_compile "$LINENO"; then :
  3371. ac_cv_prog_cc_g=yes
  3372. else
  3373. CFLAGS=""
  3374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3375. /* end confdefs.h. */
  3376. int
  3377. main ()
  3378. {
  3379. ;
  3380. return 0;
  3381. }
  3382. _ACEOF
  3383. if ac_fn_c_try_compile "$LINENO"; then :
  3384. else
  3385. ac_c_werror_flag=$ac_save_c_werror_flag
  3386. CFLAGS="-g"
  3387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3388. /* end confdefs.h. */
  3389. int
  3390. main ()
  3391. {
  3392. ;
  3393. return 0;
  3394. }
  3395. _ACEOF
  3396. if ac_fn_c_try_compile "$LINENO"; then :
  3397. ac_cv_prog_cc_g=yes
  3398. fi
  3399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3400. fi
  3401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3402. fi
  3403. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3404. ac_c_werror_flag=$ac_save_c_werror_flag
  3405. fi
  3406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3407. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3408. if test "$ac_test_CFLAGS" = set; then
  3409. CFLAGS=$ac_save_CFLAGS
  3410. elif test $ac_cv_prog_cc_g = yes; then
  3411. if test "$GCC" = yes; then
  3412. CFLAGS="-g -O2"
  3413. else
  3414. CFLAGS="-g"
  3415. fi
  3416. else
  3417. if test "$GCC" = yes; then
  3418. CFLAGS="-O2"
  3419. else
  3420. CFLAGS=
  3421. fi
  3422. fi
  3423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3424. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3425. if ${ac_cv_prog_cc_c89+:} false; then :
  3426. $as_echo_n "(cached) " >&6
  3427. else
  3428. ac_cv_prog_cc_c89=no
  3429. ac_save_CC=$CC
  3430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3431. /* end confdefs.h. */
  3432. #include <stdarg.h>
  3433. #include <stdio.h>
  3434. struct stat;
  3435. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3436. struct buf { int x; };
  3437. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3438. static char *e (p, i)
  3439. char **p;
  3440. int i;
  3441. {
  3442. return p[i];
  3443. }
  3444. static char *f (char * (*g) (char **, int), char **p, ...)
  3445. {
  3446. char *s;
  3447. va_list v;
  3448. va_start (v,p);
  3449. s = g (p, va_arg (v,int));
  3450. va_end (v);
  3451. return s;
  3452. }
  3453. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3454. function prototypes and stuff, but not '\xHH' hex character constants.
  3455. These don't provoke an error unfortunately, instead are silently treated
  3456. as 'x'. The following induces an error, until -std is added to get
  3457. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3458. array size at least. It's necessary to write '\x00'==0 to get something
  3459. that's true only with -std. */
  3460. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3461. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3462. inside strings and character constants. */
  3463. #define FOO(x) 'x'
  3464. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3465. int test (int i, double x);
  3466. struct s1 {int (*f) (int a);};
  3467. struct s2 {int (*f) (double a);};
  3468. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3469. int argc;
  3470. char **argv;
  3471. int
  3472. main ()
  3473. {
  3474. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3475. ;
  3476. return 0;
  3477. }
  3478. _ACEOF
  3479. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3480. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3481. do
  3482. CC="$ac_save_CC $ac_arg"
  3483. if ac_fn_c_try_compile "$LINENO"; then :
  3484. ac_cv_prog_cc_c89=$ac_arg
  3485. fi
  3486. rm -f core conftest.err conftest.$ac_objext
  3487. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3488. done
  3489. rm -f conftest.$ac_ext
  3490. CC=$ac_save_CC
  3491. fi
  3492. # AC_CACHE_VAL
  3493. case "x$ac_cv_prog_cc_c89" in
  3494. x)
  3495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3496. $as_echo "none needed" >&6; } ;;
  3497. xno)
  3498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3499. $as_echo "unsupported" >&6; } ;;
  3500. *)
  3501. CC="$CC $ac_cv_prog_cc_c89"
  3502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3503. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3504. esac
  3505. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3506. fi
  3507. ac_ext=c
  3508. ac_cpp='$CPP $CPPFLAGS'
  3509. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3510. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3511. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3512. ac_ext=c
  3513. ac_cpp='$CPP $CPPFLAGS'
  3514. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3515. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3516. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3518. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3519. if ${am_cv_prog_cc_c_o+:} false; then :
  3520. $as_echo_n "(cached) " >&6
  3521. else
  3522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3523. /* end confdefs.h. */
  3524. int
  3525. main ()
  3526. {
  3527. ;
  3528. return 0;
  3529. }
  3530. _ACEOF
  3531. # Make sure it works both with $CC and with simple cc.
  3532. # Following AC_PROG_CC_C_O, we do the test twice because some
  3533. # compilers refuse to overwrite an existing .o file with -o,
  3534. # though they will create one.
  3535. am_cv_prog_cc_c_o=yes
  3536. for am_i in 1 2; do
  3537. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3538. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3539. ac_status=$?
  3540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3541. (exit $ac_status); } \
  3542. && test -f conftest2.$ac_objext; then
  3543. : OK
  3544. else
  3545. am_cv_prog_cc_c_o=no
  3546. break
  3547. fi
  3548. done
  3549. rm -f core conftest*
  3550. unset am_i
  3551. fi
  3552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3553. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3554. if test "$am_cv_prog_cc_c_o" != yes; then
  3555. # Losing compiler, so override with the script.
  3556. # FIXME: It is wrong to rewrite CC.
  3557. # But if we don't then we get into trouble of one sort or another.
  3558. # A longer-term fix would be to have automake use am__CC in this case,
  3559. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3560. CC="$am_aux_dir/compile $CC"
  3561. fi
  3562. ac_ext=c
  3563. ac_cpp='$CPP $CPPFLAGS'
  3564. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3565. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3566. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3567. DEPDIR="${am__leading_dot}deps"
  3568. ac_config_commands="$ac_config_commands depfiles"
  3569. am_make=${MAKE-make}
  3570. cat > confinc << 'END'
  3571. am__doit:
  3572. @echo this is the am__doit target
  3573. .PHONY: am__doit
  3574. END
  3575. # If we don't find an include directive, just comment out the code.
  3576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3577. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3578. am__include="#"
  3579. am__quote=
  3580. _am_result=none
  3581. # First try GNU make style include.
  3582. echo "include confinc" > confmf
  3583. # Ignore all kinds of additional output from 'make'.
  3584. case `$am_make -s -f confmf 2> /dev/null` in #(
  3585. *the\ am__doit\ target*)
  3586. am__include=include
  3587. am__quote=
  3588. _am_result=GNU
  3589. ;;
  3590. esac
  3591. # Now try BSD make style include.
  3592. if test "$am__include" = "#"; then
  3593. echo '.include "confinc"' > confmf
  3594. case `$am_make -s -f confmf 2> /dev/null` in #(
  3595. *the\ am__doit\ target*)
  3596. am__include=.include
  3597. am__quote="\""
  3598. _am_result=BSD
  3599. ;;
  3600. esac
  3601. fi
  3602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3603. $as_echo "$_am_result" >&6; }
  3604. rm -f confinc confmf
  3605. # Check whether --enable-dependency-tracking was given.
  3606. if test "${enable_dependency_tracking+set}" = set; then :
  3607. enableval=$enable_dependency_tracking;
  3608. fi
  3609. if test "x$enable_dependency_tracking" != xno; then
  3610. am_depcomp="$ac_aux_dir/depcomp"
  3611. AMDEPBACKSLASH='\'
  3612. am__nodep='_no'
  3613. fi
  3614. if test "x$enable_dependency_tracking" != xno; then
  3615. AMDEP_TRUE=
  3616. AMDEP_FALSE='#'
  3617. else
  3618. AMDEP_TRUE='#'
  3619. AMDEP_FALSE=
  3620. fi
  3621. depcc="$CC" am_compiler_list=
  3622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3623. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3624. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3625. $as_echo_n "(cached) " >&6
  3626. else
  3627. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3628. # We make a subdir and do the tests there. Otherwise we can end up
  3629. # making bogus files that we don't know about and never remove. For
  3630. # instance it was reported that on HP-UX the gcc test will end up
  3631. # making a dummy file named 'D' -- because '-MD' means "put the output
  3632. # in D".
  3633. rm -rf conftest.dir
  3634. mkdir conftest.dir
  3635. # Copy depcomp to subdir because otherwise we won't find it if we're
  3636. # using a relative directory.
  3637. cp "$am_depcomp" conftest.dir
  3638. cd conftest.dir
  3639. # We will build objects and dependencies in a subdirectory because
  3640. # it helps to detect inapplicable dependency modes. For instance
  3641. # both Tru64's cc and ICC support -MD to output dependencies as a
  3642. # side effect of compilation, but ICC will put the dependencies in
  3643. # the current directory while Tru64 will put them in the object
  3644. # directory.
  3645. mkdir sub
  3646. am_cv_CC_dependencies_compiler_type=none
  3647. if test "$am_compiler_list" = ""; then
  3648. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3649. fi
  3650. am__universal=false
  3651. case " $depcc " in #(
  3652. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3653. esac
  3654. for depmode in $am_compiler_list; do
  3655. # Setup a source with many dependencies, because some compilers
  3656. # like to wrap large dependency lists on column 80 (with \), and
  3657. # we should not choose a depcomp mode which is confused by this.
  3658. #
  3659. # We need to recreate these files for each test, as the compiler may
  3660. # overwrite some of them when testing with obscure command lines.
  3661. # This happens at least with the AIX C compiler.
  3662. : > sub/conftest.c
  3663. for i in 1 2 3 4 5 6; do
  3664. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3665. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3666. # Solaris 10 /bin/sh.
  3667. echo '/* dummy */' > sub/conftst$i.h
  3668. done
  3669. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3670. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3671. # mode. It turns out that the SunPro C++ compiler does not properly
  3672. # handle '-M -o', and we need to detect this. Also, some Intel
  3673. # versions had trouble with output in subdirs.
  3674. am__obj=sub/conftest.${OBJEXT-o}
  3675. am__minus_obj="-o $am__obj"
  3676. case $depmode in
  3677. gcc)
  3678. # This depmode causes a compiler race in universal mode.
  3679. test "$am__universal" = false || continue
  3680. ;;
  3681. nosideeffect)
  3682. # After this tag, mechanisms are not by side-effect, so they'll
  3683. # only be used when explicitly requested.
  3684. if test "x$enable_dependency_tracking" = xyes; then
  3685. continue
  3686. else
  3687. break
  3688. fi
  3689. ;;
  3690. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3691. # This compiler won't grok '-c -o', but also, the minuso test has
  3692. # not run yet. These depmodes are late enough in the game, and
  3693. # so weak that their functioning should not be impacted.
  3694. am__obj=conftest.${OBJEXT-o}
  3695. am__minus_obj=
  3696. ;;
  3697. none) break ;;
  3698. esac
  3699. if depmode=$depmode \
  3700. source=sub/conftest.c object=$am__obj \
  3701. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3702. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3703. >/dev/null 2>conftest.err &&
  3704. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3705. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3706. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3707. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3708. # icc doesn't choke on unknown options, it will just issue warnings
  3709. # or remarks (even with -Werror). So we grep stderr for any message
  3710. # that says an option was ignored or not supported.
  3711. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3712. # icc: Command line warning: ignoring option '-M'; no argument required
  3713. # The diagnosis changed in icc 8.0:
  3714. # icc: Command line remark: option '-MP' not supported
  3715. if (grep 'ignoring option' conftest.err ||
  3716. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3717. am_cv_CC_dependencies_compiler_type=$depmode
  3718. break
  3719. fi
  3720. fi
  3721. done
  3722. cd ..
  3723. rm -rf conftest.dir
  3724. else
  3725. am_cv_CC_dependencies_compiler_type=none
  3726. fi
  3727. fi
  3728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3729. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3730. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3731. if
  3732. test "x$enable_dependency_tracking" != xno \
  3733. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3734. am__fastdepCC_TRUE=
  3735. am__fastdepCC_FALSE='#'
  3736. else
  3737. am__fastdepCC_TRUE='#'
  3738. am__fastdepCC_FALSE=
  3739. fi
  3740. if test "x$GCC" != "xyes"; then
  3741. as_fn_error $? "libssp must be built with GCC" "$LINENO" 5
  3742. fi
  3743. ac_ext=c
  3744. ac_cpp='$CPP $CPPFLAGS'
  3745. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3746. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3747. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3749. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3750. # On Suns, sometimes $CPP names a directory.
  3751. if test -n "$CPP" && test -d "$CPP"; then
  3752. CPP=
  3753. fi
  3754. if test -z "$CPP"; then
  3755. if ${ac_cv_prog_CPP+:} false; then :
  3756. $as_echo_n "(cached) " >&6
  3757. else
  3758. # Double quotes because CPP needs to be expanded
  3759. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3760. do
  3761. ac_preproc_ok=false
  3762. for ac_c_preproc_warn_flag in '' yes
  3763. do
  3764. # Use a header file that comes with gcc, so configuring glibc
  3765. # with a fresh cross-compiler works.
  3766. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3767. # <limits.h> exists even on freestanding compilers.
  3768. # On the NeXT, cc -E runs the code through the compiler's parser,
  3769. # not just through cpp. "Syntax error" is here to catch this case.
  3770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3771. /* end confdefs.h. */
  3772. #ifdef __STDC__
  3773. # include <limits.h>
  3774. #else
  3775. # include <assert.h>
  3776. #endif
  3777. Syntax error
  3778. _ACEOF
  3779. if ac_fn_c_try_cpp "$LINENO"; then :
  3780. else
  3781. # Broken: fails on valid input.
  3782. continue
  3783. fi
  3784. rm -f conftest.err conftest.i conftest.$ac_ext
  3785. # OK, works on sane cases. Now check whether nonexistent headers
  3786. # can be detected and how.
  3787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3788. /* end confdefs.h. */
  3789. #include <ac_nonexistent.h>
  3790. _ACEOF
  3791. if ac_fn_c_try_cpp "$LINENO"; then :
  3792. # Broken: success on invalid input.
  3793. continue
  3794. else
  3795. # Passes both tests.
  3796. ac_preproc_ok=:
  3797. break
  3798. fi
  3799. rm -f conftest.err conftest.i conftest.$ac_ext
  3800. done
  3801. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3802. rm -f conftest.i conftest.err conftest.$ac_ext
  3803. if $ac_preproc_ok; then :
  3804. break
  3805. fi
  3806. done
  3807. ac_cv_prog_CPP=$CPP
  3808. fi
  3809. CPP=$ac_cv_prog_CPP
  3810. else
  3811. ac_cv_prog_CPP=$CPP
  3812. fi
  3813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3814. $as_echo "$CPP" >&6; }
  3815. ac_preproc_ok=false
  3816. for ac_c_preproc_warn_flag in '' yes
  3817. do
  3818. # Use a header file that comes with gcc, so configuring glibc
  3819. # with a fresh cross-compiler works.
  3820. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3821. # <limits.h> exists even on freestanding compilers.
  3822. # On the NeXT, cc -E runs the code through the compiler's parser,
  3823. # not just through cpp. "Syntax error" is here to catch this case.
  3824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3825. /* end confdefs.h. */
  3826. #ifdef __STDC__
  3827. # include <limits.h>
  3828. #else
  3829. # include <assert.h>
  3830. #endif
  3831. Syntax error
  3832. _ACEOF
  3833. if ac_fn_c_try_cpp "$LINENO"; then :
  3834. else
  3835. # Broken: fails on valid input.
  3836. continue
  3837. fi
  3838. rm -f conftest.err conftest.i conftest.$ac_ext
  3839. # OK, works on sane cases. Now check whether nonexistent headers
  3840. # can be detected and how.
  3841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3842. /* end confdefs.h. */
  3843. #include <ac_nonexistent.h>
  3844. _ACEOF
  3845. if ac_fn_c_try_cpp "$LINENO"; then :
  3846. # Broken: success on invalid input.
  3847. continue
  3848. else
  3849. # Passes both tests.
  3850. ac_preproc_ok=:
  3851. break
  3852. fi
  3853. rm -f conftest.err conftest.i conftest.$ac_ext
  3854. done
  3855. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3856. rm -f conftest.i conftest.err conftest.$ac_ext
  3857. if $ac_preproc_ok; then :
  3858. else
  3859. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3860. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3861. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3862. See \`config.log' for more details" "$LINENO" 5; }
  3863. fi
  3864. ac_ext=c
  3865. ac_cpp='$CPP $CPPFLAGS'
  3866. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3867. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3868. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fstack-protector works" >&5
  3870. $as_echo_n "checking whether -fstack-protector works... " >&6; }
  3871. save_CFLAGS="$CFLAGS"
  3872. CFLAGS="$CFLAGS -fstack-protector -Werror"
  3873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3874. /* end confdefs.h. */
  3875. void __attribute__((noinline)) bar (char *x)
  3876. {
  3877. __builtin_memset (x, 0, 64);
  3878. }
  3879. int
  3880. main ()
  3881. {
  3882. char buf[64]; bar (buf);
  3883. ;
  3884. return 0;
  3885. }
  3886. _ACEOF
  3887. if ac_fn_c_try_compile "$LINENO"; then :
  3888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3889. $as_echo "yes" >&6; }
  3890. else
  3891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3892. $as_echo "no" >&6; }
  3893. fi
  3894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3895. CFLAGS="$save_CFLAGS"
  3896. # Add CET specific flags if CET is enabled
  3897. # Check whether --enable-cet was given.
  3898. if test "${enable_cet+set}" = set; then :
  3899. enableval=$enable_cet;
  3900. case "$enableval" in
  3901. yes|no|auto) ;;
  3902. *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
  3903. esac
  3904. else
  3905. enable_cet=auto
  3906. fi
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
  3908. $as_echo_n "checking for CET support... " >&6; }
  3909. # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
  3910. case "$host" in
  3911. i[34567]86-*-linux* | x86_64-*-linux*)
  3912. case "$enable_cet" in
  3913. auto)
  3914. # Check if target supports multi-byte NOPs
  3915. # and if assembler supports CET insn.
  3916. cet_save_CFLAGS="$CFLAGS"
  3917. CFLAGS="$CFLAGS -fcf-protection"
  3918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3919. /* end confdefs.h. */
  3920. int
  3921. main ()
  3922. {
  3923. #if !defined(__SSE2__)
  3924. #error target does not support multi-byte NOPs
  3925. #else
  3926. asm ("setssbsy");
  3927. #endif
  3928. ;
  3929. return 0;
  3930. }
  3931. _ACEOF
  3932. if ac_fn_c_try_compile "$LINENO"; then :
  3933. enable_cet=yes
  3934. else
  3935. enable_cet=no
  3936. fi
  3937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3938. CFLAGS="$cet_save_CFLAGS"
  3939. ;;
  3940. yes)
  3941. # Check if assembler supports CET.
  3942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3943. /* end confdefs.h. */
  3944. int
  3945. main ()
  3946. {
  3947. asm ("setssbsy");
  3948. ;
  3949. return 0;
  3950. }
  3951. _ACEOF
  3952. if ac_fn_c_try_compile "$LINENO"; then :
  3953. else
  3954. as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
  3955. fi
  3956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3957. ;;
  3958. esac
  3959. ;;
  3960. *)
  3961. enable_cet=no
  3962. ;;
  3963. esac
  3964. if test x$enable_cet = xyes; then
  3965. CET_FLAGS="-fcf-protection -mshstk"
  3966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3967. $as_echo "yes" >&6; }
  3968. else
  3969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3970. $as_echo "no" >&6; }
  3971. fi
  3972. XCFLAGS="$XCFLAGS $CET_FLAGS"
  3973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
  3974. $as_echo_n "checking whether hidden visibility is supported... " >&6; }
  3975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3976. /* end confdefs.h. */
  3977. void __attribute__((visibility ("hidden"))) bar (void) {}
  3978. int
  3979. main ()
  3980. {
  3981. ;
  3982. return 0;
  3983. }
  3984. _ACEOF
  3985. if ac_fn_c_try_compile "$LINENO"; then :
  3986. ssp_hidden=yes
  3987. else
  3988. ssp_hidden=no
  3989. fi
  3990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_hidden" >&5
  3992. $as_echo "$ssp_hidden" >&6; }
  3993. if test x$ssp_hidden = xyes; then
  3994. $as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
  3995. fi
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
  3997. $as_echo_n "checking whether symbol versioning is supported... " >&6; }
  3998. # Check whether --enable-symvers was given.
  3999. if test "${enable_symvers+set}" = set; then :
  4000. enableval=$enable_symvers; ssp_use_symver=$enableval
  4001. else
  4002. ssp_use_symver=yes
  4003. fi
  4004. if test "x$ssp_use_symver" != xno; then
  4005. if test x$gcc_no_link = xyes; then
  4006. # If we cannot link, we cannot build shared libraries, so do not use
  4007. # symbol versioning.
  4008. ssp_use_symver=no
  4009. else
  4010. save_LDFLAGS="$LDFLAGS"
  4011. LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
  4012. cat > conftest.map <<EOF
  4013. FOO_1.0 {
  4014. global: *foo*; bar; local: *;
  4015. };
  4016. EOF
  4017. if test x$gcc_no_link = xyes; then
  4018. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  4019. fi
  4020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4021. /* end confdefs.h. */
  4022. int foo;
  4023. int
  4024. main ()
  4025. {
  4026. ;
  4027. return 0;
  4028. }
  4029. _ACEOF
  4030. if ac_fn_c_try_link "$LINENO"; then :
  4031. ssp_use_symver=gnu
  4032. else
  4033. ssp_use_symver=no
  4034. fi
  4035. rm -f core conftest.err conftest.$ac_objext \
  4036. conftest$ac_exeext conftest.$ac_ext
  4037. if test x$ssp_use_symver = xno; then
  4038. case "$target_os" in
  4039. solaris2*)
  4040. LDFLAGS="$save_LDFLAGS"
  4041. LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
  4042. # Sun ld cannot handle wildcards and treats all entries as undefined.
  4043. cat > conftest.map <<EOF
  4044. FOO_1.0 {
  4045. global: foo; local: *;
  4046. };
  4047. EOF
  4048. if test x$gcc_no_link = xyes; then
  4049. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  4050. fi
  4051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4052. /* end confdefs.h. */
  4053. int foo;
  4054. int
  4055. main ()
  4056. {
  4057. ;
  4058. return 0;
  4059. }
  4060. _ACEOF
  4061. if ac_fn_c_try_link "$LINENO"; then :
  4062. ssp_use_symver=sun
  4063. else
  4064. ssp_use_symver=no
  4065. fi
  4066. rm -f core conftest.err conftest.$ac_objext \
  4067. conftest$ac_exeext conftest.$ac_ext
  4068. ;;
  4069. esac
  4070. fi
  4071. LDFLAGS="$save_LDFLAGS"
  4072. fi
  4073. fi
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_use_symver" >&5
  4075. $as_echo "$ssp_use_symver" >&6; }
  4076. if test "x$ssp_use_symver" != xno; then
  4077. LIBSSP_USE_SYMVER_TRUE=
  4078. LIBSSP_USE_SYMVER_FALSE='#'
  4079. else
  4080. LIBSSP_USE_SYMVER_TRUE='#'
  4081. LIBSSP_USE_SYMVER_FALSE=
  4082. fi
  4083. if test "x$ssp_use_symver" = xgnu; then
  4084. LIBSSP_USE_SYMVER_GNU_TRUE=
  4085. LIBSSP_USE_SYMVER_GNU_FALSE='#'
  4086. else
  4087. LIBSSP_USE_SYMVER_GNU_TRUE='#'
  4088. LIBSSP_USE_SYMVER_GNU_FALSE=
  4089. fi
  4090. if test "x$ssp_use_symver" = xsun; then
  4091. LIBSSP_USE_SYMVER_SUN_TRUE=
  4092. LIBSSP_USE_SYMVER_SUN_FALSE='#'
  4093. else
  4094. LIBSSP_USE_SYMVER_SUN_TRUE='#'
  4095. LIBSSP_USE_SYMVER_SUN_FALSE=
  4096. fi
  4097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4098. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4099. if ${ac_cv_path_GREP+:} false; then :
  4100. $as_echo_n "(cached) " >&6
  4101. else
  4102. if test -z "$GREP"; then
  4103. ac_path_GREP_found=false
  4104. # Loop through the user's path and test for each of PROGNAME-LIST
  4105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4106. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4107. do
  4108. IFS=$as_save_IFS
  4109. test -z "$as_dir" && as_dir=.
  4110. for ac_prog in grep ggrep; do
  4111. for ac_exec_ext in '' $ac_executable_extensions; do
  4112. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4113. as_fn_executable_p "$ac_path_GREP" || continue
  4114. # Check for GNU ac_path_GREP and select it if it is found.
  4115. # Check for GNU $ac_path_GREP
  4116. case `"$ac_path_GREP" --version 2>&1` in
  4117. *GNU*)
  4118. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4119. *)
  4120. ac_count=0
  4121. $as_echo_n 0123456789 >"conftest.in"
  4122. while :
  4123. do
  4124. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4125. mv "conftest.tmp" "conftest.in"
  4126. cp "conftest.in" "conftest.nl"
  4127. $as_echo 'GREP' >> "conftest.nl"
  4128. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4129. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4130. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4131. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4132. # Best one so far, save it but keep looking for a better one
  4133. ac_cv_path_GREP="$ac_path_GREP"
  4134. ac_path_GREP_max=$ac_count
  4135. fi
  4136. # 10*(2^10) chars as input seems more than enough
  4137. test $ac_count -gt 10 && break
  4138. done
  4139. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4140. esac
  4141. $ac_path_GREP_found && break 3
  4142. done
  4143. done
  4144. done
  4145. IFS=$as_save_IFS
  4146. if test -z "$ac_cv_path_GREP"; then
  4147. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4148. fi
  4149. else
  4150. ac_cv_path_GREP=$GREP
  4151. fi
  4152. fi
  4153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4154. $as_echo "$ac_cv_path_GREP" >&6; }
  4155. GREP="$ac_cv_path_GREP"
  4156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4157. $as_echo_n "checking for egrep... " >&6; }
  4158. if ${ac_cv_path_EGREP+:} false; then :
  4159. $as_echo_n "(cached) " >&6
  4160. else
  4161. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4162. then ac_cv_path_EGREP="$GREP -E"
  4163. else
  4164. if test -z "$EGREP"; then
  4165. ac_path_EGREP_found=false
  4166. # Loop through the user's path and test for each of PROGNAME-LIST
  4167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4168. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4169. do
  4170. IFS=$as_save_IFS
  4171. test -z "$as_dir" && as_dir=.
  4172. for ac_prog in egrep; do
  4173. for ac_exec_ext in '' $ac_executable_extensions; do
  4174. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4175. as_fn_executable_p "$ac_path_EGREP" || continue
  4176. # Check for GNU ac_path_EGREP and select it if it is found.
  4177. # Check for GNU $ac_path_EGREP
  4178. case `"$ac_path_EGREP" --version 2>&1` in
  4179. *GNU*)
  4180. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4181. *)
  4182. ac_count=0
  4183. $as_echo_n 0123456789 >"conftest.in"
  4184. while :
  4185. do
  4186. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4187. mv "conftest.tmp" "conftest.in"
  4188. cp "conftest.in" "conftest.nl"
  4189. $as_echo 'EGREP' >> "conftest.nl"
  4190. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4191. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4192. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4193. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4194. # Best one so far, save it but keep looking for a better one
  4195. ac_cv_path_EGREP="$ac_path_EGREP"
  4196. ac_path_EGREP_max=$ac_count
  4197. fi
  4198. # 10*(2^10) chars as input seems more than enough
  4199. test $ac_count -gt 10 && break
  4200. done
  4201. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4202. esac
  4203. $ac_path_EGREP_found && break 3
  4204. done
  4205. done
  4206. done
  4207. IFS=$as_save_IFS
  4208. if test -z "$ac_cv_path_EGREP"; then
  4209. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4210. fi
  4211. else
  4212. ac_cv_path_EGREP=$EGREP
  4213. fi
  4214. fi
  4215. fi
  4216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4217. $as_echo "$ac_cv_path_EGREP" >&6; }
  4218. EGREP="$ac_cv_path_EGREP"
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4220. $as_echo_n "checking for ANSI C header files... " >&6; }
  4221. if ${ac_cv_header_stdc+:} false; then :
  4222. $as_echo_n "(cached) " >&6
  4223. else
  4224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4225. /* end confdefs.h. */
  4226. #include <stdlib.h>
  4227. #include <stdarg.h>
  4228. #include <string.h>
  4229. #include <float.h>
  4230. int
  4231. main ()
  4232. {
  4233. ;
  4234. return 0;
  4235. }
  4236. _ACEOF
  4237. if ac_fn_c_try_compile "$LINENO"; then :
  4238. ac_cv_header_stdc=yes
  4239. else
  4240. ac_cv_header_stdc=no
  4241. fi
  4242. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4243. if test $ac_cv_header_stdc = yes; then
  4244. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4246. /* end confdefs.h. */
  4247. #include <string.h>
  4248. _ACEOF
  4249. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4250. $EGREP "memchr" >/dev/null 2>&1; then :
  4251. else
  4252. ac_cv_header_stdc=no
  4253. fi
  4254. rm -f conftest*
  4255. fi
  4256. if test $ac_cv_header_stdc = yes; then
  4257. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4259. /* end confdefs.h. */
  4260. #include <stdlib.h>
  4261. _ACEOF
  4262. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4263. $EGREP "free" >/dev/null 2>&1; then :
  4264. else
  4265. ac_cv_header_stdc=no
  4266. fi
  4267. rm -f conftest*
  4268. fi
  4269. if test $ac_cv_header_stdc = yes; then
  4270. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4271. if test "$cross_compiling" = yes; then :
  4272. :
  4273. else
  4274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4275. /* end confdefs.h. */
  4276. #include <ctype.h>
  4277. #include <stdlib.h>
  4278. #if ((' ' & 0x0FF) == 0x020)
  4279. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4280. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4281. #else
  4282. # define ISLOWER(c) \
  4283. (('a' <= (c) && (c) <= 'i') \
  4284. || ('j' <= (c) && (c) <= 'r') \
  4285. || ('s' <= (c) && (c) <= 'z'))
  4286. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4287. #endif
  4288. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4289. int
  4290. main ()
  4291. {
  4292. int i;
  4293. for (i = 0; i < 256; i++)
  4294. if (XOR (islower (i), ISLOWER (i))
  4295. || toupper (i) != TOUPPER (i))
  4296. return 2;
  4297. return 0;
  4298. }
  4299. _ACEOF
  4300. if ac_fn_c_try_run "$LINENO"; then :
  4301. else
  4302. ac_cv_header_stdc=no
  4303. fi
  4304. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4305. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4306. fi
  4307. fi
  4308. fi
  4309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4310. $as_echo "$ac_cv_header_stdc" >&6; }
  4311. if test $ac_cv_header_stdc = yes; then
  4312. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4313. fi
  4314. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4315. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4316. inttypes.h stdint.h unistd.h
  4317. do :
  4318. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4319. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4320. "
  4321. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4322. cat >>confdefs.h <<_ACEOF
  4323. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4324. _ACEOF
  4325. fi
  4326. done
  4327. for ac_header in alloca.h malloc.h paths.h syslog.h string.h unistd.h fcntl.h stdio.h limits.h
  4328. do :
  4329. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4330. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4331. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4332. cat >>confdefs.h <<_ACEOF
  4333. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4334. _ACEOF
  4335. fi
  4336. done
  4337. if test x$gcc_no_link = xyes; then
  4338. # Presume the ISO C functions are available; add target-specific
  4339. # configuration here if required.
  4340. $as_echo "#define HAVE_STRNCPY 1" >>confdefs.h
  4341. $as_echo "#define HAVE_STRNCAT 1" >>confdefs.h
  4342. else
  4343. for ac_func in memmove mempcpy strncpy strncat
  4344. do :
  4345. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4346. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4347. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4348. cat >>confdefs.h <<_ACEOF
  4349. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4350. _ACEOF
  4351. fi
  4352. done
  4353. fi
  4354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is usable" >&5
  4355. $as_echo_n "checking whether vsnprintf is usable... " >&6; }
  4356. if test "$cross_compiling" = yes; then :
  4357. ssp_have_usable_vsnprintf=undef
  4358. else
  4359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4360. /* end confdefs.h. */
  4361. #include <stdarg.h>
  4362. #include <string.h>
  4363. #include <stdio.h>
  4364. int foo (char *buf, size_t n, const char *fmt, ...)
  4365. {
  4366. va_list ap;
  4367. int ret;
  4368. va_start (ap, fmt);
  4369. ret = vsnprintf (buf, n, fmt, ap);
  4370. va_end (ap);
  4371. return ret;
  4372. }
  4373. int
  4374. main ()
  4375. {
  4376. char buf[8]; memset (buf, 'A', sizeof (buf));
  4377. if (foo (buf, 4, ".%s.", "CDEFG") != 7)
  4378. return 1;
  4379. return memcmp (buf, ".CD\0AAAA", sizeof (buf)) != 0;
  4380. ;
  4381. return 0;
  4382. }
  4383. _ACEOF
  4384. if ac_fn_c_try_run "$LINENO"; then :
  4385. ssp_have_usable_vsnprintf=define
  4386. else
  4387. ssp_have_usable_vsnprintf=undef
  4388. fi
  4389. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4390. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4391. fi
  4392. if test "x$ssp_have_usable_vsnprintf" = xdefine; then
  4393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4394. $as_echo "yes" >&6; }
  4395. $as_echo "#define HAVE_USABLE_VSNPRINTF 1" >>confdefs.h
  4396. else
  4397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4398. $as_echo "no" >&6; }
  4399. fi
  4400. case `pwd` in
  4401. *\ * | *\ *)
  4402. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4403. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4404. esac
  4405. macro_version='2.2.7a'
  4406. macro_revision='1.3134'
  4407. ltmain="$ac_aux_dir/ltmain.sh"
  4408. # Backslashify metacharacters that are still active within
  4409. # double-quoted strings.
  4410. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4411. # Same as above, but do not quote variable references.
  4412. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4413. # Sed substitution to delay expansion of an escaped shell variable in a
  4414. # double_quote_subst'ed string.
  4415. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4416. # Sed substitution to delay expansion of an escaped single quote.
  4417. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4418. # Sed substitution to avoid accidental globbing in evaled expressions
  4419. no_glob_subst='s/\*/\\\*/g'
  4420. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4421. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4422. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4424. $as_echo_n "checking how to print strings... " >&6; }
  4425. # Test print first, because it will be a builtin if present.
  4426. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4427. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4428. ECHO='print -r --'
  4429. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4430. ECHO='printf %s\n'
  4431. else
  4432. # Use this function as a fallback that always works.
  4433. func_fallback_echo ()
  4434. {
  4435. eval 'cat <<_LTECHO_EOF
  4436. $1
  4437. _LTECHO_EOF'
  4438. }
  4439. ECHO='func_fallback_echo'
  4440. fi
  4441. # func_echo_all arg...
  4442. # Invoke $ECHO with all args, space-separated.
  4443. func_echo_all ()
  4444. {
  4445. $ECHO ""
  4446. }
  4447. case "$ECHO" in
  4448. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4449. $as_echo "printf" >&6; } ;;
  4450. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4451. $as_echo "print -r" >&6; } ;;
  4452. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4453. $as_echo "cat" >&6; } ;;
  4454. esac
  4455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4456. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4457. if ${ac_cv_path_SED+:} false; then :
  4458. $as_echo_n "(cached) " >&6
  4459. else
  4460. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4461. for ac_i in 1 2 3 4 5 6 7; do
  4462. ac_script="$ac_script$as_nl$ac_script"
  4463. done
  4464. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4465. { ac_script=; unset ac_script;}
  4466. if test -z "$SED"; then
  4467. ac_path_SED_found=false
  4468. # Loop through the user's path and test for each of PROGNAME-LIST
  4469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4470. for as_dir in $PATH
  4471. do
  4472. IFS=$as_save_IFS
  4473. test -z "$as_dir" && as_dir=.
  4474. for ac_prog in sed gsed; do
  4475. for ac_exec_ext in '' $ac_executable_extensions; do
  4476. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4477. as_fn_executable_p "$ac_path_SED" || continue
  4478. # Check for GNU ac_path_SED and select it if it is found.
  4479. # Check for GNU $ac_path_SED
  4480. case `"$ac_path_SED" --version 2>&1` in
  4481. *GNU*)
  4482. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4483. *)
  4484. ac_count=0
  4485. $as_echo_n 0123456789 >"conftest.in"
  4486. while :
  4487. do
  4488. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4489. mv "conftest.tmp" "conftest.in"
  4490. cp "conftest.in" "conftest.nl"
  4491. $as_echo '' >> "conftest.nl"
  4492. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4493. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4494. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4495. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4496. # Best one so far, save it but keep looking for a better one
  4497. ac_cv_path_SED="$ac_path_SED"
  4498. ac_path_SED_max=$ac_count
  4499. fi
  4500. # 10*(2^10) chars as input seems more than enough
  4501. test $ac_count -gt 10 && break
  4502. done
  4503. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4504. esac
  4505. $ac_path_SED_found && break 3
  4506. done
  4507. done
  4508. done
  4509. IFS=$as_save_IFS
  4510. if test -z "$ac_cv_path_SED"; then
  4511. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4512. fi
  4513. else
  4514. ac_cv_path_SED=$SED
  4515. fi
  4516. fi
  4517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4518. $as_echo "$ac_cv_path_SED" >&6; }
  4519. SED="$ac_cv_path_SED"
  4520. rm -f conftest.sed
  4521. test -z "$SED" && SED=sed
  4522. Xsed="$SED -e 1s/^X//"
  4523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4524. $as_echo_n "checking for fgrep... " >&6; }
  4525. if ${ac_cv_path_FGREP+:} false; then :
  4526. $as_echo_n "(cached) " >&6
  4527. else
  4528. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4529. then ac_cv_path_FGREP="$GREP -F"
  4530. else
  4531. if test -z "$FGREP"; then
  4532. ac_path_FGREP_found=false
  4533. # Loop through the user's path and test for each of PROGNAME-LIST
  4534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4535. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4536. do
  4537. IFS=$as_save_IFS
  4538. test -z "$as_dir" && as_dir=.
  4539. for ac_prog in fgrep; do
  4540. for ac_exec_ext in '' $ac_executable_extensions; do
  4541. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4542. as_fn_executable_p "$ac_path_FGREP" || continue
  4543. # Check for GNU ac_path_FGREP and select it if it is found.
  4544. # Check for GNU $ac_path_FGREP
  4545. case `"$ac_path_FGREP" --version 2>&1` in
  4546. *GNU*)
  4547. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4548. *)
  4549. ac_count=0
  4550. $as_echo_n 0123456789 >"conftest.in"
  4551. while :
  4552. do
  4553. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4554. mv "conftest.tmp" "conftest.in"
  4555. cp "conftest.in" "conftest.nl"
  4556. $as_echo 'FGREP' >> "conftest.nl"
  4557. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4558. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4559. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4560. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4561. # Best one so far, save it but keep looking for a better one
  4562. ac_cv_path_FGREP="$ac_path_FGREP"
  4563. ac_path_FGREP_max=$ac_count
  4564. fi
  4565. # 10*(2^10) chars as input seems more than enough
  4566. test $ac_count -gt 10 && break
  4567. done
  4568. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4569. esac
  4570. $ac_path_FGREP_found && break 3
  4571. done
  4572. done
  4573. done
  4574. IFS=$as_save_IFS
  4575. if test -z "$ac_cv_path_FGREP"; then
  4576. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4577. fi
  4578. else
  4579. ac_cv_path_FGREP=$FGREP
  4580. fi
  4581. fi
  4582. fi
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4584. $as_echo "$ac_cv_path_FGREP" >&6; }
  4585. FGREP="$ac_cv_path_FGREP"
  4586. test -z "$GREP" && GREP=grep
  4587. # Check whether --with-gnu-ld was given.
  4588. if test "${with_gnu_ld+set}" = set; then :
  4589. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4590. else
  4591. with_gnu_ld=no
  4592. fi
  4593. ac_prog=ld
  4594. if test "$GCC" = yes; then
  4595. # Check if gcc -print-prog-name=ld gives a path.
  4596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4597. $as_echo_n "checking for ld used by $CC... " >&6; }
  4598. case $host in
  4599. *-*-mingw*)
  4600. # gcc leaves a trailing carriage return which upsets mingw
  4601. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4602. *)
  4603. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4604. esac
  4605. case $ac_prog in
  4606. # Accept absolute paths.
  4607. [\\/]* | ?:[\\/]*)
  4608. re_direlt='/[^/][^/]*/\.\./'
  4609. # Canonicalize the pathname of ld
  4610. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4611. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4612. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4613. done
  4614. test -z "$LD" && LD="$ac_prog"
  4615. ;;
  4616. "")
  4617. # If it fails, then pretend we aren't using GCC.
  4618. ac_prog=ld
  4619. ;;
  4620. *)
  4621. # If it is relative, then search for the first ld in PATH.
  4622. with_gnu_ld=unknown
  4623. ;;
  4624. esac
  4625. elif test "$with_gnu_ld" = yes; then
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4627. $as_echo_n "checking for GNU ld... " >&6; }
  4628. else
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4630. $as_echo_n "checking for non-GNU ld... " >&6; }
  4631. fi
  4632. if ${lt_cv_path_LD+:} false; then :
  4633. $as_echo_n "(cached) " >&6
  4634. else
  4635. if test -z "$LD"; then
  4636. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4637. for ac_dir in $PATH; do
  4638. IFS="$lt_save_ifs"
  4639. test -z "$ac_dir" && ac_dir=.
  4640. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4641. lt_cv_path_LD="$ac_dir/$ac_prog"
  4642. # Check to see if the program is GNU ld. I'd rather use --version,
  4643. # but apparently some variants of GNU ld only accept -v.
  4644. # Break only if it was the GNU/non-GNU ld that we prefer.
  4645. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4646. *GNU* | *'with BFD'*)
  4647. test "$with_gnu_ld" != no && break
  4648. ;;
  4649. *)
  4650. test "$with_gnu_ld" != yes && break
  4651. ;;
  4652. esac
  4653. fi
  4654. done
  4655. IFS="$lt_save_ifs"
  4656. else
  4657. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4658. fi
  4659. fi
  4660. LD="$lt_cv_path_LD"
  4661. if test -n "$LD"; then
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4663. $as_echo "$LD" >&6; }
  4664. else
  4665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4666. $as_echo "no" >&6; }
  4667. fi
  4668. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4670. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4671. if ${lt_cv_prog_gnu_ld+:} false; then :
  4672. $as_echo_n "(cached) " >&6
  4673. else
  4674. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4675. case `$LD -v 2>&1 </dev/null` in
  4676. *GNU* | *'with BFD'*)
  4677. lt_cv_prog_gnu_ld=yes
  4678. ;;
  4679. *)
  4680. lt_cv_prog_gnu_ld=no
  4681. ;;
  4682. esac
  4683. fi
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4685. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4686. with_gnu_ld=$lt_cv_prog_gnu_ld
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4688. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4689. if ${lt_cv_path_NM+:} false; then :
  4690. $as_echo_n "(cached) " >&6
  4691. else
  4692. if test -n "$NM"; then
  4693. # Let the user override the test.
  4694. lt_cv_path_NM="$NM"
  4695. else
  4696. lt_nm_to_check="${ac_tool_prefix}nm"
  4697. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4698. lt_nm_to_check="$lt_nm_to_check nm"
  4699. fi
  4700. for lt_tmp_nm in $lt_nm_to_check; do
  4701. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4702. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4703. IFS="$lt_save_ifs"
  4704. test -z "$ac_dir" && ac_dir=.
  4705. tmp_nm="$ac_dir/$lt_tmp_nm"
  4706. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4707. # Check to see if the nm accepts a BSD-compat flag.
  4708. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4709. # nm: unknown option "B" ignored
  4710. # Tru64's nm complains that /dev/null is an invalid object file
  4711. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4712. */dev/null* | *'Invalid file or object type'*)
  4713. lt_cv_path_NM="$tmp_nm -B"
  4714. break
  4715. ;;
  4716. *)
  4717. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4718. */dev/null*)
  4719. lt_cv_path_NM="$tmp_nm -p"
  4720. break
  4721. ;;
  4722. *)
  4723. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4724. continue # so that we can try to find one that supports BSD flags
  4725. ;;
  4726. esac
  4727. ;;
  4728. esac
  4729. fi
  4730. done
  4731. IFS="$lt_save_ifs"
  4732. done
  4733. : ${lt_cv_path_NM=no}
  4734. fi
  4735. fi
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4737. $as_echo "$lt_cv_path_NM" >&6; }
  4738. if test "$lt_cv_path_NM" != "no"; then
  4739. NM="$lt_cv_path_NM"
  4740. else
  4741. # Didn't find any BSD compatible name lister, look for dumpbin.
  4742. if test -n "$DUMPBIN"; then :
  4743. # Let the user override the test.
  4744. else
  4745. if test -n "$ac_tool_prefix"; then
  4746. for ac_prog in dumpbin "link -dump"
  4747. do
  4748. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4749. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4751. $as_echo_n "checking for $ac_word... " >&6; }
  4752. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4753. $as_echo_n "(cached) " >&6
  4754. else
  4755. if test -n "$DUMPBIN"; then
  4756. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4757. else
  4758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4759. for as_dir in $PATH
  4760. do
  4761. IFS=$as_save_IFS
  4762. test -z "$as_dir" && as_dir=.
  4763. for ac_exec_ext in '' $ac_executable_extensions; do
  4764. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4765. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4766. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4767. break 2
  4768. fi
  4769. done
  4770. done
  4771. IFS=$as_save_IFS
  4772. fi
  4773. fi
  4774. DUMPBIN=$ac_cv_prog_DUMPBIN
  4775. if test -n "$DUMPBIN"; then
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4777. $as_echo "$DUMPBIN" >&6; }
  4778. else
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4780. $as_echo "no" >&6; }
  4781. fi
  4782. test -n "$DUMPBIN" && break
  4783. done
  4784. fi
  4785. if test -z "$DUMPBIN"; then
  4786. ac_ct_DUMPBIN=$DUMPBIN
  4787. for ac_prog in dumpbin "link -dump"
  4788. do
  4789. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4790. set dummy $ac_prog; ac_word=$2
  4791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4792. $as_echo_n "checking for $ac_word... " >&6; }
  4793. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4794. $as_echo_n "(cached) " >&6
  4795. else
  4796. if test -n "$ac_ct_DUMPBIN"; then
  4797. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4798. else
  4799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4800. for as_dir in $PATH
  4801. do
  4802. IFS=$as_save_IFS
  4803. test -z "$as_dir" && as_dir=.
  4804. for ac_exec_ext in '' $ac_executable_extensions; do
  4805. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4806. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4807. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4808. break 2
  4809. fi
  4810. done
  4811. done
  4812. IFS=$as_save_IFS
  4813. fi
  4814. fi
  4815. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4816. if test -n "$ac_ct_DUMPBIN"; then
  4817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4818. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4819. else
  4820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4821. $as_echo "no" >&6; }
  4822. fi
  4823. test -n "$ac_ct_DUMPBIN" && break
  4824. done
  4825. if test "x$ac_ct_DUMPBIN" = x; then
  4826. DUMPBIN=":"
  4827. else
  4828. case $cross_compiling:$ac_tool_warned in
  4829. yes:)
  4830. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4831. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4832. ac_tool_warned=yes ;;
  4833. esac
  4834. DUMPBIN=$ac_ct_DUMPBIN
  4835. fi
  4836. fi
  4837. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4838. *COFF*)
  4839. DUMPBIN="$DUMPBIN -symbols"
  4840. ;;
  4841. *)
  4842. DUMPBIN=:
  4843. ;;
  4844. esac
  4845. fi
  4846. if test "$DUMPBIN" != ":"; then
  4847. NM="$DUMPBIN"
  4848. fi
  4849. fi
  4850. test -z "$NM" && NM=nm
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4852. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4853. if ${lt_cv_nm_interface+:} false; then :
  4854. $as_echo_n "(cached) " >&6
  4855. else
  4856. lt_cv_nm_interface="BSD nm"
  4857. echo "int some_variable = 0;" > conftest.$ac_ext
  4858. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4859. (eval "$ac_compile" 2>conftest.err)
  4860. cat conftest.err >&5
  4861. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4862. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4863. cat conftest.err >&5
  4864. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4865. cat conftest.out >&5
  4866. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4867. lt_cv_nm_interface="MS dumpbin"
  4868. fi
  4869. rm -f conftest*
  4870. fi
  4871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4872. $as_echo "$lt_cv_nm_interface" >&6; }
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4874. $as_echo_n "checking whether ln -s works... " >&6; }
  4875. LN_S=$as_ln_s
  4876. if test "$LN_S" = "ln -s"; then
  4877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4878. $as_echo "yes" >&6; }
  4879. else
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4881. $as_echo "no, using $LN_S" >&6; }
  4882. fi
  4883. # find the maximum length of command line arguments
  4884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4885. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4886. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4887. $as_echo_n "(cached) " >&6
  4888. else
  4889. i=0
  4890. teststring="ABCD"
  4891. case $build_os in
  4892. msdosdjgpp*)
  4893. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4894. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4895. # during glob expansion). Even if it were fixed, the result of this
  4896. # check would be larger than it should be.
  4897. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4898. ;;
  4899. gnu*)
  4900. # Under GNU Hurd, this test is not required because there is
  4901. # no limit to the length of command line arguments.
  4902. # Libtool will interpret -1 as no limit whatsoever
  4903. lt_cv_sys_max_cmd_len=-1;
  4904. ;;
  4905. cygwin* | mingw* | cegcc*)
  4906. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4907. # about 5 minutes as the teststring grows exponentially.
  4908. # Worse, since 9x/ME are not pre-emptively multitasking,
  4909. # you end up with a "frozen" computer, even though with patience
  4910. # the test eventually succeeds (with a max line length of 256k).
  4911. # Instead, let's just punt: use the minimum linelength reported by
  4912. # all of the supported platforms: 8192 (on NT/2K/XP).
  4913. lt_cv_sys_max_cmd_len=8192;
  4914. ;;
  4915. mint*)
  4916. # On MiNT this can take a long time and run out of memory.
  4917. lt_cv_sys_max_cmd_len=8192;
  4918. ;;
  4919. amigaos*)
  4920. # On AmigaOS with pdksh, this test takes hours, literally.
  4921. # So we just punt and use a minimum line length of 8192.
  4922. lt_cv_sys_max_cmd_len=8192;
  4923. ;;
  4924. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4925. # This has been around since 386BSD, at least. Likely further.
  4926. if test -x /sbin/sysctl; then
  4927. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4928. elif test -x /usr/sbin/sysctl; then
  4929. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4930. else
  4931. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4932. fi
  4933. # And add a safety zone
  4934. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4935. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4936. ;;
  4937. interix*)
  4938. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4939. lt_cv_sys_max_cmd_len=196608
  4940. ;;
  4941. osf*)
  4942. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4943. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4944. # nice to cause kernel panics so lets avoid the loop below.
  4945. # First set a reasonable default.
  4946. lt_cv_sys_max_cmd_len=16384
  4947. #
  4948. if test -x /sbin/sysconfig; then
  4949. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4950. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4951. esac
  4952. fi
  4953. ;;
  4954. sco3.2v5*)
  4955. lt_cv_sys_max_cmd_len=102400
  4956. ;;
  4957. sysv5* | sco5v6* | sysv4.2uw2*)
  4958. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4959. if test -n "$kargmax"; then
  4960. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4961. else
  4962. lt_cv_sys_max_cmd_len=32768
  4963. fi
  4964. ;;
  4965. *)
  4966. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4967. if test -n "$lt_cv_sys_max_cmd_len"; then
  4968. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4969. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4970. else
  4971. # Make teststring a little bigger before we do anything with it.
  4972. # a 1K string should be a reasonable start.
  4973. for i in 1 2 3 4 5 6 7 8 ; do
  4974. teststring=$teststring$teststring
  4975. done
  4976. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4977. # If test is not a shell built-in, we'll probably end up computing a
  4978. # maximum length that is only half of the actual maximum length, but
  4979. # we can't tell.
  4980. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4981. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4982. test $i != 17 # 1/2 MB should be enough
  4983. do
  4984. i=`expr $i + 1`
  4985. teststring=$teststring$teststring
  4986. done
  4987. # Only check the string length outside the loop.
  4988. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4989. teststring=
  4990. # Add a significant safety factor because C++ compilers can tack on
  4991. # massive amounts of additional arguments before passing them to the
  4992. # linker. It appears as though 1/2 is a usable value.
  4993. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4994. fi
  4995. ;;
  4996. esac
  4997. fi
  4998. if test -n $lt_cv_sys_max_cmd_len ; then
  4999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5000. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5001. else
  5002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5003. $as_echo "none" >&6; }
  5004. fi
  5005. max_cmd_len=$lt_cv_sys_max_cmd_len
  5006. : ${CP="cp -f"}
  5007. : ${MV="mv -f"}
  5008. : ${RM="rm -f"}
  5009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5010. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5011. # Try some XSI features
  5012. xsi_shell=no
  5013. ( _lt_dummy="a/b/c"
  5014. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5015. = c,a/b,, \
  5016. && eval 'test $(( 1 + 1 )) -eq 2 \
  5017. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5018. && xsi_shell=yes
  5019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5020. $as_echo "$xsi_shell" >&6; }
  5021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5022. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5023. lt_shell_append=no
  5024. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5025. >/dev/null 2>&1 \
  5026. && lt_shell_append=yes
  5027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5028. $as_echo "$lt_shell_append" >&6; }
  5029. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5030. lt_unset=unset
  5031. else
  5032. lt_unset=false
  5033. fi
  5034. # test EBCDIC or ASCII
  5035. case `echo X|tr X '\101'` in
  5036. A) # ASCII based system
  5037. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5038. lt_SP2NL='tr \040 \012'
  5039. lt_NL2SP='tr \015\012 \040\040'
  5040. ;;
  5041. *) # EBCDIC based system
  5042. lt_SP2NL='tr \100 \n'
  5043. lt_NL2SP='tr \r\n \100\100'
  5044. ;;
  5045. esac
  5046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5047. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5048. if ${lt_cv_ld_reload_flag+:} false; then :
  5049. $as_echo_n "(cached) " >&6
  5050. else
  5051. lt_cv_ld_reload_flag='-r'
  5052. fi
  5053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5054. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5055. reload_flag=$lt_cv_ld_reload_flag
  5056. case $reload_flag in
  5057. "" | " "*) ;;
  5058. *) reload_flag=" $reload_flag" ;;
  5059. esac
  5060. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5061. case $host_os in
  5062. darwin*)
  5063. if test "$GCC" = yes; then
  5064. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5065. else
  5066. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5067. fi
  5068. ;;
  5069. esac
  5070. if test -n "$ac_tool_prefix"; then
  5071. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5072. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5074. $as_echo_n "checking for $ac_word... " >&6; }
  5075. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5076. $as_echo_n "(cached) " >&6
  5077. else
  5078. if test -n "$OBJDUMP"; then
  5079. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5080. else
  5081. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5082. for as_dir in $PATH
  5083. do
  5084. IFS=$as_save_IFS
  5085. test -z "$as_dir" && as_dir=.
  5086. for ac_exec_ext in '' $ac_executable_extensions; do
  5087. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5088. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5089. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5090. break 2
  5091. fi
  5092. done
  5093. done
  5094. IFS=$as_save_IFS
  5095. fi
  5096. fi
  5097. OBJDUMP=$ac_cv_prog_OBJDUMP
  5098. if test -n "$OBJDUMP"; then
  5099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5100. $as_echo "$OBJDUMP" >&6; }
  5101. else
  5102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5103. $as_echo "no" >&6; }
  5104. fi
  5105. fi
  5106. if test -z "$ac_cv_prog_OBJDUMP"; then
  5107. ac_ct_OBJDUMP=$OBJDUMP
  5108. # Extract the first word of "objdump", so it can be a program name with args.
  5109. set dummy objdump; ac_word=$2
  5110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5111. $as_echo_n "checking for $ac_word... " >&6; }
  5112. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5113. $as_echo_n "(cached) " >&6
  5114. else
  5115. if test -n "$ac_ct_OBJDUMP"; then
  5116. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5117. else
  5118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5119. for as_dir in $PATH
  5120. do
  5121. IFS=$as_save_IFS
  5122. test -z "$as_dir" && as_dir=.
  5123. for ac_exec_ext in '' $ac_executable_extensions; do
  5124. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5125. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5126. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5127. break 2
  5128. fi
  5129. done
  5130. done
  5131. IFS=$as_save_IFS
  5132. fi
  5133. fi
  5134. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5135. if test -n "$ac_ct_OBJDUMP"; then
  5136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5137. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5138. else
  5139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5140. $as_echo "no" >&6; }
  5141. fi
  5142. if test "x$ac_ct_OBJDUMP" = x; then
  5143. OBJDUMP="false"
  5144. else
  5145. case $cross_compiling:$ac_tool_warned in
  5146. yes:)
  5147. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5148. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5149. ac_tool_warned=yes ;;
  5150. esac
  5151. OBJDUMP=$ac_ct_OBJDUMP
  5152. fi
  5153. else
  5154. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5155. fi
  5156. test -z "$OBJDUMP" && OBJDUMP=objdump
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5158. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5159. if ${lt_cv_deplibs_check_method+:} false; then :
  5160. $as_echo_n "(cached) " >&6
  5161. else
  5162. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5163. lt_cv_file_magic_test_file=
  5164. lt_cv_deplibs_check_method='unknown'
  5165. # Need to set the preceding variable on all platforms that support
  5166. # interlibrary dependencies.
  5167. # 'none' -- dependencies not supported.
  5168. # `unknown' -- same as none, but documents that we really don't know.
  5169. # 'pass_all' -- all dependencies passed with no checks.
  5170. # 'test_compile' -- check by making test program.
  5171. # 'file_magic [[regex]]' -- check by looking for files in library path
  5172. # which responds to the $file_magic_cmd with a given extended regex.
  5173. # If you have `file' or equivalent on your system and you're not sure
  5174. # whether `pass_all' will *always* work, you probably want this one.
  5175. case $host_os in
  5176. aix[4-9]*)
  5177. lt_cv_deplibs_check_method=pass_all
  5178. ;;
  5179. beos*)
  5180. lt_cv_deplibs_check_method=pass_all
  5181. ;;
  5182. bsdi[45]*)
  5183. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5184. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5185. lt_cv_file_magic_test_file=/shlib/libc.so
  5186. ;;
  5187. cygwin*)
  5188. # func_win32_libid is a shell function defined in ltmain.sh
  5189. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5190. lt_cv_file_magic_cmd='func_win32_libid'
  5191. ;;
  5192. mingw* | pw32*)
  5193. # Base MSYS/MinGW do not provide the 'file' command needed by
  5194. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5195. # unless we find 'file', for example because we are cross-compiling.
  5196. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5197. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5198. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5199. lt_cv_file_magic_cmd='func_win32_libid'
  5200. else
  5201. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5202. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5203. fi
  5204. ;;
  5205. cegcc*)
  5206. # use the weaker test based on 'objdump'. See mingw*.
  5207. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5208. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5209. ;;
  5210. darwin* | rhapsody*)
  5211. lt_cv_deplibs_check_method=pass_all
  5212. ;;
  5213. freebsd* | dragonfly*)
  5214. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5215. case $host_cpu in
  5216. i*86 )
  5217. # Not sure whether the presence of OpenBSD here was a mistake.
  5218. # Let's accept both of them until this is cleared up.
  5219. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5220. lt_cv_file_magic_cmd=/usr/bin/file
  5221. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5222. ;;
  5223. esac
  5224. else
  5225. lt_cv_deplibs_check_method=pass_all
  5226. fi
  5227. ;;
  5228. gnu*)
  5229. lt_cv_deplibs_check_method=pass_all
  5230. ;;
  5231. haiku*)
  5232. lt_cv_deplibs_check_method=pass_all
  5233. ;;
  5234. hpux10.20* | hpux11*)
  5235. lt_cv_file_magic_cmd=/usr/bin/file
  5236. case $host_cpu in
  5237. ia64*)
  5238. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5239. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5240. ;;
  5241. hppa*64*)
  5242. 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]'
  5243. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5244. ;;
  5245. *)
  5246. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5247. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5248. ;;
  5249. esac
  5250. ;;
  5251. interix[3-9]*)
  5252. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5253. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5254. ;;
  5255. irix5* | irix6* | nonstopux*)
  5256. case $LD in
  5257. *-32|*"-32 ") libmagic=32-bit;;
  5258. *-n32|*"-n32 ") libmagic=N32;;
  5259. *-64|*"-64 ") libmagic=64-bit;;
  5260. *) libmagic=never-match;;
  5261. esac
  5262. lt_cv_deplibs_check_method=pass_all
  5263. ;;
  5264. # This must be Linux ELF.
  5265. linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  5266. lt_cv_deplibs_check_method=pass_all
  5267. ;;
  5268. netbsd*)
  5269. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5270. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5271. else
  5272. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5273. fi
  5274. ;;
  5275. newos6*)
  5276. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5277. lt_cv_file_magic_cmd=/usr/bin/file
  5278. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5279. ;;
  5280. *nto* | *qnx*)
  5281. lt_cv_deplibs_check_method=pass_all
  5282. ;;
  5283. openbsd*)
  5284. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5285. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5286. else
  5287. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5288. fi
  5289. ;;
  5290. osf3* | osf4* | osf5*)
  5291. lt_cv_deplibs_check_method=pass_all
  5292. ;;
  5293. rdos*)
  5294. lt_cv_deplibs_check_method=pass_all
  5295. ;;
  5296. solaris*)
  5297. lt_cv_deplibs_check_method=pass_all
  5298. ;;
  5299. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5300. lt_cv_deplibs_check_method=pass_all
  5301. ;;
  5302. sysv4 | sysv4.3*)
  5303. case $host_vendor in
  5304. motorola)
  5305. 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]'
  5306. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5307. ;;
  5308. ncr)
  5309. lt_cv_deplibs_check_method=pass_all
  5310. ;;
  5311. sequent)
  5312. lt_cv_file_magic_cmd='/bin/file'
  5313. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5314. ;;
  5315. sni)
  5316. lt_cv_file_magic_cmd='/bin/file'
  5317. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5318. lt_cv_file_magic_test_file=/lib/libc.so
  5319. ;;
  5320. siemens)
  5321. lt_cv_deplibs_check_method=pass_all
  5322. ;;
  5323. pc)
  5324. lt_cv_deplibs_check_method=pass_all
  5325. ;;
  5326. esac
  5327. ;;
  5328. tpf*)
  5329. lt_cv_deplibs_check_method=pass_all
  5330. ;;
  5331. esac
  5332. fi
  5333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5334. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5335. file_magic_cmd=$lt_cv_file_magic_cmd
  5336. deplibs_check_method=$lt_cv_deplibs_check_method
  5337. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5338. if test -n "$ac_tool_prefix"; then
  5339. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5340. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5342. $as_echo_n "checking for $ac_word... " >&6; }
  5343. if ${ac_cv_prog_AR+:} false; then :
  5344. $as_echo_n "(cached) " >&6
  5345. else
  5346. if test -n "$AR"; then
  5347. ac_cv_prog_AR="$AR" # Let the user override the test.
  5348. else
  5349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5350. for as_dir in $PATH
  5351. do
  5352. IFS=$as_save_IFS
  5353. test -z "$as_dir" && as_dir=.
  5354. for ac_exec_ext in '' $ac_executable_extensions; do
  5355. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5356. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5357. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5358. break 2
  5359. fi
  5360. done
  5361. done
  5362. IFS=$as_save_IFS
  5363. fi
  5364. fi
  5365. AR=$ac_cv_prog_AR
  5366. if test -n "$AR"; then
  5367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5368. $as_echo "$AR" >&6; }
  5369. else
  5370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5371. $as_echo "no" >&6; }
  5372. fi
  5373. fi
  5374. if test -z "$ac_cv_prog_AR"; then
  5375. ac_ct_AR=$AR
  5376. # Extract the first word of "ar", so it can be a program name with args.
  5377. set dummy ar; ac_word=$2
  5378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5379. $as_echo_n "checking for $ac_word... " >&6; }
  5380. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5381. $as_echo_n "(cached) " >&6
  5382. else
  5383. if test -n "$ac_ct_AR"; then
  5384. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5385. else
  5386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5387. for as_dir in $PATH
  5388. do
  5389. IFS=$as_save_IFS
  5390. test -z "$as_dir" && as_dir=.
  5391. for ac_exec_ext in '' $ac_executable_extensions; do
  5392. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5393. ac_cv_prog_ac_ct_AR="ar"
  5394. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5395. break 2
  5396. fi
  5397. done
  5398. done
  5399. IFS=$as_save_IFS
  5400. fi
  5401. fi
  5402. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5403. if test -n "$ac_ct_AR"; then
  5404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5405. $as_echo "$ac_ct_AR" >&6; }
  5406. else
  5407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5408. $as_echo "no" >&6; }
  5409. fi
  5410. if test "x$ac_ct_AR" = x; then
  5411. AR="false"
  5412. else
  5413. case $cross_compiling:$ac_tool_warned in
  5414. yes:)
  5415. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5416. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5417. ac_tool_warned=yes ;;
  5418. esac
  5419. AR=$ac_ct_AR
  5420. fi
  5421. else
  5422. AR="$ac_cv_prog_AR"
  5423. fi
  5424. test -z "$AR" && AR=ar
  5425. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5426. if test -n "$ac_tool_prefix"; then
  5427. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5428. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5430. $as_echo_n "checking for $ac_word... " >&6; }
  5431. if ${ac_cv_prog_STRIP+:} false; then :
  5432. $as_echo_n "(cached) " >&6
  5433. else
  5434. if test -n "$STRIP"; then
  5435. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5436. else
  5437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5438. for as_dir in $PATH
  5439. do
  5440. IFS=$as_save_IFS
  5441. test -z "$as_dir" && as_dir=.
  5442. for ac_exec_ext in '' $ac_executable_extensions; do
  5443. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5444. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5445. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5446. break 2
  5447. fi
  5448. done
  5449. done
  5450. IFS=$as_save_IFS
  5451. fi
  5452. fi
  5453. STRIP=$ac_cv_prog_STRIP
  5454. if test -n "$STRIP"; then
  5455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5456. $as_echo "$STRIP" >&6; }
  5457. else
  5458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5459. $as_echo "no" >&6; }
  5460. fi
  5461. fi
  5462. if test -z "$ac_cv_prog_STRIP"; then
  5463. ac_ct_STRIP=$STRIP
  5464. # Extract the first word of "strip", so it can be a program name with args.
  5465. set dummy strip; ac_word=$2
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5467. $as_echo_n "checking for $ac_word... " >&6; }
  5468. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5469. $as_echo_n "(cached) " >&6
  5470. else
  5471. if test -n "$ac_ct_STRIP"; then
  5472. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5473. else
  5474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5475. for as_dir in $PATH
  5476. do
  5477. IFS=$as_save_IFS
  5478. test -z "$as_dir" && as_dir=.
  5479. for ac_exec_ext in '' $ac_executable_extensions; do
  5480. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5481. ac_cv_prog_ac_ct_STRIP="strip"
  5482. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5483. break 2
  5484. fi
  5485. done
  5486. done
  5487. IFS=$as_save_IFS
  5488. fi
  5489. fi
  5490. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5491. if test -n "$ac_ct_STRIP"; then
  5492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5493. $as_echo "$ac_ct_STRIP" >&6; }
  5494. else
  5495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5496. $as_echo "no" >&6; }
  5497. fi
  5498. if test "x$ac_ct_STRIP" = x; then
  5499. STRIP=":"
  5500. else
  5501. case $cross_compiling:$ac_tool_warned in
  5502. yes:)
  5503. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5504. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5505. ac_tool_warned=yes ;;
  5506. esac
  5507. STRIP=$ac_ct_STRIP
  5508. fi
  5509. else
  5510. STRIP="$ac_cv_prog_STRIP"
  5511. fi
  5512. test -z "$STRIP" && STRIP=:
  5513. if test -n "$ac_tool_prefix"; then
  5514. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5515. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5517. $as_echo_n "checking for $ac_word... " >&6; }
  5518. if ${ac_cv_prog_RANLIB+:} false; then :
  5519. $as_echo_n "(cached) " >&6
  5520. else
  5521. if test -n "$RANLIB"; then
  5522. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5523. else
  5524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5525. for as_dir in $PATH
  5526. do
  5527. IFS=$as_save_IFS
  5528. test -z "$as_dir" && as_dir=.
  5529. for ac_exec_ext in '' $ac_executable_extensions; do
  5530. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5531. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5532. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5533. break 2
  5534. fi
  5535. done
  5536. done
  5537. IFS=$as_save_IFS
  5538. fi
  5539. fi
  5540. RANLIB=$ac_cv_prog_RANLIB
  5541. if test -n "$RANLIB"; then
  5542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5543. $as_echo "$RANLIB" >&6; }
  5544. else
  5545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5546. $as_echo "no" >&6; }
  5547. fi
  5548. fi
  5549. if test -z "$ac_cv_prog_RANLIB"; then
  5550. ac_ct_RANLIB=$RANLIB
  5551. # Extract the first word of "ranlib", so it can be a program name with args.
  5552. set dummy ranlib; ac_word=$2
  5553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5554. $as_echo_n "checking for $ac_word... " >&6; }
  5555. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5556. $as_echo_n "(cached) " >&6
  5557. else
  5558. if test -n "$ac_ct_RANLIB"; then
  5559. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5560. else
  5561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5562. for as_dir in $PATH
  5563. do
  5564. IFS=$as_save_IFS
  5565. test -z "$as_dir" && as_dir=.
  5566. for ac_exec_ext in '' $ac_executable_extensions; do
  5567. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5568. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5569. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5570. break 2
  5571. fi
  5572. done
  5573. done
  5574. IFS=$as_save_IFS
  5575. fi
  5576. fi
  5577. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5578. if test -n "$ac_ct_RANLIB"; then
  5579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5580. $as_echo "$ac_ct_RANLIB" >&6; }
  5581. else
  5582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5583. $as_echo "no" >&6; }
  5584. fi
  5585. if test "x$ac_ct_RANLIB" = x; then
  5586. RANLIB=":"
  5587. else
  5588. case $cross_compiling:$ac_tool_warned in
  5589. yes:)
  5590. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5591. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5592. ac_tool_warned=yes ;;
  5593. esac
  5594. RANLIB=$ac_ct_RANLIB
  5595. fi
  5596. else
  5597. RANLIB="$ac_cv_prog_RANLIB"
  5598. fi
  5599. test -z "$RANLIB" && RANLIB=:
  5600. # Determine commands to create old-style static archives.
  5601. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5602. old_postinstall_cmds='chmod 644 $oldlib'
  5603. old_postuninstall_cmds=
  5604. if test -n "$RANLIB"; then
  5605. case $host_os in
  5606. openbsd*)
  5607. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5608. ;;
  5609. *)
  5610. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5611. ;;
  5612. esac
  5613. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5614. fi
  5615. case $host_os in
  5616. darwin*)
  5617. lock_old_archive_extraction=yes ;;
  5618. *)
  5619. lock_old_archive_extraction=no ;;
  5620. esac
  5621. # If no C compiler was specified, use CC.
  5622. LTCC=${LTCC-"$CC"}
  5623. # If no C compiler flags were specified, use CFLAGS.
  5624. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5625. # Allow CC to be a program name with arguments.
  5626. compiler=$CC
  5627. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5629. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5630. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5631. $as_echo_n "(cached) " >&6
  5632. else
  5633. # These are sane defaults that work on at least a few old systems.
  5634. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5635. # Character class describing NM global symbol codes.
  5636. symcode='[BCDEGRST]'
  5637. # Regexp to match symbols that can be accessed directly from C.
  5638. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5639. # Define system-specific variables.
  5640. case $host_os in
  5641. aix*)
  5642. symcode='[BCDT]'
  5643. ;;
  5644. cygwin* | mingw* | pw32* | cegcc*)
  5645. symcode='[ABCDGISTW]'
  5646. ;;
  5647. hpux*)
  5648. if test "$host_cpu" = ia64; then
  5649. symcode='[ABCDEGRST]'
  5650. fi
  5651. ;;
  5652. irix* | nonstopux*)
  5653. symcode='[BCDEGRST]'
  5654. ;;
  5655. osf*)
  5656. symcode='[BCDEGQRST]'
  5657. ;;
  5658. solaris*)
  5659. symcode='[BDRT]'
  5660. ;;
  5661. sco3.2v5*)
  5662. symcode='[DT]'
  5663. ;;
  5664. sysv4.2uw2*)
  5665. symcode='[DT]'
  5666. ;;
  5667. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5668. symcode='[ABDT]'
  5669. ;;
  5670. sysv4)
  5671. symcode='[DFNSTU]'
  5672. ;;
  5673. esac
  5674. # If we're using GNU nm, then use its standard symbol codes.
  5675. case `$NM -V 2>&1` in
  5676. *GNU* | *'with BFD'*)
  5677. symcode='[ABCDGIRSTW]' ;;
  5678. esac
  5679. # Transform an extracted symbol line into a proper C declaration.
  5680. # Some systems (esp. on ia64) link data and code symbols differently,
  5681. # so use this general approach.
  5682. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5683. # Transform an extracted symbol line into symbol name and symbol address
  5684. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5685. 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'"
  5686. # Handle CRLF in mingw tool chain
  5687. opt_cr=
  5688. case $build_os in
  5689. mingw*)
  5690. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5691. ;;
  5692. esac
  5693. # Try without a prefix underscore, then with it.
  5694. for ac_symprfx in "" "_"; do
  5695. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5696. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5697. # Write the raw and C identifiers.
  5698. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5699. # Fake it for dumpbin and say T for any non-static function
  5700. # and D for any global variable.
  5701. # Also find C++ and __fastcall symbols from MSVC++,
  5702. # which start with @ or ?.
  5703. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5704. " {last_section=section; section=\$ 3};"\
  5705. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5706. " \$ 0!~/External *\|/{next};"\
  5707. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5708. " {if(hide[section]) next};"\
  5709. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5710. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5711. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5712. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5713. " ' prfx=^$ac_symprfx"
  5714. else
  5715. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5716. fi
  5717. # Check to see that the pipe works correctly.
  5718. pipe_works=no
  5719. rm -f conftest*
  5720. cat > conftest.$ac_ext <<_LT_EOF
  5721. #ifdef __cplusplus
  5722. extern "C" {
  5723. #endif
  5724. char nm_test_var;
  5725. void nm_test_func(void);
  5726. void nm_test_func(void){}
  5727. #ifdef __cplusplus
  5728. }
  5729. #endif
  5730. int main(){nm_test_var='a';nm_test_func();return(0);}
  5731. _LT_EOF
  5732. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5733. (eval $ac_compile) 2>&5
  5734. ac_status=$?
  5735. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5736. test $ac_status = 0; }; then
  5737. # Now try to grab the symbols.
  5738. nlist=conftest.nm
  5739. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5740. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5741. ac_status=$?
  5742. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5743. test $ac_status = 0; } && test -s "$nlist"; then
  5744. # Try sorting and uniquifying the output.
  5745. if sort "$nlist" | uniq > "$nlist"T; then
  5746. mv -f "$nlist"T "$nlist"
  5747. else
  5748. rm -f "$nlist"T
  5749. fi
  5750. # Make sure that we snagged all the symbols we need.
  5751. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5752. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5753. cat <<_LT_EOF > conftest.$ac_ext
  5754. #ifdef __cplusplus
  5755. extern "C" {
  5756. #endif
  5757. _LT_EOF
  5758. # Now generate the symbol file.
  5759. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5760. cat <<_LT_EOF >> conftest.$ac_ext
  5761. /* The mapping between symbol names and symbols. */
  5762. const struct {
  5763. const char *name;
  5764. void *address;
  5765. }
  5766. lt__PROGRAM__LTX_preloaded_symbols[] =
  5767. {
  5768. { "@PROGRAM@", (void *) 0 },
  5769. _LT_EOF
  5770. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5771. cat <<\_LT_EOF >> conftest.$ac_ext
  5772. {0, (void *) 0}
  5773. };
  5774. /* This works around a problem in FreeBSD linker */
  5775. #ifdef FREEBSD_WORKAROUND
  5776. static const void *lt_preloaded_setup() {
  5777. return lt__PROGRAM__LTX_preloaded_symbols;
  5778. }
  5779. #endif
  5780. #ifdef __cplusplus
  5781. }
  5782. #endif
  5783. _LT_EOF
  5784. # Now try linking the two files.
  5785. mv conftest.$ac_objext conftstm.$ac_objext
  5786. lt_save_LIBS="$LIBS"
  5787. lt_save_CFLAGS="$CFLAGS"
  5788. LIBS="conftstm.$ac_objext"
  5789. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5790. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5791. (eval $ac_link) 2>&5
  5792. ac_status=$?
  5793. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5794. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5795. pipe_works=yes
  5796. fi
  5797. LIBS="$lt_save_LIBS"
  5798. CFLAGS="$lt_save_CFLAGS"
  5799. else
  5800. echo "cannot find nm_test_func in $nlist" >&5
  5801. fi
  5802. else
  5803. echo "cannot find nm_test_var in $nlist" >&5
  5804. fi
  5805. else
  5806. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5807. fi
  5808. else
  5809. echo "$progname: failed program was:" >&5
  5810. cat conftest.$ac_ext >&5
  5811. fi
  5812. rm -rf conftest* conftst*
  5813. # Do not use the global_symbol_pipe unless it works.
  5814. if test "$pipe_works" = yes; then
  5815. break
  5816. else
  5817. lt_cv_sys_global_symbol_pipe=
  5818. fi
  5819. done
  5820. fi
  5821. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5822. lt_cv_sys_global_symbol_to_cdecl=
  5823. fi
  5824. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5826. $as_echo "failed" >&6; }
  5827. else
  5828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5829. $as_echo "ok" >&6; }
  5830. fi
  5831. # Check whether --enable-libtool-lock was given.
  5832. if test "${enable_libtool_lock+set}" = set; then :
  5833. enableval=$enable_libtool_lock;
  5834. fi
  5835. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5836. # Some flags need to be propagated to the compiler or linker for good
  5837. # libtool support.
  5838. case $host in
  5839. ia64-*-hpux*)
  5840. # Find out which ABI we are using.
  5841. echo 'int i;' > conftest.$ac_ext
  5842. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5843. (eval $ac_compile) 2>&5
  5844. ac_status=$?
  5845. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5846. test $ac_status = 0; }; then
  5847. case `/usr/bin/file conftest.$ac_objext` in
  5848. *ELF-32*)
  5849. HPUX_IA64_MODE="32"
  5850. ;;
  5851. *ELF-64*)
  5852. HPUX_IA64_MODE="64"
  5853. ;;
  5854. esac
  5855. fi
  5856. rm -rf conftest*
  5857. ;;
  5858. *-*-irix6*)
  5859. # Find out which ABI we are using.
  5860. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5861. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5862. (eval $ac_compile) 2>&5
  5863. ac_status=$?
  5864. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5865. test $ac_status = 0; }; then
  5866. if test "$lt_cv_prog_gnu_ld" = yes; then
  5867. case `/usr/bin/file conftest.$ac_objext` in
  5868. *32-bit*)
  5869. LD="${LD-ld} -melf32bsmip"
  5870. ;;
  5871. *N32*)
  5872. LD="${LD-ld} -melf32bmipn32"
  5873. ;;
  5874. *64-bit*)
  5875. LD="${LD-ld} -melf64bmip"
  5876. ;;
  5877. esac
  5878. else
  5879. case `/usr/bin/file conftest.$ac_objext` in
  5880. *32-bit*)
  5881. LD="${LD-ld} -32"
  5882. ;;
  5883. *N32*)
  5884. LD="${LD-ld} -n32"
  5885. ;;
  5886. *64-bit*)
  5887. LD="${LD-ld} -64"
  5888. ;;
  5889. esac
  5890. fi
  5891. fi
  5892. rm -rf conftest*
  5893. ;;
  5894. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5895. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5896. # Find out which ABI we are using.
  5897. echo 'int i;' > conftest.$ac_ext
  5898. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5899. (eval $ac_compile) 2>&5
  5900. ac_status=$?
  5901. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5902. test $ac_status = 0; }; then
  5903. case `/usr/bin/file conftest.o` in
  5904. *32-bit*)
  5905. case $host in
  5906. x86_64-*kfreebsd*-gnu)
  5907. LD="${LD-ld} -m elf_i386_fbsd"
  5908. ;;
  5909. x86_64-*linux*)
  5910. case `/usr/bin/file conftest.o` in
  5911. *x86-64*)
  5912. LD="${LD-ld} -m elf32_x86_64"
  5913. ;;
  5914. *)
  5915. LD="${LD-ld} -m elf_i386"
  5916. ;;
  5917. esac
  5918. ;;
  5919. powerpc64le-*linux*)
  5920. LD="${LD-ld} -m elf32lppclinux"
  5921. ;;
  5922. powerpc64-*linux*)
  5923. LD="${LD-ld} -m elf32ppclinux"
  5924. ;;
  5925. s390x-*linux*)
  5926. LD="${LD-ld} -m elf_s390"
  5927. ;;
  5928. sparc64-*linux*)
  5929. LD="${LD-ld} -m elf32_sparc"
  5930. ;;
  5931. esac
  5932. ;;
  5933. *64-bit*)
  5934. case $host in
  5935. x86_64-*kfreebsd*-gnu)
  5936. LD="${LD-ld} -m elf_x86_64_fbsd"
  5937. ;;
  5938. x86_64-*linux*)
  5939. LD="${LD-ld} -m elf_x86_64"
  5940. ;;
  5941. powerpcle-*linux*)
  5942. LD="${LD-ld} -m elf64lppc"
  5943. ;;
  5944. powerpc-*linux*)
  5945. LD="${LD-ld} -m elf64ppc"
  5946. ;;
  5947. s390*-*linux*|s390*-*tpf*)
  5948. LD="${LD-ld} -m elf64_s390"
  5949. ;;
  5950. sparc*-*linux*)
  5951. LD="${LD-ld} -m elf64_sparc"
  5952. ;;
  5953. esac
  5954. ;;
  5955. esac
  5956. fi
  5957. rm -rf conftest*
  5958. ;;
  5959. *-*-sco3.2v5*)
  5960. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5961. SAVE_CFLAGS="$CFLAGS"
  5962. CFLAGS="$CFLAGS -belf"
  5963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5964. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5965. if ${lt_cv_cc_needs_belf+:} false; then :
  5966. $as_echo_n "(cached) " >&6
  5967. else
  5968. ac_ext=c
  5969. ac_cpp='$CPP $CPPFLAGS'
  5970. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5971. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5972. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5973. if test x$gcc_no_link = xyes; then
  5974. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  5975. fi
  5976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5977. /* end confdefs.h. */
  5978. int
  5979. main ()
  5980. {
  5981. ;
  5982. return 0;
  5983. }
  5984. _ACEOF
  5985. if ac_fn_c_try_link "$LINENO"; then :
  5986. lt_cv_cc_needs_belf=yes
  5987. else
  5988. lt_cv_cc_needs_belf=no
  5989. fi
  5990. rm -f core conftest.err conftest.$ac_objext \
  5991. conftest$ac_exeext conftest.$ac_ext
  5992. ac_ext=c
  5993. ac_cpp='$CPP $CPPFLAGS'
  5994. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5995. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5996. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5997. fi
  5998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5999. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6000. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6001. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6002. CFLAGS="$SAVE_CFLAGS"
  6003. fi
  6004. ;;
  6005. sparc*-*solaris*)
  6006. # Find out which ABI we are using.
  6007. echo 'int i;' > conftest.$ac_ext
  6008. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6009. (eval $ac_compile) 2>&5
  6010. ac_status=$?
  6011. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6012. test $ac_status = 0; }; then
  6013. case `/usr/bin/file conftest.o` in
  6014. *64-bit*)
  6015. case $lt_cv_prog_gnu_ld in
  6016. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6017. *)
  6018. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6019. LD="${LD-ld} -64"
  6020. fi
  6021. ;;
  6022. esac
  6023. ;;
  6024. esac
  6025. fi
  6026. rm -rf conftest*
  6027. ;;
  6028. esac
  6029. need_locks="$enable_libtool_lock"
  6030. case $host_os in
  6031. rhapsody* | darwin*)
  6032. if test -n "$ac_tool_prefix"; then
  6033. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6034. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6036. $as_echo_n "checking for $ac_word... " >&6; }
  6037. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6038. $as_echo_n "(cached) " >&6
  6039. else
  6040. if test -n "$DSYMUTIL"; then
  6041. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6042. else
  6043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6044. for as_dir in $PATH
  6045. do
  6046. IFS=$as_save_IFS
  6047. test -z "$as_dir" && as_dir=.
  6048. for ac_exec_ext in '' $ac_executable_extensions; do
  6049. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6050. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6051. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6052. break 2
  6053. fi
  6054. done
  6055. done
  6056. IFS=$as_save_IFS
  6057. fi
  6058. fi
  6059. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6060. if test -n "$DSYMUTIL"; then
  6061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6062. $as_echo "$DSYMUTIL" >&6; }
  6063. else
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6065. $as_echo "no" >&6; }
  6066. fi
  6067. fi
  6068. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6069. ac_ct_DSYMUTIL=$DSYMUTIL
  6070. # Extract the first word of "dsymutil", so it can be a program name with args.
  6071. set dummy dsymutil; ac_word=$2
  6072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6073. $as_echo_n "checking for $ac_word... " >&6; }
  6074. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6075. $as_echo_n "(cached) " >&6
  6076. else
  6077. if test -n "$ac_ct_DSYMUTIL"; then
  6078. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6079. else
  6080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6081. for as_dir in $PATH
  6082. do
  6083. IFS=$as_save_IFS
  6084. test -z "$as_dir" && as_dir=.
  6085. for ac_exec_ext in '' $ac_executable_extensions; do
  6086. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6087. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6088. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6089. break 2
  6090. fi
  6091. done
  6092. done
  6093. IFS=$as_save_IFS
  6094. fi
  6095. fi
  6096. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6097. if test -n "$ac_ct_DSYMUTIL"; then
  6098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6099. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6100. else
  6101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6102. $as_echo "no" >&6; }
  6103. fi
  6104. if test "x$ac_ct_DSYMUTIL" = x; then
  6105. DSYMUTIL=":"
  6106. else
  6107. case $cross_compiling:$ac_tool_warned in
  6108. yes:)
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6110. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6111. ac_tool_warned=yes ;;
  6112. esac
  6113. DSYMUTIL=$ac_ct_DSYMUTIL
  6114. fi
  6115. else
  6116. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6117. fi
  6118. if test -n "$ac_tool_prefix"; then
  6119. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6120. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6122. $as_echo_n "checking for $ac_word... " >&6; }
  6123. if ${ac_cv_prog_NMEDIT+:} false; then :
  6124. $as_echo_n "(cached) " >&6
  6125. else
  6126. if test -n "$NMEDIT"; then
  6127. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6128. else
  6129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6130. for as_dir in $PATH
  6131. do
  6132. IFS=$as_save_IFS
  6133. test -z "$as_dir" && as_dir=.
  6134. for ac_exec_ext in '' $ac_executable_extensions; do
  6135. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6136. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6137. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6138. break 2
  6139. fi
  6140. done
  6141. done
  6142. IFS=$as_save_IFS
  6143. fi
  6144. fi
  6145. NMEDIT=$ac_cv_prog_NMEDIT
  6146. if test -n "$NMEDIT"; then
  6147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6148. $as_echo "$NMEDIT" >&6; }
  6149. else
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6151. $as_echo "no" >&6; }
  6152. fi
  6153. fi
  6154. if test -z "$ac_cv_prog_NMEDIT"; then
  6155. ac_ct_NMEDIT=$NMEDIT
  6156. # Extract the first word of "nmedit", so it can be a program name with args.
  6157. set dummy nmedit; ac_word=$2
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6159. $as_echo_n "checking for $ac_word... " >&6; }
  6160. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6161. $as_echo_n "(cached) " >&6
  6162. else
  6163. if test -n "$ac_ct_NMEDIT"; then
  6164. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6165. else
  6166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6167. for as_dir in $PATH
  6168. do
  6169. IFS=$as_save_IFS
  6170. test -z "$as_dir" && as_dir=.
  6171. for ac_exec_ext in '' $ac_executable_extensions; do
  6172. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6173. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6174. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6175. break 2
  6176. fi
  6177. done
  6178. done
  6179. IFS=$as_save_IFS
  6180. fi
  6181. fi
  6182. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6183. if test -n "$ac_ct_NMEDIT"; then
  6184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6185. $as_echo "$ac_ct_NMEDIT" >&6; }
  6186. else
  6187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6188. $as_echo "no" >&6; }
  6189. fi
  6190. if test "x$ac_ct_NMEDIT" = x; then
  6191. NMEDIT=":"
  6192. else
  6193. case $cross_compiling:$ac_tool_warned in
  6194. yes:)
  6195. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6196. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6197. ac_tool_warned=yes ;;
  6198. esac
  6199. NMEDIT=$ac_ct_NMEDIT
  6200. fi
  6201. else
  6202. NMEDIT="$ac_cv_prog_NMEDIT"
  6203. fi
  6204. if test -n "$ac_tool_prefix"; then
  6205. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6206. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6208. $as_echo_n "checking for $ac_word... " >&6; }
  6209. if ${ac_cv_prog_LIPO+:} false; then :
  6210. $as_echo_n "(cached) " >&6
  6211. else
  6212. if test -n "$LIPO"; then
  6213. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6214. else
  6215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6216. for as_dir in $PATH
  6217. do
  6218. IFS=$as_save_IFS
  6219. test -z "$as_dir" && as_dir=.
  6220. for ac_exec_ext in '' $ac_executable_extensions; do
  6221. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6222. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6224. break 2
  6225. fi
  6226. done
  6227. done
  6228. IFS=$as_save_IFS
  6229. fi
  6230. fi
  6231. LIPO=$ac_cv_prog_LIPO
  6232. if test -n "$LIPO"; then
  6233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6234. $as_echo "$LIPO" >&6; }
  6235. else
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6237. $as_echo "no" >&6; }
  6238. fi
  6239. fi
  6240. if test -z "$ac_cv_prog_LIPO"; then
  6241. ac_ct_LIPO=$LIPO
  6242. # Extract the first word of "lipo", so it can be a program name with args.
  6243. set dummy lipo; ac_word=$2
  6244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6245. $as_echo_n "checking for $ac_word... " >&6; }
  6246. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6247. $as_echo_n "(cached) " >&6
  6248. else
  6249. if test -n "$ac_ct_LIPO"; then
  6250. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6251. else
  6252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6253. for as_dir in $PATH
  6254. do
  6255. IFS=$as_save_IFS
  6256. test -z "$as_dir" && as_dir=.
  6257. for ac_exec_ext in '' $ac_executable_extensions; do
  6258. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6259. ac_cv_prog_ac_ct_LIPO="lipo"
  6260. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6261. break 2
  6262. fi
  6263. done
  6264. done
  6265. IFS=$as_save_IFS
  6266. fi
  6267. fi
  6268. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6269. if test -n "$ac_ct_LIPO"; then
  6270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6271. $as_echo "$ac_ct_LIPO" >&6; }
  6272. else
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6274. $as_echo "no" >&6; }
  6275. fi
  6276. if test "x$ac_ct_LIPO" = x; then
  6277. LIPO=":"
  6278. else
  6279. case $cross_compiling:$ac_tool_warned in
  6280. yes:)
  6281. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6282. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6283. ac_tool_warned=yes ;;
  6284. esac
  6285. LIPO=$ac_ct_LIPO
  6286. fi
  6287. else
  6288. LIPO="$ac_cv_prog_LIPO"
  6289. fi
  6290. if test -n "$ac_tool_prefix"; then
  6291. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6292. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6294. $as_echo_n "checking for $ac_word... " >&6; }
  6295. if ${ac_cv_prog_OTOOL+:} false; then :
  6296. $as_echo_n "(cached) " >&6
  6297. else
  6298. if test -n "$OTOOL"; then
  6299. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6300. else
  6301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6302. for as_dir in $PATH
  6303. do
  6304. IFS=$as_save_IFS
  6305. test -z "$as_dir" && as_dir=.
  6306. for ac_exec_ext in '' $ac_executable_extensions; do
  6307. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6308. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6309. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6310. break 2
  6311. fi
  6312. done
  6313. done
  6314. IFS=$as_save_IFS
  6315. fi
  6316. fi
  6317. OTOOL=$ac_cv_prog_OTOOL
  6318. if test -n "$OTOOL"; then
  6319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6320. $as_echo "$OTOOL" >&6; }
  6321. else
  6322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6323. $as_echo "no" >&6; }
  6324. fi
  6325. fi
  6326. if test -z "$ac_cv_prog_OTOOL"; then
  6327. ac_ct_OTOOL=$OTOOL
  6328. # Extract the first word of "otool", so it can be a program name with args.
  6329. set dummy otool; ac_word=$2
  6330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6331. $as_echo_n "checking for $ac_word... " >&6; }
  6332. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6333. $as_echo_n "(cached) " >&6
  6334. else
  6335. if test -n "$ac_ct_OTOOL"; then
  6336. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6337. else
  6338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6339. for as_dir in $PATH
  6340. do
  6341. IFS=$as_save_IFS
  6342. test -z "$as_dir" && as_dir=.
  6343. for ac_exec_ext in '' $ac_executable_extensions; do
  6344. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6345. ac_cv_prog_ac_ct_OTOOL="otool"
  6346. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6347. break 2
  6348. fi
  6349. done
  6350. done
  6351. IFS=$as_save_IFS
  6352. fi
  6353. fi
  6354. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6355. if test -n "$ac_ct_OTOOL"; then
  6356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6357. $as_echo "$ac_ct_OTOOL" >&6; }
  6358. else
  6359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6360. $as_echo "no" >&6; }
  6361. fi
  6362. if test "x$ac_ct_OTOOL" = x; then
  6363. OTOOL=":"
  6364. else
  6365. case $cross_compiling:$ac_tool_warned in
  6366. yes:)
  6367. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6368. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6369. ac_tool_warned=yes ;;
  6370. esac
  6371. OTOOL=$ac_ct_OTOOL
  6372. fi
  6373. else
  6374. OTOOL="$ac_cv_prog_OTOOL"
  6375. fi
  6376. if test -n "$ac_tool_prefix"; then
  6377. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6378. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6380. $as_echo_n "checking for $ac_word... " >&6; }
  6381. if ${ac_cv_prog_OTOOL64+:} false; then :
  6382. $as_echo_n "(cached) " >&6
  6383. else
  6384. if test -n "$OTOOL64"; then
  6385. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6386. else
  6387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6388. for as_dir in $PATH
  6389. do
  6390. IFS=$as_save_IFS
  6391. test -z "$as_dir" && as_dir=.
  6392. for ac_exec_ext in '' $ac_executable_extensions; do
  6393. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6394. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6395. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6396. break 2
  6397. fi
  6398. done
  6399. done
  6400. IFS=$as_save_IFS
  6401. fi
  6402. fi
  6403. OTOOL64=$ac_cv_prog_OTOOL64
  6404. if test -n "$OTOOL64"; then
  6405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6406. $as_echo "$OTOOL64" >&6; }
  6407. else
  6408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6409. $as_echo "no" >&6; }
  6410. fi
  6411. fi
  6412. if test -z "$ac_cv_prog_OTOOL64"; then
  6413. ac_ct_OTOOL64=$OTOOL64
  6414. # Extract the first word of "otool64", so it can be a program name with args.
  6415. set dummy otool64; ac_word=$2
  6416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6417. $as_echo_n "checking for $ac_word... " >&6; }
  6418. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6419. $as_echo_n "(cached) " >&6
  6420. else
  6421. if test -n "$ac_ct_OTOOL64"; then
  6422. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6423. else
  6424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6425. for as_dir in $PATH
  6426. do
  6427. IFS=$as_save_IFS
  6428. test -z "$as_dir" && as_dir=.
  6429. for ac_exec_ext in '' $ac_executable_extensions; do
  6430. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6431. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6432. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6433. break 2
  6434. fi
  6435. done
  6436. done
  6437. IFS=$as_save_IFS
  6438. fi
  6439. fi
  6440. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6441. if test -n "$ac_ct_OTOOL64"; then
  6442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6443. $as_echo "$ac_ct_OTOOL64" >&6; }
  6444. else
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6446. $as_echo "no" >&6; }
  6447. fi
  6448. if test "x$ac_ct_OTOOL64" = x; then
  6449. OTOOL64=":"
  6450. else
  6451. case $cross_compiling:$ac_tool_warned in
  6452. yes:)
  6453. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6454. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6455. ac_tool_warned=yes ;;
  6456. esac
  6457. OTOOL64=$ac_ct_OTOOL64
  6458. fi
  6459. else
  6460. OTOOL64="$ac_cv_prog_OTOOL64"
  6461. fi
  6462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6463. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6464. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6465. $as_echo_n "(cached) " >&6
  6466. else
  6467. lt_cv_apple_cc_single_mod=no
  6468. if test -z "${LT_MULTI_MODULE}"; then
  6469. # By default we will add the -single_module flag. You can override
  6470. # by either setting the environment variable LT_MULTI_MODULE
  6471. # non-empty at configure time, or by adding -multi_module to the
  6472. # link flags.
  6473. rm -rf libconftest.dylib*
  6474. echo "int foo(void){return 1;}" > conftest.c
  6475. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6476. -dynamiclib -Wl,-single_module conftest.c" >&5
  6477. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6478. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6479. _lt_result=$?
  6480. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6481. lt_cv_apple_cc_single_mod=yes
  6482. else
  6483. cat conftest.err >&5
  6484. fi
  6485. rm -rf libconftest.dylib*
  6486. rm -f conftest.*
  6487. fi
  6488. fi
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6490. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6492. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6493. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6494. $as_echo_n "(cached) " >&6
  6495. else
  6496. lt_cv_ld_exported_symbols_list=no
  6497. save_LDFLAGS=$LDFLAGS
  6498. echo "_main" > conftest.sym
  6499. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6500. if test x$gcc_no_link = xyes; then
  6501. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  6502. fi
  6503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6504. /* end confdefs.h. */
  6505. int
  6506. main ()
  6507. {
  6508. ;
  6509. return 0;
  6510. }
  6511. _ACEOF
  6512. if ac_fn_c_try_link "$LINENO"; then :
  6513. lt_cv_ld_exported_symbols_list=yes
  6514. else
  6515. lt_cv_ld_exported_symbols_list=no
  6516. fi
  6517. rm -f core conftest.err conftest.$ac_objext \
  6518. conftest$ac_exeext conftest.$ac_ext
  6519. LDFLAGS="$save_LDFLAGS"
  6520. fi
  6521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6522. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6524. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6525. if ${lt_cv_ld_force_load+:} false; then :
  6526. $as_echo_n "(cached) " >&6
  6527. else
  6528. lt_cv_ld_force_load=no
  6529. cat > conftest.c << _LT_EOF
  6530. int forced_loaded() { return 2;}
  6531. _LT_EOF
  6532. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6533. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6534. echo "$AR cru libconftest.a conftest.o" >&5
  6535. $AR cru libconftest.a conftest.o 2>&5
  6536. cat > conftest.c << _LT_EOF
  6537. int main() { return 0;}
  6538. _LT_EOF
  6539. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6540. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6541. _lt_result=$?
  6542. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6543. lt_cv_ld_force_load=yes
  6544. else
  6545. cat conftest.err >&5
  6546. fi
  6547. rm -f conftest.err libconftest.a conftest conftest.c
  6548. rm -rf conftest.dSYM
  6549. fi
  6550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6551. $as_echo "$lt_cv_ld_force_load" >&6; }
  6552. # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
  6553. # build without first building modern cctools / linker.
  6554. case $host_cpu-$host_os in
  6555. *-rhapsody* | *-darwin1.[012])
  6556. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6557. *-darwin1.*)
  6558. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6559. *-darwin*)
  6560. # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
  6561. # deployment target is forced to an earlier version.
  6562. case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
  6563. UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
  6564. ;;
  6565. 10.[012][,.]*)
  6566. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6567. ;;
  6568. *)
  6569. ;;
  6570. esac
  6571. ;;
  6572. esac
  6573. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6574. _lt_dar_single_mod='$single_module'
  6575. fi
  6576. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6577. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6578. else
  6579. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6580. fi
  6581. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6582. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6583. else
  6584. _lt_dsymutil=
  6585. fi
  6586. ;;
  6587. esac
  6588. for ac_header in dlfcn.h
  6589. do :
  6590. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6591. "
  6592. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6593. cat >>confdefs.h <<_ACEOF
  6594. #define HAVE_DLFCN_H 1
  6595. _ACEOF
  6596. fi
  6597. done
  6598. # Set options
  6599. enable_dlopen=no
  6600. enable_win32_dll=no
  6601. # Check whether --enable-shared was given.
  6602. if test "${enable_shared+set}" = set; then :
  6603. enableval=$enable_shared; p=${PACKAGE-default}
  6604. case $enableval in
  6605. yes) enable_shared=yes ;;
  6606. no) enable_shared=no ;;
  6607. *)
  6608. enable_shared=no
  6609. # Look at the argument we got. We use all the common list separators.
  6610. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6611. for pkg in $enableval; do
  6612. IFS="$lt_save_ifs"
  6613. if test "X$pkg" = "X$p"; then
  6614. enable_shared=yes
  6615. fi
  6616. done
  6617. IFS="$lt_save_ifs"
  6618. ;;
  6619. esac
  6620. else
  6621. enable_shared=yes
  6622. fi
  6623. # Check whether --enable-static was given.
  6624. if test "${enable_static+set}" = set; then :
  6625. enableval=$enable_static; p=${PACKAGE-default}
  6626. case $enableval in
  6627. yes) enable_static=yes ;;
  6628. no) enable_static=no ;;
  6629. *)
  6630. enable_static=no
  6631. # Look at the argument we got. We use all the common list separators.
  6632. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6633. for pkg in $enableval; do
  6634. IFS="$lt_save_ifs"
  6635. if test "X$pkg" = "X$p"; then
  6636. enable_static=yes
  6637. fi
  6638. done
  6639. IFS="$lt_save_ifs"
  6640. ;;
  6641. esac
  6642. else
  6643. enable_static=yes
  6644. fi
  6645. # Check whether --with-pic was given.
  6646. if test "${with_pic+set}" = set; then :
  6647. withval=$with_pic; pic_mode="$withval"
  6648. else
  6649. pic_mode=default
  6650. fi
  6651. test -z "$pic_mode" && pic_mode=default
  6652. # Check whether --enable-fast-install was given.
  6653. if test "${enable_fast_install+set}" = set; then :
  6654. enableval=$enable_fast_install; p=${PACKAGE-default}
  6655. case $enableval in
  6656. yes) enable_fast_install=yes ;;
  6657. no) enable_fast_install=no ;;
  6658. *)
  6659. enable_fast_install=no
  6660. # Look at the argument we got. We use all the common list separators.
  6661. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6662. for pkg in $enableval; do
  6663. IFS="$lt_save_ifs"
  6664. if test "X$pkg" = "X$p"; then
  6665. enable_fast_install=yes
  6666. fi
  6667. done
  6668. IFS="$lt_save_ifs"
  6669. ;;
  6670. esac
  6671. else
  6672. enable_fast_install=yes
  6673. fi
  6674. # This can be used to rebuild libtool when needed
  6675. LIBTOOL_DEPS="$ltmain"
  6676. # Always use our own libtool.
  6677. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6678. test -z "$LN_S" && LN_S="ln -s"
  6679. if test -n "${ZSH_VERSION+set}" ; then
  6680. setopt NO_GLOB_SUBST
  6681. fi
  6682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6683. $as_echo_n "checking for objdir... " >&6; }
  6684. if ${lt_cv_objdir+:} false; then :
  6685. $as_echo_n "(cached) " >&6
  6686. else
  6687. rm -f .libs 2>/dev/null
  6688. mkdir .libs 2>/dev/null
  6689. if test -d .libs; then
  6690. lt_cv_objdir=.libs
  6691. else
  6692. # MS-DOS does not allow filenames that begin with a dot.
  6693. lt_cv_objdir=_libs
  6694. fi
  6695. rmdir .libs 2>/dev/null
  6696. fi
  6697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6698. $as_echo "$lt_cv_objdir" >&6; }
  6699. objdir=$lt_cv_objdir
  6700. cat >>confdefs.h <<_ACEOF
  6701. #define LT_OBJDIR "$lt_cv_objdir/"
  6702. _ACEOF
  6703. case $host_os in
  6704. aix3*)
  6705. # AIX sometimes has problems with the GCC collect2 program. For some
  6706. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6707. # vanish in a puff of smoke.
  6708. if test "X${COLLECT_NAMES+set}" != Xset; then
  6709. COLLECT_NAMES=
  6710. export COLLECT_NAMES
  6711. fi
  6712. ;;
  6713. esac
  6714. # Global variables:
  6715. ofile=libtool
  6716. can_build_shared=yes
  6717. # All known linkers require a `.a' archive for static linking (except MSVC,
  6718. # which needs '.lib').
  6719. libext=a
  6720. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6721. old_CC="$CC"
  6722. old_CFLAGS="$CFLAGS"
  6723. # Set sane defaults for various variables
  6724. test -z "$CC" && CC=cc
  6725. test -z "$LTCC" && LTCC=$CC
  6726. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6727. test -z "$LD" && LD=ld
  6728. test -z "$ac_objext" && ac_objext=o
  6729. for cc_temp in $compiler""; do
  6730. case $cc_temp in
  6731. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6732. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6733. \-*) ;;
  6734. *) break;;
  6735. esac
  6736. done
  6737. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6738. # Only perform the check for file, if the check method requires it
  6739. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6740. case $deplibs_check_method in
  6741. file_magic*)
  6742. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6744. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6745. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6746. $as_echo_n "(cached) " >&6
  6747. else
  6748. case $MAGIC_CMD in
  6749. [\\/*] | ?:[\\/]*)
  6750. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6751. ;;
  6752. *)
  6753. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6754. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6755. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6756. for ac_dir in $ac_dummy; do
  6757. IFS="$lt_save_ifs"
  6758. test -z "$ac_dir" && ac_dir=.
  6759. if test -f $ac_dir/${ac_tool_prefix}file; then
  6760. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6761. if test -n "$file_magic_test_file"; then
  6762. case $deplibs_check_method in
  6763. "file_magic "*)
  6764. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6765. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6766. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6767. $EGREP "$file_magic_regex" > /dev/null; then
  6768. :
  6769. else
  6770. cat <<_LT_EOF 1>&2
  6771. *** Warning: the command libtool uses to detect shared libraries,
  6772. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6773. *** The result is that libtool may fail to recognize shared libraries
  6774. *** as such. This will affect the creation of libtool libraries that
  6775. *** depend on shared libraries, but programs linked with such libtool
  6776. *** libraries will work regardless of this problem. Nevertheless, you
  6777. *** may want to report the problem to your system manager and/or to
  6778. *** bug-libtool@gnu.org
  6779. _LT_EOF
  6780. fi ;;
  6781. esac
  6782. fi
  6783. break
  6784. fi
  6785. done
  6786. IFS="$lt_save_ifs"
  6787. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6788. ;;
  6789. esac
  6790. fi
  6791. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6792. if test -n "$MAGIC_CMD"; then
  6793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6794. $as_echo "$MAGIC_CMD" >&6; }
  6795. else
  6796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6797. $as_echo "no" >&6; }
  6798. fi
  6799. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6800. if test -n "$ac_tool_prefix"; then
  6801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6802. $as_echo_n "checking for file... " >&6; }
  6803. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6804. $as_echo_n "(cached) " >&6
  6805. else
  6806. case $MAGIC_CMD in
  6807. [\\/*] | ?:[\\/]*)
  6808. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6809. ;;
  6810. *)
  6811. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6812. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6813. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6814. for ac_dir in $ac_dummy; do
  6815. IFS="$lt_save_ifs"
  6816. test -z "$ac_dir" && ac_dir=.
  6817. if test -f $ac_dir/file; then
  6818. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6819. if test -n "$file_magic_test_file"; then
  6820. case $deplibs_check_method in
  6821. "file_magic "*)
  6822. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6823. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6824. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6825. $EGREP "$file_magic_regex" > /dev/null; then
  6826. :
  6827. else
  6828. cat <<_LT_EOF 1>&2
  6829. *** Warning: the command libtool uses to detect shared libraries,
  6830. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6831. *** The result is that libtool may fail to recognize shared libraries
  6832. *** as such. This will affect the creation of libtool libraries that
  6833. *** depend on shared libraries, but programs linked with such libtool
  6834. *** libraries will work regardless of this problem. Nevertheless, you
  6835. *** may want to report the problem to your system manager and/or to
  6836. *** bug-libtool@gnu.org
  6837. _LT_EOF
  6838. fi ;;
  6839. esac
  6840. fi
  6841. break
  6842. fi
  6843. done
  6844. IFS="$lt_save_ifs"
  6845. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6846. ;;
  6847. esac
  6848. fi
  6849. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6850. if test -n "$MAGIC_CMD"; then
  6851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6852. $as_echo "$MAGIC_CMD" >&6; }
  6853. else
  6854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6855. $as_echo "no" >&6; }
  6856. fi
  6857. else
  6858. MAGIC_CMD=:
  6859. fi
  6860. fi
  6861. fi
  6862. ;;
  6863. esac
  6864. # Use C for the default configuration in the libtool script
  6865. lt_save_CC="$CC"
  6866. ac_ext=c
  6867. ac_cpp='$CPP $CPPFLAGS'
  6868. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6869. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6870. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6871. # Source file extension for C test sources.
  6872. ac_ext=c
  6873. # Object file extension for compiled C test sources.
  6874. objext=o
  6875. objext=$objext
  6876. # Code to be used in simple compile tests
  6877. lt_simple_compile_test_code="int some_variable = 0;"
  6878. # Code to be used in simple link tests
  6879. lt_simple_link_test_code='int main(){return(0);}'
  6880. # If no C compiler was specified, use CC.
  6881. LTCC=${LTCC-"$CC"}
  6882. # If no C compiler flags were specified, use CFLAGS.
  6883. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6884. # Allow CC to be a program name with arguments.
  6885. compiler=$CC
  6886. # Save the default compiler, since it gets overwritten when the other
  6887. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6888. compiler_DEFAULT=$CC
  6889. # save warnings/boilerplate of simple test code
  6890. ac_outfile=conftest.$ac_objext
  6891. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6892. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6893. _lt_compiler_boilerplate=`cat conftest.err`
  6894. $RM conftest*
  6895. ac_outfile=conftest.$ac_objext
  6896. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6897. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6898. _lt_linker_boilerplate=`cat conftest.err`
  6899. $RM -r conftest*
  6900. ## CAVEAT EMPTOR:
  6901. ## There is no encapsulation within the following macros, do not change
  6902. ## the running order or otherwise move them around unless you know exactly
  6903. ## what you are doing...
  6904. if test -n "$compiler"; then
  6905. lt_prog_compiler_no_builtin_flag=
  6906. if test "$GCC" = yes; then
  6907. case $cc_basename in
  6908. nvcc*)
  6909. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6910. *)
  6911. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6912. esac
  6913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6914. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6915. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6916. $as_echo_n "(cached) " >&6
  6917. else
  6918. lt_cv_prog_compiler_rtti_exceptions=no
  6919. ac_outfile=conftest.$ac_objext
  6920. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6921. lt_compiler_flag="-fno-rtti -fno-exceptions"
  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_rtti_exceptions=yes
  6943. fi
  6944. fi
  6945. $RM conftest*
  6946. fi
  6947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6948. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6949. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6950. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6951. else
  6952. :
  6953. fi
  6954. fi
  6955. lt_prog_compiler_wl=
  6956. lt_prog_compiler_pic=
  6957. lt_prog_compiler_static=
  6958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6959. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6960. if test "$GCC" = yes; then
  6961. lt_prog_compiler_wl='-Wl,'
  6962. lt_prog_compiler_static='-static'
  6963. case $host_os in
  6964. aix*)
  6965. # All AIX code is PIC.
  6966. if test "$host_cpu" = ia64; then
  6967. # AIX 5 now supports IA64 processor
  6968. lt_prog_compiler_static='-Bstatic'
  6969. fi
  6970. lt_prog_compiler_pic='-fPIC'
  6971. ;;
  6972. amigaos*)
  6973. case $host_cpu in
  6974. powerpc)
  6975. # see comment about AmigaOS4 .so support
  6976. lt_prog_compiler_pic='-fPIC'
  6977. ;;
  6978. m68k)
  6979. # FIXME: we need at least 68020 code to build shared libraries, but
  6980. # adding the `-m68020' flag to GCC prevents building anything better,
  6981. # like `-m68040'.
  6982. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6983. ;;
  6984. esac
  6985. ;;
  6986. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6987. # PIC is the default for these OSes.
  6988. ;;
  6989. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6990. # This hack is so that the source file can tell whether it is being
  6991. # built for inclusion in a dll (and should export symbols for example).
  6992. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6993. # (--disable-auto-import) libraries
  6994. lt_prog_compiler_pic='-DDLL_EXPORT'
  6995. ;;
  6996. darwin* | rhapsody*)
  6997. # PIC is the default on this platform
  6998. # Common symbols not allowed in MH_DYLIB files
  6999. lt_prog_compiler_pic='-fno-common'
  7000. ;;
  7001. haiku*)
  7002. # PIC is the default for Haiku.
  7003. # The "-static" flag exists, but is broken.
  7004. lt_prog_compiler_static=
  7005. ;;
  7006. hpux*)
  7007. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7008. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7009. # sets the default TLS model and affects inlining.
  7010. case $host_cpu in
  7011. hppa*64*)
  7012. # +Z the default
  7013. ;;
  7014. *)
  7015. lt_prog_compiler_pic='-fPIC'
  7016. ;;
  7017. esac
  7018. ;;
  7019. interix[3-9]*)
  7020. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7021. # Instead, we relocate shared libraries at runtime.
  7022. ;;
  7023. msdosdjgpp*)
  7024. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7025. # on systems that don't support them.
  7026. lt_prog_compiler_can_build_shared=no
  7027. enable_shared=no
  7028. ;;
  7029. *nto* | *qnx*)
  7030. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7031. # it will coredump.
  7032. lt_prog_compiler_pic='-fPIC -shared'
  7033. ;;
  7034. sysv4*MP*)
  7035. if test -d /usr/nec; then
  7036. lt_prog_compiler_pic=-Kconform_pic
  7037. fi
  7038. ;;
  7039. *)
  7040. lt_prog_compiler_pic='-fPIC'
  7041. ;;
  7042. esac
  7043. case $cc_basename in
  7044. nvcc*) # Cuda Compiler Driver 2.2
  7045. lt_prog_compiler_wl='-Xlinker '
  7046. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7047. ;;
  7048. esac
  7049. else
  7050. # PORTME Check for flag to pass linker flags through the system compiler.
  7051. case $host_os in
  7052. aix*)
  7053. lt_prog_compiler_wl='-Wl,'
  7054. if test "$host_cpu" = ia64; then
  7055. # AIX 5 now supports IA64 processor
  7056. lt_prog_compiler_static='-Bstatic'
  7057. else
  7058. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7059. fi
  7060. ;;
  7061. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7062. # This hack is so that the source file can tell whether it is being
  7063. # built for inclusion in a dll (and should export symbols for example).
  7064. lt_prog_compiler_pic='-DDLL_EXPORT'
  7065. ;;
  7066. hpux9* | hpux10* | hpux11*)
  7067. lt_prog_compiler_wl='-Wl,'
  7068. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7069. # not for PA HP-UX.
  7070. case $host_cpu in
  7071. hppa*64*|ia64*)
  7072. # +Z the default
  7073. ;;
  7074. *)
  7075. lt_prog_compiler_pic='+Z'
  7076. ;;
  7077. esac
  7078. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7079. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7080. ;;
  7081. irix5* | irix6* | nonstopux*)
  7082. lt_prog_compiler_wl='-Wl,'
  7083. # PIC (with -KPIC) is the default.
  7084. lt_prog_compiler_static='-non_shared'
  7085. ;;
  7086. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7087. case $cc_basename in
  7088. # old Intel for x86_64 which still supported -KPIC.
  7089. ecc*)
  7090. lt_prog_compiler_wl='-Wl,'
  7091. lt_prog_compiler_pic='-KPIC'
  7092. lt_prog_compiler_static='-static'
  7093. ;;
  7094. # icc used to be incompatible with GCC.
  7095. # ICC 10 doesn't accept -KPIC any more.
  7096. icc* | ifort*)
  7097. lt_prog_compiler_wl='-Wl,'
  7098. lt_prog_compiler_pic='-fPIC'
  7099. lt_prog_compiler_static='-static'
  7100. ;;
  7101. # Lahey Fortran 8.1.
  7102. lf95*)
  7103. lt_prog_compiler_wl='-Wl,'
  7104. lt_prog_compiler_pic='--shared'
  7105. lt_prog_compiler_static='--static'
  7106. ;;
  7107. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7108. # Portland Group compilers (*not* the Pentium gcc compiler,
  7109. # which looks to be a dead project)
  7110. lt_prog_compiler_wl='-Wl,'
  7111. lt_prog_compiler_pic='-fpic'
  7112. lt_prog_compiler_static='-Bstatic'
  7113. ;;
  7114. ccc*)
  7115. lt_prog_compiler_wl='-Wl,'
  7116. # All Alpha code is PIC.
  7117. lt_prog_compiler_static='-non_shared'
  7118. ;;
  7119. xl* | bgxl* | bgf* | mpixl*)
  7120. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7121. lt_prog_compiler_wl='-Wl,'
  7122. lt_prog_compiler_pic='-qpic'
  7123. lt_prog_compiler_static='-qstaticlink'
  7124. ;;
  7125. *)
  7126. case `$CC -V 2>&1 | sed 5q` in
  7127. *Sun\ F* | *Sun*Fortran*)
  7128. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7129. lt_prog_compiler_pic='-KPIC'
  7130. lt_prog_compiler_static='-Bstatic'
  7131. lt_prog_compiler_wl=''
  7132. ;;
  7133. *Sun\ C*)
  7134. # Sun C 5.9
  7135. lt_prog_compiler_pic='-KPIC'
  7136. lt_prog_compiler_static='-Bstatic'
  7137. lt_prog_compiler_wl='-Wl,'
  7138. ;;
  7139. esac
  7140. ;;
  7141. esac
  7142. ;;
  7143. newsos6)
  7144. lt_prog_compiler_pic='-KPIC'
  7145. lt_prog_compiler_static='-Bstatic'
  7146. ;;
  7147. *nto* | *qnx*)
  7148. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7149. # it will coredump.
  7150. lt_prog_compiler_pic='-fPIC -shared'
  7151. ;;
  7152. osf3* | osf4* | osf5*)
  7153. lt_prog_compiler_wl='-Wl,'
  7154. # All OSF/1 code is PIC.
  7155. lt_prog_compiler_static='-non_shared'
  7156. ;;
  7157. rdos*)
  7158. lt_prog_compiler_static='-non_shared'
  7159. ;;
  7160. solaris*)
  7161. lt_prog_compiler_pic='-KPIC'
  7162. lt_prog_compiler_static='-Bstatic'
  7163. case $cc_basename in
  7164. f77* | f90* | f95*)
  7165. lt_prog_compiler_wl='-Qoption ld ';;
  7166. *)
  7167. lt_prog_compiler_wl='-Wl,';;
  7168. esac
  7169. ;;
  7170. sunos4*)
  7171. lt_prog_compiler_wl='-Qoption ld '
  7172. lt_prog_compiler_pic='-PIC'
  7173. lt_prog_compiler_static='-Bstatic'
  7174. ;;
  7175. sysv4 | sysv4.2uw2* | sysv4.3*)
  7176. lt_prog_compiler_wl='-Wl,'
  7177. lt_prog_compiler_pic='-KPIC'
  7178. lt_prog_compiler_static='-Bstatic'
  7179. ;;
  7180. sysv4*MP*)
  7181. if test -d /usr/nec ;then
  7182. lt_prog_compiler_pic='-Kconform_pic'
  7183. lt_prog_compiler_static='-Bstatic'
  7184. fi
  7185. ;;
  7186. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7187. lt_prog_compiler_wl='-Wl,'
  7188. lt_prog_compiler_pic='-KPIC'
  7189. lt_prog_compiler_static='-Bstatic'
  7190. ;;
  7191. unicos*)
  7192. lt_prog_compiler_wl='-Wl,'
  7193. lt_prog_compiler_can_build_shared=no
  7194. ;;
  7195. uts4*)
  7196. lt_prog_compiler_pic='-pic'
  7197. lt_prog_compiler_static='-Bstatic'
  7198. ;;
  7199. *)
  7200. lt_prog_compiler_can_build_shared=no
  7201. ;;
  7202. esac
  7203. fi
  7204. case $host_os in
  7205. # For platforms which do not support PIC, -DPIC is meaningless:
  7206. *djgpp*)
  7207. lt_prog_compiler_pic=
  7208. ;;
  7209. *)
  7210. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7211. ;;
  7212. esac
  7213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7214. $as_echo "$lt_prog_compiler_pic" >&6; }
  7215. #
  7216. # Check to make sure the PIC flag actually works.
  7217. #
  7218. if test -n "$lt_prog_compiler_pic"; then
  7219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7220. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7221. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7222. $as_echo_n "(cached) " >&6
  7223. else
  7224. lt_cv_prog_compiler_pic_works=no
  7225. ac_outfile=conftest.$ac_objext
  7226. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7227. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7228. # Insert the option either (1) after the last *FLAGS variable, or
  7229. # (2) before a word containing "conftest.", or (3) at the end.
  7230. # Note that $ac_compile itself does not contain backslashes and begins
  7231. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7232. # The option is referenced via a variable to avoid confusing sed.
  7233. lt_compile=`echo "$ac_compile" | $SED \
  7234. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7235. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7236. -e 's:$: $lt_compiler_flag:'`
  7237. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7238. (eval "$lt_compile" 2>conftest.err)
  7239. ac_status=$?
  7240. cat conftest.err >&5
  7241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7242. if (exit $ac_status) && test -s "$ac_outfile"; then
  7243. # The compiler can only warn and ignore the option if not recognized
  7244. # So say no if there are warnings other than the usual output.
  7245. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7246. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7247. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7248. lt_cv_prog_compiler_pic_works=yes
  7249. fi
  7250. fi
  7251. $RM conftest*
  7252. fi
  7253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7254. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7255. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7256. case $lt_prog_compiler_pic in
  7257. "" | " "*) ;;
  7258. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7259. esac
  7260. else
  7261. lt_prog_compiler_pic=
  7262. lt_prog_compiler_can_build_shared=no
  7263. fi
  7264. fi
  7265. #
  7266. # Check to make sure the static flag actually works.
  7267. #
  7268. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7270. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7271. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7272. $as_echo_n "(cached) " >&6
  7273. else
  7274. lt_cv_prog_compiler_static_works=no
  7275. save_LDFLAGS="$LDFLAGS"
  7276. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7277. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7278. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7279. # The linker can only warn and ignore the option if not recognized
  7280. # So say no if there are warnings
  7281. if test -s conftest.err; then
  7282. # Append any errors to the config.log.
  7283. cat conftest.err 1>&5
  7284. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7285. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7286. if diff conftest.exp conftest.er2 >/dev/null; then
  7287. lt_cv_prog_compiler_static_works=yes
  7288. fi
  7289. else
  7290. lt_cv_prog_compiler_static_works=yes
  7291. fi
  7292. fi
  7293. $RM -r conftest*
  7294. LDFLAGS="$save_LDFLAGS"
  7295. fi
  7296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7297. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7298. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7299. :
  7300. else
  7301. lt_prog_compiler_static=
  7302. fi
  7303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7304. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7305. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7306. $as_echo_n "(cached) " >&6
  7307. else
  7308. lt_cv_prog_compiler_c_o=no
  7309. $RM -r conftest 2>/dev/null
  7310. mkdir conftest
  7311. cd conftest
  7312. mkdir out
  7313. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7314. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7315. # Insert the option either (1) after the last *FLAGS variable, or
  7316. # (2) before a word containing "conftest.", or (3) at the end.
  7317. # Note that $ac_compile itself does not contain backslashes and begins
  7318. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7319. lt_compile=`echo "$ac_compile" | $SED \
  7320. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7321. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7322. -e 's:$: $lt_compiler_flag:'`
  7323. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7324. (eval "$lt_compile" 2>out/conftest.err)
  7325. ac_status=$?
  7326. cat out/conftest.err >&5
  7327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7328. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7329. then
  7330. # The compiler can only warn and ignore the option if not recognized
  7331. # So say no if there are warnings
  7332. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7333. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7334. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7335. lt_cv_prog_compiler_c_o=yes
  7336. fi
  7337. fi
  7338. chmod u+w . 2>&5
  7339. $RM conftest*
  7340. # SGI C++ compiler will create directory out/ii_files/ for
  7341. # template instantiation
  7342. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7343. $RM out/* && rmdir out
  7344. cd ..
  7345. $RM -r conftest
  7346. $RM conftest*
  7347. fi
  7348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7349. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7351. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7352. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7353. $as_echo_n "(cached) " >&6
  7354. else
  7355. lt_cv_prog_compiler_c_o=no
  7356. $RM -r conftest 2>/dev/null
  7357. mkdir conftest
  7358. cd conftest
  7359. mkdir out
  7360. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7361. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7362. # Insert the option either (1) after the last *FLAGS variable, or
  7363. # (2) before a word containing "conftest.", or (3) at the end.
  7364. # Note that $ac_compile itself does not contain backslashes and begins
  7365. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7366. lt_compile=`echo "$ac_compile" | $SED \
  7367. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7368. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7369. -e 's:$: $lt_compiler_flag:'`
  7370. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7371. (eval "$lt_compile" 2>out/conftest.err)
  7372. ac_status=$?
  7373. cat out/conftest.err >&5
  7374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7375. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7376. then
  7377. # The compiler can only warn and ignore the option if not recognized
  7378. # So say no if there are warnings
  7379. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7380. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7381. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7382. lt_cv_prog_compiler_c_o=yes
  7383. fi
  7384. fi
  7385. chmod u+w . 2>&5
  7386. $RM conftest*
  7387. # SGI C++ compiler will create directory out/ii_files/ for
  7388. # template instantiation
  7389. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7390. $RM out/* && rmdir out
  7391. cd ..
  7392. $RM -r conftest
  7393. $RM conftest*
  7394. fi
  7395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7396. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7397. hard_links="nottested"
  7398. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7399. # do not overwrite the value of need_locks provided by the user
  7400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7401. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7402. hard_links=yes
  7403. $RM conftest*
  7404. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7405. touch conftest.a
  7406. ln conftest.a conftest.b 2>&5 || hard_links=no
  7407. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7409. $as_echo "$hard_links" >&6; }
  7410. if test "$hard_links" = no; then
  7411. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7412. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7413. need_locks=warn
  7414. fi
  7415. else
  7416. need_locks=no
  7417. fi
  7418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7419. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7420. runpath_var=
  7421. allow_undefined_flag=
  7422. always_export_symbols=no
  7423. archive_cmds=
  7424. archive_expsym_cmds=
  7425. compiler_needs_object=no
  7426. enable_shared_with_static_runtimes=no
  7427. export_dynamic_flag_spec=
  7428. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7429. hardcode_automatic=no
  7430. hardcode_direct=no
  7431. hardcode_direct_absolute=no
  7432. hardcode_libdir_flag_spec=
  7433. hardcode_libdir_flag_spec_ld=
  7434. hardcode_libdir_separator=
  7435. hardcode_minus_L=no
  7436. hardcode_shlibpath_var=unsupported
  7437. inherit_rpath=no
  7438. link_all_deplibs=unknown
  7439. module_cmds=
  7440. module_expsym_cmds=
  7441. old_archive_from_new_cmds=
  7442. old_archive_from_expsyms_cmds=
  7443. thread_safe_flag_spec=
  7444. whole_archive_flag_spec=
  7445. # include_expsyms should be a list of space-separated symbols to be *always*
  7446. # included in the symbol list
  7447. include_expsyms=
  7448. # exclude_expsyms can be an extended regexp of symbols to exclude
  7449. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7450. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7451. # as well as any symbol that contains `d'.
  7452. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7453. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7454. # platforms (ab)use it in PIC code, but their linkers get confused if
  7455. # the symbol is explicitly referenced. Since portable code cannot
  7456. # rely on this symbol name, it's probably fine to never include it in
  7457. # preloaded symbol tables.
  7458. # Exclude shared library initialization/finalization symbols.
  7459. extract_expsyms_cmds=
  7460. case $host_os in
  7461. cygwin* | mingw* | pw32* | cegcc*)
  7462. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7463. # When not using gcc, we currently assume that we are using
  7464. # Microsoft Visual C++.
  7465. if test "$GCC" != yes; then
  7466. with_gnu_ld=no
  7467. fi
  7468. ;;
  7469. interix*)
  7470. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7471. with_gnu_ld=yes
  7472. ;;
  7473. openbsd*)
  7474. with_gnu_ld=no
  7475. ;;
  7476. esac
  7477. ld_shlibs=yes
  7478. # On some targets, GNU ld is compatible enough with the native linker
  7479. # that we're better off using the native interface for both.
  7480. lt_use_gnu_ld_interface=no
  7481. if test "$with_gnu_ld" = yes; then
  7482. case $host_os in
  7483. aix*)
  7484. # The AIX port of GNU ld has always aspired to compatibility
  7485. # with the native linker. However, as the warning in the GNU ld
  7486. # block says, versions before 2.19.5* couldn't really create working
  7487. # shared libraries, regardless of the interface used.
  7488. case `$LD -v 2>&1` in
  7489. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7490. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7491. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7492. *)
  7493. lt_use_gnu_ld_interface=yes
  7494. ;;
  7495. esac
  7496. ;;
  7497. *)
  7498. lt_use_gnu_ld_interface=yes
  7499. ;;
  7500. esac
  7501. fi
  7502. if test "$lt_use_gnu_ld_interface" = yes; then
  7503. # If archive_cmds runs LD, not CC, wlarc should be empty
  7504. wlarc='${wl}'
  7505. # Set some defaults for GNU ld with shared library support. These
  7506. # are reset later if shared libraries are not supported. Putting them
  7507. # here allows them to be overridden if necessary.
  7508. runpath_var=LD_RUN_PATH
  7509. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7510. export_dynamic_flag_spec='${wl}--export-dynamic'
  7511. # ancient GNU ld didn't support --whole-archive et. al.
  7512. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7513. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7514. else
  7515. whole_archive_flag_spec=
  7516. fi
  7517. supports_anon_versioning=no
  7518. case `$LD -v 2>&1` in
  7519. *GNU\ gold*) supports_anon_versioning=yes ;;
  7520. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7521. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7522. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7523. *\ 2.11.*) ;; # other 2.11 versions
  7524. *) supports_anon_versioning=yes ;;
  7525. esac
  7526. # See if GNU ld supports shared libraries.
  7527. case $host_os in
  7528. aix[3-9]*)
  7529. # On AIX/PPC, the GNU linker is very broken
  7530. if test "$host_cpu" != ia64; then
  7531. ld_shlibs=no
  7532. cat <<_LT_EOF 1>&2
  7533. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7534. *** to be unable to reliably create shared libraries on AIX.
  7535. *** Therefore, libtool is disabling shared libraries support. If you
  7536. *** really care for shared libraries, you may want to install binutils
  7537. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7538. *** You will then need to restart the configuration process.
  7539. _LT_EOF
  7540. fi
  7541. ;;
  7542. amigaos*)
  7543. case $host_cpu in
  7544. powerpc)
  7545. # see comment about AmigaOS4 .so support
  7546. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7547. archive_expsym_cmds=''
  7548. ;;
  7549. m68k)
  7550. 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)'
  7551. hardcode_libdir_flag_spec='-L$libdir'
  7552. hardcode_minus_L=yes
  7553. ;;
  7554. esac
  7555. ;;
  7556. beos*)
  7557. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7558. allow_undefined_flag=unsupported
  7559. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7560. # support --undefined. This deserves some investigation. FIXME
  7561. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7562. else
  7563. ld_shlibs=no
  7564. fi
  7565. ;;
  7566. cygwin* | mingw* | pw32* | cegcc*)
  7567. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7568. # as there is no search path for DLLs.
  7569. hardcode_libdir_flag_spec='-L$libdir'
  7570. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7571. allow_undefined_flag=unsupported
  7572. always_export_symbols=no
  7573. enable_shared_with_static_runtimes=yes
  7574. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7575. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7576. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7577. # If the export-symbols file already is a .def file (1st line
  7578. # is EXPORTS), use it as is; otherwise, prepend...
  7579. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7580. cp $export_symbols $output_objdir/$soname.def;
  7581. else
  7582. echo EXPORTS > $output_objdir/$soname.def;
  7583. cat $export_symbols >> $output_objdir/$soname.def;
  7584. fi~
  7585. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7586. else
  7587. ld_shlibs=no
  7588. fi
  7589. ;;
  7590. haiku*)
  7591. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7592. link_all_deplibs=yes
  7593. ;;
  7594. interix[3-9]*)
  7595. hardcode_direct=no
  7596. hardcode_shlibpath_var=no
  7597. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7598. export_dynamic_flag_spec='${wl}-E'
  7599. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7600. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7601. # default) and relocated if they conflict, which is a slow very memory
  7602. # consuming and fragmenting process. To avoid this, we pick a random,
  7603. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7604. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7605. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7606. 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'
  7607. ;;
  7608. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  7609. tmp_diet=no
  7610. if test "$host_os" = linux-dietlibc; then
  7611. case $cc_basename in
  7612. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7613. esac
  7614. fi
  7615. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7616. && test "$tmp_diet" = no
  7617. then
  7618. tmp_addflag=' $pic_flag'
  7619. tmp_sharedflag='-shared'
  7620. case $cc_basename,$host_cpu in
  7621. pgcc*) # Portland Group C compiler
  7622. 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'
  7623. tmp_addflag=' $pic_flag'
  7624. ;;
  7625. pgf77* | pgf90* | pgf95* | pgfortran*)
  7626. # Portland Group f77 and f90 compilers
  7627. 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'
  7628. tmp_addflag=' $pic_flag -Mnomain' ;;
  7629. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7630. tmp_addflag=' -i_dynamic' ;;
  7631. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7632. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7633. ifc* | ifort*) # Intel Fortran compiler
  7634. tmp_addflag=' -nofor_main' ;;
  7635. lf95*) # Lahey Fortran 8.1
  7636. whole_archive_flag_spec=
  7637. tmp_sharedflag='--shared' ;;
  7638. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7639. tmp_sharedflag='-qmkshrobj'
  7640. tmp_addflag= ;;
  7641. nvcc*) # Cuda Compiler Driver 2.2
  7642. 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'
  7643. compiler_needs_object=yes
  7644. ;;
  7645. esac
  7646. case `$CC -V 2>&1 | sed 5q` in
  7647. *Sun\ C*) # Sun C 5.9
  7648. 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'
  7649. compiler_needs_object=yes
  7650. tmp_sharedflag='-G' ;;
  7651. *Sun\ F*) # Sun Fortran 8.3
  7652. tmp_sharedflag='-G' ;;
  7653. esac
  7654. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7655. if test "x$supports_anon_versioning" = xyes; then
  7656. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7657. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7658. echo "local: *; };" >> $output_objdir/$libname.ver~
  7659. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7660. fi
  7661. case $cc_basename in
  7662. xlf* | bgf* | bgxlf* | mpixlf*)
  7663. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7664. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7665. hardcode_libdir_flag_spec=
  7666. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7667. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7668. if test "x$supports_anon_versioning" = xyes; then
  7669. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7670. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7671. echo "local: *; };" >> $output_objdir/$libname.ver~
  7672. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7673. fi
  7674. ;;
  7675. esac
  7676. else
  7677. ld_shlibs=no
  7678. fi
  7679. ;;
  7680. netbsd*)
  7681. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7682. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7683. wlarc=
  7684. else
  7685. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7686. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7687. fi
  7688. ;;
  7689. solaris*)
  7690. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7691. ld_shlibs=no
  7692. cat <<_LT_EOF 1>&2
  7693. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7694. *** create shared libraries on Solaris systems. Therefore, libtool
  7695. *** is disabling shared libraries support. We urge you to upgrade GNU
  7696. *** binutils to release 2.9.1 or newer. Another option is to modify
  7697. *** your PATH or compiler configuration so that the native linker is
  7698. *** used, and then restart.
  7699. _LT_EOF
  7700. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7701. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7702. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7703. else
  7704. ld_shlibs=no
  7705. fi
  7706. ;;
  7707. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7708. case `$LD -v 2>&1` in
  7709. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7710. ld_shlibs=no
  7711. cat <<_LT_EOF 1>&2
  7712. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7713. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7714. *** is disabling shared libraries support. We urge you to upgrade GNU
  7715. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7716. *** your PATH or compiler configuration so that the native linker is
  7717. *** used, and then restart.
  7718. _LT_EOF
  7719. ;;
  7720. *)
  7721. # For security reasons, it is highly recommended that you always
  7722. # use absolute paths for naming shared libraries, and exclude the
  7723. # DT_RUNPATH tag from executables and libraries. But doing so
  7724. # requires that you compile everything twice, which is a pain.
  7725. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7726. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7727. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7728. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7729. else
  7730. ld_shlibs=no
  7731. fi
  7732. ;;
  7733. esac
  7734. ;;
  7735. sunos4*)
  7736. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7737. wlarc=
  7738. hardcode_direct=yes
  7739. hardcode_shlibpath_var=no
  7740. ;;
  7741. *)
  7742. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7743. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7744. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7745. else
  7746. ld_shlibs=no
  7747. fi
  7748. ;;
  7749. esac
  7750. if test "$ld_shlibs" = no; then
  7751. runpath_var=
  7752. hardcode_libdir_flag_spec=
  7753. export_dynamic_flag_spec=
  7754. whole_archive_flag_spec=
  7755. fi
  7756. else
  7757. # PORTME fill in a description of your system's linker (not GNU ld)
  7758. case $host_os in
  7759. aix3*)
  7760. allow_undefined_flag=unsupported
  7761. always_export_symbols=yes
  7762. 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'
  7763. # Note: this linker hardcodes the directories in LIBPATH if there
  7764. # are no directories specified by -L.
  7765. hardcode_minus_L=yes
  7766. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7767. # Neither direct hardcoding nor static linking is supported with a
  7768. # broken collect2.
  7769. hardcode_direct=unsupported
  7770. fi
  7771. ;;
  7772. aix[4-9]*)
  7773. if test "$host_cpu" = ia64; then
  7774. # On IA64, the linker does run time linking by default, so we don't
  7775. # have to do anything special.
  7776. aix_use_runtimelinking=no
  7777. exp_sym_flag='-Bexport'
  7778. no_entry_flag=""
  7779. else
  7780. # If we're using GNU nm, then we don't want the "-C" option.
  7781. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7782. # Also, AIX nm treats weak defined symbols like other global
  7783. # defined symbols, whereas GNU nm marks them as "W".
  7784. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7785. 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'
  7786. else
  7787. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7788. fi
  7789. aix_use_runtimelinking=no
  7790. # Test if we are trying to use run time linking or normal
  7791. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7792. # need to do runtime linking.
  7793. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7794. for ld_flag in $LDFLAGS; do
  7795. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7796. aix_use_runtimelinking=yes
  7797. break
  7798. fi
  7799. done
  7800. ;;
  7801. esac
  7802. exp_sym_flag='-bexport'
  7803. no_entry_flag='-bnoentry'
  7804. fi
  7805. # When large executables or shared objects are built, AIX ld can
  7806. # have problems creating the table of contents. If linking a library
  7807. # or program results in "error TOC overflow" add -mminimal-toc to
  7808. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7809. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7810. archive_cmds=''
  7811. hardcode_direct=yes
  7812. hardcode_direct_absolute=yes
  7813. hardcode_libdir_separator=':'
  7814. link_all_deplibs=yes
  7815. file_list_spec='${wl}-f,'
  7816. if test "$GCC" = yes; then
  7817. case $host_os in aix4.[012]|aix4.[012].*)
  7818. # We only want to do this on AIX 4.2 and lower, the check
  7819. # below for broken collect2 doesn't work under 4.3+
  7820. collect2name=`${CC} -print-prog-name=collect2`
  7821. if test -f "$collect2name" &&
  7822. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7823. then
  7824. # We have reworked collect2
  7825. :
  7826. else
  7827. # We have old collect2
  7828. hardcode_direct=unsupported
  7829. # It fails to find uninstalled libraries when the uninstalled
  7830. # path is not listed in the libpath. Setting hardcode_minus_L
  7831. # to unsupported forces relinking
  7832. hardcode_minus_L=yes
  7833. hardcode_libdir_flag_spec='-L$libdir'
  7834. hardcode_libdir_separator=
  7835. fi
  7836. ;;
  7837. esac
  7838. shared_flag='-shared'
  7839. if test "$aix_use_runtimelinking" = yes; then
  7840. shared_flag="$shared_flag "'${wl}-G'
  7841. fi
  7842. else
  7843. # not using gcc
  7844. if test "$host_cpu" = ia64; then
  7845. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7846. # chokes on -Wl,-G. The following line is correct:
  7847. shared_flag='-G'
  7848. else
  7849. if test "$aix_use_runtimelinking" = yes; then
  7850. shared_flag='${wl}-G'
  7851. else
  7852. shared_flag='${wl}-bM:SRE'
  7853. fi
  7854. fi
  7855. fi
  7856. export_dynamic_flag_spec='${wl}-bexpall'
  7857. # It seems that -bexpall does not export symbols beginning with
  7858. # underscore (_), so it is better to generate a list of symbols to export.
  7859. always_export_symbols=yes
  7860. if test "$aix_use_runtimelinking" = yes; then
  7861. # Warning - without using the other runtime loading flags (-brtl),
  7862. # -berok will link without error, but may produce a broken library.
  7863. allow_undefined_flag='-berok'
  7864. # Determine the default libpath from the value encoded in an
  7865. # empty executable.
  7866. if test x$gcc_no_link = xyes; then
  7867. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7868. fi
  7869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7870. /* end confdefs.h. */
  7871. int
  7872. main ()
  7873. {
  7874. ;
  7875. return 0;
  7876. }
  7877. _ACEOF
  7878. if ac_fn_c_try_link "$LINENO"; then :
  7879. lt_aix_libpath_sed='
  7880. /Import File Strings/,/^$/ {
  7881. /^0/ {
  7882. s/^0 *\(.*\)$/\1/
  7883. p
  7884. }
  7885. }'
  7886. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7887. # Check for a 64-bit object if we didn't find anything.
  7888. if test -z "$aix_libpath"; then
  7889. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7890. fi
  7891. fi
  7892. rm -f core conftest.err conftest.$ac_objext \
  7893. conftest$ac_exeext conftest.$ac_ext
  7894. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7895. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7896. 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"
  7897. else
  7898. if test "$host_cpu" = ia64; then
  7899. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7900. allow_undefined_flag="-z nodefs"
  7901. 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"
  7902. else
  7903. # Determine the default libpath from the value encoded in an
  7904. # empty executable.
  7905. if test x$gcc_no_link = xyes; then
  7906. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7907. fi
  7908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7909. /* end confdefs.h. */
  7910. int
  7911. main ()
  7912. {
  7913. ;
  7914. return 0;
  7915. }
  7916. _ACEOF
  7917. if ac_fn_c_try_link "$LINENO"; then :
  7918. lt_aix_libpath_sed='
  7919. /Import File Strings/,/^$/ {
  7920. /^0/ {
  7921. s/^0 *\(.*\)$/\1/
  7922. p
  7923. }
  7924. }'
  7925. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7926. # Check for a 64-bit object if we didn't find anything.
  7927. if test -z "$aix_libpath"; then
  7928. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7929. fi
  7930. fi
  7931. rm -f core conftest.err conftest.$ac_objext \
  7932. conftest$ac_exeext conftest.$ac_ext
  7933. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7934. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7935. # Warning - without using the other run time loading flags,
  7936. # -berok will link without error, but may produce a broken library.
  7937. no_undefined_flag=' ${wl}-bernotok'
  7938. allow_undefined_flag=' ${wl}-berok'
  7939. if test "$with_gnu_ld" = yes; then
  7940. # We only use this code for GNU lds that support --whole-archive.
  7941. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7942. else
  7943. # Exported symbols can be pulled into shared objects from archives
  7944. whole_archive_flag_spec='$convenience'
  7945. fi
  7946. archive_cmds_need_lc=yes
  7947. # This is similar to how AIX traditionally builds its shared libraries.
  7948. 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'
  7949. fi
  7950. fi
  7951. ;;
  7952. amigaos*)
  7953. case $host_cpu in
  7954. powerpc)
  7955. # see comment about AmigaOS4 .so support
  7956. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7957. archive_expsym_cmds=''
  7958. ;;
  7959. m68k)
  7960. 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)'
  7961. hardcode_libdir_flag_spec='-L$libdir'
  7962. hardcode_minus_L=yes
  7963. ;;
  7964. esac
  7965. ;;
  7966. bsdi[45]*)
  7967. export_dynamic_flag_spec=-rdynamic
  7968. ;;
  7969. cygwin* | mingw* | pw32* | cegcc*)
  7970. # When not using gcc, we currently assume that we are using
  7971. # Microsoft Visual C++.
  7972. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7973. # no search path for DLLs.
  7974. hardcode_libdir_flag_spec=' '
  7975. allow_undefined_flag=unsupported
  7976. # Tell ltmain to make .lib files, not .a files.
  7977. libext=lib
  7978. # Tell ltmain to make .dll files, not .so files.
  7979. shrext_cmds=".dll"
  7980. # FIXME: Setting linknames here is a bad hack.
  7981. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7982. # The linker will automatically build a .lib file if we build a DLL.
  7983. old_archive_from_new_cmds='true'
  7984. # FIXME: Should let the user specify the lib program.
  7985. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7986. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7987. enable_shared_with_static_runtimes=yes
  7988. ;;
  7989. darwin* | rhapsody*)
  7990. archive_cmds_need_lc=no
  7991. hardcode_direct=no
  7992. hardcode_automatic=yes
  7993. hardcode_shlibpath_var=unsupported
  7994. if test "$lt_cv_ld_force_load" = "yes"; then
  7995. 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\"`'
  7996. else
  7997. whole_archive_flag_spec=''
  7998. fi
  7999. link_all_deplibs=yes
  8000. allow_undefined_flag="$_lt_dar_allow_undefined"
  8001. case $cc_basename in
  8002. ifort*) _lt_dar_can_shared=yes ;;
  8003. *) _lt_dar_can_shared=$GCC ;;
  8004. esac
  8005. if test "$_lt_dar_can_shared" = "yes"; then
  8006. output_verbose_link_cmd=func_echo_all
  8007. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8008. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8009. 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}"
  8010. 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}"
  8011. else
  8012. ld_shlibs=no
  8013. fi
  8014. ;;
  8015. dgux*)
  8016. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8017. hardcode_libdir_flag_spec='-L$libdir'
  8018. hardcode_shlibpath_var=no
  8019. ;;
  8020. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8021. # support. Future versions do this automatically, but an explicit c++rt0.o
  8022. # does not break anything, and helps significantly (at the cost of a little
  8023. # extra space).
  8024. freebsd2.2*)
  8025. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8026. hardcode_libdir_flag_spec='-R$libdir'
  8027. hardcode_direct=yes
  8028. hardcode_shlibpath_var=no
  8029. ;;
  8030. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8031. freebsd2.*)
  8032. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8033. hardcode_direct=yes
  8034. hardcode_minus_L=yes
  8035. hardcode_shlibpath_var=no
  8036. ;;
  8037. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8038. freebsd* | dragonfly*)
  8039. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8040. hardcode_libdir_flag_spec='-R$libdir'
  8041. hardcode_direct=yes
  8042. hardcode_shlibpath_var=no
  8043. ;;
  8044. hpux9*)
  8045. if test "$GCC" = yes; then
  8046. 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'
  8047. else
  8048. 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'
  8049. fi
  8050. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8051. hardcode_libdir_separator=:
  8052. hardcode_direct=yes
  8053. # hardcode_minus_L: Not really in the search PATH,
  8054. # but as the default location of the library.
  8055. hardcode_minus_L=yes
  8056. export_dynamic_flag_spec='${wl}-E'
  8057. ;;
  8058. hpux10*)
  8059. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8060. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8061. else
  8062. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8063. fi
  8064. if test "$with_gnu_ld" = no; then
  8065. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8066. hardcode_libdir_flag_spec_ld='+b $libdir'
  8067. hardcode_libdir_separator=:
  8068. hardcode_direct=yes
  8069. hardcode_direct_absolute=yes
  8070. export_dynamic_flag_spec='${wl}-E'
  8071. # hardcode_minus_L: Not really in the search PATH,
  8072. # but as the default location of the library.
  8073. hardcode_minus_L=yes
  8074. fi
  8075. ;;
  8076. hpux11*)
  8077. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8078. case $host_cpu in
  8079. hppa*64*)
  8080. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8081. ;;
  8082. ia64*)
  8083. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8084. ;;
  8085. *)
  8086. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8087. ;;
  8088. esac
  8089. else
  8090. case $host_cpu in
  8091. hppa*64*)
  8092. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8093. ;;
  8094. ia64*)
  8095. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8096. ;;
  8097. *)
  8098. # Older versions of the 11.00 compiler do not understand -b yet
  8099. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8101. $as_echo_n "checking if $CC understands -b... " >&6; }
  8102. if ${lt_cv_prog_compiler__b+:} false; then :
  8103. $as_echo_n "(cached) " >&6
  8104. else
  8105. lt_cv_prog_compiler__b=no
  8106. save_LDFLAGS="$LDFLAGS"
  8107. LDFLAGS="$LDFLAGS -b"
  8108. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8109. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8110. # The linker can only warn and ignore the option if not recognized
  8111. # So say no if there are warnings
  8112. if test -s conftest.err; then
  8113. # Append any errors to the config.log.
  8114. cat conftest.err 1>&5
  8115. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8116. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8117. if diff conftest.exp conftest.er2 >/dev/null; then
  8118. lt_cv_prog_compiler__b=yes
  8119. fi
  8120. else
  8121. lt_cv_prog_compiler__b=yes
  8122. fi
  8123. fi
  8124. $RM -r conftest*
  8125. LDFLAGS="$save_LDFLAGS"
  8126. fi
  8127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8128. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8129. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8130. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8131. else
  8132. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8133. fi
  8134. ;;
  8135. esac
  8136. fi
  8137. if test "$with_gnu_ld" = no; then
  8138. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8139. hardcode_libdir_separator=:
  8140. case $host_cpu in
  8141. hppa*64*|ia64*)
  8142. hardcode_direct=no
  8143. hardcode_shlibpath_var=no
  8144. ;;
  8145. *)
  8146. hardcode_direct=yes
  8147. hardcode_direct_absolute=yes
  8148. export_dynamic_flag_spec='${wl}-E'
  8149. # hardcode_minus_L: Not really in the search PATH,
  8150. # but as the default location of the library.
  8151. hardcode_minus_L=yes
  8152. ;;
  8153. esac
  8154. fi
  8155. ;;
  8156. irix5* | irix6* | nonstopux*)
  8157. if test "$GCC" = yes; then
  8158. 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'
  8159. # Try to use the -exported_symbol ld option, if it does not
  8160. # work, assume that -exports_file does not work either and
  8161. # implicitly export all symbols.
  8162. save_LDFLAGS="$LDFLAGS"
  8163. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8164. if test x$gcc_no_link = xyes; then
  8165. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8166. fi
  8167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8168. /* end confdefs.h. */
  8169. int foo(void) {}
  8170. _ACEOF
  8171. if ac_fn_c_try_link "$LINENO"; then :
  8172. 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'
  8173. fi
  8174. rm -f core conftest.err conftest.$ac_objext \
  8175. conftest$ac_exeext conftest.$ac_ext
  8176. LDFLAGS="$save_LDFLAGS"
  8177. else
  8178. 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'
  8179. 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'
  8180. fi
  8181. archive_cmds_need_lc='no'
  8182. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8183. hardcode_libdir_separator=:
  8184. inherit_rpath=yes
  8185. link_all_deplibs=yes
  8186. ;;
  8187. netbsd*)
  8188. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8189. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8190. else
  8191. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8192. fi
  8193. hardcode_libdir_flag_spec='-R$libdir'
  8194. hardcode_direct=yes
  8195. hardcode_shlibpath_var=no
  8196. ;;
  8197. newsos6)
  8198. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8199. hardcode_direct=yes
  8200. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8201. hardcode_libdir_separator=:
  8202. hardcode_shlibpath_var=no
  8203. ;;
  8204. *nto* | *qnx*)
  8205. ;;
  8206. openbsd*)
  8207. if test -f /usr/libexec/ld.so; then
  8208. hardcode_direct=yes
  8209. hardcode_shlibpath_var=no
  8210. hardcode_direct_absolute=yes
  8211. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8212. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8213. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8214. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8215. export_dynamic_flag_spec='${wl}-E'
  8216. else
  8217. case $host_os in
  8218. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8219. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8220. hardcode_libdir_flag_spec='-R$libdir'
  8221. ;;
  8222. *)
  8223. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8224. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8225. ;;
  8226. esac
  8227. fi
  8228. else
  8229. ld_shlibs=no
  8230. fi
  8231. ;;
  8232. os2*)
  8233. hardcode_libdir_flag_spec='-L$libdir'
  8234. hardcode_minus_L=yes
  8235. allow_undefined_flag=unsupported
  8236. 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'
  8237. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8238. ;;
  8239. osf3*)
  8240. if test "$GCC" = yes; then
  8241. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8242. 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'
  8243. else
  8244. allow_undefined_flag=' -expect_unresolved \*'
  8245. 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'
  8246. fi
  8247. archive_cmds_need_lc='no'
  8248. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8249. hardcode_libdir_separator=:
  8250. ;;
  8251. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8252. if test "$GCC" = yes; then
  8253. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8254. 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'
  8255. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8256. else
  8257. allow_undefined_flag=' -expect_unresolved \*'
  8258. 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'
  8259. 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~
  8260. $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'
  8261. # Both c and cxx compiler support -rpath directly
  8262. hardcode_libdir_flag_spec='-rpath $libdir'
  8263. fi
  8264. archive_cmds_need_lc='no'
  8265. hardcode_libdir_separator=:
  8266. ;;
  8267. solaris*)
  8268. no_undefined_flag=' -z defs'
  8269. if test "$GCC" = yes; then
  8270. wlarc='${wl}'
  8271. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8272. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8273. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8274. else
  8275. case `$CC -V 2>&1` in
  8276. *"Compilers 5.0"*)
  8277. wlarc=''
  8278. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8279. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8280. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8281. ;;
  8282. *)
  8283. wlarc='${wl}'
  8284. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8285. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8286. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8287. ;;
  8288. esac
  8289. fi
  8290. hardcode_libdir_flag_spec='-R$libdir'
  8291. hardcode_shlibpath_var=no
  8292. case $host_os in
  8293. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8294. *)
  8295. # The compiler driver will combine and reorder linker options,
  8296. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8297. # but is careful enough not to reorder.
  8298. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8299. if test "$GCC" = yes; then
  8300. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8301. else
  8302. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8303. fi
  8304. ;;
  8305. esac
  8306. link_all_deplibs=yes
  8307. ;;
  8308. sunos4*)
  8309. if test "x$host_vendor" = xsequent; then
  8310. # Use $CC to link under sequent, because it throws in some extra .o
  8311. # files that make .init and .fini sections work.
  8312. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8313. else
  8314. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8315. fi
  8316. hardcode_libdir_flag_spec='-L$libdir'
  8317. hardcode_direct=yes
  8318. hardcode_minus_L=yes
  8319. hardcode_shlibpath_var=no
  8320. ;;
  8321. sysv4)
  8322. case $host_vendor in
  8323. sni)
  8324. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8325. hardcode_direct=yes # is this really true???
  8326. ;;
  8327. siemens)
  8328. ## LD is ld it makes a PLAMLIB
  8329. ## CC just makes a GrossModule.
  8330. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8331. reload_cmds='$CC -r -o $output$reload_objs'
  8332. hardcode_direct=no
  8333. ;;
  8334. motorola)
  8335. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8336. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8337. ;;
  8338. esac
  8339. runpath_var='LD_RUN_PATH'
  8340. hardcode_shlibpath_var=no
  8341. ;;
  8342. sysv4.3*)
  8343. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8344. hardcode_shlibpath_var=no
  8345. export_dynamic_flag_spec='-Bexport'
  8346. ;;
  8347. sysv4*MP*)
  8348. if test -d /usr/nec; then
  8349. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8350. hardcode_shlibpath_var=no
  8351. runpath_var=LD_RUN_PATH
  8352. hardcode_runpath_var=yes
  8353. ld_shlibs=yes
  8354. fi
  8355. ;;
  8356. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8357. no_undefined_flag='${wl}-z,text'
  8358. archive_cmds_need_lc=no
  8359. hardcode_shlibpath_var=no
  8360. runpath_var='LD_RUN_PATH'
  8361. if test "$GCC" = yes; then
  8362. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8363. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8364. else
  8365. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8366. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8367. fi
  8368. ;;
  8369. sysv5* | sco3.2v5* | sco5v6*)
  8370. # Note: We can NOT use -z defs as we might desire, because we do not
  8371. # link with -lc, and that would cause any symbols used from libc to
  8372. # always be unresolved, which means just about no library would
  8373. # ever link correctly. If we're not using GNU ld we use -z text
  8374. # though, which does catch some bad symbols but isn't as heavy-handed
  8375. # as -z defs.
  8376. no_undefined_flag='${wl}-z,text'
  8377. allow_undefined_flag='${wl}-z,nodefs'
  8378. archive_cmds_need_lc=no
  8379. hardcode_shlibpath_var=no
  8380. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8381. hardcode_libdir_separator=':'
  8382. link_all_deplibs=yes
  8383. export_dynamic_flag_spec='${wl}-Bexport'
  8384. runpath_var='LD_RUN_PATH'
  8385. if test "$GCC" = yes; then
  8386. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8387. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8388. else
  8389. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8390. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8391. fi
  8392. ;;
  8393. uts4*)
  8394. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8395. hardcode_libdir_flag_spec='-L$libdir'
  8396. hardcode_shlibpath_var=no
  8397. ;;
  8398. *)
  8399. ld_shlibs=no
  8400. ;;
  8401. esac
  8402. if test x$host_vendor = xsni; then
  8403. case $host in
  8404. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8405. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8406. ;;
  8407. esac
  8408. fi
  8409. fi
  8410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8411. $as_echo "$ld_shlibs" >&6; }
  8412. test "$ld_shlibs" = no && can_build_shared=no
  8413. with_gnu_ld=$with_gnu_ld
  8414. #
  8415. # Do we need to explicitly link libc?
  8416. #
  8417. case "x$archive_cmds_need_lc" in
  8418. x|xyes)
  8419. # Assume -lc should be added
  8420. archive_cmds_need_lc=yes
  8421. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8422. case $archive_cmds in
  8423. *'~'*)
  8424. # FIXME: we may have to deal with multi-command sequences.
  8425. ;;
  8426. '$CC '*)
  8427. # Test whether the compiler implicitly links with -lc since on some
  8428. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8429. # to ld, don't add -lc before -lgcc.
  8430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8431. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8432. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8433. $as_echo_n "(cached) " >&6
  8434. else
  8435. $RM conftest*
  8436. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8437. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8438. (eval $ac_compile) 2>&5
  8439. ac_status=$?
  8440. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8441. test $ac_status = 0; } 2>conftest.err; then
  8442. soname=conftest
  8443. lib=conftest
  8444. libobjs=conftest.$ac_objext
  8445. deplibs=
  8446. wl=$lt_prog_compiler_wl
  8447. pic_flag=$lt_prog_compiler_pic
  8448. compiler_flags=-v
  8449. linker_flags=-v
  8450. verstring=
  8451. output_objdir=.
  8452. libname=conftest
  8453. lt_save_allow_undefined_flag=$allow_undefined_flag
  8454. allow_undefined_flag=
  8455. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8456. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8457. ac_status=$?
  8458. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8459. test $ac_status = 0; }
  8460. then
  8461. lt_cv_archive_cmds_need_lc=no
  8462. else
  8463. lt_cv_archive_cmds_need_lc=yes
  8464. fi
  8465. allow_undefined_flag=$lt_save_allow_undefined_flag
  8466. else
  8467. cat conftest.err 1>&5
  8468. fi
  8469. $RM conftest*
  8470. fi
  8471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8472. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8473. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8474. ;;
  8475. esac
  8476. fi
  8477. ;;
  8478. esac
  8479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8480. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8481. if test "$GCC" = yes; then
  8482. case $host_os in
  8483. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8484. *) lt_awk_arg="/^libraries:/" ;;
  8485. esac
  8486. case $host_os in
  8487. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8488. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8489. esac
  8490. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8491. case $lt_search_path_spec in
  8492. *\;*)
  8493. # if the path contains ";" then we assume it to be the separator
  8494. # otherwise default to the standard path separator (i.e. ":") - it is
  8495. # assumed that no part of a normal pathname contains ";" but that should
  8496. # okay in the real world where ";" in dirpaths is itself problematic.
  8497. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8498. ;;
  8499. *)
  8500. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8501. ;;
  8502. esac
  8503. # Ok, now we have the path, separated by spaces, we can step through it
  8504. # and add multilib dir if necessary.
  8505. lt_tmp_lt_search_path_spec=
  8506. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8507. for lt_sys_path in $lt_search_path_spec; do
  8508. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8509. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8510. else
  8511. test -d "$lt_sys_path" && \
  8512. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8513. fi
  8514. done
  8515. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8516. BEGIN {RS=" "; FS="/|\n";} {
  8517. lt_foo="";
  8518. lt_count=0;
  8519. for (lt_i = NF; lt_i > 0; lt_i--) {
  8520. if ($lt_i != "" && $lt_i != ".") {
  8521. if ($lt_i == "..") {
  8522. lt_count++;
  8523. } else {
  8524. if (lt_count == 0) {
  8525. lt_foo="/" $lt_i lt_foo;
  8526. } else {
  8527. lt_count--;
  8528. }
  8529. }
  8530. }
  8531. }
  8532. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8533. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8534. }'`
  8535. # AWK program above erroneously prepends '/' to C:/dos/paths
  8536. # for these hosts.
  8537. case $host_os in
  8538. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8539. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8540. esac
  8541. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8542. else
  8543. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8544. fi
  8545. library_names_spec=
  8546. libname_spec='lib$name'
  8547. soname_spec=
  8548. shrext_cmds=".so"
  8549. postinstall_cmds=
  8550. postuninstall_cmds=
  8551. finish_cmds=
  8552. finish_eval=
  8553. shlibpath_var=
  8554. shlibpath_overrides_runpath=unknown
  8555. version_type=none
  8556. dynamic_linker="$host_os ld.so"
  8557. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8558. need_lib_prefix=unknown
  8559. hardcode_into_libs=no
  8560. # when you set need_version to no, make sure it does not cause -set_version
  8561. # flags to be left without arguments
  8562. need_version=unknown
  8563. case $host_os in
  8564. aix3*)
  8565. version_type=linux
  8566. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8567. shlibpath_var=LIBPATH
  8568. # AIX 3 has no versioning support, so we append a major version to the name.
  8569. soname_spec='${libname}${release}${shared_ext}$major'
  8570. ;;
  8571. aix[4-9]*)
  8572. version_type=linux
  8573. need_lib_prefix=no
  8574. need_version=no
  8575. hardcode_into_libs=yes
  8576. if test "$host_cpu" = ia64; then
  8577. # AIX 5 supports IA64
  8578. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8579. shlibpath_var=LD_LIBRARY_PATH
  8580. else
  8581. # With GCC up to 2.95.x, collect2 would create an import file
  8582. # for dependence libraries. The import file would start with
  8583. # the line `#! .'. This would cause the generated library to
  8584. # depend on `.', always an invalid library. This was fixed in
  8585. # development snapshots of GCC prior to 3.0.
  8586. case $host_os in
  8587. aix4 | aix4.[01] | aix4.[01].*)
  8588. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8589. echo ' yes '
  8590. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8591. :
  8592. else
  8593. can_build_shared=no
  8594. fi
  8595. ;;
  8596. esac
  8597. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8598. # soname into executable. Probably we can add versioning support to
  8599. # collect2, so additional links can be useful in future.
  8600. if test "$aix_use_runtimelinking" = yes; then
  8601. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8602. # instead of lib<name>.a to let people know that these are not
  8603. # typical AIX shared libraries.
  8604. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8605. else
  8606. # We preserve .a as extension for shared libraries through AIX4.2
  8607. # and later when we are not doing run time linking.
  8608. library_names_spec='${libname}${release}.a $libname.a'
  8609. soname_spec='${libname}${release}${shared_ext}$major'
  8610. fi
  8611. shlibpath_var=LIBPATH
  8612. fi
  8613. ;;
  8614. amigaos*)
  8615. case $host_cpu in
  8616. powerpc)
  8617. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8618. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8619. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8620. ;;
  8621. m68k)
  8622. library_names_spec='$libname.ixlibrary $libname.a'
  8623. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8624. 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'
  8625. ;;
  8626. esac
  8627. ;;
  8628. beos*)
  8629. library_names_spec='${libname}${shared_ext}'
  8630. dynamic_linker="$host_os ld.so"
  8631. shlibpath_var=LIBRARY_PATH
  8632. ;;
  8633. bsdi[45]*)
  8634. version_type=linux
  8635. need_version=no
  8636. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8637. soname_spec='${libname}${release}${shared_ext}$major'
  8638. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8639. shlibpath_var=LD_LIBRARY_PATH
  8640. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8641. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8642. # the default ld.so.conf also contains /usr/contrib/lib and
  8643. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8644. # libtool to hard-code these into programs
  8645. ;;
  8646. cygwin* | mingw* | pw32* | cegcc*)
  8647. version_type=windows
  8648. shrext_cmds=".dll"
  8649. need_version=no
  8650. need_lib_prefix=no
  8651. case $GCC,$host_os in
  8652. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8653. library_names_spec='$libname.dll.a'
  8654. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8655. postinstall_cmds='base_file=`basename \${file}`~
  8656. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8657. dldir=$destdir/`dirname \$dlpath`~
  8658. test -d \$dldir || mkdir -p \$dldir~
  8659. $install_prog $dir/$dlname \$dldir/$dlname~
  8660. chmod a+x \$dldir/$dlname~
  8661. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8662. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8663. fi'
  8664. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8665. dlpath=$dir/\$dldll~
  8666. $RM \$dlpath'
  8667. shlibpath_overrides_runpath=yes
  8668. case $host_os in
  8669. cygwin*)
  8670. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8671. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8672. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8673. ;;
  8674. mingw* | cegcc*)
  8675. # MinGW DLLs use traditional 'lib' prefix
  8676. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8677. ;;
  8678. pw32*)
  8679. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8680. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8681. ;;
  8682. esac
  8683. ;;
  8684. *)
  8685. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8686. ;;
  8687. esac
  8688. dynamic_linker='Win32 ld.exe'
  8689. # FIXME: first we should search . and the directory the executable is in
  8690. shlibpath_var=PATH
  8691. ;;
  8692. darwin* | rhapsody*)
  8693. dynamic_linker="$host_os dyld"
  8694. version_type=darwin
  8695. need_lib_prefix=no
  8696. need_version=no
  8697. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8698. soname_spec='${libname}${release}${major}$shared_ext'
  8699. shlibpath_overrides_runpath=yes
  8700. shlibpath_var=DYLD_LIBRARY_PATH
  8701. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8702. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8703. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8704. ;;
  8705. dgux*)
  8706. version_type=linux
  8707. need_lib_prefix=no
  8708. need_version=no
  8709. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8710. soname_spec='${libname}${release}${shared_ext}$major'
  8711. shlibpath_var=LD_LIBRARY_PATH
  8712. ;;
  8713. freebsd* | dragonfly*)
  8714. # DragonFly does not have aout. When/if they implement a new
  8715. # versioning mechanism, adjust this.
  8716. if test -x /usr/bin/objformat; then
  8717. objformat=`/usr/bin/objformat`
  8718. else
  8719. case $host_os in
  8720. freebsd[23].*) objformat=aout ;;
  8721. *) objformat=elf ;;
  8722. esac
  8723. fi
  8724. version_type=freebsd-$objformat
  8725. case $version_type in
  8726. freebsd-elf*)
  8727. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8728. need_version=no
  8729. need_lib_prefix=no
  8730. ;;
  8731. freebsd-*)
  8732. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8733. need_version=yes
  8734. ;;
  8735. esac
  8736. shlibpath_var=LD_LIBRARY_PATH
  8737. case $host_os in
  8738. freebsd2.*)
  8739. shlibpath_overrides_runpath=yes
  8740. ;;
  8741. freebsd3.[01]* | freebsdelf3.[01]*)
  8742. shlibpath_overrides_runpath=yes
  8743. hardcode_into_libs=yes
  8744. ;;
  8745. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8746. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8747. shlibpath_overrides_runpath=no
  8748. hardcode_into_libs=yes
  8749. ;;
  8750. *) # from 4.6 on, and DragonFly
  8751. shlibpath_overrides_runpath=yes
  8752. hardcode_into_libs=yes
  8753. ;;
  8754. esac
  8755. ;;
  8756. haiku*)
  8757. version_type=linux
  8758. need_lib_prefix=no
  8759. need_version=no
  8760. dynamic_linker="$host_os runtime_loader"
  8761. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8762. soname_spec='${libname}${release}${shared_ext}$major'
  8763. shlibpath_var=LIBRARY_PATH
  8764. shlibpath_overrides_runpath=yes
  8765. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  8766. hardcode_into_libs=yes
  8767. ;;
  8768. hpux9* | hpux10* | hpux11*)
  8769. # Give a soname corresponding to the major version so that dld.sl refuses to
  8770. # link against other versions.
  8771. version_type=sunos
  8772. need_lib_prefix=no
  8773. need_version=no
  8774. case $host_cpu in
  8775. ia64*)
  8776. shrext_cmds='.so'
  8777. hardcode_into_libs=yes
  8778. dynamic_linker="$host_os dld.so"
  8779. shlibpath_var=LD_LIBRARY_PATH
  8780. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8781. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8782. soname_spec='${libname}${release}${shared_ext}$major'
  8783. if test "X$HPUX_IA64_MODE" = X32; then
  8784. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8785. else
  8786. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8787. fi
  8788. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8789. ;;
  8790. hppa*64*)
  8791. shrext_cmds='.sl'
  8792. hardcode_into_libs=yes
  8793. dynamic_linker="$host_os dld.sl"
  8794. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8795. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8796. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8797. soname_spec='${libname}${release}${shared_ext}$major'
  8798. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8799. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8800. ;;
  8801. *)
  8802. shrext_cmds='.sl'
  8803. dynamic_linker="$host_os dld.sl"
  8804. shlibpath_var=SHLIB_PATH
  8805. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8806. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8807. soname_spec='${libname}${release}${shared_ext}$major'
  8808. ;;
  8809. esac
  8810. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8811. postinstall_cmds='chmod 555 $lib'
  8812. # or fails outright, so override atomically:
  8813. install_override_mode=555
  8814. ;;
  8815. interix[3-9]*)
  8816. version_type=linux
  8817. need_lib_prefix=no
  8818. need_version=no
  8819. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8820. soname_spec='${libname}${release}${shared_ext}$major'
  8821. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8822. shlibpath_var=LD_LIBRARY_PATH
  8823. shlibpath_overrides_runpath=no
  8824. hardcode_into_libs=yes
  8825. ;;
  8826. irix5* | irix6* | nonstopux*)
  8827. case $host_os in
  8828. nonstopux*) version_type=nonstopux ;;
  8829. *)
  8830. if test "$lt_cv_prog_gnu_ld" = yes; then
  8831. version_type=linux
  8832. else
  8833. version_type=irix
  8834. fi ;;
  8835. esac
  8836. need_lib_prefix=no
  8837. need_version=no
  8838. soname_spec='${libname}${release}${shared_ext}$major'
  8839. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8840. case $host_os in
  8841. irix5* | nonstopux*)
  8842. libsuff= shlibsuff=
  8843. ;;
  8844. *)
  8845. case $LD in # libtool.m4 will add one of these switches to LD
  8846. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8847. libsuff= shlibsuff= libmagic=32-bit;;
  8848. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8849. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8850. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8851. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8852. *) libsuff= shlibsuff= libmagic=never-match;;
  8853. esac
  8854. ;;
  8855. esac
  8856. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8857. shlibpath_overrides_runpath=no
  8858. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8859. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8860. hardcode_into_libs=yes
  8861. ;;
  8862. # No shared lib support for Linux oldld, aout, or coff.
  8863. linux*oldld* | linux*aout* | linux*coff*)
  8864. dynamic_linker=no
  8865. ;;
  8866. # This must be Linux ELF.
  8867. # uclinux* changes (here and below) have been submitted to the libtool
  8868. # project, but have not yet been accepted: they are GCC-local changes
  8869. # for the time being. (See
  8870. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  8871. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
  8872. version_type=linux
  8873. need_lib_prefix=no
  8874. need_version=no
  8875. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8876. soname_spec='${libname}${release}${shared_ext}$major'
  8877. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8878. shlibpath_var=LD_LIBRARY_PATH
  8879. shlibpath_overrides_runpath=no
  8880. # Some binutils ld are patched to set DT_RUNPATH
  8881. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8882. $as_echo_n "(cached) " >&6
  8883. else
  8884. lt_cv_shlibpath_overrides_runpath=no
  8885. save_LDFLAGS=$LDFLAGS
  8886. save_libdir=$libdir
  8887. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8888. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8889. if test x$gcc_no_link = xyes; then
  8890. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8891. fi
  8892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8893. /* end confdefs.h. */
  8894. int
  8895. main ()
  8896. {
  8897. ;
  8898. return 0;
  8899. }
  8900. _ACEOF
  8901. if ac_fn_c_try_link "$LINENO"; then :
  8902. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8903. lt_cv_shlibpath_overrides_runpath=yes
  8904. fi
  8905. fi
  8906. rm -f core conftest.err conftest.$ac_objext \
  8907. conftest$ac_exeext conftest.$ac_ext
  8908. LDFLAGS=$save_LDFLAGS
  8909. libdir=$save_libdir
  8910. fi
  8911. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8912. # This implies no fast_install, which is unacceptable.
  8913. # Some rework will be needed to allow for fast_install
  8914. # before this can be enabled.
  8915. hardcode_into_libs=yes
  8916. # Append ld.so.conf contents to the search path
  8917. if test -f /etc/ld.so.conf; then
  8918. 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' ' '`
  8919. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8920. fi
  8921. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8922. # powerpc, because MkLinux only supported shared libraries with the
  8923. # GNU dynamic linker. Since this was broken with cross compilers,
  8924. # most powerpc-linux boxes support dynamic linking these days and
  8925. # people can always --disable-shared, the test was removed, and we
  8926. # assume the GNU/Linux dynamic linker is in use.
  8927. dynamic_linker='GNU/Linux ld.so'
  8928. ;;
  8929. netbsd*)
  8930. version_type=sunos
  8931. need_lib_prefix=no
  8932. need_version=no
  8933. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8934. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8935. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8936. dynamic_linker='NetBSD (a.out) ld.so'
  8937. else
  8938. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8939. soname_spec='${libname}${release}${shared_ext}$major'
  8940. dynamic_linker='NetBSD ld.elf_so'
  8941. fi
  8942. shlibpath_var=LD_LIBRARY_PATH
  8943. shlibpath_overrides_runpath=yes
  8944. hardcode_into_libs=yes
  8945. ;;
  8946. newsos6)
  8947. version_type=linux
  8948. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8949. shlibpath_var=LD_LIBRARY_PATH
  8950. shlibpath_overrides_runpath=yes
  8951. ;;
  8952. *nto* | *qnx*)
  8953. version_type=qnx
  8954. need_lib_prefix=no
  8955. need_version=no
  8956. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8957. soname_spec='${libname}${release}${shared_ext}$major'
  8958. shlibpath_var=LD_LIBRARY_PATH
  8959. shlibpath_overrides_runpath=no
  8960. hardcode_into_libs=yes
  8961. dynamic_linker='ldqnx.so'
  8962. ;;
  8963. openbsd*)
  8964. version_type=sunos
  8965. sys_lib_dlsearch_path_spec="/usr/lib"
  8966. need_lib_prefix=no
  8967. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8968. case $host_os in
  8969. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8970. *) need_version=no ;;
  8971. esac
  8972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8973. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8974. shlibpath_var=LD_LIBRARY_PATH
  8975. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8976. case $host_os in
  8977. openbsd2.[89] | openbsd2.[89].*)
  8978. shlibpath_overrides_runpath=no
  8979. ;;
  8980. *)
  8981. shlibpath_overrides_runpath=yes
  8982. ;;
  8983. esac
  8984. else
  8985. shlibpath_overrides_runpath=yes
  8986. fi
  8987. ;;
  8988. os2*)
  8989. libname_spec='$name'
  8990. shrext_cmds=".dll"
  8991. need_lib_prefix=no
  8992. library_names_spec='$libname${shared_ext} $libname.a'
  8993. dynamic_linker='OS/2 ld.exe'
  8994. shlibpath_var=LIBPATH
  8995. ;;
  8996. osf3* | osf4* | osf5*)
  8997. version_type=osf
  8998. need_lib_prefix=no
  8999. need_version=no
  9000. soname_spec='${libname}${release}${shared_ext}$major'
  9001. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9002. shlibpath_var=LD_LIBRARY_PATH
  9003. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9004. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9005. ;;
  9006. rdos*)
  9007. dynamic_linker=no
  9008. ;;
  9009. solaris*)
  9010. version_type=linux
  9011. need_lib_prefix=no
  9012. need_version=no
  9013. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9014. soname_spec='${libname}${release}${shared_ext}$major'
  9015. shlibpath_var=LD_LIBRARY_PATH
  9016. shlibpath_overrides_runpath=yes
  9017. hardcode_into_libs=yes
  9018. # ldd complains unless libraries are executable
  9019. postinstall_cmds='chmod +x $lib'
  9020. ;;
  9021. sunos4*)
  9022. version_type=sunos
  9023. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9024. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9025. shlibpath_var=LD_LIBRARY_PATH
  9026. shlibpath_overrides_runpath=yes
  9027. if test "$with_gnu_ld" = yes; then
  9028. need_lib_prefix=no
  9029. fi
  9030. need_version=yes
  9031. ;;
  9032. sysv4 | sysv4.3*)
  9033. version_type=linux
  9034. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9035. soname_spec='${libname}${release}${shared_ext}$major'
  9036. shlibpath_var=LD_LIBRARY_PATH
  9037. case $host_vendor in
  9038. sni)
  9039. shlibpath_overrides_runpath=no
  9040. need_lib_prefix=no
  9041. runpath_var=LD_RUN_PATH
  9042. ;;
  9043. siemens)
  9044. need_lib_prefix=no
  9045. ;;
  9046. motorola)
  9047. need_lib_prefix=no
  9048. need_version=no
  9049. shlibpath_overrides_runpath=no
  9050. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9051. ;;
  9052. esac
  9053. ;;
  9054. sysv4*MP*)
  9055. if test -d /usr/nec ;then
  9056. version_type=linux
  9057. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9058. soname_spec='$libname${shared_ext}.$major'
  9059. shlibpath_var=LD_LIBRARY_PATH
  9060. fi
  9061. ;;
  9062. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9063. version_type=freebsd-elf
  9064. need_lib_prefix=no
  9065. need_version=no
  9066. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9067. soname_spec='${libname}${release}${shared_ext}$major'
  9068. shlibpath_var=LD_LIBRARY_PATH
  9069. shlibpath_overrides_runpath=yes
  9070. hardcode_into_libs=yes
  9071. if test "$with_gnu_ld" = yes; then
  9072. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9073. else
  9074. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9075. case $host_os in
  9076. sco3.2v5*)
  9077. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9078. ;;
  9079. esac
  9080. fi
  9081. sys_lib_dlsearch_path_spec='/usr/lib'
  9082. ;;
  9083. tpf*)
  9084. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9085. version_type=linux
  9086. need_lib_prefix=no
  9087. need_version=no
  9088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9089. shlibpath_var=LD_LIBRARY_PATH
  9090. shlibpath_overrides_runpath=no
  9091. hardcode_into_libs=yes
  9092. ;;
  9093. uts4*)
  9094. version_type=linux
  9095. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9096. soname_spec='${libname}${release}${shared_ext}$major'
  9097. shlibpath_var=LD_LIBRARY_PATH
  9098. ;;
  9099. *)
  9100. dynamic_linker=no
  9101. ;;
  9102. esac
  9103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9104. $as_echo "$dynamic_linker" >&6; }
  9105. test "$dynamic_linker" = no && can_build_shared=no
  9106. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9107. if test "$GCC" = yes; then
  9108. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9109. fi
  9110. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9111. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9112. fi
  9113. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9114. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9115. fi
  9116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9117. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9118. hardcode_action=
  9119. if test -n "$hardcode_libdir_flag_spec" ||
  9120. test -n "$runpath_var" ||
  9121. test "X$hardcode_automatic" = "Xyes" ; then
  9122. # We can hardcode non-existent directories.
  9123. if test "$hardcode_direct" != no &&
  9124. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9125. # have to relink, otherwise we might link with an installed library
  9126. # when we should be linking with a yet-to-be-installed one
  9127. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9128. test "$hardcode_minus_L" != no; then
  9129. # Linking always hardcodes the temporary library directory.
  9130. hardcode_action=relink
  9131. else
  9132. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9133. hardcode_action=immediate
  9134. fi
  9135. else
  9136. # We cannot hardcode anything, or else we can only hardcode existing
  9137. # directories.
  9138. hardcode_action=unsupported
  9139. fi
  9140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9141. $as_echo "$hardcode_action" >&6; }
  9142. if test "$hardcode_action" = relink ||
  9143. test "$inherit_rpath" = yes; then
  9144. # Fast installation is not supported
  9145. enable_fast_install=no
  9146. elif test "$shlibpath_overrides_runpath" = yes ||
  9147. test "$enable_shared" = no; then
  9148. # Fast installation is not necessary
  9149. enable_fast_install=needless
  9150. fi
  9151. if test "x$enable_dlopen" != xyes; then
  9152. enable_dlopen=unknown
  9153. enable_dlopen_self=unknown
  9154. enable_dlopen_self_static=unknown
  9155. else
  9156. lt_cv_dlopen=no
  9157. lt_cv_dlopen_libs=
  9158. case $host_os in
  9159. beos*)
  9160. lt_cv_dlopen="load_add_on"
  9161. lt_cv_dlopen_libs=
  9162. lt_cv_dlopen_self=yes
  9163. ;;
  9164. mingw* | pw32* | cegcc*)
  9165. lt_cv_dlopen="LoadLibrary"
  9166. lt_cv_dlopen_libs=
  9167. ;;
  9168. cygwin*)
  9169. lt_cv_dlopen="dlopen"
  9170. lt_cv_dlopen_libs=
  9171. ;;
  9172. darwin*)
  9173. # if libdl is installed we need to link against it
  9174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9175. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9176. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9177. $as_echo_n "(cached) " >&6
  9178. else
  9179. ac_check_lib_save_LIBS=$LIBS
  9180. LIBS="-ldl $LIBS"
  9181. if test x$gcc_no_link = xyes; then
  9182. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9183. fi
  9184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9185. /* end confdefs.h. */
  9186. /* Override any GCC internal prototype to avoid an error.
  9187. Use char because int might match the return type of a GCC
  9188. builtin and then its argument prototype would still apply. */
  9189. #ifdef __cplusplus
  9190. extern "C"
  9191. #endif
  9192. char dlopen ();
  9193. int
  9194. main ()
  9195. {
  9196. return dlopen ();
  9197. ;
  9198. return 0;
  9199. }
  9200. _ACEOF
  9201. if ac_fn_c_try_link "$LINENO"; then :
  9202. ac_cv_lib_dl_dlopen=yes
  9203. else
  9204. ac_cv_lib_dl_dlopen=no
  9205. fi
  9206. rm -f core conftest.err conftest.$ac_objext \
  9207. conftest$ac_exeext conftest.$ac_ext
  9208. LIBS=$ac_check_lib_save_LIBS
  9209. fi
  9210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9211. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9212. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9213. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9214. else
  9215. lt_cv_dlopen="dyld"
  9216. lt_cv_dlopen_libs=
  9217. lt_cv_dlopen_self=yes
  9218. fi
  9219. ;;
  9220. *)
  9221. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9222. if test "x$ac_cv_func_shl_load" = xyes; then :
  9223. lt_cv_dlopen="shl_load"
  9224. else
  9225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9226. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9227. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9228. $as_echo_n "(cached) " >&6
  9229. else
  9230. ac_check_lib_save_LIBS=$LIBS
  9231. LIBS="-ldld $LIBS"
  9232. if test x$gcc_no_link = xyes; then
  9233. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9234. fi
  9235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9236. /* end confdefs.h. */
  9237. /* Override any GCC internal prototype to avoid an error.
  9238. Use char because int might match the return type of a GCC
  9239. builtin and then its argument prototype would still apply. */
  9240. #ifdef __cplusplus
  9241. extern "C"
  9242. #endif
  9243. char shl_load ();
  9244. int
  9245. main ()
  9246. {
  9247. return shl_load ();
  9248. ;
  9249. return 0;
  9250. }
  9251. _ACEOF
  9252. if ac_fn_c_try_link "$LINENO"; then :
  9253. ac_cv_lib_dld_shl_load=yes
  9254. else
  9255. ac_cv_lib_dld_shl_load=no
  9256. fi
  9257. rm -f core conftest.err conftest.$ac_objext \
  9258. conftest$ac_exeext conftest.$ac_ext
  9259. LIBS=$ac_check_lib_save_LIBS
  9260. fi
  9261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9262. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9263. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9264. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9265. else
  9266. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9267. if test "x$ac_cv_func_dlopen" = xyes; then :
  9268. lt_cv_dlopen="dlopen"
  9269. else
  9270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9271. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9272. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9273. $as_echo_n "(cached) " >&6
  9274. else
  9275. ac_check_lib_save_LIBS=$LIBS
  9276. LIBS="-ldl $LIBS"
  9277. if test x$gcc_no_link = xyes; then
  9278. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9279. fi
  9280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9281. /* end confdefs.h. */
  9282. /* Override any GCC internal prototype to avoid an error.
  9283. Use char because int might match the return type of a GCC
  9284. builtin and then its argument prototype would still apply. */
  9285. #ifdef __cplusplus
  9286. extern "C"
  9287. #endif
  9288. char dlopen ();
  9289. int
  9290. main ()
  9291. {
  9292. return dlopen ();
  9293. ;
  9294. return 0;
  9295. }
  9296. _ACEOF
  9297. if ac_fn_c_try_link "$LINENO"; then :
  9298. ac_cv_lib_dl_dlopen=yes
  9299. else
  9300. ac_cv_lib_dl_dlopen=no
  9301. fi
  9302. rm -f core conftest.err conftest.$ac_objext \
  9303. conftest$ac_exeext conftest.$ac_ext
  9304. LIBS=$ac_check_lib_save_LIBS
  9305. fi
  9306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9307. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9308. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9309. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9310. else
  9311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9312. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9313. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9314. $as_echo_n "(cached) " >&6
  9315. else
  9316. ac_check_lib_save_LIBS=$LIBS
  9317. LIBS="-lsvld $LIBS"
  9318. if test x$gcc_no_link = xyes; then
  9319. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9320. fi
  9321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9322. /* end confdefs.h. */
  9323. /* Override any GCC internal prototype to avoid an error.
  9324. Use char because int might match the return type of a GCC
  9325. builtin and then its argument prototype would still apply. */
  9326. #ifdef __cplusplus
  9327. extern "C"
  9328. #endif
  9329. char dlopen ();
  9330. int
  9331. main ()
  9332. {
  9333. return dlopen ();
  9334. ;
  9335. return 0;
  9336. }
  9337. _ACEOF
  9338. if ac_fn_c_try_link "$LINENO"; then :
  9339. ac_cv_lib_svld_dlopen=yes
  9340. else
  9341. ac_cv_lib_svld_dlopen=no
  9342. fi
  9343. rm -f core conftest.err conftest.$ac_objext \
  9344. conftest$ac_exeext conftest.$ac_ext
  9345. LIBS=$ac_check_lib_save_LIBS
  9346. fi
  9347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9348. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9349. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9350. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9351. else
  9352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9353. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9354. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9355. $as_echo_n "(cached) " >&6
  9356. else
  9357. ac_check_lib_save_LIBS=$LIBS
  9358. LIBS="-ldld $LIBS"
  9359. if test x$gcc_no_link = xyes; then
  9360. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9361. fi
  9362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9363. /* end confdefs.h. */
  9364. /* Override any GCC internal prototype to avoid an error.
  9365. Use char because int might match the return type of a GCC
  9366. builtin and then its argument prototype would still apply. */
  9367. #ifdef __cplusplus
  9368. extern "C"
  9369. #endif
  9370. char dld_link ();
  9371. int
  9372. main ()
  9373. {
  9374. return dld_link ();
  9375. ;
  9376. return 0;
  9377. }
  9378. _ACEOF
  9379. if ac_fn_c_try_link "$LINENO"; then :
  9380. ac_cv_lib_dld_dld_link=yes
  9381. else
  9382. ac_cv_lib_dld_dld_link=no
  9383. fi
  9384. rm -f core conftest.err conftest.$ac_objext \
  9385. conftest$ac_exeext conftest.$ac_ext
  9386. LIBS=$ac_check_lib_save_LIBS
  9387. fi
  9388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9389. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9390. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9391. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9392. fi
  9393. fi
  9394. fi
  9395. fi
  9396. fi
  9397. fi
  9398. ;;
  9399. esac
  9400. if test "x$lt_cv_dlopen" != xno; then
  9401. enable_dlopen=yes
  9402. else
  9403. enable_dlopen=no
  9404. fi
  9405. case $lt_cv_dlopen in
  9406. dlopen)
  9407. save_CPPFLAGS="$CPPFLAGS"
  9408. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9409. save_LDFLAGS="$LDFLAGS"
  9410. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9411. save_LIBS="$LIBS"
  9412. LIBS="$lt_cv_dlopen_libs $LIBS"
  9413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9414. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9415. if ${lt_cv_dlopen_self+:} false; then :
  9416. $as_echo_n "(cached) " >&6
  9417. else
  9418. if test "$cross_compiling" = yes; then :
  9419. lt_cv_dlopen_self=cross
  9420. else
  9421. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9422. lt_status=$lt_dlunknown
  9423. cat > conftest.$ac_ext <<_LT_EOF
  9424. #line 11005 "configure"
  9425. #include "confdefs.h"
  9426. #if HAVE_DLFCN_H
  9427. #include <dlfcn.h>
  9428. #endif
  9429. #include <stdio.h>
  9430. #ifdef RTLD_GLOBAL
  9431. # define LT_DLGLOBAL RTLD_GLOBAL
  9432. #else
  9433. # ifdef DL_GLOBAL
  9434. # define LT_DLGLOBAL DL_GLOBAL
  9435. # else
  9436. # define LT_DLGLOBAL 0
  9437. # endif
  9438. #endif
  9439. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9440. find out it does not work in some platform. */
  9441. #ifndef LT_DLLAZY_OR_NOW
  9442. # ifdef RTLD_LAZY
  9443. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9444. # else
  9445. # ifdef DL_LAZY
  9446. # define LT_DLLAZY_OR_NOW DL_LAZY
  9447. # else
  9448. # ifdef RTLD_NOW
  9449. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9450. # else
  9451. # ifdef DL_NOW
  9452. # define LT_DLLAZY_OR_NOW DL_NOW
  9453. # else
  9454. # define LT_DLLAZY_OR_NOW 0
  9455. # endif
  9456. # endif
  9457. # endif
  9458. # endif
  9459. #endif
  9460. /* When -fvisbility=hidden is used, assume the code has been annotated
  9461. correspondingly for the symbols needed. */
  9462. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9463. void fnord () __attribute__((visibility("default")));
  9464. #endif
  9465. void fnord () { int i=42; }
  9466. int main ()
  9467. {
  9468. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9469. int status = $lt_dlunknown;
  9470. if (self)
  9471. {
  9472. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9473. else
  9474. {
  9475. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9476. else puts (dlerror ());
  9477. }
  9478. /* dlclose (self); */
  9479. }
  9480. else
  9481. puts (dlerror ());
  9482. return status;
  9483. }
  9484. _LT_EOF
  9485. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9486. (eval $ac_link) 2>&5
  9487. ac_status=$?
  9488. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9489. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9490. (./conftest; exit; ) >&5 2>/dev/null
  9491. lt_status=$?
  9492. case x$lt_status in
  9493. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9494. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9495. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9496. esac
  9497. else :
  9498. # compilation failed
  9499. lt_cv_dlopen_self=no
  9500. fi
  9501. fi
  9502. rm -fr conftest*
  9503. fi
  9504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9505. $as_echo "$lt_cv_dlopen_self" >&6; }
  9506. if test "x$lt_cv_dlopen_self" = xyes; then
  9507. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9509. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9510. if ${lt_cv_dlopen_self_static+:} false; then :
  9511. $as_echo_n "(cached) " >&6
  9512. else
  9513. if test "$cross_compiling" = yes; then :
  9514. lt_cv_dlopen_self_static=cross
  9515. else
  9516. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9517. lt_status=$lt_dlunknown
  9518. cat > conftest.$ac_ext <<_LT_EOF
  9519. #line 11111 "configure"
  9520. #include "confdefs.h"
  9521. #if HAVE_DLFCN_H
  9522. #include <dlfcn.h>
  9523. #endif
  9524. #include <stdio.h>
  9525. #ifdef RTLD_GLOBAL
  9526. # define LT_DLGLOBAL RTLD_GLOBAL
  9527. #else
  9528. # ifdef DL_GLOBAL
  9529. # define LT_DLGLOBAL DL_GLOBAL
  9530. # else
  9531. # define LT_DLGLOBAL 0
  9532. # endif
  9533. #endif
  9534. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9535. find out it does not work in some platform. */
  9536. #ifndef LT_DLLAZY_OR_NOW
  9537. # ifdef RTLD_LAZY
  9538. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9539. # else
  9540. # ifdef DL_LAZY
  9541. # define LT_DLLAZY_OR_NOW DL_LAZY
  9542. # else
  9543. # ifdef RTLD_NOW
  9544. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9545. # else
  9546. # ifdef DL_NOW
  9547. # define LT_DLLAZY_OR_NOW DL_NOW
  9548. # else
  9549. # define LT_DLLAZY_OR_NOW 0
  9550. # endif
  9551. # endif
  9552. # endif
  9553. # endif
  9554. #endif
  9555. /* When -fvisbility=hidden is used, assume the code has been annotated
  9556. correspondingly for the symbols needed. */
  9557. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9558. void fnord () __attribute__((visibility("default")));
  9559. #endif
  9560. void fnord () { int i=42; }
  9561. int main ()
  9562. {
  9563. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9564. int status = $lt_dlunknown;
  9565. if (self)
  9566. {
  9567. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9568. else
  9569. {
  9570. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9571. else puts (dlerror ());
  9572. }
  9573. /* dlclose (self); */
  9574. }
  9575. else
  9576. puts (dlerror ());
  9577. return status;
  9578. }
  9579. _LT_EOF
  9580. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9581. (eval $ac_link) 2>&5
  9582. ac_status=$?
  9583. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9584. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9585. (./conftest; exit; ) >&5 2>/dev/null
  9586. lt_status=$?
  9587. case x$lt_status in
  9588. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9589. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9590. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9591. esac
  9592. else :
  9593. # compilation failed
  9594. lt_cv_dlopen_self_static=no
  9595. fi
  9596. fi
  9597. rm -fr conftest*
  9598. fi
  9599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9600. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9601. fi
  9602. CPPFLAGS="$save_CPPFLAGS"
  9603. LDFLAGS="$save_LDFLAGS"
  9604. LIBS="$save_LIBS"
  9605. ;;
  9606. esac
  9607. case $lt_cv_dlopen_self in
  9608. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9609. *) enable_dlopen_self=unknown ;;
  9610. esac
  9611. case $lt_cv_dlopen_self_static in
  9612. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9613. *) enable_dlopen_self_static=unknown ;;
  9614. esac
  9615. fi
  9616. striplib=
  9617. old_striplib=
  9618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9619. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9620. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9621. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9622. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9624. $as_echo "yes" >&6; }
  9625. else
  9626. # FIXME - insert some real tests, host_os isn't really good enough
  9627. case $host_os in
  9628. darwin*)
  9629. if test -n "$STRIP" ; then
  9630. striplib="$STRIP -x"
  9631. old_striplib="$STRIP -S"
  9632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9633. $as_echo "yes" >&6; }
  9634. else
  9635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9636. $as_echo "no" >&6; }
  9637. fi
  9638. ;;
  9639. *)
  9640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9641. $as_echo "no" >&6; }
  9642. ;;
  9643. esac
  9644. fi
  9645. # Report which library types will actually be built
  9646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9647. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9649. $as_echo "$can_build_shared" >&6; }
  9650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9651. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9652. test "$can_build_shared" = "no" && enable_shared=no
  9653. # On AIX, shared libraries and static libraries use the same namespace, and
  9654. # are all built from PIC.
  9655. case $host_os in
  9656. aix3*)
  9657. test "$enable_shared" = yes && enable_static=no
  9658. if test -n "$RANLIB"; then
  9659. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9660. postinstall_cmds='$RANLIB $lib'
  9661. fi
  9662. ;;
  9663. aix[4-9]*)
  9664. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9665. test "$enable_shared" = yes && enable_static=no
  9666. fi
  9667. ;;
  9668. esac
  9669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9670. $as_echo "$enable_shared" >&6; }
  9671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9672. $as_echo_n "checking whether to build static libraries... " >&6; }
  9673. # Make sure either enable_shared or enable_static is yes.
  9674. test "$enable_shared" = yes || enable_static=yes
  9675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9676. $as_echo "$enable_static" >&6; }
  9677. fi
  9678. ac_ext=c
  9679. ac_cpp='$CPP $CPPFLAGS'
  9680. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9681. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9682. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9683. CC="$lt_save_CC"
  9684. ac_config_commands="$ac_config_commands libtool"
  9685. # Only expand once:
  9686. case $host in
  9687. *-cygwin* | *-mingw*)
  9688. # 'host' will be top-level target in the case of a target lib,
  9689. # we must compare to with_cross_host to decide if this is a native
  9690. # or cross-compiler and select where to install dlls appropriately.
  9691. if test -n "$with_cross_host" &&
  9692. test x"$with_cross_host" != x"no"; then
  9693. lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
  9694. else
  9695. lt_host_flags='-no-undefined -bindir "$(bindir)"';
  9696. fi
  9697. ;;
  9698. *)
  9699. lt_host_flags=
  9700. ;;
  9701. esac
  9702. # Check whether --with-toolexeclibdir was given.
  9703. if test "${with_toolexeclibdir+set}" = set; then :
  9704. withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
  9705. /)
  9706. ;;
  9707. */)
  9708. with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
  9709. ;;
  9710. esac
  9711. else
  9712. with_toolexeclibdir=no
  9713. fi
  9714. # Calculate toolexeclibdir
  9715. # Also toolexecdir, though it's only used in toolexeclibdir
  9716. case ${version_specific_libs} in
  9717. yes)
  9718. # Need the gcc compiler version to know where to install libraries
  9719. # and header files if --enable-version-specific-runtime-libs option
  9720. # is selected.
  9721. toolexecdir='$(libdir)/gcc/$(target_alias)'
  9722. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  9723. ;;
  9724. no)
  9725. if test -n "$with_cross_host" &&
  9726. test x"$with_cross_host" != x"no"; then
  9727. # Install a library built with a cross compiler in tooldir, not libdir.
  9728. toolexecdir='$(exec_prefix)/$(target_alias)'
  9729. case ${with_toolexeclibdir} in
  9730. no)
  9731. toolexeclibdir='$(toolexecdir)/lib'
  9732. ;;
  9733. *)
  9734. toolexeclibdir=${with_toolexeclibdir}
  9735. ;;
  9736. esac
  9737. else
  9738. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  9739. toolexeclibdir='$(libdir)'
  9740. fi
  9741. multi_os_directory=`$CC -print-multi-os-directory`
  9742. case $multi_os_directory in
  9743. .) ;; # Avoid trailing /.
  9744. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  9745. esac
  9746. ;;
  9747. esac
  9748. if test ${multilib} = yes; then
  9749. multilib_arg="--enable-multilib"
  9750. else
  9751. multilib_arg=
  9752. fi
  9753. # Determine what GCC version number to use in filesystem paths.
  9754. get_gcc_base_ver="cat"
  9755. # Check whether --with-gcc-major-version-only was given.
  9756. if test "${with_gcc_major_version_only+set}" = set; then :
  9757. withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
  9758. get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
  9759. fi
  9760. fi
  9761. ac_config_files="$ac_config_files Makefile ssp/ssp.h"
  9762. cat >confcache <<\_ACEOF
  9763. # This file is a shell script that caches the results of configure
  9764. # tests run on this system so they can be shared between configure
  9765. # scripts and configure runs, see configure's option --config-cache.
  9766. # It is not useful on other systems. If it contains results you don't
  9767. # want to keep, you may remove or edit it.
  9768. #
  9769. # config.status only pays attention to the cache file if you give it
  9770. # the --recheck option to rerun configure.
  9771. #
  9772. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9773. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9774. # following values.
  9775. _ACEOF
  9776. # The following way of writing the cache mishandles newlines in values,
  9777. # but we know of no workaround that is simple, portable, and efficient.
  9778. # So, we kill variables containing newlines.
  9779. # Ultrix sh set writes to stderr and can't be redirected directly,
  9780. # and sets the high bit in the cache file unless we assign to the vars.
  9781. (
  9782. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9783. eval ac_val=\$$ac_var
  9784. case $ac_val in #(
  9785. *${as_nl}*)
  9786. case $ac_var in #(
  9787. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9788. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9789. esac
  9790. case $ac_var in #(
  9791. _ | IFS | as_nl) ;; #(
  9792. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9793. *) { eval $ac_var=; unset $ac_var;} ;;
  9794. esac ;;
  9795. esac
  9796. done
  9797. (set) 2>&1 |
  9798. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9799. *${as_nl}ac_space=\ *)
  9800. # `set' does not quote correctly, so add quotes: double-quote
  9801. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9802. sed -n \
  9803. "s/'/'\\\\''/g;
  9804. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9805. ;; #(
  9806. *)
  9807. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9808. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9809. ;;
  9810. esac |
  9811. sort
  9812. ) |
  9813. sed '
  9814. /^ac_cv_env_/b end
  9815. t clear
  9816. :clear
  9817. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9818. t end
  9819. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9820. :end' >>confcache
  9821. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9822. if test -w "$cache_file"; then
  9823. if test "x$cache_file" != "x/dev/null"; then
  9824. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9825. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9826. if test ! -f "$cache_file" || test -h "$cache_file"; then
  9827. cat confcache >"$cache_file"
  9828. else
  9829. case $cache_file in #(
  9830. */* | ?:*)
  9831. mv -f confcache "$cache_file"$$ &&
  9832. mv -f "$cache_file"$$ "$cache_file" ;; #(
  9833. *)
  9834. mv -f confcache "$cache_file" ;;
  9835. esac
  9836. fi
  9837. fi
  9838. else
  9839. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9840. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9841. fi
  9842. fi
  9843. rm -f confcache
  9844. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9845. # Let make expand exec_prefix.
  9846. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9847. DEFS=-DHAVE_CONFIG_H
  9848. ac_libobjs=
  9849. ac_ltlibobjs=
  9850. U=
  9851. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9852. # 1. Remove the extension, and $U if already installed.
  9853. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9854. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9855. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9856. # will be set to the directory where LIBOBJS objects are built.
  9857. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9858. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9859. done
  9860. LIBOBJS=$ac_libobjs
  9861. LTLIBOBJS=$ac_ltlibobjs
  9862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  9863. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  9864. if test -n "$am_sleep_pid"; then
  9865. # Hide warnings about reused PIDs.
  9866. wait $am_sleep_pid 2>/dev/null
  9867. fi
  9868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  9869. $as_echo "done" >&6; }
  9870. if test -n "$EXEEXT"; then
  9871. am__EXEEXT_TRUE=
  9872. am__EXEEXT_FALSE='#'
  9873. else
  9874. am__EXEEXT_TRUE='#'
  9875. am__EXEEXT_FALSE=
  9876. fi
  9877. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  9878. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  9879. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9880. fi
  9881. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9882. as_fn_error $? "conditional \"AMDEP\" was never defined.
  9883. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9884. fi
  9885. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9886. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  9887. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9888. fi
  9889. if test -z "${LIBSSP_USE_SYMVER_TRUE}" && test -z "${LIBSSP_USE_SYMVER_FALSE}"; then
  9890. as_fn_error $? "conditional \"LIBSSP_USE_SYMVER\" was never defined.
  9891. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9892. fi
  9893. if test -z "${LIBSSP_USE_SYMVER_GNU_TRUE}" && test -z "${LIBSSP_USE_SYMVER_GNU_FALSE}"; then
  9894. as_fn_error $? "conditional \"LIBSSP_USE_SYMVER_GNU\" was never defined.
  9895. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9896. fi
  9897. if test -z "${LIBSSP_USE_SYMVER_SUN_TRUE}" && test -z "${LIBSSP_USE_SYMVER_SUN_FALSE}"; then
  9898. as_fn_error $? "conditional \"LIBSSP_USE_SYMVER_SUN\" was never defined.
  9899. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9900. fi
  9901. : "${CONFIG_STATUS=./config.status}"
  9902. ac_write_fail=0
  9903. ac_clean_files_save=$ac_clean_files
  9904. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9905. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9906. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9907. as_write_fail=0
  9908. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9909. #! $SHELL
  9910. # Generated by $as_me.
  9911. # Run this file to recreate the current configuration.
  9912. # Compiler output produced by configure, useful for debugging
  9913. # configure, is in config.log if it exists.
  9914. debug=false
  9915. ac_cs_recheck=false
  9916. ac_cs_silent=false
  9917. SHELL=\${CONFIG_SHELL-$SHELL}
  9918. export SHELL
  9919. _ASEOF
  9920. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9921. ## -------------------- ##
  9922. ## M4sh Initialization. ##
  9923. ## -------------------- ##
  9924. # Be more Bourne compatible
  9925. DUALCASE=1; export DUALCASE # for MKS sh
  9926. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9927. emulate sh
  9928. NULLCMD=:
  9929. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9930. # is contrary to our usage. Disable this feature.
  9931. alias -g '${1+"$@"}'='"$@"'
  9932. setopt NO_GLOB_SUBST
  9933. else
  9934. case `(set -o) 2>/dev/null` in #(
  9935. *posix*) :
  9936. set -o posix ;; #(
  9937. *) :
  9938. ;;
  9939. esac
  9940. fi
  9941. as_nl='
  9942. '
  9943. export as_nl
  9944. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9945. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9946. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9947. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9948. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9949. # but without wasting forks for bash or zsh.
  9950. if test -z "$BASH_VERSION$ZSH_VERSION" \
  9951. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9952. as_echo='print -r --'
  9953. as_echo_n='print -rn --'
  9954. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9955. as_echo='printf %s\n'
  9956. as_echo_n='printf %s'
  9957. else
  9958. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9959. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9960. as_echo_n='/usr/ucb/echo -n'
  9961. else
  9962. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9963. as_echo_n_body='eval
  9964. arg=$1;
  9965. case $arg in #(
  9966. *"$as_nl"*)
  9967. expr "X$arg" : "X\\(.*\\)$as_nl";
  9968. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9969. esac;
  9970. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9971. '
  9972. export as_echo_n_body
  9973. as_echo_n='sh -c $as_echo_n_body as_echo'
  9974. fi
  9975. export as_echo_body
  9976. as_echo='sh -c $as_echo_body as_echo'
  9977. fi
  9978. # The user is always right.
  9979. if test "${PATH_SEPARATOR+set}" != set; then
  9980. PATH_SEPARATOR=:
  9981. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9982. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9983. PATH_SEPARATOR=';'
  9984. }
  9985. fi
  9986. # IFS
  9987. # We need space, tab and new line, in precisely that order. Quoting is
  9988. # there to prevent editors from complaining about space-tab.
  9989. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9990. # splitting by setting IFS to empty value.)
  9991. IFS=" "" $as_nl"
  9992. # Find who we are. Look in the path if we contain no directory separator.
  9993. as_myself=
  9994. case $0 in #((
  9995. *[\\/]* ) as_myself=$0 ;;
  9996. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9997. for as_dir in $PATH
  9998. do
  9999. IFS=$as_save_IFS
  10000. test -z "$as_dir" && as_dir=.
  10001. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10002. done
  10003. IFS=$as_save_IFS
  10004. ;;
  10005. esac
  10006. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10007. # in which case we are not to be found in the path.
  10008. if test "x$as_myself" = x; then
  10009. as_myself=$0
  10010. fi
  10011. if test ! -f "$as_myself"; then
  10012. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10013. exit 1
  10014. fi
  10015. # Unset variables that we do not need and which cause bugs (e.g. in
  10016. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10017. # suppresses any "Segmentation fault" message there. '((' could
  10018. # trigger a bug in pdksh 5.2.14.
  10019. for as_var in BASH_ENV ENV MAIL MAILPATH
  10020. do eval test x\${$as_var+set} = xset \
  10021. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10022. done
  10023. PS1='$ '
  10024. PS2='> '
  10025. PS4='+ '
  10026. # NLS nuisances.
  10027. LC_ALL=C
  10028. export LC_ALL
  10029. LANGUAGE=C
  10030. export LANGUAGE
  10031. # CDPATH.
  10032. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10033. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  10034. # ----------------------------------------
  10035. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10036. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10037. # script with STATUS, using 1 if that was 0.
  10038. as_fn_error ()
  10039. {
  10040. as_status=$1; test $as_status -eq 0 && as_status=1
  10041. if test "$4"; then
  10042. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10043. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10044. fi
  10045. $as_echo "$as_me: error: $2" >&2
  10046. as_fn_exit $as_status
  10047. } # as_fn_error
  10048. # as_fn_set_status STATUS
  10049. # -----------------------
  10050. # Set $? to STATUS, without forking.
  10051. as_fn_set_status ()
  10052. {
  10053. return $1
  10054. } # as_fn_set_status
  10055. # as_fn_exit STATUS
  10056. # -----------------
  10057. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10058. as_fn_exit ()
  10059. {
  10060. set +e
  10061. as_fn_set_status $1
  10062. exit $1
  10063. } # as_fn_exit
  10064. # as_fn_unset VAR
  10065. # ---------------
  10066. # Portably unset VAR.
  10067. as_fn_unset ()
  10068. {
  10069. { eval $1=; unset $1;}
  10070. }
  10071. as_unset=as_fn_unset
  10072. # as_fn_append VAR VALUE
  10073. # ----------------------
  10074. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10075. # advantage of any shell optimizations that allow amortized linear growth over
  10076. # repeated appends, instead of the typical quadratic growth present in naive
  10077. # implementations.
  10078. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10079. eval 'as_fn_append ()
  10080. {
  10081. eval $1+=\$2
  10082. }'
  10083. else
  10084. as_fn_append ()
  10085. {
  10086. eval $1=\$$1\$2
  10087. }
  10088. fi # as_fn_append
  10089. # as_fn_arith ARG...
  10090. # ------------------
  10091. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10092. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10093. # must be portable across $(()) and expr.
  10094. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10095. eval 'as_fn_arith ()
  10096. {
  10097. as_val=$(( $* ))
  10098. }'
  10099. else
  10100. as_fn_arith ()
  10101. {
  10102. as_val=`expr "$@" || test $? -eq 1`
  10103. }
  10104. fi # as_fn_arith
  10105. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10106. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10107. as_expr=expr
  10108. else
  10109. as_expr=false
  10110. fi
  10111. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10112. as_basename=basename
  10113. else
  10114. as_basename=false
  10115. fi
  10116. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10117. as_dirname=dirname
  10118. else
  10119. as_dirname=false
  10120. fi
  10121. as_me=`$as_basename -- "$0" ||
  10122. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10123. X"$0" : 'X\(//\)$' \| \
  10124. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10125. $as_echo X/"$0" |
  10126. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10127. s//\1/
  10128. q
  10129. }
  10130. /^X\/\(\/\/\)$/{
  10131. s//\1/
  10132. q
  10133. }
  10134. /^X\/\(\/\).*/{
  10135. s//\1/
  10136. q
  10137. }
  10138. s/.*/./; q'`
  10139. # Avoid depending upon Character Ranges.
  10140. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10141. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10142. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10143. as_cr_digits='0123456789'
  10144. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10145. ECHO_C= ECHO_N= ECHO_T=
  10146. case `echo -n x` in #(((((
  10147. -n*)
  10148. case `echo 'xy\c'` in
  10149. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10150. xy) ECHO_C='\c';;
  10151. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10152. ECHO_T=' ';;
  10153. esac;;
  10154. *)
  10155. ECHO_N='-n';;
  10156. esac
  10157. rm -f conf$$ conf$$.exe conf$$.file
  10158. if test -d conf$$.dir; then
  10159. rm -f conf$$.dir/conf$$.file
  10160. else
  10161. rm -f conf$$.dir
  10162. mkdir conf$$.dir 2>/dev/null
  10163. fi
  10164. if (echo >conf$$.file) 2>/dev/null; then
  10165. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10166. as_ln_s='ln -s'
  10167. # ... but there are two gotchas:
  10168. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10169. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10170. # In both cases, we have to default to `cp -pR'.
  10171. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10172. as_ln_s='cp -pR'
  10173. elif ln conf$$.file conf$$ 2>/dev/null; then
  10174. as_ln_s=ln
  10175. else
  10176. as_ln_s='cp -pR'
  10177. fi
  10178. else
  10179. as_ln_s='cp -pR'
  10180. fi
  10181. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10182. rmdir conf$$.dir 2>/dev/null
  10183. # as_fn_mkdir_p
  10184. # -------------
  10185. # Create "$as_dir" as a directory, including parents if necessary.
  10186. as_fn_mkdir_p ()
  10187. {
  10188. case $as_dir in #(
  10189. -*) as_dir=./$as_dir;;
  10190. esac
  10191. test -d "$as_dir" || eval $as_mkdir_p || {
  10192. as_dirs=
  10193. while :; do
  10194. case $as_dir in #(
  10195. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10196. *) as_qdir=$as_dir;;
  10197. esac
  10198. as_dirs="'$as_qdir' $as_dirs"
  10199. as_dir=`$as_dirname -- "$as_dir" ||
  10200. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10201. X"$as_dir" : 'X\(//\)[^/]' \| \
  10202. X"$as_dir" : 'X\(//\)$' \| \
  10203. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10204. $as_echo X"$as_dir" |
  10205. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10206. s//\1/
  10207. q
  10208. }
  10209. /^X\(\/\/\)[^/].*/{
  10210. s//\1/
  10211. q
  10212. }
  10213. /^X\(\/\/\)$/{
  10214. s//\1/
  10215. q
  10216. }
  10217. /^X\(\/\).*/{
  10218. s//\1/
  10219. q
  10220. }
  10221. s/.*/./; q'`
  10222. test -d "$as_dir" && break
  10223. done
  10224. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10225. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10226. } # as_fn_mkdir_p
  10227. if mkdir -p . 2>/dev/null; then
  10228. as_mkdir_p='mkdir -p "$as_dir"'
  10229. else
  10230. test -d ./-p && rmdir ./-p
  10231. as_mkdir_p=false
  10232. fi
  10233. # as_fn_executable_p FILE
  10234. # -----------------------
  10235. # Test if FILE is an executable regular file.
  10236. as_fn_executable_p ()
  10237. {
  10238. test -f "$1" && test -x "$1"
  10239. } # as_fn_executable_p
  10240. as_test_x='test -x'
  10241. as_executable_p=as_fn_executable_p
  10242. # Sed expression to map a string onto a valid CPP name.
  10243. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10244. # Sed expression to map a string onto a valid variable name.
  10245. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10246. exec 6>&1
  10247. ## ----------------------------------- ##
  10248. ## Main body of $CONFIG_STATUS script. ##
  10249. ## ----------------------------------- ##
  10250. _ASEOF
  10251. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10252. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10253. # Save the log message, to keep $0 and so on meaningful, and to
  10254. # report actual input values of CONFIG_FILES etc. instead of their
  10255. # values after options handling.
  10256. ac_log="
  10257. This file was extended by libssp $as_me 1.0, which was
  10258. generated by GNU Autoconf 2.69. Invocation command line was
  10259. CONFIG_FILES = $CONFIG_FILES
  10260. CONFIG_HEADERS = $CONFIG_HEADERS
  10261. CONFIG_LINKS = $CONFIG_LINKS
  10262. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10263. $ $0 $@
  10264. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10265. "
  10266. _ACEOF
  10267. case $ac_config_files in *"
  10268. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10269. esac
  10270. case $ac_config_headers in *"
  10271. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  10272. esac
  10273. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10274. # Files that config.status was made for.
  10275. config_files="$ac_config_files"
  10276. config_headers="$ac_config_headers"
  10277. config_commands="$ac_config_commands"
  10278. _ACEOF
  10279. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10280. ac_cs_usage="\
  10281. \`$as_me' instantiates files and other configuration actions
  10282. from templates according to the current configuration. Unless the files
  10283. and actions are specified as TAGs, all are instantiated by default.
  10284. Usage: $0 [OPTION]... [TAG]...
  10285. -h, --help print this help, then exit
  10286. -V, --version print version number and configuration settings, then exit
  10287. --config print configuration, then exit
  10288. -q, --quiet, --silent
  10289. do not print progress messages
  10290. -d, --debug don't remove temporary files
  10291. --recheck update $as_me by reconfiguring in the same conditions
  10292. --file=FILE[:TEMPLATE]
  10293. instantiate the configuration file FILE
  10294. --header=FILE[:TEMPLATE]
  10295. instantiate the configuration header FILE
  10296. Configuration files:
  10297. $config_files
  10298. Configuration headers:
  10299. $config_headers
  10300. Configuration commands:
  10301. $config_commands
  10302. Report bugs to the package provider."
  10303. _ACEOF
  10304. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10305. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  10306. ac_cs_version="\\
  10307. libssp config.status 1.0
  10308. configured by $0, generated by GNU Autoconf 2.69,
  10309. with options \\"\$ac_cs_config\\"
  10310. Copyright (C) 2012 Free Software Foundation, Inc.
  10311. This config.status script is free software; the Free Software Foundation
  10312. gives unlimited permission to copy, distribute and modify it."
  10313. ac_pwd='$ac_pwd'
  10314. srcdir='$srcdir'
  10315. INSTALL='$INSTALL'
  10316. MKDIR_P='$MKDIR_P'
  10317. AWK='$AWK'
  10318. test -n "\$AWK" || AWK=awk
  10319. _ACEOF
  10320. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10321. # The default lists apply if the user does not specify any file.
  10322. ac_need_defaults=:
  10323. while test $# != 0
  10324. do
  10325. case $1 in
  10326. --*=?*)
  10327. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10328. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10329. ac_shift=:
  10330. ;;
  10331. --*=)
  10332. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10333. ac_optarg=
  10334. ac_shift=:
  10335. ;;
  10336. *)
  10337. ac_option=$1
  10338. ac_optarg=$2
  10339. ac_shift=shift
  10340. ;;
  10341. esac
  10342. case $ac_option in
  10343. # Handling of the options.
  10344. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10345. ac_cs_recheck=: ;;
  10346. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10347. $as_echo "$ac_cs_version"; exit ;;
  10348. --config | --confi | --conf | --con | --co | --c )
  10349. $as_echo "$ac_cs_config"; exit ;;
  10350. --debug | --debu | --deb | --de | --d | -d )
  10351. debug=: ;;
  10352. --file | --fil | --fi | --f )
  10353. $ac_shift
  10354. case $ac_optarg in
  10355. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10356. '') as_fn_error $? "missing file argument" ;;
  10357. esac
  10358. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10359. ac_need_defaults=false;;
  10360. --header | --heade | --head | --hea )
  10361. $ac_shift
  10362. case $ac_optarg in
  10363. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10364. esac
  10365. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  10366. ac_need_defaults=false;;
  10367. --he | --h)
  10368. # Conflict between --help and --header
  10369. as_fn_error $? "ambiguous option: \`$1'
  10370. Try \`$0 --help' for more information.";;
  10371. --help | --hel | -h )
  10372. $as_echo "$ac_cs_usage"; exit ;;
  10373. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10374. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10375. ac_cs_silent=: ;;
  10376. # This is an error.
  10377. -*) as_fn_error $? "unrecognized option: \`$1'
  10378. Try \`$0 --help' for more information." ;;
  10379. *) as_fn_append ac_config_targets " $1"
  10380. ac_need_defaults=false ;;
  10381. esac
  10382. shift
  10383. done
  10384. ac_configure_extra_args=
  10385. if $ac_cs_silent; then
  10386. exec 6>/dev/null
  10387. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10388. fi
  10389. _ACEOF
  10390. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10391. if \$ac_cs_recheck; then
  10392. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10393. shift
  10394. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10395. CONFIG_SHELL='$SHELL'
  10396. export CONFIG_SHELL
  10397. exec "\$@"
  10398. fi
  10399. _ACEOF
  10400. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10401. exec 5>>config.log
  10402. {
  10403. echo
  10404. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10405. ## Running $as_me. ##
  10406. _ASBOX
  10407. $as_echo "$ac_log"
  10408. } >&5
  10409. _ACEOF
  10410. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10411. #
  10412. # INIT-COMMANDS
  10413. #
  10414. srcdir="$srcdir"
  10415. host="$host"
  10416. target="$target"
  10417. with_multisubdir="$with_multisubdir"
  10418. with_multisrctop="$with_multisrctop"
  10419. with_target_subdir="$with_target_subdir"
  10420. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  10421. multi_basedir="$multi_basedir"
  10422. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  10423. CC="$CC"
  10424. CXX="$CXX"
  10425. GFORTRAN="$GFORTRAN"
  10426. GDC="$GDC"
  10427. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10428. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10429. # if CDPATH is set.
  10430. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10431. sed_quote_subst='$sed_quote_subst'
  10432. double_quote_subst='$double_quote_subst'
  10433. delay_variable_subst='$delay_variable_subst'
  10434. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  10435. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  10436. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  10437. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  10438. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  10439. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  10440. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  10441. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  10442. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  10443. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  10444. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  10445. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  10446. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  10447. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  10448. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  10449. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  10450. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  10451. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  10452. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  10453. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  10454. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  10455. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  10456. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  10457. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  10458. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  10459. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  10460. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  10461. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  10462. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  10463. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  10464. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  10465. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  10466. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  10467. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  10468. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  10469. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  10470. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  10471. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10472. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10473. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  10474. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  10475. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  10476. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  10477. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  10478. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  10479. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  10480. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  10481. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  10482. 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"`'
  10483. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  10484. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  10485. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  10486. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  10487. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  10488. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  10489. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  10490. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  10491. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  10492. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  10493. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  10494. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  10495. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  10496. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  10497. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  10498. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10499. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  10500. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  10501. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  10502. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  10503. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  10504. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  10505. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10506. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  10507. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10508. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  10509. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10510. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  10511. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10512. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10513. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  10514. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  10515. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  10516. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  10517. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  10518. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  10519. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10520. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  10521. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  10522. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  10523. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  10524. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  10525. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  10526. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  10527. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  10528. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  10529. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  10530. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  10531. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10532. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  10533. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  10534. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  10535. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10536. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  10537. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  10538. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  10539. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  10540. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  10541. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10542. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10543. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  10544. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  10545. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  10546. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  10547. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  10548. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  10549. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  10550. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  10551. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  10552. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  10553. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  10554. LTCC='$LTCC'
  10555. LTCFLAGS='$LTCFLAGS'
  10556. compiler='$compiler_DEFAULT'
  10557. # A function that is used when there is no print builtin or printf.
  10558. func_fallback_echo ()
  10559. {
  10560. eval 'cat <<_LTECHO_EOF
  10561. \$1
  10562. _LTECHO_EOF'
  10563. }
  10564. # Quote evaled strings.
  10565. for var in SHELL \
  10566. ECHO \
  10567. SED \
  10568. GREP \
  10569. EGREP \
  10570. FGREP \
  10571. LD \
  10572. NM \
  10573. LN_S \
  10574. lt_SP2NL \
  10575. lt_NL2SP \
  10576. reload_flag \
  10577. OBJDUMP \
  10578. deplibs_check_method \
  10579. file_magic_cmd \
  10580. AR \
  10581. AR_FLAGS \
  10582. STRIP \
  10583. RANLIB \
  10584. CC \
  10585. CFLAGS \
  10586. compiler \
  10587. lt_cv_sys_global_symbol_pipe \
  10588. lt_cv_sys_global_symbol_to_cdecl \
  10589. lt_cv_sys_global_symbol_to_c_name_address \
  10590. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10591. lt_prog_compiler_no_builtin_flag \
  10592. lt_prog_compiler_wl \
  10593. lt_prog_compiler_pic \
  10594. lt_prog_compiler_static \
  10595. lt_cv_prog_compiler_c_o \
  10596. need_locks \
  10597. DSYMUTIL \
  10598. NMEDIT \
  10599. LIPO \
  10600. OTOOL \
  10601. OTOOL64 \
  10602. shrext_cmds \
  10603. export_dynamic_flag_spec \
  10604. whole_archive_flag_spec \
  10605. compiler_needs_object \
  10606. with_gnu_ld \
  10607. allow_undefined_flag \
  10608. no_undefined_flag \
  10609. hardcode_libdir_flag_spec \
  10610. hardcode_libdir_flag_spec_ld \
  10611. hardcode_libdir_separator \
  10612. fix_srcfile_path \
  10613. exclude_expsyms \
  10614. include_expsyms \
  10615. file_list_spec \
  10616. variables_saved_for_relink \
  10617. libname_spec \
  10618. library_names_spec \
  10619. soname_spec \
  10620. install_override_mode \
  10621. finish_eval \
  10622. old_striplib \
  10623. striplib; do
  10624. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10625. *[\\\\\\\`\\"\\\$]*)
  10626. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10627. ;;
  10628. *)
  10629. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10630. ;;
  10631. esac
  10632. done
  10633. # Double-quote double-evaled strings.
  10634. for var in reload_cmds \
  10635. old_postinstall_cmds \
  10636. old_postuninstall_cmds \
  10637. old_archive_cmds \
  10638. extract_expsyms_cmds \
  10639. old_archive_from_new_cmds \
  10640. old_archive_from_expsyms_cmds \
  10641. archive_cmds \
  10642. archive_expsym_cmds \
  10643. module_cmds \
  10644. module_expsym_cmds \
  10645. export_symbols_cmds \
  10646. prelink_cmds \
  10647. postinstall_cmds \
  10648. postuninstall_cmds \
  10649. finish_cmds \
  10650. sys_lib_search_path_spec \
  10651. sys_lib_dlsearch_path_spec; do
  10652. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10653. *[\\\\\\\`\\"\\\$]*)
  10654. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10655. ;;
  10656. *)
  10657. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10658. ;;
  10659. esac
  10660. done
  10661. ac_aux_dir='$ac_aux_dir'
  10662. xsi_shell='$xsi_shell'
  10663. lt_shell_append='$lt_shell_append'
  10664. # See if we are running on zsh, and set the options which allow our
  10665. # commands through without removal of \ escapes INIT.
  10666. if test -n "\${ZSH_VERSION+set}" ; then
  10667. setopt NO_GLOB_SUBST
  10668. fi
  10669. PACKAGE='$PACKAGE'
  10670. VERSION='$VERSION'
  10671. TIMESTAMP='$TIMESTAMP'
  10672. RM='$RM'
  10673. ofile='$ofile'
  10674. _ACEOF
  10675. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10676. # Handling of arguments.
  10677. for ac_config_target in $ac_config_targets
  10678. do
  10679. case $ac_config_target in
  10680. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  10681. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10682. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10683. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10684. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10685. "ssp/ssp.h") CONFIG_FILES="$CONFIG_FILES ssp/ssp.h" ;;
  10686. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10687. esac
  10688. done
  10689. # If the user did not use the arguments to specify the items to instantiate,
  10690. # then the envvar interface is used. Set only those that are not.
  10691. # We use the long form for the default assignment because of an extremely
  10692. # bizarre bug on SunOS 4.1.3.
  10693. if $ac_need_defaults; then
  10694. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10695. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10696. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10697. fi
  10698. # Have a temporary directory for convenience. Make it in the build tree
  10699. # simply because there is no reason against having it here, and in addition,
  10700. # creating and moving files from /tmp can sometimes cause problems.
  10701. # Hook for its removal unless debugging.
  10702. # Note that there is a small window in which the directory will not be cleaned:
  10703. # after its creation but before its name has been assigned to `$tmp'.
  10704. $debug ||
  10705. {
  10706. tmp= ac_tmp=
  10707. trap 'exit_status=$?
  10708. : "${ac_tmp:=$tmp}"
  10709. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  10710. ' 0
  10711. trap 'as_fn_exit 1' 1 2 13 15
  10712. }
  10713. # Create a (secure) tmp directory for tmp files.
  10714. {
  10715. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10716. test -d "$tmp"
  10717. } ||
  10718. {
  10719. tmp=./conf$$-$RANDOM
  10720. (umask 077 && mkdir "$tmp")
  10721. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  10722. ac_tmp=$tmp
  10723. # Set up the scripts for CONFIG_FILES section.
  10724. # No need to generate them if there are no CONFIG_FILES.
  10725. # This happens for instance with `./config.status config.h'.
  10726. if test -n "$CONFIG_FILES"; then
  10727. ac_cr=`echo X | tr X '\015'`
  10728. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10729. # But we know of no other shell where ac_cr would be empty at this
  10730. # point, so we can use a bashism as a fallback.
  10731. if test "x$ac_cr" = x; then
  10732. eval ac_cr=\$\'\\r\'
  10733. fi
  10734. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10735. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10736. ac_cs_awk_cr='\\r'
  10737. else
  10738. ac_cs_awk_cr=$ac_cr
  10739. fi
  10740. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  10741. _ACEOF
  10742. {
  10743. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10744. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10745. echo "_ACEOF"
  10746. } >conf$$subs.sh ||
  10747. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10748. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  10749. ac_delim='%!_!# '
  10750. for ac_last_try in false false false false false :; do
  10751. . ./conf$$subs.sh ||
  10752. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10753. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10754. if test $ac_delim_n = $ac_delim_num; then
  10755. break
  10756. elif $ac_last_try; then
  10757. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10758. else
  10759. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10760. fi
  10761. done
  10762. rm -f conf$$subs.sh
  10763. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10764. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  10765. _ACEOF
  10766. sed -n '
  10767. h
  10768. s/^/S["/; s/!.*/"]=/
  10769. p
  10770. g
  10771. s/^[^!]*!//
  10772. :repl
  10773. t repl
  10774. s/'"$ac_delim"'$//
  10775. t delim
  10776. :nl
  10777. h
  10778. s/\(.\{148\}\)..*/\1/
  10779. t more1
  10780. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10781. p
  10782. n
  10783. b repl
  10784. :more1
  10785. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10786. p
  10787. g
  10788. s/.\{148\}//
  10789. t nl
  10790. :delim
  10791. h
  10792. s/\(.\{148\}\)..*/\1/
  10793. t more2
  10794. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10795. p
  10796. b
  10797. :more2
  10798. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10799. p
  10800. g
  10801. s/.\{148\}//
  10802. t delim
  10803. ' <conf$$subs.awk | sed '
  10804. /^[^""]/{
  10805. N
  10806. s/\n//
  10807. }
  10808. ' >>$CONFIG_STATUS || ac_write_fail=1
  10809. rm -f conf$$subs.awk
  10810. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10811. _ACAWK
  10812. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  10813. for (key in S) S_is_set[key] = 1
  10814. FS = ""
  10815. }
  10816. {
  10817. line = $ 0
  10818. nfields = split(line, field, "@")
  10819. substed = 0
  10820. len = length(field[1])
  10821. for (i = 2; i < nfields; i++) {
  10822. key = field[i]
  10823. keylen = length(key)
  10824. if (S_is_set[key]) {
  10825. value = S[key]
  10826. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10827. len += length(value) + length(field[++i])
  10828. substed = 1
  10829. } else
  10830. len += 1 + keylen
  10831. }
  10832. print line
  10833. }
  10834. _ACAWK
  10835. _ACEOF
  10836. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10837. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10838. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10839. else
  10840. cat
  10841. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  10842. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  10843. _ACEOF
  10844. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  10845. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  10846. # trailing colons and then remove the whole line if VPATH becomes empty
  10847. # (actually we leave an empty line to preserve line numbers).
  10848. if test "x$srcdir" = x.; then
  10849. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  10850. h
  10851. s///
  10852. s/^/:/
  10853. s/[ ]*$/:/
  10854. s/:\$(srcdir):/:/g
  10855. s/:\${srcdir}:/:/g
  10856. s/:@srcdir@:/:/g
  10857. s/^:*//
  10858. s/:*$//
  10859. x
  10860. s/\(=[ ]*\).*/\1/
  10861. G
  10862. s/\n//
  10863. s/^[^=]*=[ ]*$//
  10864. }'
  10865. fi
  10866. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10867. fi # test -n "$CONFIG_FILES"
  10868. # Set up the scripts for CONFIG_HEADERS section.
  10869. # No need to generate them if there are no CONFIG_HEADERS.
  10870. # This happens for instance with `./config.status Makefile'.
  10871. if test -n "$CONFIG_HEADERS"; then
  10872. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  10873. BEGIN {
  10874. _ACEOF
  10875. # Transform confdefs.h into an awk script `defines.awk', embedded as
  10876. # here-document in config.status, that substitutes the proper values into
  10877. # config.h.in to produce config.h.
  10878. # Create a delimiter string that does not exist in confdefs.h, to ease
  10879. # handling of long lines.
  10880. ac_delim='%!_!# '
  10881. for ac_last_try in false false :; do
  10882. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  10883. if test -z "$ac_tt"; then
  10884. break
  10885. elif $ac_last_try; then
  10886. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  10887. else
  10888. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10889. fi
  10890. done
  10891. # For the awk script, D is an array of macro values keyed by name,
  10892. # likewise P contains macro parameters if any. Preserve backslash
  10893. # newline sequences.
  10894. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  10895. sed -n '
  10896. s/.\{148\}/&'"$ac_delim"'/g
  10897. t rset
  10898. :rset
  10899. s/^[ ]*#[ ]*define[ ][ ]*/ /
  10900. t def
  10901. d
  10902. :def
  10903. s/\\$//
  10904. t bsnl
  10905. s/["\\]/\\&/g
  10906. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10907. D["\1"]=" \3"/p
  10908. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  10909. d
  10910. :bsnl
  10911. s/["\\]/\\&/g
  10912. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10913. D["\1"]=" \3\\\\\\n"\\/p
  10914. t cont
  10915. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  10916. t cont
  10917. d
  10918. :cont
  10919. n
  10920. s/.\{148\}/&'"$ac_delim"'/g
  10921. t clear
  10922. :clear
  10923. s/\\$//
  10924. t bsnlc
  10925. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  10926. d
  10927. :bsnlc
  10928. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  10929. b cont
  10930. ' <confdefs.h | sed '
  10931. s/'"$ac_delim"'/"\\\
  10932. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  10933. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10934. for (key in D) D_is_set[key] = 1
  10935. FS = ""
  10936. }
  10937. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  10938. line = \$ 0
  10939. split(line, arg, " ")
  10940. if (arg[1] == "#") {
  10941. defundef = arg[2]
  10942. mac1 = arg[3]
  10943. } else {
  10944. defundef = substr(arg[1], 2)
  10945. mac1 = arg[2]
  10946. }
  10947. split(mac1, mac2, "(") #)
  10948. macro = mac2[1]
  10949. prefix = substr(line, 1, index(line, defundef) - 1)
  10950. if (D_is_set[macro]) {
  10951. # Preserve the white space surrounding the "#".
  10952. print prefix "define", macro P[macro] D[macro]
  10953. next
  10954. } else {
  10955. # Replace #undef with comments. This is necessary, for example,
  10956. # in the case of _POSIX_SOURCE, which is predefined and required
  10957. # on some systems where configure will not decide to define it.
  10958. if (defundef == "undef") {
  10959. print "/*", prefix defundef, macro, "*/"
  10960. next
  10961. }
  10962. }
  10963. }
  10964. { print }
  10965. _ACAWK
  10966. _ACEOF
  10967. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10968. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  10969. fi # test -n "$CONFIG_HEADERS"
  10970. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  10971. shift
  10972. for ac_tag
  10973. do
  10974. case $ac_tag in
  10975. :[FHLC]) ac_mode=$ac_tag; continue;;
  10976. esac
  10977. case $ac_mode$ac_tag in
  10978. :[FHL]*:*);;
  10979. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  10980. :[FH]-) ac_tag=-:-;;
  10981. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10982. esac
  10983. ac_save_IFS=$IFS
  10984. IFS=:
  10985. set x $ac_tag
  10986. IFS=$ac_save_IFS
  10987. shift
  10988. ac_file=$1
  10989. shift
  10990. case $ac_mode in
  10991. :L) ac_source=$1;;
  10992. :[FH])
  10993. ac_file_inputs=
  10994. for ac_f
  10995. do
  10996. case $ac_f in
  10997. -) ac_f="$ac_tmp/stdin";;
  10998. *) # Look for the file first in the build tree, then in the source tree
  10999. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11000. # because $ac_f cannot contain `:'.
  11001. test -f "$ac_f" ||
  11002. case $ac_f in
  11003. [\\/$]*) false;;
  11004. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11005. esac ||
  11006. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11007. esac
  11008. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11009. as_fn_append ac_file_inputs " '$ac_f'"
  11010. done
  11011. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11012. # use $as_me), people would be surprised to read:
  11013. # /* config.h. Generated by config.status. */
  11014. configure_input='Generated from '`
  11015. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11016. `' by configure.'
  11017. if test x"$ac_file" != x-; then
  11018. configure_input="$ac_file. $configure_input"
  11019. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11020. $as_echo "$as_me: creating $ac_file" >&6;}
  11021. fi
  11022. # Neutralize special characters interpreted by sed in replacement strings.
  11023. case $configure_input in #(
  11024. *\&* | *\|* | *\\* )
  11025. ac_sed_conf_input=`$as_echo "$configure_input" |
  11026. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11027. *) ac_sed_conf_input=$configure_input;;
  11028. esac
  11029. case $ac_tag in
  11030. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11031. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11032. esac
  11033. ;;
  11034. esac
  11035. ac_dir=`$as_dirname -- "$ac_file" ||
  11036. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11037. X"$ac_file" : 'X\(//\)[^/]' \| \
  11038. X"$ac_file" : 'X\(//\)$' \| \
  11039. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11040. $as_echo X"$ac_file" |
  11041. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11042. s//\1/
  11043. q
  11044. }
  11045. /^X\(\/\/\)[^/].*/{
  11046. s//\1/
  11047. q
  11048. }
  11049. /^X\(\/\/\)$/{
  11050. s//\1/
  11051. q
  11052. }
  11053. /^X\(\/\).*/{
  11054. s//\1/
  11055. q
  11056. }
  11057. s/.*/./; q'`
  11058. as_dir="$ac_dir"; as_fn_mkdir_p
  11059. ac_builddir=.
  11060. case "$ac_dir" in
  11061. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11062. *)
  11063. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11064. # A ".." for each directory in $ac_dir_suffix.
  11065. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11066. case $ac_top_builddir_sub in
  11067. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11068. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11069. esac ;;
  11070. esac
  11071. ac_abs_top_builddir=$ac_pwd
  11072. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11073. # for backward compatibility:
  11074. ac_top_builddir=$ac_top_build_prefix
  11075. case $srcdir in
  11076. .) # We are building in place.
  11077. ac_srcdir=.
  11078. ac_top_srcdir=$ac_top_builddir_sub
  11079. ac_abs_top_srcdir=$ac_pwd ;;
  11080. [\\/]* | ?:[\\/]* ) # Absolute name.
  11081. ac_srcdir=$srcdir$ac_dir_suffix;
  11082. ac_top_srcdir=$srcdir
  11083. ac_abs_top_srcdir=$srcdir ;;
  11084. *) # Relative name.
  11085. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11086. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11087. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11088. esac
  11089. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11090. case $ac_mode in
  11091. :F)
  11092. #
  11093. # CONFIG_FILE
  11094. #
  11095. case $INSTALL in
  11096. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11097. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11098. esac
  11099. ac_MKDIR_P=$MKDIR_P
  11100. case $MKDIR_P in
  11101. [\\/$]* | ?:[\\/]* ) ;;
  11102. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11103. esac
  11104. _ACEOF
  11105. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11106. # If the template does not know about datarootdir, expand it.
  11107. # FIXME: This hack should be removed a few years after 2.60.
  11108. ac_datarootdir_hack=; ac_datarootdir_seen=
  11109. ac_sed_dataroot='
  11110. /datarootdir/ {
  11111. p
  11112. q
  11113. }
  11114. /@datadir@/p
  11115. /@docdir@/p
  11116. /@infodir@/p
  11117. /@localedir@/p
  11118. /@mandir@/p'
  11119. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11120. *datarootdir*) ac_datarootdir_seen=yes;;
  11121. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11122. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11123. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11124. _ACEOF
  11125. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11126. ac_datarootdir_hack='
  11127. s&@datadir@&$datadir&g
  11128. s&@docdir@&$docdir&g
  11129. s&@infodir@&$infodir&g
  11130. s&@localedir@&$localedir&g
  11131. s&@mandir@&$mandir&g
  11132. s&\\\${datarootdir}&$datarootdir&g' ;;
  11133. esac
  11134. _ACEOF
  11135. # Neutralize VPATH when `$srcdir' = `.'.
  11136. # Shell code in configure.ac might set extrasub.
  11137. # FIXME: do we really want to maintain this feature?
  11138. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11139. ac_sed_extra="$ac_vpsub
  11140. $extrasub
  11141. _ACEOF
  11142. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11143. :t
  11144. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11145. s|@configure_input@|$ac_sed_conf_input|;t t
  11146. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11147. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11148. s&@srcdir@&$ac_srcdir&;t t
  11149. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11150. s&@top_srcdir@&$ac_top_srcdir&;t t
  11151. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11152. s&@builddir@&$ac_builddir&;t t
  11153. s&@abs_builddir@&$ac_abs_builddir&;t t
  11154. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11155. s&@INSTALL@&$ac_INSTALL&;t t
  11156. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11157. $ac_datarootdir_hack
  11158. "
  11159. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  11160. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11161. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11162. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  11163. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  11164. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  11165. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11166. which seems to be undefined. Please make sure it is defined" >&5
  11167. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11168. which seems to be undefined. Please make sure it is defined" >&2;}
  11169. rm -f "$ac_tmp/stdin"
  11170. case $ac_file in
  11171. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11172. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11173. esac \
  11174. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11175. ;;
  11176. :H)
  11177. #
  11178. # CONFIG_HEADER
  11179. #
  11180. if test x"$ac_file" != x-; then
  11181. {
  11182. $as_echo "/* $configure_input */" \
  11183. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  11184. } >"$ac_tmp/config.h" \
  11185. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11186. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  11187. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  11188. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  11189. else
  11190. rm -f "$ac_file"
  11191. mv "$ac_tmp/config.h" "$ac_file" \
  11192. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11193. fi
  11194. else
  11195. $as_echo "/* $configure_input */" \
  11196. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  11197. || as_fn_error $? "could not create -" "$LINENO" 5
  11198. fi
  11199. # Compute "$ac_file"'s index in $config_headers.
  11200. _am_arg="$ac_file"
  11201. _am_stamp_count=1
  11202. for _am_header in $config_headers :; do
  11203. case $_am_header in
  11204. $_am_arg | $_am_arg:* )
  11205. break ;;
  11206. * )
  11207. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11208. esac
  11209. done
  11210. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  11211. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11212. X"$_am_arg" : 'X\(//\)[^/]' \| \
  11213. X"$_am_arg" : 'X\(//\)$' \| \
  11214. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  11215. $as_echo X"$_am_arg" |
  11216. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11217. s//\1/
  11218. q
  11219. }
  11220. /^X\(\/\/\)[^/].*/{
  11221. s//\1/
  11222. q
  11223. }
  11224. /^X\(\/\/\)$/{
  11225. s//\1/
  11226. q
  11227. }
  11228. /^X\(\/\).*/{
  11229. s//\1/
  11230. q
  11231. }
  11232. s/.*/./; q'`/stamp-h$_am_stamp_count
  11233. ;;
  11234. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11235. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11236. ;;
  11237. esac
  11238. case $ac_file$ac_mode in
  11239. "default-1":C)
  11240. # Only add multilib support code if we just rebuilt the top-level
  11241. # Makefile.
  11242. case " $CONFIG_FILES " in
  11243. *" Makefile "*)
  11244. ac_file=Makefile . ${multi_basedir}/config-ml.in
  11245. ;;
  11246. esac ;;
  11247. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  11248. # Older Autoconf quotes --file arguments for eval, but not when files
  11249. # are listed without --file. Let's play safe and only enable the eval
  11250. # if we detect the quoting.
  11251. case $CONFIG_FILES in
  11252. *\'*) eval set x "$CONFIG_FILES" ;;
  11253. *) set x $CONFIG_FILES ;;
  11254. esac
  11255. shift
  11256. for mf
  11257. do
  11258. # Strip MF so we end up with the name of the file.
  11259. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11260. # Check whether this is an Automake generated Makefile or not.
  11261. # We used to match only the files named 'Makefile.in', but
  11262. # some people rename them; so instead we look at the file content.
  11263. # Grep'ing the first line is not enough: some people post-process
  11264. # each Makefile.in and add a new line on top of each file to say so.
  11265. # Grep'ing the whole file is not good either: AIX grep has a line
  11266. # limit of 2048, but all sed's we know have understand at least 4000.
  11267. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11268. dirpart=`$as_dirname -- "$mf" ||
  11269. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11270. X"$mf" : 'X\(//\)[^/]' \| \
  11271. X"$mf" : 'X\(//\)$' \| \
  11272. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11273. $as_echo X"$mf" |
  11274. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11275. s//\1/
  11276. q
  11277. }
  11278. /^X\(\/\/\)[^/].*/{
  11279. s//\1/
  11280. q
  11281. }
  11282. /^X\(\/\/\)$/{
  11283. s//\1/
  11284. q
  11285. }
  11286. /^X\(\/\).*/{
  11287. s//\1/
  11288. q
  11289. }
  11290. s/.*/./; q'`
  11291. else
  11292. continue
  11293. fi
  11294. # Extract the definition of DEPDIR, am__include, and am__quote
  11295. # from the Makefile without running 'make'.
  11296. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11297. test -z "$DEPDIR" && continue
  11298. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11299. test -z "$am__include" && continue
  11300. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11301. # Find all dependency output files, they are included files with
  11302. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11303. # simplest approach to changing $(DEPDIR) to its actual value in the
  11304. # expansion.
  11305. for file in `sed -n "
  11306. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11307. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  11308. # Make sure the directory exists.
  11309. test -f "$dirpart/$file" && continue
  11310. fdir=`$as_dirname -- "$file" ||
  11311. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11312. X"$file" : 'X\(//\)[^/]' \| \
  11313. X"$file" : 'X\(//\)$' \| \
  11314. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  11315. $as_echo X"$file" |
  11316. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11317. s//\1/
  11318. q
  11319. }
  11320. /^X\(\/\/\)[^/].*/{
  11321. s//\1/
  11322. q
  11323. }
  11324. /^X\(\/\/\)$/{
  11325. s//\1/
  11326. q
  11327. }
  11328. /^X\(\/\).*/{
  11329. s//\1/
  11330. q
  11331. }
  11332. s/.*/./; q'`
  11333. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  11334. # echo "creating $dirpart/$file"
  11335. echo '# dummy' > "$dirpart/$file"
  11336. done
  11337. done
  11338. }
  11339. ;;
  11340. "libtool":C)
  11341. # See if we are running on zsh, and set the options which allow our
  11342. # commands through without removal of \ escapes.
  11343. if test -n "${ZSH_VERSION+set}" ; then
  11344. setopt NO_GLOB_SUBST
  11345. fi
  11346. cfgfile="${ofile}T"
  11347. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11348. $RM "$cfgfile"
  11349. cat <<_LT_EOF >> "$cfgfile"
  11350. #! $SHELL
  11351. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11352. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11353. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11354. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11355. #
  11356. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11357. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  11358. # Written by Gordon Matzigkeit, 1996
  11359. #
  11360. # This file is part of GNU Libtool.
  11361. #
  11362. # GNU Libtool is free software; you can redistribute it and/or
  11363. # modify it under the terms of the GNU General Public License as
  11364. # published by the Free Software Foundation; either version 2 of
  11365. # the License, or (at your option) any later version.
  11366. #
  11367. # As a special exception to the GNU General Public License,
  11368. # if you distribute this file as part of a program or library that
  11369. # is built using GNU Libtool, you may include this file under the
  11370. # same distribution terms that you use for the rest of that program.
  11371. #
  11372. # GNU Libtool is distributed in the hope that it will be useful,
  11373. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11374. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11375. # GNU General Public License for more details.
  11376. #
  11377. # You should have received a copy of the GNU General Public License
  11378. # along with GNU Libtool; see the file COPYING. If not, a copy
  11379. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11380. # obtained by writing to the Free Software Foundation, Inc.,
  11381. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11382. # The names of the tagged configurations supported by this script.
  11383. available_tags=""
  11384. # ### BEGIN LIBTOOL CONFIG
  11385. # Which release of libtool.m4 was used?
  11386. macro_version=$macro_version
  11387. macro_revision=$macro_revision
  11388. # Whether or not to build shared libraries.
  11389. build_libtool_libs=$enable_shared
  11390. # Whether or not to build static libraries.
  11391. build_old_libs=$enable_static
  11392. # What type of objects to build.
  11393. pic_mode=$pic_mode
  11394. # Whether or not to optimize for fast installation.
  11395. fast_install=$enable_fast_install
  11396. # Shell to use when invoking shell scripts.
  11397. SHELL=$lt_SHELL
  11398. # An echo program that protects backslashes.
  11399. ECHO=$lt_ECHO
  11400. # The host system.
  11401. host_alias=$host_alias
  11402. host=$host
  11403. host_os=$host_os
  11404. # The build system.
  11405. build_alias=$build_alias
  11406. build=$build
  11407. build_os=$build_os
  11408. # A sed program that does not truncate output.
  11409. SED=$lt_SED
  11410. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11411. Xsed="\$SED -e 1s/^X//"
  11412. # A grep program that handles long lines.
  11413. GREP=$lt_GREP
  11414. # An ERE matcher.
  11415. EGREP=$lt_EGREP
  11416. # A literal string matcher.
  11417. FGREP=$lt_FGREP
  11418. # A BSD- or MS-compatible name lister.
  11419. NM=$lt_NM
  11420. # Whether we need soft or hard links.
  11421. LN_S=$lt_LN_S
  11422. # What is the maximum length of a command?
  11423. max_cmd_len=$max_cmd_len
  11424. # Object file suffix (normally "o").
  11425. objext=$ac_objext
  11426. # Executable file suffix (normally "").
  11427. exeext=$exeext
  11428. # whether the shell understands "unset".
  11429. lt_unset=$lt_unset
  11430. # turn spaces into newlines.
  11431. SP2NL=$lt_lt_SP2NL
  11432. # turn newlines into spaces.
  11433. NL2SP=$lt_lt_NL2SP
  11434. # An object symbol dumper.
  11435. OBJDUMP=$lt_OBJDUMP
  11436. # Method to check whether dependent libraries are shared objects.
  11437. deplibs_check_method=$lt_deplibs_check_method
  11438. # Command to use when deplibs_check_method == "file_magic".
  11439. file_magic_cmd=$lt_file_magic_cmd
  11440. # The archiver.
  11441. AR=$lt_AR
  11442. AR_FLAGS=$lt_AR_FLAGS
  11443. # A symbol stripping program.
  11444. STRIP=$lt_STRIP
  11445. # Commands used to install an old-style archive.
  11446. RANLIB=$lt_RANLIB
  11447. old_postinstall_cmds=$lt_old_postinstall_cmds
  11448. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11449. # Whether to use a lock for old archive extraction.
  11450. lock_old_archive_extraction=$lock_old_archive_extraction
  11451. # A C compiler.
  11452. LTCC=$lt_CC
  11453. # LTCC compiler flags.
  11454. LTCFLAGS=$lt_CFLAGS
  11455. # Take the output of nm and produce a listing of raw symbols and C names.
  11456. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11457. # Transform the output of nm in a proper C declaration.
  11458. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11459. # Transform the output of nm in a C name address pair.
  11460. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11461. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11462. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11463. # The name of the directory that contains temporary libtool files.
  11464. objdir=$objdir
  11465. # Used to examine libraries when file_magic_cmd begins with "file".
  11466. MAGIC_CMD=$MAGIC_CMD
  11467. # Must we lock files when doing compilation?
  11468. need_locks=$lt_need_locks
  11469. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11470. DSYMUTIL=$lt_DSYMUTIL
  11471. # Tool to change global to local symbols on Mac OS X.
  11472. NMEDIT=$lt_NMEDIT
  11473. # Tool to manipulate fat objects and archives on Mac OS X.
  11474. LIPO=$lt_LIPO
  11475. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11476. OTOOL=$lt_OTOOL
  11477. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11478. OTOOL64=$lt_OTOOL64
  11479. # Old archive suffix (normally "a").
  11480. libext=$libext
  11481. # Shared library suffix (normally ".so").
  11482. shrext_cmds=$lt_shrext_cmds
  11483. # The commands to extract the exported symbol list from a shared archive.
  11484. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11485. # Variables whose values should be saved in libtool wrapper scripts and
  11486. # restored at link time.
  11487. variables_saved_for_relink=$lt_variables_saved_for_relink
  11488. # Do we need the "lib" prefix for modules?
  11489. need_lib_prefix=$need_lib_prefix
  11490. # Do we need a version for libraries?
  11491. need_version=$need_version
  11492. # Library versioning type.
  11493. version_type=$version_type
  11494. # Shared library runtime path variable.
  11495. runpath_var=$runpath_var
  11496. # Shared library path variable.
  11497. shlibpath_var=$shlibpath_var
  11498. # Is shlibpath searched before the hard-coded library search path?
  11499. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11500. # Format of library name prefix.
  11501. libname_spec=$lt_libname_spec
  11502. # List of archive names. First name is the real one, the rest are links.
  11503. # The last name is the one that the linker finds with -lNAME
  11504. library_names_spec=$lt_library_names_spec
  11505. # The coded name of the library, if different from the real name.
  11506. soname_spec=$lt_soname_spec
  11507. # Permission mode override for installation of shared libraries.
  11508. install_override_mode=$lt_install_override_mode
  11509. # Command to use after installation of a shared archive.
  11510. postinstall_cmds=$lt_postinstall_cmds
  11511. # Command to use after uninstallation of a shared archive.
  11512. postuninstall_cmds=$lt_postuninstall_cmds
  11513. # Commands used to finish a libtool library installation in a directory.
  11514. finish_cmds=$lt_finish_cmds
  11515. # As "finish_cmds", except a single script fragment to be evaled but
  11516. # not shown.
  11517. finish_eval=$lt_finish_eval
  11518. # Whether we should hardcode library paths into libraries.
  11519. hardcode_into_libs=$hardcode_into_libs
  11520. # Compile-time system search path for libraries.
  11521. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11522. # Run-time system search path for libraries.
  11523. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11524. # Whether dlopen is supported.
  11525. dlopen_support=$enable_dlopen
  11526. # Whether dlopen of programs is supported.
  11527. dlopen_self=$enable_dlopen_self
  11528. # Whether dlopen of statically linked programs is supported.
  11529. dlopen_self_static=$enable_dlopen_self_static
  11530. # Commands to strip libraries.
  11531. old_striplib=$lt_old_striplib
  11532. striplib=$lt_striplib
  11533. # The linker used to build libraries.
  11534. LD=$lt_LD
  11535. # How to create reloadable object files.
  11536. reload_flag=$lt_reload_flag
  11537. reload_cmds=$lt_reload_cmds
  11538. # Commands used to build an old-style archive.
  11539. old_archive_cmds=$lt_old_archive_cmds
  11540. # A language specific compiler.
  11541. CC=$lt_compiler
  11542. # Is the compiler the GNU compiler?
  11543. with_gcc=$GCC
  11544. # Compiler flag to turn off builtin functions.
  11545. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11546. # How to pass a linker flag through the compiler.
  11547. wl=$lt_lt_prog_compiler_wl
  11548. # Additional compiler flags for building library objects.
  11549. pic_flag=$lt_lt_prog_compiler_pic
  11550. # Compiler flag to prevent dynamic linking.
  11551. link_static_flag=$lt_lt_prog_compiler_static
  11552. # Does compiler simultaneously support -c and -o options?
  11553. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11554. # Whether or not to add -lc for building shared libraries.
  11555. build_libtool_need_lc=$archive_cmds_need_lc
  11556. # Whether or not to disallow shared libs when runtime libs are static.
  11557. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11558. # Compiler flag to allow reflexive dlopens.
  11559. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11560. # Compiler flag to generate shared objects directly from archives.
  11561. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11562. # Whether the compiler copes with passing no objects directly.
  11563. compiler_needs_object=$lt_compiler_needs_object
  11564. # Create an old-style archive from a shared archive.
  11565. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11566. # Create a temporary old-style archive to link instead of a shared archive.
  11567. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11568. # Commands used to build a shared archive.
  11569. archive_cmds=$lt_archive_cmds
  11570. archive_expsym_cmds=$lt_archive_expsym_cmds
  11571. # Commands used to build a loadable module if different from building
  11572. # a shared archive.
  11573. module_cmds=$lt_module_cmds
  11574. module_expsym_cmds=$lt_module_expsym_cmds
  11575. # Whether we are building with GNU ld or not.
  11576. with_gnu_ld=$lt_with_gnu_ld
  11577. # Flag that allows shared libraries with undefined symbols to be built.
  11578. allow_undefined_flag=$lt_allow_undefined_flag
  11579. # Flag that enforces no undefined symbols.
  11580. no_undefined_flag=$lt_no_undefined_flag
  11581. # Flag to hardcode \$libdir into a binary during linking.
  11582. # This must work even if \$libdir does not exist
  11583. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11584. # If ld is used when linking, flag to hardcode \$libdir into a binary
  11585. # during linking. This must work even if \$libdir does not exist.
  11586. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  11587. # Whether we need a single "-rpath" flag with a separated argument.
  11588. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11589. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11590. # DIR into the resulting binary.
  11591. hardcode_direct=$hardcode_direct
  11592. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11593. # DIR into the resulting binary and the resulting library dependency is
  11594. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11595. # library is relocated.
  11596. hardcode_direct_absolute=$hardcode_direct_absolute
  11597. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11598. # into the resulting binary.
  11599. hardcode_minus_L=$hardcode_minus_L
  11600. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11601. # into the resulting binary.
  11602. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11603. # Set to "yes" if building a shared library automatically hardcodes DIR
  11604. # into the library and all subsequent libraries and executables linked
  11605. # against it.
  11606. hardcode_automatic=$hardcode_automatic
  11607. # Set to yes if linker adds runtime paths of dependent libraries
  11608. # to runtime path list.
  11609. inherit_rpath=$inherit_rpath
  11610. # Whether libtool must link a program against all its dependency libraries.
  11611. link_all_deplibs=$link_all_deplibs
  11612. # Fix the shell variable \$srcfile for the compiler.
  11613. fix_srcfile_path=$lt_fix_srcfile_path
  11614. # Set to "yes" if exported symbols are required.
  11615. always_export_symbols=$always_export_symbols
  11616. # The commands to list exported symbols.
  11617. export_symbols_cmds=$lt_export_symbols_cmds
  11618. # Symbols that should not be listed in the preloaded symbols.
  11619. exclude_expsyms=$lt_exclude_expsyms
  11620. # Symbols that must always be exported.
  11621. include_expsyms=$lt_include_expsyms
  11622. # Commands necessary for linking programs (against libraries) with templates.
  11623. prelink_cmds=$lt_prelink_cmds
  11624. # Specify filename containing input files.
  11625. file_list_spec=$lt_file_list_spec
  11626. # How to hardcode a shared library path into an executable.
  11627. hardcode_action=$hardcode_action
  11628. # ### END LIBTOOL CONFIG
  11629. _LT_EOF
  11630. case $host_os in
  11631. aix3*)
  11632. cat <<\_LT_EOF >> "$cfgfile"
  11633. # AIX sometimes has problems with the GCC collect2 program. For some
  11634. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11635. # vanish in a puff of smoke.
  11636. if test "X${COLLECT_NAMES+set}" != Xset; then
  11637. COLLECT_NAMES=
  11638. export COLLECT_NAMES
  11639. fi
  11640. _LT_EOF
  11641. ;;
  11642. esac
  11643. ltmain="$ac_aux_dir/ltmain.sh"
  11644. # We use sed instead of cat because bash on DJGPP gets confused if
  11645. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11646. # text mode, it properly converts lines to CR/LF. This bash problem
  11647. # is reportedly fixed, but why not run on old versions too?
  11648. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  11649. || (rm -f "$cfgfile"; exit 1)
  11650. case $xsi_shell in
  11651. yes)
  11652. cat << \_LT_EOF >> "$cfgfile"
  11653. # func_dirname file append nondir_replacement
  11654. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11655. # otherwise set result to NONDIR_REPLACEMENT.
  11656. func_dirname ()
  11657. {
  11658. case ${1} in
  11659. */*) func_dirname_result="${1%/*}${2}" ;;
  11660. * ) func_dirname_result="${3}" ;;
  11661. esac
  11662. }
  11663. # func_basename file
  11664. func_basename ()
  11665. {
  11666. func_basename_result="${1##*/}"
  11667. }
  11668. # func_dirname_and_basename file append nondir_replacement
  11669. # perform func_basename and func_dirname in a single function
  11670. # call:
  11671. # dirname: Compute the dirname of FILE. If nonempty,
  11672. # add APPEND to the result, otherwise set result
  11673. # to NONDIR_REPLACEMENT.
  11674. # value returned in "$func_dirname_result"
  11675. # basename: Compute filename of FILE.
  11676. # value retuned in "$func_basename_result"
  11677. # Implementation must be kept synchronized with func_dirname
  11678. # and func_basename. For efficiency, we do not delegate to
  11679. # those functions but instead duplicate the functionality here.
  11680. func_dirname_and_basename ()
  11681. {
  11682. case ${1} in
  11683. */*) func_dirname_result="${1%/*}${2}" ;;
  11684. * ) func_dirname_result="${3}" ;;
  11685. esac
  11686. func_basename_result="${1##*/}"
  11687. }
  11688. # func_stripname prefix suffix name
  11689. # strip PREFIX and SUFFIX off of NAME.
  11690. # PREFIX and SUFFIX must not contain globbing or regex special
  11691. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11692. # dot (in which case that matches only a dot).
  11693. func_stripname ()
  11694. {
  11695. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11696. # positional parameters, so assign one to ordinary parameter first.
  11697. func_stripname_result=${3}
  11698. func_stripname_result=${func_stripname_result#"${1}"}
  11699. func_stripname_result=${func_stripname_result%"${2}"}
  11700. }
  11701. # func_opt_split
  11702. func_opt_split ()
  11703. {
  11704. func_opt_split_opt=${1%%=*}
  11705. func_opt_split_arg=${1#*=}
  11706. }
  11707. # func_lo2o object
  11708. func_lo2o ()
  11709. {
  11710. case ${1} in
  11711. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11712. *) func_lo2o_result=${1} ;;
  11713. esac
  11714. }
  11715. # func_xform libobj-or-source
  11716. func_xform ()
  11717. {
  11718. func_xform_result=${1%.*}.lo
  11719. }
  11720. # func_arith arithmetic-term...
  11721. func_arith ()
  11722. {
  11723. func_arith_result=$(( $* ))
  11724. }
  11725. # func_len string
  11726. # STRING may not start with a hyphen.
  11727. func_len ()
  11728. {
  11729. func_len_result=${#1}
  11730. }
  11731. _LT_EOF
  11732. ;;
  11733. *) # Bourne compatible functions.
  11734. cat << \_LT_EOF >> "$cfgfile"
  11735. # func_dirname file append nondir_replacement
  11736. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11737. # otherwise set result to NONDIR_REPLACEMENT.
  11738. func_dirname ()
  11739. {
  11740. # Extract subdirectory from the argument.
  11741. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  11742. if test "X$func_dirname_result" = "X${1}"; then
  11743. func_dirname_result="${3}"
  11744. else
  11745. func_dirname_result="$func_dirname_result${2}"
  11746. fi
  11747. }
  11748. # func_basename file
  11749. func_basename ()
  11750. {
  11751. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  11752. }
  11753. # func_stripname prefix suffix name
  11754. # strip PREFIX and SUFFIX off of NAME.
  11755. # PREFIX and SUFFIX must not contain globbing or regex special
  11756. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11757. # dot (in which case that matches only a dot).
  11758. # func_strip_suffix prefix name
  11759. func_stripname ()
  11760. {
  11761. case ${2} in
  11762. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  11763. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  11764. esac
  11765. }
  11766. # sed scripts:
  11767. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  11768. my_sed_long_arg='1s/^-[^=]*=//'
  11769. # func_opt_split
  11770. func_opt_split ()
  11771. {
  11772. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  11773. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  11774. }
  11775. # func_lo2o object
  11776. func_lo2o ()
  11777. {
  11778. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  11779. }
  11780. # func_xform libobj-or-source
  11781. func_xform ()
  11782. {
  11783. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  11784. }
  11785. # func_arith arithmetic-term...
  11786. func_arith ()
  11787. {
  11788. func_arith_result=`expr "$@"`
  11789. }
  11790. # func_len string
  11791. # STRING may not start with a hyphen.
  11792. func_len ()
  11793. {
  11794. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  11795. }
  11796. _LT_EOF
  11797. esac
  11798. case $lt_shell_append in
  11799. yes)
  11800. cat << \_LT_EOF >> "$cfgfile"
  11801. # func_append var value
  11802. # Append VALUE to the end of shell variable VAR.
  11803. func_append ()
  11804. {
  11805. eval "$1+=\$2"
  11806. }
  11807. _LT_EOF
  11808. ;;
  11809. *)
  11810. cat << \_LT_EOF >> "$cfgfile"
  11811. # func_append var value
  11812. # Append VALUE to the end of shell variable VAR.
  11813. func_append ()
  11814. {
  11815. eval "$1=\$$1\$2"
  11816. }
  11817. _LT_EOF
  11818. ;;
  11819. esac
  11820. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  11821. || (rm -f "$cfgfile"; exit 1)
  11822. mv -f "$cfgfile" "$ofile" ||
  11823. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11824. chmod +x "$ofile"
  11825. ;;
  11826. esac
  11827. done # for ac_tag
  11828. as_fn_exit 0
  11829. _ACEOF
  11830. ac_clean_files=$ac_clean_files_save
  11831. test $ac_write_fail = 0 ||
  11832. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11833. # configure is writing to config.log, and then calls config.status.
  11834. # config.status does its own redirection, appending to config.log.
  11835. # Unfortunately, on DOS this fails, as config.log is still kept open
  11836. # by configure, so config.status won't be able to write to it; its
  11837. # output is simply discarded. So we exec the FD to /dev/null,
  11838. # effectively closing config.log, so it can be properly (re)opened and
  11839. # appended to by config.status. When coming back to configure, we
  11840. # need to make the FD available again.
  11841. if test "$no_create" != yes; then
  11842. ac_cs_success=:
  11843. ac_config_status_args=
  11844. test "$silent" = yes &&
  11845. ac_config_status_args="$ac_config_status_args --quiet"
  11846. exec 5>/dev/null
  11847. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11848. exec 5>>config.log
  11849. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11850. # would make configure fail if this is the last instruction.
  11851. $ac_cs_success || as_fn_exit 1
  11852. fi
  11853. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11854. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11855. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11856. fi