configure 631 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for REDUCE from SourceForge.
  4. #
  5. # Report bugs to <acn1@cam.ac.uk>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. #
  14. # The REDUCE project
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. as_myself=
  88. case $0 in #((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. # Use a proper internal environment variable to ensure we don't fall
  128. # into an infinite loop, continuously re-executing ourselves.
  129. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  130. _as_can_reexec=no; export _as_can_reexec;
  131. # We cannot yet assume a decent shell, so we have to provide a
  132. # neutralization value for shells without unset; and this also
  133. # works around shells that cannot unset nonexistent variables.
  134. # Preserve -v and -x to the replacement shell.
  135. BASH_ENV=/dev/null
  136. ENV=/dev/null
  137. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  138. case $- in # ((((
  139. *v*x* | *x*v* ) as_opts=-vx ;;
  140. *v* ) as_opts=-v ;;
  141. *x* ) as_opts=-x ;;
  142. * ) as_opts= ;;
  143. esac
  144. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  145. # Admittedly, this is quite paranoid, since all the known shells bail
  146. # out after a failed `exec'.
  147. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  148. as_fn_exit 255
  149. fi
  150. # We don't want this to propagate to other subprocesses.
  151. { _as_can_reexec=; unset _as_can_reexec;}
  152. if test "x$CONFIG_SHELL" = x; then
  153. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  154. emulate sh
  155. NULLCMD=:
  156. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  157. # is contrary to our usage. Disable this feature.
  158. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  159. setopt NO_GLOB_SUBST
  160. else
  161. case \`(set -o) 2>/dev/null\` in #(
  162. *posix*) :
  163. set -o posix ;; #(
  164. *) :
  165. ;;
  166. esac
  167. fi
  168. "
  169. as_required="as_fn_return () { (exit \$1); }
  170. as_fn_success () { as_fn_return 0; }
  171. as_fn_failure () { as_fn_return 1; }
  172. as_fn_ret_success () { return 0; }
  173. as_fn_ret_failure () { return 1; }
  174. exitcode=0
  175. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  176. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  177. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  178. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  179. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  180. else
  181. exitcode=1; echo positional parameters were not saved.
  182. fi
  183. test x\$exitcode = x0 || exit 1
  184. test -x / || exit 1"
  185. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  186. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  187. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  188. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  189. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  190. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  193. PATH=/empty FPATH=/empty; export PATH FPATH
  194. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  195. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  196. test \$(( 1 + 1 )) = 2 || exit 1"
  197. if (eval "$as_required") 2>/dev/null; then :
  198. as_have_required=yes
  199. else
  200. as_have_required=no
  201. fi
  202. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  203. else
  204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  205. as_found=false
  206. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  207. do
  208. IFS=$as_save_IFS
  209. test -z "$as_dir" && as_dir=.
  210. as_found=:
  211. case $as_dir in #(
  212. /*)
  213. for as_base in sh bash ksh sh5; do
  214. # Try only shells that exist, to save several forks.
  215. as_shell=$as_dir/$as_base
  216. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  217. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. CONFIG_SHELL=$as_shell as_have_required=yes
  219. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  220. break 2
  221. fi
  222. fi
  223. done;;
  224. esac
  225. as_found=false
  226. done
  227. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  228. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  229. CONFIG_SHELL=$SHELL as_have_required=yes
  230. fi; }
  231. IFS=$as_save_IFS
  232. if test "x$CONFIG_SHELL" != x; then :
  233. export CONFIG_SHELL
  234. # We cannot yet assume a decent shell, so we have to provide a
  235. # neutralization value for shells without unset; and this also
  236. # works around shells that cannot unset nonexistent variables.
  237. # Preserve -v and -x to the replacement shell.
  238. BASH_ENV=/dev/null
  239. ENV=/dev/null
  240. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  241. case $- in # ((((
  242. *v*x* | *x*v* ) as_opts=-vx ;;
  243. *v* ) as_opts=-v ;;
  244. *x* ) as_opts=-x ;;
  245. * ) as_opts= ;;
  246. esac
  247. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  248. # Admittedly, this is quite paranoid, since all the known shells bail
  249. # out after a failed `exec'.
  250. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  251. exit 255
  252. fi
  253. if test x$as_have_required = xno; then :
  254. $as_echo "$0: This script requires a shell more modern than all"
  255. $as_echo "$0: the shells that I found on your system."
  256. if test x${ZSH_VERSION+set} = xset ; then
  257. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  258. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  259. else
  260. $as_echo "$0: Please tell bug-autoconf@gnu.org and acn1@cam.ac.uk
  261. $0: about your system, including any error possibly output
  262. $0: before this message. Then install a modern shell, or
  263. $0: manually run the script under such a shell if you do
  264. $0: have one."
  265. fi
  266. exit 1
  267. fi
  268. fi
  269. fi
  270. SHELL=${CONFIG_SHELL-/bin/sh}
  271. export SHELL
  272. # Unset more variables known to interfere with behavior of common tools.
  273. CLICOLOR_FORCE= GREP_OPTIONS=
  274. unset CLICOLOR_FORCE GREP_OPTIONS
  275. ## --------------------- ##
  276. ## M4sh Shell Functions. ##
  277. ## --------------------- ##
  278. # as_fn_unset VAR
  279. # ---------------
  280. # Portably unset VAR.
  281. as_fn_unset ()
  282. {
  283. { eval $1=; unset $1;}
  284. }
  285. as_unset=as_fn_unset
  286. # as_fn_set_status STATUS
  287. # -----------------------
  288. # Set $? to STATUS, without forking.
  289. as_fn_set_status ()
  290. {
  291. return $1
  292. } # as_fn_set_status
  293. # as_fn_exit STATUS
  294. # -----------------
  295. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  296. as_fn_exit ()
  297. {
  298. set +e
  299. as_fn_set_status $1
  300. exit $1
  301. } # as_fn_exit
  302. # as_fn_mkdir_p
  303. # -------------
  304. # Create "$as_dir" as a directory, including parents if necessary.
  305. as_fn_mkdir_p ()
  306. {
  307. case $as_dir in #(
  308. -*) as_dir=./$as_dir;;
  309. esac
  310. test -d "$as_dir" || eval $as_mkdir_p || {
  311. as_dirs=
  312. while :; do
  313. case $as_dir in #(
  314. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  315. *) as_qdir=$as_dir;;
  316. esac
  317. as_dirs="'$as_qdir' $as_dirs"
  318. as_dir=`$as_dirname -- "$as_dir" ||
  319. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  320. X"$as_dir" : 'X\(//\)[^/]' \| \
  321. X"$as_dir" : 'X\(//\)$' \| \
  322. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  323. $as_echo X"$as_dir" |
  324. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\/\)[^/].*/{
  329. s//\1/
  330. q
  331. }
  332. /^X\(\/\/\)$/{
  333. s//\1/
  334. q
  335. }
  336. /^X\(\/\).*/{
  337. s//\1/
  338. q
  339. }
  340. s/.*/./; q'`
  341. test -d "$as_dir" && break
  342. done
  343. test -z "$as_dirs" || eval "mkdir $as_dirs"
  344. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  345. } # as_fn_mkdir_p
  346. # as_fn_executable_p FILE
  347. # -----------------------
  348. # Test if FILE is an executable regular file.
  349. as_fn_executable_p ()
  350. {
  351. test -f "$1" && test -x "$1"
  352. } # as_fn_executable_p
  353. # as_fn_append VAR VALUE
  354. # ----------------------
  355. # Append the text in VALUE to the end of the definition contained in VAR. Take
  356. # advantage of any shell optimizations that allow amortized linear growth over
  357. # repeated appends, instead of the typical quadratic growth present in naive
  358. # implementations.
  359. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  360. eval 'as_fn_append ()
  361. {
  362. eval $1+=\$2
  363. }'
  364. else
  365. as_fn_append ()
  366. {
  367. eval $1=\$$1\$2
  368. }
  369. fi # as_fn_append
  370. # as_fn_arith ARG...
  371. # ------------------
  372. # Perform arithmetic evaluation on the ARGs, and store the result in the
  373. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  374. # must be portable across $(()) and expr.
  375. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  376. eval 'as_fn_arith ()
  377. {
  378. as_val=$(( $* ))
  379. }'
  380. else
  381. as_fn_arith ()
  382. {
  383. as_val=`expr "$@" || test $? -eq 1`
  384. }
  385. fi # as_fn_arith
  386. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  387. # ----------------------------------------
  388. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  389. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  390. # script with STATUS, using 1 if that was 0.
  391. as_fn_error ()
  392. {
  393. as_status=$1; test $as_status -eq 0 && as_status=1
  394. if test "$4"; then
  395. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  396. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  397. fi
  398. $as_echo "$as_me: error: $2" >&2
  399. as_fn_exit $as_status
  400. } # as_fn_error
  401. if expr a : '\(a\)' >/dev/null 2>&1 &&
  402. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  403. as_expr=expr
  404. else
  405. as_expr=false
  406. fi
  407. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  408. as_basename=basename
  409. else
  410. as_basename=false
  411. fi
  412. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  413. as_dirname=dirname
  414. else
  415. as_dirname=false
  416. fi
  417. as_me=`$as_basename -- "$0" ||
  418. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  419. X"$0" : 'X\(//\)$' \| \
  420. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  421. $as_echo X/"$0" |
  422. sed '/^.*\/\([^/][^/]*\)\/*$/{
  423. s//\1/
  424. q
  425. }
  426. /^X\/\(\/\/\)$/{
  427. s//\1/
  428. q
  429. }
  430. /^X\/\(\/\).*/{
  431. s//\1/
  432. q
  433. }
  434. s/.*/./; q'`
  435. # Avoid depending upon Character Ranges.
  436. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  437. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  438. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  439. as_cr_digits='0123456789'
  440. as_cr_alnum=$as_cr_Letters$as_cr_digits
  441. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  442. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  443. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  444. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  445. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  446. sed -n '
  447. p
  448. /[$]LINENO/=
  449. ' <$as_myself |
  450. sed '
  451. s/[$]LINENO.*/&-/
  452. t lineno
  453. b
  454. :lineno
  455. N
  456. :loop
  457. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  458. t loop
  459. s/-\n.*//
  460. ' >$as_me.lineno &&
  461. chmod +x "$as_me.lineno" ||
  462. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  463. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  464. # already done that, so ensure we don't try to do so again and fall
  465. # in an infinite loop. This has already happened in practice.
  466. _as_can_reexec=no; export _as_can_reexec
  467. # Don't try to exec as it changes $[0], causing all sort of problems
  468. # (the dirname of $[0] is not the place where we might find the
  469. # original and so on. Autoconf is especially sensitive to this).
  470. . "./$as_me.lineno"
  471. # Exit status is that of the last command.
  472. exit
  473. }
  474. ECHO_C= ECHO_N= ECHO_T=
  475. case `echo -n x` in #(((((
  476. -n*)
  477. case `echo 'xy\c'` in
  478. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  479. xy) ECHO_C='\c';;
  480. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  481. ECHO_T=' ';;
  482. esac;;
  483. *)
  484. ECHO_N='-n';;
  485. esac
  486. rm -f conf$$ conf$$.exe conf$$.file
  487. if test -d conf$$.dir; then
  488. rm -f conf$$.dir/conf$$.file
  489. else
  490. rm -f conf$$.dir
  491. mkdir conf$$.dir 2>/dev/null
  492. fi
  493. if (echo >conf$$.file) 2>/dev/null; then
  494. if ln -s conf$$.file conf$$ 2>/dev/null; then
  495. as_ln_s='ln -s'
  496. # ... but there are two gotchas:
  497. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  498. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  499. # In both cases, we have to default to `cp -pR'.
  500. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  501. as_ln_s='cp -pR'
  502. elif ln conf$$.file conf$$ 2>/dev/null; then
  503. as_ln_s=ln
  504. else
  505. as_ln_s='cp -pR'
  506. fi
  507. else
  508. as_ln_s='cp -pR'
  509. fi
  510. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  511. rmdir conf$$.dir 2>/dev/null
  512. if mkdir -p . 2>/dev/null; then
  513. as_mkdir_p='mkdir -p "$as_dir"'
  514. else
  515. test -d ./-p && rmdir ./-p
  516. as_mkdir_p=false
  517. fi
  518. as_test_x='test -x'
  519. as_executable_p=as_fn_executable_p
  520. # Sed expression to map a string onto a valid CPP name.
  521. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  522. # Sed expression to map a string onto a valid variable name.
  523. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  524. SHELL=${CONFIG_SHELL-/bin/sh}
  525. test -n "$DJDIR" || exec 7<&0 </dev/null
  526. exec 6>&1
  527. # Name of the host.
  528. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  529. # so uname gets run too.
  530. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  531. #
  532. # Initializations.
  533. #
  534. ac_default_prefix=/usr/local
  535. ac_clean_files=
  536. ac_config_libobj_dir=.
  537. LIBOBJS=
  538. cross_compiling=no
  539. subdirs=
  540. MFLAGS=
  541. MAKEFLAGS=
  542. # Identity of this package.
  543. PACKAGE_NAME='REDUCE'
  544. PACKAGE_TARNAME='reduce'
  545. PACKAGE_VERSION='from SourceForge'
  546. PACKAGE_STRING='REDUCE from SourceForge'
  547. PACKAGE_BUGREPORT='acn1@cam.ac.uk'
  548. PACKAGE_URL=''
  549. ac_unique_file="scripts/make.sh"
  550. # Factoring default headers for most tests.
  551. ac_includes_default="\
  552. #include <stdio.h>
  553. #ifdef HAVE_SYS_TYPES_H
  554. # include <sys/types.h>
  555. #endif
  556. #ifdef HAVE_SYS_STAT_H
  557. # include <sys/stat.h>
  558. #endif
  559. #ifdef STDC_HEADERS
  560. # include <stdlib.h>
  561. # include <stddef.h>
  562. #else
  563. # ifdef HAVE_STDLIB_H
  564. # include <stdlib.h>
  565. # endif
  566. #endif
  567. #ifdef HAVE_STRING_H
  568. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  569. # include <memory.h>
  570. # endif
  571. # include <string.h>
  572. #endif
  573. #ifdef HAVE_STRINGS_H
  574. # include <strings.h>
  575. #endif
  576. #ifdef HAVE_INTTYPES_H
  577. # include <inttypes.h>
  578. #endif
  579. #ifdef HAVE_STDINT_H
  580. # include <stdint.h>
  581. #endif
  582. #ifdef HAVE_UNISTD_H
  583. # include <unistd.h>
  584. #endif"
  585. ac_subst_vars='am__EXEEXT_FALSE
  586. am__EXEEXT_TRUE
  587. LTLIBOBJS
  588. LIBOBJS
  589. crlibm_FALSE
  590. crlibm_TRUE
  591. wx_FALSE
  592. wx_TRUE
  593. fox_FALSE
  594. fox_TRUE
  595. cslpsl_FALSE
  596. cslpsl_TRUE
  597. psl_FALSE
  598. psl_TRUE
  599. csl_FALSE
  600. csl_TRUE
  601. CXXCPP
  602. am__fastdepCXX_FALSE
  603. am__fastdepCXX_TRUE
  604. CXXDEPMODE
  605. ac_ct_CXX
  606. CXXFLAGS
  607. CXX
  608. CCACHE
  609. CPP
  610. LT_SYS_LIBRARY_PATH
  611. OTOOL64
  612. OTOOL
  613. LIPO
  614. NMEDIT
  615. DSYMUTIL
  616. MANIFEST_TOOL
  617. RANLIB
  618. ac_ct_AR
  619. AR
  620. DLLTOOL
  621. OBJDUMP
  622. LN_S
  623. NM
  624. ac_ct_DUMPBIN
  625. DUMPBIN
  626. LD
  627. FGREP
  628. EGREP
  629. GREP
  630. SED
  631. am__fastdepCC_FALSE
  632. am__fastdepCC_TRUE
  633. CCDEPMODE
  634. am__nodep
  635. AMDEPBACKSLASH
  636. AMDEP_FALSE
  637. AMDEP_TRUE
  638. am__quote
  639. am__include
  640. DEPDIR
  641. OBJEXT
  642. EXEEXT
  643. ac_ct_CC
  644. CPPFLAGS
  645. LDFLAGS
  646. CFLAGS
  647. CC
  648. LIBTOOL
  649. AM_BACKSLASH
  650. AM_DEFAULT_VERBOSITY
  651. AM_DEFAULT_V
  652. AM_V
  653. am__untar
  654. am__tar
  655. AMTAR
  656. am__leading_dot
  657. SET_MAKE
  658. AWK
  659. mkdir_p
  660. MKDIR_P
  661. INSTALL_STRIP_PROGRAM
  662. STRIP
  663. install_sh
  664. MAKEINFO
  665. AUTOHEADER
  666. AUTOMAKE
  667. AUTOCONF
  668. ACLOCAL
  669. VERSION
  670. PACKAGE
  671. CYGPATH_W
  672. am__isrc
  673. INSTALL_DATA
  674. INSTALL_SCRIPT
  675. INSTALL_PROGRAM
  676. host_os
  677. host_vendor
  678. host_cpu
  679. host
  680. build_os
  681. build_vendor
  682. build_cpu
  683. build
  684. target_alias
  685. host_alias
  686. build_alias
  687. LIBS
  688. ECHO_T
  689. ECHO_N
  690. ECHO_C
  691. DEFS
  692. mandir
  693. localedir
  694. libdir
  695. psdir
  696. pdfdir
  697. dvidir
  698. htmldir
  699. infodir
  700. docdir
  701. oldincludedir
  702. includedir
  703. runstatedir
  704. localstatedir
  705. sharedstatedir
  706. sysconfdir
  707. datadir
  708. datarootdir
  709. libexecdir
  710. sbindir
  711. bindir
  712. program_transform_name
  713. prefix
  714. exec_prefix
  715. PACKAGE_URL
  716. PACKAGE_BUGREPORT
  717. PACKAGE_STRING
  718. PACKAGE_VERSION
  719. PACKAGE_TARNAME
  720. PACKAGE_NAME
  721. PATH_SEPARATOR
  722. SHELL'
  723. ac_subst_files=''
  724. ac_user_opts='
  725. enable_option_checking
  726. with_autogen
  727. with_csl
  728. with_psl
  729. with_gui
  730. with_wx
  731. with_fox
  732. with_build
  733. with_pslbuild
  734. with_cygbuild
  735. with_force
  736. with_cygwin
  737. with_xft
  738. with_xim
  739. enable_debug
  740. enable_conservative
  741. enable_test
  742. enable_experiment
  743. with_arithlib
  744. enable_static
  745. with_sequential
  746. with_windows_layout
  747. enable_silent_rules
  748. enable_shared
  749. with_pic
  750. enable_fast_install
  751. with_aix_soname
  752. enable_dependency_tracking
  753. with_gnu_ld
  754. with_sysroot
  755. enable_libtool_lock
  756. with_ccache
  757. '
  758. ac_precious_vars='build_alias
  759. host_alias
  760. target_alias
  761. CC
  762. CFLAGS
  763. LDFLAGS
  764. LIBS
  765. CPPFLAGS
  766. LT_SYS_LIBRARY_PATH
  767. CPP
  768. CXX
  769. CXXFLAGS
  770. CCC
  771. CXXCPP'
  772. # Initialize some variables set by options.
  773. ac_init_help=
  774. ac_init_version=false
  775. ac_unrecognized_opts=
  776. ac_unrecognized_sep=
  777. # The variables have the same names as the options, with
  778. # dashes changed to underlines.
  779. cache_file=/dev/null
  780. exec_prefix=NONE
  781. no_create=
  782. no_recursion=
  783. prefix=NONE
  784. program_prefix=NONE
  785. program_suffix=NONE
  786. program_transform_name=s,x,x,
  787. silent=
  788. site=
  789. srcdir=
  790. verbose=
  791. x_includes=NONE
  792. x_libraries=NONE
  793. # Installation directory options.
  794. # These are left unexpanded so users can "make install exec_prefix=/foo"
  795. # and all the variables that are supposed to be based on exec_prefix
  796. # by default will actually change.
  797. # Use braces instead of parens because sh, perl, etc. also accept them.
  798. # (The list follows the same order as the GNU Coding Standards.)
  799. bindir='${exec_prefix}/bin'
  800. sbindir='${exec_prefix}/sbin'
  801. libexecdir='${exec_prefix}/libexec'
  802. datarootdir='${prefix}/share'
  803. datadir='${datarootdir}'
  804. sysconfdir='${prefix}/etc'
  805. sharedstatedir='${prefix}/com'
  806. localstatedir='${prefix}/var'
  807. runstatedir='${localstatedir}/run'
  808. includedir='${prefix}/include'
  809. oldincludedir='/usr/include'
  810. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  811. infodir='${datarootdir}/info'
  812. htmldir='${docdir}'
  813. dvidir='${docdir}'
  814. pdfdir='${docdir}'
  815. psdir='${docdir}'
  816. libdir='${exec_prefix}/lib'
  817. localedir='${datarootdir}/locale'
  818. mandir='${datarootdir}/man'
  819. ac_prev=
  820. ac_dashdash=
  821. for ac_option
  822. do
  823. # If the previous option needs an argument, assign it.
  824. if test -n "$ac_prev"; then
  825. eval $ac_prev=\$ac_option
  826. ac_prev=
  827. continue
  828. fi
  829. case $ac_option in
  830. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  831. *=) ac_optarg= ;;
  832. *) ac_optarg=yes ;;
  833. esac
  834. # Accept the important Cygnus configure options, so we can diagnose typos.
  835. case $ac_dashdash$ac_option in
  836. --)
  837. ac_dashdash=yes ;;
  838. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  839. ac_prev=bindir ;;
  840. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  841. bindir=$ac_optarg ;;
  842. -build | --build | --buil | --bui | --bu)
  843. ac_prev=build_alias ;;
  844. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  845. build_alias=$ac_optarg ;;
  846. -cache-file | --cache-file | --cache-fil | --cache-fi \
  847. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  848. ac_prev=cache_file ;;
  849. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  850. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  851. cache_file=$ac_optarg ;;
  852. --config-cache | -C)
  853. cache_file=config.cache ;;
  854. -datadir | --datadir | --datadi | --datad)
  855. ac_prev=datadir ;;
  856. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  857. datadir=$ac_optarg ;;
  858. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  859. | --dataroo | --dataro | --datar)
  860. ac_prev=datarootdir ;;
  861. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  862. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  863. datarootdir=$ac_optarg ;;
  864. -disable-* | --disable-*)
  865. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  866. # Reject names that are not valid shell variable names.
  867. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  868. as_fn_error $? "invalid feature name: $ac_useropt"
  869. ac_useropt_orig=$ac_useropt
  870. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  871. case $ac_user_opts in
  872. *"
  873. "enable_$ac_useropt"
  874. "*) ;;
  875. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  876. ac_unrecognized_sep=', ';;
  877. esac
  878. eval enable_$ac_useropt=no ;;
  879. -docdir | --docdir | --docdi | --doc | --do)
  880. ac_prev=docdir ;;
  881. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  882. docdir=$ac_optarg ;;
  883. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  884. ac_prev=dvidir ;;
  885. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  886. dvidir=$ac_optarg ;;
  887. -enable-* | --enable-*)
  888. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  889. # Reject names that are not valid shell variable names.
  890. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  891. as_fn_error $? "invalid feature name: $ac_useropt"
  892. ac_useropt_orig=$ac_useropt
  893. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  894. case $ac_user_opts in
  895. *"
  896. "enable_$ac_useropt"
  897. "*) ;;
  898. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  899. ac_unrecognized_sep=', ';;
  900. esac
  901. eval enable_$ac_useropt=\$ac_optarg ;;
  902. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  903. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  904. | --exec | --exe | --ex)
  905. ac_prev=exec_prefix ;;
  906. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  907. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  908. | --exec=* | --exe=* | --ex=*)
  909. exec_prefix=$ac_optarg ;;
  910. -gas | --gas | --ga | --g)
  911. # Obsolete; use --with-gas.
  912. with_gas=yes ;;
  913. -help | --help | --hel | --he | -h)
  914. ac_init_help=long ;;
  915. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  916. ac_init_help=recursive ;;
  917. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  918. ac_init_help=short ;;
  919. -host | --host | --hos | --ho)
  920. ac_prev=host_alias ;;
  921. -host=* | --host=* | --hos=* | --ho=*)
  922. host_alias=$ac_optarg ;;
  923. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  924. ac_prev=htmldir ;;
  925. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  926. | --ht=*)
  927. htmldir=$ac_optarg ;;
  928. -includedir | --includedir | --includedi | --included | --include \
  929. | --includ | --inclu | --incl | --inc)
  930. ac_prev=includedir ;;
  931. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  932. | --includ=* | --inclu=* | --incl=* | --inc=*)
  933. includedir=$ac_optarg ;;
  934. -infodir | --infodir | --infodi | --infod | --info | --inf)
  935. ac_prev=infodir ;;
  936. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  937. infodir=$ac_optarg ;;
  938. -libdir | --libdir | --libdi | --libd)
  939. ac_prev=libdir ;;
  940. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  941. libdir=$ac_optarg ;;
  942. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  943. | --libexe | --libex | --libe)
  944. ac_prev=libexecdir ;;
  945. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  946. | --libexe=* | --libex=* | --libe=*)
  947. libexecdir=$ac_optarg ;;
  948. -localedir | --localedir | --localedi | --localed | --locale)
  949. ac_prev=localedir ;;
  950. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  951. localedir=$ac_optarg ;;
  952. -localstatedir | --localstatedir | --localstatedi | --localstated \
  953. | --localstate | --localstat | --localsta | --localst | --locals)
  954. ac_prev=localstatedir ;;
  955. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  956. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  957. localstatedir=$ac_optarg ;;
  958. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  959. ac_prev=mandir ;;
  960. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  961. mandir=$ac_optarg ;;
  962. -nfp | --nfp | --nf)
  963. # Obsolete; use --without-fp.
  964. with_fp=no ;;
  965. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  966. | --no-cr | --no-c | -n)
  967. no_create=yes ;;
  968. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  969. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  970. no_recursion=yes ;;
  971. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  972. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  973. | --oldin | --oldi | --old | --ol | --o)
  974. ac_prev=oldincludedir ;;
  975. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  976. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  977. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  978. oldincludedir=$ac_optarg ;;
  979. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  980. ac_prev=prefix ;;
  981. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  982. prefix=$ac_optarg ;;
  983. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  984. | --program-pre | --program-pr | --program-p)
  985. ac_prev=program_prefix ;;
  986. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  987. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  988. program_prefix=$ac_optarg ;;
  989. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  990. | --program-suf | --program-su | --program-s)
  991. ac_prev=program_suffix ;;
  992. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  993. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  994. program_suffix=$ac_optarg ;;
  995. -program-transform-name | --program-transform-name \
  996. | --program-transform-nam | --program-transform-na \
  997. | --program-transform-n | --program-transform- \
  998. | --program-transform | --program-transfor \
  999. | --program-transfo | --program-transf \
  1000. | --program-trans | --program-tran \
  1001. | --progr-tra | --program-tr | --program-t)
  1002. ac_prev=program_transform_name ;;
  1003. -program-transform-name=* | --program-transform-name=* \
  1004. | --program-transform-nam=* | --program-transform-na=* \
  1005. | --program-transform-n=* | --program-transform-=* \
  1006. | --program-transform=* | --program-transfor=* \
  1007. | --program-transfo=* | --program-transf=* \
  1008. | --program-trans=* | --program-tran=* \
  1009. | --progr-tra=* | --program-tr=* | --program-t=*)
  1010. program_transform_name=$ac_optarg ;;
  1011. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1012. ac_prev=pdfdir ;;
  1013. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1014. pdfdir=$ac_optarg ;;
  1015. -psdir | --psdir | --psdi | --psd | --ps)
  1016. ac_prev=psdir ;;
  1017. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1018. psdir=$ac_optarg ;;
  1019. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1020. | -silent | --silent | --silen | --sile | --sil)
  1021. silent=yes ;;
  1022. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1023. | --runstate | --runstat | --runsta | --runst | --runs \
  1024. | --run | --ru | --r)
  1025. ac_prev=runstatedir ;;
  1026. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1027. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1028. | --run=* | --ru=* | --r=*)
  1029. runstatedir=$ac_optarg ;;
  1030. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1031. ac_prev=sbindir ;;
  1032. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1033. | --sbi=* | --sb=*)
  1034. sbindir=$ac_optarg ;;
  1035. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1036. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1037. | --sharedst | --shareds | --shared | --share | --shar \
  1038. | --sha | --sh)
  1039. ac_prev=sharedstatedir ;;
  1040. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1041. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1042. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1043. | --sha=* | --sh=*)
  1044. sharedstatedir=$ac_optarg ;;
  1045. -site | --site | --sit)
  1046. ac_prev=site ;;
  1047. -site=* | --site=* | --sit=*)
  1048. site=$ac_optarg ;;
  1049. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1050. ac_prev=srcdir ;;
  1051. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1052. srcdir=$ac_optarg ;;
  1053. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1054. | --syscon | --sysco | --sysc | --sys | --sy)
  1055. ac_prev=sysconfdir ;;
  1056. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1057. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1058. sysconfdir=$ac_optarg ;;
  1059. -target | --target | --targe | --targ | --tar | --ta | --t)
  1060. ac_prev=target_alias ;;
  1061. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1062. target_alias=$ac_optarg ;;
  1063. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1064. verbose=yes ;;
  1065. -version | --version | --versio | --versi | --vers | -V)
  1066. ac_init_version=: ;;
  1067. -with-* | --with-*)
  1068. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1069. # Reject names that are not valid shell variable names.
  1070. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1071. as_fn_error $? "invalid package name: $ac_useropt"
  1072. ac_useropt_orig=$ac_useropt
  1073. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1074. case $ac_user_opts in
  1075. *"
  1076. "with_$ac_useropt"
  1077. "*) ;;
  1078. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1079. ac_unrecognized_sep=', ';;
  1080. esac
  1081. eval with_$ac_useropt=\$ac_optarg ;;
  1082. -without-* | --without-*)
  1083. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1084. # Reject names that are not valid shell variable names.
  1085. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1086. as_fn_error $? "invalid package name: $ac_useropt"
  1087. ac_useropt_orig=$ac_useropt
  1088. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1089. case $ac_user_opts in
  1090. *"
  1091. "with_$ac_useropt"
  1092. "*) ;;
  1093. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1094. ac_unrecognized_sep=', ';;
  1095. esac
  1096. eval with_$ac_useropt=no ;;
  1097. --x)
  1098. # Obsolete; use --with-x.
  1099. with_x=yes ;;
  1100. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1101. | --x-incl | --x-inc | --x-in | --x-i)
  1102. ac_prev=x_includes ;;
  1103. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1104. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1105. x_includes=$ac_optarg ;;
  1106. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1107. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1108. ac_prev=x_libraries ;;
  1109. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1110. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1111. x_libraries=$ac_optarg ;;
  1112. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1113. Try \`$0 --help' for more information"
  1114. ;;
  1115. *=*)
  1116. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1117. # Reject names that are not valid shell variable names.
  1118. case $ac_envvar in #(
  1119. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1120. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1121. esac
  1122. eval $ac_envvar=\$ac_optarg
  1123. export $ac_envvar ;;
  1124. *)
  1125. # FIXME: should be removed in autoconf 3.0.
  1126. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1127. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1128. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1129. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1130. ;;
  1131. esac
  1132. done
  1133. if test -n "$ac_prev"; then
  1134. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1135. as_fn_error $? "missing argument to $ac_option"
  1136. fi
  1137. if test -n "$ac_unrecognized_opts"; then
  1138. case $enable_option_checking in
  1139. no) ;;
  1140. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1141. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1142. esac
  1143. fi
  1144. # Check all directory arguments for consistency.
  1145. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1146. datadir sysconfdir sharedstatedir localstatedir includedir \
  1147. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1148. libdir localedir mandir runstatedir
  1149. do
  1150. eval ac_val=\$$ac_var
  1151. # Remove trailing slashes.
  1152. case $ac_val in
  1153. */ )
  1154. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1155. eval $ac_var=\$ac_val;;
  1156. esac
  1157. # Be sure to have absolute directory names.
  1158. case $ac_val in
  1159. [\\/$]* | ?:[\\/]* ) continue;;
  1160. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1161. esac
  1162. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1163. done
  1164. # There might be people who depend on the old broken behavior: `$host'
  1165. # used to hold the argument of --host etc.
  1166. # FIXME: To remove some day.
  1167. build=$build_alias
  1168. host=$host_alias
  1169. target=$target_alias
  1170. # FIXME: To remove some day.
  1171. if test "x$host_alias" != x; then
  1172. if test "x$build_alias" = x; then
  1173. cross_compiling=maybe
  1174. elif test "x$build_alias" != "x$host_alias"; then
  1175. cross_compiling=yes
  1176. fi
  1177. fi
  1178. ac_tool_prefix=
  1179. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1180. test "$silent" = yes && exec 6>/dev/null
  1181. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1182. ac_ls_di=`ls -di .` &&
  1183. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1184. as_fn_error $? "working directory cannot be determined"
  1185. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1186. as_fn_error $? "pwd does not report name of working directory"
  1187. # Find the source files, if location was not specified.
  1188. if test -z "$srcdir"; then
  1189. ac_srcdir_defaulted=yes
  1190. # Try the directory containing this script, then the parent directory.
  1191. ac_confdir=`$as_dirname -- "$as_myself" ||
  1192. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1193. X"$as_myself" : 'X\(//\)[^/]' \| \
  1194. X"$as_myself" : 'X\(//\)$' \| \
  1195. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1196. $as_echo X"$as_myself" |
  1197. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1198. s//\1/
  1199. q
  1200. }
  1201. /^X\(\/\/\)[^/].*/{
  1202. s//\1/
  1203. q
  1204. }
  1205. /^X\(\/\/\)$/{
  1206. s//\1/
  1207. q
  1208. }
  1209. /^X\(\/\).*/{
  1210. s//\1/
  1211. q
  1212. }
  1213. s/.*/./; q'`
  1214. srcdir=$ac_confdir
  1215. if test ! -r "$srcdir/$ac_unique_file"; then
  1216. srcdir=..
  1217. fi
  1218. else
  1219. ac_srcdir_defaulted=no
  1220. fi
  1221. if test ! -r "$srcdir/$ac_unique_file"; then
  1222. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1223. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1224. fi
  1225. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1226. ac_abs_confdir=`(
  1227. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1228. pwd)`
  1229. # When building in place, set srcdir=.
  1230. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1231. srcdir=.
  1232. fi
  1233. # Remove unnecessary trailing slashes from srcdir.
  1234. # Double slashes in file names in object file debugging info
  1235. # mess up M-x gdb in Emacs.
  1236. case $srcdir in
  1237. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1238. esac
  1239. for ac_var in $ac_precious_vars; do
  1240. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1241. eval ac_env_${ac_var}_value=\$${ac_var}
  1242. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1243. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1244. done
  1245. #
  1246. # Report the --help message.
  1247. #
  1248. if test "$ac_init_help" = "long"; then
  1249. # Omit some internal or obsolete options to make the list less imposing.
  1250. # This message is too long to be a string in the A/UX 3.1 sh.
  1251. cat <<_ACEOF
  1252. \`configure' configures REDUCE from SourceForge to adapt to many kinds of systems.
  1253. Usage: $0 [OPTION]... [VAR=VALUE]...
  1254. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1255. VAR=VALUE. See below for descriptions of some of the useful variables.
  1256. Defaults for the options are specified in brackets.
  1257. Configuration:
  1258. -h, --help display this help and exit
  1259. --help=short display options specific to this package
  1260. --help=recursive display the short help of all the included packages
  1261. -V, --version display version information and exit
  1262. -q, --quiet, --silent do not print \`checking ...' messages
  1263. --cache-file=FILE cache test results in FILE [disabled]
  1264. -C, --config-cache alias for \`--cache-file=config.cache'
  1265. -n, --no-create do not create output files
  1266. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1267. Installation directories:
  1268. --prefix=PREFIX install architecture-independent files in PREFIX
  1269. [$ac_default_prefix]
  1270. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1271. [PREFIX]
  1272. By default, \`make install' will install all the files in
  1273. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1274. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1275. for instance \`--prefix=\$HOME'.
  1276. For better control, use the options below.
  1277. Fine tuning of the installation directories:
  1278. --bindir=DIR user executables [EPREFIX/bin]
  1279. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1280. --libexecdir=DIR program executables [EPREFIX/libexec]
  1281. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1282. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1283. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1284. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1285. --libdir=DIR object code libraries [EPREFIX/lib]
  1286. --includedir=DIR C header files [PREFIX/include]
  1287. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1288. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1289. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1290. --infodir=DIR info documentation [DATAROOTDIR/info]
  1291. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1292. --mandir=DIR man documentation [DATAROOTDIR/man]
  1293. --docdir=DIR documentation root [DATAROOTDIR/doc/reduce]
  1294. --htmldir=DIR html documentation [DOCDIR]
  1295. --dvidir=DIR dvi documentation [DOCDIR]
  1296. --pdfdir=DIR pdf documentation [DOCDIR]
  1297. --psdir=DIR ps documentation [DOCDIR]
  1298. _ACEOF
  1299. cat <<\_ACEOF
  1300. Program names:
  1301. --program-prefix=PREFIX prepend PREFIX to installed program names
  1302. --program-suffix=SUFFIX append SUFFIX to installed program names
  1303. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1304. System types:
  1305. --build=BUILD configure for building on BUILD [guessed]
  1306. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1307. _ACEOF
  1308. fi
  1309. if test -n "$ac_init_help"; then
  1310. case $ac_init_help in
  1311. short | recursive ) echo "Configuration of REDUCE from SourceForge:";;
  1312. esac
  1313. cat <<\_ACEOF
  1314. Optional Features:
  1315. --disable-option-checking ignore unrecognized --enable/--with options
  1316. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1317. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1318. --enable-debug compile for debugging (CSL only)
  1319. --enable-conservative garbage collect option: testing and development use
  1320. (CSL only)
  1321. --enable-test testing-mode version (CSL only)
  1322. --enable-experiment testing-mode version (CSL only)
  1323. --enable-static link it all statically (CSL only)
  1324. --enable-silent-rules less verbose build output (undo: "make V=1")
  1325. --disable-silent-rules verbose build output (undo: "make V=0")
  1326. --enable-shared[=PKGS] build shared libraries [default=yes]
  1327. --enable-static[=PKGS] build static libraries [default=yes]
  1328. --enable-fast-install[=PKGS]
  1329. optimize for fast installation [default=yes]
  1330. --enable-dependency-tracking
  1331. do not reject slow dependency extractors
  1332. --disable-dependency-tracking
  1333. speeds up one-time build
  1334. --disable-libtool-lock avoid locking (might break parallel builds)
  1335. Optional Packages:
  1336. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1337. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1338. --with-autogen Regenerate autoconf file at start
  1339. --with-csl Use the CSL Lisp system
  1340. --with-psl Use the PSL Lisp system
  1341. --with-gui use --without-gui to get a text-only system (CSL
  1342. only)
  1343. --with-wx enable or disable use of wxWidgets (CSL only)
  1344. --with-fox enable or disable use of FOX (CSL only)
  1345. --with-build Used internally to control build directory
  1346. --with-pslbuild Used internally to control build directory
  1347. --with-cygbuild Used internally to control build directory
  1348. --with-force Forces refresh of windows varients
  1349. --with-cygwin Force use of raw cygwin (CSL only)
  1350. --with-xft Can be used to disable use of XFT. Default is yes
  1351. (CSL only)
  1352. --with-xim Can be used to control use of XIM. Default is yes
  1353. (now) (CSL only)
  1354. --with-arithlib development of arithlib.hpp support (CSL only)
  1355. --with-sequential Avoid parallel configure to make log clearer to read
  1356. --with-windows_layout old or new windows layout
  1357. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1358. both]
  1359. --with-aix-soname=aix|svr4|both
  1360. shared library versioning (aka "SONAME") variant to
  1361. provide on AIX, [default=aix].
  1362. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1363. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1364. compiler's sysroot if not specified).
  1365. --with-ccache --without-ccache can be used to disable use of
  1366. ccache
  1367. Some influential environment variables:
  1368. CC C compiler command
  1369. CFLAGS C compiler flags
  1370. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1371. nonstandard directory <lib dir>
  1372. LIBS libraries to pass to the linker, e.g. -l<library>
  1373. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1374. you have headers in a nonstandard directory <include dir>
  1375. LT_SYS_LIBRARY_PATH
  1376. User-defined run-time library search path.
  1377. CPP C preprocessor
  1378. CXX C++ compiler command
  1379. CXXFLAGS C++ compiler flags
  1380. CXXCPP C++ preprocessor
  1381. Use these variables to override the choices made by `configure' or to help
  1382. it to find libraries and programs with nonstandard names/locations.
  1383. Report bugs to <acn1@cam.ac.uk>.
  1384. _ACEOF
  1385. ac_status=$?
  1386. fi
  1387. if test "$ac_init_help" = "recursive"; then
  1388. # If there are subdirs, report their specific --help.
  1389. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1390. test -d "$ac_dir" ||
  1391. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1392. continue
  1393. ac_builddir=.
  1394. case "$ac_dir" in
  1395. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1396. *)
  1397. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1398. # A ".." for each directory in $ac_dir_suffix.
  1399. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1400. case $ac_top_builddir_sub in
  1401. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1402. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1403. esac ;;
  1404. esac
  1405. ac_abs_top_builddir=$ac_pwd
  1406. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1407. # for backward compatibility:
  1408. ac_top_builddir=$ac_top_build_prefix
  1409. case $srcdir in
  1410. .) # We are building in place.
  1411. ac_srcdir=.
  1412. ac_top_srcdir=$ac_top_builddir_sub
  1413. ac_abs_top_srcdir=$ac_pwd ;;
  1414. [\\/]* | ?:[\\/]* ) # Absolute name.
  1415. ac_srcdir=$srcdir$ac_dir_suffix;
  1416. ac_top_srcdir=$srcdir
  1417. ac_abs_top_srcdir=$srcdir ;;
  1418. *) # Relative name.
  1419. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1420. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1421. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1422. esac
  1423. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1424. cd "$ac_dir" || { ac_status=$?; continue; }
  1425. # Check for guested configure.
  1426. if test -f "$ac_srcdir/configure.gnu"; then
  1427. echo &&
  1428. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1429. elif test -f "$ac_srcdir/configure"; then
  1430. echo &&
  1431. $SHELL "$ac_srcdir/configure" --help=recursive
  1432. else
  1433. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1434. fi || ac_status=$?
  1435. cd "$ac_pwd" || { ac_status=$?; break; }
  1436. done
  1437. fi
  1438. test -n "$ac_init_help" && exit $ac_status
  1439. if $ac_init_version; then
  1440. cat <<\_ACEOF
  1441. REDUCE configure from SourceForge
  1442. generated by GNU Autoconf 2.69
  1443. Copyright (C) 2012 Free Software Foundation, Inc.
  1444. This configure script is free software; the Free Software Foundation
  1445. gives unlimited permission to copy, distribute and modify it.
  1446. The REDUCE project
  1447. _ACEOF
  1448. exit
  1449. fi
  1450. ## ------------------------ ##
  1451. ## Autoconf initialization. ##
  1452. ## ------------------------ ##
  1453. # ac_fn_c_try_compile LINENO
  1454. # --------------------------
  1455. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1456. ac_fn_c_try_compile ()
  1457. {
  1458. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1459. rm -f conftest.$ac_objext
  1460. if { { ac_try="$ac_compile"
  1461. case "(($ac_try" in
  1462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1463. *) ac_try_echo=$ac_try;;
  1464. esac
  1465. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1466. $as_echo "$ac_try_echo"; } >&5
  1467. (eval "$ac_compile") 2>conftest.err
  1468. ac_status=$?
  1469. if test -s conftest.err; then
  1470. grep -v '^ *+' conftest.err >conftest.er1
  1471. cat conftest.er1 >&5
  1472. mv -f conftest.er1 conftest.err
  1473. fi
  1474. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1475. test $ac_status = 0; } && {
  1476. test -z "$ac_c_werror_flag" ||
  1477. test ! -s conftest.err
  1478. } && test -s conftest.$ac_objext; then :
  1479. ac_retval=0
  1480. else
  1481. $as_echo "$as_me: failed program was:" >&5
  1482. sed 's/^/| /' conftest.$ac_ext >&5
  1483. ac_retval=1
  1484. fi
  1485. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1486. as_fn_set_status $ac_retval
  1487. } # ac_fn_c_try_compile
  1488. # ac_fn_c_try_link LINENO
  1489. # -----------------------
  1490. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1491. ac_fn_c_try_link ()
  1492. {
  1493. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1494. rm -f conftest.$ac_objext conftest$ac_exeext
  1495. if { { ac_try="$ac_link"
  1496. case "(($ac_try" in
  1497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1498. *) ac_try_echo=$ac_try;;
  1499. esac
  1500. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1501. $as_echo "$ac_try_echo"; } >&5
  1502. (eval "$ac_link") 2>conftest.err
  1503. ac_status=$?
  1504. if test -s conftest.err; then
  1505. grep -v '^ *+' conftest.err >conftest.er1
  1506. cat conftest.er1 >&5
  1507. mv -f conftest.er1 conftest.err
  1508. fi
  1509. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1510. test $ac_status = 0; } && {
  1511. test -z "$ac_c_werror_flag" ||
  1512. test ! -s conftest.err
  1513. } && test -s conftest$ac_exeext && {
  1514. test "$cross_compiling" = yes ||
  1515. test -x conftest$ac_exeext
  1516. }; then :
  1517. ac_retval=0
  1518. else
  1519. $as_echo "$as_me: failed program was:" >&5
  1520. sed 's/^/| /' conftest.$ac_ext >&5
  1521. ac_retval=1
  1522. fi
  1523. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1524. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1525. # interfere with the next link command; also delete a directory that is
  1526. # left behind by Apple's compiler. We do this before executing the actions.
  1527. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1528. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1529. as_fn_set_status $ac_retval
  1530. } # ac_fn_c_try_link
  1531. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1532. # -------------------------------------------------------
  1533. # Tests whether HEADER exists and can be compiled using the include files in
  1534. # INCLUDES, setting the cache variable VAR accordingly.
  1535. ac_fn_c_check_header_compile ()
  1536. {
  1537. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1539. $as_echo_n "checking for $2... " >&6; }
  1540. if eval \${$3+:} false; then :
  1541. $as_echo_n "(cached) " >&6
  1542. else
  1543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1544. /* end confdefs.h. */
  1545. $4
  1546. #include <$2>
  1547. _ACEOF
  1548. if ac_fn_c_try_compile "$LINENO"; then :
  1549. eval "$3=yes"
  1550. else
  1551. eval "$3=no"
  1552. fi
  1553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1554. fi
  1555. eval ac_res=\$$3
  1556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1557. $as_echo "$ac_res" >&6; }
  1558. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1559. } # ac_fn_c_check_header_compile
  1560. # ac_fn_c_try_cpp LINENO
  1561. # ----------------------
  1562. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1563. ac_fn_c_try_cpp ()
  1564. {
  1565. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1566. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1567. case "(($ac_try" in
  1568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1569. *) ac_try_echo=$ac_try;;
  1570. esac
  1571. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1572. $as_echo "$ac_try_echo"; } >&5
  1573. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1574. ac_status=$?
  1575. if test -s conftest.err; then
  1576. grep -v '^ *+' conftest.err >conftest.er1
  1577. cat conftest.er1 >&5
  1578. mv -f conftest.er1 conftest.err
  1579. fi
  1580. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1581. test $ac_status = 0; } > conftest.i && {
  1582. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1583. test ! -s conftest.err
  1584. }; then :
  1585. ac_retval=0
  1586. else
  1587. $as_echo "$as_me: failed program was:" >&5
  1588. sed 's/^/| /' conftest.$ac_ext >&5
  1589. ac_retval=1
  1590. fi
  1591. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1592. as_fn_set_status $ac_retval
  1593. } # ac_fn_c_try_cpp
  1594. # ac_fn_c_try_run LINENO
  1595. # ----------------------
  1596. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1597. # that executables *can* be run.
  1598. ac_fn_c_try_run ()
  1599. {
  1600. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1601. if { { ac_try="$ac_link"
  1602. case "(($ac_try" in
  1603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1604. *) ac_try_echo=$ac_try;;
  1605. esac
  1606. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1607. $as_echo "$ac_try_echo"; } >&5
  1608. (eval "$ac_link") 2>&5
  1609. ac_status=$?
  1610. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1611. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1612. { { case "(($ac_try" in
  1613. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1614. *) ac_try_echo=$ac_try;;
  1615. esac
  1616. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1617. $as_echo "$ac_try_echo"; } >&5
  1618. (eval "$ac_try") 2>&5
  1619. ac_status=$?
  1620. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1621. test $ac_status = 0; }; }; then :
  1622. ac_retval=0
  1623. else
  1624. $as_echo "$as_me: program exited with status $ac_status" >&5
  1625. $as_echo "$as_me: failed program was:" >&5
  1626. sed 's/^/| /' conftest.$ac_ext >&5
  1627. ac_retval=$ac_status
  1628. fi
  1629. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1630. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1631. as_fn_set_status $ac_retval
  1632. } # ac_fn_c_try_run
  1633. # ac_fn_c_check_func LINENO FUNC VAR
  1634. # ----------------------------------
  1635. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1636. ac_fn_c_check_func ()
  1637. {
  1638. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1640. $as_echo_n "checking for $2... " >&6; }
  1641. if eval \${$3+:} false; then :
  1642. $as_echo_n "(cached) " >&6
  1643. else
  1644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1645. /* end confdefs.h. */
  1646. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1647. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1648. #define $2 innocuous_$2
  1649. /* System header to define __stub macros and hopefully few prototypes,
  1650. which can conflict with char $2 (); below.
  1651. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1652. <limits.h> exists even on freestanding compilers. */
  1653. #ifdef __STDC__
  1654. # include <limits.h>
  1655. #else
  1656. # include <assert.h>
  1657. #endif
  1658. #undef $2
  1659. /* Override any GCC internal prototype to avoid an error.
  1660. Use char because int might match the return type of a GCC
  1661. builtin and then its argument prototype would still apply. */
  1662. #ifdef __cplusplus
  1663. extern "C"
  1664. #endif
  1665. char $2 ();
  1666. /* The GNU C library defines this for functions which it implements
  1667. to always fail with ENOSYS. Some functions are actually named
  1668. something starting with __ and the normal name is an alias. */
  1669. #if defined __stub_$2 || defined __stub___$2
  1670. choke me
  1671. #endif
  1672. int
  1673. main ()
  1674. {
  1675. return $2 ();
  1676. ;
  1677. return 0;
  1678. }
  1679. _ACEOF
  1680. if ac_fn_c_try_link "$LINENO"; then :
  1681. eval "$3=yes"
  1682. else
  1683. eval "$3=no"
  1684. fi
  1685. rm -f core conftest.err conftest.$ac_objext \
  1686. conftest$ac_exeext conftest.$ac_ext
  1687. fi
  1688. eval ac_res=\$$3
  1689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1690. $as_echo "$ac_res" >&6; }
  1691. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1692. } # ac_fn_c_check_func
  1693. # ac_fn_cxx_try_compile LINENO
  1694. # ----------------------------
  1695. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1696. ac_fn_cxx_try_compile ()
  1697. {
  1698. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1699. rm -f conftest.$ac_objext
  1700. if { { ac_try="$ac_compile"
  1701. case "(($ac_try" in
  1702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1703. *) ac_try_echo=$ac_try;;
  1704. esac
  1705. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1706. $as_echo "$ac_try_echo"; } >&5
  1707. (eval "$ac_compile") 2>conftest.err
  1708. ac_status=$?
  1709. if test -s conftest.err; then
  1710. grep -v '^ *+' conftest.err >conftest.er1
  1711. cat conftest.er1 >&5
  1712. mv -f conftest.er1 conftest.err
  1713. fi
  1714. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1715. test $ac_status = 0; } && {
  1716. test -z "$ac_cxx_werror_flag" ||
  1717. test ! -s conftest.err
  1718. } && test -s conftest.$ac_objext; then :
  1719. ac_retval=0
  1720. else
  1721. $as_echo "$as_me: failed program was:" >&5
  1722. sed 's/^/| /' conftest.$ac_ext >&5
  1723. ac_retval=1
  1724. fi
  1725. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1726. as_fn_set_status $ac_retval
  1727. } # ac_fn_cxx_try_compile
  1728. # ac_fn_cxx_try_cpp LINENO
  1729. # ------------------------
  1730. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1731. ac_fn_cxx_try_cpp ()
  1732. {
  1733. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1734. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1735. case "(($ac_try" in
  1736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1737. *) ac_try_echo=$ac_try;;
  1738. esac
  1739. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1740. $as_echo "$ac_try_echo"; } >&5
  1741. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1742. ac_status=$?
  1743. if test -s conftest.err; then
  1744. grep -v '^ *+' conftest.err >conftest.er1
  1745. cat conftest.er1 >&5
  1746. mv -f conftest.er1 conftest.err
  1747. fi
  1748. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1749. test $ac_status = 0; } > conftest.i && {
  1750. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1751. test ! -s conftest.err
  1752. }; then :
  1753. ac_retval=0
  1754. else
  1755. $as_echo "$as_me: failed program was:" >&5
  1756. sed 's/^/| /' conftest.$ac_ext >&5
  1757. ac_retval=1
  1758. fi
  1759. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1760. as_fn_set_status $ac_retval
  1761. } # ac_fn_cxx_try_cpp
  1762. # ac_fn_cxx_try_link LINENO
  1763. # -------------------------
  1764. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1765. ac_fn_cxx_try_link ()
  1766. {
  1767. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1768. rm -f conftest.$ac_objext conftest$ac_exeext
  1769. if { { ac_try="$ac_link"
  1770. case "(($ac_try" in
  1771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1772. *) ac_try_echo=$ac_try;;
  1773. esac
  1774. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1775. $as_echo "$ac_try_echo"; } >&5
  1776. (eval "$ac_link") 2>conftest.err
  1777. ac_status=$?
  1778. if test -s conftest.err; then
  1779. grep -v '^ *+' conftest.err >conftest.er1
  1780. cat conftest.er1 >&5
  1781. mv -f conftest.er1 conftest.err
  1782. fi
  1783. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1784. test $ac_status = 0; } && {
  1785. test -z "$ac_cxx_werror_flag" ||
  1786. test ! -s conftest.err
  1787. } && test -s conftest$ac_exeext && {
  1788. test "$cross_compiling" = yes ||
  1789. test -x conftest$ac_exeext
  1790. }; then :
  1791. ac_retval=0
  1792. else
  1793. $as_echo "$as_me: failed program was:" >&5
  1794. sed 's/^/| /' conftest.$ac_ext >&5
  1795. ac_retval=1
  1796. fi
  1797. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1798. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1799. # interfere with the next link command; also delete a directory that is
  1800. # left behind by Apple's compiler. We do this before executing the actions.
  1801. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1802. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1803. as_fn_set_status $ac_retval
  1804. } # ac_fn_cxx_try_link
  1805. cat >config.log <<_ACEOF
  1806. This file contains any messages produced by compilers while
  1807. running configure, to aid debugging if configure makes a mistake.
  1808. It was created by REDUCE $as_me from SourceForge, which was
  1809. generated by GNU Autoconf 2.69. Invocation command line was
  1810. $ $0 $@
  1811. _ACEOF
  1812. exec 5>>config.log
  1813. {
  1814. cat <<_ASUNAME
  1815. ## --------- ##
  1816. ## Platform. ##
  1817. ## --------- ##
  1818. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1819. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1820. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1821. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1822. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1823. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1824. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1825. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1826. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1827. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1828. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1829. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1830. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1831. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1832. _ASUNAME
  1833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1834. for as_dir in $PATH
  1835. do
  1836. IFS=$as_save_IFS
  1837. test -z "$as_dir" && as_dir=.
  1838. $as_echo "PATH: $as_dir"
  1839. done
  1840. IFS=$as_save_IFS
  1841. } >&5
  1842. cat >&5 <<_ACEOF
  1843. ## ----------- ##
  1844. ## Core tests. ##
  1845. ## ----------- ##
  1846. _ACEOF
  1847. # Keep a trace of the command line.
  1848. # Strip out --no-create and --no-recursion so they do not pile up.
  1849. # Strip out --silent because we don't want to record it for future runs.
  1850. # Also quote any args containing shell meta-characters.
  1851. # Make two passes to allow for proper duplicate-argument suppression.
  1852. ac_configure_args=
  1853. ac_configure_args0=
  1854. ac_configure_args1=
  1855. ac_must_keep_next=false
  1856. for ac_pass in 1 2
  1857. do
  1858. for ac_arg
  1859. do
  1860. case $ac_arg in
  1861. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1862. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1863. | -silent | --silent | --silen | --sile | --sil)
  1864. continue ;;
  1865. *\'*)
  1866. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1867. esac
  1868. case $ac_pass in
  1869. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1870. 2)
  1871. as_fn_append ac_configure_args1 " '$ac_arg'"
  1872. if test $ac_must_keep_next = true; then
  1873. ac_must_keep_next=false # Got value, back to normal.
  1874. else
  1875. case $ac_arg in
  1876. *=* | --config-cache | -C | -disable-* | --disable-* \
  1877. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1878. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1879. | -with-* | --with-* | -without-* | --without-* | --x)
  1880. case "$ac_configure_args0 " in
  1881. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1882. esac
  1883. ;;
  1884. -* ) ac_must_keep_next=true ;;
  1885. esac
  1886. fi
  1887. as_fn_append ac_configure_args " '$ac_arg'"
  1888. ;;
  1889. esac
  1890. done
  1891. done
  1892. { ac_configure_args0=; unset ac_configure_args0;}
  1893. { ac_configure_args1=; unset ac_configure_args1;}
  1894. # When interrupted or exit'd, cleanup temporary files, and complete
  1895. # config.log. We remove comments because anyway the quotes in there
  1896. # would cause problems or look ugly.
  1897. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1898. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1899. trap 'exit_status=$?
  1900. # Save into config.log some information that might help in debugging.
  1901. {
  1902. echo
  1903. $as_echo "## ---------------- ##
  1904. ## Cache variables. ##
  1905. ## ---------------- ##"
  1906. echo
  1907. # The following way of writing the cache mishandles newlines in values,
  1908. (
  1909. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1910. eval ac_val=\$$ac_var
  1911. case $ac_val in #(
  1912. *${as_nl}*)
  1913. case $ac_var in #(
  1914. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1915. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1916. esac
  1917. case $ac_var in #(
  1918. _ | IFS | as_nl) ;; #(
  1919. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1920. *) { eval $ac_var=; unset $ac_var;} ;;
  1921. esac ;;
  1922. esac
  1923. done
  1924. (set) 2>&1 |
  1925. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1926. *${as_nl}ac_space=\ *)
  1927. sed -n \
  1928. "s/'\''/'\''\\\\'\'''\''/g;
  1929. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1930. ;; #(
  1931. *)
  1932. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1933. ;;
  1934. esac |
  1935. sort
  1936. )
  1937. echo
  1938. $as_echo "## ----------------- ##
  1939. ## Output variables. ##
  1940. ## ----------------- ##"
  1941. echo
  1942. for ac_var in $ac_subst_vars
  1943. do
  1944. eval ac_val=\$$ac_var
  1945. case $ac_val in
  1946. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1947. esac
  1948. $as_echo "$ac_var='\''$ac_val'\''"
  1949. done | sort
  1950. echo
  1951. if test -n "$ac_subst_files"; then
  1952. $as_echo "## ------------------- ##
  1953. ## File substitutions. ##
  1954. ## ------------------- ##"
  1955. echo
  1956. for ac_var in $ac_subst_files
  1957. do
  1958. eval ac_val=\$$ac_var
  1959. case $ac_val in
  1960. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1961. esac
  1962. $as_echo "$ac_var='\''$ac_val'\''"
  1963. done | sort
  1964. echo
  1965. fi
  1966. if test -s confdefs.h; then
  1967. $as_echo "## ----------- ##
  1968. ## confdefs.h. ##
  1969. ## ----------- ##"
  1970. echo
  1971. cat confdefs.h
  1972. echo
  1973. fi
  1974. test "$ac_signal" != 0 &&
  1975. $as_echo "$as_me: caught signal $ac_signal"
  1976. $as_echo "$as_me: exit $exit_status"
  1977. } >&5
  1978. rm -f core *.core core.conftest.* &&
  1979. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1980. exit $exit_status
  1981. ' 0
  1982. for ac_signal in 1 2 13 15; do
  1983. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1984. done
  1985. ac_signal=0
  1986. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1987. rm -f -r conftest* confdefs.h
  1988. $as_echo "/* confdefs.h */" > confdefs.h
  1989. # Predefined preprocessor variables.
  1990. cat >>confdefs.h <<_ACEOF
  1991. #define PACKAGE_NAME "$PACKAGE_NAME"
  1992. _ACEOF
  1993. cat >>confdefs.h <<_ACEOF
  1994. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1995. _ACEOF
  1996. cat >>confdefs.h <<_ACEOF
  1997. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1998. _ACEOF
  1999. cat >>confdefs.h <<_ACEOF
  2000. #define PACKAGE_STRING "$PACKAGE_STRING"
  2001. _ACEOF
  2002. cat >>confdefs.h <<_ACEOF
  2003. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2004. _ACEOF
  2005. cat >>confdefs.h <<_ACEOF
  2006. #define PACKAGE_URL "$PACKAGE_URL"
  2007. _ACEOF
  2008. # Let the site file select an alternate cache file if it wants to.
  2009. # Prefer an explicitly selected file to automatically selected ones.
  2010. ac_site_file1=NONE
  2011. ac_site_file2=NONE
  2012. if test -n "$CONFIG_SITE"; then
  2013. # We do not want a PATH search for config.site.
  2014. case $CONFIG_SITE in #((
  2015. -*) ac_site_file1=./$CONFIG_SITE;;
  2016. */*) ac_site_file1=$CONFIG_SITE;;
  2017. *) ac_site_file1=./$CONFIG_SITE;;
  2018. esac
  2019. elif test "x$prefix" != xNONE; then
  2020. ac_site_file1=$prefix/share/config.site
  2021. ac_site_file2=$prefix/etc/config.site
  2022. else
  2023. ac_site_file1=$ac_default_prefix/share/config.site
  2024. ac_site_file2=$ac_default_prefix/etc/config.site
  2025. fi
  2026. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2027. do
  2028. test "x$ac_site_file" = xNONE && continue
  2029. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2030. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2031. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2032. sed 's/^/| /' "$ac_site_file" >&5
  2033. . "$ac_site_file" \
  2034. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2035. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2036. as_fn_error $? "failed to load site script $ac_site_file
  2037. See \`config.log' for more details" "$LINENO" 5; }
  2038. fi
  2039. done
  2040. if test -r "$cache_file"; then
  2041. # Some versions of bash will fail to source /dev/null (special files
  2042. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2043. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2044. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2045. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2046. case $cache_file in
  2047. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2048. *) . "./$cache_file";;
  2049. esac
  2050. fi
  2051. else
  2052. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2053. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2054. >$cache_file
  2055. fi
  2056. # Check that the precious variables saved in the cache have kept the same
  2057. # value.
  2058. ac_cache_corrupted=false
  2059. for ac_var in $ac_precious_vars; do
  2060. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2061. eval ac_new_set=\$ac_env_${ac_var}_set
  2062. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2063. eval ac_new_val=\$ac_env_${ac_var}_value
  2064. case $ac_old_set,$ac_new_set in
  2065. set,)
  2066. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2067. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2068. ac_cache_corrupted=: ;;
  2069. ,set)
  2070. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2071. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2072. ac_cache_corrupted=: ;;
  2073. ,);;
  2074. *)
  2075. if test "x$ac_old_val" != "x$ac_new_val"; then
  2076. # differences in whitespace do not lead to failure.
  2077. ac_old_val_w=`echo x $ac_old_val`
  2078. ac_new_val_w=`echo x $ac_new_val`
  2079. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2080. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2081. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2082. ac_cache_corrupted=:
  2083. else
  2084. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2085. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2086. eval $ac_var=\$ac_old_val
  2087. fi
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2089. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2091. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2092. fi;;
  2093. esac
  2094. # Pass precious variables to config.status.
  2095. if test "$ac_new_set" = set; then
  2096. case $ac_new_val in
  2097. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2098. *) ac_arg=$ac_var=$ac_new_val ;;
  2099. esac
  2100. case " $ac_configure_args " in
  2101. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2102. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2103. esac
  2104. fi
  2105. done
  2106. if $ac_cache_corrupted; then
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2108. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2110. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2111. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2112. fi
  2113. ## -------------------- ##
  2114. ## Main body of script. ##
  2115. ## -------------------- ##
  2116. ac_ext=c
  2117. ac_cpp='$CPP $CPPFLAGS'
  2118. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2119. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2120. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2121. # **************************************************************************
  2122. # * Copyright (C) 2017-20, Codemist. A C Norman *
  2123. # * *
  2124. # * Redistribution and use in source and binary forms, with or without *
  2125. # * modification, are permitted provided that the following conditions are *
  2126. # * met: *
  2127. # * *
  2128. # * * Redistributions of source code must retain the relevant *
  2129. # * copyright notice, this list of conditions and the following *
  2130. # * disclaimer. *
  2131. # * * Redistributions in binary form must reproduce the above *
  2132. # * copyright notice, this list of conditions and the following *
  2133. # * disclaimer in the documentation and/or other materials provided *
  2134. # * with the distribution. *
  2135. # * *
  2136. # * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS *
  2137. # * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT *
  2138. # * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS *
  2139. # * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE *
  2140. # * COPYRIGHT OWNERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, *
  2141. # * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, *
  2142. # * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS *
  2143. # * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND *
  2144. # * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR *
  2145. # * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF *
  2146. # * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH *
  2147. # * DAMAGE. *
  2148. # **************************************************************************
  2149. # The next line is a dreadful thing and is in case I am launched
  2150. # from a bash prompt, in which case the SHELL variable will be set
  2151. # to /bin/bash (or perhaps the user's login shell?). Anyway that hurts
  2152. # config.guess on Solaris.... so I will force matters so that I use
  2153. # plan vanilla /bin/sh henceforth. So BEWARE and do not use bash extensions.
  2154. if test -x /bin/sh
  2155. then
  2156. SHELL=/bin/sh
  2157. export SHELL
  2158. fi
  2159. # $Id: configure.ac 5398 2020-09-11 19:24:14Z arthurcnorman $
  2160. # If necessary you can fetch source versions of autoconf and automake and
  2161. # install private versions for use here. Following discussions with other
  2162. # developers I am now going to require autoconf, automake and libtool
  2163. # availability, although an enthusiastic person could probably get things
  2164. # working without them.
  2165. ac_aux_dir=
  2166. for ac_dir in . "$srcdir"/.; do
  2167. if test -f "$ac_dir/install-sh"; then
  2168. ac_aux_dir=$ac_dir
  2169. ac_install_sh="$ac_aux_dir/install-sh -c"
  2170. break
  2171. elif test -f "$ac_dir/install.sh"; then
  2172. ac_aux_dir=$ac_dir
  2173. ac_install_sh="$ac_aux_dir/install.sh -c"
  2174. break
  2175. elif test -f "$ac_dir/shtool"; then
  2176. ac_aux_dir=$ac_dir
  2177. ac_install_sh="$ac_aux_dir/shtool install -c"
  2178. break
  2179. fi
  2180. done
  2181. if test -z "$ac_aux_dir"; then
  2182. as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
  2183. fi
  2184. # These three variables are undocumented and unsupported,
  2185. # and are intended to be withdrawn in a future Autoconf release.
  2186. # They can cause serious problems if a builder's source tree is in a directory
  2187. # whose full name contains unusual characters.
  2188. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2189. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2190. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2191. abssrcdir=`"$srcdir/scripts/here.sh"`
  2192. if which cygpath 2> /dev/null
  2193. then
  2194. a=`cygpath -am "$abssrcdir"`
  2195. b="${a%%/*}/"
  2196. d="${a#${b}}"
  2197. c=`cygpath $b`
  2198. abssrcdir="$c$d"
  2199. fi
  2200. { $as_echo "$as_me:${as_lineno-$LINENO}: Absolute path to source directory = $abssrcdir" >&5
  2201. $as_echo "$as_me: Absolute path to source directory = $abssrcdir" >&6;}
  2202. #
  2203. # There is a horror here. If one fetches everything from subversion
  2204. # then timstamps can be ill-ordered, and it can seem necessary to
  2205. # re-create the autoconf-related files. The standard way that autoconf and
  2206. # automake allow for this is not very generous if the version of autoconf
  2207. # on the local machine does not match the one used in the files from the
  2208. # central site.
  2209. #
  2210. # I am now going to try to respond to that by forcing a re-generation of
  2211. # all the autoconf files each time anybody runs configure. That adds to the
  2212. # cost for everybody and means that everybody NEEDS autoconf, automake and
  2213. # libtool installed, but may be more robust. I will check the versions of
  2214. # autoconf and automake that are present and stop if they are too old.
  2215. # If that case hits you you may need to fetch new versions (in source form)
  2216. # and build and install them somewhere on your PATH. This is in fact not
  2217. # too difficult, it is along the lines of
  2218. # <fetch source archive from the Free Software Foundation archives>
  2219. # # (please use a local mirror)
  2220. # tar xvfz <source-archive.tgz>
  2221. # cd <where it unpacked to>
  2222. # ./configure --prefix=/usr/local/bin
  2223. # make
  2224. # sudo make install
  2225. # and if you do not have authority to write files to /usr/local/bin then
  2226. # set up a directory of your own, put it early in your PATH and use that as
  2227. # the "--prefix".
  2228. # Check whether --with-autogen was given.
  2229. if test "${with_autogen+set}" = set; then :
  2230. withval=$with_autogen;
  2231. else
  2232. with_autogen="yes"
  2233. fi
  2234. if test "x$with_autogen" = "xyes"
  2235. then
  2236. if ! which autoconf > /dev/null 2> /dev/null
  2237. then
  2238. wait $procids
  2239. printf "You must have autoconf (at least version 2.61) installed to\n"
  2240. printf "build this package. Install it and try again please.\n"
  2241. exit 1
  2242. fi
  2243. if ! which automake > /dev/null 2> /dev/null
  2244. then
  2245. wait $procids
  2246. printf "You must have automake (at least version 1.13) installed to\n"
  2247. printf "build this package. Install it and try again please.\n"
  2248. exit 1
  2249. fi
  2250. if ! which libtool > /dev/null 2> /dev/null
  2251. then
  2252. wait $procids
  2253. printf "You must have libtool installed to build this package. Install\n"
  2254. printf "it and try again please.\n"
  2255. printf "Note on some Linux systems it is in a package called libtool-bin\n"
  2256. exit 1
  2257. fi
  2258. # The next fragment should extract version numbers for autoconf and automake
  2259. # I extract version info from the two utilities. The first line of
  2260. # the output from "autoxx --version" is "autoxx ... nn.nn.nn" with
  2261. # a two or three component version number at the end.
  2262. acver=`autoconf --version 2> /dev/null | head -1`
  2263. amver=`automake --version 2> /dev/null | head -1`
  2264. # Get rid of everything as far as the final blank in the data. What is
  2265. # left is just the version number, whihc may be two or three components,
  2266. # such as 14.2.1 or 15.0
  2267. acver=`echo $acver | sed -e 's/.* //'`
  2268. amver=`echo $amver | sed -e 's/.* //'`
  2269. # The major version number is got by stripping of everything from the "." on.
  2270. acmaj=`echo $acver | sed -e 's/\..*//'`
  2271. ammaj=`echo $amver | sed -e 's/\..*//'`
  2272. # The minor version number is left if one deleted the major number.
  2273. acver=`echo $acver | sed -e "s/$acmaj\.//"`
  2274. amver=`echo $amver | sed -e "s/$ammaj\.//"`
  2275. # What was left could have a patch level - get rid of it.
  2276. acmin=`echo $acver | sed -e 's/\..*//'`
  2277. ammin=`echo $amver | sed -e 's/\..*//'`
  2278. { $as_echo "$as_me:${as_lineno-$LINENO}: detected autoconf: $acmaj.$acmin automake: $ammaj.$ammin" >&5
  2279. $as_echo "$as_me: detected autoconf: $acmaj.$acmin automake: $ammaj.$ammin" >&6;}
  2280. if test $acmaj -lt 2 || test $acmaj -eq 2 && test $acmin -lt 61
  2281. then
  2282. wait $procids
  2283. printf "You have autoconf $acmaj.$acmin but at least 2.61 is needed\n"
  2284. printf "to build this package. Install it and try again please.\n"
  2285. exit 1
  2286. fi
  2287. if test $ammaj -lt 1 || test $ammaj -eq 1 && test $ammin -lt 13
  2288. then
  2289. wait $procids
  2290. printf "You have automake $ammaj.$ammin but at least 1.13 is needed\n"
  2291. printf "to build this package. Install it and try again please.\n"
  2292. exit 1
  2293. fi
  2294. here=`pwd`
  2295. cd $abssrcdir
  2296. printf "Regenerate autoconf-related files\n"
  2297. if ! eval $SHELL -c \"./autogen.sh $ac_configure_args\"
  2298. then
  2299. wait $procids
  2300. printf "The autogen.sh script seems to have failed. I can not continue\n"
  2301. exit 1
  2302. fi
  2303. cd $here
  2304. # It is unexpectedly important the the "--without-autogen" be provided as
  2305. # the first argument in the re-try. This is because otherwise some malformed
  2306. # input later on (eg "--") could cause it not to be recognised, leading
  2307. # to an infinite cycle of attempted re-generation!
  2308. printf "Restart: $abssrcdir/configure --without-autogen $ac_configure_args\n"
  2309. # Because this uses "exec" it chains into the restarted processing and does
  2310. # not proceed further in this shell.
  2311. exec $SHELL -c "$abssrcdir/configure --without-autogen $ac_configure_args"
  2312. fi
  2313. # Next and before I do anything much else I will see if any GUI toolkit that
  2314. # I am using needs to be unpacked from source. Well before I do that I need
  2315. # to sort out whether I am using CSL or PSL and in the former case whether
  2316. # I am using the FOX or wxWidgets toolkit.
  2317. # Check whether --with-csl was given.
  2318. if test "${with_csl+set}" = set; then :
  2319. withval=$with_csl;
  2320. else
  2321. with_csl="no"
  2322. fi
  2323. # Check whether --with-psl was given.
  2324. if test "${with_psl+set}" = set; then :
  2325. withval=$with_psl;
  2326. else
  2327. with_psl="no"
  2328. fi
  2329. # Ensure that at least one Lisp system is selected
  2330. if test "x$with_psl" = "xno" && test "x$with_csl" = "xno"
  2331. then
  2332. as_fn_error $? "you must specify either --with-csl or --with-psl to select a Lisp" "$LINENO" 5
  2333. fi
  2334. if test "x$with_psl" != "xno" && test "x$with_csl" != "xno"
  2335. then
  2336. as_fn_error $? "If you want to build both CSL and PSL versions then you will
  2337. need to run the configure script twice, once with --with-csl and any
  2338. other relevent options and once with --with-psl and any relevant PSL
  2339. options. After that you may use \"make\" and both systems should be made." "$LINENO" 5
  2340. fi
  2341. # Check whether --with-gui was given.
  2342. if test "${with_gui+set}" = set; then :
  2343. withval=$with_gui;
  2344. else
  2345. with_gui="yes"
  2346. fi
  2347. # As part of what MAY be a transition I am supporting two possible GUI
  2348. # toolkits, viz FOX and wxWidgets. See www.fox-toolkit.org and
  2349. # www.wxwidgets.org. If you do not say anything explicit then you will
  2350. # get the code built with my default choice and the build will occur in
  2351. # un-decorated directory-names. If you explicitly go either "--with-fox"
  2352. # or "--with-wx" then you get that GUI toolkit used and the directory will
  2353. # be decorated so that this does not interfere with the default. I set the
  2354. # default here...
  2355. # If you go "--without-fox" or "--without-wx" then that will disable use
  2356. # of that toolkit. If the other was selected this will in effect get ignored.
  2357. # If the one you say "--without" about is the one that would have been the
  2358. # default then you get a system without a GUI at all.
  2359. # I reserve the right (one day) to change the default toolkit I use to build
  2360. # a GUI, but at the stage I put this in there is a workable one using FOX
  2361. # and essentially nothing beyond some configuration steps using wxWidgets!
  2362. default_gui="fox"
  2363. #default_gui="wx"
  2364. # Check whether --with-wx was given.
  2365. if test "${with_wx+set}" = set; then :
  2366. withval=$with_wx;
  2367. else
  2368. with_wx="default"
  2369. fi
  2370. # Check whether --with-fox was given.
  2371. if test "${with_fox+set}" = set; then :
  2372. withval=$with_fox;
  2373. else
  2374. with_fox="default"
  2375. fi
  2376. if test "x$with_psl" != "xno"
  2377. then
  2378. with_fox=no
  2379. with_wx=no
  2380. with_gui=no
  2381. fi
  2382. if test "x$with_csl" != "xno"
  2383. then
  2384. # This is where I unpack a new copy of wxWidgets if I need to.
  2385. # If the user has said nothing then both with_fox and with_wx will be
  2386. # "default", and default_gui will be either"fox" or "wx".
  2387. # The things the user can reasonably say will be
  2388. # <nothing> build using default GUI in directory x-y-z
  2389. # (eg in cslbuild/i386-pc-windows)
  2390. # --without-gui build non-GUI version in x-y-x-nogui
  2391. # --with-fox build FOX version in x-y-z
  2392. # --with-wx build wxWidgets version in x-y-z-wx
  2393. # --without-fox if FOX is the default behave as --without -gui
  2394. # --without-wx if wxWidgets is the default behave as --without-gui
  2395. # If the user says --without-wx when FOX was to be the default GUI then in
  2396. # effect this redundant statement is ignored.
  2397. # It is not proper to say more than one from --with-fox, --with-wx,
  2398. # and --without-gui, but each can be used in separate calls to the
  2399. # configure script to build parallel versions.
  2400. #
  2401. # There is no point or merit in --with-fox=XXXX for some XXX
  2402. # other than "yes" OR "no", and "--with-fox=no" is interpreted as being the
  2403. # same as "--without-fox" (etc). I use "--with-fox=default" as the situation
  2404. # if the user does not specify "--with-fox" at all.
  2405. if test "x$with_gui" = "xno" && (test "x$with_fox" != "xdefault" || test "x$with_wx" != "xdefault")
  2406. then
  2407. as_fn_error $? "If you say --without-gui you must not say --with-fox or --with-wx as well
  2408. (or even --without-fox or --without-wx)" "$LINENO" 5
  2409. fi
  2410. if test "x$with_fox" != "xdefault" && test "x$with_wx" != "xdefault"
  2411. then
  2412. as_fn_error $? "You must not say --with-fox (or --without-fox) and --with-wx
  2413. (or --without-wx) at the same time" "$LINENO" 5
  2414. fi
  2415. if test "x$with_gui" = "xno"
  2416. then
  2417. with_fox="no"
  2418. with_wx="no"
  2419. else
  2420. case $default_gui/$with_fox/$with_wx in
  2421. fox/default/default)
  2422. # simple default case
  2423. with_fox="yes"
  2424. with_wx="no";
  2425. ;;
  2426. fox/yes/*)
  2427. # explicit --with-fox. I allow this even though in this situation it
  2428. # is redundant because when wxWidgets becomes the default it will be
  2429. # needed if you want a fox build.
  2430. with_fox="yes"
  2431. with_wx="no";
  2432. ;;
  2433. fox/no/*)
  2434. # explicit --without-fox. If fox is that default this
  2435. # leads to the without-gui situation.
  2436. with_fox="no"
  2437. with_wx="no";
  2438. ;;
  2439. fox/*/yes)
  2440. # explicit --with-wx overrides the default
  2441. with_fox="no"
  2442. with_wx="yes";
  2443. ;;
  2444. fox/*/no)
  2445. # explicit --without-wx. If fox is the default this will not have any
  2446. # effect and since maybe somebody thought it would disable the whole
  2447. # GUI I will make it an error.
  2448. as_fn_error $? "--with-fox is the default configuration so --without-wx is not needed" "$LINENO" 5
  2449. ;;
  2450. wx/default/default)
  2451. # simple default case (if wx is preferred)
  2452. with_fox="no"
  2453. with_wx="yes";
  2454. ;;
  2455. wx/*/yes)
  2456. # explicit --with-wx is permitted even when not needed
  2457. with_fox="no"
  2458. with_wx="yes";
  2459. ;;
  2460. wx/yes/*)
  2461. # explicit --with-fox that overrides default
  2462. with_fox="yes"
  2463. with_wx="no";
  2464. ;;
  2465. wx/no/*)
  2466. # explicit --without-fox
  2467. as_fn_error $? "--with-wx is the default configuration so --without-fox is not needed" "$LINENO" 5
  2468. ;;
  2469. *)
  2470. as_fn_error $? "--with-fox=$with_fox and --with-wx=$with_wx inconsistent here" "$LINENO" 5
  2471. ;;
  2472. esac
  2473. fi
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: with_fox=$with_fox, with_wx=$with_wx" >&5
  2475. $as_echo "$as_me: with_fox=$with_fox, with_wx=$with_wx" >&6;}
  2476. # Now at most one of with_wx and with_fox will be "yes". They could both
  2477. # be "no".
  2478. if test "x$with_wx" != "xno"
  2479. then
  2480. d=`pwd`
  2481. cd $abssrcdir/csl/support-packages
  2482. # The next line should collect the names of all versions of wxWidgets that
  2483. # I have .tar.bz2 files for, and they should end up in alphabetic order.
  2484. a=`echo wxWidgets-*-*-*.tar.bz2`
  2485. # Here I keep the last item in the list, which should be the latest version
  2486. # present.
  2487. a=${a##* }
  2488. # Remove the ".tar.bz2" suffix
  2489. b=${a%.tar.bz2}
  2490. cd ..
  2491. # Now I need to check if the version of wxWidgets I have already got
  2492. # in an unpacked state matches the most recent one available. Well I look at
  2493. # date-stamps - has the unpacked copy of wxWidgets got a newer date-stamp than
  2494. # the archived one?
  2495. if test $abssrcdir/csl/support-packages/wxWidgets_revision -nt \
  2496. wxWidgets/wxWidgets_revision
  2497. then
  2498. printf "will unpack a fresh copy of wxWidgets\n"
  2499. mkdir wxWidgets-new
  2500. cp $abssrcdir/csl/support-packages/wxWidgets_revision wxWidgets-new
  2501. mv wxWidgets-new wxWidgets
  2502. # At present my wxWidgets archive is packed as for a directory named
  2503. # just "wxWidgets", but I will allow for any future change where the
  2504. # directory mentioned in the tar archive has a version number included.
  2505. tar xfj support-packages/$a -C wxWidgets --strip-components=1
  2506. # At one stage I had trouble with the unpacked archive not being all
  2507. # readable, so here I forcibly reset permssions
  2508. chmod -R +rw wxWidgets
  2509. # The official distribution needs its autogen.sh script run to create
  2510. # a configure file.
  2511. cd wxWidgets
  2512. ./autogen.sh
  2513. cd ..
  2514. printf "wxWidgets unpacked from archive $a\n"
  2515. fi
  2516. cd $d
  2517. fi
  2518. fi
  2519. # On Windows there should be 3 variants of Reduce made:
  2520. # cygwin 64-bit (this can be used either in console mode or using X)
  2521. # native windows 64-bit console mode
  2522. # native windows 64-bit windows mode
  2523. #
  2524. uname_s=`uname -s`
  2525. case "$uname_s" in
  2526. Darwin)
  2527. # "uname -o" is not available on the Macintosh!
  2528. uname_o="macOS"
  2529. ;;
  2530. *)
  2531. uname_o=`uname -o 2>/dev/null`
  2532. ;;
  2533. esac
  2534. # Make sure we can run config.sub.
  2535. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2536. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2538. $as_echo_n "checking build system type... " >&6; }
  2539. if ${ac_cv_build+:} false; then :
  2540. $as_echo_n "(cached) " >&6
  2541. else
  2542. ac_build_alias=$build_alias
  2543. test "x$ac_build_alias" = x &&
  2544. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2545. test "x$ac_build_alias" = x &&
  2546. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2547. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2548. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2549. fi
  2550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2551. $as_echo "$ac_cv_build" >&6; }
  2552. case $ac_cv_build in
  2553. *-*-*) ;;
  2554. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2555. esac
  2556. build=$ac_cv_build
  2557. ac_save_IFS=$IFS; IFS='-'
  2558. set x $ac_cv_build
  2559. shift
  2560. build_cpu=$1
  2561. build_vendor=$2
  2562. shift; shift
  2563. # Remember, the first character of IFS is used to create $*,
  2564. # except with old shells:
  2565. build_os=$*
  2566. IFS=$ac_save_IFS
  2567. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2569. $as_echo_n "checking host system type... " >&6; }
  2570. if ${ac_cv_host+:} false; then :
  2571. $as_echo_n "(cached) " >&6
  2572. else
  2573. if test "x$host_alias" = x; then
  2574. ac_cv_host=$ac_cv_build
  2575. else
  2576. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2577. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2578. fi
  2579. fi
  2580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2581. $as_echo "$ac_cv_host" >&6; }
  2582. case $ac_cv_host in
  2583. *-*-*) ;;
  2584. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2585. esac
  2586. host=$ac_cv_host
  2587. ac_save_IFS=$IFS; IFS='-'
  2588. set x $ac_cv_host
  2589. shift
  2590. host_cpu=$1
  2591. host_vendor=$2
  2592. shift; shift
  2593. # Remember, the first character of IFS is used to create $*,
  2594. # except with old shells:
  2595. host_os=$*
  2596. IFS=$ac_save_IFS
  2597. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2598. # Check whether --with-build was given.
  2599. if test "${with_build+set}" = set; then :
  2600. withval=$with_build;
  2601. else
  2602. with_build="unknown"
  2603. fi
  2604. # Check whether --with-pslbuild was given.
  2605. if test "${with_pslbuild+set}" = set; then :
  2606. withval=$with_pslbuild;
  2607. else
  2608. with_pslbuild="unknown"
  2609. fi
  2610. # Check whether --with-cygbuild was given.
  2611. if test "${with_cygbuild+set}" = set; then :
  2612. withval=$with_cygbuild;
  2613. else
  2614. with_cygbuild="unknown"
  2615. fi
  2616. # Check whether --with-force was given.
  2617. if test "${with_force+set}" = set; then :
  2618. withval=$with_force;
  2619. else
  2620. with_force="no"
  2621. fi
  2622. # I could provide a --with-libedit=... option but the plan here is that
  2623. # the version used will only change during transitions made by the developers
  2624. # and so I limit myself to a fixed setting here. No ordinary person should
  2625. # ever need to alter this.
  2626. # This is set here so that if I need to experiment with or chance to a
  2627. # different version that will be reasonably tidy.
  2628. LIBEDIT_VERSION=20140620-3.1
  2629. ############################################################################
  2630. #
  2631. # Modern versions of the autoconf tools seems to moan dreadfully if you pass
  2632. # down a flag that they do not know about, and so I transcribe into here
  2633. # all the flags that the CSL configuration may ever want. The down-side of
  2634. # this is that "configure --help" shows them all.
  2635. # Check whether --with-cygwin was given.
  2636. if test "${with_cygwin+set}" = set; then :
  2637. withval=$with_cygwin;
  2638. else
  2639. with_cygwin="no"
  2640. fi
  2641. # Check whether --with-xft was given.
  2642. if test "${with_xft+set}" = set; then :
  2643. withval=$with_xft;
  2644. else
  2645. with_xft="yes"
  2646. fi
  2647. # Check whether --with-xim was given.
  2648. if test "${with_xim+set}" = set; then :
  2649. withval=$with_xim;
  2650. else
  2651. with_xim="yes"
  2652. fi
  2653. # Check whether --enable-debug was given.
  2654. if test "${enable_debug+set}" = set; then :
  2655. enableval=$enable_debug;
  2656. else
  2657. enable_debug="no"
  2658. fi
  2659. # Check whether --enable-conservative was given.
  2660. if test "${enable_conservative+set}" = set; then :
  2661. enableval=$enable_conservative;
  2662. else
  2663. enable_conservative="no"
  2664. fi
  2665. # Check whether --enable-test was given.
  2666. if test "${enable_test+set}" = set; then :
  2667. enableval=$enable_test;
  2668. else
  2669. enable_test="no"
  2670. fi
  2671. # Check whether --enable-experiment was given.
  2672. if test "${enable_experiment+set}" = set; then :
  2673. enableval=$enable_experiment;
  2674. else
  2675. enable_experiment="no"
  2676. fi
  2677. if test "x$enable_experiment" = "xyes"
  2678. then
  2679. enable_test="yes"
  2680. fi
  2681. # Check whether --with-arithlib was given.
  2682. if test "${with_arithlib+set}" = set; then :
  2683. withval=$with_arithlib;
  2684. else
  2685. with_arithlib="no"
  2686. fi
  2687. # Check whether --enable-static was given.
  2688. if test "${enable_static+set}" = set; then :
  2689. enableval=$enable_static;
  2690. else
  2691. enable_static="no"
  2692. fi
  2693. ###########################################################################
  2694. # Now I want to know if the current directory is the same as $srcdir. At
  2695. # one stage I checked that by looking to see if $srcdir was ".". That was OK
  2696. # for direct calls of the form "./configure" where the "." as in "./" was
  2697. # detected. But the reconfig step messes that up and anyway it is a delicate
  2698. # cheat. So here is a different delicate cheat!
  2699. rm -f ./testfile.tst "$abssrcdir/testfile.tst"
  2700. touch "$abssrcdir/testfile.tst"
  2701. if test -f ./testfile.tst
  2702. then
  2703. rm -f ./testfile.tst
  2704. inplace="yes"
  2705. else
  2706. inplace="no"
  2707. fi
  2708. printf "in-place build attempt = $inplace\n"
  2709. # I have a fairly elaborate scheme to select a directory to use. At present
  2710. # for PSL there are no relevant extra configure parameters, so I will not
  2711. # pass anthing down even if something has been specified! Thus PSL will get
  2712. # built in a simple directory named after the operating system while for
  2713. # CSL you may be able to create multiple versions (eg debugging and
  2714. # non-debugging) on the same machine, and the binaries will get created in
  2715. # separate sub-directories.
  2716. # One HORRID issue is that as regards anything that is to do with selecting
  2717. # directories to build in etc I want to look at $host as produced by
  2718. # just one version of config.guess. This is because in the past I have
  2719. # come across cases where different versions or releases of config.guess
  2720. # report the same machine with slightly different names. That could cause
  2721. # messy confusion! So when I want that information I find it once here and
  2722. # as necessary pass it down to lower parts of the tree.
  2723. { $as_echo "$as_me:${as_lineno-$LINENO}: host=$host args=$ac_configure_args" >&5
  2724. $as_echo "$as_me: host=$host args=$ac_configure_args" >&6;}
  2725. if test "x$with_psl" != "xno"
  2726. then
  2727. case $host in
  2728. *windows | *cygwin)
  2729. build="x86_64-pc-windows"
  2730. ;;
  2731. *)
  2732. # For cases other than Windows the PSL case is simpler.
  2733. build=`$SHELL $abssrcdir/scripts/findhost.sh $host`
  2734. ;;
  2735. esac
  2736. else
  2737. # For PSL find an initial name for the directory to build in. In the Windows
  2738. # case this will be messed with further.
  2739. build=`eval "$SHELL $abssrcdir/scripts/findhost.sh $host $ac_configure_args"`
  2740. fi
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: Will build in the $build subdirectory" >&5
  2742. $as_echo "$as_me: Will build in the $build subdirectory" >&6;}
  2743. procids=""
  2744. # There are many configure options that are valid or relevant at the
  2745. # top level but are not needed for sub-configure calls
  2746. filtered=`$abssrcdir/scripts/filter.sh "$ac_configure_args"`
  2747. nohost=`$abssrcdir/scripts/nohost.sh "$ac_configure_args"`
  2748. { $as_echo "$as_me:${as_lineno-$LINENO}: args=<$ac_configure_args>" >&5
  2749. $as_echo "$as_me: args=<$ac_configure_args>" >&6;}
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: filtered=<$filtered>" >&5
  2751. $as_echo "$as_me: filtered=<$filtered>" >&6;}
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: nohost=<$nohost>" >&5
  2753. $as_echo "$as_me: nohost=<$nohost>" >&6;}
  2754. # Check whether --with-sequential was given.
  2755. if test "${with_sequential+set}" = set; then :
  2756. withval=$with_sequential;
  2757. else
  2758. with_sequential="no"
  2759. fi
  2760. # Hah - the next is a jolly hape. It arranged that when I build on one of my
  2761. # own real machines I default to a new and experimental layout for the build
  2762. # of windows versions, but everybody else (unless their host has a name
  2763. # matching mine!) should be undisturbed.
  2764. # I gave disabled this just for a while... I am making other changes and I do
  2765. # not want this confusion to mess me up.
  2766. case `uname -n` in
  2767. *panamintXXX* | *gauguinXXX*)
  2768. default_windows_layout="new"
  2769. ;;
  2770. *)
  2771. default_windows_layout="old"
  2772. ;;
  2773. esac
  2774. # Check whether --with-windows_layout was given.
  2775. if test "${with_windows_layout+set}" = set; then :
  2776. withval=$with_windows_layout;
  2777. else
  2778. with_windows_layout="$default_windows_layout"
  2779. fi
  2780. { $as_echo "$as_me:${as_lineno-$LINENO}: default=$default_windows_layout this-layout=$with_windows_layout" >&5
  2781. $as_echo "$as_me: default=$default_windows_layout this-layout=$with_windows_layout" >&6;}
  2782. if test "$with_windows_layout" != "new"
  2783. then
  2784. with_windows_layout="old"
  2785. fi
  2786. csl_inplace_cygwin_build ()
  2787. {
  2788. # The argument here should be x88_64-pc-cygwin
  2789. target=$1
  2790. forcer=$2
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: in csl_inplace_cygwin_build wwl=$with_windows_layout" >&5
  2792. $as_echo "$as_me: in csl_inplace_cygwin_build wwl=$with_windows_layout" >&6;}
  2793. # Find the proper name for the target directory, allowing for --enable-debug
  2794. # and any other options that may be relevant.
  2795. if test "$with_windows_layout" = "new"
  2796. then
  2797. cygver="cyg64"
  2798. build=`eval "$SHELL $abssrcdir/scripts/findhost.sh intel-pc-windows $ac_configure_args --with-cygwin"`
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: target=$target => build=$build/$cygver" >&5
  2800. $as_echo "$as_me: target=$target => build=$build/$cygver" >&6;}
  2801. mkdir -p "$abssrcdir/cslbuild/$build/$cygver"
  2802. cp "$abssrcdir/csl/cslbase/Makefile.windows" "$abssrcdir/cslbuild/$build/Makefile"
  2803. cp "$abssrcdir/csl/cslbase/stub2020.c" "$abssrcdir/cslbuild/$build/stub2020.c"
  2804. cp "$abssrcdir/csl/cslbase/make-cygwin-symlink.c" "$abssrcdir/cslbuild/$build/make-cygwin-symlink.c"
  2805. cp "$abssrcdir/csl/cslbase/redpsl.sh" "$abssrcdir/cslbuild/$build/redpsl"
  2806. cd "$abssrcdir/cslbuild/$build/$cygver"
  2807. else
  2808. build=`eval "$SHELL $abssrcdir/scripts/findhost.sh $target $ac_configure_args --with-cygwin"`
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: target=$target => build=$build" >&5
  2810. $as_echo "$as_me: target=$target => build=$build" >&6;}
  2811. mkdir -p "$abssrcdir/cslbuild/$build"
  2812. cd "$abssrcdir/cslbuild/$build"
  2813. fi
  2814. if test "x$CC$CPP$CXX$CXXCPP" != "x"
  2815. then
  2816. passcc="CC=\"$CC\" CPP=\"$CPP\" CXX=\"$CXX\" CXXCPP=\"$CXXCPP\""
  2817. else
  2818. passcc=""
  2819. fi
  2820. { $as_echo "$as_me:${as_lineno-$LINENO}: passcc = $passcc" >&5
  2821. $as_echo "$as_me: passcc = $passcc" >&6;}
  2822. { $as_echo "$as_me:${as_lineno-$LINENO}: host=$host buildmc=$buildmc pass_host=$pass_host" >&5
  2823. $as_echo "$as_me: host=$host buildmc=$buildmc pass_host=$pass_host" >&6;}
  2824. pass_build="--with-build=\"$build\" --with-pslbuild=\"$pslbuild\""
  2825. doconfig="$SHELL $abssrcdir/configure --config-cache $ac_configure_args \
  2826. CC=\"$CC\" CXX=\"$CXX\" \
  2827. STRIP=\"$STRIP\" RANLIB=\"$RANLIB\" \
  2828. $forcer CPPFLAGS=\"$CPPFLAGS\" CFLAGS=\"$CFLAGS\" \
  2829. CXXFLAGS=\"$CXXFLAGS\" LDFLAGS=\"$LDFLAGS\" LIBS=\"$LIBS\" \
  2830. $passcc $pass_build --with-cygwin"
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5
  2832. $as_echo "$as_me: doconfig = $doconfig" >&6;}
  2833. if test "x$with_sequential" = "xno"
  2834. then
  2835. eval "$doconfig" &
  2836. procids="$procids $!"
  2837. else
  2838. eval "$doconfig"
  2839. fi
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: configuration for cygwin on $target complete" >&5
  2841. $as_echo "$as_me: configuration for cygwin on $target complete" >&6;}
  2842. cd "$abssrcdir"
  2843. }
  2844. csl_inplace_nativewin_build ()
  2845. {
  2846. buildmc=$1
  2847. host=$2
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: CSL inplace for native Windows" >&5
  2849. $as_echo "$as_me: CSL inplace for native Windows" >&6;}
  2850. if test "$with_windows_layout" = "new"
  2851. then
  2852. winver="win64"
  2853. build=`eval "$SHELL $abssrcdir/scripts/findhost.sh intel-pc-windows $ac_configure_args"`
  2854. { $as_echo "$as_me:${as_lineno-$LINENO}: About to configure using $host in $build/$winver" >&5
  2855. $as_echo "$as_me: About to configure using $host in $build/$winver" >&6;}
  2856. mkdir -p "$abssrcdir/cslbuild/$build/$winver"
  2857. cp "$abssrcdir/csl/cslbase/Makefile.windows" "$abssrcdir/cslbuild/$build/Makefile"
  2858. cd "$abssrcdir/cslbuild/$build/$winver"
  2859. else
  2860. build=`eval "$SHELL $abssrcdir/scripts/findhost.sh $target $ac_configure_args"`
  2861. { $as_echo "$as_me:${as_lineno-$LINENO}: About to configure using $host in $build" >&5
  2862. $as_echo "$as_me: About to configure using $host in $build" >&6;}
  2863. mkdir -p "$abssrcdir/cslbuild/$build"
  2864. cd "$abssrcdir/cslbuild/$build"
  2865. fi
  2866. if test "x$CC$CPP$CXX$CXXCPP" != "x"
  2867. then
  2868. passcc="CC=\"$CC\" CPP=\"$CPP\" CXX=\"$CXX\" CXXCPP=\"$CXXCPP\""
  2869. else
  2870. passcc=""
  2871. fi
  2872. { $as_echo "$as_me:${as_lineno-$LINENO}: passcc = $passcc" >&5
  2873. $as_echo "$as_me: passcc = $passcc" >&6;}
  2874. if test "$with_windows_layout" = "new"
  2875. then
  2876. cygextra=
  2877. else
  2878. # The Windows version would like to know where to find cygwin variants
  2879. # at run-time.
  2880. cygextra=
  2881. ed64="s/.*windows/x86_64-pc-cygwin/; s/.*cygwin/x86_64-pc-cygwin/"
  2882. dd64=`echo $build | sed -e "$ed64"`
  2883. cygextra="$cygextra --with-cygbuild64=$abssrcdir/cslbuild/$dd64"
  2884. { $as_echo "$as_me:${as_lineno-$LINENO}: cygextra = $cygextra" >&5
  2885. $as_echo "$as_me: cygextra = $cygextra" >&6;}
  2886. fi
  2887. pass_build="--with-build=\"$build\" --with-pslbuild=\"$pslbuild\""
  2888. doconfig="$SHELL $abssrcdir/configure --config-cache $ac_configure_args \
  2889. CC=\"$CC\" CXX=\"$CXX\" \
  2890. CPPFLAGS=\"$CPPFLAGS\" CFLAGS=\"$CFLAGS\" \
  2891. CXXFLAGS=\"$CXXFLAGS\" LDFLAGS=\"$LDFLAGS\" LIBS=\"$LIBS\" \
  2892. $passcc $cygextra $pass_build --host=$host"
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5
  2894. $as_echo "$as_me: doconfig = $doconfig" >&6;}
  2895. if test "x$with_sequential" = "xno"
  2896. then
  2897. eval "$doconfig" &
  2898. procids="$procids $!"
  2899. else
  2900. eval "$doconfig"
  2901. fi
  2902. { $as_echo "$as_me:${as_lineno-$LINENO}: configuration for $target complete" >&5
  2903. $as_echo "$as_me: configuration for $target complete" >&6;}
  2904. cd "$abssrcdir"
  2905. }
  2906. csl_inplace_windows_build ()
  2907. {
  2908. # If I am on Windows I will configure for variants:
  2909. # x86_64-pc-cygwin
  2910. # x86_64-w64-mingw
  2911. { $as_echo "$as_me:${as_lineno-$LINENO}: Inplace Windows build..." >&5
  2912. $as_echo "$as_me: Inplace Windows build..." >&6;}
  2913. # I am going to suppose that all the compilers I could possibly want
  2914. # are installed. That means I do not need to put in code here to test that!
  2915. { $as_echo "$as_me:${as_lineno-$LINENO}: Configure cygwin64 version" >&5
  2916. $as_echo "$as_me: Configure cygwin64 version" >&6;}
  2917. csl_inplace_cygwin_build "x86_64-pc-cygwin" "--with-cygwin64"
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: Configure windows64 version" >&5
  2919. $as_echo "$as_me: Configure windows64 version" >&6;}
  2920. csl_inplace_nativewin_build "x86_64-pc-windows" "x86_64-w64-mingw32"
  2921. }
  2922. csl_inplace_build ()
  2923. {
  2924. mkdir -p "$abssrcdir/cslbuild"
  2925. # When I configure I will install a default "profile.dat" if there is
  2926. # not one in place already, but the user can always regenerate a newer
  2927. # local version of the profile.
  2928. if test ! -d "$abssrcdir/cslbuild/generated-c" ||
  2929. test ! -f "$abssrcdir/cslbuild/generated-c/profile.dat"
  2930. then
  2931. rm -rf "$abssrcdir/cslbuild/generated-c"
  2932. mkdir -p "$abssrcdir/cslbuild/generated-c"
  2933. cp -r "$abssrcdir/csl/generated-c" "$abssrcdir/cslbuild"
  2934. fi
  2935. # Now I am configuring for CSL and am doing so from the top directory.
  2936. { $as_echo "$as_me:${as_lineno-$LINENO}: CSL in-place build for $build" >&5
  2937. $as_echo "$as_me: CSL in-place build for $build" >&6;}
  2938. case $build in
  2939. *cygwin* | *windows* | *mingw*)
  2940. csl_inplace_windows_build
  2941. ;;
  2942. *)
  2943. # All other platforms come here...
  2944. mkdir -p "$abssrcdir/cslbuild/$build"
  2945. cd "$abssrcdir/cslbuild/$build"
  2946. if test "x$CC$CPP$CXX$CXXCPP" != "x"
  2947. then
  2948. passcc="CC=\"$CC\" CPP=\"$CPP\" CXX=\"$CXX\" CXXCPP=\"$CXXCPP\""
  2949. else
  2950. passcc=""
  2951. fi
  2952. { $as_echo "$as_me:${as_lineno-$LINENO}: passcc = $passcc" >&5
  2953. $as_echo "$as_me: passcc = $passcc" >&6;}
  2954. pass_build="--with-build=\"$build\" --with-pslbuild=\"$pslbuild\""
  2955. doconfig="$SHELL $abssrcdir/configure --config-cache $ac_configure_args \
  2956. CC=\"$CC\" CXX=\"$CXX\" \
  2957. CPPFLAGS=\"$CPPFLAGS\" CFLAGS=\"$CFLAGS\" \
  2958. CXXFLAGS=\"$CXXFLAGS\" LDFLAGS=\"$LDFLAGS\" LIBS=\"$LIBS\" \
  2959. $passcc $pass_build"
  2960. { $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5
  2961. $as_echo "$as_me: doconfig = $doconfig" >&6;}
  2962. eval "$doconfig"
  2963. cd "$abssrcdir"
  2964. ;;
  2965. esac
  2966. }
  2967. psl_inplace_build ()
  2968. {
  2969. { $as_echo "$as_me:${as_lineno-$LINENO}: +++ Will build in $abssrcdir/pslbuild/$build" >&5
  2970. $as_echo "$as_me: +++ Will build in $abssrcdir/pslbuild/$build" >&6;}
  2971. mkdir -p "$abssrcdir/pslbuild/$build"
  2972. cd "$abssrcdir/pslbuild/$build"
  2973. # This passes down any configure arguments to the PSL-specific configuration
  2974. # but at present I do not expect any to be relevant.
  2975. pass_build="--with-build=\"$build\""
  2976. eval "$SHELL $abssrcdir/psl/configure --config-cache $ac_configure_args $pass_build"
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: About to configure crlibm" >&5
  2978. $as_echo "$as_me: About to configure crlibm" >&6;}
  2979. builddir=`pwd`
  2980. mkdir -p crlibm
  2981. cd crlibm
  2982. if test "x$CC$CPP$CXX$CXXCPP" != "x"
  2983. then
  2984. passcc="CC=\"$CC\" CPP=\"$CPP\" CXX=\"$CXX\" CXXCPP=\"$CXXCPP\""
  2985. else
  2986. passcc=""
  2987. fi
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: passcc = $passcc" >&5
  2989. $as_echo "$as_me: passcc = $passcc" >&6;}
  2990. doconfig="$SHELL $abssrcdir/libraries/crlibm/configure --config-cache $filtered \
  2991. $pass_host \
  2992. CPPFLAGS=\"$CPPFLAGS\" \
  2993. CFLAGS=\"$CFLAGS\" \
  2994. CXXFLAGS=\"$CXXFLAGS\" \
  2995. LDFLAGS=\"$LDFLAGS\" \
  2996. $passcc \
  2997. --prefix=\"$builddir\" \
  2998. --libdir=\"$builddir/lib\" \
  2999. --includedir=\"$builddir/include\""
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5
  3001. $as_echo "$as_me: doconfig = $doconfig" >&6;}
  3002. eval "$doconfig"
  3003. cd "$builddir"
  3004. { $as_echo "$as_me:${as_lineno-$LINENO}: About to configure libedit" >&5
  3005. $as_echo "$as_me: About to configure libedit" >&6;}
  3006. mkdir -p libedit
  3007. cd libedit
  3008. doconfig="$SHELL $abssrcdir/libraries/libedit-$LIBEDIT_VERSION/configure --config-cache \
  3009. $nohost \
  3010. CC=\"$CC\" CXX=\"$CXX\" \
  3011. CPPFLAGS=\"$CPPFLAGS\" \
  3012. CFLAGS=\"$CFLAGS\" \
  3013. CXXFLAGS=\"$CXXFLAGS\" \
  3014. LDFLAGS=\"$LDFLAGS\" \
  3015. --enable-widec=yes \
  3016. --prefix=\"$builddir\" \
  3017. --libdir=\"$builddir/lib\" \
  3018. --includedir=\"$builddir/include\""
  3019. { $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5
  3020. $as_echo "$as_me: doconfig = $doconfig" >&6;}
  3021. eval "$doconfig"
  3022. cd "$builddir"
  3023. ln -f -s $abssrcdir/libraries/wineditline .
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: About to configure redfront" >&5
  3025. $as_echo "$as_me: About to configure redfront" >&6;}
  3026. mkdir -p redfront
  3027. cd redfront
  3028. doconfig="$SHELL $abssrcdir/generic/newfront/configure --config-cache $nohost \
  3029. CC=\"$CC\" CXX=\"$CXX\" \
  3030. CPPFLAGS=\"$CPPFLAGS\" \
  3031. CFLAGS=\"$CFLAGS\" \
  3032. CXXFLAGS=\"$CXXFLAGS\" \
  3033. LDFLAGS=\"$LDFLAGS\" \
  3034. --prefix=\"$builddir\" \
  3035. --libdir=\"$builddir/lib\" \
  3036. --includedir=\"$builddir/include\""
  3037. { $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5
  3038. $as_echo "$as_me: doconfig = $doconfig" >&6;}
  3039. eval "$doconfig"
  3040. cd "$builddir"
  3041. }
  3042. # There are many configure options that are valid or relevant at the
  3043. # top level but are not needed for sub-configure calls
  3044. filtered=`$abssrcdir/scripts/filter.sh "$ac_configure_args"`
  3045. nohost=`$abssrcdir/scripts/nohost.sh "$ac_configure_args"`
  3046. case $inplace in
  3047. yes)
  3048. # Here somebody has run the "configure" script within the top-level
  3049. # source directory. I really want the build to take place in a
  3050. # host-specific subdirectory so I will divert things!
  3051. # When testing if --with-csl etc got passed I should check that the option
  3052. # NO was NOT given rather than that the option yes was.
  3053. if test "x$with_csl" != "xno"
  3054. then
  3055. csl_inplace_build
  3056. fi
  3057. if test "x$with_psl" != "xno"
  3058. then
  3059. psl_inplace_build
  3060. fi
  3061. wait $procids
  3062. printf "All sub-tasks should have completed\n"
  3063. exit 0
  3064. ;;
  3065. *)
  3066. { $as_echo "$as_me:${as_lineno-$LINENO}: +++ standard build case, abssrcdir = $abssrcdir = \"$abssrcdir\"" >&5
  3067. $as_echo "$as_me: +++ standard build case, abssrcdir = $abssrcdir = \"$abssrcdir\"" >&6;}
  3068. ;;
  3069. esac
  3070. # This is where the main bit of this script starts.
  3071. am__api_version='1.15'
  3072. # Find a good install program. We prefer a C program (faster),
  3073. # so one script is as good as another. But avoid the broken or
  3074. # incompatible versions:
  3075. # SysV /etc/install, /usr/sbin/install
  3076. # SunOS /usr/etc/install
  3077. # IRIX /sbin/install
  3078. # AIX /bin/install
  3079. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3080. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3081. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3082. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3083. # OS/2's system install, which has a completely different semantic
  3084. # ./install, which can be erroneously created by make from ./install.sh.
  3085. # Reject install programs that cannot install multiple files.
  3086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3087. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3088. if test -z "$INSTALL"; then
  3089. if ${ac_cv_path_install+:} false; then :
  3090. $as_echo_n "(cached) " >&6
  3091. else
  3092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3093. for as_dir in $PATH
  3094. do
  3095. IFS=$as_save_IFS
  3096. test -z "$as_dir" && as_dir=.
  3097. # Account for people who put trailing slashes in PATH elements.
  3098. case $as_dir/ in #((
  3099. ./ | .// | /[cC]/* | \
  3100. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3101. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3102. /usr/ucb/* ) ;;
  3103. *)
  3104. # OSF1 and SCO ODT 3.0 have their own names for install.
  3105. # Don't use installbsd from OSF since it installs stuff as root
  3106. # by default.
  3107. for ac_prog in ginstall scoinst install; do
  3108. for ac_exec_ext in '' $ac_executable_extensions; do
  3109. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3110. if test $ac_prog = install &&
  3111. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3112. # AIX install. It has an incompatible calling convention.
  3113. :
  3114. elif test $ac_prog = install &&
  3115. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3116. # program-specific install script used by HP pwplus--don't use.
  3117. :
  3118. else
  3119. rm -rf conftest.one conftest.two conftest.dir
  3120. echo one > conftest.one
  3121. echo two > conftest.two
  3122. mkdir conftest.dir
  3123. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3124. test -s conftest.one && test -s conftest.two &&
  3125. test -s conftest.dir/conftest.one &&
  3126. test -s conftest.dir/conftest.two
  3127. then
  3128. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3129. break 3
  3130. fi
  3131. fi
  3132. fi
  3133. done
  3134. done
  3135. ;;
  3136. esac
  3137. done
  3138. IFS=$as_save_IFS
  3139. rm -rf conftest.one conftest.two conftest.dir
  3140. fi
  3141. if test "${ac_cv_path_install+set}" = set; then
  3142. INSTALL=$ac_cv_path_install
  3143. else
  3144. # As a last resort, use the slow shell script. Don't cache a
  3145. # value for INSTALL within a source directory, because that will
  3146. # break other packages using the cache if that directory is
  3147. # removed, or if the value is a relative name.
  3148. INSTALL=$ac_install_sh
  3149. fi
  3150. fi
  3151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3152. $as_echo "$INSTALL" >&6; }
  3153. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3154. # It thinks the first close brace ends the variable substitution.
  3155. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3156. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3157. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3159. $as_echo_n "checking whether build environment is sane... " >&6; }
  3160. # Reject unsafe characters in $srcdir or the absolute working directory
  3161. # name. Accept space and tab only in the latter.
  3162. am_lf='
  3163. '
  3164. case `pwd` in
  3165. *[\\\"\#\$\&\'\`$am_lf]*)
  3166. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3167. esac
  3168. case $srcdir in
  3169. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3170. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3171. esac
  3172. # Do 'set' in a subshell so we don't clobber the current shell's
  3173. # arguments. Must try -L first in case configure is actually a
  3174. # symlink; some systems play weird games with the mod time of symlinks
  3175. # (eg FreeBSD returns the mod time of the symlink's containing
  3176. # directory).
  3177. if (
  3178. am_has_slept=no
  3179. for am_try in 1 2; do
  3180. echo "timestamp, slept: $am_has_slept" > conftest.file
  3181. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3182. if test "$*" = "X"; then
  3183. # -L didn't work.
  3184. set X `ls -t "$srcdir/configure" conftest.file`
  3185. fi
  3186. if test "$*" != "X $srcdir/configure conftest.file" \
  3187. && test "$*" != "X conftest.file $srcdir/configure"; then
  3188. # If neither matched, then we have a broken ls. This can happen
  3189. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3190. # broken ls alias from the environment. This has actually
  3191. # happened. Such a system could not be considered "sane".
  3192. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3193. alias in your environment" "$LINENO" 5
  3194. fi
  3195. if test "$2" = conftest.file || test $am_try -eq 2; then
  3196. break
  3197. fi
  3198. # Just in case.
  3199. sleep 1
  3200. am_has_slept=yes
  3201. done
  3202. test "$2" = conftest.file
  3203. )
  3204. then
  3205. # Ok.
  3206. :
  3207. else
  3208. as_fn_error $? "newly created file is older than distributed files!
  3209. Check your system clock" "$LINENO" 5
  3210. fi
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3212. $as_echo "yes" >&6; }
  3213. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3214. # generated files are strictly newer.
  3215. am_sleep_pid=
  3216. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3217. ( sleep 1 ) &
  3218. am_sleep_pid=$!
  3219. fi
  3220. rm -f conftest.file
  3221. test "$program_prefix" != NONE &&
  3222. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3223. # Use a double $ so make ignores it.
  3224. test "$program_suffix" != NONE &&
  3225. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3226. # Double any \ or $.
  3227. # By default was `s,x,x', remove it if useless.
  3228. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3229. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3230. # Expand $ac_aux_dir to an absolute path.
  3231. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3232. if test x"${MISSING+set}" != xset; then
  3233. case $am_aux_dir in
  3234. *\ * | *\ *)
  3235. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3236. *)
  3237. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3238. esac
  3239. fi
  3240. # Use eval to expand $SHELL
  3241. if eval "$MISSING --is-lightweight"; then
  3242. am_missing_run="$MISSING "
  3243. else
  3244. am_missing_run=
  3245. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3246. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3247. fi
  3248. if test x"${install_sh+set}" != xset; then
  3249. case $am_aux_dir in
  3250. *\ * | *\ *)
  3251. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3252. *)
  3253. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3254. esac
  3255. fi
  3256. # Installed binaries are usually stripped using 'strip' when the user
  3257. # run "make install-strip". However 'strip' might not be the right
  3258. # tool to use in cross-compilation environments, therefore Automake
  3259. # will honor the 'STRIP' environment variable to overrule this program.
  3260. if test "$cross_compiling" != no; then
  3261. if test -n "$ac_tool_prefix"; then
  3262. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3263. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3265. $as_echo_n "checking for $ac_word... " >&6; }
  3266. if ${ac_cv_prog_STRIP+:} false; then :
  3267. $as_echo_n "(cached) " >&6
  3268. else
  3269. if test -n "$STRIP"; then
  3270. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3271. else
  3272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3273. for as_dir in $PATH
  3274. do
  3275. IFS=$as_save_IFS
  3276. test -z "$as_dir" && as_dir=.
  3277. for ac_exec_ext in '' $ac_executable_extensions; do
  3278. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3279. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3280. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3281. break 2
  3282. fi
  3283. done
  3284. done
  3285. IFS=$as_save_IFS
  3286. fi
  3287. fi
  3288. STRIP=$ac_cv_prog_STRIP
  3289. if test -n "$STRIP"; then
  3290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3291. $as_echo "$STRIP" >&6; }
  3292. else
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3294. $as_echo "no" >&6; }
  3295. fi
  3296. fi
  3297. if test -z "$ac_cv_prog_STRIP"; then
  3298. ac_ct_STRIP=$STRIP
  3299. # Extract the first word of "strip", so it can be a program name with args.
  3300. set dummy strip; ac_word=$2
  3301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3302. $as_echo_n "checking for $ac_word... " >&6; }
  3303. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3304. $as_echo_n "(cached) " >&6
  3305. else
  3306. if test -n "$ac_ct_STRIP"; then
  3307. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3308. else
  3309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3310. for as_dir in $PATH
  3311. do
  3312. IFS=$as_save_IFS
  3313. test -z "$as_dir" && as_dir=.
  3314. for ac_exec_ext in '' $ac_executable_extensions; do
  3315. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3316. ac_cv_prog_ac_ct_STRIP="strip"
  3317. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3318. break 2
  3319. fi
  3320. done
  3321. done
  3322. IFS=$as_save_IFS
  3323. fi
  3324. fi
  3325. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3326. if test -n "$ac_ct_STRIP"; then
  3327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3328. $as_echo "$ac_ct_STRIP" >&6; }
  3329. else
  3330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3331. $as_echo "no" >&6; }
  3332. fi
  3333. if test "x$ac_ct_STRIP" = x; then
  3334. STRIP=":"
  3335. else
  3336. case $cross_compiling:$ac_tool_warned in
  3337. yes:)
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3339. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3340. ac_tool_warned=yes ;;
  3341. esac
  3342. STRIP=$ac_ct_STRIP
  3343. fi
  3344. else
  3345. STRIP="$ac_cv_prog_STRIP"
  3346. fi
  3347. fi
  3348. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3350. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3351. if test -z "$MKDIR_P"; then
  3352. if ${ac_cv_path_mkdir+:} false; then :
  3353. $as_echo_n "(cached) " >&6
  3354. else
  3355. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3356. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3357. do
  3358. IFS=$as_save_IFS
  3359. test -z "$as_dir" && as_dir=.
  3360. for ac_prog in mkdir gmkdir; do
  3361. for ac_exec_ext in '' $ac_executable_extensions; do
  3362. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3363. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3364. 'mkdir (GNU coreutils) '* | \
  3365. 'mkdir (coreutils) '* | \
  3366. 'mkdir (fileutils) '4.1*)
  3367. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3368. break 3;;
  3369. esac
  3370. done
  3371. done
  3372. done
  3373. IFS=$as_save_IFS
  3374. fi
  3375. test -d ./--version && rmdir ./--version
  3376. if test "${ac_cv_path_mkdir+set}" = set; then
  3377. MKDIR_P="$ac_cv_path_mkdir -p"
  3378. else
  3379. # As a last resort, use the slow shell script. Don't cache a
  3380. # value for MKDIR_P within a source directory, because that will
  3381. # break other packages using the cache if that directory is
  3382. # removed, or if the value is a relative name.
  3383. MKDIR_P="$ac_install_sh -d"
  3384. fi
  3385. fi
  3386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3387. $as_echo "$MKDIR_P" >&6; }
  3388. for ac_prog in gawk mawk nawk awk
  3389. do
  3390. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3391. set dummy $ac_prog; ac_word=$2
  3392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3393. $as_echo_n "checking for $ac_word... " >&6; }
  3394. if ${ac_cv_prog_AWK+:} false; then :
  3395. $as_echo_n "(cached) " >&6
  3396. else
  3397. if test -n "$AWK"; then
  3398. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3399. else
  3400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3401. for as_dir in $PATH
  3402. do
  3403. IFS=$as_save_IFS
  3404. test -z "$as_dir" && as_dir=.
  3405. for ac_exec_ext in '' $ac_executable_extensions; do
  3406. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3407. ac_cv_prog_AWK="$ac_prog"
  3408. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3409. break 2
  3410. fi
  3411. done
  3412. done
  3413. IFS=$as_save_IFS
  3414. fi
  3415. fi
  3416. AWK=$ac_cv_prog_AWK
  3417. if test -n "$AWK"; then
  3418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3419. $as_echo "$AWK" >&6; }
  3420. else
  3421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3422. $as_echo "no" >&6; }
  3423. fi
  3424. test -n "$AWK" && break
  3425. done
  3426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3427. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3428. set x ${MAKE-make}
  3429. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3430. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3431. $as_echo_n "(cached) " >&6
  3432. else
  3433. cat >conftest.make <<\_ACEOF
  3434. SHELL = /bin/sh
  3435. all:
  3436. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3437. _ACEOF
  3438. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3439. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3440. *@@@%%%=?*=@@@%%%*)
  3441. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3442. *)
  3443. eval ac_cv_prog_make_${ac_make}_set=no;;
  3444. esac
  3445. rm -f conftest.make
  3446. fi
  3447. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3449. $as_echo "yes" >&6; }
  3450. SET_MAKE=
  3451. else
  3452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3453. $as_echo "no" >&6; }
  3454. SET_MAKE="MAKE=${MAKE-make}"
  3455. fi
  3456. rm -rf .tst 2>/dev/null
  3457. mkdir .tst 2>/dev/null
  3458. if test -d .tst; then
  3459. am__leading_dot=.
  3460. else
  3461. am__leading_dot=_
  3462. fi
  3463. rmdir .tst 2>/dev/null
  3464. # Check whether --enable-silent-rules was given.
  3465. if test "${enable_silent_rules+set}" = set; then :
  3466. enableval=$enable_silent_rules;
  3467. fi
  3468. case $enable_silent_rules in # (((
  3469. yes) AM_DEFAULT_VERBOSITY=0;;
  3470. no) AM_DEFAULT_VERBOSITY=1;;
  3471. *) AM_DEFAULT_VERBOSITY=1;;
  3472. esac
  3473. am_make=${MAKE-make}
  3474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3475. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3476. if ${am_cv_make_support_nested_variables+:} false; then :
  3477. $as_echo_n "(cached) " >&6
  3478. else
  3479. if $as_echo 'TRUE=$(BAR$(V))
  3480. BAR0=false
  3481. BAR1=true
  3482. V=1
  3483. am__doit:
  3484. @$(TRUE)
  3485. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3486. am_cv_make_support_nested_variables=yes
  3487. else
  3488. am_cv_make_support_nested_variables=no
  3489. fi
  3490. fi
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3492. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3493. if test $am_cv_make_support_nested_variables = yes; then
  3494. AM_V='$(V)'
  3495. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3496. else
  3497. AM_V=$AM_DEFAULT_VERBOSITY
  3498. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3499. fi
  3500. AM_BACKSLASH='\'
  3501. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3502. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3503. # is not polluted with repeated "-I."
  3504. am__isrc=' -I$(srcdir)'
  3505. # test to see if srcdir already configured
  3506. if test -f $srcdir/config.status; then
  3507. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3508. fi
  3509. fi
  3510. # test whether we have cygpath
  3511. if test -z "$CYGPATH_W"; then
  3512. if (cygpath --version) >/dev/null 2>/dev/null; then
  3513. CYGPATH_W='cygpath -w'
  3514. else
  3515. CYGPATH_W=echo
  3516. fi
  3517. fi
  3518. # Define the identity of the package.
  3519. PACKAGE='reduce'
  3520. VERSION='from SourceForge'
  3521. cat >>confdefs.h <<_ACEOF
  3522. #define PACKAGE "$PACKAGE"
  3523. _ACEOF
  3524. cat >>confdefs.h <<_ACEOF
  3525. #define VERSION "$VERSION"
  3526. _ACEOF
  3527. # Some tools Automake needs.
  3528. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3529. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3530. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3531. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3532. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3533. # For better backward compatibility. To be removed once Automake 1.9.x
  3534. # dies out for good. For more background, see:
  3535. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3536. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3537. mkdir_p='$(MKDIR_P)'
  3538. # We need awk for the "check" target (and possibly the TAP driver). The
  3539. # system "awk" is bad on some platforms.
  3540. # Always define AMTAR for backward compatibility. Yes, it's still used
  3541. # in the wild :-( We should find a proper way to deprecate it ...
  3542. AMTAR='$${TAR-tar}'
  3543. # We'll loop over all known methods to create a tar archive until one works.
  3544. _am_tools='gnutar pax cpio none'
  3545. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3546. # POSIX will say in a future version that running "rm -f" with no argument
  3547. # is OK; and we want to be able to make that assumption in our Makefile
  3548. # recipes. So use an aggressive probe to check that the usage we want is
  3549. # actually supported "in the wild" to an acceptable degree.
  3550. # See automake bug#10828.
  3551. # To make any issue more visible, cause the running configure to be aborted
  3552. # by default if the 'rm' program in use doesn't match our expectations; the
  3553. # user can still override this though.
  3554. if rm -f && rm -fr && rm -rf; then : OK; else
  3555. cat >&2 <<'END'
  3556. Oops!
  3557. Your 'rm' program seems unable to run without file operands specified
  3558. on the command line, even when the '-f' option is present. This is contrary
  3559. to the behaviour of most rm programs out there, and not conforming with
  3560. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3561. Please tell bug-automake@gnu.org about your system, including the value
  3562. of your $PATH and any error possibly output before this message. This
  3563. can help us improve future automake versions.
  3564. END
  3565. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3566. echo 'Configuration will proceed anyway, since you have set the' >&2
  3567. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3568. echo >&2
  3569. else
  3570. cat >&2 <<'END'
  3571. Aborting the configuration process, to ensure you take notice of the issue.
  3572. You can download and install GNU coreutils to get an 'rm' implementation
  3573. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3574. If you want to complete the configuration process using your problematic
  3575. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3576. to "yes", and re-run configure.
  3577. END
  3578. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3579. fi
  3580. fi
  3581. case `pwd` in
  3582. *\ * | *\ *)
  3583. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3584. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3585. esac
  3586. macro_version='2.4.6'
  3587. macro_revision='2.4.6'
  3588. ltmain=$ac_aux_dir/ltmain.sh
  3589. # Backslashify metacharacters that are still active within
  3590. # double-quoted strings.
  3591. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3592. # Same as above, but do not quote variable references.
  3593. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3594. # Sed substitution to delay expansion of an escaped shell variable in a
  3595. # double_quote_subst'ed string.
  3596. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3597. # Sed substitution to delay expansion of an escaped single quote.
  3598. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3599. # Sed substitution to avoid accidental globbing in evaled expressions
  3600. no_glob_subst='s/\*/\\\*/g'
  3601. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3602. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3603. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3605. $as_echo_n "checking how to print strings... " >&6; }
  3606. # Test print first, because it will be a builtin if present.
  3607. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3608. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3609. ECHO='print -r --'
  3610. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3611. ECHO='printf %s\n'
  3612. else
  3613. # Use this function as a fallback that always works.
  3614. func_fallback_echo ()
  3615. {
  3616. eval 'cat <<_LTECHO_EOF
  3617. $1
  3618. _LTECHO_EOF'
  3619. }
  3620. ECHO='func_fallback_echo'
  3621. fi
  3622. # func_echo_all arg...
  3623. # Invoke $ECHO with all args, space-separated.
  3624. func_echo_all ()
  3625. {
  3626. $ECHO ""
  3627. }
  3628. case $ECHO in
  3629. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3630. $as_echo "printf" >&6; } ;;
  3631. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3632. $as_echo "print -r" >&6; } ;;
  3633. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3634. $as_echo "cat" >&6; } ;;
  3635. esac
  3636. DEPDIR="${am__leading_dot}deps"
  3637. ac_config_commands="$ac_config_commands depfiles"
  3638. am_make=${MAKE-make}
  3639. cat > confinc << 'END'
  3640. am__doit:
  3641. @echo this is the am__doit target
  3642. .PHONY: am__doit
  3643. END
  3644. # If we don't find an include directive, just comment out the code.
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3646. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3647. am__include="#"
  3648. am__quote=
  3649. _am_result=none
  3650. # First try GNU make style include.
  3651. echo "include confinc" > confmf
  3652. # Ignore all kinds of additional output from 'make'.
  3653. case `$am_make -s -f confmf 2> /dev/null` in #(
  3654. *the\ am__doit\ target*)
  3655. am__include=include
  3656. am__quote=
  3657. _am_result=GNU
  3658. ;;
  3659. esac
  3660. # Now try BSD make style include.
  3661. if test "$am__include" = "#"; then
  3662. echo '.include "confinc"' > confmf
  3663. case `$am_make -s -f confmf 2> /dev/null` in #(
  3664. *the\ am__doit\ target*)
  3665. am__include=.include
  3666. am__quote="\""
  3667. _am_result=BSD
  3668. ;;
  3669. esac
  3670. fi
  3671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3672. $as_echo "$_am_result" >&6; }
  3673. rm -f confinc confmf
  3674. # Check whether --enable-dependency-tracking was given.
  3675. if test "${enable_dependency_tracking+set}" = set; then :
  3676. enableval=$enable_dependency_tracking;
  3677. fi
  3678. if test "x$enable_dependency_tracking" != xno; then
  3679. am_depcomp="$ac_aux_dir/depcomp"
  3680. AMDEPBACKSLASH='\'
  3681. am__nodep='_no'
  3682. fi
  3683. if test "x$enable_dependency_tracking" != xno; then
  3684. AMDEP_TRUE=
  3685. AMDEP_FALSE='#'
  3686. else
  3687. AMDEP_TRUE='#'
  3688. AMDEP_FALSE=
  3689. fi
  3690. ac_ext=c
  3691. ac_cpp='$CPP $CPPFLAGS'
  3692. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3693. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3694. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3695. if test -n "$ac_tool_prefix"; then
  3696. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3697. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3699. $as_echo_n "checking for $ac_word... " >&6; }
  3700. if ${ac_cv_prog_CC+:} false; then :
  3701. $as_echo_n "(cached) " >&6
  3702. else
  3703. if test -n "$CC"; then
  3704. ac_cv_prog_CC="$CC" # Let the user override the test.
  3705. else
  3706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3707. for as_dir in $PATH
  3708. do
  3709. IFS=$as_save_IFS
  3710. test -z "$as_dir" && as_dir=.
  3711. for ac_exec_ext in '' $ac_executable_extensions; do
  3712. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3713. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3714. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3715. break 2
  3716. fi
  3717. done
  3718. done
  3719. IFS=$as_save_IFS
  3720. fi
  3721. fi
  3722. CC=$ac_cv_prog_CC
  3723. if test -n "$CC"; then
  3724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3725. $as_echo "$CC" >&6; }
  3726. else
  3727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3728. $as_echo "no" >&6; }
  3729. fi
  3730. fi
  3731. if test -z "$ac_cv_prog_CC"; then
  3732. ac_ct_CC=$CC
  3733. # Extract the first word of "gcc", so it can be a program name with args.
  3734. set dummy gcc; ac_word=$2
  3735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3736. $as_echo_n "checking for $ac_word... " >&6; }
  3737. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3738. $as_echo_n "(cached) " >&6
  3739. else
  3740. if test -n "$ac_ct_CC"; then
  3741. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3742. else
  3743. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3744. for as_dir in $PATH
  3745. do
  3746. IFS=$as_save_IFS
  3747. test -z "$as_dir" && as_dir=.
  3748. for ac_exec_ext in '' $ac_executable_extensions; do
  3749. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3750. ac_cv_prog_ac_ct_CC="gcc"
  3751. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3752. break 2
  3753. fi
  3754. done
  3755. done
  3756. IFS=$as_save_IFS
  3757. fi
  3758. fi
  3759. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3760. if test -n "$ac_ct_CC"; then
  3761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3762. $as_echo "$ac_ct_CC" >&6; }
  3763. else
  3764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3765. $as_echo "no" >&6; }
  3766. fi
  3767. if test "x$ac_ct_CC" = x; then
  3768. CC=""
  3769. else
  3770. case $cross_compiling:$ac_tool_warned in
  3771. yes:)
  3772. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3773. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3774. ac_tool_warned=yes ;;
  3775. esac
  3776. CC=$ac_ct_CC
  3777. fi
  3778. else
  3779. CC="$ac_cv_prog_CC"
  3780. fi
  3781. if test -z "$CC"; then
  3782. if test -n "$ac_tool_prefix"; then
  3783. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3784. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3786. $as_echo_n "checking for $ac_word... " >&6; }
  3787. if ${ac_cv_prog_CC+:} false; then :
  3788. $as_echo_n "(cached) " >&6
  3789. else
  3790. if test -n "$CC"; then
  3791. ac_cv_prog_CC="$CC" # Let the user override the test.
  3792. else
  3793. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3794. for as_dir in $PATH
  3795. do
  3796. IFS=$as_save_IFS
  3797. test -z "$as_dir" && as_dir=.
  3798. for ac_exec_ext in '' $ac_executable_extensions; do
  3799. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3800. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3801. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3802. break 2
  3803. fi
  3804. done
  3805. done
  3806. IFS=$as_save_IFS
  3807. fi
  3808. fi
  3809. CC=$ac_cv_prog_CC
  3810. if test -n "$CC"; then
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3812. $as_echo "$CC" >&6; }
  3813. else
  3814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3815. $as_echo "no" >&6; }
  3816. fi
  3817. fi
  3818. fi
  3819. if test -z "$CC"; then
  3820. # Extract the first word of "cc", so it can be a program name with args.
  3821. set dummy cc; ac_word=$2
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3823. $as_echo_n "checking for $ac_word... " >&6; }
  3824. if ${ac_cv_prog_CC+:} false; then :
  3825. $as_echo_n "(cached) " >&6
  3826. else
  3827. if test -n "$CC"; then
  3828. ac_cv_prog_CC="$CC" # Let the user override the test.
  3829. else
  3830. ac_prog_rejected=no
  3831. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3832. for as_dir in $PATH
  3833. do
  3834. IFS=$as_save_IFS
  3835. test -z "$as_dir" && as_dir=.
  3836. for ac_exec_ext in '' $ac_executable_extensions; do
  3837. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3838. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3839. ac_prog_rejected=yes
  3840. continue
  3841. fi
  3842. ac_cv_prog_CC="cc"
  3843. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3844. break 2
  3845. fi
  3846. done
  3847. done
  3848. IFS=$as_save_IFS
  3849. if test $ac_prog_rejected = yes; then
  3850. # We found a bogon in the path, so make sure we never use it.
  3851. set dummy $ac_cv_prog_CC
  3852. shift
  3853. if test $# != 0; then
  3854. # We chose a different compiler from the bogus one.
  3855. # However, it has the same basename, so the bogon will be chosen
  3856. # first if we set CC to just the basename; use the full file name.
  3857. shift
  3858. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3859. fi
  3860. fi
  3861. fi
  3862. fi
  3863. CC=$ac_cv_prog_CC
  3864. if test -n "$CC"; then
  3865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3866. $as_echo "$CC" >&6; }
  3867. else
  3868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3869. $as_echo "no" >&6; }
  3870. fi
  3871. fi
  3872. if test -z "$CC"; then
  3873. if test -n "$ac_tool_prefix"; then
  3874. for ac_prog in cl.exe
  3875. do
  3876. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3877. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3879. $as_echo_n "checking for $ac_word... " >&6; }
  3880. if ${ac_cv_prog_CC+:} false; then :
  3881. $as_echo_n "(cached) " >&6
  3882. else
  3883. if test -n "$CC"; then
  3884. ac_cv_prog_CC="$CC" # Let the user override the test.
  3885. else
  3886. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3887. for as_dir in $PATH
  3888. do
  3889. IFS=$as_save_IFS
  3890. test -z "$as_dir" && as_dir=.
  3891. for ac_exec_ext in '' $ac_executable_extensions; do
  3892. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3893. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3894. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3895. break 2
  3896. fi
  3897. done
  3898. done
  3899. IFS=$as_save_IFS
  3900. fi
  3901. fi
  3902. CC=$ac_cv_prog_CC
  3903. if test -n "$CC"; then
  3904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3905. $as_echo "$CC" >&6; }
  3906. else
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3908. $as_echo "no" >&6; }
  3909. fi
  3910. test -n "$CC" && break
  3911. done
  3912. fi
  3913. if test -z "$CC"; then
  3914. ac_ct_CC=$CC
  3915. for ac_prog in cl.exe
  3916. do
  3917. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3918. set dummy $ac_prog; ac_word=$2
  3919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3920. $as_echo_n "checking for $ac_word... " >&6; }
  3921. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3922. $as_echo_n "(cached) " >&6
  3923. else
  3924. if test -n "$ac_ct_CC"; then
  3925. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3926. else
  3927. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3928. for as_dir in $PATH
  3929. do
  3930. IFS=$as_save_IFS
  3931. test -z "$as_dir" && as_dir=.
  3932. for ac_exec_ext in '' $ac_executable_extensions; do
  3933. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3934. ac_cv_prog_ac_ct_CC="$ac_prog"
  3935. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3936. break 2
  3937. fi
  3938. done
  3939. done
  3940. IFS=$as_save_IFS
  3941. fi
  3942. fi
  3943. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3944. if test -n "$ac_ct_CC"; then
  3945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3946. $as_echo "$ac_ct_CC" >&6; }
  3947. else
  3948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3949. $as_echo "no" >&6; }
  3950. fi
  3951. test -n "$ac_ct_CC" && break
  3952. done
  3953. if test "x$ac_ct_CC" = x; then
  3954. CC=""
  3955. else
  3956. case $cross_compiling:$ac_tool_warned in
  3957. yes:)
  3958. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3959. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3960. ac_tool_warned=yes ;;
  3961. esac
  3962. CC=$ac_ct_CC
  3963. fi
  3964. fi
  3965. fi
  3966. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3967. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3968. as_fn_error $? "no acceptable C compiler found in \$PATH
  3969. See \`config.log' for more details" "$LINENO" 5; }
  3970. # Provide some information about the compiler.
  3971. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3972. set X $ac_compile
  3973. ac_compiler=$2
  3974. for ac_option in --version -v -V -qversion; do
  3975. { { ac_try="$ac_compiler $ac_option >&5"
  3976. case "(($ac_try" in
  3977. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3978. *) ac_try_echo=$ac_try;;
  3979. esac
  3980. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3981. $as_echo "$ac_try_echo"; } >&5
  3982. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3983. ac_status=$?
  3984. if test -s conftest.err; then
  3985. sed '10a\
  3986. ... rest of stderr output deleted ...
  3987. 10q' conftest.err >conftest.er1
  3988. cat conftest.er1 >&5
  3989. fi
  3990. rm -f conftest.er1 conftest.err
  3991. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3992. test $ac_status = 0; }
  3993. done
  3994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3995. /* end confdefs.h. */
  3996. int
  3997. main ()
  3998. {
  3999. ;
  4000. return 0;
  4001. }
  4002. _ACEOF
  4003. ac_clean_files_save=$ac_clean_files
  4004. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  4005. # Try to create an executable without -o first, disregard a.out.
  4006. # It will help us diagnose broken compilers, and finding out an intuition
  4007. # of exeext.
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4009. $as_echo_n "checking whether the C compiler works... " >&6; }
  4010. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  4011. # The possible output files:
  4012. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4013. ac_rmfiles=
  4014. for ac_file in $ac_files
  4015. do
  4016. case $ac_file in
  4017. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4018. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4019. esac
  4020. done
  4021. rm -f $ac_rmfiles
  4022. if { { ac_try="$ac_link_default"
  4023. case "(($ac_try" in
  4024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4025. *) ac_try_echo=$ac_try;;
  4026. esac
  4027. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4028. $as_echo "$ac_try_echo"; } >&5
  4029. (eval "$ac_link_default") 2>&5
  4030. ac_status=$?
  4031. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4032. test $ac_status = 0; }; then :
  4033. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  4034. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  4035. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  4036. # so that the user can short-circuit this test for compilers unknown to
  4037. # Autoconf.
  4038. for ac_file in $ac_files ''
  4039. do
  4040. test -f "$ac_file" || continue
  4041. case $ac_file in
  4042. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  4043. ;;
  4044. [ab].out )
  4045. # We found the default executable, but exeext='' is most
  4046. # certainly right.
  4047. break;;
  4048. *.* )
  4049. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  4050. then :; else
  4051. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4052. fi
  4053. # We set ac_cv_exeext here because the later test for it is not
  4054. # safe: cross compilers may not add the suffix if given an `-o'
  4055. # argument, so we may need to know it at that point already.
  4056. # Even if this section looks crufty: it has the advantage of
  4057. # actually working.
  4058. break;;
  4059. * )
  4060. break;;
  4061. esac
  4062. done
  4063. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4064. else
  4065. ac_file=''
  4066. fi
  4067. if test -z "$ac_file"; then :
  4068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4069. $as_echo "no" >&6; }
  4070. $as_echo "$as_me: failed program was:" >&5
  4071. sed 's/^/| /' conftest.$ac_ext >&5
  4072. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4073. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4074. as_fn_error 77 "C compiler cannot create executables
  4075. See \`config.log' for more details" "$LINENO" 5; }
  4076. else
  4077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4078. $as_echo "yes" >&6; }
  4079. fi
  4080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4081. $as_echo_n "checking for C compiler default output file name... " >&6; }
  4082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4083. $as_echo "$ac_file" >&6; }
  4084. ac_exeext=$ac_cv_exeext
  4085. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4086. ac_clean_files=$ac_clean_files_save
  4087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4088. $as_echo_n "checking for suffix of executables... " >&6; }
  4089. if { { ac_try="$ac_link"
  4090. case "(($ac_try" in
  4091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4092. *) ac_try_echo=$ac_try;;
  4093. esac
  4094. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4095. $as_echo "$ac_try_echo"; } >&5
  4096. (eval "$ac_link") 2>&5
  4097. ac_status=$?
  4098. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4099. test $ac_status = 0; }; then :
  4100. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4101. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4102. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4103. # `rm'.
  4104. for ac_file in conftest.exe conftest conftest.*; do
  4105. test -f "$ac_file" || continue
  4106. case $ac_file in
  4107. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4108. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4109. break;;
  4110. * ) break;;
  4111. esac
  4112. done
  4113. else
  4114. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4115. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4116. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4117. See \`config.log' for more details" "$LINENO" 5; }
  4118. fi
  4119. rm -f conftest conftest$ac_cv_exeext
  4120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4121. $as_echo "$ac_cv_exeext" >&6; }
  4122. rm -f conftest.$ac_ext
  4123. EXEEXT=$ac_cv_exeext
  4124. ac_exeext=$EXEEXT
  4125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4126. /* end confdefs.h. */
  4127. #include <stdio.h>
  4128. int
  4129. main ()
  4130. {
  4131. FILE *f = fopen ("conftest.out", "w");
  4132. return ferror (f) || fclose (f) != 0;
  4133. ;
  4134. return 0;
  4135. }
  4136. _ACEOF
  4137. ac_clean_files="$ac_clean_files conftest.out"
  4138. # Check that the compiler produces executables we can run. If not, either
  4139. # the compiler is broken, or we cross compile.
  4140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4141. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4142. if test "$cross_compiling" != yes; then
  4143. { { ac_try="$ac_link"
  4144. case "(($ac_try" in
  4145. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4146. *) ac_try_echo=$ac_try;;
  4147. esac
  4148. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4149. $as_echo "$ac_try_echo"; } >&5
  4150. (eval "$ac_link") 2>&5
  4151. ac_status=$?
  4152. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4153. test $ac_status = 0; }
  4154. if { ac_try='./conftest$ac_cv_exeext'
  4155. { { case "(($ac_try" in
  4156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4157. *) ac_try_echo=$ac_try;;
  4158. esac
  4159. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4160. $as_echo "$ac_try_echo"; } >&5
  4161. (eval "$ac_try") 2>&5
  4162. ac_status=$?
  4163. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4164. test $ac_status = 0; }; }; then
  4165. cross_compiling=no
  4166. else
  4167. if test "$cross_compiling" = maybe; then
  4168. cross_compiling=yes
  4169. else
  4170. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4171. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4172. as_fn_error $? "cannot run C compiled programs.
  4173. If you meant to cross compile, use \`--host'.
  4174. See \`config.log' for more details" "$LINENO" 5; }
  4175. fi
  4176. fi
  4177. fi
  4178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4179. $as_echo "$cross_compiling" >&6; }
  4180. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4181. ac_clean_files=$ac_clean_files_save
  4182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4183. $as_echo_n "checking for suffix of object files... " >&6; }
  4184. if ${ac_cv_objext+:} false; then :
  4185. $as_echo_n "(cached) " >&6
  4186. else
  4187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4188. /* end confdefs.h. */
  4189. int
  4190. main ()
  4191. {
  4192. ;
  4193. return 0;
  4194. }
  4195. _ACEOF
  4196. rm -f conftest.o conftest.obj
  4197. if { { ac_try="$ac_compile"
  4198. case "(($ac_try" in
  4199. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4200. *) ac_try_echo=$ac_try;;
  4201. esac
  4202. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4203. $as_echo "$ac_try_echo"; } >&5
  4204. (eval "$ac_compile") 2>&5
  4205. ac_status=$?
  4206. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4207. test $ac_status = 0; }; then :
  4208. for ac_file in conftest.o conftest.obj conftest.*; do
  4209. test -f "$ac_file" || continue;
  4210. case $ac_file in
  4211. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4212. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4213. break;;
  4214. esac
  4215. done
  4216. else
  4217. $as_echo "$as_me: failed program was:" >&5
  4218. sed 's/^/| /' conftest.$ac_ext >&5
  4219. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4220. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4221. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4222. See \`config.log' for more details" "$LINENO" 5; }
  4223. fi
  4224. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4225. fi
  4226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4227. $as_echo "$ac_cv_objext" >&6; }
  4228. OBJEXT=$ac_cv_objext
  4229. ac_objext=$OBJEXT
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4231. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4232. if ${ac_cv_c_compiler_gnu+:} false; then :
  4233. $as_echo_n "(cached) " >&6
  4234. else
  4235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4236. /* end confdefs.h. */
  4237. int
  4238. main ()
  4239. {
  4240. #ifndef __GNUC__
  4241. choke me
  4242. #endif
  4243. ;
  4244. return 0;
  4245. }
  4246. _ACEOF
  4247. if ac_fn_c_try_compile "$LINENO"; then :
  4248. ac_compiler_gnu=yes
  4249. else
  4250. ac_compiler_gnu=no
  4251. fi
  4252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4253. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4254. fi
  4255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4256. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4257. if test $ac_compiler_gnu = yes; then
  4258. GCC=yes
  4259. else
  4260. GCC=
  4261. fi
  4262. ac_test_CFLAGS=${CFLAGS+set}
  4263. ac_save_CFLAGS=$CFLAGS
  4264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4265. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4266. if ${ac_cv_prog_cc_g+:} false; then :
  4267. $as_echo_n "(cached) " >&6
  4268. else
  4269. ac_save_c_werror_flag=$ac_c_werror_flag
  4270. ac_c_werror_flag=yes
  4271. ac_cv_prog_cc_g=no
  4272. CFLAGS="-g"
  4273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4274. /* end confdefs.h. */
  4275. int
  4276. main ()
  4277. {
  4278. ;
  4279. return 0;
  4280. }
  4281. _ACEOF
  4282. if ac_fn_c_try_compile "$LINENO"; then :
  4283. ac_cv_prog_cc_g=yes
  4284. else
  4285. CFLAGS=""
  4286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4287. /* end confdefs.h. */
  4288. int
  4289. main ()
  4290. {
  4291. ;
  4292. return 0;
  4293. }
  4294. _ACEOF
  4295. if ac_fn_c_try_compile "$LINENO"; then :
  4296. else
  4297. ac_c_werror_flag=$ac_save_c_werror_flag
  4298. CFLAGS="-g"
  4299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4300. /* end confdefs.h. */
  4301. int
  4302. main ()
  4303. {
  4304. ;
  4305. return 0;
  4306. }
  4307. _ACEOF
  4308. if ac_fn_c_try_compile "$LINENO"; then :
  4309. ac_cv_prog_cc_g=yes
  4310. fi
  4311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4312. fi
  4313. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4314. fi
  4315. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4316. ac_c_werror_flag=$ac_save_c_werror_flag
  4317. fi
  4318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4319. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4320. if test "$ac_test_CFLAGS" = set; then
  4321. CFLAGS=$ac_save_CFLAGS
  4322. elif test $ac_cv_prog_cc_g = yes; then
  4323. if test "$GCC" = yes; then
  4324. CFLAGS="-g -O2"
  4325. else
  4326. CFLAGS="-g"
  4327. fi
  4328. else
  4329. if test "$GCC" = yes; then
  4330. CFLAGS="-O2"
  4331. else
  4332. CFLAGS=
  4333. fi
  4334. fi
  4335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4336. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4337. if ${ac_cv_prog_cc_c89+:} false; then :
  4338. $as_echo_n "(cached) " >&6
  4339. else
  4340. ac_cv_prog_cc_c89=no
  4341. ac_save_CC=$CC
  4342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4343. /* end confdefs.h. */
  4344. #include <stdarg.h>
  4345. #include <stdio.h>
  4346. struct stat;
  4347. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4348. struct buf { int x; };
  4349. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4350. static char *e (p, i)
  4351. char **p;
  4352. int i;
  4353. {
  4354. return p[i];
  4355. }
  4356. static char *f (char * (*g) (char **, int), char **p, ...)
  4357. {
  4358. char *s;
  4359. va_list v;
  4360. va_start (v,p);
  4361. s = g (p, va_arg (v,int));
  4362. va_end (v);
  4363. return s;
  4364. }
  4365. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4366. function prototypes and stuff, but not '\xHH' hex character constants.
  4367. These don't provoke an error unfortunately, instead are silently treated
  4368. as 'x'. The following induces an error, until -std is added to get
  4369. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4370. array size at least. It's necessary to write '\x00'==0 to get something
  4371. that's true only with -std. */
  4372. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4373. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4374. inside strings and character constants. */
  4375. #define FOO(x) 'x'
  4376. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4377. int test (int i, double x);
  4378. struct s1 {int (*f) (int a);};
  4379. struct s2 {int (*f) (double a);};
  4380. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4381. int argc;
  4382. char **argv;
  4383. int
  4384. main ()
  4385. {
  4386. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4387. ;
  4388. return 0;
  4389. }
  4390. _ACEOF
  4391. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4392. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4393. do
  4394. CC="$ac_save_CC $ac_arg"
  4395. if ac_fn_c_try_compile "$LINENO"; then :
  4396. ac_cv_prog_cc_c89=$ac_arg
  4397. fi
  4398. rm -f core conftest.err conftest.$ac_objext
  4399. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4400. done
  4401. rm -f conftest.$ac_ext
  4402. CC=$ac_save_CC
  4403. fi
  4404. # AC_CACHE_VAL
  4405. case "x$ac_cv_prog_cc_c89" in
  4406. x)
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4408. $as_echo "none needed" >&6; } ;;
  4409. xno)
  4410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4411. $as_echo "unsupported" >&6; } ;;
  4412. *)
  4413. CC="$CC $ac_cv_prog_cc_c89"
  4414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4415. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4416. esac
  4417. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4418. fi
  4419. ac_ext=c
  4420. ac_cpp='$CPP $CPPFLAGS'
  4421. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4422. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4423. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4424. ac_ext=c
  4425. ac_cpp='$CPP $CPPFLAGS'
  4426. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4427. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4428. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4430. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4431. if ${am_cv_prog_cc_c_o+:} false; then :
  4432. $as_echo_n "(cached) " >&6
  4433. else
  4434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4435. /* end confdefs.h. */
  4436. int
  4437. main ()
  4438. {
  4439. ;
  4440. return 0;
  4441. }
  4442. _ACEOF
  4443. # Make sure it works both with $CC and with simple cc.
  4444. # Following AC_PROG_CC_C_O, we do the test twice because some
  4445. # compilers refuse to overwrite an existing .o file with -o,
  4446. # though they will create one.
  4447. am_cv_prog_cc_c_o=yes
  4448. for am_i in 1 2; do
  4449. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4450. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4451. ac_status=$?
  4452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4453. (exit $ac_status); } \
  4454. && test -f conftest2.$ac_objext; then
  4455. : OK
  4456. else
  4457. am_cv_prog_cc_c_o=no
  4458. break
  4459. fi
  4460. done
  4461. rm -f core conftest*
  4462. unset am_i
  4463. fi
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4465. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4466. if test "$am_cv_prog_cc_c_o" != yes; then
  4467. # Losing compiler, so override with the script.
  4468. # FIXME: It is wrong to rewrite CC.
  4469. # But if we don't then we get into trouble of one sort or another.
  4470. # A longer-term fix would be to have automake use am__CC in this case,
  4471. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4472. CC="$am_aux_dir/compile $CC"
  4473. fi
  4474. ac_ext=c
  4475. ac_cpp='$CPP $CPPFLAGS'
  4476. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4477. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4478. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4479. depcc="$CC" am_compiler_list=
  4480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4481. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4482. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4483. $as_echo_n "(cached) " >&6
  4484. else
  4485. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4486. # We make a subdir and do the tests there. Otherwise we can end up
  4487. # making bogus files that we don't know about and never remove. For
  4488. # instance it was reported that on HP-UX the gcc test will end up
  4489. # making a dummy file named 'D' -- because '-MD' means "put the output
  4490. # in D".
  4491. rm -rf conftest.dir
  4492. mkdir conftest.dir
  4493. # Copy depcomp to subdir because otherwise we won't find it if we're
  4494. # using a relative directory.
  4495. cp "$am_depcomp" conftest.dir
  4496. cd conftest.dir
  4497. # We will build objects and dependencies in a subdirectory because
  4498. # it helps to detect inapplicable dependency modes. For instance
  4499. # both Tru64's cc and ICC support -MD to output dependencies as a
  4500. # side effect of compilation, but ICC will put the dependencies in
  4501. # the current directory while Tru64 will put them in the object
  4502. # directory.
  4503. mkdir sub
  4504. am_cv_CC_dependencies_compiler_type=none
  4505. if test "$am_compiler_list" = ""; then
  4506. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4507. fi
  4508. am__universal=false
  4509. case " $depcc " in #(
  4510. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4511. esac
  4512. for depmode in $am_compiler_list; do
  4513. # Setup a source with many dependencies, because some compilers
  4514. # like to wrap large dependency lists on column 80 (with \), and
  4515. # we should not choose a depcomp mode which is confused by this.
  4516. #
  4517. # We need to recreate these files for each test, as the compiler may
  4518. # overwrite some of them when testing with obscure command lines.
  4519. # This happens at least with the AIX C compiler.
  4520. : > sub/conftest.c
  4521. for i in 1 2 3 4 5 6; do
  4522. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4523. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4524. # Solaris 10 /bin/sh.
  4525. echo '/* dummy */' > sub/conftst$i.h
  4526. done
  4527. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4528. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4529. # mode. It turns out that the SunPro C++ compiler does not properly
  4530. # handle '-M -o', and we need to detect this. Also, some Intel
  4531. # versions had trouble with output in subdirs.
  4532. am__obj=sub/conftest.${OBJEXT-o}
  4533. am__minus_obj="-o $am__obj"
  4534. case $depmode in
  4535. gcc)
  4536. # This depmode causes a compiler race in universal mode.
  4537. test "$am__universal" = false || continue
  4538. ;;
  4539. nosideeffect)
  4540. # After this tag, mechanisms are not by side-effect, so they'll
  4541. # only be used when explicitly requested.
  4542. if test "x$enable_dependency_tracking" = xyes; then
  4543. continue
  4544. else
  4545. break
  4546. fi
  4547. ;;
  4548. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4549. # This compiler won't grok '-c -o', but also, the minuso test has
  4550. # not run yet. These depmodes are late enough in the game, and
  4551. # so weak that their functioning should not be impacted.
  4552. am__obj=conftest.${OBJEXT-o}
  4553. am__minus_obj=
  4554. ;;
  4555. none) break ;;
  4556. esac
  4557. if depmode=$depmode \
  4558. source=sub/conftest.c object=$am__obj \
  4559. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4560. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4561. >/dev/null 2>conftest.err &&
  4562. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4563. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4564. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4565. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4566. # icc doesn't choke on unknown options, it will just issue warnings
  4567. # or remarks (even with -Werror). So we grep stderr for any message
  4568. # that says an option was ignored or not supported.
  4569. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4570. # icc: Command line warning: ignoring option '-M'; no argument required
  4571. # The diagnosis changed in icc 8.0:
  4572. # icc: Command line remark: option '-MP' not supported
  4573. if (grep 'ignoring option' conftest.err ||
  4574. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4575. am_cv_CC_dependencies_compiler_type=$depmode
  4576. break
  4577. fi
  4578. fi
  4579. done
  4580. cd ..
  4581. rm -rf conftest.dir
  4582. else
  4583. am_cv_CC_dependencies_compiler_type=none
  4584. fi
  4585. fi
  4586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4587. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4588. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4589. if
  4590. test "x$enable_dependency_tracking" != xno \
  4591. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4592. am__fastdepCC_TRUE=
  4593. am__fastdepCC_FALSE='#'
  4594. else
  4595. am__fastdepCC_TRUE='#'
  4596. am__fastdepCC_FALSE=
  4597. fi
  4598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4599. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4600. if ${ac_cv_path_SED+:} false; then :
  4601. $as_echo_n "(cached) " >&6
  4602. else
  4603. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4604. for ac_i in 1 2 3 4 5 6 7; do
  4605. ac_script="$ac_script$as_nl$ac_script"
  4606. done
  4607. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4608. { ac_script=; unset ac_script;}
  4609. if test -z "$SED"; then
  4610. ac_path_SED_found=false
  4611. # Loop through the user's path and test for each of PROGNAME-LIST
  4612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4613. for as_dir in $PATH
  4614. do
  4615. IFS=$as_save_IFS
  4616. test -z "$as_dir" && as_dir=.
  4617. for ac_prog in sed gsed; do
  4618. for ac_exec_ext in '' $ac_executable_extensions; do
  4619. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4620. as_fn_executable_p "$ac_path_SED" || continue
  4621. # Check for GNU ac_path_SED and select it if it is found.
  4622. # Check for GNU $ac_path_SED
  4623. case `"$ac_path_SED" --version 2>&1` in
  4624. *GNU*)
  4625. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4626. *)
  4627. ac_count=0
  4628. $as_echo_n 0123456789 >"conftest.in"
  4629. while :
  4630. do
  4631. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4632. mv "conftest.tmp" "conftest.in"
  4633. cp "conftest.in" "conftest.nl"
  4634. $as_echo '' >> "conftest.nl"
  4635. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4636. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4637. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4638. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4639. # Best one so far, save it but keep looking for a better one
  4640. ac_cv_path_SED="$ac_path_SED"
  4641. ac_path_SED_max=$ac_count
  4642. fi
  4643. # 10*(2^10) chars as input seems more than enough
  4644. test $ac_count -gt 10 && break
  4645. done
  4646. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4647. esac
  4648. $ac_path_SED_found && break 3
  4649. done
  4650. done
  4651. done
  4652. IFS=$as_save_IFS
  4653. if test -z "$ac_cv_path_SED"; then
  4654. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4655. fi
  4656. else
  4657. ac_cv_path_SED=$SED
  4658. fi
  4659. fi
  4660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4661. $as_echo "$ac_cv_path_SED" >&6; }
  4662. SED="$ac_cv_path_SED"
  4663. rm -f conftest.sed
  4664. test -z "$SED" && SED=sed
  4665. Xsed="$SED -e 1s/^X//"
  4666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4667. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4668. if ${ac_cv_path_GREP+:} false; then :
  4669. $as_echo_n "(cached) " >&6
  4670. else
  4671. if test -z "$GREP"; then
  4672. ac_path_GREP_found=false
  4673. # Loop through the user's path and test for each of PROGNAME-LIST
  4674. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4675. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4676. do
  4677. IFS=$as_save_IFS
  4678. test -z "$as_dir" && as_dir=.
  4679. for ac_prog in grep ggrep; do
  4680. for ac_exec_ext in '' $ac_executable_extensions; do
  4681. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4682. as_fn_executable_p "$ac_path_GREP" || continue
  4683. # Check for GNU ac_path_GREP and select it if it is found.
  4684. # Check for GNU $ac_path_GREP
  4685. case `"$ac_path_GREP" --version 2>&1` in
  4686. *GNU*)
  4687. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4688. *)
  4689. ac_count=0
  4690. $as_echo_n 0123456789 >"conftest.in"
  4691. while :
  4692. do
  4693. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4694. mv "conftest.tmp" "conftest.in"
  4695. cp "conftest.in" "conftest.nl"
  4696. $as_echo 'GREP' >> "conftest.nl"
  4697. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4698. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4699. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4700. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4701. # Best one so far, save it but keep looking for a better one
  4702. ac_cv_path_GREP="$ac_path_GREP"
  4703. ac_path_GREP_max=$ac_count
  4704. fi
  4705. # 10*(2^10) chars as input seems more than enough
  4706. test $ac_count -gt 10 && break
  4707. done
  4708. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4709. esac
  4710. $ac_path_GREP_found && break 3
  4711. done
  4712. done
  4713. done
  4714. IFS=$as_save_IFS
  4715. if test -z "$ac_cv_path_GREP"; then
  4716. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4717. fi
  4718. else
  4719. ac_cv_path_GREP=$GREP
  4720. fi
  4721. fi
  4722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4723. $as_echo "$ac_cv_path_GREP" >&6; }
  4724. GREP="$ac_cv_path_GREP"
  4725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4726. $as_echo_n "checking for egrep... " >&6; }
  4727. if ${ac_cv_path_EGREP+:} false; then :
  4728. $as_echo_n "(cached) " >&6
  4729. else
  4730. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4731. then ac_cv_path_EGREP="$GREP -E"
  4732. else
  4733. if test -z "$EGREP"; then
  4734. ac_path_EGREP_found=false
  4735. # Loop through the user's path and test for each of PROGNAME-LIST
  4736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4737. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4738. do
  4739. IFS=$as_save_IFS
  4740. test -z "$as_dir" && as_dir=.
  4741. for ac_prog in egrep; do
  4742. for ac_exec_ext in '' $ac_executable_extensions; do
  4743. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4744. as_fn_executable_p "$ac_path_EGREP" || continue
  4745. # Check for GNU ac_path_EGREP and select it if it is found.
  4746. # Check for GNU $ac_path_EGREP
  4747. case `"$ac_path_EGREP" --version 2>&1` in
  4748. *GNU*)
  4749. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4750. *)
  4751. ac_count=0
  4752. $as_echo_n 0123456789 >"conftest.in"
  4753. while :
  4754. do
  4755. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4756. mv "conftest.tmp" "conftest.in"
  4757. cp "conftest.in" "conftest.nl"
  4758. $as_echo 'EGREP' >> "conftest.nl"
  4759. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4760. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4761. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4762. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4763. # Best one so far, save it but keep looking for a better one
  4764. ac_cv_path_EGREP="$ac_path_EGREP"
  4765. ac_path_EGREP_max=$ac_count
  4766. fi
  4767. # 10*(2^10) chars as input seems more than enough
  4768. test $ac_count -gt 10 && break
  4769. done
  4770. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4771. esac
  4772. $ac_path_EGREP_found && break 3
  4773. done
  4774. done
  4775. done
  4776. IFS=$as_save_IFS
  4777. if test -z "$ac_cv_path_EGREP"; then
  4778. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4779. fi
  4780. else
  4781. ac_cv_path_EGREP=$EGREP
  4782. fi
  4783. fi
  4784. fi
  4785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4786. $as_echo "$ac_cv_path_EGREP" >&6; }
  4787. EGREP="$ac_cv_path_EGREP"
  4788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4789. $as_echo_n "checking for fgrep... " >&6; }
  4790. if ${ac_cv_path_FGREP+:} false; then :
  4791. $as_echo_n "(cached) " >&6
  4792. else
  4793. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4794. then ac_cv_path_FGREP="$GREP -F"
  4795. else
  4796. if test -z "$FGREP"; then
  4797. ac_path_FGREP_found=false
  4798. # Loop through the user's path and test for each of PROGNAME-LIST
  4799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4800. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4801. do
  4802. IFS=$as_save_IFS
  4803. test -z "$as_dir" && as_dir=.
  4804. for ac_prog in fgrep; do
  4805. for ac_exec_ext in '' $ac_executable_extensions; do
  4806. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4807. as_fn_executable_p "$ac_path_FGREP" || continue
  4808. # Check for GNU ac_path_FGREP and select it if it is found.
  4809. # Check for GNU $ac_path_FGREP
  4810. case `"$ac_path_FGREP" --version 2>&1` in
  4811. *GNU*)
  4812. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4813. *)
  4814. ac_count=0
  4815. $as_echo_n 0123456789 >"conftest.in"
  4816. while :
  4817. do
  4818. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4819. mv "conftest.tmp" "conftest.in"
  4820. cp "conftest.in" "conftest.nl"
  4821. $as_echo 'FGREP' >> "conftest.nl"
  4822. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4823. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4824. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4825. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4826. # Best one so far, save it but keep looking for a better one
  4827. ac_cv_path_FGREP="$ac_path_FGREP"
  4828. ac_path_FGREP_max=$ac_count
  4829. fi
  4830. # 10*(2^10) chars as input seems more than enough
  4831. test $ac_count -gt 10 && break
  4832. done
  4833. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4834. esac
  4835. $ac_path_FGREP_found && break 3
  4836. done
  4837. done
  4838. done
  4839. IFS=$as_save_IFS
  4840. if test -z "$ac_cv_path_FGREP"; then
  4841. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4842. fi
  4843. else
  4844. ac_cv_path_FGREP=$FGREP
  4845. fi
  4846. fi
  4847. fi
  4848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4849. $as_echo "$ac_cv_path_FGREP" >&6; }
  4850. FGREP="$ac_cv_path_FGREP"
  4851. test -z "$GREP" && GREP=grep
  4852. # Check whether --with-gnu-ld was given.
  4853. if test "${with_gnu_ld+set}" = set; then :
  4854. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4855. else
  4856. with_gnu_ld=no
  4857. fi
  4858. ac_prog=ld
  4859. if test yes = "$GCC"; then
  4860. # Check if gcc -print-prog-name=ld gives a path.
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4862. $as_echo_n "checking for ld used by $CC... " >&6; }
  4863. case $host in
  4864. *-*-mingw*)
  4865. # gcc leaves a trailing carriage return, which upsets mingw
  4866. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4867. *)
  4868. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4869. esac
  4870. case $ac_prog in
  4871. # Accept absolute paths.
  4872. [\\/]* | ?:[\\/]*)
  4873. re_direlt='/[^/][^/]*/\.\./'
  4874. # Canonicalize the pathname of ld
  4875. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4876. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4877. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4878. done
  4879. test -z "$LD" && LD=$ac_prog
  4880. ;;
  4881. "")
  4882. # If it fails, then pretend we aren't using GCC.
  4883. ac_prog=ld
  4884. ;;
  4885. *)
  4886. # If it is relative, then search for the first ld in PATH.
  4887. with_gnu_ld=unknown
  4888. ;;
  4889. esac
  4890. elif test yes = "$with_gnu_ld"; then
  4891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4892. $as_echo_n "checking for GNU ld... " >&6; }
  4893. else
  4894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4895. $as_echo_n "checking for non-GNU ld... " >&6; }
  4896. fi
  4897. if ${lt_cv_path_LD+:} false; then :
  4898. $as_echo_n "(cached) " >&6
  4899. else
  4900. if test -z "$LD"; then
  4901. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4902. for ac_dir in $PATH; do
  4903. IFS=$lt_save_ifs
  4904. test -z "$ac_dir" && ac_dir=.
  4905. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4906. lt_cv_path_LD=$ac_dir/$ac_prog
  4907. # Check to see if the program is GNU ld. I'd rather use --version,
  4908. # but apparently some variants of GNU ld only accept -v.
  4909. # Break only if it was the GNU/non-GNU ld that we prefer.
  4910. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4911. *GNU* | *'with BFD'*)
  4912. test no != "$with_gnu_ld" && break
  4913. ;;
  4914. *)
  4915. test yes != "$with_gnu_ld" && break
  4916. ;;
  4917. esac
  4918. fi
  4919. done
  4920. IFS=$lt_save_ifs
  4921. else
  4922. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4923. fi
  4924. fi
  4925. LD=$lt_cv_path_LD
  4926. if test -n "$LD"; then
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4928. $as_echo "$LD" >&6; }
  4929. else
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4931. $as_echo "no" >&6; }
  4932. fi
  4933. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4935. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4936. if ${lt_cv_prog_gnu_ld+:} false; then :
  4937. $as_echo_n "(cached) " >&6
  4938. else
  4939. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4940. case `$LD -v 2>&1 </dev/null` in
  4941. *GNU* | *'with BFD'*)
  4942. lt_cv_prog_gnu_ld=yes
  4943. ;;
  4944. *)
  4945. lt_cv_prog_gnu_ld=no
  4946. ;;
  4947. esac
  4948. fi
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4950. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4951. with_gnu_ld=$lt_cv_prog_gnu_ld
  4952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4953. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4954. if ${lt_cv_path_NM+:} false; then :
  4955. $as_echo_n "(cached) " >&6
  4956. else
  4957. if test -n "$NM"; then
  4958. # Let the user override the test.
  4959. lt_cv_path_NM=$NM
  4960. else
  4961. lt_nm_to_check=${ac_tool_prefix}nm
  4962. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4963. lt_nm_to_check="$lt_nm_to_check nm"
  4964. fi
  4965. for lt_tmp_nm in $lt_nm_to_check; do
  4966. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4967. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4968. IFS=$lt_save_ifs
  4969. test -z "$ac_dir" && ac_dir=.
  4970. tmp_nm=$ac_dir/$lt_tmp_nm
  4971. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4972. # Check to see if the nm accepts a BSD-compat flag.
  4973. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4974. # nm: unknown option "B" ignored
  4975. # Tru64's nm complains that /dev/null is an invalid object file
  4976. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4977. case $build_os in
  4978. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4979. *) lt_bad_file=/dev/null ;;
  4980. esac
  4981. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4982. *$lt_bad_file* | *'Invalid file or object type'*)
  4983. lt_cv_path_NM="$tmp_nm -B"
  4984. break 2
  4985. ;;
  4986. *)
  4987. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4988. */dev/null*)
  4989. lt_cv_path_NM="$tmp_nm -p"
  4990. break 2
  4991. ;;
  4992. *)
  4993. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4994. continue # so that we can try to find one that supports BSD flags
  4995. ;;
  4996. esac
  4997. ;;
  4998. esac
  4999. fi
  5000. done
  5001. IFS=$lt_save_ifs
  5002. done
  5003. : ${lt_cv_path_NM=no}
  5004. fi
  5005. fi
  5006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5007. $as_echo "$lt_cv_path_NM" >&6; }
  5008. if test no != "$lt_cv_path_NM"; then
  5009. NM=$lt_cv_path_NM
  5010. else
  5011. # Didn't find any BSD compatible name lister, look for dumpbin.
  5012. if test -n "$DUMPBIN"; then :
  5013. # Let the user override the test.
  5014. else
  5015. if test -n "$ac_tool_prefix"; then
  5016. for ac_prog in dumpbin "link -dump"
  5017. do
  5018. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5019. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5021. $as_echo_n "checking for $ac_word... " >&6; }
  5022. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5023. $as_echo_n "(cached) " >&6
  5024. else
  5025. if test -n "$DUMPBIN"; then
  5026. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5027. else
  5028. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5029. for as_dir in $PATH
  5030. do
  5031. IFS=$as_save_IFS
  5032. test -z "$as_dir" && as_dir=.
  5033. for ac_exec_ext in '' $ac_executable_extensions; do
  5034. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5035. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5036. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5037. break 2
  5038. fi
  5039. done
  5040. done
  5041. IFS=$as_save_IFS
  5042. fi
  5043. fi
  5044. DUMPBIN=$ac_cv_prog_DUMPBIN
  5045. if test -n "$DUMPBIN"; then
  5046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5047. $as_echo "$DUMPBIN" >&6; }
  5048. else
  5049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5050. $as_echo "no" >&6; }
  5051. fi
  5052. test -n "$DUMPBIN" && break
  5053. done
  5054. fi
  5055. if test -z "$DUMPBIN"; then
  5056. ac_ct_DUMPBIN=$DUMPBIN
  5057. for ac_prog in dumpbin "link -dump"
  5058. do
  5059. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5060. set dummy $ac_prog; ac_word=$2
  5061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5062. $as_echo_n "checking for $ac_word... " >&6; }
  5063. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5064. $as_echo_n "(cached) " >&6
  5065. else
  5066. if test -n "$ac_ct_DUMPBIN"; then
  5067. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5068. else
  5069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5070. for as_dir in $PATH
  5071. do
  5072. IFS=$as_save_IFS
  5073. test -z "$as_dir" && as_dir=.
  5074. for ac_exec_ext in '' $ac_executable_extensions; do
  5075. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5076. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5077. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5078. break 2
  5079. fi
  5080. done
  5081. done
  5082. IFS=$as_save_IFS
  5083. fi
  5084. fi
  5085. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5086. if test -n "$ac_ct_DUMPBIN"; then
  5087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5088. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5089. else
  5090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5091. $as_echo "no" >&6; }
  5092. fi
  5093. test -n "$ac_ct_DUMPBIN" && break
  5094. done
  5095. if test "x$ac_ct_DUMPBIN" = x; then
  5096. DUMPBIN=":"
  5097. else
  5098. case $cross_compiling:$ac_tool_warned in
  5099. yes:)
  5100. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5101. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5102. ac_tool_warned=yes ;;
  5103. esac
  5104. DUMPBIN=$ac_ct_DUMPBIN
  5105. fi
  5106. fi
  5107. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5108. *COFF*)
  5109. DUMPBIN="$DUMPBIN -symbols -headers"
  5110. ;;
  5111. *)
  5112. DUMPBIN=:
  5113. ;;
  5114. esac
  5115. fi
  5116. if test : != "$DUMPBIN"; then
  5117. NM=$DUMPBIN
  5118. fi
  5119. fi
  5120. test -z "$NM" && NM=nm
  5121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5122. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5123. if ${lt_cv_nm_interface+:} false; then :
  5124. $as_echo_n "(cached) " >&6
  5125. else
  5126. lt_cv_nm_interface="BSD nm"
  5127. echo "int some_variable = 0;" > conftest.$ac_ext
  5128. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5129. (eval "$ac_compile" 2>conftest.err)
  5130. cat conftest.err >&5
  5131. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5132. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5133. cat conftest.err >&5
  5134. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5135. cat conftest.out >&5
  5136. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5137. lt_cv_nm_interface="MS dumpbin"
  5138. fi
  5139. rm -f conftest*
  5140. fi
  5141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5142. $as_echo "$lt_cv_nm_interface" >&6; }
  5143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5144. $as_echo_n "checking whether ln -s works... " >&6; }
  5145. LN_S=$as_ln_s
  5146. if test "$LN_S" = "ln -s"; then
  5147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5148. $as_echo "yes" >&6; }
  5149. else
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5151. $as_echo "no, using $LN_S" >&6; }
  5152. fi
  5153. # find the maximum length of command line arguments
  5154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5155. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5156. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5157. $as_echo_n "(cached) " >&6
  5158. else
  5159. i=0
  5160. teststring=ABCD
  5161. case $build_os in
  5162. msdosdjgpp*)
  5163. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5164. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5165. # during glob expansion). Even if it were fixed, the result of this
  5166. # check would be larger than it should be.
  5167. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5168. ;;
  5169. gnu*)
  5170. # Under GNU Hurd, this test is not required because there is
  5171. # no limit to the length of command line arguments.
  5172. # Libtool will interpret -1 as no limit whatsoever
  5173. lt_cv_sys_max_cmd_len=-1;
  5174. ;;
  5175. cygwin* | mingw* | cegcc*)
  5176. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5177. # about 5 minutes as the teststring grows exponentially.
  5178. # Worse, since 9x/ME are not pre-emptively multitasking,
  5179. # you end up with a "frozen" computer, even though with patience
  5180. # the test eventually succeeds (with a max line length of 256k).
  5181. # Instead, let's just punt: use the minimum linelength reported by
  5182. # all of the supported platforms: 8192 (on NT/2K/XP).
  5183. lt_cv_sys_max_cmd_len=8192;
  5184. ;;
  5185. mint*)
  5186. # On MiNT this can take a long time and run out of memory.
  5187. lt_cv_sys_max_cmd_len=8192;
  5188. ;;
  5189. amigaos*)
  5190. # On AmigaOS with pdksh, this test takes hours, literally.
  5191. # So we just punt and use a minimum line length of 8192.
  5192. lt_cv_sys_max_cmd_len=8192;
  5193. ;;
  5194. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5195. # This has been around since 386BSD, at least. Likely further.
  5196. if test -x /sbin/sysctl; then
  5197. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5198. elif test -x /usr/sbin/sysctl; then
  5199. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5200. else
  5201. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5202. fi
  5203. # And add a safety zone
  5204. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5205. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5206. ;;
  5207. interix*)
  5208. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5209. lt_cv_sys_max_cmd_len=196608
  5210. ;;
  5211. os2*)
  5212. # The test takes a long time on OS/2.
  5213. lt_cv_sys_max_cmd_len=8192
  5214. ;;
  5215. osf*)
  5216. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5217. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5218. # nice to cause kernel panics so lets avoid the loop below.
  5219. # First set a reasonable default.
  5220. lt_cv_sys_max_cmd_len=16384
  5221. #
  5222. if test -x /sbin/sysconfig; then
  5223. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5224. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5225. esac
  5226. fi
  5227. ;;
  5228. sco3.2v5*)
  5229. lt_cv_sys_max_cmd_len=102400
  5230. ;;
  5231. sysv5* | sco5v6* | sysv4.2uw2*)
  5232. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5233. if test -n "$kargmax"; then
  5234. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5235. else
  5236. lt_cv_sys_max_cmd_len=32768
  5237. fi
  5238. ;;
  5239. *)
  5240. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5241. if test -n "$lt_cv_sys_max_cmd_len" && \
  5242. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5243. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5244. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5245. else
  5246. # Make teststring a little bigger before we do anything with it.
  5247. # a 1K string should be a reasonable start.
  5248. for i in 1 2 3 4 5 6 7 8; do
  5249. teststring=$teststring$teststring
  5250. done
  5251. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5252. # If test is not a shell built-in, we'll probably end up computing a
  5253. # maximum length that is only half of the actual maximum length, but
  5254. # we can't tell.
  5255. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5256. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5257. test 17 != "$i" # 1/2 MB should be enough
  5258. do
  5259. i=`expr $i + 1`
  5260. teststring=$teststring$teststring
  5261. done
  5262. # Only check the string length outside the loop.
  5263. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5264. teststring=
  5265. # Add a significant safety factor because C++ compilers can tack on
  5266. # massive amounts of additional arguments before passing them to the
  5267. # linker. It appears as though 1/2 is a usable value.
  5268. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5269. fi
  5270. ;;
  5271. esac
  5272. fi
  5273. if test -n "$lt_cv_sys_max_cmd_len"; then
  5274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5275. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5276. else
  5277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5278. $as_echo "none" >&6; }
  5279. fi
  5280. max_cmd_len=$lt_cv_sys_max_cmd_len
  5281. : ${CP="cp -f"}
  5282. : ${MV="mv -f"}
  5283. : ${RM="rm -f"}
  5284. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5285. lt_unset=unset
  5286. else
  5287. lt_unset=false
  5288. fi
  5289. # test EBCDIC or ASCII
  5290. case `echo X|tr X '\101'` in
  5291. A) # ASCII based system
  5292. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5293. lt_SP2NL='tr \040 \012'
  5294. lt_NL2SP='tr \015\012 \040\040'
  5295. ;;
  5296. *) # EBCDIC based system
  5297. lt_SP2NL='tr \100 \n'
  5298. lt_NL2SP='tr \r\n \100\100'
  5299. ;;
  5300. esac
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5302. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5303. if ${lt_cv_to_host_file_cmd+:} false; then :
  5304. $as_echo_n "(cached) " >&6
  5305. else
  5306. case $host in
  5307. *-*-mingw* )
  5308. case $build in
  5309. *-*-mingw* ) # actually msys
  5310. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5311. ;;
  5312. *-*-cygwin* )
  5313. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5314. ;;
  5315. * ) # otherwise, assume *nix
  5316. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5317. ;;
  5318. esac
  5319. ;;
  5320. *-*-cygwin* )
  5321. case $build in
  5322. *-*-mingw* ) # actually msys
  5323. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5324. ;;
  5325. *-*-cygwin* )
  5326. lt_cv_to_host_file_cmd=func_convert_file_noop
  5327. ;;
  5328. * ) # otherwise, assume *nix
  5329. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5330. ;;
  5331. esac
  5332. ;;
  5333. * ) # unhandled hosts (and "normal" native builds)
  5334. lt_cv_to_host_file_cmd=func_convert_file_noop
  5335. ;;
  5336. esac
  5337. fi
  5338. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5340. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5342. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5343. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5344. $as_echo_n "(cached) " >&6
  5345. else
  5346. #assume ordinary cross tools, or native build.
  5347. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5348. case $host in
  5349. *-*-mingw* )
  5350. case $build in
  5351. *-*-mingw* ) # actually msys
  5352. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5353. ;;
  5354. esac
  5355. ;;
  5356. esac
  5357. fi
  5358. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5360. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5362. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5363. if ${lt_cv_ld_reload_flag+:} false; then :
  5364. $as_echo_n "(cached) " >&6
  5365. else
  5366. lt_cv_ld_reload_flag='-r'
  5367. fi
  5368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5369. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5370. reload_flag=$lt_cv_ld_reload_flag
  5371. case $reload_flag in
  5372. "" | " "*) ;;
  5373. *) reload_flag=" $reload_flag" ;;
  5374. esac
  5375. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5376. case $host_os in
  5377. cygwin* | mingw* | pw32* | cegcc*)
  5378. if test yes != "$GCC"; then
  5379. reload_cmds=false
  5380. fi
  5381. ;;
  5382. darwin*)
  5383. if test yes = "$GCC"; then
  5384. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5385. else
  5386. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5387. fi
  5388. ;;
  5389. esac
  5390. if test -n "$ac_tool_prefix"; then
  5391. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5392. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5394. $as_echo_n "checking for $ac_word... " >&6; }
  5395. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5396. $as_echo_n "(cached) " >&6
  5397. else
  5398. if test -n "$OBJDUMP"; then
  5399. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5400. else
  5401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5402. for as_dir in $PATH
  5403. do
  5404. IFS=$as_save_IFS
  5405. test -z "$as_dir" && as_dir=.
  5406. for ac_exec_ext in '' $ac_executable_extensions; do
  5407. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5408. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5409. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5410. break 2
  5411. fi
  5412. done
  5413. done
  5414. IFS=$as_save_IFS
  5415. fi
  5416. fi
  5417. OBJDUMP=$ac_cv_prog_OBJDUMP
  5418. if test -n "$OBJDUMP"; then
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5420. $as_echo "$OBJDUMP" >&6; }
  5421. else
  5422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5423. $as_echo "no" >&6; }
  5424. fi
  5425. fi
  5426. if test -z "$ac_cv_prog_OBJDUMP"; then
  5427. ac_ct_OBJDUMP=$OBJDUMP
  5428. # Extract the first word of "objdump", so it can be a program name with args.
  5429. set dummy objdump; ac_word=$2
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5431. $as_echo_n "checking for $ac_word... " >&6; }
  5432. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5433. $as_echo_n "(cached) " >&6
  5434. else
  5435. if test -n "$ac_ct_OBJDUMP"; then
  5436. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5437. else
  5438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5439. for as_dir in $PATH
  5440. do
  5441. IFS=$as_save_IFS
  5442. test -z "$as_dir" && as_dir=.
  5443. for ac_exec_ext in '' $ac_executable_extensions; do
  5444. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5445. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5446. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5447. break 2
  5448. fi
  5449. done
  5450. done
  5451. IFS=$as_save_IFS
  5452. fi
  5453. fi
  5454. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5455. if test -n "$ac_ct_OBJDUMP"; then
  5456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5457. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5458. else
  5459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5460. $as_echo "no" >&6; }
  5461. fi
  5462. if test "x$ac_ct_OBJDUMP" = x; then
  5463. OBJDUMP="false"
  5464. else
  5465. case $cross_compiling:$ac_tool_warned in
  5466. yes:)
  5467. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5468. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5469. ac_tool_warned=yes ;;
  5470. esac
  5471. OBJDUMP=$ac_ct_OBJDUMP
  5472. fi
  5473. else
  5474. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5475. fi
  5476. test -z "$OBJDUMP" && OBJDUMP=objdump
  5477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5478. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5479. if ${lt_cv_deplibs_check_method+:} false; then :
  5480. $as_echo_n "(cached) " >&6
  5481. else
  5482. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5483. lt_cv_file_magic_test_file=
  5484. lt_cv_deplibs_check_method='unknown'
  5485. # Need to set the preceding variable on all platforms that support
  5486. # interlibrary dependencies.
  5487. # 'none' -- dependencies not supported.
  5488. # 'unknown' -- same as none, but documents that we really don't know.
  5489. # 'pass_all' -- all dependencies passed with no checks.
  5490. # 'test_compile' -- check by making test program.
  5491. # 'file_magic [[regex]]' -- check by looking for files in library path
  5492. # that responds to the $file_magic_cmd with a given extended regex.
  5493. # If you have 'file' or equivalent on your system and you're not sure
  5494. # whether 'pass_all' will *always* work, you probably want this one.
  5495. case $host_os in
  5496. aix[4-9]*)
  5497. lt_cv_deplibs_check_method=pass_all
  5498. ;;
  5499. beos*)
  5500. lt_cv_deplibs_check_method=pass_all
  5501. ;;
  5502. bsdi[45]*)
  5503. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5504. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5505. lt_cv_file_magic_test_file=/shlib/libc.so
  5506. ;;
  5507. cygwin*)
  5508. # func_win32_libid is a shell function defined in ltmain.sh
  5509. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5510. lt_cv_file_magic_cmd='func_win32_libid'
  5511. ;;
  5512. mingw* | pw32*)
  5513. # Base MSYS/MinGW do not provide the 'file' command needed by
  5514. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5515. # unless we find 'file', for example because we are cross-compiling.
  5516. if ( file / ) >/dev/null 2>&1; then
  5517. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5518. lt_cv_file_magic_cmd='func_win32_libid'
  5519. else
  5520. # Keep this pattern in sync with the one in func_win32_libid.
  5521. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5522. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5523. fi
  5524. ;;
  5525. cegcc*)
  5526. # use the weaker test based on 'objdump'. See mingw*.
  5527. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5528. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5529. ;;
  5530. darwin* | rhapsody*)
  5531. lt_cv_deplibs_check_method=pass_all
  5532. ;;
  5533. freebsd* | dragonfly*)
  5534. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5535. case $host_cpu in
  5536. i*86 )
  5537. # Not sure whether the presence of OpenBSD here was a mistake.
  5538. # Let's accept both of them until this is cleared up.
  5539. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5540. lt_cv_file_magic_cmd=/usr/bin/file
  5541. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5542. ;;
  5543. esac
  5544. else
  5545. lt_cv_deplibs_check_method=pass_all
  5546. fi
  5547. ;;
  5548. haiku*)
  5549. lt_cv_deplibs_check_method=pass_all
  5550. ;;
  5551. hpux10.20* | hpux11*)
  5552. lt_cv_file_magic_cmd=/usr/bin/file
  5553. case $host_cpu in
  5554. ia64*)
  5555. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5556. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5557. ;;
  5558. hppa*64*)
  5559. 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]'
  5560. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5561. ;;
  5562. *)
  5563. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5564. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5565. ;;
  5566. esac
  5567. ;;
  5568. interix[3-9]*)
  5569. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5570. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5571. ;;
  5572. irix5* | irix6* | nonstopux*)
  5573. case $LD in
  5574. *-32|*"-32 ") libmagic=32-bit;;
  5575. *-n32|*"-n32 ") libmagic=N32;;
  5576. *-64|*"-64 ") libmagic=64-bit;;
  5577. *) libmagic=never-match;;
  5578. esac
  5579. lt_cv_deplibs_check_method=pass_all
  5580. ;;
  5581. # This must be glibc/ELF.
  5582. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5583. lt_cv_deplibs_check_method=pass_all
  5584. ;;
  5585. netbsd* | netbsdelf*-gnu)
  5586. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5587. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5588. else
  5589. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5590. fi
  5591. ;;
  5592. newos6*)
  5593. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5594. lt_cv_file_magic_cmd=/usr/bin/file
  5595. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5596. ;;
  5597. *nto* | *qnx*)
  5598. lt_cv_deplibs_check_method=pass_all
  5599. ;;
  5600. openbsd* | bitrig*)
  5601. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5602. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5603. else
  5604. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5605. fi
  5606. ;;
  5607. osf3* | osf4* | osf5*)
  5608. lt_cv_deplibs_check_method=pass_all
  5609. ;;
  5610. rdos*)
  5611. lt_cv_deplibs_check_method=pass_all
  5612. ;;
  5613. solaris*)
  5614. lt_cv_deplibs_check_method=pass_all
  5615. ;;
  5616. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5617. lt_cv_deplibs_check_method=pass_all
  5618. ;;
  5619. sysv4 | sysv4.3*)
  5620. case $host_vendor in
  5621. motorola)
  5622. 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]'
  5623. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5624. ;;
  5625. ncr)
  5626. lt_cv_deplibs_check_method=pass_all
  5627. ;;
  5628. sequent)
  5629. lt_cv_file_magic_cmd='/bin/file'
  5630. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5631. ;;
  5632. sni)
  5633. lt_cv_file_magic_cmd='/bin/file'
  5634. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5635. lt_cv_file_magic_test_file=/lib/libc.so
  5636. ;;
  5637. siemens)
  5638. lt_cv_deplibs_check_method=pass_all
  5639. ;;
  5640. pc)
  5641. lt_cv_deplibs_check_method=pass_all
  5642. ;;
  5643. esac
  5644. ;;
  5645. tpf*)
  5646. lt_cv_deplibs_check_method=pass_all
  5647. ;;
  5648. os2*)
  5649. lt_cv_deplibs_check_method=pass_all
  5650. ;;
  5651. esac
  5652. fi
  5653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5654. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5655. file_magic_glob=
  5656. want_nocaseglob=no
  5657. if test "$build" = "$host"; then
  5658. case $host_os in
  5659. mingw* | pw32*)
  5660. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5661. want_nocaseglob=yes
  5662. else
  5663. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5664. fi
  5665. ;;
  5666. esac
  5667. fi
  5668. file_magic_cmd=$lt_cv_file_magic_cmd
  5669. deplibs_check_method=$lt_cv_deplibs_check_method
  5670. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5671. if test -n "$ac_tool_prefix"; then
  5672. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5673. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5675. $as_echo_n "checking for $ac_word... " >&6; }
  5676. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5677. $as_echo_n "(cached) " >&6
  5678. else
  5679. if test -n "$DLLTOOL"; then
  5680. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5681. else
  5682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5683. for as_dir in $PATH
  5684. do
  5685. IFS=$as_save_IFS
  5686. test -z "$as_dir" && as_dir=.
  5687. for ac_exec_ext in '' $ac_executable_extensions; do
  5688. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5689. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5690. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5691. break 2
  5692. fi
  5693. done
  5694. done
  5695. IFS=$as_save_IFS
  5696. fi
  5697. fi
  5698. DLLTOOL=$ac_cv_prog_DLLTOOL
  5699. if test -n "$DLLTOOL"; then
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5701. $as_echo "$DLLTOOL" >&6; }
  5702. else
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5704. $as_echo "no" >&6; }
  5705. fi
  5706. fi
  5707. if test -z "$ac_cv_prog_DLLTOOL"; then
  5708. ac_ct_DLLTOOL=$DLLTOOL
  5709. # Extract the first word of "dlltool", so it can be a program name with args.
  5710. set dummy dlltool; ac_word=$2
  5711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5712. $as_echo_n "checking for $ac_word... " >&6; }
  5713. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5714. $as_echo_n "(cached) " >&6
  5715. else
  5716. if test -n "$ac_ct_DLLTOOL"; then
  5717. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5718. else
  5719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5720. for as_dir in $PATH
  5721. do
  5722. IFS=$as_save_IFS
  5723. test -z "$as_dir" && as_dir=.
  5724. for ac_exec_ext in '' $ac_executable_extensions; do
  5725. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5726. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5727. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5728. break 2
  5729. fi
  5730. done
  5731. done
  5732. IFS=$as_save_IFS
  5733. fi
  5734. fi
  5735. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5736. if test -n "$ac_ct_DLLTOOL"; then
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5738. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5739. else
  5740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5741. $as_echo "no" >&6; }
  5742. fi
  5743. if test "x$ac_ct_DLLTOOL" = x; then
  5744. DLLTOOL="false"
  5745. else
  5746. case $cross_compiling:$ac_tool_warned in
  5747. yes:)
  5748. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5749. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5750. ac_tool_warned=yes ;;
  5751. esac
  5752. DLLTOOL=$ac_ct_DLLTOOL
  5753. fi
  5754. else
  5755. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5756. fi
  5757. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5759. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5760. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5761. $as_echo_n "(cached) " >&6
  5762. else
  5763. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5764. case $host_os in
  5765. cygwin* | mingw* | pw32* | cegcc*)
  5766. # two different shell functions defined in ltmain.sh;
  5767. # decide which one to use based on capabilities of $DLLTOOL
  5768. case `$DLLTOOL --help 2>&1` in
  5769. *--identify-strict*)
  5770. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5771. ;;
  5772. *)
  5773. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5774. ;;
  5775. esac
  5776. ;;
  5777. *)
  5778. # fallback: assume linklib IS sharedlib
  5779. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5780. ;;
  5781. esac
  5782. fi
  5783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5784. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5785. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5786. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5787. if test -n "$ac_tool_prefix"; then
  5788. for ac_prog in ar
  5789. do
  5790. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5791. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5793. $as_echo_n "checking for $ac_word... " >&6; }
  5794. if ${ac_cv_prog_AR+:} false; then :
  5795. $as_echo_n "(cached) " >&6
  5796. else
  5797. if test -n "$AR"; then
  5798. ac_cv_prog_AR="$AR" # Let the user override the test.
  5799. else
  5800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5801. for as_dir in $PATH
  5802. do
  5803. IFS=$as_save_IFS
  5804. test -z "$as_dir" && as_dir=.
  5805. for ac_exec_ext in '' $ac_executable_extensions; do
  5806. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5807. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5808. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5809. break 2
  5810. fi
  5811. done
  5812. done
  5813. IFS=$as_save_IFS
  5814. fi
  5815. fi
  5816. AR=$ac_cv_prog_AR
  5817. if test -n "$AR"; then
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5819. $as_echo "$AR" >&6; }
  5820. else
  5821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5822. $as_echo "no" >&6; }
  5823. fi
  5824. test -n "$AR" && break
  5825. done
  5826. fi
  5827. if test -z "$AR"; then
  5828. ac_ct_AR=$AR
  5829. for ac_prog in ar
  5830. do
  5831. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5832. set dummy $ac_prog; ac_word=$2
  5833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5834. $as_echo_n "checking for $ac_word... " >&6; }
  5835. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5836. $as_echo_n "(cached) " >&6
  5837. else
  5838. if test -n "$ac_ct_AR"; then
  5839. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5840. else
  5841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5842. for as_dir in $PATH
  5843. do
  5844. IFS=$as_save_IFS
  5845. test -z "$as_dir" && as_dir=.
  5846. for ac_exec_ext in '' $ac_executable_extensions; do
  5847. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5848. ac_cv_prog_ac_ct_AR="$ac_prog"
  5849. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5850. break 2
  5851. fi
  5852. done
  5853. done
  5854. IFS=$as_save_IFS
  5855. fi
  5856. fi
  5857. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5858. if test -n "$ac_ct_AR"; then
  5859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5860. $as_echo "$ac_ct_AR" >&6; }
  5861. else
  5862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5863. $as_echo "no" >&6; }
  5864. fi
  5865. test -n "$ac_ct_AR" && break
  5866. done
  5867. if test "x$ac_ct_AR" = x; then
  5868. AR="false"
  5869. else
  5870. case $cross_compiling:$ac_tool_warned in
  5871. yes:)
  5872. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5873. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5874. ac_tool_warned=yes ;;
  5875. esac
  5876. AR=$ac_ct_AR
  5877. fi
  5878. fi
  5879. : ${AR=ar}
  5880. : ${AR_FLAGS=cru}
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5882. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5883. if ${lt_cv_ar_at_file+:} false; then :
  5884. $as_echo_n "(cached) " >&6
  5885. else
  5886. lt_cv_ar_at_file=no
  5887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5888. /* end confdefs.h. */
  5889. int
  5890. main ()
  5891. {
  5892. ;
  5893. return 0;
  5894. }
  5895. _ACEOF
  5896. if ac_fn_c_try_compile "$LINENO"; then :
  5897. echo conftest.$ac_objext > conftest.lst
  5898. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5899. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5900. (eval $lt_ar_try) 2>&5
  5901. ac_status=$?
  5902. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5903. test $ac_status = 0; }
  5904. if test 0 -eq "$ac_status"; then
  5905. # Ensure the archiver fails upon bogus file names.
  5906. rm -f conftest.$ac_objext libconftest.a
  5907. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5908. (eval $lt_ar_try) 2>&5
  5909. ac_status=$?
  5910. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5911. test $ac_status = 0; }
  5912. if test 0 -ne "$ac_status"; then
  5913. lt_cv_ar_at_file=@
  5914. fi
  5915. fi
  5916. rm -f conftest.* libconftest.a
  5917. fi
  5918. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5919. fi
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5921. $as_echo "$lt_cv_ar_at_file" >&6; }
  5922. if test no = "$lt_cv_ar_at_file"; then
  5923. archiver_list_spec=
  5924. else
  5925. archiver_list_spec=$lt_cv_ar_at_file
  5926. fi
  5927. if test -n "$ac_tool_prefix"; then
  5928. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5929. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5931. $as_echo_n "checking for $ac_word... " >&6; }
  5932. if ${ac_cv_prog_STRIP+:} false; then :
  5933. $as_echo_n "(cached) " >&6
  5934. else
  5935. if test -n "$STRIP"; then
  5936. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5937. else
  5938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5939. for as_dir in $PATH
  5940. do
  5941. IFS=$as_save_IFS
  5942. test -z "$as_dir" && as_dir=.
  5943. for ac_exec_ext in '' $ac_executable_extensions; do
  5944. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5945. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5946. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5947. break 2
  5948. fi
  5949. done
  5950. done
  5951. IFS=$as_save_IFS
  5952. fi
  5953. fi
  5954. STRIP=$ac_cv_prog_STRIP
  5955. if test -n "$STRIP"; then
  5956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5957. $as_echo "$STRIP" >&6; }
  5958. else
  5959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5960. $as_echo "no" >&6; }
  5961. fi
  5962. fi
  5963. if test -z "$ac_cv_prog_STRIP"; then
  5964. ac_ct_STRIP=$STRIP
  5965. # Extract the first word of "strip", so it can be a program name with args.
  5966. set dummy strip; ac_word=$2
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5968. $as_echo_n "checking for $ac_word... " >&6; }
  5969. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5970. $as_echo_n "(cached) " >&6
  5971. else
  5972. if test -n "$ac_ct_STRIP"; then
  5973. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5974. else
  5975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5976. for as_dir in $PATH
  5977. do
  5978. IFS=$as_save_IFS
  5979. test -z "$as_dir" && as_dir=.
  5980. for ac_exec_ext in '' $ac_executable_extensions; do
  5981. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5982. ac_cv_prog_ac_ct_STRIP="strip"
  5983. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5984. break 2
  5985. fi
  5986. done
  5987. done
  5988. IFS=$as_save_IFS
  5989. fi
  5990. fi
  5991. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5992. if test -n "$ac_ct_STRIP"; then
  5993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5994. $as_echo "$ac_ct_STRIP" >&6; }
  5995. else
  5996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5997. $as_echo "no" >&6; }
  5998. fi
  5999. if test "x$ac_ct_STRIP" = x; then
  6000. STRIP=":"
  6001. else
  6002. case $cross_compiling:$ac_tool_warned in
  6003. yes:)
  6004. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6005. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6006. ac_tool_warned=yes ;;
  6007. esac
  6008. STRIP=$ac_ct_STRIP
  6009. fi
  6010. else
  6011. STRIP="$ac_cv_prog_STRIP"
  6012. fi
  6013. test -z "$STRIP" && STRIP=:
  6014. if test -n "$ac_tool_prefix"; then
  6015. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6016. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6018. $as_echo_n "checking for $ac_word... " >&6; }
  6019. if ${ac_cv_prog_RANLIB+:} false; then :
  6020. $as_echo_n "(cached) " >&6
  6021. else
  6022. if test -n "$RANLIB"; then
  6023. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6024. else
  6025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6026. for as_dir in $PATH
  6027. do
  6028. IFS=$as_save_IFS
  6029. test -z "$as_dir" && as_dir=.
  6030. for ac_exec_ext in '' $ac_executable_extensions; do
  6031. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6032. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6033. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6034. break 2
  6035. fi
  6036. done
  6037. done
  6038. IFS=$as_save_IFS
  6039. fi
  6040. fi
  6041. RANLIB=$ac_cv_prog_RANLIB
  6042. if test -n "$RANLIB"; then
  6043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6044. $as_echo "$RANLIB" >&6; }
  6045. else
  6046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6047. $as_echo "no" >&6; }
  6048. fi
  6049. fi
  6050. if test -z "$ac_cv_prog_RANLIB"; then
  6051. ac_ct_RANLIB=$RANLIB
  6052. # Extract the first word of "ranlib", so it can be a program name with args.
  6053. set dummy ranlib; ac_word=$2
  6054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6055. $as_echo_n "checking for $ac_word... " >&6; }
  6056. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6057. $as_echo_n "(cached) " >&6
  6058. else
  6059. if test -n "$ac_ct_RANLIB"; then
  6060. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6061. else
  6062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6063. for as_dir in $PATH
  6064. do
  6065. IFS=$as_save_IFS
  6066. test -z "$as_dir" && as_dir=.
  6067. for ac_exec_ext in '' $ac_executable_extensions; do
  6068. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6069. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6070. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6071. break 2
  6072. fi
  6073. done
  6074. done
  6075. IFS=$as_save_IFS
  6076. fi
  6077. fi
  6078. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6079. if test -n "$ac_ct_RANLIB"; then
  6080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6081. $as_echo "$ac_ct_RANLIB" >&6; }
  6082. else
  6083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6084. $as_echo "no" >&6; }
  6085. fi
  6086. if test "x$ac_ct_RANLIB" = x; then
  6087. RANLIB=":"
  6088. else
  6089. case $cross_compiling:$ac_tool_warned in
  6090. yes:)
  6091. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6092. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6093. ac_tool_warned=yes ;;
  6094. esac
  6095. RANLIB=$ac_ct_RANLIB
  6096. fi
  6097. else
  6098. RANLIB="$ac_cv_prog_RANLIB"
  6099. fi
  6100. test -z "$RANLIB" && RANLIB=:
  6101. # Determine commands to create old-style static archives.
  6102. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6103. old_postinstall_cmds='chmod 644 $oldlib'
  6104. old_postuninstall_cmds=
  6105. if test -n "$RANLIB"; then
  6106. case $host_os in
  6107. bitrig* | openbsd*)
  6108. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6109. ;;
  6110. *)
  6111. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6112. ;;
  6113. esac
  6114. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6115. fi
  6116. case $host_os in
  6117. darwin*)
  6118. lock_old_archive_extraction=yes ;;
  6119. *)
  6120. lock_old_archive_extraction=no ;;
  6121. esac
  6122. # If no C compiler was specified, use CC.
  6123. LTCC=${LTCC-"$CC"}
  6124. # If no C compiler flags were specified, use CFLAGS.
  6125. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6126. # Allow CC to be a program name with arguments.
  6127. compiler=$CC
  6128. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6130. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6131. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6132. $as_echo_n "(cached) " >&6
  6133. else
  6134. # These are sane defaults that work on at least a few old systems.
  6135. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6136. # Character class describing NM global symbol codes.
  6137. symcode='[BCDEGRST]'
  6138. # Regexp to match symbols that can be accessed directly from C.
  6139. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6140. # Define system-specific variables.
  6141. case $host_os in
  6142. aix*)
  6143. symcode='[BCDT]'
  6144. ;;
  6145. cygwin* | mingw* | pw32* | cegcc*)
  6146. symcode='[ABCDGISTW]'
  6147. ;;
  6148. hpux*)
  6149. if test ia64 = "$host_cpu"; then
  6150. symcode='[ABCDEGRST]'
  6151. fi
  6152. ;;
  6153. irix* | nonstopux*)
  6154. symcode='[BCDEGRST]'
  6155. ;;
  6156. osf*)
  6157. symcode='[BCDEGQRST]'
  6158. ;;
  6159. solaris*)
  6160. symcode='[BDRT]'
  6161. ;;
  6162. sco3.2v5*)
  6163. symcode='[DT]'
  6164. ;;
  6165. sysv4.2uw2*)
  6166. symcode='[DT]'
  6167. ;;
  6168. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6169. symcode='[ABDT]'
  6170. ;;
  6171. sysv4)
  6172. symcode='[DFNSTU]'
  6173. ;;
  6174. esac
  6175. # If we're using GNU nm, then use its standard symbol codes.
  6176. case `$NM -V 2>&1` in
  6177. *GNU* | *'with BFD'*)
  6178. symcode='[ABCDGIRSTW]' ;;
  6179. esac
  6180. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6181. # Gets list of data symbols to import.
  6182. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6183. # Adjust the below global symbol transforms to fixup imported variables.
  6184. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6185. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6186. lt_c_name_lib_hook="\
  6187. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6188. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6189. else
  6190. # Disable hooks by default.
  6191. lt_cv_sys_global_symbol_to_import=
  6192. lt_cdecl_hook=
  6193. lt_c_name_hook=
  6194. lt_c_name_lib_hook=
  6195. fi
  6196. # Transform an extracted symbol line into a proper C declaration.
  6197. # Some systems (esp. on ia64) link data and code symbols differently,
  6198. # so use this general approach.
  6199. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6200. $lt_cdecl_hook\
  6201. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6202. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6203. # Transform an extracted symbol line into symbol name and symbol address
  6204. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6205. $lt_c_name_hook\
  6206. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6207. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6208. # Transform an extracted symbol line into symbol name with lib prefix and
  6209. # symbol address.
  6210. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6211. $lt_c_name_lib_hook\
  6212. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6213. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6214. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6215. # Handle CRLF in mingw tool chain
  6216. opt_cr=
  6217. case $build_os in
  6218. mingw*)
  6219. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6220. ;;
  6221. esac
  6222. # Try without a prefix underscore, then with it.
  6223. for ac_symprfx in "" "_"; do
  6224. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6225. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6226. # Write the raw and C identifiers.
  6227. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6228. # Fake it for dumpbin and say T for any non-static function,
  6229. # D for any global variable and I for any imported variable.
  6230. # Also find C++ and __fastcall symbols from MSVC++,
  6231. # which start with @ or ?.
  6232. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6233. " {last_section=section; section=\$ 3};"\
  6234. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6235. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6236. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6237. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6238. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6239. " \$ 0!~/External *\|/{next};"\
  6240. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6241. " {if(hide[section]) next};"\
  6242. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6243. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6244. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6245. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6246. " ' prfx=^$ac_symprfx"
  6247. else
  6248. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6249. fi
  6250. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6251. # Check to see that the pipe works correctly.
  6252. pipe_works=no
  6253. rm -f conftest*
  6254. cat > conftest.$ac_ext <<_LT_EOF
  6255. #ifdef __cplusplus
  6256. extern "C" {
  6257. #endif
  6258. char nm_test_var;
  6259. void nm_test_func(void);
  6260. void nm_test_func(void){}
  6261. #ifdef __cplusplus
  6262. }
  6263. #endif
  6264. int main(){nm_test_var='a';nm_test_func();return(0);}
  6265. _LT_EOF
  6266. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6267. (eval $ac_compile) 2>&5
  6268. ac_status=$?
  6269. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6270. test $ac_status = 0; }; then
  6271. # Now try to grab the symbols.
  6272. nlist=conftest.nm
  6273. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6274. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6275. ac_status=$?
  6276. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6277. test $ac_status = 0; } && test -s "$nlist"; then
  6278. # Try sorting and uniquifying the output.
  6279. if sort "$nlist" | uniq > "$nlist"T; then
  6280. mv -f "$nlist"T "$nlist"
  6281. else
  6282. rm -f "$nlist"T
  6283. fi
  6284. # Make sure that we snagged all the symbols we need.
  6285. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6286. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6287. cat <<_LT_EOF > conftest.$ac_ext
  6288. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6289. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6290. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6291. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6292. # define LT_DLSYM_CONST
  6293. #elif defined __osf__
  6294. /* This system does not cope well with relocations in const data. */
  6295. # define LT_DLSYM_CONST
  6296. #else
  6297. # define LT_DLSYM_CONST const
  6298. #endif
  6299. #ifdef __cplusplus
  6300. extern "C" {
  6301. #endif
  6302. _LT_EOF
  6303. # Now generate the symbol file.
  6304. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6305. cat <<_LT_EOF >> conftest.$ac_ext
  6306. /* The mapping between symbol names and symbols. */
  6307. LT_DLSYM_CONST struct {
  6308. const char *name;
  6309. void *address;
  6310. }
  6311. lt__PROGRAM__LTX_preloaded_symbols[] =
  6312. {
  6313. { "@PROGRAM@", (void *) 0 },
  6314. _LT_EOF
  6315. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6316. cat <<\_LT_EOF >> conftest.$ac_ext
  6317. {0, (void *) 0}
  6318. };
  6319. /* This works around a problem in FreeBSD linker */
  6320. #ifdef FREEBSD_WORKAROUND
  6321. static const void *lt_preloaded_setup() {
  6322. return lt__PROGRAM__LTX_preloaded_symbols;
  6323. }
  6324. #endif
  6325. #ifdef __cplusplus
  6326. }
  6327. #endif
  6328. _LT_EOF
  6329. # Now try linking the two files.
  6330. mv conftest.$ac_objext conftstm.$ac_objext
  6331. lt_globsym_save_LIBS=$LIBS
  6332. lt_globsym_save_CFLAGS=$CFLAGS
  6333. LIBS=conftstm.$ac_objext
  6334. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6335. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6336. (eval $ac_link) 2>&5
  6337. ac_status=$?
  6338. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6339. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6340. pipe_works=yes
  6341. fi
  6342. LIBS=$lt_globsym_save_LIBS
  6343. CFLAGS=$lt_globsym_save_CFLAGS
  6344. else
  6345. echo "cannot find nm_test_func in $nlist" >&5
  6346. fi
  6347. else
  6348. echo "cannot find nm_test_var in $nlist" >&5
  6349. fi
  6350. else
  6351. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6352. fi
  6353. else
  6354. echo "$progname: failed program was:" >&5
  6355. cat conftest.$ac_ext >&5
  6356. fi
  6357. rm -rf conftest* conftst*
  6358. # Do not use the global_symbol_pipe unless it works.
  6359. if test yes = "$pipe_works"; then
  6360. break
  6361. else
  6362. lt_cv_sys_global_symbol_pipe=
  6363. fi
  6364. done
  6365. fi
  6366. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6367. lt_cv_sys_global_symbol_to_cdecl=
  6368. fi
  6369. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6371. $as_echo "failed" >&6; }
  6372. else
  6373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6374. $as_echo "ok" >&6; }
  6375. fi
  6376. # Response file support.
  6377. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6378. nm_file_list_spec='@'
  6379. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6380. nm_file_list_spec='@'
  6381. fi
  6382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6383. $as_echo_n "checking for sysroot... " >&6; }
  6384. # Check whether --with-sysroot was given.
  6385. if test "${with_sysroot+set}" = set; then :
  6386. withval=$with_sysroot;
  6387. else
  6388. with_sysroot=no
  6389. fi
  6390. lt_sysroot=
  6391. case $with_sysroot in #(
  6392. yes)
  6393. if test yes = "$GCC"; then
  6394. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6395. fi
  6396. ;; #(
  6397. /*)
  6398. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6399. ;; #(
  6400. no|'')
  6401. ;; #(
  6402. *)
  6403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6404. $as_echo "$with_sysroot" >&6; }
  6405. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6406. ;;
  6407. esac
  6408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6409. $as_echo "${lt_sysroot:-no}" >&6; }
  6410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6411. $as_echo_n "checking for a working dd... " >&6; }
  6412. if ${ac_cv_path_lt_DD+:} false; then :
  6413. $as_echo_n "(cached) " >&6
  6414. else
  6415. printf 0123456789abcdef0123456789abcdef >conftest.i
  6416. cat conftest.i conftest.i >conftest2.i
  6417. : ${lt_DD:=$DD}
  6418. if test -z "$lt_DD"; then
  6419. ac_path_lt_DD_found=false
  6420. # Loop through the user's path and test for each of PROGNAME-LIST
  6421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6422. for as_dir in $PATH
  6423. do
  6424. IFS=$as_save_IFS
  6425. test -z "$as_dir" && as_dir=.
  6426. for ac_prog in dd; do
  6427. for ac_exec_ext in '' $ac_executable_extensions; do
  6428. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6429. as_fn_executable_p "$ac_path_lt_DD" || continue
  6430. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6431. cmp -s conftest.i conftest.out \
  6432. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6433. fi
  6434. $ac_path_lt_DD_found && break 3
  6435. done
  6436. done
  6437. done
  6438. IFS=$as_save_IFS
  6439. if test -z "$ac_cv_path_lt_DD"; then
  6440. :
  6441. fi
  6442. else
  6443. ac_cv_path_lt_DD=$lt_DD
  6444. fi
  6445. rm -f conftest.i conftest2.i conftest.out
  6446. fi
  6447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6448. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6450. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6451. if ${lt_cv_truncate_bin+:} false; then :
  6452. $as_echo_n "(cached) " >&6
  6453. else
  6454. printf 0123456789abcdef0123456789abcdef >conftest.i
  6455. cat conftest.i conftest.i >conftest2.i
  6456. lt_cv_truncate_bin=
  6457. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6458. cmp -s conftest.i conftest.out \
  6459. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6460. fi
  6461. rm -f conftest.i conftest2.i conftest.out
  6462. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6463. fi
  6464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6465. $as_echo "$lt_cv_truncate_bin" >&6; }
  6466. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6467. func_cc_basename ()
  6468. {
  6469. for cc_temp in $*""; do
  6470. case $cc_temp in
  6471. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6472. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6473. \-*) ;;
  6474. *) break;;
  6475. esac
  6476. done
  6477. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6478. }
  6479. # Check whether --enable-libtool-lock was given.
  6480. if test "${enable_libtool_lock+set}" = set; then :
  6481. enableval=$enable_libtool_lock;
  6482. fi
  6483. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6484. # Some flags need to be propagated to the compiler or linker for good
  6485. # libtool support.
  6486. case $host in
  6487. ia64-*-hpux*)
  6488. # Find out what ABI is being produced by ac_compile, and set mode
  6489. # options accordingly.
  6490. echo 'int i;' > conftest.$ac_ext
  6491. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6492. (eval $ac_compile) 2>&5
  6493. ac_status=$?
  6494. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6495. test $ac_status = 0; }; then
  6496. case `/usr/bin/file conftest.$ac_objext` in
  6497. *ELF-32*)
  6498. HPUX_IA64_MODE=32
  6499. ;;
  6500. *ELF-64*)
  6501. HPUX_IA64_MODE=64
  6502. ;;
  6503. esac
  6504. fi
  6505. rm -rf conftest*
  6506. ;;
  6507. *-*-irix6*)
  6508. # Find out what ABI is being produced by ac_compile, and set linker
  6509. # options accordingly.
  6510. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6511. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6512. (eval $ac_compile) 2>&5
  6513. ac_status=$?
  6514. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6515. test $ac_status = 0; }; then
  6516. if test yes = "$lt_cv_prog_gnu_ld"; then
  6517. case `/usr/bin/file conftest.$ac_objext` in
  6518. *32-bit*)
  6519. LD="${LD-ld} -melf32bsmip"
  6520. ;;
  6521. *N32*)
  6522. LD="${LD-ld} -melf32bmipn32"
  6523. ;;
  6524. *64-bit*)
  6525. LD="${LD-ld} -melf64bmip"
  6526. ;;
  6527. esac
  6528. else
  6529. case `/usr/bin/file conftest.$ac_objext` in
  6530. *32-bit*)
  6531. LD="${LD-ld} -32"
  6532. ;;
  6533. *N32*)
  6534. LD="${LD-ld} -n32"
  6535. ;;
  6536. *64-bit*)
  6537. LD="${LD-ld} -64"
  6538. ;;
  6539. esac
  6540. fi
  6541. fi
  6542. rm -rf conftest*
  6543. ;;
  6544. mips64*-*linux*)
  6545. # Find out what ABI is being produced by ac_compile, and set linker
  6546. # options accordingly.
  6547. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6548. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6549. (eval $ac_compile) 2>&5
  6550. ac_status=$?
  6551. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6552. test $ac_status = 0; }; then
  6553. emul=elf
  6554. case `/usr/bin/file conftest.$ac_objext` in
  6555. *32-bit*)
  6556. emul="${emul}32"
  6557. ;;
  6558. *64-bit*)
  6559. emul="${emul}64"
  6560. ;;
  6561. esac
  6562. case `/usr/bin/file conftest.$ac_objext` in
  6563. *MSB*)
  6564. emul="${emul}btsmip"
  6565. ;;
  6566. *LSB*)
  6567. emul="${emul}ltsmip"
  6568. ;;
  6569. esac
  6570. case `/usr/bin/file conftest.$ac_objext` in
  6571. *N32*)
  6572. emul="${emul}n32"
  6573. ;;
  6574. esac
  6575. LD="${LD-ld} -m $emul"
  6576. fi
  6577. rm -rf conftest*
  6578. ;;
  6579. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6580. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6581. # Find out what ABI is being produced by ac_compile, and set linker
  6582. # options accordingly. Note that the listed cases only cover the
  6583. # situations where additional linker options are needed (such as when
  6584. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6585. # vice versa); the common cases where no linker options are needed do
  6586. # not appear in the list.
  6587. echo 'int i;' > conftest.$ac_ext
  6588. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6589. (eval $ac_compile) 2>&5
  6590. ac_status=$?
  6591. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6592. test $ac_status = 0; }; then
  6593. case `/usr/bin/file conftest.o` in
  6594. *32-bit*)
  6595. case $host in
  6596. x86_64-*kfreebsd*-gnu)
  6597. LD="${LD-ld} -m elf_i386_fbsd"
  6598. ;;
  6599. x86_64-*linux*)
  6600. case `/usr/bin/file conftest.o` in
  6601. *x86-64*)
  6602. LD="${LD-ld} -m elf32_x86_64"
  6603. ;;
  6604. *)
  6605. LD="${LD-ld} -m elf_i386"
  6606. ;;
  6607. esac
  6608. ;;
  6609. powerpc64le-*linux*)
  6610. LD="${LD-ld} -m elf32lppclinux"
  6611. ;;
  6612. powerpc64-*linux*)
  6613. LD="${LD-ld} -m elf32ppclinux"
  6614. ;;
  6615. s390x-*linux*)
  6616. LD="${LD-ld} -m elf_s390"
  6617. ;;
  6618. sparc64-*linux*)
  6619. LD="${LD-ld} -m elf32_sparc"
  6620. ;;
  6621. esac
  6622. ;;
  6623. *64-bit*)
  6624. case $host in
  6625. x86_64-*kfreebsd*-gnu)
  6626. LD="${LD-ld} -m elf_x86_64_fbsd"
  6627. ;;
  6628. x86_64-*linux*)
  6629. LD="${LD-ld} -m elf_x86_64"
  6630. ;;
  6631. powerpcle-*linux*)
  6632. LD="${LD-ld} -m elf64lppc"
  6633. ;;
  6634. powerpc-*linux*)
  6635. LD="${LD-ld} -m elf64ppc"
  6636. ;;
  6637. s390*-*linux*|s390*-*tpf*)
  6638. LD="${LD-ld} -m elf64_s390"
  6639. ;;
  6640. sparc*-*linux*)
  6641. LD="${LD-ld} -m elf64_sparc"
  6642. ;;
  6643. esac
  6644. ;;
  6645. esac
  6646. fi
  6647. rm -rf conftest*
  6648. ;;
  6649. *-*-sco3.2v5*)
  6650. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6651. SAVE_CFLAGS=$CFLAGS
  6652. CFLAGS="$CFLAGS -belf"
  6653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6654. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6655. if ${lt_cv_cc_needs_belf+:} false; then :
  6656. $as_echo_n "(cached) " >&6
  6657. else
  6658. ac_ext=c
  6659. ac_cpp='$CPP $CPPFLAGS'
  6660. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6661. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6662. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6664. /* end confdefs.h. */
  6665. int
  6666. main ()
  6667. {
  6668. ;
  6669. return 0;
  6670. }
  6671. _ACEOF
  6672. if ac_fn_c_try_link "$LINENO"; then :
  6673. lt_cv_cc_needs_belf=yes
  6674. else
  6675. lt_cv_cc_needs_belf=no
  6676. fi
  6677. rm -f core conftest.err conftest.$ac_objext \
  6678. conftest$ac_exeext conftest.$ac_ext
  6679. ac_ext=c
  6680. ac_cpp='$CPP $CPPFLAGS'
  6681. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6682. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6683. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6684. fi
  6685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6686. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6687. if test yes != "$lt_cv_cc_needs_belf"; then
  6688. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6689. CFLAGS=$SAVE_CFLAGS
  6690. fi
  6691. ;;
  6692. *-*solaris*)
  6693. # Find out what ABI is being produced by ac_compile, and set linker
  6694. # options accordingly.
  6695. echo 'int i;' > conftest.$ac_ext
  6696. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6697. (eval $ac_compile) 2>&5
  6698. ac_status=$?
  6699. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6700. test $ac_status = 0; }; then
  6701. case `/usr/bin/file conftest.o` in
  6702. *64-bit*)
  6703. case $lt_cv_prog_gnu_ld in
  6704. yes*)
  6705. case $host in
  6706. i?86-*-solaris*|x86_64-*-solaris*)
  6707. LD="${LD-ld} -m elf_x86_64"
  6708. ;;
  6709. sparc*-*-solaris*)
  6710. LD="${LD-ld} -m elf64_sparc"
  6711. ;;
  6712. esac
  6713. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6714. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6715. LD=${LD-ld}_sol2
  6716. fi
  6717. ;;
  6718. *)
  6719. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6720. LD="${LD-ld} -64"
  6721. fi
  6722. ;;
  6723. esac
  6724. ;;
  6725. esac
  6726. fi
  6727. rm -rf conftest*
  6728. ;;
  6729. esac
  6730. need_locks=$enable_libtool_lock
  6731. if test -n "$ac_tool_prefix"; then
  6732. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6733. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6735. $as_echo_n "checking for $ac_word... " >&6; }
  6736. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6737. $as_echo_n "(cached) " >&6
  6738. else
  6739. if test -n "$MANIFEST_TOOL"; then
  6740. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6741. else
  6742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6743. for as_dir in $PATH
  6744. do
  6745. IFS=$as_save_IFS
  6746. test -z "$as_dir" && as_dir=.
  6747. for ac_exec_ext in '' $ac_executable_extensions; do
  6748. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6749. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6750. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6751. break 2
  6752. fi
  6753. done
  6754. done
  6755. IFS=$as_save_IFS
  6756. fi
  6757. fi
  6758. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6759. if test -n "$MANIFEST_TOOL"; then
  6760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6761. $as_echo "$MANIFEST_TOOL" >&6; }
  6762. else
  6763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6764. $as_echo "no" >&6; }
  6765. fi
  6766. fi
  6767. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6768. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6769. # Extract the first word of "mt", so it can be a program name with args.
  6770. set dummy mt; ac_word=$2
  6771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6772. $as_echo_n "checking for $ac_word... " >&6; }
  6773. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6774. $as_echo_n "(cached) " >&6
  6775. else
  6776. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6777. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6778. else
  6779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6780. for as_dir in $PATH
  6781. do
  6782. IFS=$as_save_IFS
  6783. test -z "$as_dir" && as_dir=.
  6784. for ac_exec_ext in '' $ac_executable_extensions; do
  6785. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6786. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6787. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6788. break 2
  6789. fi
  6790. done
  6791. done
  6792. IFS=$as_save_IFS
  6793. fi
  6794. fi
  6795. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6796. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6798. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6799. else
  6800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6801. $as_echo "no" >&6; }
  6802. fi
  6803. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6804. MANIFEST_TOOL=":"
  6805. else
  6806. case $cross_compiling:$ac_tool_warned in
  6807. yes:)
  6808. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6809. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6810. ac_tool_warned=yes ;;
  6811. esac
  6812. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6813. fi
  6814. else
  6815. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6816. fi
  6817. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6819. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6820. if ${lt_cv_path_mainfest_tool+:} false; then :
  6821. $as_echo_n "(cached) " >&6
  6822. else
  6823. lt_cv_path_mainfest_tool=no
  6824. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6825. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6826. cat conftest.err >&5
  6827. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6828. lt_cv_path_mainfest_tool=yes
  6829. fi
  6830. rm -f conftest*
  6831. fi
  6832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6833. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6834. if test yes != "$lt_cv_path_mainfest_tool"; then
  6835. MANIFEST_TOOL=:
  6836. fi
  6837. case $host_os in
  6838. rhapsody* | darwin*)
  6839. if test -n "$ac_tool_prefix"; then
  6840. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6841. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6843. $as_echo_n "checking for $ac_word... " >&6; }
  6844. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6845. $as_echo_n "(cached) " >&6
  6846. else
  6847. if test -n "$DSYMUTIL"; then
  6848. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6849. else
  6850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6851. for as_dir in $PATH
  6852. do
  6853. IFS=$as_save_IFS
  6854. test -z "$as_dir" && as_dir=.
  6855. for ac_exec_ext in '' $ac_executable_extensions; do
  6856. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6857. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6858. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6859. break 2
  6860. fi
  6861. done
  6862. done
  6863. IFS=$as_save_IFS
  6864. fi
  6865. fi
  6866. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6867. if test -n "$DSYMUTIL"; then
  6868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6869. $as_echo "$DSYMUTIL" >&6; }
  6870. else
  6871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6872. $as_echo "no" >&6; }
  6873. fi
  6874. fi
  6875. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6876. ac_ct_DSYMUTIL=$DSYMUTIL
  6877. # Extract the first word of "dsymutil", so it can be a program name with args.
  6878. set dummy dsymutil; ac_word=$2
  6879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6880. $as_echo_n "checking for $ac_word... " >&6; }
  6881. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6882. $as_echo_n "(cached) " >&6
  6883. else
  6884. if test -n "$ac_ct_DSYMUTIL"; then
  6885. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6886. else
  6887. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6888. for as_dir in $PATH
  6889. do
  6890. IFS=$as_save_IFS
  6891. test -z "$as_dir" && as_dir=.
  6892. for ac_exec_ext in '' $ac_executable_extensions; do
  6893. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6894. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6895. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6896. break 2
  6897. fi
  6898. done
  6899. done
  6900. IFS=$as_save_IFS
  6901. fi
  6902. fi
  6903. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6904. if test -n "$ac_ct_DSYMUTIL"; then
  6905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6906. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6907. else
  6908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6909. $as_echo "no" >&6; }
  6910. fi
  6911. if test "x$ac_ct_DSYMUTIL" = x; then
  6912. DSYMUTIL=":"
  6913. else
  6914. case $cross_compiling:$ac_tool_warned in
  6915. yes:)
  6916. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6917. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6918. ac_tool_warned=yes ;;
  6919. esac
  6920. DSYMUTIL=$ac_ct_DSYMUTIL
  6921. fi
  6922. else
  6923. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6924. fi
  6925. if test -n "$ac_tool_prefix"; then
  6926. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6927. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6929. $as_echo_n "checking for $ac_word... " >&6; }
  6930. if ${ac_cv_prog_NMEDIT+:} false; then :
  6931. $as_echo_n "(cached) " >&6
  6932. else
  6933. if test -n "$NMEDIT"; then
  6934. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6935. else
  6936. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6937. for as_dir in $PATH
  6938. do
  6939. IFS=$as_save_IFS
  6940. test -z "$as_dir" && as_dir=.
  6941. for ac_exec_ext in '' $ac_executable_extensions; do
  6942. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6943. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6944. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6945. break 2
  6946. fi
  6947. done
  6948. done
  6949. IFS=$as_save_IFS
  6950. fi
  6951. fi
  6952. NMEDIT=$ac_cv_prog_NMEDIT
  6953. if test -n "$NMEDIT"; then
  6954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6955. $as_echo "$NMEDIT" >&6; }
  6956. else
  6957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6958. $as_echo "no" >&6; }
  6959. fi
  6960. fi
  6961. if test -z "$ac_cv_prog_NMEDIT"; then
  6962. ac_ct_NMEDIT=$NMEDIT
  6963. # Extract the first word of "nmedit", so it can be a program name with args.
  6964. set dummy nmedit; ac_word=$2
  6965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6966. $as_echo_n "checking for $ac_word... " >&6; }
  6967. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6968. $as_echo_n "(cached) " >&6
  6969. else
  6970. if test -n "$ac_ct_NMEDIT"; then
  6971. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6972. else
  6973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6974. for as_dir in $PATH
  6975. do
  6976. IFS=$as_save_IFS
  6977. test -z "$as_dir" && as_dir=.
  6978. for ac_exec_ext in '' $ac_executable_extensions; do
  6979. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6980. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6981. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6982. break 2
  6983. fi
  6984. done
  6985. done
  6986. IFS=$as_save_IFS
  6987. fi
  6988. fi
  6989. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6990. if test -n "$ac_ct_NMEDIT"; then
  6991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6992. $as_echo "$ac_ct_NMEDIT" >&6; }
  6993. else
  6994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6995. $as_echo "no" >&6; }
  6996. fi
  6997. if test "x$ac_ct_NMEDIT" = x; then
  6998. NMEDIT=":"
  6999. else
  7000. case $cross_compiling:$ac_tool_warned in
  7001. yes:)
  7002. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7003. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7004. ac_tool_warned=yes ;;
  7005. esac
  7006. NMEDIT=$ac_ct_NMEDIT
  7007. fi
  7008. else
  7009. NMEDIT="$ac_cv_prog_NMEDIT"
  7010. fi
  7011. if test -n "$ac_tool_prefix"; then
  7012. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7013. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7015. $as_echo_n "checking for $ac_word... " >&6; }
  7016. if ${ac_cv_prog_LIPO+:} false; then :
  7017. $as_echo_n "(cached) " >&6
  7018. else
  7019. if test -n "$LIPO"; then
  7020. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7021. else
  7022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7023. for as_dir in $PATH
  7024. do
  7025. IFS=$as_save_IFS
  7026. test -z "$as_dir" && as_dir=.
  7027. for ac_exec_ext in '' $ac_executable_extensions; do
  7028. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7029. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7030. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7031. break 2
  7032. fi
  7033. done
  7034. done
  7035. IFS=$as_save_IFS
  7036. fi
  7037. fi
  7038. LIPO=$ac_cv_prog_LIPO
  7039. if test -n "$LIPO"; then
  7040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7041. $as_echo "$LIPO" >&6; }
  7042. else
  7043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7044. $as_echo "no" >&6; }
  7045. fi
  7046. fi
  7047. if test -z "$ac_cv_prog_LIPO"; then
  7048. ac_ct_LIPO=$LIPO
  7049. # Extract the first word of "lipo", so it can be a program name with args.
  7050. set dummy lipo; ac_word=$2
  7051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7052. $as_echo_n "checking for $ac_word... " >&6; }
  7053. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7054. $as_echo_n "(cached) " >&6
  7055. else
  7056. if test -n "$ac_ct_LIPO"; then
  7057. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7058. else
  7059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7060. for as_dir in $PATH
  7061. do
  7062. IFS=$as_save_IFS
  7063. test -z "$as_dir" && as_dir=.
  7064. for ac_exec_ext in '' $ac_executable_extensions; do
  7065. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7066. ac_cv_prog_ac_ct_LIPO="lipo"
  7067. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7068. break 2
  7069. fi
  7070. done
  7071. done
  7072. IFS=$as_save_IFS
  7073. fi
  7074. fi
  7075. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7076. if test -n "$ac_ct_LIPO"; then
  7077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7078. $as_echo "$ac_ct_LIPO" >&6; }
  7079. else
  7080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7081. $as_echo "no" >&6; }
  7082. fi
  7083. if test "x$ac_ct_LIPO" = x; then
  7084. LIPO=":"
  7085. else
  7086. case $cross_compiling:$ac_tool_warned in
  7087. yes:)
  7088. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7089. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7090. ac_tool_warned=yes ;;
  7091. esac
  7092. LIPO=$ac_ct_LIPO
  7093. fi
  7094. else
  7095. LIPO="$ac_cv_prog_LIPO"
  7096. fi
  7097. if test -n "$ac_tool_prefix"; then
  7098. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7099. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7101. $as_echo_n "checking for $ac_word... " >&6; }
  7102. if ${ac_cv_prog_OTOOL+:} false; then :
  7103. $as_echo_n "(cached) " >&6
  7104. else
  7105. if test -n "$OTOOL"; then
  7106. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7107. else
  7108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7109. for as_dir in $PATH
  7110. do
  7111. IFS=$as_save_IFS
  7112. test -z "$as_dir" && as_dir=.
  7113. for ac_exec_ext in '' $ac_executable_extensions; do
  7114. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7115. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7116. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7117. break 2
  7118. fi
  7119. done
  7120. done
  7121. IFS=$as_save_IFS
  7122. fi
  7123. fi
  7124. OTOOL=$ac_cv_prog_OTOOL
  7125. if test -n "$OTOOL"; then
  7126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7127. $as_echo "$OTOOL" >&6; }
  7128. else
  7129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7130. $as_echo "no" >&6; }
  7131. fi
  7132. fi
  7133. if test -z "$ac_cv_prog_OTOOL"; then
  7134. ac_ct_OTOOL=$OTOOL
  7135. # Extract the first word of "otool", so it can be a program name with args.
  7136. set dummy otool; ac_word=$2
  7137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7138. $as_echo_n "checking for $ac_word... " >&6; }
  7139. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7140. $as_echo_n "(cached) " >&6
  7141. else
  7142. if test -n "$ac_ct_OTOOL"; then
  7143. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7144. else
  7145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7146. for as_dir in $PATH
  7147. do
  7148. IFS=$as_save_IFS
  7149. test -z "$as_dir" && as_dir=.
  7150. for ac_exec_ext in '' $ac_executable_extensions; do
  7151. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7152. ac_cv_prog_ac_ct_OTOOL="otool"
  7153. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7154. break 2
  7155. fi
  7156. done
  7157. done
  7158. IFS=$as_save_IFS
  7159. fi
  7160. fi
  7161. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7162. if test -n "$ac_ct_OTOOL"; then
  7163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7164. $as_echo "$ac_ct_OTOOL" >&6; }
  7165. else
  7166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7167. $as_echo "no" >&6; }
  7168. fi
  7169. if test "x$ac_ct_OTOOL" = x; then
  7170. OTOOL=":"
  7171. else
  7172. case $cross_compiling:$ac_tool_warned in
  7173. yes:)
  7174. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7175. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7176. ac_tool_warned=yes ;;
  7177. esac
  7178. OTOOL=$ac_ct_OTOOL
  7179. fi
  7180. else
  7181. OTOOL="$ac_cv_prog_OTOOL"
  7182. fi
  7183. if test -n "$ac_tool_prefix"; then
  7184. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7185. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7187. $as_echo_n "checking for $ac_word... " >&6; }
  7188. if ${ac_cv_prog_OTOOL64+:} false; then :
  7189. $as_echo_n "(cached) " >&6
  7190. else
  7191. if test -n "$OTOOL64"; then
  7192. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7193. else
  7194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7195. for as_dir in $PATH
  7196. do
  7197. IFS=$as_save_IFS
  7198. test -z "$as_dir" && as_dir=.
  7199. for ac_exec_ext in '' $ac_executable_extensions; do
  7200. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7201. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7202. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7203. break 2
  7204. fi
  7205. done
  7206. done
  7207. IFS=$as_save_IFS
  7208. fi
  7209. fi
  7210. OTOOL64=$ac_cv_prog_OTOOL64
  7211. if test -n "$OTOOL64"; then
  7212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7213. $as_echo "$OTOOL64" >&6; }
  7214. else
  7215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7216. $as_echo "no" >&6; }
  7217. fi
  7218. fi
  7219. if test -z "$ac_cv_prog_OTOOL64"; then
  7220. ac_ct_OTOOL64=$OTOOL64
  7221. # Extract the first word of "otool64", so it can be a program name with args.
  7222. set dummy otool64; ac_word=$2
  7223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7224. $as_echo_n "checking for $ac_word... " >&6; }
  7225. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7226. $as_echo_n "(cached) " >&6
  7227. else
  7228. if test -n "$ac_ct_OTOOL64"; then
  7229. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7230. else
  7231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7232. for as_dir in $PATH
  7233. do
  7234. IFS=$as_save_IFS
  7235. test -z "$as_dir" && as_dir=.
  7236. for ac_exec_ext in '' $ac_executable_extensions; do
  7237. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7238. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7239. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7240. break 2
  7241. fi
  7242. done
  7243. done
  7244. IFS=$as_save_IFS
  7245. fi
  7246. fi
  7247. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7248. if test -n "$ac_ct_OTOOL64"; then
  7249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7250. $as_echo "$ac_ct_OTOOL64" >&6; }
  7251. else
  7252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7253. $as_echo "no" >&6; }
  7254. fi
  7255. if test "x$ac_ct_OTOOL64" = x; then
  7256. OTOOL64=":"
  7257. else
  7258. case $cross_compiling:$ac_tool_warned in
  7259. yes:)
  7260. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7261. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7262. ac_tool_warned=yes ;;
  7263. esac
  7264. OTOOL64=$ac_ct_OTOOL64
  7265. fi
  7266. else
  7267. OTOOL64="$ac_cv_prog_OTOOL64"
  7268. fi
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7270. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7271. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7272. $as_echo_n "(cached) " >&6
  7273. else
  7274. lt_cv_apple_cc_single_mod=no
  7275. if test -z "$LT_MULTI_MODULE"; then
  7276. # By default we will add the -single_module flag. You can override
  7277. # by either setting the environment variable LT_MULTI_MODULE
  7278. # non-empty at configure time, or by adding -multi_module to the
  7279. # link flags.
  7280. rm -rf libconftest.dylib*
  7281. echo "int foo(void){return 1;}" > conftest.c
  7282. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7283. -dynamiclib -Wl,-single_module conftest.c" >&5
  7284. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7285. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7286. _lt_result=$?
  7287. # If there is a non-empty error log, and "single_module"
  7288. # appears in it, assume the flag caused a linker warning
  7289. if test -s conftest.err && $GREP single_module conftest.err; then
  7290. cat conftest.err >&5
  7291. # Otherwise, if the output was created with a 0 exit code from
  7292. # the compiler, it worked.
  7293. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7294. lt_cv_apple_cc_single_mod=yes
  7295. else
  7296. cat conftest.err >&5
  7297. fi
  7298. rm -rf libconftest.dylib*
  7299. rm -f conftest.*
  7300. fi
  7301. fi
  7302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7303. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7305. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7306. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7307. $as_echo_n "(cached) " >&6
  7308. else
  7309. lt_cv_ld_exported_symbols_list=no
  7310. save_LDFLAGS=$LDFLAGS
  7311. echo "_main" > conftest.sym
  7312. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7314. /* end confdefs.h. */
  7315. int
  7316. main ()
  7317. {
  7318. ;
  7319. return 0;
  7320. }
  7321. _ACEOF
  7322. if ac_fn_c_try_link "$LINENO"; then :
  7323. lt_cv_ld_exported_symbols_list=yes
  7324. else
  7325. lt_cv_ld_exported_symbols_list=no
  7326. fi
  7327. rm -f core conftest.err conftest.$ac_objext \
  7328. conftest$ac_exeext conftest.$ac_ext
  7329. LDFLAGS=$save_LDFLAGS
  7330. fi
  7331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7332. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7334. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7335. if ${lt_cv_ld_force_load+:} false; then :
  7336. $as_echo_n "(cached) " >&6
  7337. else
  7338. lt_cv_ld_force_load=no
  7339. cat > conftest.c << _LT_EOF
  7340. int forced_loaded() { return 2;}
  7341. _LT_EOF
  7342. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7343. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7344. echo "$AR cru libconftest.a conftest.o" >&5
  7345. $AR cru libconftest.a conftest.o 2>&5
  7346. echo "$RANLIB libconftest.a" >&5
  7347. $RANLIB libconftest.a 2>&5
  7348. cat > conftest.c << _LT_EOF
  7349. int main() { return 0;}
  7350. _LT_EOF
  7351. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7352. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7353. _lt_result=$?
  7354. if test -s conftest.err && $GREP force_load conftest.err; then
  7355. cat conftest.err >&5
  7356. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7357. lt_cv_ld_force_load=yes
  7358. else
  7359. cat conftest.err >&5
  7360. fi
  7361. rm -f conftest.err libconftest.a conftest conftest.c
  7362. rm -rf conftest.dSYM
  7363. fi
  7364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7365. $as_echo "$lt_cv_ld_force_load" >&6; }
  7366. case $host_os in
  7367. rhapsody* | darwin1.[012])
  7368. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7369. darwin1.*)
  7370. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7371. darwin*) # darwin 5.x on
  7372. # if running on 10.5 or later, the deployment target defaults
  7373. # to the OS version, if on x86, and 10.4, the deployment
  7374. # target defaults to 10.4. Don't you love it?
  7375. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7376. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7377. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7378. 10.[012][,.]*)
  7379. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7380. 10.*)
  7381. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7382. esac
  7383. ;;
  7384. esac
  7385. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7386. _lt_dar_single_mod='$single_module'
  7387. fi
  7388. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7389. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7390. else
  7391. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7392. fi
  7393. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7394. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7395. else
  7396. _lt_dsymutil=
  7397. fi
  7398. ;;
  7399. esac
  7400. # func_munge_path_list VARIABLE PATH
  7401. # -----------------------------------
  7402. # VARIABLE is name of variable containing _space_ separated list of
  7403. # directories to be munged by the contents of PATH, which is string
  7404. # having a format:
  7405. # "DIR[:DIR]:"
  7406. # string "DIR[ DIR]" will be prepended to VARIABLE
  7407. # ":DIR[:DIR]"
  7408. # string "DIR[ DIR]" will be appended to VARIABLE
  7409. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7410. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7411. # "DIRA[ DIRA]" will be appended to VARIABLE
  7412. # "DIR[:DIR]"
  7413. # VARIABLE will be replaced by "DIR[ DIR]"
  7414. func_munge_path_list ()
  7415. {
  7416. case x$2 in
  7417. x)
  7418. ;;
  7419. *:)
  7420. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7421. ;;
  7422. x:*)
  7423. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7424. ;;
  7425. *::*)
  7426. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7427. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7428. ;;
  7429. *)
  7430. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7431. ;;
  7432. esac
  7433. }
  7434. ac_ext=c
  7435. ac_cpp='$CPP $CPPFLAGS'
  7436. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7437. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7438. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7440. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7441. # On Suns, sometimes $CPP names a directory.
  7442. if test -n "$CPP" && test -d "$CPP"; then
  7443. CPP=
  7444. fi
  7445. if test -z "$CPP"; then
  7446. if ${ac_cv_prog_CPP+:} false; then :
  7447. $as_echo_n "(cached) " >&6
  7448. else
  7449. # Double quotes because CPP needs to be expanded
  7450. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7451. do
  7452. ac_preproc_ok=false
  7453. for ac_c_preproc_warn_flag in '' yes
  7454. do
  7455. # Use a header file that comes with gcc, so configuring glibc
  7456. # with a fresh cross-compiler works.
  7457. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7458. # <limits.h> exists even on freestanding compilers.
  7459. # On the NeXT, cc -E runs the code through the compiler's parser,
  7460. # not just through cpp. "Syntax error" is here to catch this case.
  7461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7462. /* end confdefs.h. */
  7463. #ifdef __STDC__
  7464. # include <limits.h>
  7465. #else
  7466. # include <assert.h>
  7467. #endif
  7468. Syntax error
  7469. _ACEOF
  7470. if ac_fn_c_try_cpp "$LINENO"; then :
  7471. else
  7472. # Broken: fails on valid input.
  7473. continue
  7474. fi
  7475. rm -f conftest.err conftest.i conftest.$ac_ext
  7476. # OK, works on sane cases. Now check whether nonexistent headers
  7477. # can be detected and how.
  7478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7479. /* end confdefs.h. */
  7480. #include <ac_nonexistent.h>
  7481. _ACEOF
  7482. if ac_fn_c_try_cpp "$LINENO"; then :
  7483. # Broken: success on invalid input.
  7484. continue
  7485. else
  7486. # Passes both tests.
  7487. ac_preproc_ok=:
  7488. break
  7489. fi
  7490. rm -f conftest.err conftest.i conftest.$ac_ext
  7491. done
  7492. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7493. rm -f conftest.i conftest.err conftest.$ac_ext
  7494. if $ac_preproc_ok; then :
  7495. break
  7496. fi
  7497. done
  7498. ac_cv_prog_CPP=$CPP
  7499. fi
  7500. CPP=$ac_cv_prog_CPP
  7501. else
  7502. ac_cv_prog_CPP=$CPP
  7503. fi
  7504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7505. $as_echo "$CPP" >&6; }
  7506. ac_preproc_ok=false
  7507. for ac_c_preproc_warn_flag in '' yes
  7508. do
  7509. # Use a header file that comes with gcc, so configuring glibc
  7510. # with a fresh cross-compiler works.
  7511. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7512. # <limits.h> exists even on freestanding compilers.
  7513. # On the NeXT, cc -E runs the code through the compiler's parser,
  7514. # not just through cpp. "Syntax error" is here to catch this case.
  7515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7516. /* end confdefs.h. */
  7517. #ifdef __STDC__
  7518. # include <limits.h>
  7519. #else
  7520. # include <assert.h>
  7521. #endif
  7522. Syntax error
  7523. _ACEOF
  7524. if ac_fn_c_try_cpp "$LINENO"; then :
  7525. else
  7526. # Broken: fails on valid input.
  7527. continue
  7528. fi
  7529. rm -f conftest.err conftest.i conftest.$ac_ext
  7530. # OK, works on sane cases. Now check whether nonexistent headers
  7531. # can be detected and how.
  7532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7533. /* end confdefs.h. */
  7534. #include <ac_nonexistent.h>
  7535. _ACEOF
  7536. if ac_fn_c_try_cpp "$LINENO"; then :
  7537. # Broken: success on invalid input.
  7538. continue
  7539. else
  7540. # Passes both tests.
  7541. ac_preproc_ok=:
  7542. break
  7543. fi
  7544. rm -f conftest.err conftest.i conftest.$ac_ext
  7545. done
  7546. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7547. rm -f conftest.i conftest.err conftest.$ac_ext
  7548. if $ac_preproc_ok; then :
  7549. else
  7550. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7551. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7552. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7553. See \`config.log' for more details" "$LINENO" 5; }
  7554. fi
  7555. ac_ext=c
  7556. ac_cpp='$CPP $CPPFLAGS'
  7557. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7558. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7559. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7561. $as_echo_n "checking for ANSI C header files... " >&6; }
  7562. if ${ac_cv_header_stdc+:} false; then :
  7563. $as_echo_n "(cached) " >&6
  7564. else
  7565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7566. /* end confdefs.h. */
  7567. #include <stdlib.h>
  7568. #include <stdarg.h>
  7569. #include <string.h>
  7570. #include <float.h>
  7571. int
  7572. main ()
  7573. {
  7574. ;
  7575. return 0;
  7576. }
  7577. _ACEOF
  7578. if ac_fn_c_try_compile "$LINENO"; then :
  7579. ac_cv_header_stdc=yes
  7580. else
  7581. ac_cv_header_stdc=no
  7582. fi
  7583. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7584. if test $ac_cv_header_stdc = yes; then
  7585. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7587. /* end confdefs.h. */
  7588. #include <string.h>
  7589. _ACEOF
  7590. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7591. $EGREP "memchr" >/dev/null 2>&1; then :
  7592. else
  7593. ac_cv_header_stdc=no
  7594. fi
  7595. rm -f conftest*
  7596. fi
  7597. if test $ac_cv_header_stdc = yes; then
  7598. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7600. /* end confdefs.h. */
  7601. #include <stdlib.h>
  7602. _ACEOF
  7603. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7604. $EGREP "free" >/dev/null 2>&1; then :
  7605. else
  7606. ac_cv_header_stdc=no
  7607. fi
  7608. rm -f conftest*
  7609. fi
  7610. if test $ac_cv_header_stdc = yes; then
  7611. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7612. if test "$cross_compiling" = yes; then :
  7613. :
  7614. else
  7615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7616. /* end confdefs.h. */
  7617. #include <ctype.h>
  7618. #include <stdlib.h>
  7619. #if ((' ' & 0x0FF) == 0x020)
  7620. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7621. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7622. #else
  7623. # define ISLOWER(c) \
  7624. (('a' <= (c) && (c) <= 'i') \
  7625. || ('j' <= (c) && (c) <= 'r') \
  7626. || ('s' <= (c) && (c) <= 'z'))
  7627. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7628. #endif
  7629. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7630. int
  7631. main ()
  7632. {
  7633. int i;
  7634. for (i = 0; i < 256; i++)
  7635. if (XOR (islower (i), ISLOWER (i))
  7636. || toupper (i) != TOUPPER (i))
  7637. return 2;
  7638. return 0;
  7639. }
  7640. _ACEOF
  7641. if ac_fn_c_try_run "$LINENO"; then :
  7642. else
  7643. ac_cv_header_stdc=no
  7644. fi
  7645. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7646. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7647. fi
  7648. fi
  7649. fi
  7650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7651. $as_echo "$ac_cv_header_stdc" >&6; }
  7652. if test $ac_cv_header_stdc = yes; then
  7653. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7654. fi
  7655. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7656. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7657. inttypes.h stdint.h unistd.h
  7658. do :
  7659. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7660. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7661. "
  7662. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7663. cat >>confdefs.h <<_ACEOF
  7664. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7665. _ACEOF
  7666. fi
  7667. done
  7668. for ac_header in dlfcn.h
  7669. do :
  7670. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7671. "
  7672. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7673. cat >>confdefs.h <<_ACEOF
  7674. #define HAVE_DLFCN_H 1
  7675. _ACEOF
  7676. fi
  7677. done
  7678. # Set options
  7679. enable_dlopen=no
  7680. enable_win32_dll=no
  7681. # Check whether --enable-shared was given.
  7682. if test "${enable_shared+set}" = set; then :
  7683. enableval=$enable_shared; p=${PACKAGE-default}
  7684. case $enableval in
  7685. yes) enable_shared=yes ;;
  7686. no) enable_shared=no ;;
  7687. *)
  7688. enable_shared=no
  7689. # Look at the argument we got. We use all the common list separators.
  7690. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7691. for pkg in $enableval; do
  7692. IFS=$lt_save_ifs
  7693. if test "X$pkg" = "X$p"; then
  7694. enable_shared=yes
  7695. fi
  7696. done
  7697. IFS=$lt_save_ifs
  7698. ;;
  7699. esac
  7700. else
  7701. enable_shared=yes
  7702. fi
  7703. # Check whether --enable-static was given.
  7704. if test "${enable_static+set}" = set; then :
  7705. enableval=$enable_static; p=${PACKAGE-default}
  7706. case $enableval in
  7707. yes) enable_static=yes ;;
  7708. no) enable_static=no ;;
  7709. *)
  7710. enable_static=no
  7711. # Look at the argument we got. We use all the common list separators.
  7712. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7713. for pkg in $enableval; do
  7714. IFS=$lt_save_ifs
  7715. if test "X$pkg" = "X$p"; then
  7716. enable_static=yes
  7717. fi
  7718. done
  7719. IFS=$lt_save_ifs
  7720. ;;
  7721. esac
  7722. else
  7723. enable_static=yes
  7724. fi
  7725. # Check whether --with-pic was given.
  7726. if test "${with_pic+set}" = set; then :
  7727. withval=$with_pic; lt_p=${PACKAGE-default}
  7728. case $withval in
  7729. yes|no) pic_mode=$withval ;;
  7730. *)
  7731. pic_mode=default
  7732. # Look at the argument we got. We use all the common list separators.
  7733. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7734. for lt_pkg in $withval; do
  7735. IFS=$lt_save_ifs
  7736. if test "X$lt_pkg" = "X$lt_p"; then
  7737. pic_mode=yes
  7738. fi
  7739. done
  7740. IFS=$lt_save_ifs
  7741. ;;
  7742. esac
  7743. else
  7744. pic_mode=default
  7745. fi
  7746. # Check whether --enable-fast-install was given.
  7747. if test "${enable_fast_install+set}" = set; then :
  7748. enableval=$enable_fast_install; p=${PACKAGE-default}
  7749. case $enableval in
  7750. yes) enable_fast_install=yes ;;
  7751. no) enable_fast_install=no ;;
  7752. *)
  7753. enable_fast_install=no
  7754. # Look at the argument we got. We use all the common list separators.
  7755. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7756. for pkg in $enableval; do
  7757. IFS=$lt_save_ifs
  7758. if test "X$pkg" = "X$p"; then
  7759. enable_fast_install=yes
  7760. fi
  7761. done
  7762. IFS=$lt_save_ifs
  7763. ;;
  7764. esac
  7765. else
  7766. enable_fast_install=yes
  7767. fi
  7768. shared_archive_member_spec=
  7769. case $host,$enable_shared in
  7770. power*-*-aix[5-9]*,yes)
  7771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7772. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7773. # Check whether --with-aix-soname was given.
  7774. if test "${with_aix_soname+set}" = set; then :
  7775. withval=$with_aix_soname; case $withval in
  7776. aix|svr4|both)
  7777. ;;
  7778. *)
  7779. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7780. ;;
  7781. esac
  7782. lt_cv_with_aix_soname=$with_aix_soname
  7783. else
  7784. if ${lt_cv_with_aix_soname+:} false; then :
  7785. $as_echo_n "(cached) " >&6
  7786. else
  7787. lt_cv_with_aix_soname=aix
  7788. fi
  7789. with_aix_soname=$lt_cv_with_aix_soname
  7790. fi
  7791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7792. $as_echo "$with_aix_soname" >&6; }
  7793. if test aix != "$with_aix_soname"; then
  7794. # For the AIX way of multilib, we name the shared archive member
  7795. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7796. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7797. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7798. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7799. if test 64 = "${OBJECT_MODE-32}"; then
  7800. shared_archive_member_spec=shr_64
  7801. else
  7802. shared_archive_member_spec=shr
  7803. fi
  7804. fi
  7805. ;;
  7806. *)
  7807. with_aix_soname=aix
  7808. ;;
  7809. esac
  7810. # This can be used to rebuild libtool when needed
  7811. LIBTOOL_DEPS=$ltmain
  7812. # Always use our own libtool.
  7813. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7814. test -z "$LN_S" && LN_S="ln -s"
  7815. if test -n "${ZSH_VERSION+set}"; then
  7816. setopt NO_GLOB_SUBST
  7817. fi
  7818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7819. $as_echo_n "checking for objdir... " >&6; }
  7820. if ${lt_cv_objdir+:} false; then :
  7821. $as_echo_n "(cached) " >&6
  7822. else
  7823. rm -f .libs 2>/dev/null
  7824. mkdir .libs 2>/dev/null
  7825. if test -d .libs; then
  7826. lt_cv_objdir=.libs
  7827. else
  7828. # MS-DOS does not allow filenames that begin with a dot.
  7829. lt_cv_objdir=_libs
  7830. fi
  7831. rmdir .libs 2>/dev/null
  7832. fi
  7833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7834. $as_echo "$lt_cv_objdir" >&6; }
  7835. objdir=$lt_cv_objdir
  7836. cat >>confdefs.h <<_ACEOF
  7837. #define LT_OBJDIR "$lt_cv_objdir/"
  7838. _ACEOF
  7839. case $host_os in
  7840. aix3*)
  7841. # AIX sometimes has problems with the GCC collect2 program. For some
  7842. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7843. # vanish in a puff of smoke.
  7844. if test set != "${COLLECT_NAMES+set}"; then
  7845. COLLECT_NAMES=
  7846. export COLLECT_NAMES
  7847. fi
  7848. ;;
  7849. esac
  7850. # Global variables:
  7851. ofile=libtool
  7852. can_build_shared=yes
  7853. # All known linkers require a '.a' archive for static linking (except MSVC,
  7854. # which needs '.lib').
  7855. libext=a
  7856. with_gnu_ld=$lt_cv_prog_gnu_ld
  7857. old_CC=$CC
  7858. old_CFLAGS=$CFLAGS
  7859. # Set sane defaults for various variables
  7860. test -z "$CC" && CC=cc
  7861. test -z "$LTCC" && LTCC=$CC
  7862. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7863. test -z "$LD" && LD=ld
  7864. test -z "$ac_objext" && ac_objext=o
  7865. func_cc_basename $compiler
  7866. cc_basename=$func_cc_basename_result
  7867. # Only perform the check for file, if the check method requires it
  7868. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7869. case $deplibs_check_method in
  7870. file_magic*)
  7871. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7873. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7874. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7875. $as_echo_n "(cached) " >&6
  7876. else
  7877. case $MAGIC_CMD in
  7878. [\\/*] | ?:[\\/]*)
  7879. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7880. ;;
  7881. *)
  7882. lt_save_MAGIC_CMD=$MAGIC_CMD
  7883. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7884. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7885. for ac_dir in $ac_dummy; do
  7886. IFS=$lt_save_ifs
  7887. test -z "$ac_dir" && ac_dir=.
  7888. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7889. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7890. if test -n "$file_magic_test_file"; then
  7891. case $deplibs_check_method in
  7892. "file_magic "*)
  7893. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7894. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7895. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7896. $EGREP "$file_magic_regex" > /dev/null; then
  7897. :
  7898. else
  7899. cat <<_LT_EOF 1>&2
  7900. *** Warning: the command libtool uses to detect shared libraries,
  7901. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7902. *** The result is that libtool may fail to recognize shared libraries
  7903. *** as such. This will affect the creation of libtool libraries that
  7904. *** depend on shared libraries, but programs linked with such libtool
  7905. *** libraries will work regardless of this problem. Nevertheless, you
  7906. *** may want to report the problem to your system manager and/or to
  7907. *** bug-libtool@gnu.org
  7908. _LT_EOF
  7909. fi ;;
  7910. esac
  7911. fi
  7912. break
  7913. fi
  7914. done
  7915. IFS=$lt_save_ifs
  7916. MAGIC_CMD=$lt_save_MAGIC_CMD
  7917. ;;
  7918. esac
  7919. fi
  7920. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7921. if test -n "$MAGIC_CMD"; then
  7922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7923. $as_echo "$MAGIC_CMD" >&6; }
  7924. else
  7925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7926. $as_echo "no" >&6; }
  7927. fi
  7928. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7929. if test -n "$ac_tool_prefix"; then
  7930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7931. $as_echo_n "checking for file... " >&6; }
  7932. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7933. $as_echo_n "(cached) " >&6
  7934. else
  7935. case $MAGIC_CMD in
  7936. [\\/*] | ?:[\\/]*)
  7937. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7938. ;;
  7939. *)
  7940. lt_save_MAGIC_CMD=$MAGIC_CMD
  7941. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7942. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7943. for ac_dir in $ac_dummy; do
  7944. IFS=$lt_save_ifs
  7945. test -z "$ac_dir" && ac_dir=.
  7946. if test -f "$ac_dir/file"; then
  7947. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7948. if test -n "$file_magic_test_file"; then
  7949. case $deplibs_check_method in
  7950. "file_magic "*)
  7951. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7952. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7953. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7954. $EGREP "$file_magic_regex" > /dev/null; then
  7955. :
  7956. else
  7957. cat <<_LT_EOF 1>&2
  7958. *** Warning: the command libtool uses to detect shared libraries,
  7959. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7960. *** The result is that libtool may fail to recognize shared libraries
  7961. *** as such. This will affect the creation of libtool libraries that
  7962. *** depend on shared libraries, but programs linked with such libtool
  7963. *** libraries will work regardless of this problem. Nevertheless, you
  7964. *** may want to report the problem to your system manager and/or to
  7965. *** bug-libtool@gnu.org
  7966. _LT_EOF
  7967. fi ;;
  7968. esac
  7969. fi
  7970. break
  7971. fi
  7972. done
  7973. IFS=$lt_save_ifs
  7974. MAGIC_CMD=$lt_save_MAGIC_CMD
  7975. ;;
  7976. esac
  7977. fi
  7978. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7979. if test -n "$MAGIC_CMD"; then
  7980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7981. $as_echo "$MAGIC_CMD" >&6; }
  7982. else
  7983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7984. $as_echo "no" >&6; }
  7985. fi
  7986. else
  7987. MAGIC_CMD=:
  7988. fi
  7989. fi
  7990. fi
  7991. ;;
  7992. esac
  7993. # Use C for the default configuration in the libtool script
  7994. lt_save_CC=$CC
  7995. ac_ext=c
  7996. ac_cpp='$CPP $CPPFLAGS'
  7997. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7998. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7999. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8000. # Source file extension for C test sources.
  8001. ac_ext=c
  8002. # Object file extension for compiled C test sources.
  8003. objext=o
  8004. objext=$objext
  8005. # Code to be used in simple compile tests
  8006. lt_simple_compile_test_code="int some_variable = 0;"
  8007. # Code to be used in simple link tests
  8008. lt_simple_link_test_code='int main(){return(0);}'
  8009. # If no C compiler was specified, use CC.
  8010. LTCC=${LTCC-"$CC"}
  8011. # If no C compiler flags were specified, use CFLAGS.
  8012. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8013. # Allow CC to be a program name with arguments.
  8014. compiler=$CC
  8015. # Save the default compiler, since it gets overwritten when the other
  8016. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8017. compiler_DEFAULT=$CC
  8018. # save warnings/boilerplate of simple test code
  8019. ac_outfile=conftest.$ac_objext
  8020. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8021. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8022. _lt_compiler_boilerplate=`cat conftest.err`
  8023. $RM conftest*
  8024. ac_outfile=conftest.$ac_objext
  8025. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8026. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8027. _lt_linker_boilerplate=`cat conftest.err`
  8028. $RM -r conftest*
  8029. ## CAVEAT EMPTOR:
  8030. ## There is no encapsulation within the following macros, do not change
  8031. ## the running order or otherwise move them around unless you know exactly
  8032. ## what you are doing...
  8033. if test -n "$compiler"; then
  8034. lt_prog_compiler_no_builtin_flag=
  8035. if test yes = "$GCC"; then
  8036. case $cc_basename in
  8037. nvcc*)
  8038. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8039. *)
  8040. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8041. esac
  8042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8043. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8044. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8045. $as_echo_n "(cached) " >&6
  8046. else
  8047. lt_cv_prog_compiler_rtti_exceptions=no
  8048. ac_outfile=conftest.$ac_objext
  8049. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8050. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8051. # Insert the option either (1) after the last *FLAGS variable, or
  8052. # (2) before a word containing "conftest.", or (3) at the end.
  8053. # Note that $ac_compile itself does not contain backslashes and begins
  8054. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8055. # The option is referenced via a variable to avoid confusing sed.
  8056. lt_compile=`echo "$ac_compile" | $SED \
  8057. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8058. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8059. -e 's:$: $lt_compiler_flag:'`
  8060. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8061. (eval "$lt_compile" 2>conftest.err)
  8062. ac_status=$?
  8063. cat conftest.err >&5
  8064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8065. if (exit $ac_status) && test -s "$ac_outfile"; then
  8066. # The compiler can only warn and ignore the option if not recognized
  8067. # So say no if there are warnings other than the usual output.
  8068. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8069. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8070. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8071. lt_cv_prog_compiler_rtti_exceptions=yes
  8072. fi
  8073. fi
  8074. $RM conftest*
  8075. fi
  8076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8077. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8078. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8079. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8080. else
  8081. :
  8082. fi
  8083. fi
  8084. lt_prog_compiler_wl=
  8085. lt_prog_compiler_pic=
  8086. lt_prog_compiler_static=
  8087. if test yes = "$GCC"; then
  8088. lt_prog_compiler_wl='-Wl,'
  8089. lt_prog_compiler_static='-static'
  8090. case $host_os in
  8091. aix*)
  8092. # All AIX code is PIC.
  8093. if test ia64 = "$host_cpu"; then
  8094. # AIX 5 now supports IA64 processor
  8095. lt_prog_compiler_static='-Bstatic'
  8096. fi
  8097. lt_prog_compiler_pic='-fPIC'
  8098. ;;
  8099. amigaos*)
  8100. case $host_cpu in
  8101. powerpc)
  8102. # see comment about AmigaOS4 .so support
  8103. lt_prog_compiler_pic='-fPIC'
  8104. ;;
  8105. m68k)
  8106. # FIXME: we need at least 68020 code to build shared libraries, but
  8107. # adding the '-m68020' flag to GCC prevents building anything better,
  8108. # like '-m68040'.
  8109. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8110. ;;
  8111. esac
  8112. ;;
  8113. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8114. # PIC is the default for these OSes.
  8115. ;;
  8116. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8117. # This hack is so that the source file can tell whether it is being
  8118. # built for inclusion in a dll (and should export symbols for example).
  8119. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8120. # (--disable-auto-import) libraries
  8121. lt_prog_compiler_pic='-DDLL_EXPORT'
  8122. case $host_os in
  8123. os2*)
  8124. lt_prog_compiler_static='$wl-static'
  8125. ;;
  8126. esac
  8127. ;;
  8128. darwin* | rhapsody*)
  8129. # PIC is the default on this platform
  8130. # Common symbols not allowed in MH_DYLIB files
  8131. lt_prog_compiler_pic='-fno-common'
  8132. ;;
  8133. haiku*)
  8134. # PIC is the default for Haiku.
  8135. # The "-static" flag exists, but is broken.
  8136. lt_prog_compiler_static=
  8137. ;;
  8138. hpux*)
  8139. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8140. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8141. # sets the default TLS model and affects inlining.
  8142. case $host_cpu in
  8143. hppa*64*)
  8144. # +Z the default
  8145. ;;
  8146. *)
  8147. lt_prog_compiler_pic='-fPIC'
  8148. ;;
  8149. esac
  8150. ;;
  8151. interix[3-9]*)
  8152. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8153. # Instead, we relocate shared libraries at runtime.
  8154. ;;
  8155. msdosdjgpp*)
  8156. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8157. # on systems that don't support them.
  8158. lt_prog_compiler_can_build_shared=no
  8159. enable_shared=no
  8160. ;;
  8161. *nto* | *qnx*)
  8162. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8163. # it will coredump.
  8164. lt_prog_compiler_pic='-fPIC -shared'
  8165. ;;
  8166. sysv4*MP*)
  8167. if test -d /usr/nec; then
  8168. lt_prog_compiler_pic=-Kconform_pic
  8169. fi
  8170. ;;
  8171. *)
  8172. lt_prog_compiler_pic='-fPIC'
  8173. ;;
  8174. esac
  8175. case $cc_basename in
  8176. nvcc*) # Cuda Compiler Driver 2.2
  8177. lt_prog_compiler_wl='-Xlinker '
  8178. if test -n "$lt_prog_compiler_pic"; then
  8179. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8180. fi
  8181. ;;
  8182. esac
  8183. else
  8184. # PORTME Check for flag to pass linker flags through the system compiler.
  8185. case $host_os in
  8186. aix*)
  8187. lt_prog_compiler_wl='-Wl,'
  8188. if test ia64 = "$host_cpu"; then
  8189. # AIX 5 now supports IA64 processor
  8190. lt_prog_compiler_static='-Bstatic'
  8191. else
  8192. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8193. fi
  8194. ;;
  8195. darwin* | rhapsody*)
  8196. # PIC is the default on this platform
  8197. # Common symbols not allowed in MH_DYLIB files
  8198. lt_prog_compiler_pic='-fno-common'
  8199. case $cc_basename in
  8200. nagfor*)
  8201. # NAG Fortran compiler
  8202. lt_prog_compiler_wl='-Wl,-Wl,,'
  8203. lt_prog_compiler_pic='-PIC'
  8204. lt_prog_compiler_static='-Bstatic'
  8205. ;;
  8206. esac
  8207. ;;
  8208. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8209. # This hack is so that the source file can tell whether it is being
  8210. # built for inclusion in a dll (and should export symbols for example).
  8211. lt_prog_compiler_pic='-DDLL_EXPORT'
  8212. case $host_os in
  8213. os2*)
  8214. lt_prog_compiler_static='$wl-static'
  8215. ;;
  8216. esac
  8217. ;;
  8218. hpux9* | hpux10* | hpux11*)
  8219. lt_prog_compiler_wl='-Wl,'
  8220. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8221. # not for PA HP-UX.
  8222. case $host_cpu in
  8223. hppa*64*|ia64*)
  8224. # +Z the default
  8225. ;;
  8226. *)
  8227. lt_prog_compiler_pic='+Z'
  8228. ;;
  8229. esac
  8230. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8231. lt_prog_compiler_static='$wl-a ${wl}archive'
  8232. ;;
  8233. irix5* | irix6* | nonstopux*)
  8234. lt_prog_compiler_wl='-Wl,'
  8235. # PIC (with -KPIC) is the default.
  8236. lt_prog_compiler_static='-non_shared'
  8237. ;;
  8238. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8239. case $cc_basename in
  8240. # old Intel for x86_64, which still supported -KPIC.
  8241. ecc*)
  8242. lt_prog_compiler_wl='-Wl,'
  8243. lt_prog_compiler_pic='-KPIC'
  8244. lt_prog_compiler_static='-static'
  8245. ;;
  8246. # icc used to be incompatible with GCC.
  8247. # ICC 10 doesn't accept -KPIC any more.
  8248. icc* | ifort*)
  8249. lt_prog_compiler_wl='-Wl,'
  8250. lt_prog_compiler_pic='-fPIC'
  8251. lt_prog_compiler_static='-static'
  8252. ;;
  8253. # Lahey Fortran 8.1.
  8254. lf95*)
  8255. lt_prog_compiler_wl='-Wl,'
  8256. lt_prog_compiler_pic='--shared'
  8257. lt_prog_compiler_static='--static'
  8258. ;;
  8259. nagfor*)
  8260. # NAG Fortran compiler
  8261. lt_prog_compiler_wl='-Wl,-Wl,,'
  8262. lt_prog_compiler_pic='-PIC'
  8263. lt_prog_compiler_static='-Bstatic'
  8264. ;;
  8265. tcc*)
  8266. # Fabrice Bellard et al's Tiny C Compiler
  8267. lt_prog_compiler_wl='-Wl,'
  8268. lt_prog_compiler_pic='-fPIC'
  8269. lt_prog_compiler_static='-static'
  8270. ;;
  8271. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8272. # Portland Group compilers (*not* the Pentium gcc compiler,
  8273. # which looks to be a dead project)
  8274. lt_prog_compiler_wl='-Wl,'
  8275. lt_prog_compiler_pic='-fpic'
  8276. lt_prog_compiler_static='-Bstatic'
  8277. ;;
  8278. ccc*)
  8279. lt_prog_compiler_wl='-Wl,'
  8280. # All Alpha code is PIC.
  8281. lt_prog_compiler_static='-non_shared'
  8282. ;;
  8283. xl* | bgxl* | bgf* | mpixl*)
  8284. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8285. lt_prog_compiler_wl='-Wl,'
  8286. lt_prog_compiler_pic='-qpic'
  8287. lt_prog_compiler_static='-qstaticlink'
  8288. ;;
  8289. *)
  8290. case `$CC -V 2>&1 | sed 5q` in
  8291. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8292. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8293. lt_prog_compiler_pic='-KPIC'
  8294. lt_prog_compiler_static='-Bstatic'
  8295. lt_prog_compiler_wl=''
  8296. ;;
  8297. *Sun\ F* | *Sun*Fortran*)
  8298. lt_prog_compiler_pic='-KPIC'
  8299. lt_prog_compiler_static='-Bstatic'
  8300. lt_prog_compiler_wl='-Qoption ld '
  8301. ;;
  8302. *Sun\ C*)
  8303. # Sun C 5.9
  8304. lt_prog_compiler_pic='-KPIC'
  8305. lt_prog_compiler_static='-Bstatic'
  8306. lt_prog_compiler_wl='-Wl,'
  8307. ;;
  8308. *Intel*\ [CF]*Compiler*)
  8309. lt_prog_compiler_wl='-Wl,'
  8310. lt_prog_compiler_pic='-fPIC'
  8311. lt_prog_compiler_static='-static'
  8312. ;;
  8313. *Portland\ Group*)
  8314. lt_prog_compiler_wl='-Wl,'
  8315. lt_prog_compiler_pic='-fpic'
  8316. lt_prog_compiler_static='-Bstatic'
  8317. ;;
  8318. esac
  8319. ;;
  8320. esac
  8321. ;;
  8322. newsos6)
  8323. lt_prog_compiler_pic='-KPIC'
  8324. lt_prog_compiler_static='-Bstatic'
  8325. ;;
  8326. *nto* | *qnx*)
  8327. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8328. # it will coredump.
  8329. lt_prog_compiler_pic='-fPIC -shared'
  8330. ;;
  8331. osf3* | osf4* | osf5*)
  8332. lt_prog_compiler_wl='-Wl,'
  8333. # All OSF/1 code is PIC.
  8334. lt_prog_compiler_static='-non_shared'
  8335. ;;
  8336. rdos*)
  8337. lt_prog_compiler_static='-non_shared'
  8338. ;;
  8339. solaris*)
  8340. lt_prog_compiler_pic='-KPIC'
  8341. lt_prog_compiler_static='-Bstatic'
  8342. case $cc_basename in
  8343. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8344. lt_prog_compiler_wl='-Qoption ld ';;
  8345. *)
  8346. lt_prog_compiler_wl='-Wl,';;
  8347. esac
  8348. ;;
  8349. sunos4*)
  8350. lt_prog_compiler_wl='-Qoption ld '
  8351. lt_prog_compiler_pic='-PIC'
  8352. lt_prog_compiler_static='-Bstatic'
  8353. ;;
  8354. sysv4 | sysv4.2uw2* | sysv4.3*)
  8355. lt_prog_compiler_wl='-Wl,'
  8356. lt_prog_compiler_pic='-KPIC'
  8357. lt_prog_compiler_static='-Bstatic'
  8358. ;;
  8359. sysv4*MP*)
  8360. if test -d /usr/nec; then
  8361. lt_prog_compiler_pic='-Kconform_pic'
  8362. lt_prog_compiler_static='-Bstatic'
  8363. fi
  8364. ;;
  8365. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8366. lt_prog_compiler_wl='-Wl,'
  8367. lt_prog_compiler_pic='-KPIC'
  8368. lt_prog_compiler_static='-Bstatic'
  8369. ;;
  8370. unicos*)
  8371. lt_prog_compiler_wl='-Wl,'
  8372. lt_prog_compiler_can_build_shared=no
  8373. ;;
  8374. uts4*)
  8375. lt_prog_compiler_pic='-pic'
  8376. lt_prog_compiler_static='-Bstatic'
  8377. ;;
  8378. *)
  8379. lt_prog_compiler_can_build_shared=no
  8380. ;;
  8381. esac
  8382. fi
  8383. case $host_os in
  8384. # For platforms that do not support PIC, -DPIC is meaningless:
  8385. *djgpp*)
  8386. lt_prog_compiler_pic=
  8387. ;;
  8388. *)
  8389. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8390. ;;
  8391. esac
  8392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8393. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8394. if ${lt_cv_prog_compiler_pic+:} false; then :
  8395. $as_echo_n "(cached) " >&6
  8396. else
  8397. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8398. fi
  8399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8400. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8401. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8402. #
  8403. # Check to make sure the PIC flag actually works.
  8404. #
  8405. if test -n "$lt_prog_compiler_pic"; then
  8406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8407. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8408. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8409. $as_echo_n "(cached) " >&6
  8410. else
  8411. lt_cv_prog_compiler_pic_works=no
  8412. ac_outfile=conftest.$ac_objext
  8413. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8414. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8415. # Insert the option either (1) after the last *FLAGS variable, or
  8416. # (2) before a word containing "conftest.", or (3) at the end.
  8417. # Note that $ac_compile itself does not contain backslashes and begins
  8418. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8419. # The option is referenced via a variable to avoid confusing sed.
  8420. lt_compile=`echo "$ac_compile" | $SED \
  8421. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8422. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8423. -e 's:$: $lt_compiler_flag:'`
  8424. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8425. (eval "$lt_compile" 2>conftest.err)
  8426. ac_status=$?
  8427. cat conftest.err >&5
  8428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8429. if (exit $ac_status) && test -s "$ac_outfile"; then
  8430. # The compiler can only warn and ignore the option if not recognized
  8431. # So say no if there are warnings other than the usual output.
  8432. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8433. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8434. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8435. lt_cv_prog_compiler_pic_works=yes
  8436. fi
  8437. fi
  8438. $RM conftest*
  8439. fi
  8440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8441. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8442. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8443. case $lt_prog_compiler_pic in
  8444. "" | " "*) ;;
  8445. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8446. esac
  8447. else
  8448. lt_prog_compiler_pic=
  8449. lt_prog_compiler_can_build_shared=no
  8450. fi
  8451. fi
  8452. #
  8453. # Check to make sure the static flag actually works.
  8454. #
  8455. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8457. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8458. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8459. $as_echo_n "(cached) " >&6
  8460. else
  8461. lt_cv_prog_compiler_static_works=no
  8462. save_LDFLAGS=$LDFLAGS
  8463. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8464. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8465. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8466. # The linker can only warn and ignore the option if not recognized
  8467. # So say no if there are warnings
  8468. if test -s conftest.err; then
  8469. # Append any errors to the config.log.
  8470. cat conftest.err 1>&5
  8471. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8472. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8473. if diff conftest.exp conftest.er2 >/dev/null; then
  8474. lt_cv_prog_compiler_static_works=yes
  8475. fi
  8476. else
  8477. lt_cv_prog_compiler_static_works=yes
  8478. fi
  8479. fi
  8480. $RM -r conftest*
  8481. LDFLAGS=$save_LDFLAGS
  8482. fi
  8483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8484. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8485. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8486. :
  8487. else
  8488. lt_prog_compiler_static=
  8489. fi
  8490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8491. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8492. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8493. $as_echo_n "(cached) " >&6
  8494. else
  8495. lt_cv_prog_compiler_c_o=no
  8496. $RM -r conftest 2>/dev/null
  8497. mkdir conftest
  8498. cd conftest
  8499. mkdir out
  8500. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8501. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8502. # Insert the option either (1) after the last *FLAGS variable, or
  8503. # (2) before a word containing "conftest.", or (3) at the end.
  8504. # Note that $ac_compile itself does not contain backslashes and begins
  8505. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8506. lt_compile=`echo "$ac_compile" | $SED \
  8507. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8508. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8509. -e 's:$: $lt_compiler_flag:'`
  8510. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8511. (eval "$lt_compile" 2>out/conftest.err)
  8512. ac_status=$?
  8513. cat out/conftest.err >&5
  8514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8515. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8516. then
  8517. # The compiler can only warn and ignore the option if not recognized
  8518. # So say no if there are warnings
  8519. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8520. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8521. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8522. lt_cv_prog_compiler_c_o=yes
  8523. fi
  8524. fi
  8525. chmod u+w . 2>&5
  8526. $RM conftest*
  8527. # SGI C++ compiler will create directory out/ii_files/ for
  8528. # template instantiation
  8529. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8530. $RM out/* && rmdir out
  8531. cd ..
  8532. $RM -r conftest
  8533. $RM conftest*
  8534. fi
  8535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8536. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8538. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8539. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8540. $as_echo_n "(cached) " >&6
  8541. else
  8542. lt_cv_prog_compiler_c_o=no
  8543. $RM -r conftest 2>/dev/null
  8544. mkdir conftest
  8545. cd conftest
  8546. mkdir out
  8547. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8548. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8549. # Insert the option either (1) after the last *FLAGS variable, or
  8550. # (2) before a word containing "conftest.", or (3) at the end.
  8551. # Note that $ac_compile itself does not contain backslashes and begins
  8552. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8553. lt_compile=`echo "$ac_compile" | $SED \
  8554. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8555. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8556. -e 's:$: $lt_compiler_flag:'`
  8557. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8558. (eval "$lt_compile" 2>out/conftest.err)
  8559. ac_status=$?
  8560. cat out/conftest.err >&5
  8561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8562. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8563. then
  8564. # The compiler can only warn and ignore the option if not recognized
  8565. # So say no if there are warnings
  8566. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8567. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8568. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8569. lt_cv_prog_compiler_c_o=yes
  8570. fi
  8571. fi
  8572. chmod u+w . 2>&5
  8573. $RM conftest*
  8574. # SGI C++ compiler will create directory out/ii_files/ for
  8575. # template instantiation
  8576. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8577. $RM out/* && rmdir out
  8578. cd ..
  8579. $RM -r conftest
  8580. $RM conftest*
  8581. fi
  8582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8583. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8584. hard_links=nottested
  8585. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8586. # do not overwrite the value of need_locks provided by the user
  8587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8588. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8589. hard_links=yes
  8590. $RM conftest*
  8591. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8592. touch conftest.a
  8593. ln conftest.a conftest.b 2>&5 || hard_links=no
  8594. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8596. $as_echo "$hard_links" >&6; }
  8597. if test no = "$hard_links"; then
  8598. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8599. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8600. need_locks=warn
  8601. fi
  8602. else
  8603. need_locks=no
  8604. fi
  8605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8606. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8607. runpath_var=
  8608. allow_undefined_flag=
  8609. always_export_symbols=no
  8610. archive_cmds=
  8611. archive_expsym_cmds=
  8612. compiler_needs_object=no
  8613. enable_shared_with_static_runtimes=no
  8614. export_dynamic_flag_spec=
  8615. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8616. hardcode_automatic=no
  8617. hardcode_direct=no
  8618. hardcode_direct_absolute=no
  8619. hardcode_libdir_flag_spec=
  8620. hardcode_libdir_separator=
  8621. hardcode_minus_L=no
  8622. hardcode_shlibpath_var=unsupported
  8623. inherit_rpath=no
  8624. link_all_deplibs=unknown
  8625. module_cmds=
  8626. module_expsym_cmds=
  8627. old_archive_from_new_cmds=
  8628. old_archive_from_expsyms_cmds=
  8629. thread_safe_flag_spec=
  8630. whole_archive_flag_spec=
  8631. # include_expsyms should be a list of space-separated symbols to be *always*
  8632. # included in the symbol list
  8633. include_expsyms=
  8634. # exclude_expsyms can be an extended regexp of symbols to exclude
  8635. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8636. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8637. # as well as any symbol that contains 'd'.
  8638. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8639. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8640. # platforms (ab)use it in PIC code, but their linkers get confused if
  8641. # the symbol is explicitly referenced. Since portable code cannot
  8642. # rely on this symbol name, it's probably fine to never include it in
  8643. # preloaded symbol tables.
  8644. # Exclude shared library initialization/finalization symbols.
  8645. extract_expsyms_cmds=
  8646. case $host_os in
  8647. cygwin* | mingw* | pw32* | cegcc*)
  8648. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8649. # When not using gcc, we currently assume that we are using
  8650. # Microsoft Visual C++.
  8651. if test yes != "$GCC"; then
  8652. with_gnu_ld=no
  8653. fi
  8654. ;;
  8655. interix*)
  8656. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8657. with_gnu_ld=yes
  8658. ;;
  8659. openbsd* | bitrig*)
  8660. with_gnu_ld=no
  8661. ;;
  8662. linux* | k*bsd*-gnu | gnu*)
  8663. link_all_deplibs=no
  8664. ;;
  8665. esac
  8666. ld_shlibs=yes
  8667. # On some targets, GNU ld is compatible enough with the native linker
  8668. # that we're better off using the native interface for both.
  8669. lt_use_gnu_ld_interface=no
  8670. if test yes = "$with_gnu_ld"; then
  8671. case $host_os in
  8672. aix*)
  8673. # The AIX port of GNU ld has always aspired to compatibility
  8674. # with the native linker. However, as the warning in the GNU ld
  8675. # block says, versions before 2.19.5* couldn't really create working
  8676. # shared libraries, regardless of the interface used.
  8677. case `$LD -v 2>&1` in
  8678. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8679. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8680. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8681. *)
  8682. lt_use_gnu_ld_interface=yes
  8683. ;;
  8684. esac
  8685. ;;
  8686. *)
  8687. lt_use_gnu_ld_interface=yes
  8688. ;;
  8689. esac
  8690. fi
  8691. if test yes = "$lt_use_gnu_ld_interface"; then
  8692. # If archive_cmds runs LD, not CC, wlarc should be empty
  8693. wlarc='$wl'
  8694. # Set some defaults for GNU ld with shared library support. These
  8695. # are reset later if shared libraries are not supported. Putting them
  8696. # here allows them to be overridden if necessary.
  8697. runpath_var=LD_RUN_PATH
  8698. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8699. export_dynamic_flag_spec='$wl--export-dynamic'
  8700. # ancient GNU ld didn't support --whole-archive et. al.
  8701. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8702. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8703. else
  8704. whole_archive_flag_spec=
  8705. fi
  8706. supports_anon_versioning=no
  8707. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8708. *GNU\ gold*) supports_anon_versioning=yes ;;
  8709. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8710. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8711. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8712. *\ 2.11.*) ;; # other 2.11 versions
  8713. *) supports_anon_versioning=yes ;;
  8714. esac
  8715. # See if GNU ld supports shared libraries.
  8716. case $host_os in
  8717. aix[3-9]*)
  8718. # On AIX/PPC, the GNU linker is very broken
  8719. if test ia64 != "$host_cpu"; then
  8720. ld_shlibs=no
  8721. cat <<_LT_EOF 1>&2
  8722. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8723. *** to be unable to reliably create shared libraries on AIX.
  8724. *** Therefore, libtool is disabling shared libraries support. If you
  8725. *** really care for shared libraries, you may want to install binutils
  8726. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8727. *** You will then need to restart the configuration process.
  8728. _LT_EOF
  8729. fi
  8730. ;;
  8731. amigaos*)
  8732. case $host_cpu in
  8733. powerpc)
  8734. # see comment about AmigaOS4 .so support
  8735. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8736. archive_expsym_cmds=''
  8737. ;;
  8738. m68k)
  8739. 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)'
  8740. hardcode_libdir_flag_spec='-L$libdir'
  8741. hardcode_minus_L=yes
  8742. ;;
  8743. esac
  8744. ;;
  8745. beos*)
  8746. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8747. allow_undefined_flag=unsupported
  8748. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8749. # support --undefined. This deserves some investigation. FIXME
  8750. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8751. else
  8752. ld_shlibs=no
  8753. fi
  8754. ;;
  8755. cygwin* | mingw* | pw32* | cegcc*)
  8756. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8757. # as there is no search path for DLLs.
  8758. hardcode_libdir_flag_spec='-L$libdir'
  8759. export_dynamic_flag_spec='$wl--export-all-symbols'
  8760. allow_undefined_flag=unsupported
  8761. always_export_symbols=no
  8762. enable_shared_with_static_runtimes=yes
  8763. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8764. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8765. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8766. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8767. # If the export-symbols file already is a .def file, use it as
  8768. # is; otherwise, prepend EXPORTS...
  8769. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8770. cp $export_symbols $output_objdir/$soname.def;
  8771. else
  8772. echo EXPORTS > $output_objdir/$soname.def;
  8773. cat $export_symbols >> $output_objdir/$soname.def;
  8774. fi~
  8775. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8776. else
  8777. ld_shlibs=no
  8778. fi
  8779. ;;
  8780. haiku*)
  8781. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8782. link_all_deplibs=yes
  8783. ;;
  8784. os2*)
  8785. hardcode_libdir_flag_spec='-L$libdir'
  8786. hardcode_minus_L=yes
  8787. allow_undefined_flag=unsupported
  8788. shrext_cmds=.dll
  8789. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8790. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8791. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8792. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8793. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8794. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8795. emximp -o $lib $output_objdir/$libname.def'
  8796. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8797. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8798. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8799. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8800. prefix_cmds="$SED"~
  8801. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8802. prefix_cmds="$prefix_cmds -e 1d";
  8803. fi~
  8804. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8805. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8806. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8807. emximp -o $lib $output_objdir/$libname.def'
  8808. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8809. enable_shared_with_static_runtimes=yes
  8810. ;;
  8811. interix[3-9]*)
  8812. hardcode_direct=no
  8813. hardcode_shlibpath_var=no
  8814. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8815. export_dynamic_flag_spec='$wl-E'
  8816. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8817. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8818. # default) and relocated if they conflict, which is a slow very memory
  8819. # consuming and fragmenting process. To avoid this, we pick a random,
  8820. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8821. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8822. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8823. 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'
  8824. ;;
  8825. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8826. tmp_diet=no
  8827. if test linux-dietlibc = "$host_os"; then
  8828. case $cc_basename in
  8829. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8830. esac
  8831. fi
  8832. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8833. && test no = "$tmp_diet"
  8834. then
  8835. tmp_addflag=' $pic_flag'
  8836. tmp_sharedflag='-shared'
  8837. case $cc_basename,$host_cpu in
  8838. pgcc*) # Portland Group C compiler
  8839. 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'
  8840. tmp_addflag=' $pic_flag'
  8841. ;;
  8842. pgf77* | pgf90* | pgf95* | pgfortran*)
  8843. # Portland Group f77 and f90 compilers
  8844. 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'
  8845. tmp_addflag=' $pic_flag -Mnomain' ;;
  8846. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8847. tmp_addflag=' -i_dynamic' ;;
  8848. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8849. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8850. ifc* | ifort*) # Intel Fortran compiler
  8851. tmp_addflag=' -nofor_main' ;;
  8852. lf95*) # Lahey Fortran 8.1
  8853. whole_archive_flag_spec=
  8854. tmp_sharedflag='--shared' ;;
  8855. nagfor*) # NAGFOR 5.3
  8856. tmp_sharedflag='-Wl,-shared' ;;
  8857. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8858. tmp_sharedflag='-qmkshrobj'
  8859. tmp_addflag= ;;
  8860. nvcc*) # Cuda Compiler Driver 2.2
  8861. 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'
  8862. compiler_needs_object=yes
  8863. ;;
  8864. esac
  8865. case `$CC -V 2>&1 | sed 5q` in
  8866. *Sun\ C*) # Sun C 5.9
  8867. 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'
  8868. compiler_needs_object=yes
  8869. tmp_sharedflag='-G' ;;
  8870. *Sun\ F*) # Sun Fortran 8.3
  8871. tmp_sharedflag='-G' ;;
  8872. esac
  8873. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8874. if test yes = "$supports_anon_versioning"; then
  8875. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8876. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8877. echo "local: *; };" >> $output_objdir/$libname.ver~
  8878. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8879. fi
  8880. case $cc_basename in
  8881. tcc*)
  8882. export_dynamic_flag_spec='-rdynamic'
  8883. ;;
  8884. xlf* | bgf* | bgxlf* | mpixlf*)
  8885. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8886. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8887. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8888. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8889. if test yes = "$supports_anon_versioning"; then
  8890. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8891. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8892. echo "local: *; };" >> $output_objdir/$libname.ver~
  8893. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8894. fi
  8895. ;;
  8896. esac
  8897. else
  8898. ld_shlibs=no
  8899. fi
  8900. ;;
  8901. netbsd* | netbsdelf*-gnu)
  8902. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8903. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8904. wlarc=
  8905. else
  8906. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8907. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8908. fi
  8909. ;;
  8910. solaris*)
  8911. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8912. ld_shlibs=no
  8913. cat <<_LT_EOF 1>&2
  8914. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8915. *** create shared libraries on Solaris systems. Therefore, libtool
  8916. *** is disabling shared libraries support. We urge you to upgrade GNU
  8917. *** binutils to release 2.9.1 or newer. Another option is to modify
  8918. *** your PATH or compiler configuration so that the native linker is
  8919. *** used, and then restart.
  8920. _LT_EOF
  8921. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8922. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8923. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8924. else
  8925. ld_shlibs=no
  8926. fi
  8927. ;;
  8928. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8929. case `$LD -v 2>&1` in
  8930. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8931. ld_shlibs=no
  8932. cat <<_LT_EOF 1>&2
  8933. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8934. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8935. *** is disabling shared libraries support. We urge you to upgrade GNU
  8936. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8937. *** your PATH or compiler configuration so that the native linker is
  8938. *** used, and then restart.
  8939. _LT_EOF
  8940. ;;
  8941. *)
  8942. # For security reasons, it is highly recommended that you always
  8943. # use absolute paths for naming shared libraries, and exclude the
  8944. # DT_RUNPATH tag from executables and libraries. But doing so
  8945. # requires that you compile everything twice, which is a pain.
  8946. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8947. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8948. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8949. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8950. else
  8951. ld_shlibs=no
  8952. fi
  8953. ;;
  8954. esac
  8955. ;;
  8956. sunos4*)
  8957. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8958. wlarc=
  8959. hardcode_direct=yes
  8960. hardcode_shlibpath_var=no
  8961. ;;
  8962. *)
  8963. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8964. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8965. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8966. else
  8967. ld_shlibs=no
  8968. fi
  8969. ;;
  8970. esac
  8971. if test no = "$ld_shlibs"; then
  8972. runpath_var=
  8973. hardcode_libdir_flag_spec=
  8974. export_dynamic_flag_spec=
  8975. whole_archive_flag_spec=
  8976. fi
  8977. else
  8978. # PORTME fill in a description of your system's linker (not GNU ld)
  8979. case $host_os in
  8980. aix3*)
  8981. allow_undefined_flag=unsupported
  8982. always_export_symbols=yes
  8983. 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'
  8984. # Note: this linker hardcodes the directories in LIBPATH if there
  8985. # are no directories specified by -L.
  8986. hardcode_minus_L=yes
  8987. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8988. # Neither direct hardcoding nor static linking is supported with a
  8989. # broken collect2.
  8990. hardcode_direct=unsupported
  8991. fi
  8992. ;;
  8993. aix[4-9]*)
  8994. if test ia64 = "$host_cpu"; then
  8995. # On IA64, the linker does run time linking by default, so we don't
  8996. # have to do anything special.
  8997. aix_use_runtimelinking=no
  8998. exp_sym_flag='-Bexport'
  8999. no_entry_flag=
  9000. else
  9001. # If we're using GNU nm, then we don't want the "-C" option.
  9002. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9003. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9004. # weak defined symbols like other global defined symbols, whereas
  9005. # GNU nm marks them as "W".
  9006. # While the 'weak' keyword is ignored in the Export File, we need
  9007. # it in the Import File for the 'aix-soname' feature, so we have
  9008. # to replace the "-B" option with "-P" for AIX nm.
  9009. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9010. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  9011. else
  9012. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  9013. fi
  9014. aix_use_runtimelinking=no
  9015. # Test if we are trying to use run time linking or normal
  9016. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9017. # have runtime linking enabled, and use it for executables.
  9018. # For shared libraries, we enable/disable runtime linking
  9019. # depending on the kind of the shared library created -
  9020. # when "with_aix_soname,aix_use_runtimelinking" is:
  9021. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9022. # "aix,yes" lib.so shared, rtl:yes, for executables
  9023. # lib.a static archive
  9024. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9025. # lib.a(lib.so.V) shared, rtl:no, for executables
  9026. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9027. # lib.a(lib.so.V) shared, rtl:no
  9028. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9029. # lib.a static archive
  9030. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9031. for ld_flag in $LDFLAGS; do
  9032. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9033. aix_use_runtimelinking=yes
  9034. break
  9035. fi
  9036. done
  9037. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9038. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9039. # so we don't have lib.a shared libs to link our executables.
  9040. # We have to force runtime linking in this case.
  9041. aix_use_runtimelinking=yes
  9042. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9043. fi
  9044. ;;
  9045. esac
  9046. exp_sym_flag='-bexport'
  9047. no_entry_flag='-bnoentry'
  9048. fi
  9049. # When large executables or shared objects are built, AIX ld can
  9050. # have problems creating the table of contents. If linking a library
  9051. # or program results in "error TOC overflow" add -mminimal-toc to
  9052. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9053. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9054. archive_cmds=''
  9055. hardcode_direct=yes
  9056. hardcode_direct_absolute=yes
  9057. hardcode_libdir_separator=':'
  9058. link_all_deplibs=yes
  9059. file_list_spec='$wl-f,'
  9060. case $with_aix_soname,$aix_use_runtimelinking in
  9061. aix,*) ;; # traditional, no import file
  9062. svr4,* | *,yes) # use import file
  9063. # The Import File defines what to hardcode.
  9064. hardcode_direct=no
  9065. hardcode_direct_absolute=no
  9066. ;;
  9067. esac
  9068. if test yes = "$GCC"; then
  9069. case $host_os in aix4.[012]|aix4.[012].*)
  9070. # We only want to do this on AIX 4.2 and lower, the check
  9071. # below for broken collect2 doesn't work under 4.3+
  9072. collect2name=`$CC -print-prog-name=collect2`
  9073. if test -f "$collect2name" &&
  9074. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9075. then
  9076. # We have reworked collect2
  9077. :
  9078. else
  9079. # We have old collect2
  9080. hardcode_direct=unsupported
  9081. # It fails to find uninstalled libraries when the uninstalled
  9082. # path is not listed in the libpath. Setting hardcode_minus_L
  9083. # to unsupported forces relinking
  9084. hardcode_minus_L=yes
  9085. hardcode_libdir_flag_spec='-L$libdir'
  9086. hardcode_libdir_separator=
  9087. fi
  9088. ;;
  9089. esac
  9090. shared_flag='-shared'
  9091. if test yes = "$aix_use_runtimelinking"; then
  9092. shared_flag="$shared_flag "'$wl-G'
  9093. fi
  9094. # Need to ensure runtime linking is disabled for the traditional
  9095. # shared library, or the linker may eventually find shared libraries
  9096. # /with/ Import File - we do not want to mix them.
  9097. shared_flag_aix='-shared'
  9098. shared_flag_svr4='-shared $wl-G'
  9099. else
  9100. # not using gcc
  9101. if test ia64 = "$host_cpu"; then
  9102. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9103. # chokes on -Wl,-G. The following line is correct:
  9104. shared_flag='-G'
  9105. else
  9106. if test yes = "$aix_use_runtimelinking"; then
  9107. shared_flag='$wl-G'
  9108. else
  9109. shared_flag='$wl-bM:SRE'
  9110. fi
  9111. shared_flag_aix='$wl-bM:SRE'
  9112. shared_flag_svr4='$wl-G'
  9113. fi
  9114. fi
  9115. export_dynamic_flag_spec='$wl-bexpall'
  9116. # It seems that -bexpall does not export symbols beginning with
  9117. # underscore (_), so it is better to generate a list of symbols to export.
  9118. always_export_symbols=yes
  9119. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9120. # Warning - without using the other runtime loading flags (-brtl),
  9121. # -berok will link without error, but may produce a broken library.
  9122. allow_undefined_flag='-berok'
  9123. # Determine the default libpath from the value encoded in an
  9124. # empty executable.
  9125. if test set = "${lt_cv_aix_libpath+set}"; then
  9126. aix_libpath=$lt_cv_aix_libpath
  9127. else
  9128. if ${lt_cv_aix_libpath_+:} false; then :
  9129. $as_echo_n "(cached) " >&6
  9130. else
  9131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9132. /* end confdefs.h. */
  9133. int
  9134. main ()
  9135. {
  9136. ;
  9137. return 0;
  9138. }
  9139. _ACEOF
  9140. if ac_fn_c_try_link "$LINENO"; then :
  9141. lt_aix_libpath_sed='
  9142. /Import File Strings/,/^$/ {
  9143. /^0/ {
  9144. s/^0 *\([^ ]*\) *$/\1/
  9145. p
  9146. }
  9147. }'
  9148. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9149. # Check for a 64-bit object if we didn't find anything.
  9150. if test -z "$lt_cv_aix_libpath_"; then
  9151. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9152. fi
  9153. fi
  9154. rm -f core conftest.err conftest.$ac_objext \
  9155. conftest$ac_exeext conftest.$ac_ext
  9156. if test -z "$lt_cv_aix_libpath_"; then
  9157. lt_cv_aix_libpath_=/usr/lib:/lib
  9158. fi
  9159. fi
  9160. aix_libpath=$lt_cv_aix_libpath_
  9161. fi
  9162. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9163. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  9164. else
  9165. if test ia64 = "$host_cpu"; then
  9166. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9167. allow_undefined_flag="-z nodefs"
  9168. 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"
  9169. else
  9170. # Determine the default libpath from the value encoded in an
  9171. # empty executable.
  9172. if test set = "${lt_cv_aix_libpath+set}"; then
  9173. aix_libpath=$lt_cv_aix_libpath
  9174. else
  9175. if ${lt_cv_aix_libpath_+:} false; then :
  9176. $as_echo_n "(cached) " >&6
  9177. else
  9178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9179. /* end confdefs.h. */
  9180. int
  9181. main ()
  9182. {
  9183. ;
  9184. return 0;
  9185. }
  9186. _ACEOF
  9187. if ac_fn_c_try_link "$LINENO"; then :
  9188. lt_aix_libpath_sed='
  9189. /Import File Strings/,/^$/ {
  9190. /^0/ {
  9191. s/^0 *\([^ ]*\) *$/\1/
  9192. p
  9193. }
  9194. }'
  9195. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9196. # Check for a 64-bit object if we didn't find anything.
  9197. if test -z "$lt_cv_aix_libpath_"; then
  9198. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9199. fi
  9200. fi
  9201. rm -f core conftest.err conftest.$ac_objext \
  9202. conftest$ac_exeext conftest.$ac_ext
  9203. if test -z "$lt_cv_aix_libpath_"; then
  9204. lt_cv_aix_libpath_=/usr/lib:/lib
  9205. fi
  9206. fi
  9207. aix_libpath=$lt_cv_aix_libpath_
  9208. fi
  9209. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9210. # Warning - without using the other run time loading flags,
  9211. # -berok will link without error, but may produce a broken library.
  9212. no_undefined_flag=' $wl-bernotok'
  9213. allow_undefined_flag=' $wl-berok'
  9214. if test yes = "$with_gnu_ld"; then
  9215. # We only use this code for GNU lds that support --whole-archive.
  9216. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9217. else
  9218. # Exported symbols can be pulled into shared objects from archives
  9219. whole_archive_flag_spec='$convenience'
  9220. fi
  9221. archive_cmds_need_lc=yes
  9222. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9223. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9224. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9225. if test svr4 != "$with_aix_soname"; then
  9226. # This is similar to how AIX traditionally builds its shared libraries.
  9227. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  9228. fi
  9229. if test aix != "$with_aix_soname"; then
  9230. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  9231. else
  9232. # used by -dlpreopen to get the symbols
  9233. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9234. fi
  9235. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9236. fi
  9237. fi
  9238. ;;
  9239. amigaos*)
  9240. case $host_cpu in
  9241. powerpc)
  9242. # see comment about AmigaOS4 .so support
  9243. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9244. archive_expsym_cmds=''
  9245. ;;
  9246. m68k)
  9247. 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)'
  9248. hardcode_libdir_flag_spec='-L$libdir'
  9249. hardcode_minus_L=yes
  9250. ;;
  9251. esac
  9252. ;;
  9253. bsdi[45]*)
  9254. export_dynamic_flag_spec=-rdynamic
  9255. ;;
  9256. cygwin* | mingw* | pw32* | cegcc*)
  9257. # When not using gcc, we currently assume that we are using
  9258. # Microsoft Visual C++.
  9259. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9260. # no search path for DLLs.
  9261. case $cc_basename in
  9262. cl*)
  9263. # Native MSVC
  9264. hardcode_libdir_flag_spec=' '
  9265. allow_undefined_flag=unsupported
  9266. always_export_symbols=yes
  9267. file_list_spec='@'
  9268. # Tell ltmain to make .lib files, not .a files.
  9269. libext=lib
  9270. # Tell ltmain to make .dll files, not .so files.
  9271. shrext_cmds=.dll
  9272. # FIXME: Setting linknames here is a bad hack.
  9273. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9274. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9275. cp "$export_symbols" "$output_objdir/$soname.def";
  9276. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9277. else
  9278. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9279. fi~
  9280. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9281. linknames='
  9282. # The linker will not automatically build a static lib if we build a DLL.
  9283. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9284. enable_shared_with_static_runtimes=yes
  9285. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9286. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9287. # Don't use ranlib
  9288. old_postinstall_cmds='chmod 644 $oldlib'
  9289. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9290. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9291. case $lt_outputfile in
  9292. *.exe|*.EXE) ;;
  9293. *)
  9294. lt_outputfile=$lt_outputfile.exe
  9295. lt_tool_outputfile=$lt_tool_outputfile.exe
  9296. ;;
  9297. esac~
  9298. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9299. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9300. $RM "$lt_outputfile.manifest";
  9301. fi'
  9302. ;;
  9303. *)
  9304. # Assume MSVC wrapper
  9305. hardcode_libdir_flag_spec=' '
  9306. allow_undefined_flag=unsupported
  9307. # Tell ltmain to make .lib files, not .a files.
  9308. libext=lib
  9309. # Tell ltmain to make .dll files, not .so files.
  9310. shrext_cmds=.dll
  9311. # FIXME: Setting linknames here is a bad hack.
  9312. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9313. # The linker will automatically build a .lib file if we build a DLL.
  9314. old_archive_from_new_cmds='true'
  9315. # FIXME: Should let the user specify the lib program.
  9316. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9317. enable_shared_with_static_runtimes=yes
  9318. ;;
  9319. esac
  9320. ;;
  9321. darwin* | rhapsody*)
  9322. archive_cmds_need_lc=no
  9323. hardcode_direct=no
  9324. hardcode_automatic=yes
  9325. hardcode_shlibpath_var=unsupported
  9326. if test yes = "$lt_cv_ld_force_load"; then
  9327. 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\"`'
  9328. else
  9329. whole_archive_flag_spec=''
  9330. fi
  9331. link_all_deplibs=yes
  9332. allow_undefined_flag=$_lt_dar_allow_undefined
  9333. case $cc_basename in
  9334. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9335. *) _lt_dar_can_shared=$GCC ;;
  9336. esac
  9337. if test yes = "$_lt_dar_can_shared"; then
  9338. output_verbose_link_cmd=func_echo_all
  9339. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9340. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9341. 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"
  9342. 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"
  9343. else
  9344. ld_shlibs=no
  9345. fi
  9346. ;;
  9347. dgux*)
  9348. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9349. hardcode_libdir_flag_spec='-L$libdir'
  9350. hardcode_shlibpath_var=no
  9351. ;;
  9352. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9353. # support. Future versions do this automatically, but an explicit c++rt0.o
  9354. # does not break anything, and helps significantly (at the cost of a little
  9355. # extra space).
  9356. freebsd2.2*)
  9357. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9358. hardcode_libdir_flag_spec='-R$libdir'
  9359. hardcode_direct=yes
  9360. hardcode_shlibpath_var=no
  9361. ;;
  9362. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9363. freebsd2.*)
  9364. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9365. hardcode_direct=yes
  9366. hardcode_minus_L=yes
  9367. hardcode_shlibpath_var=no
  9368. ;;
  9369. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9370. freebsd* | dragonfly*)
  9371. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9372. hardcode_libdir_flag_spec='-R$libdir'
  9373. hardcode_direct=yes
  9374. hardcode_shlibpath_var=no
  9375. ;;
  9376. hpux9*)
  9377. if test yes = "$GCC"; then
  9378. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9379. else
  9380. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9381. fi
  9382. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9383. hardcode_libdir_separator=:
  9384. hardcode_direct=yes
  9385. # hardcode_minus_L: Not really in the search PATH,
  9386. # but as the default location of the library.
  9387. hardcode_minus_L=yes
  9388. export_dynamic_flag_spec='$wl-E'
  9389. ;;
  9390. hpux10*)
  9391. if test yes,no = "$GCC,$with_gnu_ld"; then
  9392. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9393. else
  9394. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9395. fi
  9396. if test no = "$with_gnu_ld"; then
  9397. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9398. hardcode_libdir_separator=:
  9399. hardcode_direct=yes
  9400. hardcode_direct_absolute=yes
  9401. export_dynamic_flag_spec='$wl-E'
  9402. # hardcode_minus_L: Not really in the search PATH,
  9403. # but as the default location of the library.
  9404. hardcode_minus_L=yes
  9405. fi
  9406. ;;
  9407. hpux11*)
  9408. if test yes,no = "$GCC,$with_gnu_ld"; then
  9409. case $host_cpu in
  9410. hppa*64*)
  9411. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9412. ;;
  9413. ia64*)
  9414. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9415. ;;
  9416. *)
  9417. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9418. ;;
  9419. esac
  9420. else
  9421. case $host_cpu in
  9422. hppa*64*)
  9423. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9424. ;;
  9425. ia64*)
  9426. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9427. ;;
  9428. *)
  9429. # Older versions of the 11.00 compiler do not understand -b yet
  9430. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9432. $as_echo_n "checking if $CC understands -b... " >&6; }
  9433. if ${lt_cv_prog_compiler__b+:} false; then :
  9434. $as_echo_n "(cached) " >&6
  9435. else
  9436. lt_cv_prog_compiler__b=no
  9437. save_LDFLAGS=$LDFLAGS
  9438. LDFLAGS="$LDFLAGS -b"
  9439. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9440. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9441. # The linker can only warn and ignore the option if not recognized
  9442. # So say no if there are warnings
  9443. if test -s conftest.err; then
  9444. # Append any errors to the config.log.
  9445. cat conftest.err 1>&5
  9446. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9447. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9448. if diff conftest.exp conftest.er2 >/dev/null; then
  9449. lt_cv_prog_compiler__b=yes
  9450. fi
  9451. else
  9452. lt_cv_prog_compiler__b=yes
  9453. fi
  9454. fi
  9455. $RM -r conftest*
  9456. LDFLAGS=$save_LDFLAGS
  9457. fi
  9458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9459. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9460. if test yes = "$lt_cv_prog_compiler__b"; then
  9461. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9462. else
  9463. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9464. fi
  9465. ;;
  9466. esac
  9467. fi
  9468. if test no = "$with_gnu_ld"; then
  9469. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9470. hardcode_libdir_separator=:
  9471. case $host_cpu in
  9472. hppa*64*|ia64*)
  9473. hardcode_direct=no
  9474. hardcode_shlibpath_var=no
  9475. ;;
  9476. *)
  9477. hardcode_direct=yes
  9478. hardcode_direct_absolute=yes
  9479. export_dynamic_flag_spec='$wl-E'
  9480. # hardcode_minus_L: Not really in the search PATH,
  9481. # but as the default location of the library.
  9482. hardcode_minus_L=yes
  9483. ;;
  9484. esac
  9485. fi
  9486. ;;
  9487. irix5* | irix6* | nonstopux*)
  9488. if test yes = "$GCC"; then
  9489. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9490. # Try to use the -exported_symbol ld option, if it does not
  9491. # work, assume that -exports_file does not work either and
  9492. # implicitly export all symbols.
  9493. # This should be the same for all languages, so no per-tag cache variable.
  9494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9495. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9496. if ${lt_cv_irix_exported_symbol+:} false; then :
  9497. $as_echo_n "(cached) " >&6
  9498. else
  9499. save_LDFLAGS=$LDFLAGS
  9500. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9502. /* end confdefs.h. */
  9503. int foo (void) { return 0; }
  9504. _ACEOF
  9505. if ac_fn_c_try_link "$LINENO"; then :
  9506. lt_cv_irix_exported_symbol=yes
  9507. else
  9508. lt_cv_irix_exported_symbol=no
  9509. fi
  9510. rm -f core conftest.err conftest.$ac_objext \
  9511. conftest$ac_exeext conftest.$ac_ext
  9512. LDFLAGS=$save_LDFLAGS
  9513. fi
  9514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9515. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9516. if test yes = "$lt_cv_irix_exported_symbol"; then
  9517. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  9518. fi
  9519. link_all_deplibs=no
  9520. else
  9521. 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'
  9522. 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'
  9523. fi
  9524. archive_cmds_need_lc='no'
  9525. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9526. hardcode_libdir_separator=:
  9527. inherit_rpath=yes
  9528. link_all_deplibs=yes
  9529. ;;
  9530. linux*)
  9531. case $cc_basename in
  9532. tcc*)
  9533. # Fabrice Bellard et al's Tiny C Compiler
  9534. ld_shlibs=yes
  9535. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9536. ;;
  9537. esac
  9538. ;;
  9539. netbsd* | netbsdelf*-gnu)
  9540. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9541. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9542. else
  9543. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9544. fi
  9545. hardcode_libdir_flag_spec='-R$libdir'
  9546. hardcode_direct=yes
  9547. hardcode_shlibpath_var=no
  9548. ;;
  9549. newsos6)
  9550. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9551. hardcode_direct=yes
  9552. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9553. hardcode_libdir_separator=:
  9554. hardcode_shlibpath_var=no
  9555. ;;
  9556. *nto* | *qnx*)
  9557. ;;
  9558. openbsd* | bitrig*)
  9559. if test -f /usr/libexec/ld.so; then
  9560. hardcode_direct=yes
  9561. hardcode_shlibpath_var=no
  9562. hardcode_direct_absolute=yes
  9563. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9564. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9565. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9566. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9567. export_dynamic_flag_spec='$wl-E'
  9568. else
  9569. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9570. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9571. fi
  9572. else
  9573. ld_shlibs=no
  9574. fi
  9575. ;;
  9576. os2*)
  9577. hardcode_libdir_flag_spec='-L$libdir'
  9578. hardcode_minus_L=yes
  9579. allow_undefined_flag=unsupported
  9580. shrext_cmds=.dll
  9581. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9582. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9583. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9584. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9585. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9586. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9587. emximp -o $lib $output_objdir/$libname.def'
  9588. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9589. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9590. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9591. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9592. prefix_cmds="$SED"~
  9593. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9594. prefix_cmds="$prefix_cmds -e 1d";
  9595. fi~
  9596. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9597. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9598. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9599. emximp -o $lib $output_objdir/$libname.def'
  9600. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9601. enable_shared_with_static_runtimes=yes
  9602. ;;
  9603. osf3*)
  9604. if test yes = "$GCC"; then
  9605. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9606. 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'
  9607. else
  9608. allow_undefined_flag=' -expect_unresolved \*'
  9609. 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'
  9610. fi
  9611. archive_cmds_need_lc='no'
  9612. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9613. hardcode_libdir_separator=:
  9614. ;;
  9615. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9616. if test yes = "$GCC"; then
  9617. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9618. archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9619. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9620. else
  9621. allow_undefined_flag=' -expect_unresolved \*'
  9622. 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'
  9623. 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~
  9624. $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'
  9625. # Both c and cxx compiler support -rpath directly
  9626. hardcode_libdir_flag_spec='-rpath $libdir'
  9627. fi
  9628. archive_cmds_need_lc='no'
  9629. hardcode_libdir_separator=:
  9630. ;;
  9631. solaris*)
  9632. no_undefined_flag=' -z defs'
  9633. if test yes = "$GCC"; then
  9634. wlarc='$wl'
  9635. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9636. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9637. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9638. else
  9639. case `$CC -V 2>&1` in
  9640. *"Compilers 5.0"*)
  9641. wlarc=''
  9642. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9643. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9644. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9645. ;;
  9646. *)
  9647. wlarc='$wl'
  9648. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9649. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9650. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9651. ;;
  9652. esac
  9653. fi
  9654. hardcode_libdir_flag_spec='-R$libdir'
  9655. hardcode_shlibpath_var=no
  9656. case $host_os in
  9657. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9658. *)
  9659. # The compiler driver will combine and reorder linker options,
  9660. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9661. # but is careful enough not to reorder.
  9662. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9663. if test yes = "$GCC"; then
  9664. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9665. else
  9666. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9667. fi
  9668. ;;
  9669. esac
  9670. link_all_deplibs=yes
  9671. ;;
  9672. sunos4*)
  9673. if test sequent = "$host_vendor"; then
  9674. # Use $CC to link under sequent, because it throws in some extra .o
  9675. # files that make .init and .fini sections work.
  9676. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9677. else
  9678. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9679. fi
  9680. hardcode_libdir_flag_spec='-L$libdir'
  9681. hardcode_direct=yes
  9682. hardcode_minus_L=yes
  9683. hardcode_shlibpath_var=no
  9684. ;;
  9685. sysv4)
  9686. case $host_vendor in
  9687. sni)
  9688. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9689. hardcode_direct=yes # is this really true???
  9690. ;;
  9691. siemens)
  9692. ## LD is ld it makes a PLAMLIB
  9693. ## CC just makes a GrossModule.
  9694. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9695. reload_cmds='$CC -r -o $output$reload_objs'
  9696. hardcode_direct=no
  9697. ;;
  9698. motorola)
  9699. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9700. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9701. ;;
  9702. esac
  9703. runpath_var='LD_RUN_PATH'
  9704. hardcode_shlibpath_var=no
  9705. ;;
  9706. sysv4.3*)
  9707. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9708. hardcode_shlibpath_var=no
  9709. export_dynamic_flag_spec='-Bexport'
  9710. ;;
  9711. sysv4*MP*)
  9712. if test -d /usr/nec; then
  9713. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9714. hardcode_shlibpath_var=no
  9715. runpath_var=LD_RUN_PATH
  9716. hardcode_runpath_var=yes
  9717. ld_shlibs=yes
  9718. fi
  9719. ;;
  9720. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9721. no_undefined_flag='$wl-z,text'
  9722. archive_cmds_need_lc=no
  9723. hardcode_shlibpath_var=no
  9724. runpath_var='LD_RUN_PATH'
  9725. if test yes = "$GCC"; then
  9726. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9727. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9728. else
  9729. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9730. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9731. fi
  9732. ;;
  9733. sysv5* | sco3.2v5* | sco5v6*)
  9734. # Note: We CANNOT use -z defs as we might desire, because we do not
  9735. # link with -lc, and that would cause any symbols used from libc to
  9736. # always be unresolved, which means just about no library would
  9737. # ever link correctly. If we're not using GNU ld we use -z text
  9738. # though, which does catch some bad symbols but isn't as heavy-handed
  9739. # as -z defs.
  9740. no_undefined_flag='$wl-z,text'
  9741. allow_undefined_flag='$wl-z,nodefs'
  9742. archive_cmds_need_lc=no
  9743. hardcode_shlibpath_var=no
  9744. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9745. hardcode_libdir_separator=':'
  9746. link_all_deplibs=yes
  9747. export_dynamic_flag_spec='$wl-Bexport'
  9748. runpath_var='LD_RUN_PATH'
  9749. if test yes = "$GCC"; then
  9750. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9751. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9752. else
  9753. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9754. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9755. fi
  9756. ;;
  9757. uts4*)
  9758. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9759. hardcode_libdir_flag_spec='-L$libdir'
  9760. hardcode_shlibpath_var=no
  9761. ;;
  9762. *)
  9763. ld_shlibs=no
  9764. ;;
  9765. esac
  9766. if test sni = "$host_vendor"; then
  9767. case $host in
  9768. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9769. export_dynamic_flag_spec='$wl-Blargedynsym'
  9770. ;;
  9771. esac
  9772. fi
  9773. fi
  9774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9775. $as_echo "$ld_shlibs" >&6; }
  9776. test no = "$ld_shlibs" && can_build_shared=no
  9777. with_gnu_ld=$with_gnu_ld
  9778. #
  9779. # Do we need to explicitly link libc?
  9780. #
  9781. case "x$archive_cmds_need_lc" in
  9782. x|xyes)
  9783. # Assume -lc should be added
  9784. archive_cmds_need_lc=yes
  9785. if test yes,yes = "$GCC,$enable_shared"; then
  9786. case $archive_cmds in
  9787. *'~'*)
  9788. # FIXME: we may have to deal with multi-command sequences.
  9789. ;;
  9790. '$CC '*)
  9791. # Test whether the compiler implicitly links with -lc since on some
  9792. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9793. # to ld, don't add -lc before -lgcc.
  9794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9795. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9796. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9797. $as_echo_n "(cached) " >&6
  9798. else
  9799. $RM conftest*
  9800. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9801. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9802. (eval $ac_compile) 2>&5
  9803. ac_status=$?
  9804. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9805. test $ac_status = 0; } 2>conftest.err; then
  9806. soname=conftest
  9807. lib=conftest
  9808. libobjs=conftest.$ac_objext
  9809. deplibs=
  9810. wl=$lt_prog_compiler_wl
  9811. pic_flag=$lt_prog_compiler_pic
  9812. compiler_flags=-v
  9813. linker_flags=-v
  9814. verstring=
  9815. output_objdir=.
  9816. libname=conftest
  9817. lt_save_allow_undefined_flag=$allow_undefined_flag
  9818. allow_undefined_flag=
  9819. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9820. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9821. ac_status=$?
  9822. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9823. test $ac_status = 0; }
  9824. then
  9825. lt_cv_archive_cmds_need_lc=no
  9826. else
  9827. lt_cv_archive_cmds_need_lc=yes
  9828. fi
  9829. allow_undefined_flag=$lt_save_allow_undefined_flag
  9830. else
  9831. cat conftest.err 1>&5
  9832. fi
  9833. $RM conftest*
  9834. fi
  9835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9836. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9837. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9838. ;;
  9839. esac
  9840. fi
  9841. ;;
  9842. esac
  9843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9844. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9845. if test yes = "$GCC"; then
  9846. case $host_os in
  9847. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9848. *) lt_awk_arg='/^libraries:/' ;;
  9849. esac
  9850. case $host_os in
  9851. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9852. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9853. esac
  9854. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9855. case $lt_search_path_spec in
  9856. *\;*)
  9857. # if the path contains ";" then we assume it to be the separator
  9858. # otherwise default to the standard path separator (i.e. ":") - it is
  9859. # assumed that no part of a normal pathname contains ";" but that should
  9860. # okay in the real world where ";" in dirpaths is itself problematic.
  9861. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9862. ;;
  9863. *)
  9864. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9865. ;;
  9866. esac
  9867. # Ok, now we have the path, separated by spaces, we can step through it
  9868. # and add multilib dir if necessary...
  9869. lt_tmp_lt_search_path_spec=
  9870. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9871. # ...but if some path component already ends with the multilib dir we assume
  9872. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9873. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9874. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9875. lt_multi_os_dir=
  9876. ;;
  9877. esac
  9878. for lt_sys_path in $lt_search_path_spec; do
  9879. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9880. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9881. elif test -n "$lt_multi_os_dir"; then
  9882. test -d "$lt_sys_path" && \
  9883. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9884. fi
  9885. done
  9886. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9887. BEGIN {RS = " "; FS = "/|\n";} {
  9888. lt_foo = "";
  9889. lt_count = 0;
  9890. for (lt_i = NF; lt_i > 0; lt_i--) {
  9891. if ($lt_i != "" && $lt_i != ".") {
  9892. if ($lt_i == "..") {
  9893. lt_count++;
  9894. } else {
  9895. if (lt_count == 0) {
  9896. lt_foo = "/" $lt_i lt_foo;
  9897. } else {
  9898. lt_count--;
  9899. }
  9900. }
  9901. }
  9902. }
  9903. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9904. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9905. }'`
  9906. # AWK program above erroneously prepends '/' to C:/dos/paths
  9907. # for these hosts.
  9908. case $host_os in
  9909. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9910. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9911. esac
  9912. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9913. else
  9914. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9915. fi
  9916. library_names_spec=
  9917. libname_spec='lib$name'
  9918. soname_spec=
  9919. shrext_cmds=.so
  9920. postinstall_cmds=
  9921. postuninstall_cmds=
  9922. finish_cmds=
  9923. finish_eval=
  9924. shlibpath_var=
  9925. shlibpath_overrides_runpath=unknown
  9926. version_type=none
  9927. dynamic_linker="$host_os ld.so"
  9928. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9929. need_lib_prefix=unknown
  9930. hardcode_into_libs=no
  9931. # when you set need_version to no, make sure it does not cause -set_version
  9932. # flags to be left without arguments
  9933. need_version=unknown
  9934. case $host_os in
  9935. aix3*)
  9936. version_type=linux # correct to gnu/linux during the next big refactor
  9937. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9938. shlibpath_var=LIBPATH
  9939. # AIX 3 has no versioning support, so we append a major version to the name.
  9940. soname_spec='$libname$release$shared_ext$major'
  9941. ;;
  9942. aix[4-9]*)
  9943. version_type=linux # correct to gnu/linux during the next big refactor
  9944. need_lib_prefix=no
  9945. need_version=no
  9946. hardcode_into_libs=yes
  9947. if test ia64 = "$host_cpu"; then
  9948. # AIX 5 supports IA64
  9949. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9950. shlibpath_var=LD_LIBRARY_PATH
  9951. else
  9952. # With GCC up to 2.95.x, collect2 would create an import file
  9953. # for dependence libraries. The import file would start with
  9954. # the line '#! .'. This would cause the generated library to
  9955. # depend on '.', always an invalid library. This was fixed in
  9956. # development snapshots of GCC prior to 3.0.
  9957. case $host_os in
  9958. aix4 | aix4.[01] | aix4.[01].*)
  9959. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9960. echo ' yes '
  9961. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9962. :
  9963. else
  9964. can_build_shared=no
  9965. fi
  9966. ;;
  9967. esac
  9968. # Using Import Files as archive members, it is possible to support
  9969. # filename-based versioning of shared library archives on AIX. While
  9970. # this would work for both with and without runtime linking, it will
  9971. # prevent static linking of such archives. So we do filename-based
  9972. # shared library versioning with .so extension only, which is used
  9973. # when both runtime linking and shared linking is enabled.
  9974. # Unfortunately, runtime linking may impact performance, so we do
  9975. # not want this to be the default eventually. Also, we use the
  9976. # versioned .so libs for executables only if there is the -brtl
  9977. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9978. # To allow for filename-based versioning support, we need to create
  9979. # libNAME.so.V as an archive file, containing:
  9980. # *) an Import File, referring to the versioned filename of the
  9981. # archive as well as the shared archive member, telling the
  9982. # bitwidth (32 or 64) of that shared object, and providing the
  9983. # list of exported symbols of that shared object, eventually
  9984. # decorated with the 'weak' keyword
  9985. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9986. # it being seen by the linker.
  9987. # At run time we better use the real file rather than another symlink,
  9988. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9989. case $with_aix_soname,$aix_use_runtimelinking in
  9990. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9991. # soname into executable. Probably we can add versioning support to
  9992. # collect2, so additional links can be useful in future.
  9993. aix,yes) # traditional libtool
  9994. dynamic_linker='AIX unversionable lib.so'
  9995. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9996. # instead of lib<name>.a to let people know that these are not
  9997. # typical AIX shared libraries.
  9998. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9999. ;;
  10000. aix,no) # traditional AIX only
  10001. dynamic_linker='AIX lib.a(lib.so.V)'
  10002. # We preserve .a as extension for shared libraries through AIX4.2
  10003. # and later when we are not doing run time linking.
  10004. library_names_spec='$libname$release.a $libname.a'
  10005. soname_spec='$libname$release$shared_ext$major'
  10006. ;;
  10007. svr4,*) # full svr4 only
  10008. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10009. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10010. # We do not specify a path in Import Files, so LIBPATH fires.
  10011. shlibpath_overrides_runpath=yes
  10012. ;;
  10013. *,yes) # both, prefer svr4
  10014. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10015. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10016. # unpreferred sharedlib libNAME.a needs extra handling
  10017. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  10018. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  10019. # We do not specify a path in Import Files, so LIBPATH fires.
  10020. shlibpath_overrides_runpath=yes
  10021. ;;
  10022. *,no) # both, prefer aix
  10023. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10024. library_names_spec='$libname$release.a $libname.a'
  10025. soname_spec='$libname$release$shared_ext$major'
  10026. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10027. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  10028. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  10029. ;;
  10030. esac
  10031. shlibpath_var=LIBPATH
  10032. fi
  10033. ;;
  10034. amigaos*)
  10035. case $host_cpu in
  10036. powerpc)
  10037. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10038. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10039. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10040. ;;
  10041. m68k)
  10042. library_names_spec='$libname.ixlibrary $libname.a'
  10043. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10044. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  10045. ;;
  10046. esac
  10047. ;;
  10048. beos*)
  10049. library_names_spec='$libname$shared_ext'
  10050. dynamic_linker="$host_os ld.so"
  10051. shlibpath_var=LIBRARY_PATH
  10052. ;;
  10053. bsdi[45]*)
  10054. version_type=linux # correct to gnu/linux during the next big refactor
  10055. need_version=no
  10056. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10057. soname_spec='$libname$release$shared_ext$major'
  10058. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10059. shlibpath_var=LD_LIBRARY_PATH
  10060. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10061. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10062. # the default ld.so.conf also contains /usr/contrib/lib and
  10063. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10064. # libtool to hard-code these into programs
  10065. ;;
  10066. cygwin* | mingw* | pw32* | cegcc*)
  10067. version_type=windows
  10068. shrext_cmds=.dll
  10069. need_version=no
  10070. need_lib_prefix=no
  10071. case $GCC,$cc_basename in
  10072. yes,*)
  10073. # gcc
  10074. library_names_spec='$libname.dll.a'
  10075. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10076. postinstall_cmds='base_file=`basename \$file`~
  10077. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10078. dldir=$destdir/`dirname \$dlpath`~
  10079. test -d \$dldir || mkdir -p \$dldir~
  10080. $install_prog $dir/$dlname \$dldir/$dlname~
  10081. chmod a+x \$dldir/$dlname~
  10082. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10083. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10084. fi'
  10085. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10086. dlpath=$dir/\$dldll~
  10087. $RM \$dlpath'
  10088. shlibpath_overrides_runpath=yes
  10089. case $host_os in
  10090. cygwin*)
  10091. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10092. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10093. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10094. ;;
  10095. mingw* | cegcc*)
  10096. # MinGW DLLs use traditional 'lib' prefix
  10097. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10098. ;;
  10099. pw32*)
  10100. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10101. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10102. ;;
  10103. esac
  10104. dynamic_linker='Win32 ld.exe'
  10105. ;;
  10106. *,cl*)
  10107. # Native MSVC
  10108. libname_spec='$name'
  10109. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10110. library_names_spec='$libname.dll.lib'
  10111. case $build_os in
  10112. mingw*)
  10113. sys_lib_search_path_spec=
  10114. lt_save_ifs=$IFS
  10115. IFS=';'
  10116. for lt_path in $LIB
  10117. do
  10118. IFS=$lt_save_ifs
  10119. # Let DOS variable expansion print the short 8.3 style file name.
  10120. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10121. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10122. done
  10123. IFS=$lt_save_ifs
  10124. # Convert to MSYS style.
  10125. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10126. ;;
  10127. cygwin*)
  10128. # Convert to unix form, then to dos form, then back to unix form
  10129. # but this time dos style (no spaces!) so that the unix form looks
  10130. # like /cygdrive/c/PROGRA~1:/cygdr...
  10131. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10132. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10133. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10134. ;;
  10135. *)
  10136. sys_lib_search_path_spec=$LIB
  10137. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10138. # It is most probably a Windows format PATH.
  10139. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10140. else
  10141. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10142. fi
  10143. # FIXME: find the short name or the path components, as spaces are
  10144. # common. (e.g. "Program Files" -> "PROGRA~1")
  10145. ;;
  10146. esac
  10147. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10148. postinstall_cmds='base_file=`basename \$file`~
  10149. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10150. dldir=$destdir/`dirname \$dlpath`~
  10151. test -d \$dldir || mkdir -p \$dldir~
  10152. $install_prog $dir/$dlname \$dldir/$dlname'
  10153. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10154. dlpath=$dir/\$dldll~
  10155. $RM \$dlpath'
  10156. shlibpath_overrides_runpath=yes
  10157. dynamic_linker='Win32 link.exe'
  10158. ;;
  10159. *)
  10160. # Assume MSVC wrapper
  10161. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10162. dynamic_linker='Win32 ld.exe'
  10163. ;;
  10164. esac
  10165. # FIXME: first we should search . and the directory the executable is in
  10166. shlibpath_var=PATH
  10167. ;;
  10168. darwin* | rhapsody*)
  10169. dynamic_linker="$host_os dyld"
  10170. version_type=darwin
  10171. need_lib_prefix=no
  10172. need_version=no
  10173. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10174. soname_spec='$libname$release$major$shared_ext'
  10175. shlibpath_overrides_runpath=yes
  10176. shlibpath_var=DYLD_LIBRARY_PATH
  10177. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10178. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10179. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10180. ;;
  10181. dgux*)
  10182. version_type=linux # correct to gnu/linux during the next big refactor
  10183. need_lib_prefix=no
  10184. need_version=no
  10185. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10186. soname_spec='$libname$release$shared_ext$major'
  10187. shlibpath_var=LD_LIBRARY_PATH
  10188. ;;
  10189. freebsd* | dragonfly*)
  10190. # DragonFly does not have aout. When/if they implement a new
  10191. # versioning mechanism, adjust this.
  10192. if test -x /usr/bin/objformat; then
  10193. objformat=`/usr/bin/objformat`
  10194. else
  10195. case $host_os in
  10196. freebsd[23].*) objformat=aout ;;
  10197. *) objformat=elf ;;
  10198. esac
  10199. fi
  10200. version_type=freebsd-$objformat
  10201. case $version_type in
  10202. freebsd-elf*)
  10203. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10204. soname_spec='$libname$release$shared_ext$major'
  10205. need_version=no
  10206. need_lib_prefix=no
  10207. ;;
  10208. freebsd-*)
  10209. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10210. need_version=yes
  10211. ;;
  10212. esac
  10213. shlibpath_var=LD_LIBRARY_PATH
  10214. case $host_os in
  10215. freebsd2.*)
  10216. shlibpath_overrides_runpath=yes
  10217. ;;
  10218. freebsd3.[01]* | freebsdelf3.[01]*)
  10219. shlibpath_overrides_runpath=yes
  10220. hardcode_into_libs=yes
  10221. ;;
  10222. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10223. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10224. shlibpath_overrides_runpath=no
  10225. hardcode_into_libs=yes
  10226. ;;
  10227. *) # from 4.6 on, and DragonFly
  10228. shlibpath_overrides_runpath=yes
  10229. hardcode_into_libs=yes
  10230. ;;
  10231. esac
  10232. ;;
  10233. haiku*)
  10234. version_type=linux # correct to gnu/linux during the next big refactor
  10235. need_lib_prefix=no
  10236. need_version=no
  10237. dynamic_linker="$host_os runtime_loader"
  10238. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10239. soname_spec='$libname$release$shared_ext$major'
  10240. shlibpath_var=LIBRARY_PATH
  10241. shlibpath_overrides_runpath=no
  10242. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10243. hardcode_into_libs=yes
  10244. ;;
  10245. hpux9* | hpux10* | hpux11*)
  10246. # Give a soname corresponding to the major version so that dld.sl refuses to
  10247. # link against other versions.
  10248. version_type=sunos
  10249. need_lib_prefix=no
  10250. need_version=no
  10251. case $host_cpu in
  10252. ia64*)
  10253. shrext_cmds='.so'
  10254. hardcode_into_libs=yes
  10255. dynamic_linker="$host_os dld.so"
  10256. shlibpath_var=LD_LIBRARY_PATH
  10257. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10258. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10259. soname_spec='$libname$release$shared_ext$major'
  10260. if test 32 = "$HPUX_IA64_MODE"; then
  10261. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10262. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10263. else
  10264. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10265. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10266. fi
  10267. ;;
  10268. hppa*64*)
  10269. shrext_cmds='.sl'
  10270. hardcode_into_libs=yes
  10271. dynamic_linker="$host_os dld.sl"
  10272. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10273. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10274. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10275. soname_spec='$libname$release$shared_ext$major'
  10276. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10277. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10278. ;;
  10279. *)
  10280. shrext_cmds='.sl'
  10281. dynamic_linker="$host_os dld.sl"
  10282. shlibpath_var=SHLIB_PATH
  10283. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10284. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10285. soname_spec='$libname$release$shared_ext$major'
  10286. ;;
  10287. esac
  10288. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10289. postinstall_cmds='chmod 555 $lib'
  10290. # or fails outright, so override atomically:
  10291. install_override_mode=555
  10292. ;;
  10293. interix[3-9]*)
  10294. version_type=linux # correct to gnu/linux during the next big refactor
  10295. need_lib_prefix=no
  10296. need_version=no
  10297. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10298. soname_spec='$libname$release$shared_ext$major'
  10299. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10300. shlibpath_var=LD_LIBRARY_PATH
  10301. shlibpath_overrides_runpath=no
  10302. hardcode_into_libs=yes
  10303. ;;
  10304. irix5* | irix6* | nonstopux*)
  10305. case $host_os in
  10306. nonstopux*) version_type=nonstopux ;;
  10307. *)
  10308. if test yes = "$lt_cv_prog_gnu_ld"; then
  10309. version_type=linux # correct to gnu/linux during the next big refactor
  10310. else
  10311. version_type=irix
  10312. fi ;;
  10313. esac
  10314. need_lib_prefix=no
  10315. need_version=no
  10316. soname_spec='$libname$release$shared_ext$major'
  10317. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10318. case $host_os in
  10319. irix5* | nonstopux*)
  10320. libsuff= shlibsuff=
  10321. ;;
  10322. *)
  10323. case $LD in # libtool.m4 will add one of these switches to LD
  10324. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10325. libsuff= shlibsuff= libmagic=32-bit;;
  10326. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10327. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10328. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10329. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10330. *) libsuff= shlibsuff= libmagic=never-match;;
  10331. esac
  10332. ;;
  10333. esac
  10334. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10335. shlibpath_overrides_runpath=no
  10336. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10337. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10338. hardcode_into_libs=yes
  10339. ;;
  10340. # No shared lib support for Linux oldld, aout, or coff.
  10341. linux*oldld* | linux*aout* | linux*coff*)
  10342. dynamic_linker=no
  10343. ;;
  10344. linux*android*)
  10345. version_type=none # Android doesn't support versioned libraries.
  10346. need_lib_prefix=no
  10347. need_version=no
  10348. library_names_spec='$libname$release$shared_ext'
  10349. soname_spec='$libname$release$shared_ext'
  10350. finish_cmds=
  10351. shlibpath_var=LD_LIBRARY_PATH
  10352. shlibpath_overrides_runpath=yes
  10353. # This implies no fast_install, which is unacceptable.
  10354. # Some rework will be needed to allow for fast_install
  10355. # before this can be enabled.
  10356. hardcode_into_libs=yes
  10357. dynamic_linker='Android linker'
  10358. # Don't embed -rpath directories since the linker doesn't support them.
  10359. hardcode_libdir_flag_spec='-L$libdir'
  10360. ;;
  10361. # This must be glibc/ELF.
  10362. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10363. version_type=linux # correct to gnu/linux during the next big refactor
  10364. need_lib_prefix=no
  10365. need_version=no
  10366. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10367. soname_spec='$libname$release$shared_ext$major'
  10368. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10369. shlibpath_var=LD_LIBRARY_PATH
  10370. shlibpath_overrides_runpath=no
  10371. # Some binutils ld are patched to set DT_RUNPATH
  10372. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10373. $as_echo_n "(cached) " >&6
  10374. else
  10375. lt_cv_shlibpath_overrides_runpath=no
  10376. save_LDFLAGS=$LDFLAGS
  10377. save_libdir=$libdir
  10378. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10379. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10381. /* end confdefs.h. */
  10382. int
  10383. main ()
  10384. {
  10385. ;
  10386. return 0;
  10387. }
  10388. _ACEOF
  10389. if ac_fn_c_try_link "$LINENO"; then :
  10390. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10391. lt_cv_shlibpath_overrides_runpath=yes
  10392. fi
  10393. fi
  10394. rm -f core conftest.err conftest.$ac_objext \
  10395. conftest$ac_exeext conftest.$ac_ext
  10396. LDFLAGS=$save_LDFLAGS
  10397. libdir=$save_libdir
  10398. fi
  10399. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10400. # This implies no fast_install, which is unacceptable.
  10401. # Some rework will be needed to allow for fast_install
  10402. # before this can be enabled.
  10403. hardcode_into_libs=yes
  10404. # Ideally, we could use ldconfig to report *all* directores which are
  10405. # searched for libraries, however this is still not possible. Aside from not
  10406. # being certain /sbin/ldconfig is available, command
  10407. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10408. # even though it is searched at run-time. Try to do the best guess by
  10409. # appending ld.so.conf contents (and includes) to the search path.
  10410. if test -f /etc/ld.so.conf; then
  10411. 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' ' '`
  10412. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10413. fi
  10414. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10415. # powerpc, because MkLinux only supported shared libraries with the
  10416. # GNU dynamic linker. Since this was broken with cross compilers,
  10417. # most powerpc-linux boxes support dynamic linking these days and
  10418. # people can always --disable-shared, the test was removed, and we
  10419. # assume the GNU/Linux dynamic linker is in use.
  10420. dynamic_linker='GNU/Linux ld.so'
  10421. ;;
  10422. netbsdelf*-gnu)
  10423. version_type=linux
  10424. need_lib_prefix=no
  10425. need_version=no
  10426. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10427. soname_spec='${libname}${release}${shared_ext}$major'
  10428. shlibpath_var=LD_LIBRARY_PATH
  10429. shlibpath_overrides_runpath=no
  10430. hardcode_into_libs=yes
  10431. dynamic_linker='NetBSD ld.elf_so'
  10432. ;;
  10433. netbsd*)
  10434. version_type=sunos
  10435. need_lib_prefix=no
  10436. need_version=no
  10437. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10438. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10439. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10440. dynamic_linker='NetBSD (a.out) ld.so'
  10441. else
  10442. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10443. soname_spec='$libname$release$shared_ext$major'
  10444. dynamic_linker='NetBSD ld.elf_so'
  10445. fi
  10446. shlibpath_var=LD_LIBRARY_PATH
  10447. shlibpath_overrides_runpath=yes
  10448. hardcode_into_libs=yes
  10449. ;;
  10450. newsos6)
  10451. version_type=linux # correct to gnu/linux during the next big refactor
  10452. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10453. shlibpath_var=LD_LIBRARY_PATH
  10454. shlibpath_overrides_runpath=yes
  10455. ;;
  10456. *nto* | *qnx*)
  10457. version_type=qnx
  10458. need_lib_prefix=no
  10459. need_version=no
  10460. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10461. soname_spec='$libname$release$shared_ext$major'
  10462. shlibpath_var=LD_LIBRARY_PATH
  10463. shlibpath_overrides_runpath=no
  10464. hardcode_into_libs=yes
  10465. dynamic_linker='ldqnx.so'
  10466. ;;
  10467. openbsd* | bitrig*)
  10468. version_type=sunos
  10469. sys_lib_dlsearch_path_spec=/usr/lib
  10470. need_lib_prefix=no
  10471. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10472. need_version=no
  10473. else
  10474. need_version=yes
  10475. fi
  10476. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10477. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10478. shlibpath_var=LD_LIBRARY_PATH
  10479. shlibpath_overrides_runpath=yes
  10480. ;;
  10481. os2*)
  10482. libname_spec='$name'
  10483. version_type=windows
  10484. shrext_cmds=.dll
  10485. need_version=no
  10486. need_lib_prefix=no
  10487. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10488. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10489. v=$($ECHO $release$versuffix | tr -d .-);
  10490. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10491. $ECHO $n$v`$shared_ext'
  10492. library_names_spec='${libname}_dll.$libext'
  10493. dynamic_linker='OS/2 ld.exe'
  10494. shlibpath_var=BEGINLIBPATH
  10495. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10496. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10497. postinstall_cmds='base_file=`basename \$file`~
  10498. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10499. dldir=$destdir/`dirname \$dlpath`~
  10500. test -d \$dldir || mkdir -p \$dldir~
  10501. $install_prog $dir/$dlname \$dldir/$dlname~
  10502. chmod a+x \$dldir/$dlname~
  10503. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10504. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10505. fi'
  10506. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10507. dlpath=$dir/\$dldll~
  10508. $RM \$dlpath'
  10509. ;;
  10510. osf3* | osf4* | osf5*)
  10511. version_type=osf
  10512. need_lib_prefix=no
  10513. need_version=no
  10514. soname_spec='$libname$release$shared_ext$major'
  10515. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10516. shlibpath_var=LD_LIBRARY_PATH
  10517. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10518. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10519. ;;
  10520. rdos*)
  10521. dynamic_linker=no
  10522. ;;
  10523. solaris*)
  10524. version_type=linux # correct to gnu/linux during the next big refactor
  10525. need_lib_prefix=no
  10526. need_version=no
  10527. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10528. soname_spec='$libname$release$shared_ext$major'
  10529. shlibpath_var=LD_LIBRARY_PATH
  10530. shlibpath_overrides_runpath=yes
  10531. hardcode_into_libs=yes
  10532. # ldd complains unless libraries are executable
  10533. postinstall_cmds='chmod +x $lib'
  10534. ;;
  10535. sunos4*)
  10536. version_type=sunos
  10537. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10538. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10539. shlibpath_var=LD_LIBRARY_PATH
  10540. shlibpath_overrides_runpath=yes
  10541. if test yes = "$with_gnu_ld"; then
  10542. need_lib_prefix=no
  10543. fi
  10544. need_version=yes
  10545. ;;
  10546. sysv4 | sysv4.3*)
  10547. version_type=linux # correct to gnu/linux during the next big refactor
  10548. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10549. soname_spec='$libname$release$shared_ext$major'
  10550. shlibpath_var=LD_LIBRARY_PATH
  10551. case $host_vendor in
  10552. sni)
  10553. shlibpath_overrides_runpath=no
  10554. need_lib_prefix=no
  10555. runpath_var=LD_RUN_PATH
  10556. ;;
  10557. siemens)
  10558. need_lib_prefix=no
  10559. ;;
  10560. motorola)
  10561. need_lib_prefix=no
  10562. need_version=no
  10563. shlibpath_overrides_runpath=no
  10564. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10565. ;;
  10566. esac
  10567. ;;
  10568. sysv4*MP*)
  10569. if test -d /usr/nec; then
  10570. version_type=linux # correct to gnu/linux during the next big refactor
  10571. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10572. soname_spec='$libname$shared_ext.$major'
  10573. shlibpath_var=LD_LIBRARY_PATH
  10574. fi
  10575. ;;
  10576. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10577. version_type=sco
  10578. need_lib_prefix=no
  10579. need_version=no
  10580. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10581. soname_spec='$libname$release$shared_ext$major'
  10582. shlibpath_var=LD_LIBRARY_PATH
  10583. shlibpath_overrides_runpath=yes
  10584. hardcode_into_libs=yes
  10585. if test yes = "$with_gnu_ld"; then
  10586. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10587. else
  10588. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10589. case $host_os in
  10590. sco3.2v5*)
  10591. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10592. ;;
  10593. esac
  10594. fi
  10595. sys_lib_dlsearch_path_spec='/usr/lib'
  10596. ;;
  10597. tpf*)
  10598. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10599. version_type=linux # correct to gnu/linux during the next big refactor
  10600. need_lib_prefix=no
  10601. need_version=no
  10602. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10603. shlibpath_var=LD_LIBRARY_PATH
  10604. shlibpath_overrides_runpath=no
  10605. hardcode_into_libs=yes
  10606. ;;
  10607. uts4*)
  10608. version_type=linux # correct to gnu/linux during the next big refactor
  10609. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10610. soname_spec='$libname$release$shared_ext$major'
  10611. shlibpath_var=LD_LIBRARY_PATH
  10612. ;;
  10613. *)
  10614. dynamic_linker=no
  10615. ;;
  10616. esac
  10617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10618. $as_echo "$dynamic_linker" >&6; }
  10619. test no = "$dynamic_linker" && can_build_shared=no
  10620. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10621. if test yes = "$GCC"; then
  10622. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10623. fi
  10624. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10625. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10626. fi
  10627. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10628. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10629. fi
  10630. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10631. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10632. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10633. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10634. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10635. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10637. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10638. hardcode_action=
  10639. if test -n "$hardcode_libdir_flag_spec" ||
  10640. test -n "$runpath_var" ||
  10641. test yes = "$hardcode_automatic"; then
  10642. # We can hardcode non-existent directories.
  10643. if test no != "$hardcode_direct" &&
  10644. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10645. # have to relink, otherwise we might link with an installed library
  10646. # when we should be linking with a yet-to-be-installed one
  10647. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10648. test no != "$hardcode_minus_L"; then
  10649. # Linking always hardcodes the temporary library directory.
  10650. hardcode_action=relink
  10651. else
  10652. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10653. hardcode_action=immediate
  10654. fi
  10655. else
  10656. # We cannot hardcode anything, or else we can only hardcode existing
  10657. # directories.
  10658. hardcode_action=unsupported
  10659. fi
  10660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10661. $as_echo "$hardcode_action" >&6; }
  10662. if test relink = "$hardcode_action" ||
  10663. test yes = "$inherit_rpath"; then
  10664. # Fast installation is not supported
  10665. enable_fast_install=no
  10666. elif test yes = "$shlibpath_overrides_runpath" ||
  10667. test no = "$enable_shared"; then
  10668. # Fast installation is not necessary
  10669. enable_fast_install=needless
  10670. fi
  10671. if test yes != "$enable_dlopen"; then
  10672. enable_dlopen=unknown
  10673. enable_dlopen_self=unknown
  10674. enable_dlopen_self_static=unknown
  10675. else
  10676. lt_cv_dlopen=no
  10677. lt_cv_dlopen_libs=
  10678. case $host_os in
  10679. beos*)
  10680. lt_cv_dlopen=load_add_on
  10681. lt_cv_dlopen_libs=
  10682. lt_cv_dlopen_self=yes
  10683. ;;
  10684. mingw* | pw32* | cegcc*)
  10685. lt_cv_dlopen=LoadLibrary
  10686. lt_cv_dlopen_libs=
  10687. ;;
  10688. cygwin*)
  10689. lt_cv_dlopen=dlopen
  10690. lt_cv_dlopen_libs=
  10691. ;;
  10692. darwin*)
  10693. # if libdl is installed we need to link against it
  10694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10695. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10696. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10697. $as_echo_n "(cached) " >&6
  10698. else
  10699. ac_check_lib_save_LIBS=$LIBS
  10700. LIBS="-ldl $LIBS"
  10701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10702. /* end confdefs.h. */
  10703. /* Override any GCC internal prototype to avoid an error.
  10704. Use char because int might match the return type of a GCC
  10705. builtin and then its argument prototype would still apply. */
  10706. #ifdef __cplusplus
  10707. extern "C"
  10708. #endif
  10709. char dlopen ();
  10710. int
  10711. main ()
  10712. {
  10713. return dlopen ();
  10714. ;
  10715. return 0;
  10716. }
  10717. _ACEOF
  10718. if ac_fn_c_try_link "$LINENO"; then :
  10719. ac_cv_lib_dl_dlopen=yes
  10720. else
  10721. ac_cv_lib_dl_dlopen=no
  10722. fi
  10723. rm -f core conftest.err conftest.$ac_objext \
  10724. conftest$ac_exeext conftest.$ac_ext
  10725. LIBS=$ac_check_lib_save_LIBS
  10726. fi
  10727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10728. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10729. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10730. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10731. else
  10732. lt_cv_dlopen=dyld
  10733. lt_cv_dlopen_libs=
  10734. lt_cv_dlopen_self=yes
  10735. fi
  10736. ;;
  10737. tpf*)
  10738. # Don't try to run any link tests for TPF. We know it's impossible
  10739. # because TPF is a cross-compiler, and we know how we open DSOs.
  10740. lt_cv_dlopen=dlopen
  10741. lt_cv_dlopen_libs=
  10742. lt_cv_dlopen_self=no
  10743. ;;
  10744. *)
  10745. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10746. if test "x$ac_cv_func_shl_load" = xyes; then :
  10747. lt_cv_dlopen=shl_load
  10748. else
  10749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10750. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10751. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10752. $as_echo_n "(cached) " >&6
  10753. else
  10754. ac_check_lib_save_LIBS=$LIBS
  10755. LIBS="-ldld $LIBS"
  10756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10757. /* end confdefs.h. */
  10758. /* Override any GCC internal prototype to avoid an error.
  10759. Use char because int might match the return type of a GCC
  10760. builtin and then its argument prototype would still apply. */
  10761. #ifdef __cplusplus
  10762. extern "C"
  10763. #endif
  10764. char shl_load ();
  10765. int
  10766. main ()
  10767. {
  10768. return shl_load ();
  10769. ;
  10770. return 0;
  10771. }
  10772. _ACEOF
  10773. if ac_fn_c_try_link "$LINENO"; then :
  10774. ac_cv_lib_dld_shl_load=yes
  10775. else
  10776. ac_cv_lib_dld_shl_load=no
  10777. fi
  10778. rm -f core conftest.err conftest.$ac_objext \
  10779. conftest$ac_exeext conftest.$ac_ext
  10780. LIBS=$ac_check_lib_save_LIBS
  10781. fi
  10782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10783. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10784. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10785. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10786. else
  10787. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10788. if test "x$ac_cv_func_dlopen" = xyes; then :
  10789. lt_cv_dlopen=dlopen
  10790. else
  10791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10792. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10793. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10794. $as_echo_n "(cached) " >&6
  10795. else
  10796. ac_check_lib_save_LIBS=$LIBS
  10797. LIBS="-ldl $LIBS"
  10798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10799. /* end confdefs.h. */
  10800. /* Override any GCC internal prototype to avoid an error.
  10801. Use char because int might match the return type of a GCC
  10802. builtin and then its argument prototype would still apply. */
  10803. #ifdef __cplusplus
  10804. extern "C"
  10805. #endif
  10806. char dlopen ();
  10807. int
  10808. main ()
  10809. {
  10810. return dlopen ();
  10811. ;
  10812. return 0;
  10813. }
  10814. _ACEOF
  10815. if ac_fn_c_try_link "$LINENO"; then :
  10816. ac_cv_lib_dl_dlopen=yes
  10817. else
  10818. ac_cv_lib_dl_dlopen=no
  10819. fi
  10820. rm -f core conftest.err conftest.$ac_objext \
  10821. conftest$ac_exeext conftest.$ac_ext
  10822. LIBS=$ac_check_lib_save_LIBS
  10823. fi
  10824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10825. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10826. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10827. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10828. else
  10829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10830. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10831. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10832. $as_echo_n "(cached) " >&6
  10833. else
  10834. ac_check_lib_save_LIBS=$LIBS
  10835. LIBS="-lsvld $LIBS"
  10836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10837. /* end confdefs.h. */
  10838. /* Override any GCC internal prototype to avoid an error.
  10839. Use char because int might match the return type of a GCC
  10840. builtin and then its argument prototype would still apply. */
  10841. #ifdef __cplusplus
  10842. extern "C"
  10843. #endif
  10844. char dlopen ();
  10845. int
  10846. main ()
  10847. {
  10848. return dlopen ();
  10849. ;
  10850. return 0;
  10851. }
  10852. _ACEOF
  10853. if ac_fn_c_try_link "$LINENO"; then :
  10854. ac_cv_lib_svld_dlopen=yes
  10855. else
  10856. ac_cv_lib_svld_dlopen=no
  10857. fi
  10858. rm -f core conftest.err conftest.$ac_objext \
  10859. conftest$ac_exeext conftest.$ac_ext
  10860. LIBS=$ac_check_lib_save_LIBS
  10861. fi
  10862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10863. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10864. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10865. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10866. else
  10867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10868. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10869. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10870. $as_echo_n "(cached) " >&6
  10871. else
  10872. ac_check_lib_save_LIBS=$LIBS
  10873. LIBS="-ldld $LIBS"
  10874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10875. /* end confdefs.h. */
  10876. /* Override any GCC internal prototype to avoid an error.
  10877. Use char because int might match the return type of a GCC
  10878. builtin and then its argument prototype would still apply. */
  10879. #ifdef __cplusplus
  10880. extern "C"
  10881. #endif
  10882. char dld_link ();
  10883. int
  10884. main ()
  10885. {
  10886. return dld_link ();
  10887. ;
  10888. return 0;
  10889. }
  10890. _ACEOF
  10891. if ac_fn_c_try_link "$LINENO"; then :
  10892. ac_cv_lib_dld_dld_link=yes
  10893. else
  10894. ac_cv_lib_dld_dld_link=no
  10895. fi
  10896. rm -f core conftest.err conftest.$ac_objext \
  10897. conftest$ac_exeext conftest.$ac_ext
  10898. LIBS=$ac_check_lib_save_LIBS
  10899. fi
  10900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10901. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10902. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10903. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10904. fi
  10905. fi
  10906. fi
  10907. fi
  10908. fi
  10909. fi
  10910. ;;
  10911. esac
  10912. if test no = "$lt_cv_dlopen"; then
  10913. enable_dlopen=no
  10914. else
  10915. enable_dlopen=yes
  10916. fi
  10917. case $lt_cv_dlopen in
  10918. dlopen)
  10919. save_CPPFLAGS=$CPPFLAGS
  10920. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10921. save_LDFLAGS=$LDFLAGS
  10922. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10923. save_LIBS=$LIBS
  10924. LIBS="$lt_cv_dlopen_libs $LIBS"
  10925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10926. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10927. if ${lt_cv_dlopen_self+:} false; then :
  10928. $as_echo_n "(cached) " >&6
  10929. else
  10930. if test yes = "$cross_compiling"; then :
  10931. lt_cv_dlopen_self=cross
  10932. else
  10933. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10934. lt_status=$lt_dlunknown
  10935. cat > conftest.$ac_ext <<_LT_EOF
  10936. #line $LINENO "configure"
  10937. #include "confdefs.h"
  10938. #if HAVE_DLFCN_H
  10939. #include <dlfcn.h>
  10940. #endif
  10941. #include <stdio.h>
  10942. #ifdef RTLD_GLOBAL
  10943. # define LT_DLGLOBAL RTLD_GLOBAL
  10944. #else
  10945. # ifdef DL_GLOBAL
  10946. # define LT_DLGLOBAL DL_GLOBAL
  10947. # else
  10948. # define LT_DLGLOBAL 0
  10949. # endif
  10950. #endif
  10951. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10952. find out it does not work in some platform. */
  10953. #ifndef LT_DLLAZY_OR_NOW
  10954. # ifdef RTLD_LAZY
  10955. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10956. # else
  10957. # ifdef DL_LAZY
  10958. # define LT_DLLAZY_OR_NOW DL_LAZY
  10959. # else
  10960. # ifdef RTLD_NOW
  10961. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10962. # else
  10963. # ifdef DL_NOW
  10964. # define LT_DLLAZY_OR_NOW DL_NOW
  10965. # else
  10966. # define LT_DLLAZY_OR_NOW 0
  10967. # endif
  10968. # endif
  10969. # endif
  10970. # endif
  10971. #endif
  10972. /* When -fvisibility=hidden is used, assume the code has been annotated
  10973. correspondingly for the symbols needed. */
  10974. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10975. int fnord () __attribute__((visibility("default")));
  10976. #endif
  10977. int fnord () { return 42; }
  10978. int main ()
  10979. {
  10980. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10981. int status = $lt_dlunknown;
  10982. if (self)
  10983. {
  10984. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10985. else
  10986. {
  10987. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10988. else puts (dlerror ());
  10989. }
  10990. /* dlclose (self); */
  10991. }
  10992. else
  10993. puts (dlerror ());
  10994. return status;
  10995. }
  10996. _LT_EOF
  10997. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10998. (eval $ac_link) 2>&5
  10999. ac_status=$?
  11000. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11001. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11002. (./conftest; exit; ) >&5 2>/dev/null
  11003. lt_status=$?
  11004. case x$lt_status in
  11005. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11006. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11007. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11008. esac
  11009. else :
  11010. # compilation failed
  11011. lt_cv_dlopen_self=no
  11012. fi
  11013. fi
  11014. rm -fr conftest*
  11015. fi
  11016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11017. $as_echo "$lt_cv_dlopen_self" >&6; }
  11018. if test yes = "$lt_cv_dlopen_self"; then
  11019. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11021. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11022. if ${lt_cv_dlopen_self_static+:} false; then :
  11023. $as_echo_n "(cached) " >&6
  11024. else
  11025. if test yes = "$cross_compiling"; then :
  11026. lt_cv_dlopen_self_static=cross
  11027. else
  11028. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11029. lt_status=$lt_dlunknown
  11030. cat > conftest.$ac_ext <<_LT_EOF
  11031. #line $LINENO "configure"
  11032. #include "confdefs.h"
  11033. #if HAVE_DLFCN_H
  11034. #include <dlfcn.h>
  11035. #endif
  11036. #include <stdio.h>
  11037. #ifdef RTLD_GLOBAL
  11038. # define LT_DLGLOBAL RTLD_GLOBAL
  11039. #else
  11040. # ifdef DL_GLOBAL
  11041. # define LT_DLGLOBAL DL_GLOBAL
  11042. # else
  11043. # define LT_DLGLOBAL 0
  11044. # endif
  11045. #endif
  11046. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11047. find out it does not work in some platform. */
  11048. #ifndef LT_DLLAZY_OR_NOW
  11049. # ifdef RTLD_LAZY
  11050. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11051. # else
  11052. # ifdef DL_LAZY
  11053. # define LT_DLLAZY_OR_NOW DL_LAZY
  11054. # else
  11055. # ifdef RTLD_NOW
  11056. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11057. # else
  11058. # ifdef DL_NOW
  11059. # define LT_DLLAZY_OR_NOW DL_NOW
  11060. # else
  11061. # define LT_DLLAZY_OR_NOW 0
  11062. # endif
  11063. # endif
  11064. # endif
  11065. # endif
  11066. #endif
  11067. /* When -fvisibility=hidden is used, assume the code has been annotated
  11068. correspondingly for the symbols needed. */
  11069. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11070. int fnord () __attribute__((visibility("default")));
  11071. #endif
  11072. int fnord () { return 42; }
  11073. int main ()
  11074. {
  11075. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11076. int status = $lt_dlunknown;
  11077. if (self)
  11078. {
  11079. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11080. else
  11081. {
  11082. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11083. else puts (dlerror ());
  11084. }
  11085. /* dlclose (self); */
  11086. }
  11087. else
  11088. puts (dlerror ());
  11089. return status;
  11090. }
  11091. _LT_EOF
  11092. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11093. (eval $ac_link) 2>&5
  11094. ac_status=$?
  11095. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11096. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11097. (./conftest; exit; ) >&5 2>/dev/null
  11098. lt_status=$?
  11099. case x$lt_status in
  11100. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11101. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11102. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11103. esac
  11104. else :
  11105. # compilation failed
  11106. lt_cv_dlopen_self_static=no
  11107. fi
  11108. fi
  11109. rm -fr conftest*
  11110. fi
  11111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11112. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11113. fi
  11114. CPPFLAGS=$save_CPPFLAGS
  11115. LDFLAGS=$save_LDFLAGS
  11116. LIBS=$save_LIBS
  11117. ;;
  11118. esac
  11119. case $lt_cv_dlopen_self in
  11120. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11121. *) enable_dlopen_self=unknown ;;
  11122. esac
  11123. case $lt_cv_dlopen_self_static in
  11124. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11125. *) enable_dlopen_self_static=unknown ;;
  11126. esac
  11127. fi
  11128. striplib=
  11129. old_striplib=
  11130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11131. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11132. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11133. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11134. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11136. $as_echo "yes" >&6; }
  11137. else
  11138. # FIXME - insert some real tests, host_os isn't really good enough
  11139. case $host_os in
  11140. darwin*)
  11141. if test -n "$STRIP"; then
  11142. striplib="$STRIP -x"
  11143. old_striplib="$STRIP -S"
  11144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11145. $as_echo "yes" >&6; }
  11146. else
  11147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11148. $as_echo "no" >&6; }
  11149. fi
  11150. ;;
  11151. *)
  11152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11153. $as_echo "no" >&6; }
  11154. ;;
  11155. esac
  11156. fi
  11157. # Report what library types will actually be built
  11158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11159. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11161. $as_echo "$can_build_shared" >&6; }
  11162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11163. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11164. test no = "$can_build_shared" && enable_shared=no
  11165. # On AIX, shared libraries and static libraries use the same namespace, and
  11166. # are all built from PIC.
  11167. case $host_os in
  11168. aix3*)
  11169. test yes = "$enable_shared" && enable_static=no
  11170. if test -n "$RANLIB"; then
  11171. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11172. postinstall_cmds='$RANLIB $lib'
  11173. fi
  11174. ;;
  11175. aix[4-9]*)
  11176. if test ia64 != "$host_cpu"; then
  11177. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11178. yes,aix,yes) ;; # shared object as lib.so file only
  11179. yes,svr4,*) ;; # shared object as lib.so archive member only
  11180. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11181. esac
  11182. fi
  11183. ;;
  11184. esac
  11185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11186. $as_echo "$enable_shared" >&6; }
  11187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11188. $as_echo_n "checking whether to build static libraries... " >&6; }
  11189. # Make sure either enable_shared or enable_static is yes.
  11190. test yes = "$enable_shared" || enable_static=yes
  11191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11192. $as_echo "$enable_static" >&6; }
  11193. fi
  11194. ac_ext=c
  11195. ac_cpp='$CPP $CPPFLAGS'
  11196. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11197. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11198. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11199. CC=$lt_save_CC
  11200. ac_config_commands="$ac_config_commands libtool"
  11201. # Only expand once:
  11202. ac_config_files="$ac_config_files Makefile"
  11203. ###############################################################################
  11204. builddir=`pwd`
  11205. # Check whether --with-ccache was given.
  11206. if test "${with_ccache+set}" = set; then :
  11207. withval=$with_ccache;
  11208. fi
  11209. # Extract the first word of "ccache", so it can be a program name with args.
  11210. set dummy ccache; ac_word=$2
  11211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11212. $as_echo_n "checking for $ac_word... " >&6; }
  11213. if ${ac_cv_prog_CCACHE+:} false; then :
  11214. $as_echo_n "(cached) " >&6
  11215. else
  11216. if test -n "$CCACHE"; then
  11217. ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
  11218. else
  11219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11220. for as_dir in $PATH
  11221. do
  11222. IFS=$as_save_IFS
  11223. test -z "$as_dir" && as_dir=.
  11224. for ac_exec_ext in '' $ac_executable_extensions; do
  11225. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11226. ac_cv_prog_CCACHE="ccache"
  11227. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11228. break 2
  11229. fi
  11230. done
  11231. done
  11232. IFS=$as_save_IFS
  11233. fi
  11234. fi
  11235. CCACHE=$ac_cv_prog_CCACHE
  11236. if test -n "$CCACHE"; then
  11237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
  11238. $as_echo "$CCACHE" >&6; }
  11239. else
  11240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11241. $as_echo "no" >&6; }
  11242. fi
  11243. { $as_echo "$as_me:${as_lineno-$LINENO}: CC=/$CC/ CXX=/$CXX/ CCACHE=/$CCACHE/" >&5
  11244. $as_echo "$as_me: CC=/$CC/ CXX=/$CXX/ CCACHE=/$CCACHE/" >&6;}
  11245. # The use of ccache here deserves an explanation. The first and maybe obvious
  11246. # thing is that if wither ccache seems to to be installed or if the person
  11247. # who invoked the configure script had overridden CC or CXX so specify any
  11248. # custom compilers that I will not do anything.
  11249. # Then the "obvious" thing do do would be to go 'CC="ccache $CC"' so that
  11250. # subsequent compilation ended up cached. Well before I can do that I need
  11251. # to get CC set - and remember that if --host is set then it may end up
  11252. # being a cross-compiler. So 'CC="ccache gcc"' is certainly not good enough.
  11253. # However the autoconf macros that set CC (and CXX) also set CFLAGS etc
  11254. # in ways I do not want, so I take steps to preserve and restore those.
  11255. # Now an issue that caused me much pain. If CC ends up as text with embedded
  11256. # whitespace then passing it down to lower-level configure scripts is
  11257. # delicate. And at leats one library that I use performs a test of the form
  11258. # if test $CC = xxx; then
  11259. # (where perhaps more properly it would have gone 'test "$CC" = "xxx"') and
  11260. # if CC expands to more than one word that gives a syntax error. So to work
  11261. # around both those problems I dynamically create short scripts to compile
  11262. # via ccache. These are placed in the top level build directory, which should
  11263. # be platform specific. This extra layer of shell scripting will have an
  11264. # adverse cost, but I hope that will be balanced by the effects of ccache.
  11265. # Please note that here (and in other places) that whitespace in the path
  11266. # to where Reduce gets built is not supported. If some keen person would
  11267. # like to review all the build scripts and get quoting of strings fully
  11268. # correct that might be nice!
  11269. # Hah - a further issue. On some platforms gcc and g++ (and som others) will
  11270. # be links to ccache and so the facility is already used automatically. In
  11271. # that case it is not a help to wrap in an extra call to ccache!
  11272. ORIG="$CC$CXX"
  11273. OLD_CFLAGS="$CFLAGS"
  11274. OLD_CXXFLAGS="$CXXFLAGS"
  11275. OLD_CPPFLAGS="$CPPFLAGS"
  11276. ac_ext=c
  11277. ac_cpp='$CPP $CPPFLAGS'
  11278. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11279. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11280. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11281. if test -n "$ac_tool_prefix"; then
  11282. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11283. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11285. $as_echo_n "checking for $ac_word... " >&6; }
  11286. if ${ac_cv_prog_CC+:} false; then :
  11287. $as_echo_n "(cached) " >&6
  11288. else
  11289. if test -n "$CC"; then
  11290. ac_cv_prog_CC="$CC" # Let the user override the test.
  11291. else
  11292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11293. for as_dir in $PATH
  11294. do
  11295. IFS=$as_save_IFS
  11296. test -z "$as_dir" && as_dir=.
  11297. for ac_exec_ext in '' $ac_executable_extensions; do
  11298. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11299. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11300. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11301. break 2
  11302. fi
  11303. done
  11304. done
  11305. IFS=$as_save_IFS
  11306. fi
  11307. fi
  11308. CC=$ac_cv_prog_CC
  11309. if test -n "$CC"; then
  11310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11311. $as_echo "$CC" >&6; }
  11312. else
  11313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11314. $as_echo "no" >&6; }
  11315. fi
  11316. fi
  11317. if test -z "$ac_cv_prog_CC"; then
  11318. ac_ct_CC=$CC
  11319. # Extract the first word of "gcc", so it can be a program name with args.
  11320. set dummy gcc; ac_word=$2
  11321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11322. $as_echo_n "checking for $ac_word... " >&6; }
  11323. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  11324. $as_echo_n "(cached) " >&6
  11325. else
  11326. if test -n "$ac_ct_CC"; then
  11327. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11328. else
  11329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11330. for as_dir in $PATH
  11331. do
  11332. IFS=$as_save_IFS
  11333. test -z "$as_dir" && as_dir=.
  11334. for ac_exec_ext in '' $ac_executable_extensions; do
  11335. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11336. ac_cv_prog_ac_ct_CC="gcc"
  11337. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11338. break 2
  11339. fi
  11340. done
  11341. done
  11342. IFS=$as_save_IFS
  11343. fi
  11344. fi
  11345. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11346. if test -n "$ac_ct_CC"; then
  11347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11348. $as_echo "$ac_ct_CC" >&6; }
  11349. else
  11350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11351. $as_echo "no" >&6; }
  11352. fi
  11353. if test "x$ac_ct_CC" = x; then
  11354. CC=""
  11355. else
  11356. case $cross_compiling:$ac_tool_warned in
  11357. yes:)
  11358. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11359. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11360. ac_tool_warned=yes ;;
  11361. esac
  11362. CC=$ac_ct_CC
  11363. fi
  11364. else
  11365. CC="$ac_cv_prog_CC"
  11366. fi
  11367. if test -z "$CC"; then
  11368. if test -n "$ac_tool_prefix"; then
  11369. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11370. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11372. $as_echo_n "checking for $ac_word... " >&6; }
  11373. if ${ac_cv_prog_CC+:} false; then :
  11374. $as_echo_n "(cached) " >&6
  11375. else
  11376. if test -n "$CC"; then
  11377. ac_cv_prog_CC="$CC" # Let the user override the test.
  11378. else
  11379. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11380. for as_dir in $PATH
  11381. do
  11382. IFS=$as_save_IFS
  11383. test -z "$as_dir" && as_dir=.
  11384. for ac_exec_ext in '' $ac_executable_extensions; do
  11385. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11386. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11387. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11388. break 2
  11389. fi
  11390. done
  11391. done
  11392. IFS=$as_save_IFS
  11393. fi
  11394. fi
  11395. CC=$ac_cv_prog_CC
  11396. if test -n "$CC"; then
  11397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11398. $as_echo "$CC" >&6; }
  11399. else
  11400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11401. $as_echo "no" >&6; }
  11402. fi
  11403. fi
  11404. fi
  11405. if test -z "$CC"; then
  11406. # Extract the first word of "cc", so it can be a program name with args.
  11407. set dummy cc; ac_word=$2
  11408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11409. $as_echo_n "checking for $ac_word... " >&6; }
  11410. if ${ac_cv_prog_CC+:} false; then :
  11411. $as_echo_n "(cached) " >&6
  11412. else
  11413. if test -n "$CC"; then
  11414. ac_cv_prog_CC="$CC" # Let the user override the test.
  11415. else
  11416. ac_prog_rejected=no
  11417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11418. for as_dir in $PATH
  11419. do
  11420. IFS=$as_save_IFS
  11421. test -z "$as_dir" && as_dir=.
  11422. for ac_exec_ext in '' $ac_executable_extensions; do
  11423. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11424. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11425. ac_prog_rejected=yes
  11426. continue
  11427. fi
  11428. ac_cv_prog_CC="cc"
  11429. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11430. break 2
  11431. fi
  11432. done
  11433. done
  11434. IFS=$as_save_IFS
  11435. if test $ac_prog_rejected = yes; then
  11436. # We found a bogon in the path, so make sure we never use it.
  11437. set dummy $ac_cv_prog_CC
  11438. shift
  11439. if test $# != 0; then
  11440. # We chose a different compiler from the bogus one.
  11441. # However, it has the same basename, so the bogon will be chosen
  11442. # first if we set CC to just the basename; use the full file name.
  11443. shift
  11444. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  11445. fi
  11446. fi
  11447. fi
  11448. fi
  11449. CC=$ac_cv_prog_CC
  11450. if test -n "$CC"; then
  11451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11452. $as_echo "$CC" >&6; }
  11453. else
  11454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11455. $as_echo "no" >&6; }
  11456. fi
  11457. fi
  11458. if test -z "$CC"; then
  11459. if test -n "$ac_tool_prefix"; then
  11460. for ac_prog in cl.exe
  11461. do
  11462. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11463. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11465. $as_echo_n "checking for $ac_word... " >&6; }
  11466. if ${ac_cv_prog_CC+:} false; then :
  11467. $as_echo_n "(cached) " >&6
  11468. else
  11469. if test -n "$CC"; then
  11470. ac_cv_prog_CC="$CC" # Let the user override the test.
  11471. else
  11472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11473. for as_dir in $PATH
  11474. do
  11475. IFS=$as_save_IFS
  11476. test -z "$as_dir" && as_dir=.
  11477. for ac_exec_ext in '' $ac_executable_extensions; do
  11478. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11479. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11480. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11481. break 2
  11482. fi
  11483. done
  11484. done
  11485. IFS=$as_save_IFS
  11486. fi
  11487. fi
  11488. CC=$ac_cv_prog_CC
  11489. if test -n "$CC"; then
  11490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11491. $as_echo "$CC" >&6; }
  11492. else
  11493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11494. $as_echo "no" >&6; }
  11495. fi
  11496. test -n "$CC" && break
  11497. done
  11498. fi
  11499. if test -z "$CC"; then
  11500. ac_ct_CC=$CC
  11501. for ac_prog in cl.exe
  11502. do
  11503. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11504. set dummy $ac_prog; ac_word=$2
  11505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11506. $as_echo_n "checking for $ac_word... " >&6; }
  11507. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  11508. $as_echo_n "(cached) " >&6
  11509. else
  11510. if test -n "$ac_ct_CC"; then
  11511. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11512. else
  11513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11514. for as_dir in $PATH
  11515. do
  11516. IFS=$as_save_IFS
  11517. test -z "$as_dir" && as_dir=.
  11518. for ac_exec_ext in '' $ac_executable_extensions; do
  11519. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11520. ac_cv_prog_ac_ct_CC="$ac_prog"
  11521. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11522. break 2
  11523. fi
  11524. done
  11525. done
  11526. IFS=$as_save_IFS
  11527. fi
  11528. fi
  11529. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11530. if test -n "$ac_ct_CC"; then
  11531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11532. $as_echo "$ac_ct_CC" >&6; }
  11533. else
  11534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11535. $as_echo "no" >&6; }
  11536. fi
  11537. test -n "$ac_ct_CC" && break
  11538. done
  11539. if test "x$ac_ct_CC" = x; then
  11540. CC=""
  11541. else
  11542. case $cross_compiling:$ac_tool_warned in
  11543. yes:)
  11544. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11545. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11546. ac_tool_warned=yes ;;
  11547. esac
  11548. CC=$ac_ct_CC
  11549. fi
  11550. fi
  11551. fi
  11552. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11553. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11554. as_fn_error $? "no acceptable C compiler found in \$PATH
  11555. See \`config.log' for more details" "$LINENO" 5; }
  11556. # Provide some information about the compiler.
  11557. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11558. set X $ac_compile
  11559. ac_compiler=$2
  11560. for ac_option in --version -v -V -qversion; do
  11561. { { ac_try="$ac_compiler $ac_option >&5"
  11562. case "(($ac_try" in
  11563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11564. *) ac_try_echo=$ac_try;;
  11565. esac
  11566. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11567. $as_echo "$ac_try_echo"; } >&5
  11568. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11569. ac_status=$?
  11570. if test -s conftest.err; then
  11571. sed '10a\
  11572. ... rest of stderr output deleted ...
  11573. 10q' conftest.err >conftest.er1
  11574. cat conftest.er1 >&5
  11575. fi
  11576. rm -f conftest.er1 conftest.err
  11577. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11578. test $ac_status = 0; }
  11579. done
  11580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  11581. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  11582. if ${ac_cv_c_compiler_gnu+:} false; then :
  11583. $as_echo_n "(cached) " >&6
  11584. else
  11585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11586. /* end confdefs.h. */
  11587. int
  11588. main ()
  11589. {
  11590. #ifndef __GNUC__
  11591. choke me
  11592. #endif
  11593. ;
  11594. return 0;
  11595. }
  11596. _ACEOF
  11597. if ac_fn_c_try_compile "$LINENO"; then :
  11598. ac_compiler_gnu=yes
  11599. else
  11600. ac_compiler_gnu=no
  11601. fi
  11602. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11603. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11604. fi
  11605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11606. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  11607. if test $ac_compiler_gnu = yes; then
  11608. GCC=yes
  11609. else
  11610. GCC=
  11611. fi
  11612. ac_test_CFLAGS=${CFLAGS+set}
  11613. ac_save_CFLAGS=$CFLAGS
  11614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11615. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  11616. if ${ac_cv_prog_cc_g+:} false; then :
  11617. $as_echo_n "(cached) " >&6
  11618. else
  11619. ac_save_c_werror_flag=$ac_c_werror_flag
  11620. ac_c_werror_flag=yes
  11621. ac_cv_prog_cc_g=no
  11622. CFLAGS="-g"
  11623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11624. /* end confdefs.h. */
  11625. int
  11626. main ()
  11627. {
  11628. ;
  11629. return 0;
  11630. }
  11631. _ACEOF
  11632. if ac_fn_c_try_compile "$LINENO"; then :
  11633. ac_cv_prog_cc_g=yes
  11634. else
  11635. CFLAGS=""
  11636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11637. /* end confdefs.h. */
  11638. int
  11639. main ()
  11640. {
  11641. ;
  11642. return 0;
  11643. }
  11644. _ACEOF
  11645. if ac_fn_c_try_compile "$LINENO"; then :
  11646. else
  11647. ac_c_werror_flag=$ac_save_c_werror_flag
  11648. CFLAGS="-g"
  11649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11650. /* end confdefs.h. */
  11651. int
  11652. main ()
  11653. {
  11654. ;
  11655. return 0;
  11656. }
  11657. _ACEOF
  11658. if ac_fn_c_try_compile "$LINENO"; then :
  11659. ac_cv_prog_cc_g=yes
  11660. fi
  11661. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11662. fi
  11663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11664. fi
  11665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11666. ac_c_werror_flag=$ac_save_c_werror_flag
  11667. fi
  11668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11669. $as_echo "$ac_cv_prog_cc_g" >&6; }
  11670. if test "$ac_test_CFLAGS" = set; then
  11671. CFLAGS=$ac_save_CFLAGS
  11672. elif test $ac_cv_prog_cc_g = yes; then
  11673. if test "$GCC" = yes; then
  11674. CFLAGS="-g -O2"
  11675. else
  11676. CFLAGS="-g"
  11677. fi
  11678. else
  11679. if test "$GCC" = yes; then
  11680. CFLAGS="-O2"
  11681. else
  11682. CFLAGS=
  11683. fi
  11684. fi
  11685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  11686. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  11687. if ${ac_cv_prog_cc_c89+:} false; then :
  11688. $as_echo_n "(cached) " >&6
  11689. else
  11690. ac_cv_prog_cc_c89=no
  11691. ac_save_CC=$CC
  11692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11693. /* end confdefs.h. */
  11694. #include <stdarg.h>
  11695. #include <stdio.h>
  11696. struct stat;
  11697. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  11698. struct buf { int x; };
  11699. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  11700. static char *e (p, i)
  11701. char **p;
  11702. int i;
  11703. {
  11704. return p[i];
  11705. }
  11706. static char *f (char * (*g) (char **, int), char **p, ...)
  11707. {
  11708. char *s;
  11709. va_list v;
  11710. va_start (v,p);
  11711. s = g (p, va_arg (v,int));
  11712. va_end (v);
  11713. return s;
  11714. }
  11715. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  11716. function prototypes and stuff, but not '\xHH' hex character constants.
  11717. These don't provoke an error unfortunately, instead are silently treated
  11718. as 'x'. The following induces an error, until -std is added to get
  11719. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  11720. array size at least. It's necessary to write '\x00'==0 to get something
  11721. that's true only with -std. */
  11722. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  11723. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  11724. inside strings and character constants. */
  11725. #define FOO(x) 'x'
  11726. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  11727. int test (int i, double x);
  11728. struct s1 {int (*f) (int a);};
  11729. struct s2 {int (*f) (double a);};
  11730. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  11731. int argc;
  11732. char **argv;
  11733. int
  11734. main ()
  11735. {
  11736. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11737. ;
  11738. return 0;
  11739. }
  11740. _ACEOF
  11741. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11742. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11743. do
  11744. CC="$ac_save_CC $ac_arg"
  11745. if ac_fn_c_try_compile "$LINENO"; then :
  11746. ac_cv_prog_cc_c89=$ac_arg
  11747. fi
  11748. rm -f core conftest.err conftest.$ac_objext
  11749. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11750. done
  11751. rm -f conftest.$ac_ext
  11752. CC=$ac_save_CC
  11753. fi
  11754. # AC_CACHE_VAL
  11755. case "x$ac_cv_prog_cc_c89" in
  11756. x)
  11757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11758. $as_echo "none needed" >&6; } ;;
  11759. xno)
  11760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11761. $as_echo "unsupported" >&6; } ;;
  11762. *)
  11763. CC="$CC $ac_cv_prog_cc_c89"
  11764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11765. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11766. esac
  11767. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11768. fi
  11769. ac_ext=c
  11770. ac_cpp='$CPP $CPPFLAGS'
  11771. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11772. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11773. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11774. ac_ext=c
  11775. ac_cpp='$CPP $CPPFLAGS'
  11776. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11777. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11778. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  11780. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  11781. if ${am_cv_prog_cc_c_o+:} false; then :
  11782. $as_echo_n "(cached) " >&6
  11783. else
  11784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11785. /* end confdefs.h. */
  11786. int
  11787. main ()
  11788. {
  11789. ;
  11790. return 0;
  11791. }
  11792. _ACEOF
  11793. # Make sure it works both with $CC and with simple cc.
  11794. # Following AC_PROG_CC_C_O, we do the test twice because some
  11795. # compilers refuse to overwrite an existing .o file with -o,
  11796. # though they will create one.
  11797. am_cv_prog_cc_c_o=yes
  11798. for am_i in 1 2; do
  11799. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  11800. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  11801. ac_status=$?
  11802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11803. (exit $ac_status); } \
  11804. && test -f conftest2.$ac_objext; then
  11805. : OK
  11806. else
  11807. am_cv_prog_cc_c_o=no
  11808. break
  11809. fi
  11810. done
  11811. rm -f core conftest*
  11812. unset am_i
  11813. fi
  11814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  11815. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  11816. if test "$am_cv_prog_cc_c_o" != yes; then
  11817. # Losing compiler, so override with the script.
  11818. # FIXME: It is wrong to rewrite CC.
  11819. # But if we don't then we get into trouble of one sort or another.
  11820. # A longer-term fix would be to have automake use am__CC in this case,
  11821. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  11822. CC="$am_aux_dir/compile $CC"
  11823. fi
  11824. ac_ext=c
  11825. ac_cpp='$CPP $CPPFLAGS'
  11826. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11827. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11828. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11829. depcc="$CC" am_compiler_list=
  11830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  11831. $as_echo_n "checking dependency style of $depcc... " >&6; }
  11832. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  11833. $as_echo_n "(cached) " >&6
  11834. else
  11835. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  11836. # We make a subdir and do the tests there. Otherwise we can end up
  11837. # making bogus files that we don't know about and never remove. For
  11838. # instance it was reported that on HP-UX the gcc test will end up
  11839. # making a dummy file named 'D' -- because '-MD' means "put the output
  11840. # in D".
  11841. rm -rf conftest.dir
  11842. mkdir conftest.dir
  11843. # Copy depcomp to subdir because otherwise we won't find it if we're
  11844. # using a relative directory.
  11845. cp "$am_depcomp" conftest.dir
  11846. cd conftest.dir
  11847. # We will build objects and dependencies in a subdirectory because
  11848. # it helps to detect inapplicable dependency modes. For instance
  11849. # both Tru64's cc and ICC support -MD to output dependencies as a
  11850. # side effect of compilation, but ICC will put the dependencies in
  11851. # the current directory while Tru64 will put them in the object
  11852. # directory.
  11853. mkdir sub
  11854. am_cv_CC_dependencies_compiler_type=none
  11855. if test "$am_compiler_list" = ""; then
  11856. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  11857. fi
  11858. am__universal=false
  11859. case " $depcc " in #(
  11860. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11861. esac
  11862. for depmode in $am_compiler_list; do
  11863. # Setup a source with many dependencies, because some compilers
  11864. # like to wrap large dependency lists on column 80 (with \), and
  11865. # we should not choose a depcomp mode which is confused by this.
  11866. #
  11867. # We need to recreate these files for each test, as the compiler may
  11868. # overwrite some of them when testing with obscure command lines.
  11869. # This happens at least with the AIX C compiler.
  11870. : > sub/conftest.c
  11871. for i in 1 2 3 4 5 6; do
  11872. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  11873. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  11874. # Solaris 10 /bin/sh.
  11875. echo '/* dummy */' > sub/conftst$i.h
  11876. done
  11877. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11878. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  11879. # mode. It turns out that the SunPro C++ compiler does not properly
  11880. # handle '-M -o', and we need to detect this. Also, some Intel
  11881. # versions had trouble with output in subdirs.
  11882. am__obj=sub/conftest.${OBJEXT-o}
  11883. am__minus_obj="-o $am__obj"
  11884. case $depmode in
  11885. gcc)
  11886. # This depmode causes a compiler race in universal mode.
  11887. test "$am__universal" = false || continue
  11888. ;;
  11889. nosideeffect)
  11890. # After this tag, mechanisms are not by side-effect, so they'll
  11891. # only be used when explicitly requested.
  11892. if test "x$enable_dependency_tracking" = xyes; then
  11893. continue
  11894. else
  11895. break
  11896. fi
  11897. ;;
  11898. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  11899. # This compiler won't grok '-c -o', but also, the minuso test has
  11900. # not run yet. These depmodes are late enough in the game, and
  11901. # so weak that their functioning should not be impacted.
  11902. am__obj=conftest.${OBJEXT-o}
  11903. am__minus_obj=
  11904. ;;
  11905. none) break ;;
  11906. esac
  11907. if depmode=$depmode \
  11908. source=sub/conftest.c object=$am__obj \
  11909. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11910. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11911. >/dev/null 2>conftest.err &&
  11912. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11913. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11914. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11915. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11916. # icc doesn't choke on unknown options, it will just issue warnings
  11917. # or remarks (even with -Werror). So we grep stderr for any message
  11918. # that says an option was ignored or not supported.
  11919. # When given -MP, icc 7.0 and 7.1 complain thusly:
  11920. # icc: Command line warning: ignoring option '-M'; no argument required
  11921. # The diagnosis changed in icc 8.0:
  11922. # icc: Command line remark: option '-MP' not supported
  11923. if (grep 'ignoring option' conftest.err ||
  11924. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  11925. am_cv_CC_dependencies_compiler_type=$depmode
  11926. break
  11927. fi
  11928. fi
  11929. done
  11930. cd ..
  11931. rm -rf conftest.dir
  11932. else
  11933. am_cv_CC_dependencies_compiler_type=none
  11934. fi
  11935. fi
  11936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  11937. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  11938. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  11939. if
  11940. test "x$enable_dependency_tracking" != xno \
  11941. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  11942. am__fastdepCC_TRUE=
  11943. am__fastdepCC_FALSE='#'
  11944. else
  11945. am__fastdepCC_TRUE='#'
  11946. am__fastdepCC_FALSE=
  11947. fi
  11948. ac_ext=cpp
  11949. ac_cpp='$CXXCPP $CPPFLAGS'
  11950. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11951. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11952. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11953. if test -z "$CXX"; then
  11954. if test -n "$CCC"; then
  11955. CXX=$CCC
  11956. else
  11957. if test -n "$ac_tool_prefix"; then
  11958. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11959. do
  11960. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11961. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11963. $as_echo_n "checking for $ac_word... " >&6; }
  11964. if ${ac_cv_prog_CXX+:} false; then :
  11965. $as_echo_n "(cached) " >&6
  11966. else
  11967. if test -n "$CXX"; then
  11968. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11969. else
  11970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11971. for as_dir in $PATH
  11972. do
  11973. IFS=$as_save_IFS
  11974. test -z "$as_dir" && as_dir=.
  11975. for ac_exec_ext in '' $ac_executable_extensions; do
  11976. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11977. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11978. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11979. break 2
  11980. fi
  11981. done
  11982. done
  11983. IFS=$as_save_IFS
  11984. fi
  11985. fi
  11986. CXX=$ac_cv_prog_CXX
  11987. if test -n "$CXX"; then
  11988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11989. $as_echo "$CXX" >&6; }
  11990. else
  11991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11992. $as_echo "no" >&6; }
  11993. fi
  11994. test -n "$CXX" && break
  11995. done
  11996. fi
  11997. if test -z "$CXX"; then
  11998. ac_ct_CXX=$CXX
  11999. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12000. do
  12001. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12002. set dummy $ac_prog; ac_word=$2
  12003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12004. $as_echo_n "checking for $ac_word... " >&6; }
  12005. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  12006. $as_echo_n "(cached) " >&6
  12007. else
  12008. if test -n "$ac_ct_CXX"; then
  12009. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12010. else
  12011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12012. for as_dir in $PATH
  12013. do
  12014. IFS=$as_save_IFS
  12015. test -z "$as_dir" && as_dir=.
  12016. for ac_exec_ext in '' $ac_executable_extensions; do
  12017. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12018. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12019. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12020. break 2
  12021. fi
  12022. done
  12023. done
  12024. IFS=$as_save_IFS
  12025. fi
  12026. fi
  12027. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12028. if test -n "$ac_ct_CXX"; then
  12029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12030. $as_echo "$ac_ct_CXX" >&6; }
  12031. else
  12032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12033. $as_echo "no" >&6; }
  12034. fi
  12035. test -n "$ac_ct_CXX" && break
  12036. done
  12037. if test "x$ac_ct_CXX" = x; then
  12038. CXX="g++"
  12039. else
  12040. case $cross_compiling:$ac_tool_warned in
  12041. yes:)
  12042. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12043. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12044. ac_tool_warned=yes ;;
  12045. esac
  12046. CXX=$ac_ct_CXX
  12047. fi
  12048. fi
  12049. fi
  12050. fi
  12051. # Provide some information about the compiler.
  12052. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12053. set X $ac_compile
  12054. ac_compiler=$2
  12055. for ac_option in --version -v -V -qversion; do
  12056. { { ac_try="$ac_compiler $ac_option >&5"
  12057. case "(($ac_try" in
  12058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12059. *) ac_try_echo=$ac_try;;
  12060. esac
  12061. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12062. $as_echo "$ac_try_echo"; } >&5
  12063. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12064. ac_status=$?
  12065. if test -s conftest.err; then
  12066. sed '10a\
  12067. ... rest of stderr output deleted ...
  12068. 10q' conftest.err >conftest.er1
  12069. cat conftest.er1 >&5
  12070. fi
  12071. rm -f conftest.er1 conftest.err
  12072. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12073. test $ac_status = 0; }
  12074. done
  12075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  12076. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  12077. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  12078. $as_echo_n "(cached) " >&6
  12079. else
  12080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12081. /* end confdefs.h. */
  12082. int
  12083. main ()
  12084. {
  12085. #ifndef __GNUC__
  12086. choke me
  12087. #endif
  12088. ;
  12089. return 0;
  12090. }
  12091. _ACEOF
  12092. if ac_fn_cxx_try_compile "$LINENO"; then :
  12093. ac_compiler_gnu=yes
  12094. else
  12095. ac_compiler_gnu=no
  12096. fi
  12097. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12098. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12099. fi
  12100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12101. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  12102. if test $ac_compiler_gnu = yes; then
  12103. GXX=yes
  12104. else
  12105. GXX=
  12106. fi
  12107. ac_test_CXXFLAGS=${CXXFLAGS+set}
  12108. ac_save_CXXFLAGS=$CXXFLAGS
  12109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12110. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  12111. if ${ac_cv_prog_cxx_g+:} false; then :
  12112. $as_echo_n "(cached) " >&6
  12113. else
  12114. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12115. ac_cxx_werror_flag=yes
  12116. ac_cv_prog_cxx_g=no
  12117. CXXFLAGS="-g"
  12118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12119. /* end confdefs.h. */
  12120. int
  12121. main ()
  12122. {
  12123. ;
  12124. return 0;
  12125. }
  12126. _ACEOF
  12127. if ac_fn_cxx_try_compile "$LINENO"; then :
  12128. ac_cv_prog_cxx_g=yes
  12129. else
  12130. CXXFLAGS=""
  12131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12132. /* end confdefs.h. */
  12133. int
  12134. main ()
  12135. {
  12136. ;
  12137. return 0;
  12138. }
  12139. _ACEOF
  12140. if ac_fn_cxx_try_compile "$LINENO"; then :
  12141. else
  12142. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12143. CXXFLAGS="-g"
  12144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12145. /* end confdefs.h. */
  12146. int
  12147. main ()
  12148. {
  12149. ;
  12150. return 0;
  12151. }
  12152. _ACEOF
  12153. if ac_fn_cxx_try_compile "$LINENO"; then :
  12154. ac_cv_prog_cxx_g=yes
  12155. fi
  12156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12157. fi
  12158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12159. fi
  12160. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12161. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12162. fi
  12163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12164. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  12165. if test "$ac_test_CXXFLAGS" = set; then
  12166. CXXFLAGS=$ac_save_CXXFLAGS
  12167. elif test $ac_cv_prog_cxx_g = yes; then
  12168. if test "$GXX" = yes; then
  12169. CXXFLAGS="-g -O2"
  12170. else
  12171. CXXFLAGS="-g"
  12172. fi
  12173. else
  12174. if test "$GXX" = yes; then
  12175. CXXFLAGS="-O2"
  12176. else
  12177. CXXFLAGS=
  12178. fi
  12179. fi
  12180. ac_ext=c
  12181. ac_cpp='$CPP $CPPFLAGS'
  12182. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12183. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12184. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12185. depcc="$CXX" am_compiler_list=
  12186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12187. $as_echo_n "checking dependency style of $depcc... " >&6; }
  12188. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  12189. $as_echo_n "(cached) " >&6
  12190. else
  12191. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12192. # We make a subdir and do the tests there. Otherwise we can end up
  12193. # making bogus files that we don't know about and never remove. For
  12194. # instance it was reported that on HP-UX the gcc test will end up
  12195. # making a dummy file named 'D' -- because '-MD' means "put the output
  12196. # in D".
  12197. rm -rf conftest.dir
  12198. mkdir conftest.dir
  12199. # Copy depcomp to subdir because otherwise we won't find it if we're
  12200. # using a relative directory.
  12201. cp "$am_depcomp" conftest.dir
  12202. cd conftest.dir
  12203. # We will build objects and dependencies in a subdirectory because
  12204. # it helps to detect inapplicable dependency modes. For instance
  12205. # both Tru64's cc and ICC support -MD to output dependencies as a
  12206. # side effect of compilation, but ICC will put the dependencies in
  12207. # the current directory while Tru64 will put them in the object
  12208. # directory.
  12209. mkdir sub
  12210. am_cv_CXX_dependencies_compiler_type=none
  12211. if test "$am_compiler_list" = ""; then
  12212. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12213. fi
  12214. am__universal=false
  12215. case " $depcc " in #(
  12216. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12217. esac
  12218. for depmode in $am_compiler_list; do
  12219. # Setup a source with many dependencies, because some compilers
  12220. # like to wrap large dependency lists on column 80 (with \), and
  12221. # we should not choose a depcomp mode which is confused by this.
  12222. #
  12223. # We need to recreate these files for each test, as the compiler may
  12224. # overwrite some of them when testing with obscure command lines.
  12225. # This happens at least with the AIX C compiler.
  12226. : > sub/conftest.c
  12227. for i in 1 2 3 4 5 6; do
  12228. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12229. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  12230. # Solaris 10 /bin/sh.
  12231. echo '/* dummy */' > sub/conftst$i.h
  12232. done
  12233. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12234. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  12235. # mode. It turns out that the SunPro C++ compiler does not properly
  12236. # handle '-M -o', and we need to detect this. Also, some Intel
  12237. # versions had trouble with output in subdirs.
  12238. am__obj=sub/conftest.${OBJEXT-o}
  12239. am__minus_obj="-o $am__obj"
  12240. case $depmode in
  12241. gcc)
  12242. # This depmode causes a compiler race in universal mode.
  12243. test "$am__universal" = false || continue
  12244. ;;
  12245. nosideeffect)
  12246. # After this tag, mechanisms are not by side-effect, so they'll
  12247. # only be used when explicitly requested.
  12248. if test "x$enable_dependency_tracking" = xyes; then
  12249. continue
  12250. else
  12251. break
  12252. fi
  12253. ;;
  12254. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  12255. # This compiler won't grok '-c -o', but also, the minuso test has
  12256. # not run yet. These depmodes are late enough in the game, and
  12257. # so weak that their functioning should not be impacted.
  12258. am__obj=conftest.${OBJEXT-o}
  12259. am__minus_obj=
  12260. ;;
  12261. none) break ;;
  12262. esac
  12263. if depmode=$depmode \
  12264. source=sub/conftest.c object=$am__obj \
  12265. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12266. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12267. >/dev/null 2>conftest.err &&
  12268. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12269. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12270. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12271. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12272. # icc doesn't choke on unknown options, it will just issue warnings
  12273. # or remarks (even with -Werror). So we grep stderr for any message
  12274. # that says an option was ignored or not supported.
  12275. # When given -MP, icc 7.0 and 7.1 complain thusly:
  12276. # icc: Command line warning: ignoring option '-M'; no argument required
  12277. # The diagnosis changed in icc 8.0:
  12278. # icc: Command line remark: option '-MP' not supported
  12279. if (grep 'ignoring option' conftest.err ||
  12280. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12281. am_cv_CXX_dependencies_compiler_type=$depmode
  12282. break
  12283. fi
  12284. fi
  12285. done
  12286. cd ..
  12287. rm -rf conftest.dir
  12288. else
  12289. am_cv_CXX_dependencies_compiler_type=none
  12290. fi
  12291. fi
  12292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  12293. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  12294. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  12295. if
  12296. test "x$enable_dependency_tracking" != xno \
  12297. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  12298. am__fastdepCXX_TRUE=
  12299. am__fastdepCXX_FALSE='#'
  12300. else
  12301. am__fastdepCXX_TRUE='#'
  12302. am__fastdepCXX_FALSE=
  12303. fi
  12304. func_stripname_cnf ()
  12305. {
  12306. case $2 in
  12307. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12308. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12309. esac
  12310. } # func_stripname_cnf
  12311. if test -n "$CXX" && ( test no != "$CXX" &&
  12312. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12313. (test g++ != "$CXX"))); then
  12314. ac_ext=cpp
  12315. ac_cpp='$CXXCPP $CPPFLAGS'
  12316. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12317. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12318. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12320. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  12321. if test -z "$CXXCPP"; then
  12322. if ${ac_cv_prog_CXXCPP+:} false; then :
  12323. $as_echo_n "(cached) " >&6
  12324. else
  12325. # Double quotes because CXXCPP needs to be expanded
  12326. for CXXCPP in "$CXX -E" "/lib/cpp"
  12327. do
  12328. ac_preproc_ok=false
  12329. for ac_cxx_preproc_warn_flag in '' yes
  12330. do
  12331. # Use a header file that comes with gcc, so configuring glibc
  12332. # with a fresh cross-compiler works.
  12333. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12334. # <limits.h> exists even on freestanding compilers.
  12335. # On the NeXT, cc -E runs the code through the compiler's parser,
  12336. # not just through cpp. "Syntax error" is here to catch this case.
  12337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12338. /* end confdefs.h. */
  12339. #ifdef __STDC__
  12340. # include <limits.h>
  12341. #else
  12342. # include <assert.h>
  12343. #endif
  12344. Syntax error
  12345. _ACEOF
  12346. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12347. else
  12348. # Broken: fails on valid input.
  12349. continue
  12350. fi
  12351. rm -f conftest.err conftest.i conftest.$ac_ext
  12352. # OK, works on sane cases. Now check whether nonexistent headers
  12353. # can be detected and how.
  12354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12355. /* end confdefs.h. */
  12356. #include <ac_nonexistent.h>
  12357. _ACEOF
  12358. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12359. # Broken: success on invalid input.
  12360. continue
  12361. else
  12362. # Passes both tests.
  12363. ac_preproc_ok=:
  12364. break
  12365. fi
  12366. rm -f conftest.err conftest.i conftest.$ac_ext
  12367. done
  12368. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12369. rm -f conftest.i conftest.err conftest.$ac_ext
  12370. if $ac_preproc_ok; then :
  12371. break
  12372. fi
  12373. done
  12374. ac_cv_prog_CXXCPP=$CXXCPP
  12375. fi
  12376. CXXCPP=$ac_cv_prog_CXXCPP
  12377. else
  12378. ac_cv_prog_CXXCPP=$CXXCPP
  12379. fi
  12380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12381. $as_echo "$CXXCPP" >&6; }
  12382. ac_preproc_ok=false
  12383. for ac_cxx_preproc_warn_flag in '' yes
  12384. do
  12385. # Use a header file that comes with gcc, so configuring glibc
  12386. # with a fresh cross-compiler works.
  12387. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12388. # <limits.h> exists even on freestanding compilers.
  12389. # On the NeXT, cc -E runs the code through the compiler's parser,
  12390. # not just through cpp. "Syntax error" is here to catch this case.
  12391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12392. /* end confdefs.h. */
  12393. #ifdef __STDC__
  12394. # include <limits.h>
  12395. #else
  12396. # include <assert.h>
  12397. #endif
  12398. Syntax error
  12399. _ACEOF
  12400. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12401. else
  12402. # Broken: fails on valid input.
  12403. continue
  12404. fi
  12405. rm -f conftest.err conftest.i conftest.$ac_ext
  12406. # OK, works on sane cases. Now check whether nonexistent headers
  12407. # can be detected and how.
  12408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12409. /* end confdefs.h. */
  12410. #include <ac_nonexistent.h>
  12411. _ACEOF
  12412. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12413. # Broken: success on invalid input.
  12414. continue
  12415. else
  12416. # Passes both tests.
  12417. ac_preproc_ok=:
  12418. break
  12419. fi
  12420. rm -f conftest.err conftest.i conftest.$ac_ext
  12421. done
  12422. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12423. rm -f conftest.i conftest.err conftest.$ac_ext
  12424. if $ac_preproc_ok; then :
  12425. else
  12426. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12427. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12428. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12429. See \`config.log' for more details" "$LINENO" 5; }
  12430. fi
  12431. ac_ext=c
  12432. ac_cpp='$CPP $CPPFLAGS'
  12433. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12434. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12435. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12436. else
  12437. _lt_caught_CXX_error=yes
  12438. fi
  12439. ac_ext=cpp
  12440. ac_cpp='$CXXCPP $CPPFLAGS'
  12441. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12442. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12443. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12444. archive_cmds_need_lc_CXX=no
  12445. allow_undefined_flag_CXX=
  12446. always_export_symbols_CXX=no
  12447. archive_expsym_cmds_CXX=
  12448. compiler_needs_object_CXX=no
  12449. export_dynamic_flag_spec_CXX=
  12450. hardcode_direct_CXX=no
  12451. hardcode_direct_absolute_CXX=no
  12452. hardcode_libdir_flag_spec_CXX=
  12453. hardcode_libdir_separator_CXX=
  12454. hardcode_minus_L_CXX=no
  12455. hardcode_shlibpath_var_CXX=unsupported
  12456. hardcode_automatic_CXX=no
  12457. inherit_rpath_CXX=no
  12458. module_cmds_CXX=
  12459. module_expsym_cmds_CXX=
  12460. link_all_deplibs_CXX=unknown
  12461. old_archive_cmds_CXX=$old_archive_cmds
  12462. reload_flag_CXX=$reload_flag
  12463. reload_cmds_CXX=$reload_cmds
  12464. no_undefined_flag_CXX=
  12465. whole_archive_flag_spec_CXX=
  12466. enable_shared_with_static_runtimes_CXX=no
  12467. # Source file extension for C++ test sources.
  12468. ac_ext=cpp
  12469. # Object file extension for compiled C++ test sources.
  12470. objext=o
  12471. objext_CXX=$objext
  12472. # No sense in running all these tests if we already determined that
  12473. # the CXX compiler isn't working. Some variables (like enable_shared)
  12474. # are currently assumed to apply to all compilers on this platform,
  12475. # and will be corrupted by setting them based on a non-working compiler.
  12476. if test yes != "$_lt_caught_CXX_error"; then
  12477. # Code to be used in simple compile tests
  12478. lt_simple_compile_test_code="int some_variable = 0;"
  12479. # Code to be used in simple link tests
  12480. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12481. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12482. # If no C compiler was specified, use CC.
  12483. LTCC=${LTCC-"$CC"}
  12484. # If no C compiler flags were specified, use CFLAGS.
  12485. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12486. # Allow CC to be a program name with arguments.
  12487. compiler=$CC
  12488. # save warnings/boilerplate of simple test code
  12489. ac_outfile=conftest.$ac_objext
  12490. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12491. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12492. _lt_compiler_boilerplate=`cat conftest.err`
  12493. $RM conftest*
  12494. ac_outfile=conftest.$ac_objext
  12495. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12496. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12497. _lt_linker_boilerplate=`cat conftest.err`
  12498. $RM -r conftest*
  12499. # Allow CC to be a program name with arguments.
  12500. lt_save_CC=$CC
  12501. lt_save_CFLAGS=$CFLAGS
  12502. lt_save_LD=$LD
  12503. lt_save_GCC=$GCC
  12504. GCC=$GXX
  12505. lt_save_with_gnu_ld=$with_gnu_ld
  12506. lt_save_path_LD=$lt_cv_path_LD
  12507. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12508. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12509. else
  12510. $as_unset lt_cv_prog_gnu_ld
  12511. fi
  12512. if test -n "${lt_cv_path_LDCXX+set}"; then
  12513. lt_cv_path_LD=$lt_cv_path_LDCXX
  12514. else
  12515. $as_unset lt_cv_path_LD
  12516. fi
  12517. test -z "${LDCXX+set}" || LD=$LDCXX
  12518. CC=${CXX-"c++"}
  12519. CFLAGS=$CXXFLAGS
  12520. compiler=$CC
  12521. compiler_CXX=$CC
  12522. func_cc_basename $compiler
  12523. cc_basename=$func_cc_basename_result
  12524. if test -n "$compiler"; then
  12525. # We don't want -fno-exception when compiling C++ code, so set the
  12526. # no_builtin_flag separately
  12527. if test yes = "$GXX"; then
  12528. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12529. else
  12530. lt_prog_compiler_no_builtin_flag_CXX=
  12531. fi
  12532. if test yes = "$GXX"; then
  12533. # Set up default GNU C++ configuration
  12534. # Check whether --with-gnu-ld was given.
  12535. if test "${with_gnu_ld+set}" = set; then :
  12536. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12537. else
  12538. with_gnu_ld=no
  12539. fi
  12540. ac_prog=ld
  12541. if test yes = "$GCC"; then
  12542. # Check if gcc -print-prog-name=ld gives a path.
  12543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12544. $as_echo_n "checking for ld used by $CC... " >&6; }
  12545. case $host in
  12546. *-*-mingw*)
  12547. # gcc leaves a trailing carriage return, which upsets mingw
  12548. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12549. *)
  12550. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12551. esac
  12552. case $ac_prog in
  12553. # Accept absolute paths.
  12554. [\\/]* | ?:[\\/]*)
  12555. re_direlt='/[^/][^/]*/\.\./'
  12556. # Canonicalize the pathname of ld
  12557. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12558. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12559. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12560. done
  12561. test -z "$LD" && LD=$ac_prog
  12562. ;;
  12563. "")
  12564. # If it fails, then pretend we aren't using GCC.
  12565. ac_prog=ld
  12566. ;;
  12567. *)
  12568. # If it is relative, then search for the first ld in PATH.
  12569. with_gnu_ld=unknown
  12570. ;;
  12571. esac
  12572. elif test yes = "$with_gnu_ld"; then
  12573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12574. $as_echo_n "checking for GNU ld... " >&6; }
  12575. else
  12576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12577. $as_echo_n "checking for non-GNU ld... " >&6; }
  12578. fi
  12579. if ${lt_cv_path_LD+:} false; then :
  12580. $as_echo_n "(cached) " >&6
  12581. else
  12582. if test -z "$LD"; then
  12583. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12584. for ac_dir in $PATH; do
  12585. IFS=$lt_save_ifs
  12586. test -z "$ac_dir" && ac_dir=.
  12587. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12588. lt_cv_path_LD=$ac_dir/$ac_prog
  12589. # Check to see if the program is GNU ld. I'd rather use --version,
  12590. # but apparently some variants of GNU ld only accept -v.
  12591. # Break only if it was the GNU/non-GNU ld that we prefer.
  12592. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12593. *GNU* | *'with BFD'*)
  12594. test no != "$with_gnu_ld" && break
  12595. ;;
  12596. *)
  12597. test yes != "$with_gnu_ld" && break
  12598. ;;
  12599. esac
  12600. fi
  12601. done
  12602. IFS=$lt_save_ifs
  12603. else
  12604. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12605. fi
  12606. fi
  12607. LD=$lt_cv_path_LD
  12608. if test -n "$LD"; then
  12609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12610. $as_echo "$LD" >&6; }
  12611. else
  12612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12613. $as_echo "no" >&6; }
  12614. fi
  12615. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12617. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12618. if ${lt_cv_prog_gnu_ld+:} false; then :
  12619. $as_echo_n "(cached) " >&6
  12620. else
  12621. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12622. case `$LD -v 2>&1 </dev/null` in
  12623. *GNU* | *'with BFD'*)
  12624. lt_cv_prog_gnu_ld=yes
  12625. ;;
  12626. *)
  12627. lt_cv_prog_gnu_ld=no
  12628. ;;
  12629. esac
  12630. fi
  12631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12632. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12633. with_gnu_ld=$lt_cv_prog_gnu_ld
  12634. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12635. # archiving commands below assume that GNU ld is being used.
  12636. if test yes = "$with_gnu_ld"; then
  12637. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12638. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12639. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12640. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12641. # If archive_cmds runs LD, not CC, wlarc should be empty
  12642. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12643. # investigate it a little bit more. (MM)
  12644. wlarc='$wl'
  12645. # ancient GNU ld didn't support --whole-archive et. al.
  12646. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12647. $GREP 'no-whole-archive' > /dev/null; then
  12648. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12649. else
  12650. whole_archive_flag_spec_CXX=
  12651. fi
  12652. else
  12653. with_gnu_ld=no
  12654. wlarc=
  12655. # A generic and very simple default shared library creation
  12656. # command for GNU C++ for the case where it uses the native
  12657. # linker, instead of GNU ld. If possible, this setting should
  12658. # overridden to take advantage of the native linker features on
  12659. # the platform it is being used on.
  12660. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12661. fi
  12662. # Commands to make compiler produce verbose output that lists
  12663. # what "hidden" libraries, object files and flags are used when
  12664. # linking a shared library.
  12665. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12666. else
  12667. GXX=no
  12668. with_gnu_ld=no
  12669. wlarc=
  12670. fi
  12671. # PORTME: fill in a description of your system's C++ link characteristics
  12672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12673. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12674. ld_shlibs_CXX=yes
  12675. case $host_os in
  12676. aix3*)
  12677. # FIXME: insert proper C++ library support
  12678. ld_shlibs_CXX=no
  12679. ;;
  12680. aix[4-9]*)
  12681. if test ia64 = "$host_cpu"; then
  12682. # On IA64, the linker does run time linking by default, so we don't
  12683. # have to do anything special.
  12684. aix_use_runtimelinking=no
  12685. exp_sym_flag='-Bexport'
  12686. no_entry_flag=
  12687. else
  12688. aix_use_runtimelinking=no
  12689. # Test if we are trying to use run time linking or normal
  12690. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12691. # have runtime linking enabled, and use it for executables.
  12692. # For shared libraries, we enable/disable runtime linking
  12693. # depending on the kind of the shared library created -
  12694. # when "with_aix_soname,aix_use_runtimelinking" is:
  12695. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12696. # "aix,yes" lib.so shared, rtl:yes, for executables
  12697. # lib.a static archive
  12698. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12699. # lib.a(lib.so.V) shared, rtl:no, for executables
  12700. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12701. # lib.a(lib.so.V) shared, rtl:no
  12702. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12703. # lib.a static archive
  12704. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12705. for ld_flag in $LDFLAGS; do
  12706. case $ld_flag in
  12707. *-brtl*)
  12708. aix_use_runtimelinking=yes
  12709. break
  12710. ;;
  12711. esac
  12712. done
  12713. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12714. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12715. # so we don't have lib.a shared libs to link our executables.
  12716. # We have to force runtime linking in this case.
  12717. aix_use_runtimelinking=yes
  12718. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12719. fi
  12720. ;;
  12721. esac
  12722. exp_sym_flag='-bexport'
  12723. no_entry_flag='-bnoentry'
  12724. fi
  12725. # When large executables or shared objects are built, AIX ld can
  12726. # have problems creating the table of contents. If linking a library
  12727. # or program results in "error TOC overflow" add -mminimal-toc to
  12728. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12729. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12730. archive_cmds_CXX=''
  12731. hardcode_direct_CXX=yes
  12732. hardcode_direct_absolute_CXX=yes
  12733. hardcode_libdir_separator_CXX=':'
  12734. link_all_deplibs_CXX=yes
  12735. file_list_spec_CXX='$wl-f,'
  12736. case $with_aix_soname,$aix_use_runtimelinking in
  12737. aix,*) ;; # no import file
  12738. svr4,* | *,yes) # use import file
  12739. # The Import File defines what to hardcode.
  12740. hardcode_direct_CXX=no
  12741. hardcode_direct_absolute_CXX=no
  12742. ;;
  12743. esac
  12744. if test yes = "$GXX"; then
  12745. case $host_os in aix4.[012]|aix4.[012].*)
  12746. # We only want to do this on AIX 4.2 and lower, the check
  12747. # below for broken collect2 doesn't work under 4.3+
  12748. collect2name=`$CC -print-prog-name=collect2`
  12749. if test -f "$collect2name" &&
  12750. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12751. then
  12752. # We have reworked collect2
  12753. :
  12754. else
  12755. # We have old collect2
  12756. hardcode_direct_CXX=unsupported
  12757. # It fails to find uninstalled libraries when the uninstalled
  12758. # path is not listed in the libpath. Setting hardcode_minus_L
  12759. # to unsupported forces relinking
  12760. hardcode_minus_L_CXX=yes
  12761. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12762. hardcode_libdir_separator_CXX=
  12763. fi
  12764. esac
  12765. shared_flag='-shared'
  12766. if test yes = "$aix_use_runtimelinking"; then
  12767. shared_flag=$shared_flag' $wl-G'
  12768. fi
  12769. # Need to ensure runtime linking is disabled for the traditional
  12770. # shared library, or the linker may eventually find shared libraries
  12771. # /with/ Import File - we do not want to mix them.
  12772. shared_flag_aix='-shared'
  12773. shared_flag_svr4='-shared $wl-G'
  12774. else
  12775. # not using gcc
  12776. if test ia64 = "$host_cpu"; then
  12777. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12778. # chokes on -Wl,-G. The following line is correct:
  12779. shared_flag='-G'
  12780. else
  12781. if test yes = "$aix_use_runtimelinking"; then
  12782. shared_flag='$wl-G'
  12783. else
  12784. shared_flag='$wl-bM:SRE'
  12785. fi
  12786. shared_flag_aix='$wl-bM:SRE'
  12787. shared_flag_svr4='$wl-G'
  12788. fi
  12789. fi
  12790. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12791. # It seems that -bexpall does not export symbols beginning with
  12792. # underscore (_), so it is better to generate a list of symbols to
  12793. # export.
  12794. always_export_symbols_CXX=yes
  12795. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12796. # Warning - without using the other runtime loading flags (-brtl),
  12797. # -berok will link without error, but may produce a broken library.
  12798. # The "-G" linker flag allows undefined symbols.
  12799. no_undefined_flag_CXX='-bernotok'
  12800. # Determine the default libpath from the value encoded in an empty
  12801. # executable.
  12802. if test set = "${lt_cv_aix_libpath+set}"; then
  12803. aix_libpath=$lt_cv_aix_libpath
  12804. else
  12805. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12806. $as_echo_n "(cached) " >&6
  12807. else
  12808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12809. /* end confdefs.h. */
  12810. int
  12811. main ()
  12812. {
  12813. ;
  12814. return 0;
  12815. }
  12816. _ACEOF
  12817. if ac_fn_cxx_try_link "$LINENO"; then :
  12818. lt_aix_libpath_sed='
  12819. /Import File Strings/,/^$/ {
  12820. /^0/ {
  12821. s/^0 *\([^ ]*\) *$/\1/
  12822. p
  12823. }
  12824. }'
  12825. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12826. # Check for a 64-bit object if we didn't find anything.
  12827. if test -z "$lt_cv_aix_libpath__CXX"; then
  12828. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12829. fi
  12830. fi
  12831. rm -f core conftest.err conftest.$ac_objext \
  12832. conftest$ac_exeext conftest.$ac_ext
  12833. if test -z "$lt_cv_aix_libpath__CXX"; then
  12834. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12835. fi
  12836. fi
  12837. aix_libpath=$lt_cv_aix_libpath__CXX
  12838. fi
  12839. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12840. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  12841. else
  12842. if test ia64 = "$host_cpu"; then
  12843. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12844. allow_undefined_flag_CXX="-z nodefs"
  12845. archive_expsym_cmds_CXX="\$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"
  12846. else
  12847. # Determine the default libpath from the value encoded in an
  12848. # empty executable.
  12849. if test set = "${lt_cv_aix_libpath+set}"; then
  12850. aix_libpath=$lt_cv_aix_libpath
  12851. else
  12852. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12853. $as_echo_n "(cached) " >&6
  12854. else
  12855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12856. /* end confdefs.h. */
  12857. int
  12858. main ()
  12859. {
  12860. ;
  12861. return 0;
  12862. }
  12863. _ACEOF
  12864. if ac_fn_cxx_try_link "$LINENO"; then :
  12865. lt_aix_libpath_sed='
  12866. /Import File Strings/,/^$/ {
  12867. /^0/ {
  12868. s/^0 *\([^ ]*\) *$/\1/
  12869. p
  12870. }
  12871. }'
  12872. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12873. # Check for a 64-bit object if we didn't find anything.
  12874. if test -z "$lt_cv_aix_libpath__CXX"; then
  12875. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12876. fi
  12877. fi
  12878. rm -f core conftest.err conftest.$ac_objext \
  12879. conftest$ac_exeext conftest.$ac_ext
  12880. if test -z "$lt_cv_aix_libpath__CXX"; then
  12881. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12882. fi
  12883. fi
  12884. aix_libpath=$lt_cv_aix_libpath__CXX
  12885. fi
  12886. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12887. # Warning - without using the other run time loading flags,
  12888. # -berok will link without error, but may produce a broken library.
  12889. no_undefined_flag_CXX=' $wl-bernotok'
  12890. allow_undefined_flag_CXX=' $wl-berok'
  12891. if test yes = "$with_gnu_ld"; then
  12892. # We only use this code for GNU lds that support --whole-archive.
  12893. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12894. else
  12895. # Exported symbols can be pulled into shared objects from archives
  12896. whole_archive_flag_spec_CXX='$convenience'
  12897. fi
  12898. archive_cmds_need_lc_CXX=yes
  12899. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12900. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12901. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12902. if test svr4 != "$with_aix_soname"; then
  12903. # This is similar to how AIX traditionally builds its shared
  12904. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12905. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  12906. fi
  12907. if test aix != "$with_aix_soname"; then
  12908. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  12909. else
  12910. # used by -dlpreopen to get the symbols
  12911. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12912. fi
  12913. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12914. fi
  12915. fi
  12916. ;;
  12917. beos*)
  12918. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12919. allow_undefined_flag_CXX=unsupported
  12920. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12921. # support --undefined. This deserves some investigation. FIXME
  12922. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12923. else
  12924. ld_shlibs_CXX=no
  12925. fi
  12926. ;;
  12927. chorus*)
  12928. case $cc_basename in
  12929. *)
  12930. # FIXME: insert proper C++ library support
  12931. ld_shlibs_CXX=no
  12932. ;;
  12933. esac
  12934. ;;
  12935. cygwin* | mingw* | pw32* | cegcc*)
  12936. case $GXX,$cc_basename in
  12937. ,cl* | no,cl*)
  12938. # Native MSVC
  12939. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12940. # no search path for DLLs.
  12941. hardcode_libdir_flag_spec_CXX=' '
  12942. allow_undefined_flag_CXX=unsupported
  12943. always_export_symbols_CXX=yes
  12944. file_list_spec_CXX='@'
  12945. # Tell ltmain to make .lib files, not .a files.
  12946. libext=lib
  12947. # Tell ltmain to make .dll files, not .so files.
  12948. shrext_cmds=.dll
  12949. # FIXME: Setting linknames here is a bad hack.
  12950. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12951. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12952. cp "$export_symbols" "$output_objdir/$soname.def";
  12953. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12954. else
  12955. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12956. fi~
  12957. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12958. linknames='
  12959. # The linker will not automatically build a static lib if we build a DLL.
  12960. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  12961. enable_shared_with_static_runtimes_CXX=yes
  12962. # Don't use ranlib
  12963. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  12964. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  12965. lt_tool_outputfile="@TOOL_OUTPUT@"~
  12966. case $lt_outputfile in
  12967. *.exe|*.EXE) ;;
  12968. *)
  12969. lt_outputfile=$lt_outputfile.exe
  12970. lt_tool_outputfile=$lt_tool_outputfile.exe
  12971. ;;
  12972. esac~
  12973. func_to_tool_file "$lt_outputfile"~
  12974. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  12975. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12976. $RM "$lt_outputfile.manifest";
  12977. fi'
  12978. ;;
  12979. *)
  12980. # g++
  12981. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  12982. # as there is no search path for DLLs.
  12983. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12984. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  12985. allow_undefined_flag_CXX=unsupported
  12986. always_export_symbols_CXX=no
  12987. enable_shared_with_static_runtimes_CXX=yes
  12988. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12989. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12990. # If the export-symbols file already is a .def file, use it as
  12991. # is; otherwise, prepend EXPORTS...
  12992. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12993. cp $export_symbols $output_objdir/$soname.def;
  12994. else
  12995. echo EXPORTS > $output_objdir/$soname.def;
  12996. cat $export_symbols >> $output_objdir/$soname.def;
  12997. fi~
  12998. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12999. else
  13000. ld_shlibs_CXX=no
  13001. fi
  13002. ;;
  13003. esac
  13004. ;;
  13005. darwin* | rhapsody*)
  13006. archive_cmds_need_lc_CXX=no
  13007. hardcode_direct_CXX=no
  13008. hardcode_automatic_CXX=yes
  13009. hardcode_shlibpath_var_CXX=unsupported
  13010. if test yes = "$lt_cv_ld_force_load"; then
  13011. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  13012. else
  13013. whole_archive_flag_spec_CXX=''
  13014. fi
  13015. link_all_deplibs_CXX=yes
  13016. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13017. case $cc_basename in
  13018. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13019. *) _lt_dar_can_shared=$GCC ;;
  13020. esac
  13021. if test yes = "$_lt_dar_can_shared"; then
  13022. output_verbose_link_cmd=func_echo_all
  13023. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  13024. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13025. archive_expsym_cmds_CXX="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"
  13026. module_expsym_cmds_CXX="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"
  13027. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13028. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
  13029. archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
  13030. fi
  13031. else
  13032. ld_shlibs_CXX=no
  13033. fi
  13034. ;;
  13035. os2*)
  13036. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13037. hardcode_minus_L_CXX=yes
  13038. allow_undefined_flag_CXX=unsupported
  13039. shrext_cmds=.dll
  13040. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13041. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13042. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13043. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13044. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13045. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13046. emximp -o $lib $output_objdir/$libname.def'
  13047. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13048. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13049. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13050. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13051. prefix_cmds="$SED"~
  13052. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13053. prefix_cmds="$prefix_cmds -e 1d";
  13054. fi~
  13055. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13056. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13057. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13058. emximp -o $lib $output_objdir/$libname.def'
  13059. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13060. enable_shared_with_static_runtimes_CXX=yes
  13061. ;;
  13062. dgux*)
  13063. case $cc_basename in
  13064. ec++*)
  13065. # FIXME: insert proper C++ library support
  13066. ld_shlibs_CXX=no
  13067. ;;
  13068. ghcx*)
  13069. # Green Hills C++ Compiler
  13070. # FIXME: insert proper C++ library support
  13071. ld_shlibs_CXX=no
  13072. ;;
  13073. *)
  13074. # FIXME: insert proper C++ library support
  13075. ld_shlibs_CXX=no
  13076. ;;
  13077. esac
  13078. ;;
  13079. freebsd2.*)
  13080. # C++ shared libraries reported to be fairly broken before
  13081. # switch to ELF
  13082. ld_shlibs_CXX=no
  13083. ;;
  13084. freebsd-elf*)
  13085. archive_cmds_need_lc_CXX=no
  13086. ;;
  13087. freebsd* | dragonfly*)
  13088. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13089. # conventions
  13090. ld_shlibs_CXX=yes
  13091. ;;
  13092. haiku*)
  13093. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13094. link_all_deplibs_CXX=yes
  13095. ;;
  13096. hpux9*)
  13097. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13098. hardcode_libdir_separator_CXX=:
  13099. export_dynamic_flag_spec_CXX='$wl-E'
  13100. hardcode_direct_CXX=yes
  13101. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13102. # but as the default
  13103. # location of the library.
  13104. case $cc_basename in
  13105. CC*)
  13106. # FIXME: insert proper C++ library support
  13107. ld_shlibs_CXX=no
  13108. ;;
  13109. aCC*)
  13110. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  13111. # Commands to make compiler produce verbose output that lists
  13112. # what "hidden" libraries, object files and flags are used when
  13113. # linking a shared library.
  13114. #
  13115. # There doesn't appear to be a way to prevent this compiler from
  13116. # explicitly linking system object files so we need to strip them
  13117. # from the output so that they don't get included in the library
  13118. # dependencies.
  13119. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13120. ;;
  13121. *)
  13122. if test yes = "$GXX"; then
  13123. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  13124. else
  13125. # FIXME: insert proper C++ library support
  13126. ld_shlibs_CXX=no
  13127. fi
  13128. ;;
  13129. esac
  13130. ;;
  13131. hpux10*|hpux11*)
  13132. if test no = "$with_gnu_ld"; then
  13133. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13134. hardcode_libdir_separator_CXX=:
  13135. case $host_cpu in
  13136. hppa*64*|ia64*)
  13137. ;;
  13138. *)
  13139. export_dynamic_flag_spec_CXX='$wl-E'
  13140. ;;
  13141. esac
  13142. fi
  13143. case $host_cpu in
  13144. hppa*64*|ia64*)
  13145. hardcode_direct_CXX=no
  13146. hardcode_shlibpath_var_CXX=no
  13147. ;;
  13148. *)
  13149. hardcode_direct_CXX=yes
  13150. hardcode_direct_absolute_CXX=yes
  13151. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13152. # but as the default
  13153. # location of the library.
  13154. ;;
  13155. esac
  13156. case $cc_basename in
  13157. CC*)
  13158. # FIXME: insert proper C++ library support
  13159. ld_shlibs_CXX=no
  13160. ;;
  13161. aCC*)
  13162. case $host_cpu in
  13163. hppa*64*)
  13164. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13165. ;;
  13166. ia64*)
  13167. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13168. ;;
  13169. *)
  13170. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13171. ;;
  13172. esac
  13173. # Commands to make compiler produce verbose output that lists
  13174. # what "hidden" libraries, object files and flags are used when
  13175. # linking a shared library.
  13176. #
  13177. # There doesn't appear to be a way to prevent this compiler from
  13178. # explicitly linking system object files so we need to strip them
  13179. # from the output so that they don't get included in the library
  13180. # dependencies.
  13181. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13182. ;;
  13183. *)
  13184. if test yes = "$GXX"; then
  13185. if test no = "$with_gnu_ld"; then
  13186. case $host_cpu in
  13187. hppa*64*)
  13188. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13189. ;;
  13190. ia64*)
  13191. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13192. ;;
  13193. *)
  13194. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13195. ;;
  13196. esac
  13197. fi
  13198. else
  13199. # FIXME: insert proper C++ library support
  13200. ld_shlibs_CXX=no
  13201. fi
  13202. ;;
  13203. esac
  13204. ;;
  13205. interix[3-9]*)
  13206. hardcode_direct_CXX=no
  13207. hardcode_shlibpath_var_CXX=no
  13208. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13209. export_dynamic_flag_spec_CXX='$wl-E'
  13210. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13211. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13212. # default) and relocated if they conflict, which is a slow very memory
  13213. # consuming and fragmenting process. To avoid this, we pick a random,
  13214. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13215. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13216. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13217. archive_expsym_cmds_CXX='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'
  13218. ;;
  13219. irix5* | irix6*)
  13220. case $cc_basename in
  13221. CC*)
  13222. # SGI C++
  13223. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  13224. # Archives containing C++ object files must be created using
  13225. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13226. # necessary to make sure instantiated templates are included
  13227. # in the archive.
  13228. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13229. ;;
  13230. *)
  13231. if test yes = "$GXX"; then
  13232. if test no = "$with_gnu_ld"; then
  13233. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
  13234. else
  13235. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
  13236. fi
  13237. fi
  13238. link_all_deplibs_CXX=yes
  13239. ;;
  13240. esac
  13241. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13242. hardcode_libdir_separator_CXX=:
  13243. inherit_rpath_CXX=yes
  13244. ;;
  13245. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13246. case $cc_basename in
  13247. KCC*)
  13248. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13249. # KCC will only create a shared library if the output file
  13250. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13251. # to its proper name (with version) after linking.
  13252. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  13253. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
  13254. # Commands to make compiler produce verbose output that lists
  13255. # what "hidden" libraries, object files and flags are used when
  13256. # linking a shared library.
  13257. #
  13258. # There doesn't appear to be a way to prevent this compiler from
  13259. # explicitly linking system object files so we need to strip them
  13260. # from the output so that they don't get included in the library
  13261. # dependencies.
  13262. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13263. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13264. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13265. # Archives containing C++ object files must be created using
  13266. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13267. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13268. ;;
  13269. icpc* | ecpc* )
  13270. # Intel C++
  13271. with_gnu_ld=yes
  13272. # version 8.0 and above of icpc choke on multiply defined symbols
  13273. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13274. # earlier do not add the objects themselves.
  13275. case `$CC -V 2>&1` in
  13276. *"Version 7."*)
  13277. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13278. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13279. ;;
  13280. *) # Version 8.0 or newer
  13281. tmp_idyn=
  13282. case $host_cpu in
  13283. ia64*) tmp_idyn=' -i_dynamic';;
  13284. esac
  13285. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13286. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13287. ;;
  13288. esac
  13289. archive_cmds_need_lc_CXX=no
  13290. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13291. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13292. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13293. ;;
  13294. pgCC* | pgcpp*)
  13295. # Portland Group C++ compiler
  13296. case `$CC -V` in
  13297. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13298. prelink_cmds_CXX='tpldir=Template.dir~
  13299. rm -rf $tpldir~
  13300. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13301. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13302. old_archive_cmds_CXX='tpldir=Template.dir~
  13303. rm -rf $tpldir~
  13304. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13305. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13306. $RANLIB $oldlib'
  13307. archive_cmds_CXX='tpldir=Template.dir~
  13308. rm -rf $tpldir~
  13309. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13310. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13311. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13312. rm -rf $tpldir~
  13313. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13314. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13315. ;;
  13316. *) # Version 6 and above use weak symbols
  13317. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13318. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13319. ;;
  13320. esac
  13321. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13322. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13323. whole_archive_flag_spec_CXX='$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'
  13324. ;;
  13325. cxx*)
  13326. # Compaq C++
  13327. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13328. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
  13329. runpath_var=LD_RUN_PATH
  13330. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13331. hardcode_libdir_separator_CXX=:
  13332. # Commands to make compiler produce verbose output that lists
  13333. # what "hidden" libraries, object files and flags are used when
  13334. # linking a shared library.
  13335. #
  13336. # There doesn't appear to be a way to prevent this compiler from
  13337. # explicitly linking system object files so we need to strip them
  13338. # from the output so that they don't get included in the library
  13339. # dependencies.
  13340. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  13341. ;;
  13342. xl* | mpixl* | bgxl*)
  13343. # IBM XL 8.0 on PPC, with GNU ld
  13344. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13345. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13346. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13347. if test yes = "$supports_anon_versioning"; then
  13348. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13349. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13350. echo "local: *; };" >> $output_objdir/$libname.ver~
  13351. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13352. fi
  13353. ;;
  13354. *)
  13355. case `$CC -V 2>&1 | sed 5q` in
  13356. *Sun\ C*)
  13357. # Sun C++ 5.9
  13358. no_undefined_flag_CXX=' -zdefs'
  13359. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13360. archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
  13361. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13362. whole_archive_flag_spec_CXX='$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'
  13363. compiler_needs_object_CXX=yes
  13364. # Not sure whether something based on
  13365. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13366. # would be better.
  13367. output_verbose_link_cmd='func_echo_all'
  13368. # Archives containing C++ object files must be created using
  13369. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13370. # necessary to make sure instantiated templates are included
  13371. # in the archive.
  13372. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13373. ;;
  13374. esac
  13375. ;;
  13376. esac
  13377. ;;
  13378. lynxos*)
  13379. # FIXME: insert proper C++ library support
  13380. ld_shlibs_CXX=no
  13381. ;;
  13382. m88k*)
  13383. # FIXME: insert proper C++ library support
  13384. ld_shlibs_CXX=no
  13385. ;;
  13386. mvs*)
  13387. case $cc_basename in
  13388. cxx*)
  13389. # FIXME: insert proper C++ library support
  13390. ld_shlibs_CXX=no
  13391. ;;
  13392. *)
  13393. # FIXME: insert proper C++ library support
  13394. ld_shlibs_CXX=no
  13395. ;;
  13396. esac
  13397. ;;
  13398. netbsd*)
  13399. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13400. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13401. wlarc=
  13402. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13403. hardcode_direct_CXX=yes
  13404. hardcode_shlibpath_var_CXX=no
  13405. fi
  13406. # Workaround some broken pre-1.5 toolchains
  13407. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13408. ;;
  13409. *nto* | *qnx*)
  13410. ld_shlibs_CXX=yes
  13411. ;;
  13412. openbsd* | bitrig*)
  13413. if test -f /usr/libexec/ld.so; then
  13414. hardcode_direct_CXX=yes
  13415. hardcode_shlibpath_var_CXX=no
  13416. hardcode_direct_absolute_CXX=yes
  13417. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13418. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13419. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13420. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13421. export_dynamic_flag_spec_CXX='$wl-E'
  13422. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13423. fi
  13424. output_verbose_link_cmd=func_echo_all
  13425. else
  13426. ld_shlibs_CXX=no
  13427. fi
  13428. ;;
  13429. osf3* | osf4* | osf5*)
  13430. case $cc_basename in
  13431. KCC*)
  13432. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13433. # KCC will only create a shared library if the output file
  13434. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13435. # to its proper name (with version) after linking.
  13436. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  13437. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13438. hardcode_libdir_separator_CXX=:
  13439. # Archives containing C++ object files must be created using
  13440. # the KAI C++ compiler.
  13441. case $host in
  13442. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13443. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13444. esac
  13445. ;;
  13446. RCC*)
  13447. # Rational C++ 2.4.1
  13448. # FIXME: insert proper C++ library support
  13449. ld_shlibs_CXX=no
  13450. ;;
  13451. cxx*)
  13452. case $host in
  13453. osf3*)
  13454. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13455. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  13456. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13457. ;;
  13458. *)
  13459. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13460. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  13461. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13462. echo "-hidden">> $lib.exp~
  13463. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
  13464. $RM $lib.exp'
  13465. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13466. ;;
  13467. esac
  13468. hardcode_libdir_separator_CXX=:
  13469. # Commands to make compiler produce verbose output that lists
  13470. # what "hidden" libraries, object files and flags are used when
  13471. # linking a shared library.
  13472. #
  13473. # There doesn't appear to be a way to prevent this compiler from
  13474. # explicitly linking system object files so we need to strip them
  13475. # from the output so that they don't get included in the library
  13476. # dependencies.
  13477. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13478. ;;
  13479. *)
  13480. if test yes,no = "$GXX,$with_gnu_ld"; then
  13481. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13482. case $host in
  13483. osf3*)
  13484. archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
  13485. ;;
  13486. *)
  13487. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
  13488. ;;
  13489. esac
  13490. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13491. hardcode_libdir_separator_CXX=:
  13492. # Commands to make compiler produce verbose output that lists
  13493. # what "hidden" libraries, object files and flags are used when
  13494. # linking a shared library.
  13495. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13496. else
  13497. # FIXME: insert proper C++ library support
  13498. ld_shlibs_CXX=no
  13499. fi
  13500. ;;
  13501. esac
  13502. ;;
  13503. psos*)
  13504. # FIXME: insert proper C++ library support
  13505. ld_shlibs_CXX=no
  13506. ;;
  13507. sunos4*)
  13508. case $cc_basename in
  13509. CC*)
  13510. # Sun C++ 4.x
  13511. # FIXME: insert proper C++ library support
  13512. ld_shlibs_CXX=no
  13513. ;;
  13514. lcc*)
  13515. # Lucid
  13516. # FIXME: insert proper C++ library support
  13517. ld_shlibs_CXX=no
  13518. ;;
  13519. *)
  13520. # FIXME: insert proper C++ library support
  13521. ld_shlibs_CXX=no
  13522. ;;
  13523. esac
  13524. ;;
  13525. solaris*)
  13526. case $cc_basename in
  13527. CC* | sunCC*)
  13528. # Sun C++ 4.2, 5.x and Centerline C++
  13529. archive_cmds_need_lc_CXX=yes
  13530. no_undefined_flag_CXX=' -zdefs'
  13531. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13532. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13533. $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13534. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13535. hardcode_shlibpath_var_CXX=no
  13536. case $host_os in
  13537. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13538. *)
  13539. # The compiler driver will combine and reorder linker options,
  13540. # but understands '-z linker_flag'.
  13541. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13542. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13543. ;;
  13544. esac
  13545. link_all_deplibs_CXX=yes
  13546. output_verbose_link_cmd='func_echo_all'
  13547. # Archives containing C++ object files must be created using
  13548. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13549. # necessary to make sure instantiated templates are included
  13550. # in the archive.
  13551. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13552. ;;
  13553. gcx*)
  13554. # Green Hills C++ Compiler
  13555. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13556. # The C++ compiler must be used to create the archive.
  13557. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13558. ;;
  13559. *)
  13560. # GNU C++ compiler with Solaris linker
  13561. if test yes,no = "$GXX,$with_gnu_ld"; then
  13562. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13563. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13564. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13565. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13566. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13567. # Commands to make compiler produce verbose output that lists
  13568. # what "hidden" libraries, object files and flags are used when
  13569. # linking a shared library.
  13570. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13571. else
  13572. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13573. # platform.
  13574. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13575. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13576. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13577. # Commands to make compiler produce verbose output that lists
  13578. # what "hidden" libraries, object files and flags are used when
  13579. # linking a shared library.
  13580. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13581. fi
  13582. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13583. case $host_os in
  13584. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13585. *)
  13586. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13587. ;;
  13588. esac
  13589. fi
  13590. ;;
  13591. esac
  13592. ;;
  13593. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13594. no_undefined_flag_CXX='$wl-z,text'
  13595. archive_cmds_need_lc_CXX=no
  13596. hardcode_shlibpath_var_CXX=no
  13597. runpath_var='LD_RUN_PATH'
  13598. case $cc_basename in
  13599. CC*)
  13600. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13601. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13602. ;;
  13603. *)
  13604. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13605. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13606. ;;
  13607. esac
  13608. ;;
  13609. sysv5* | sco3.2v5* | sco5v6*)
  13610. # Note: We CANNOT use -z defs as we might desire, because we do not
  13611. # link with -lc, and that would cause any symbols used from libc to
  13612. # always be unresolved, which means just about no library would
  13613. # ever link correctly. If we're not using GNU ld we use -z text
  13614. # though, which does catch some bad symbols but isn't as heavy-handed
  13615. # as -z defs.
  13616. no_undefined_flag_CXX='$wl-z,text'
  13617. allow_undefined_flag_CXX='$wl-z,nodefs'
  13618. archive_cmds_need_lc_CXX=no
  13619. hardcode_shlibpath_var_CXX=no
  13620. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13621. hardcode_libdir_separator_CXX=':'
  13622. link_all_deplibs_CXX=yes
  13623. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13624. runpath_var='LD_RUN_PATH'
  13625. case $cc_basename in
  13626. CC*)
  13627. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13628. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13629. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13630. '"$old_archive_cmds_CXX"
  13631. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13632. '"$reload_cmds_CXX"
  13633. ;;
  13634. *)
  13635. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13636. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13637. ;;
  13638. esac
  13639. ;;
  13640. tandem*)
  13641. case $cc_basename in
  13642. NCC*)
  13643. # NonStop-UX NCC 3.20
  13644. # FIXME: insert proper C++ library support
  13645. ld_shlibs_CXX=no
  13646. ;;
  13647. *)
  13648. # FIXME: insert proper C++ library support
  13649. ld_shlibs_CXX=no
  13650. ;;
  13651. esac
  13652. ;;
  13653. vxworks*)
  13654. # FIXME: insert proper C++ library support
  13655. ld_shlibs_CXX=no
  13656. ;;
  13657. *)
  13658. # FIXME: insert proper C++ library support
  13659. ld_shlibs_CXX=no
  13660. ;;
  13661. esac
  13662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13663. $as_echo "$ld_shlibs_CXX" >&6; }
  13664. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13665. GCC_CXX=$GXX
  13666. LD_CXX=$LD
  13667. ## CAVEAT EMPTOR:
  13668. ## There is no encapsulation within the following macros, do not change
  13669. ## the running order or otherwise move them around unless you know exactly
  13670. ## what you are doing...
  13671. # Dependencies to place before and after the object being linked:
  13672. predep_objects_CXX=
  13673. postdep_objects_CXX=
  13674. predeps_CXX=
  13675. postdeps_CXX=
  13676. compiler_lib_search_path_CXX=
  13677. cat > conftest.$ac_ext <<_LT_EOF
  13678. class Foo
  13679. {
  13680. public:
  13681. Foo (void) { a = 0; }
  13682. private:
  13683. int a;
  13684. };
  13685. _LT_EOF
  13686. _lt_libdeps_save_CFLAGS=$CFLAGS
  13687. case "$CC $CFLAGS " in #(
  13688. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13689. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13690. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13691. esac
  13692. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13693. (eval $ac_compile) 2>&5
  13694. ac_status=$?
  13695. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13696. test $ac_status = 0; }; then
  13697. # Parse the compiler output and extract the necessary
  13698. # objects, libraries and library flags.
  13699. # Sentinel used to keep track of whether or not we are before
  13700. # the conftest object file.
  13701. pre_test_object_deps_done=no
  13702. for p in `eval "$output_verbose_link_cmd"`; do
  13703. case $prev$p in
  13704. -L* | -R* | -l*)
  13705. # Some compilers place space between "-{L,R}" and the path.
  13706. # Remove the space.
  13707. if test x-L = "$p" ||
  13708. test x-R = "$p"; then
  13709. prev=$p
  13710. continue
  13711. fi
  13712. # Expand the sysroot to ease extracting the directories later.
  13713. if test -z "$prev"; then
  13714. case $p in
  13715. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13716. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13717. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13718. esac
  13719. fi
  13720. case $p in
  13721. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13722. esac
  13723. if test no = "$pre_test_object_deps_done"; then
  13724. case $prev in
  13725. -L | -R)
  13726. # Internal compiler library paths should come after those
  13727. # provided the user. The postdeps already come after the
  13728. # user supplied libs so there is no need to process them.
  13729. if test -z "$compiler_lib_search_path_CXX"; then
  13730. compiler_lib_search_path_CXX=$prev$p
  13731. else
  13732. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13733. fi
  13734. ;;
  13735. # The "-l" case would never come before the object being
  13736. # linked, so don't bother handling this case.
  13737. esac
  13738. else
  13739. if test -z "$postdeps_CXX"; then
  13740. postdeps_CXX=$prev$p
  13741. else
  13742. postdeps_CXX="${postdeps_CXX} $prev$p"
  13743. fi
  13744. fi
  13745. prev=
  13746. ;;
  13747. *.lto.$objext) ;; # Ignore GCC LTO objects
  13748. *.$objext)
  13749. # This assumes that the test object file only shows up
  13750. # once in the compiler output.
  13751. if test "$p" = "conftest.$objext"; then
  13752. pre_test_object_deps_done=yes
  13753. continue
  13754. fi
  13755. if test no = "$pre_test_object_deps_done"; then
  13756. if test -z "$predep_objects_CXX"; then
  13757. predep_objects_CXX=$p
  13758. else
  13759. predep_objects_CXX="$predep_objects_CXX $p"
  13760. fi
  13761. else
  13762. if test -z "$postdep_objects_CXX"; then
  13763. postdep_objects_CXX=$p
  13764. else
  13765. postdep_objects_CXX="$postdep_objects_CXX $p"
  13766. fi
  13767. fi
  13768. ;;
  13769. *) ;; # Ignore the rest.
  13770. esac
  13771. done
  13772. # Clean up.
  13773. rm -f a.out a.exe
  13774. else
  13775. echo "libtool.m4: error: problem compiling CXX test program"
  13776. fi
  13777. $RM -f confest.$objext
  13778. CFLAGS=$_lt_libdeps_save_CFLAGS
  13779. # PORTME: override above test on systems where it is broken
  13780. case $host_os in
  13781. interix[3-9]*)
  13782. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13783. # hack all around it, let's just trust "g++" to DTRT.
  13784. predep_objects_CXX=
  13785. postdep_objects_CXX=
  13786. postdeps_CXX=
  13787. ;;
  13788. esac
  13789. case " $postdeps_CXX " in
  13790. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13791. esac
  13792. compiler_lib_search_dirs_CXX=
  13793. if test -n "${compiler_lib_search_path_CXX}"; then
  13794. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13795. fi
  13796. lt_prog_compiler_wl_CXX=
  13797. lt_prog_compiler_pic_CXX=
  13798. lt_prog_compiler_static_CXX=
  13799. # C++ specific cases for pic, static, wl, etc.
  13800. if test yes = "$GXX"; then
  13801. lt_prog_compiler_wl_CXX='-Wl,'
  13802. lt_prog_compiler_static_CXX='-static'
  13803. case $host_os in
  13804. aix*)
  13805. # All AIX code is PIC.
  13806. if test ia64 = "$host_cpu"; then
  13807. # AIX 5 now supports IA64 processor
  13808. lt_prog_compiler_static_CXX='-Bstatic'
  13809. fi
  13810. lt_prog_compiler_pic_CXX='-fPIC'
  13811. ;;
  13812. amigaos*)
  13813. case $host_cpu in
  13814. powerpc)
  13815. # see comment about AmigaOS4 .so support
  13816. lt_prog_compiler_pic_CXX='-fPIC'
  13817. ;;
  13818. m68k)
  13819. # FIXME: we need at least 68020 code to build shared libraries, but
  13820. # adding the '-m68020' flag to GCC prevents building anything better,
  13821. # like '-m68040'.
  13822. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13823. ;;
  13824. esac
  13825. ;;
  13826. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13827. # PIC is the default for these OSes.
  13828. ;;
  13829. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13830. # This hack is so that the source file can tell whether it is being
  13831. # built for inclusion in a dll (and should export symbols for example).
  13832. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13833. # (--disable-auto-import) libraries
  13834. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13835. case $host_os in
  13836. os2*)
  13837. lt_prog_compiler_static_CXX='$wl-static'
  13838. ;;
  13839. esac
  13840. ;;
  13841. darwin* | rhapsody*)
  13842. # PIC is the default on this platform
  13843. # Common symbols not allowed in MH_DYLIB files
  13844. lt_prog_compiler_pic_CXX='-fno-common'
  13845. ;;
  13846. *djgpp*)
  13847. # DJGPP does not support shared libraries at all
  13848. lt_prog_compiler_pic_CXX=
  13849. ;;
  13850. haiku*)
  13851. # PIC is the default for Haiku.
  13852. # The "-static" flag exists, but is broken.
  13853. lt_prog_compiler_static_CXX=
  13854. ;;
  13855. interix[3-9]*)
  13856. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13857. # Instead, we relocate shared libraries at runtime.
  13858. ;;
  13859. sysv4*MP*)
  13860. if test -d /usr/nec; then
  13861. lt_prog_compiler_pic_CXX=-Kconform_pic
  13862. fi
  13863. ;;
  13864. hpux*)
  13865. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13866. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13867. # sets the default TLS model and affects inlining.
  13868. case $host_cpu in
  13869. hppa*64*)
  13870. ;;
  13871. *)
  13872. lt_prog_compiler_pic_CXX='-fPIC'
  13873. ;;
  13874. esac
  13875. ;;
  13876. *qnx* | *nto*)
  13877. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13878. # it will coredump.
  13879. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13880. ;;
  13881. *)
  13882. lt_prog_compiler_pic_CXX='-fPIC'
  13883. ;;
  13884. esac
  13885. else
  13886. case $host_os in
  13887. aix[4-9]*)
  13888. # All AIX code is PIC.
  13889. if test ia64 = "$host_cpu"; then
  13890. # AIX 5 now supports IA64 processor
  13891. lt_prog_compiler_static_CXX='-Bstatic'
  13892. else
  13893. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13894. fi
  13895. ;;
  13896. chorus*)
  13897. case $cc_basename in
  13898. cxch68*)
  13899. # Green Hills C++ Compiler
  13900. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  13901. ;;
  13902. esac
  13903. ;;
  13904. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13905. # This hack is so that the source file can tell whether it is being
  13906. # built for inclusion in a dll (and should export symbols for example).
  13907. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13908. ;;
  13909. dgux*)
  13910. case $cc_basename in
  13911. ec++*)
  13912. lt_prog_compiler_pic_CXX='-KPIC'
  13913. ;;
  13914. ghcx*)
  13915. # Green Hills C++ Compiler
  13916. lt_prog_compiler_pic_CXX='-pic'
  13917. ;;
  13918. *)
  13919. ;;
  13920. esac
  13921. ;;
  13922. freebsd* | dragonfly*)
  13923. # FreeBSD uses GNU C++
  13924. ;;
  13925. hpux9* | hpux10* | hpux11*)
  13926. case $cc_basename in
  13927. CC*)
  13928. lt_prog_compiler_wl_CXX='-Wl,'
  13929. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13930. if test ia64 != "$host_cpu"; then
  13931. lt_prog_compiler_pic_CXX='+Z'
  13932. fi
  13933. ;;
  13934. aCC*)
  13935. lt_prog_compiler_wl_CXX='-Wl,'
  13936. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13937. case $host_cpu in
  13938. hppa*64*|ia64*)
  13939. # +Z the default
  13940. ;;
  13941. *)
  13942. lt_prog_compiler_pic_CXX='+Z'
  13943. ;;
  13944. esac
  13945. ;;
  13946. *)
  13947. ;;
  13948. esac
  13949. ;;
  13950. interix*)
  13951. # This is c89, which is MS Visual C++ (no shared libs)
  13952. # Anyone wants to do a port?
  13953. ;;
  13954. irix5* | irix6* | nonstopux*)
  13955. case $cc_basename in
  13956. CC*)
  13957. lt_prog_compiler_wl_CXX='-Wl,'
  13958. lt_prog_compiler_static_CXX='-non_shared'
  13959. # CC pic flag -KPIC is the default.
  13960. ;;
  13961. *)
  13962. ;;
  13963. esac
  13964. ;;
  13965. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13966. case $cc_basename in
  13967. KCC*)
  13968. # KAI C++ Compiler
  13969. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13970. lt_prog_compiler_pic_CXX='-fPIC'
  13971. ;;
  13972. ecpc* )
  13973. # old Intel C++ for x86_64, which still supported -KPIC.
  13974. lt_prog_compiler_wl_CXX='-Wl,'
  13975. lt_prog_compiler_pic_CXX='-KPIC'
  13976. lt_prog_compiler_static_CXX='-static'
  13977. ;;
  13978. icpc* )
  13979. # Intel C++, used to be incompatible with GCC.
  13980. # ICC 10 doesn't accept -KPIC any more.
  13981. lt_prog_compiler_wl_CXX='-Wl,'
  13982. lt_prog_compiler_pic_CXX='-fPIC'
  13983. lt_prog_compiler_static_CXX='-static'
  13984. ;;
  13985. pgCC* | pgcpp*)
  13986. # Portland Group C++ compiler
  13987. lt_prog_compiler_wl_CXX='-Wl,'
  13988. lt_prog_compiler_pic_CXX='-fpic'
  13989. lt_prog_compiler_static_CXX='-Bstatic'
  13990. ;;
  13991. cxx*)
  13992. # Compaq C++
  13993. # Make sure the PIC flag is empty. It appears that all Alpha
  13994. # Linux and Compaq Tru64 Unix objects are PIC.
  13995. lt_prog_compiler_pic_CXX=
  13996. lt_prog_compiler_static_CXX='-non_shared'
  13997. ;;
  13998. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  13999. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14000. lt_prog_compiler_wl_CXX='-Wl,'
  14001. lt_prog_compiler_pic_CXX='-qpic'
  14002. lt_prog_compiler_static_CXX='-qstaticlink'
  14003. ;;
  14004. *)
  14005. case `$CC -V 2>&1 | sed 5q` in
  14006. *Sun\ C*)
  14007. # Sun C++ 5.9
  14008. lt_prog_compiler_pic_CXX='-KPIC'
  14009. lt_prog_compiler_static_CXX='-Bstatic'
  14010. lt_prog_compiler_wl_CXX='-Qoption ld '
  14011. ;;
  14012. esac
  14013. ;;
  14014. esac
  14015. ;;
  14016. lynxos*)
  14017. ;;
  14018. m88k*)
  14019. ;;
  14020. mvs*)
  14021. case $cc_basename in
  14022. cxx*)
  14023. lt_prog_compiler_pic_CXX='-W c,exportall'
  14024. ;;
  14025. *)
  14026. ;;
  14027. esac
  14028. ;;
  14029. netbsd* | netbsdelf*-gnu)
  14030. ;;
  14031. *qnx* | *nto*)
  14032. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14033. # it will coredump.
  14034. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14035. ;;
  14036. osf3* | osf4* | osf5*)
  14037. case $cc_basename in
  14038. KCC*)
  14039. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14040. ;;
  14041. RCC*)
  14042. # Rational C++ 2.4.1
  14043. lt_prog_compiler_pic_CXX='-pic'
  14044. ;;
  14045. cxx*)
  14046. # Digital/Compaq C++
  14047. lt_prog_compiler_wl_CXX='-Wl,'
  14048. # Make sure the PIC flag is empty. It appears that all Alpha
  14049. # Linux and Compaq Tru64 Unix objects are PIC.
  14050. lt_prog_compiler_pic_CXX=
  14051. lt_prog_compiler_static_CXX='-non_shared'
  14052. ;;
  14053. *)
  14054. ;;
  14055. esac
  14056. ;;
  14057. psos*)
  14058. ;;
  14059. solaris*)
  14060. case $cc_basename in
  14061. CC* | sunCC*)
  14062. # Sun C++ 4.2, 5.x and Centerline C++
  14063. lt_prog_compiler_pic_CXX='-KPIC'
  14064. lt_prog_compiler_static_CXX='-Bstatic'
  14065. lt_prog_compiler_wl_CXX='-Qoption ld '
  14066. ;;
  14067. gcx*)
  14068. # Green Hills C++ Compiler
  14069. lt_prog_compiler_pic_CXX='-PIC'
  14070. ;;
  14071. *)
  14072. ;;
  14073. esac
  14074. ;;
  14075. sunos4*)
  14076. case $cc_basename in
  14077. CC*)
  14078. # Sun C++ 4.x
  14079. lt_prog_compiler_pic_CXX='-pic'
  14080. lt_prog_compiler_static_CXX='-Bstatic'
  14081. ;;
  14082. lcc*)
  14083. # Lucid
  14084. lt_prog_compiler_pic_CXX='-pic'
  14085. ;;
  14086. *)
  14087. ;;
  14088. esac
  14089. ;;
  14090. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14091. case $cc_basename in
  14092. CC*)
  14093. lt_prog_compiler_wl_CXX='-Wl,'
  14094. lt_prog_compiler_pic_CXX='-KPIC'
  14095. lt_prog_compiler_static_CXX='-Bstatic'
  14096. ;;
  14097. esac
  14098. ;;
  14099. tandem*)
  14100. case $cc_basename in
  14101. NCC*)
  14102. # NonStop-UX NCC 3.20
  14103. lt_prog_compiler_pic_CXX='-KPIC'
  14104. ;;
  14105. *)
  14106. ;;
  14107. esac
  14108. ;;
  14109. vxworks*)
  14110. ;;
  14111. *)
  14112. lt_prog_compiler_can_build_shared_CXX=no
  14113. ;;
  14114. esac
  14115. fi
  14116. case $host_os in
  14117. # For platforms that do not support PIC, -DPIC is meaningless:
  14118. *djgpp*)
  14119. lt_prog_compiler_pic_CXX=
  14120. ;;
  14121. *)
  14122. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14123. ;;
  14124. esac
  14125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14126. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  14127. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  14128. $as_echo_n "(cached) " >&6
  14129. else
  14130. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14131. fi
  14132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14133. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14134. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14135. #
  14136. # Check to make sure the PIC flag actually works.
  14137. #
  14138. if test -n "$lt_prog_compiler_pic_CXX"; then
  14139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14140. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14141. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  14142. $as_echo_n "(cached) " >&6
  14143. else
  14144. lt_cv_prog_compiler_pic_works_CXX=no
  14145. ac_outfile=conftest.$ac_objext
  14146. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14147. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14148. # Insert the option either (1) after the last *FLAGS variable, or
  14149. # (2) before a word containing "conftest.", or (3) at the end.
  14150. # Note that $ac_compile itself does not contain backslashes and begins
  14151. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14152. # The option is referenced via a variable to avoid confusing sed.
  14153. lt_compile=`echo "$ac_compile" | $SED \
  14154. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14155. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14156. -e 's:$: $lt_compiler_flag:'`
  14157. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14158. (eval "$lt_compile" 2>conftest.err)
  14159. ac_status=$?
  14160. cat conftest.err >&5
  14161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14162. if (exit $ac_status) && test -s "$ac_outfile"; then
  14163. # The compiler can only warn and ignore the option if not recognized
  14164. # So say no if there are warnings other than the usual output.
  14165. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14166. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14167. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14168. lt_cv_prog_compiler_pic_works_CXX=yes
  14169. fi
  14170. fi
  14171. $RM conftest*
  14172. fi
  14173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14174. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14175. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14176. case $lt_prog_compiler_pic_CXX in
  14177. "" | " "*) ;;
  14178. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14179. esac
  14180. else
  14181. lt_prog_compiler_pic_CXX=
  14182. lt_prog_compiler_can_build_shared_CXX=no
  14183. fi
  14184. fi
  14185. #
  14186. # Check to make sure the static flag actually works.
  14187. #
  14188. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14190. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14191. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  14192. $as_echo_n "(cached) " >&6
  14193. else
  14194. lt_cv_prog_compiler_static_works_CXX=no
  14195. save_LDFLAGS=$LDFLAGS
  14196. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14197. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14198. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14199. # The linker can only warn and ignore the option if not recognized
  14200. # So say no if there are warnings
  14201. if test -s conftest.err; then
  14202. # Append any errors to the config.log.
  14203. cat conftest.err 1>&5
  14204. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14205. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14206. if diff conftest.exp conftest.er2 >/dev/null; then
  14207. lt_cv_prog_compiler_static_works_CXX=yes
  14208. fi
  14209. else
  14210. lt_cv_prog_compiler_static_works_CXX=yes
  14211. fi
  14212. fi
  14213. $RM -r conftest*
  14214. LDFLAGS=$save_LDFLAGS
  14215. fi
  14216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14217. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14218. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14219. :
  14220. else
  14221. lt_prog_compiler_static_CXX=
  14222. fi
  14223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14224. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14225. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14226. $as_echo_n "(cached) " >&6
  14227. else
  14228. lt_cv_prog_compiler_c_o_CXX=no
  14229. $RM -r conftest 2>/dev/null
  14230. mkdir conftest
  14231. cd conftest
  14232. mkdir out
  14233. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14234. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14235. # Insert the option either (1) after the last *FLAGS variable, or
  14236. # (2) before a word containing "conftest.", or (3) at the end.
  14237. # Note that $ac_compile itself does not contain backslashes and begins
  14238. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14239. lt_compile=`echo "$ac_compile" | $SED \
  14240. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14241. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14242. -e 's:$: $lt_compiler_flag:'`
  14243. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14244. (eval "$lt_compile" 2>out/conftest.err)
  14245. ac_status=$?
  14246. cat out/conftest.err >&5
  14247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14248. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14249. then
  14250. # The compiler can only warn and ignore the option if not recognized
  14251. # So say no if there are warnings
  14252. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14253. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14254. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14255. lt_cv_prog_compiler_c_o_CXX=yes
  14256. fi
  14257. fi
  14258. chmod u+w . 2>&5
  14259. $RM conftest*
  14260. # SGI C++ compiler will create directory out/ii_files/ for
  14261. # template instantiation
  14262. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14263. $RM out/* && rmdir out
  14264. cd ..
  14265. $RM -r conftest
  14266. $RM conftest*
  14267. fi
  14268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14269. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14271. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14272. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14273. $as_echo_n "(cached) " >&6
  14274. else
  14275. lt_cv_prog_compiler_c_o_CXX=no
  14276. $RM -r conftest 2>/dev/null
  14277. mkdir conftest
  14278. cd conftest
  14279. mkdir out
  14280. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14281. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14282. # Insert the option either (1) after the last *FLAGS variable, or
  14283. # (2) before a word containing "conftest.", or (3) at the end.
  14284. # Note that $ac_compile itself does not contain backslashes and begins
  14285. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14286. lt_compile=`echo "$ac_compile" | $SED \
  14287. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14288. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14289. -e 's:$: $lt_compiler_flag:'`
  14290. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14291. (eval "$lt_compile" 2>out/conftest.err)
  14292. ac_status=$?
  14293. cat out/conftest.err >&5
  14294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14295. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14296. then
  14297. # The compiler can only warn and ignore the option if not recognized
  14298. # So say no if there are warnings
  14299. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14300. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14301. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14302. lt_cv_prog_compiler_c_o_CXX=yes
  14303. fi
  14304. fi
  14305. chmod u+w . 2>&5
  14306. $RM conftest*
  14307. # SGI C++ compiler will create directory out/ii_files/ for
  14308. # template instantiation
  14309. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14310. $RM out/* && rmdir out
  14311. cd ..
  14312. $RM -r conftest
  14313. $RM conftest*
  14314. fi
  14315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14316. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14317. hard_links=nottested
  14318. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14319. # do not overwrite the value of need_locks provided by the user
  14320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14321. $as_echo_n "checking if we can lock with hard links... " >&6; }
  14322. hard_links=yes
  14323. $RM conftest*
  14324. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14325. touch conftest.a
  14326. ln conftest.a conftest.b 2>&5 || hard_links=no
  14327. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14329. $as_echo "$hard_links" >&6; }
  14330. if test no = "$hard_links"; then
  14331. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14332. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14333. need_locks=warn
  14334. fi
  14335. else
  14336. need_locks=no
  14337. fi
  14338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14339. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14340. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14341. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14342. case $host_os in
  14343. aix[4-9]*)
  14344. # If we're using GNU nm, then we don't want the "-C" option.
  14345. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14346. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14347. # weak defined symbols like other global defined symbols, whereas
  14348. # GNU nm marks them as "W".
  14349. # While the 'weak' keyword is ignored in the Export File, we need
  14350. # it in the Import File for the 'aix-soname' feature, so we have
  14351. # to replace the "-B" option with "-P" for AIX nm.
  14352. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14353. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  14354. else
  14355. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  14356. fi
  14357. ;;
  14358. pw32*)
  14359. export_symbols_cmds_CXX=$ltdll_cmds
  14360. ;;
  14361. cygwin* | mingw* | cegcc*)
  14362. case $cc_basename in
  14363. cl*)
  14364. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14365. ;;
  14366. *)
  14367. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  14368. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14369. ;;
  14370. esac
  14371. ;;
  14372. linux* | k*bsd*-gnu | gnu*)
  14373. link_all_deplibs_CXX=no
  14374. ;;
  14375. *)
  14376. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14377. ;;
  14378. esac
  14379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14380. $as_echo "$ld_shlibs_CXX" >&6; }
  14381. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14382. with_gnu_ld_CXX=$with_gnu_ld
  14383. #
  14384. # Do we need to explicitly link libc?
  14385. #
  14386. case "x$archive_cmds_need_lc_CXX" in
  14387. x|xyes)
  14388. # Assume -lc should be added
  14389. archive_cmds_need_lc_CXX=yes
  14390. if test yes,yes = "$GCC,$enable_shared"; then
  14391. case $archive_cmds_CXX in
  14392. *'~'*)
  14393. # FIXME: we may have to deal with multi-command sequences.
  14394. ;;
  14395. '$CC '*)
  14396. # Test whether the compiler implicitly links with -lc since on some
  14397. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14398. # to ld, don't add -lc before -lgcc.
  14399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14400. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  14401. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  14402. $as_echo_n "(cached) " >&6
  14403. else
  14404. $RM conftest*
  14405. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14406. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14407. (eval $ac_compile) 2>&5
  14408. ac_status=$?
  14409. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14410. test $ac_status = 0; } 2>conftest.err; then
  14411. soname=conftest
  14412. lib=conftest
  14413. libobjs=conftest.$ac_objext
  14414. deplibs=
  14415. wl=$lt_prog_compiler_wl_CXX
  14416. pic_flag=$lt_prog_compiler_pic_CXX
  14417. compiler_flags=-v
  14418. linker_flags=-v
  14419. verstring=
  14420. output_objdir=.
  14421. libname=conftest
  14422. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14423. allow_undefined_flag_CXX=
  14424. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14425. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14426. ac_status=$?
  14427. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14428. test $ac_status = 0; }
  14429. then
  14430. lt_cv_archive_cmds_need_lc_CXX=no
  14431. else
  14432. lt_cv_archive_cmds_need_lc_CXX=yes
  14433. fi
  14434. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14435. else
  14436. cat conftest.err 1>&5
  14437. fi
  14438. $RM conftest*
  14439. fi
  14440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14441. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14442. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14443. ;;
  14444. esac
  14445. fi
  14446. ;;
  14447. esac
  14448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14449. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  14450. library_names_spec=
  14451. libname_spec='lib$name'
  14452. soname_spec=
  14453. shrext_cmds=.so
  14454. postinstall_cmds=
  14455. postuninstall_cmds=
  14456. finish_cmds=
  14457. finish_eval=
  14458. shlibpath_var=
  14459. shlibpath_overrides_runpath=unknown
  14460. version_type=none
  14461. dynamic_linker="$host_os ld.so"
  14462. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14463. need_lib_prefix=unknown
  14464. hardcode_into_libs=no
  14465. # when you set need_version to no, make sure it does not cause -set_version
  14466. # flags to be left without arguments
  14467. need_version=unknown
  14468. case $host_os in
  14469. aix3*)
  14470. version_type=linux # correct to gnu/linux during the next big refactor
  14471. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14472. shlibpath_var=LIBPATH
  14473. # AIX 3 has no versioning support, so we append a major version to the name.
  14474. soname_spec='$libname$release$shared_ext$major'
  14475. ;;
  14476. aix[4-9]*)
  14477. version_type=linux # correct to gnu/linux during the next big refactor
  14478. need_lib_prefix=no
  14479. need_version=no
  14480. hardcode_into_libs=yes
  14481. if test ia64 = "$host_cpu"; then
  14482. # AIX 5 supports IA64
  14483. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14484. shlibpath_var=LD_LIBRARY_PATH
  14485. else
  14486. # With GCC up to 2.95.x, collect2 would create an import file
  14487. # for dependence libraries. The import file would start with
  14488. # the line '#! .'. This would cause the generated library to
  14489. # depend on '.', always an invalid library. This was fixed in
  14490. # development snapshots of GCC prior to 3.0.
  14491. case $host_os in
  14492. aix4 | aix4.[01] | aix4.[01].*)
  14493. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14494. echo ' yes '
  14495. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14496. :
  14497. else
  14498. can_build_shared=no
  14499. fi
  14500. ;;
  14501. esac
  14502. # Using Import Files as archive members, it is possible to support
  14503. # filename-based versioning of shared library archives on AIX. While
  14504. # this would work for both with and without runtime linking, it will
  14505. # prevent static linking of such archives. So we do filename-based
  14506. # shared library versioning with .so extension only, which is used
  14507. # when both runtime linking and shared linking is enabled.
  14508. # Unfortunately, runtime linking may impact performance, so we do
  14509. # not want this to be the default eventually. Also, we use the
  14510. # versioned .so libs for executables only if there is the -brtl
  14511. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14512. # To allow for filename-based versioning support, we need to create
  14513. # libNAME.so.V as an archive file, containing:
  14514. # *) an Import File, referring to the versioned filename of the
  14515. # archive as well as the shared archive member, telling the
  14516. # bitwidth (32 or 64) of that shared object, and providing the
  14517. # list of exported symbols of that shared object, eventually
  14518. # decorated with the 'weak' keyword
  14519. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14520. # it being seen by the linker.
  14521. # At run time we better use the real file rather than another symlink,
  14522. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14523. case $with_aix_soname,$aix_use_runtimelinking in
  14524. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14525. # soname into executable. Probably we can add versioning support to
  14526. # collect2, so additional links can be useful in future.
  14527. aix,yes) # traditional libtool
  14528. dynamic_linker='AIX unversionable lib.so'
  14529. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14530. # instead of lib<name>.a to let people know that these are not
  14531. # typical AIX shared libraries.
  14532. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14533. ;;
  14534. aix,no) # traditional AIX only
  14535. dynamic_linker='AIX lib.a(lib.so.V)'
  14536. # We preserve .a as extension for shared libraries through AIX4.2
  14537. # and later when we are not doing run time linking.
  14538. library_names_spec='$libname$release.a $libname.a'
  14539. soname_spec='$libname$release$shared_ext$major'
  14540. ;;
  14541. svr4,*) # full svr4 only
  14542. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14543. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14544. # We do not specify a path in Import Files, so LIBPATH fires.
  14545. shlibpath_overrides_runpath=yes
  14546. ;;
  14547. *,yes) # both, prefer svr4
  14548. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14549. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14550. # unpreferred sharedlib libNAME.a needs extra handling
  14551. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  14552. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  14553. # We do not specify a path in Import Files, so LIBPATH fires.
  14554. shlibpath_overrides_runpath=yes
  14555. ;;
  14556. *,no) # both, prefer aix
  14557. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14558. library_names_spec='$libname$release.a $libname.a'
  14559. soname_spec='$libname$release$shared_ext$major'
  14560. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14561. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  14562. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  14563. ;;
  14564. esac
  14565. shlibpath_var=LIBPATH
  14566. fi
  14567. ;;
  14568. amigaos*)
  14569. case $host_cpu in
  14570. powerpc)
  14571. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14572. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14573. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14574. ;;
  14575. m68k)
  14576. library_names_spec='$libname.ixlibrary $libname.a'
  14577. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14578. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  14579. ;;
  14580. esac
  14581. ;;
  14582. beos*)
  14583. library_names_spec='$libname$shared_ext'
  14584. dynamic_linker="$host_os ld.so"
  14585. shlibpath_var=LIBRARY_PATH
  14586. ;;
  14587. bsdi[45]*)
  14588. version_type=linux # correct to gnu/linux during the next big refactor
  14589. need_version=no
  14590. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14591. soname_spec='$libname$release$shared_ext$major'
  14592. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14593. shlibpath_var=LD_LIBRARY_PATH
  14594. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14595. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14596. # the default ld.so.conf also contains /usr/contrib/lib and
  14597. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14598. # libtool to hard-code these into programs
  14599. ;;
  14600. cygwin* | mingw* | pw32* | cegcc*)
  14601. version_type=windows
  14602. shrext_cmds=.dll
  14603. need_version=no
  14604. need_lib_prefix=no
  14605. case $GCC,$cc_basename in
  14606. yes,*)
  14607. # gcc
  14608. library_names_spec='$libname.dll.a'
  14609. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14610. postinstall_cmds='base_file=`basename \$file`~
  14611. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14612. dldir=$destdir/`dirname \$dlpath`~
  14613. test -d \$dldir || mkdir -p \$dldir~
  14614. $install_prog $dir/$dlname \$dldir/$dlname~
  14615. chmod a+x \$dldir/$dlname~
  14616. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14617. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14618. fi'
  14619. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14620. dlpath=$dir/\$dldll~
  14621. $RM \$dlpath'
  14622. shlibpath_overrides_runpath=yes
  14623. case $host_os in
  14624. cygwin*)
  14625. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14626. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14627. ;;
  14628. mingw* | cegcc*)
  14629. # MinGW DLLs use traditional 'lib' prefix
  14630. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14631. ;;
  14632. pw32*)
  14633. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14634. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14635. ;;
  14636. esac
  14637. dynamic_linker='Win32 ld.exe'
  14638. ;;
  14639. *,cl*)
  14640. # Native MSVC
  14641. libname_spec='$name'
  14642. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14643. library_names_spec='$libname.dll.lib'
  14644. case $build_os in
  14645. mingw*)
  14646. sys_lib_search_path_spec=
  14647. lt_save_ifs=$IFS
  14648. IFS=';'
  14649. for lt_path in $LIB
  14650. do
  14651. IFS=$lt_save_ifs
  14652. # Let DOS variable expansion print the short 8.3 style file name.
  14653. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14654. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14655. done
  14656. IFS=$lt_save_ifs
  14657. # Convert to MSYS style.
  14658. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14659. ;;
  14660. cygwin*)
  14661. # Convert to unix form, then to dos form, then back to unix form
  14662. # but this time dos style (no spaces!) so that the unix form looks
  14663. # like /cygdrive/c/PROGRA~1:/cygdr...
  14664. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14665. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14666. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14667. ;;
  14668. *)
  14669. sys_lib_search_path_spec=$LIB
  14670. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14671. # It is most probably a Windows format PATH.
  14672. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14673. else
  14674. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14675. fi
  14676. # FIXME: find the short name or the path components, as spaces are
  14677. # common. (e.g. "Program Files" -> "PROGRA~1")
  14678. ;;
  14679. esac
  14680. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14681. postinstall_cmds='base_file=`basename \$file`~
  14682. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14683. dldir=$destdir/`dirname \$dlpath`~
  14684. test -d \$dldir || mkdir -p \$dldir~
  14685. $install_prog $dir/$dlname \$dldir/$dlname'
  14686. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14687. dlpath=$dir/\$dldll~
  14688. $RM \$dlpath'
  14689. shlibpath_overrides_runpath=yes
  14690. dynamic_linker='Win32 link.exe'
  14691. ;;
  14692. *)
  14693. # Assume MSVC wrapper
  14694. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14695. dynamic_linker='Win32 ld.exe'
  14696. ;;
  14697. esac
  14698. # FIXME: first we should search . and the directory the executable is in
  14699. shlibpath_var=PATH
  14700. ;;
  14701. darwin* | rhapsody*)
  14702. dynamic_linker="$host_os dyld"
  14703. version_type=darwin
  14704. need_lib_prefix=no
  14705. need_version=no
  14706. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14707. soname_spec='$libname$release$major$shared_ext'
  14708. shlibpath_overrides_runpath=yes
  14709. shlibpath_var=DYLD_LIBRARY_PATH
  14710. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14711. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14712. ;;
  14713. dgux*)
  14714. version_type=linux # correct to gnu/linux during the next big refactor
  14715. need_lib_prefix=no
  14716. need_version=no
  14717. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14718. soname_spec='$libname$release$shared_ext$major'
  14719. shlibpath_var=LD_LIBRARY_PATH
  14720. ;;
  14721. freebsd* | dragonfly*)
  14722. # DragonFly does not have aout. When/if they implement a new
  14723. # versioning mechanism, adjust this.
  14724. if test -x /usr/bin/objformat; then
  14725. objformat=`/usr/bin/objformat`
  14726. else
  14727. case $host_os in
  14728. freebsd[23].*) objformat=aout ;;
  14729. *) objformat=elf ;;
  14730. esac
  14731. fi
  14732. version_type=freebsd-$objformat
  14733. case $version_type in
  14734. freebsd-elf*)
  14735. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14736. soname_spec='$libname$release$shared_ext$major'
  14737. need_version=no
  14738. need_lib_prefix=no
  14739. ;;
  14740. freebsd-*)
  14741. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14742. need_version=yes
  14743. ;;
  14744. esac
  14745. shlibpath_var=LD_LIBRARY_PATH
  14746. case $host_os in
  14747. freebsd2.*)
  14748. shlibpath_overrides_runpath=yes
  14749. ;;
  14750. freebsd3.[01]* | freebsdelf3.[01]*)
  14751. shlibpath_overrides_runpath=yes
  14752. hardcode_into_libs=yes
  14753. ;;
  14754. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14755. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14756. shlibpath_overrides_runpath=no
  14757. hardcode_into_libs=yes
  14758. ;;
  14759. *) # from 4.6 on, and DragonFly
  14760. shlibpath_overrides_runpath=yes
  14761. hardcode_into_libs=yes
  14762. ;;
  14763. esac
  14764. ;;
  14765. haiku*)
  14766. version_type=linux # correct to gnu/linux during the next big refactor
  14767. need_lib_prefix=no
  14768. need_version=no
  14769. dynamic_linker="$host_os runtime_loader"
  14770. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14771. soname_spec='$libname$release$shared_ext$major'
  14772. shlibpath_var=LIBRARY_PATH
  14773. shlibpath_overrides_runpath=no
  14774. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14775. hardcode_into_libs=yes
  14776. ;;
  14777. hpux9* | hpux10* | hpux11*)
  14778. # Give a soname corresponding to the major version so that dld.sl refuses to
  14779. # link against other versions.
  14780. version_type=sunos
  14781. need_lib_prefix=no
  14782. need_version=no
  14783. case $host_cpu in
  14784. ia64*)
  14785. shrext_cmds='.so'
  14786. hardcode_into_libs=yes
  14787. dynamic_linker="$host_os dld.so"
  14788. shlibpath_var=LD_LIBRARY_PATH
  14789. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14790. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14791. soname_spec='$libname$release$shared_ext$major'
  14792. if test 32 = "$HPUX_IA64_MODE"; then
  14793. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14794. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14795. else
  14796. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14797. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14798. fi
  14799. ;;
  14800. hppa*64*)
  14801. shrext_cmds='.sl'
  14802. hardcode_into_libs=yes
  14803. dynamic_linker="$host_os dld.sl"
  14804. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14805. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14806. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14807. soname_spec='$libname$release$shared_ext$major'
  14808. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14809. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14810. ;;
  14811. *)
  14812. shrext_cmds='.sl'
  14813. dynamic_linker="$host_os dld.sl"
  14814. shlibpath_var=SHLIB_PATH
  14815. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14816. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14817. soname_spec='$libname$release$shared_ext$major'
  14818. ;;
  14819. esac
  14820. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14821. postinstall_cmds='chmod 555 $lib'
  14822. # or fails outright, so override atomically:
  14823. install_override_mode=555
  14824. ;;
  14825. interix[3-9]*)
  14826. version_type=linux # correct to gnu/linux during the next big refactor
  14827. need_lib_prefix=no
  14828. need_version=no
  14829. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14830. soname_spec='$libname$release$shared_ext$major'
  14831. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14832. shlibpath_var=LD_LIBRARY_PATH
  14833. shlibpath_overrides_runpath=no
  14834. hardcode_into_libs=yes
  14835. ;;
  14836. irix5* | irix6* | nonstopux*)
  14837. case $host_os in
  14838. nonstopux*) version_type=nonstopux ;;
  14839. *)
  14840. if test yes = "$lt_cv_prog_gnu_ld"; then
  14841. version_type=linux # correct to gnu/linux during the next big refactor
  14842. else
  14843. version_type=irix
  14844. fi ;;
  14845. esac
  14846. need_lib_prefix=no
  14847. need_version=no
  14848. soname_spec='$libname$release$shared_ext$major'
  14849. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14850. case $host_os in
  14851. irix5* | nonstopux*)
  14852. libsuff= shlibsuff=
  14853. ;;
  14854. *)
  14855. case $LD in # libtool.m4 will add one of these switches to LD
  14856. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14857. libsuff= shlibsuff= libmagic=32-bit;;
  14858. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14859. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14860. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14861. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14862. *) libsuff= shlibsuff= libmagic=never-match;;
  14863. esac
  14864. ;;
  14865. esac
  14866. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14867. shlibpath_overrides_runpath=no
  14868. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14869. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14870. hardcode_into_libs=yes
  14871. ;;
  14872. # No shared lib support for Linux oldld, aout, or coff.
  14873. linux*oldld* | linux*aout* | linux*coff*)
  14874. dynamic_linker=no
  14875. ;;
  14876. linux*android*)
  14877. version_type=none # Android doesn't support versioned libraries.
  14878. need_lib_prefix=no
  14879. need_version=no
  14880. library_names_spec='$libname$release$shared_ext'
  14881. soname_spec='$libname$release$shared_ext'
  14882. finish_cmds=
  14883. shlibpath_var=LD_LIBRARY_PATH
  14884. shlibpath_overrides_runpath=yes
  14885. # This implies no fast_install, which is unacceptable.
  14886. # Some rework will be needed to allow for fast_install
  14887. # before this can be enabled.
  14888. hardcode_into_libs=yes
  14889. dynamic_linker='Android linker'
  14890. # Don't embed -rpath directories since the linker doesn't support them.
  14891. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14892. ;;
  14893. # This must be glibc/ELF.
  14894. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14895. version_type=linux # correct to gnu/linux during the next big refactor
  14896. need_lib_prefix=no
  14897. need_version=no
  14898. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14899. soname_spec='$libname$release$shared_ext$major'
  14900. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14901. shlibpath_var=LD_LIBRARY_PATH
  14902. shlibpath_overrides_runpath=no
  14903. # Some binutils ld are patched to set DT_RUNPATH
  14904. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  14905. $as_echo_n "(cached) " >&6
  14906. else
  14907. lt_cv_shlibpath_overrides_runpath=no
  14908. save_LDFLAGS=$LDFLAGS
  14909. save_libdir=$libdir
  14910. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14911. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14913. /* end confdefs.h. */
  14914. int
  14915. main ()
  14916. {
  14917. ;
  14918. return 0;
  14919. }
  14920. _ACEOF
  14921. if ac_fn_cxx_try_link "$LINENO"; then :
  14922. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  14923. lt_cv_shlibpath_overrides_runpath=yes
  14924. fi
  14925. fi
  14926. rm -f core conftest.err conftest.$ac_objext \
  14927. conftest$ac_exeext conftest.$ac_ext
  14928. LDFLAGS=$save_LDFLAGS
  14929. libdir=$save_libdir
  14930. fi
  14931. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14932. # This implies no fast_install, which is unacceptable.
  14933. # Some rework will be needed to allow for fast_install
  14934. # before this can be enabled.
  14935. hardcode_into_libs=yes
  14936. # Ideally, we could use ldconfig to report *all* directores which are
  14937. # searched for libraries, however this is still not possible. Aside from not
  14938. # being certain /sbin/ldconfig is available, command
  14939. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14940. # even though it is searched at run-time. Try to do the best guess by
  14941. # appending ld.so.conf contents (and includes) to the search path.
  14942. if test -f /etc/ld.so.conf; then
  14943. 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' ' '`
  14944. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14945. fi
  14946. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14947. # powerpc, because MkLinux only supported shared libraries with the
  14948. # GNU dynamic linker. Since this was broken with cross compilers,
  14949. # most powerpc-linux boxes support dynamic linking these days and
  14950. # people can always --disable-shared, the test was removed, and we
  14951. # assume the GNU/Linux dynamic linker is in use.
  14952. dynamic_linker='GNU/Linux ld.so'
  14953. ;;
  14954. netbsdelf*-gnu)
  14955. version_type=linux
  14956. need_lib_prefix=no
  14957. need_version=no
  14958. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14959. soname_spec='${libname}${release}${shared_ext}$major'
  14960. shlibpath_var=LD_LIBRARY_PATH
  14961. shlibpath_overrides_runpath=no
  14962. hardcode_into_libs=yes
  14963. dynamic_linker='NetBSD ld.elf_so'
  14964. ;;
  14965. netbsd*)
  14966. version_type=sunos
  14967. need_lib_prefix=no
  14968. need_version=no
  14969. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14970. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14971. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14972. dynamic_linker='NetBSD (a.out) ld.so'
  14973. else
  14974. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14975. soname_spec='$libname$release$shared_ext$major'
  14976. dynamic_linker='NetBSD ld.elf_so'
  14977. fi
  14978. shlibpath_var=LD_LIBRARY_PATH
  14979. shlibpath_overrides_runpath=yes
  14980. hardcode_into_libs=yes
  14981. ;;
  14982. newsos6)
  14983. version_type=linux # correct to gnu/linux during the next big refactor
  14984. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14985. shlibpath_var=LD_LIBRARY_PATH
  14986. shlibpath_overrides_runpath=yes
  14987. ;;
  14988. *nto* | *qnx*)
  14989. version_type=qnx
  14990. need_lib_prefix=no
  14991. need_version=no
  14992. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14993. soname_spec='$libname$release$shared_ext$major'
  14994. shlibpath_var=LD_LIBRARY_PATH
  14995. shlibpath_overrides_runpath=no
  14996. hardcode_into_libs=yes
  14997. dynamic_linker='ldqnx.so'
  14998. ;;
  14999. openbsd* | bitrig*)
  15000. version_type=sunos
  15001. sys_lib_dlsearch_path_spec=/usr/lib
  15002. need_lib_prefix=no
  15003. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15004. need_version=no
  15005. else
  15006. need_version=yes
  15007. fi
  15008. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15009. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15010. shlibpath_var=LD_LIBRARY_PATH
  15011. shlibpath_overrides_runpath=yes
  15012. ;;
  15013. os2*)
  15014. libname_spec='$name'
  15015. version_type=windows
  15016. shrext_cmds=.dll
  15017. need_version=no
  15018. need_lib_prefix=no
  15019. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15020. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15021. v=$($ECHO $release$versuffix | tr -d .-);
  15022. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15023. $ECHO $n$v`$shared_ext'
  15024. library_names_spec='${libname}_dll.$libext'
  15025. dynamic_linker='OS/2 ld.exe'
  15026. shlibpath_var=BEGINLIBPATH
  15027. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15028. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15029. postinstall_cmds='base_file=`basename \$file`~
  15030. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15031. dldir=$destdir/`dirname \$dlpath`~
  15032. test -d \$dldir || mkdir -p \$dldir~
  15033. $install_prog $dir/$dlname \$dldir/$dlname~
  15034. chmod a+x \$dldir/$dlname~
  15035. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15036. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15037. fi'
  15038. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15039. dlpath=$dir/\$dldll~
  15040. $RM \$dlpath'
  15041. ;;
  15042. osf3* | osf4* | osf5*)
  15043. version_type=osf
  15044. need_lib_prefix=no
  15045. need_version=no
  15046. soname_spec='$libname$release$shared_ext$major'
  15047. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15048. shlibpath_var=LD_LIBRARY_PATH
  15049. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15050. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15051. ;;
  15052. rdos*)
  15053. dynamic_linker=no
  15054. ;;
  15055. solaris*)
  15056. version_type=linux # correct to gnu/linux during the next big refactor
  15057. need_lib_prefix=no
  15058. need_version=no
  15059. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15060. soname_spec='$libname$release$shared_ext$major'
  15061. shlibpath_var=LD_LIBRARY_PATH
  15062. shlibpath_overrides_runpath=yes
  15063. hardcode_into_libs=yes
  15064. # ldd complains unless libraries are executable
  15065. postinstall_cmds='chmod +x $lib'
  15066. ;;
  15067. sunos4*)
  15068. version_type=sunos
  15069. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15070. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15071. shlibpath_var=LD_LIBRARY_PATH
  15072. shlibpath_overrides_runpath=yes
  15073. if test yes = "$with_gnu_ld"; then
  15074. need_lib_prefix=no
  15075. fi
  15076. need_version=yes
  15077. ;;
  15078. sysv4 | sysv4.3*)
  15079. version_type=linux # correct to gnu/linux during the next big refactor
  15080. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15081. soname_spec='$libname$release$shared_ext$major'
  15082. shlibpath_var=LD_LIBRARY_PATH
  15083. case $host_vendor in
  15084. sni)
  15085. shlibpath_overrides_runpath=no
  15086. need_lib_prefix=no
  15087. runpath_var=LD_RUN_PATH
  15088. ;;
  15089. siemens)
  15090. need_lib_prefix=no
  15091. ;;
  15092. motorola)
  15093. need_lib_prefix=no
  15094. need_version=no
  15095. shlibpath_overrides_runpath=no
  15096. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15097. ;;
  15098. esac
  15099. ;;
  15100. sysv4*MP*)
  15101. if test -d /usr/nec; then
  15102. version_type=linux # correct to gnu/linux during the next big refactor
  15103. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15104. soname_spec='$libname$shared_ext.$major'
  15105. shlibpath_var=LD_LIBRARY_PATH
  15106. fi
  15107. ;;
  15108. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15109. version_type=sco
  15110. need_lib_prefix=no
  15111. need_version=no
  15112. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15113. soname_spec='$libname$release$shared_ext$major'
  15114. shlibpath_var=LD_LIBRARY_PATH
  15115. shlibpath_overrides_runpath=yes
  15116. hardcode_into_libs=yes
  15117. if test yes = "$with_gnu_ld"; then
  15118. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15119. else
  15120. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15121. case $host_os in
  15122. sco3.2v5*)
  15123. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15124. ;;
  15125. esac
  15126. fi
  15127. sys_lib_dlsearch_path_spec='/usr/lib'
  15128. ;;
  15129. tpf*)
  15130. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15131. version_type=linux # correct to gnu/linux during the next big refactor
  15132. need_lib_prefix=no
  15133. need_version=no
  15134. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15135. shlibpath_var=LD_LIBRARY_PATH
  15136. shlibpath_overrides_runpath=no
  15137. hardcode_into_libs=yes
  15138. ;;
  15139. uts4*)
  15140. version_type=linux # correct to gnu/linux during the next big refactor
  15141. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15142. soname_spec='$libname$release$shared_ext$major'
  15143. shlibpath_var=LD_LIBRARY_PATH
  15144. ;;
  15145. *)
  15146. dynamic_linker=no
  15147. ;;
  15148. esac
  15149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15150. $as_echo "$dynamic_linker" >&6; }
  15151. test no = "$dynamic_linker" && can_build_shared=no
  15152. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15153. if test yes = "$GCC"; then
  15154. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15155. fi
  15156. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15157. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15158. fi
  15159. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15160. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15161. fi
  15162. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15163. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15164. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15165. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15166. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15167. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15169. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  15170. hardcode_action_CXX=
  15171. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15172. test -n "$runpath_var_CXX" ||
  15173. test yes = "$hardcode_automatic_CXX"; then
  15174. # We can hardcode non-existent directories.
  15175. if test no != "$hardcode_direct_CXX" &&
  15176. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15177. # have to relink, otherwise we might link with an installed library
  15178. # when we should be linking with a yet-to-be-installed one
  15179. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15180. test no != "$hardcode_minus_L_CXX"; then
  15181. # Linking always hardcodes the temporary library directory.
  15182. hardcode_action_CXX=relink
  15183. else
  15184. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15185. hardcode_action_CXX=immediate
  15186. fi
  15187. else
  15188. # We cannot hardcode anything, or else we can only hardcode existing
  15189. # directories.
  15190. hardcode_action_CXX=unsupported
  15191. fi
  15192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15193. $as_echo "$hardcode_action_CXX" >&6; }
  15194. if test relink = "$hardcode_action_CXX" ||
  15195. test yes = "$inherit_rpath_CXX"; then
  15196. # Fast installation is not supported
  15197. enable_fast_install=no
  15198. elif test yes = "$shlibpath_overrides_runpath" ||
  15199. test no = "$enable_shared"; then
  15200. # Fast installation is not necessary
  15201. enable_fast_install=needless
  15202. fi
  15203. fi # test -n "$compiler"
  15204. CC=$lt_save_CC
  15205. CFLAGS=$lt_save_CFLAGS
  15206. LDCXX=$LD
  15207. LD=$lt_save_LD
  15208. GCC=$lt_save_GCC
  15209. with_gnu_ld=$lt_save_with_gnu_ld
  15210. lt_cv_path_LDCXX=$lt_cv_path_LD
  15211. lt_cv_path_LD=$lt_save_path_LD
  15212. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15213. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15214. fi # test yes != "$_lt_caught_CXX_error"
  15215. ac_ext=c
  15216. ac_cpp='$CPP $CPPFLAGS'
  15217. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15218. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15219. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15220. CFLAGS="$OLD_CFLAGS"
  15221. CXXFLAGS="$OLD_CXXFLAGS"
  15222. CPPFLAGS="$OLD_CPPFLAGS"
  15223. if test "$with_ccache" != "no" &&
  15224. test "$ORIG" = "" &&
  15225. test "$CCACHE" != ""
  15226. then
  15227. RAWCC="`which $CC 2> /dev/null`"
  15228. RAWXX="`which $CXX 2> /dev/null`"
  15229. case "$CC$CXX `ls -l $RAWCC 2>/dev/null` `ls -l $RAWCXX 2>/dev/null`" in
  15230. *ccache*)
  15231. ;;
  15232. *)
  15233. d=`pwd`
  15234. printf "#! /bin/sh\nccache $CC \"\$@\"\n" > $d/cachecc.sh
  15235. printf "#! /bin/sh\nccache $CXX \"\$@\"\n" > $d/cachecxx.sh
  15236. chmod +x $d/cachecc.sh $d/cachecxx.sh
  15237. CC="$d/cachecc.sh"
  15238. CXX="$d/cachecxx.sh"
  15239. ;;
  15240. esac
  15241. fi
  15242. if test "x$with_csl" != "xno"
  15243. then
  15244. # Here I have a bunch of sub-directories that I need to configure
  15245. { $as_echo "$as_me:${as_lineno-$LINENO}: About to configure CSL core" >&5
  15246. $as_echo "$as_me: About to configure CSL core" >&6;}
  15247. mkdir -p csl
  15248. cd csl
  15249. case $host in
  15250. *darwin* | *Darwin*)
  15251. CPPFLAGS="$CPPFLAGS -mmacosx-version-min=10.12 -I/opt/local/include"
  15252. LDFLAGS="$LDFLAGS -L/opt/local/lib"
  15253. ;;
  15254. esac
  15255. # If I am compiling for native Cygwin I will not pass down "--host"
  15256. # if I am building for the natural target.
  15257. { $as_echo "$as_me:${as_lineno-$LINENO}: host=$host build=$build" >&5
  15258. $as_echo "$as_me: host=$host build=$build" >&6;}
  15259. pass_host="--host=$host"
  15260. if test "x$with_cygwin" != "xno"
  15261. then
  15262. pass_host=""
  15263. if test "x$host" != "xx86_64-unknown-cygwin" &&
  15264. test "x$host" != "xx86_64-pc-cygwin"
  15265. then
  15266. pass_host="--host=$host"
  15267. fi
  15268. fi
  15269. { $as_echo "$as_me:${as_lineno-$LINENO}: with_cygwin=$with_cygwin pass_host=$pass_host" >&5
  15270. $as_echo "$as_me: with_cygwin=$with_cygwin pass_host=$pass_host" >&6;}
  15271. if test "x$with_wx" != "xno"
  15272. then
  15273. # A short essay to explain why I pass down "--host=$host" here. There are
  15274. # two points. The first is that I cope with 64-bit windows by use of
  15275. # cross-compilation using the x86_64-win32-mingw32 toolchain, and I need
  15276. # to pass down the information that I am doing that.
  15277. # The second reason is that different releases of "config.guess" can report
  15278. # machine identities differently. I have particularly observes this on
  15279. # openSuSE Linux where some versions brand the host triple with "-suse-" in
  15280. # the middle. I do not mind much just what triple is used, but I do mind
  15281. # very much it it is not consistent all the way through my build. So I
  15282. # let this top-level configure script make the choice and by explicitly
  15283. # propagating if to sub-packages I end up safer.
  15284. # However if I am building for raw cygwin I find that I have pain if I
  15285. # specify --host specifically, so in that case I will not!
  15286. pass_build="--with-build=\"$build\""
  15287. doconfig="$SHELL $abssrcdir/csl/cslbase/configure -C \
  15288. $ac_configure_args \
  15289. CC=\"$CC\" CXX=\"$CXX\" \
  15290. CPPFLAGS=\"$CPPFLAGS\" CFLAGS=\"$CFLAGS\" \
  15291. CXXFLAGS=\"$CXXFLAGS\" LDFLAGS=\"$LDFLAGS\" LIBS=\"$LIBS\" \
  15292. $pass_host --with-wx=\"$with_wx\" $pass_build --without-fox"
  15293. elif test "x$with_fox" != "xno"
  15294. then
  15295. pass_build="--with-build=\"$build\""
  15296. doconfig="$SHELL $abssrcdir/csl/cslbase/configure -C \
  15297. $ac_configure_args \
  15298. CC=\"$CC\" CXX=\"$CXX\" \
  15299. CPPFLAGS=\"$CPPFLAGS\" CFLAGS=\"$CFLAGS\" \
  15300. CXXFLAGS=\"$CXXFLAGS\" LDFLAGS=\"$LDFLAGS\" LIBS=\"$LIBS\" \
  15301. $pass_host --with-fox=\"$builddir\" $pass_build --without-wx"
  15302. else
  15303. # This final version will be without any GUI.
  15304. pass_build="--with-build=\"$build\""
  15305. doconfig="$SHELL $abssrcdir/csl/cslbase/configure \
  15306. -C \
  15307. $ac_configure_args \
  15308. CC=\"$CC\" CXX=\"$CXX\" \
  15309. CPPFLAGS=\"$CPPFLAGS\" CFLAGS=\"$CFLAGS\" \
  15310. CXXFLAGS=\"$CXXFLAGS\" LDFLAGS=\"$LDFLAGS\" LIBS=\"$LIBS\" \
  15311. $pass_host $pass_build --without-fox --without-wx"
  15312. fi
  15313. { $as_echo "$as_me:${as_lineno-$LINENO}: $doconfig" >&5
  15314. $as_echo "$as_me: $doconfig" >&6;}
  15315. if test "x$with_sequential" = "xno"
  15316. then
  15317. eval "$doconfig" &
  15318. procids="$procids $!"
  15319. else
  15320. eval "$doconfig"
  15321. fi
  15322. cd "$builddir"
  15323. extras=
  15324. wx=
  15325. case $host in
  15326. *cygwin*)
  15327. if test "x$with_cygwin" != "xyes"
  15328. then
  15329. { $as_echo "$as_me:${as_lineno-$LINENO}: gcc will be used in mingw mode." >&5
  15330. $as_echo "$as_me: gcc will be used in mingw mode." >&6;}
  15331. else
  15332. { $as_echo "$as_me:${as_lineno-$LINENO}: Using raw cygwin" >&5
  15333. $as_echo "$as_me: Using raw cygwin" >&6;}
  15334. CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2 -I/usr/include/ncurses "
  15335. extras="--with-xft --with-xim"
  15336. fi
  15337. ;;
  15338. *Darwin* | *darwin*)
  15339. # clang on MacOSX does not provide -mfpmath
  15340. # CFLAGS="$CFLAGS -msse2 -mfpmath=sse"
  15341. # CXXFLAGS="$CXXFLAGS -msse2 -mfpmath=sse"
  15342. MACARCH="--enable-macosx_arch=x86_64"
  15343. extras="--with-xft --with-xim"
  15344. wx="--with-cocoa \
  15345. --with-macosx-version-min=10.12 \
  15346. $MACARCH "
  15347. ;;
  15348. *)
  15349. # On most non-windowed platforms Xft is a very good idea! And I am now
  15350. # relying on it. Ditto XIM
  15351. CFLAGS="$CFLAGS "
  15352. CXXFLAGS="$CXXFLAGS "
  15353. extras="--with-xft --with-xim"
  15354. ;;
  15355. esac
  15356. if test "x$with_wx" != "xno"
  15357. then
  15358. mkdir wxWidgets
  15359. cd wxWidgets
  15360. { $as_echo "$as_me:${as_lineno-$LINENO}: About to configure wxWidgets" >&5
  15361. $as_echo "$as_me: About to configure wxWidgets" >&6;}
  15362. # I need --enable-unicode on Windows at least so that I can use the
  15363. # BaKoMa fonts which remap at least one TeX glyph to outside the range
  15364. # of simple 8-bit characters. This will bring some follow-on pain no doubt
  15365. # but addressing that pain is probably good in the long term.
  15366. if test "x$CC$CPP$CXX$CXXCPP" != "x"
  15367. then
  15368. passcc="CC=\"$CC\" CPP=\"$CPP\" CXX=\"$CXX\" CXXCPP=\"$CXXCPP\""
  15369. else
  15370. passcc=""
  15371. fi
  15372. { $as_echo "$as_me:${as_lineno-$LINENO}: passcc = $passcc pass_host=$pass_host" >&5
  15373. $as_echo "$as_me: passcc = $passcc pass_host=$pass_host" >&6;}
  15374. doconfig="$SHELL $abssrcdir/csl/wxWidgets/configure -C $wx \
  15375. $pass_host \
  15376. CPPFLAGS=\"$CPPFLAGS -D_GNU_SOURCE=1\" \
  15377. CFLAGS=\"$CFLAGS\" \
  15378. CFLAGS=\"$CFLAGS\" \
  15379. CXXFLAGS=\"$CXXFLAGS\" \
  15380. LDFLAGS=\"$LDFLAGS\" \
  15381. $passcc \
  15382. --disable-shared \
  15383. --enable-unicode \
  15384. --disable-compat28 \
  15385. --enable-monolithic \
  15386. --disable-sys-libs \
  15387. --without-libjpeg \
  15388. --without-libtiff \
  15389. --disable-svg \
  15390. --without-sdl \
  15391. --without-expat \
  15392. --without-libiconv \
  15393. --without-regex \
  15394. --disable-webview \
  15395. --disable-richtext \
  15396. --disable-gif \
  15397. --disable-pcx \
  15398. --enable-graphics_ctx \
  15399. --disable-tga \
  15400. --disable-pnm \
  15401. --enable-dynlib \
  15402. --enable-dynamicloader \
  15403. --prefix=\"$builddir\" \
  15404. --libdir=\"$builddir/lib\" \
  15405. --includedir=\"$builddir/include\""
  15406. if test "x$enable_debug" != "xno"
  15407. then
  15408. doconfig="$doconfig --enable-debug"
  15409. else
  15410. doconfig="$doconfig --disable-debug"
  15411. fi
  15412. if test "x$with_cygwin" != "xno"
  15413. then
  15414. doconfig="$doconfig --with-gtk"
  15415. fi
  15416. { $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5
  15417. $as_echo "$as_me: doconfig = $doconfig" >&6;}
  15418. if test "x$with_sequential" = "xno"
  15419. then
  15420. eval "$doconfig" &
  15421. jobs
  15422. procids="$procids $!"
  15423. else
  15424. eval "$doconfig"
  15425. fi
  15426. cd "$builddir"
  15427. elif test "x$with_fox" != "xno"
  15428. then
  15429. { $as_echo "$as_me:${as_lineno-$LINENO}: About to configure FOX" >&5
  15430. $as_echo "$as_me: About to configure FOX" >&6;}
  15431. mkdir -p fox/src
  15432. # The Makefile that comes with FOX seems to require these GIF files
  15433. # in the build directory.
  15434. cp "$abssrcdir/csl/fox/src/"*.gif fox/src
  15435. cd fox
  15436. if test "x$CC$CPP$CXX$CXXCPP" != "x"
  15437. then
  15438. passcc="CC=\"$CC\" CPP=\"$CPP\" CXX=\"$CXX\" CXXCPP=\"$CXXCPP\""
  15439. else
  15440. passcc=""
  15441. fi
  15442. { $as_echo "$as_me:${as_lineno-$LINENO}: passcc = $passcc" >&5
  15443. $as_echo "$as_me: passcc = $passcc" >&6;}
  15444. doconfig="$SHELL $abssrcdir/csl/fox/configure -C $ac_configure_args \
  15445. CPPFLAGS=\"$CPPFLAGS\" \
  15446. CFLAGS=\"$CFLAGS\" \
  15447. CXXFLAGS=\"$CXXFLAGS\" \
  15448. LDFLAGS=\"$LDFLAGS\" \
  15449. $passcc \
  15450. $pass_host \
  15451. --enable-release \
  15452. --with-opengl=no \
  15453. --disable-jpeg \
  15454. --disable-zlib \
  15455. --disable-bz2lib \
  15456. --disable-png \
  15457. --disable-tiff \
  15458. --prefix=\"$builddir\" \
  15459. --libdir=\"$builddir/lib\" \
  15460. --includedir=\"$builddir/include\" \
  15461. $extras"
  15462. { $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5
  15463. $as_echo "$as_me: doconfig = $doconfig" >&6;}
  15464. if test "x$with_sequential" = "xno"
  15465. then
  15466. eval "$doconfig" &
  15467. procids="$procids $!"
  15468. else
  15469. eval "$doconfig"
  15470. fi
  15471. cd "$builddir"
  15472. fi
  15473. fi
  15474. { $as_echo "$as_me:${as_lineno-$LINENO}: GUI toolkit config spawned" >&5
  15475. $as_echo "$as_me: GUI toolkit config spawned" >&6;}
  15476. if test "x$with_crlibm" = "xno"
  15477. then
  15478. { $as_echo "$as_me:${as_lineno-$LINENO}: crlibm will not be used here" >&5
  15479. $as_echo "$as_me: crlibm will not be used here" >&6;}
  15480. else
  15481. { $as_echo "$as_me:${as_lineno-$LINENO}: About to configure crlibm" >&5
  15482. $as_echo "$as_me: About to configure crlibm" >&6;}
  15483. mkdir -p crlibm
  15484. cd crlibm
  15485. if test "x$CC$CPP$CXX$CXXCPP" != "x"
  15486. then
  15487. passcc="CC=\"$CC\" CPP=\"$CPP\" CXX=\"$CXX\" CXXCPP=\"$CXXCPP\""
  15488. else
  15489. passcc=""
  15490. fi
  15491. { $as_echo "$as_me:${as_lineno-$LINENO}: passcc = $passcc" >&5
  15492. $as_echo "$as_me: passcc = $passcc" >&6;}
  15493. doconfig="$SHELL $abssrcdir/libraries/crlibm/configure -C $filtered \
  15494. $pass_host \
  15495. CPPFLAGS=\"$CPPFLAGS\" \
  15496. CFLAGS=\"$CFLAGS\" \
  15497. CXXFLAGS=\"$CXXFLAGS\" \
  15498. LDFLAGS=\"$LDFLAGS\" \
  15499. $passcc \
  15500. --prefix=\"$builddir\" \
  15501. --libdir=\"$builddir/lib\" \
  15502. --includedir=\"$builddir/include\""
  15503. { $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5
  15504. $as_echo "$as_me: doconfig = $doconfig" >&6;}
  15505. if test "x$with_sequential" = "xno"
  15506. then
  15507. eval "$doconfig" &
  15508. procids="$procids $!"
  15509. else
  15510. eval "$doconfig"
  15511. fi
  15512. cd "$builddir"
  15513. fi
  15514. { $as_echo "$as_me:${as_lineno-$LINENO}: About to configure libffi" >&5
  15515. $as_echo "$as_me: About to configure libffi" >&6;}
  15516. mkdir -p libffi
  15517. cd libffi
  15518. if test "x$CC$CPP$CXX$CXXCPP" != "x"
  15519. then
  15520. passcc="CC=\"$CC\" CPP=\"$CPP\" CXX=\"$CXX\" CXXCPP=\"$CXXCPP\""
  15521. else
  15522. passcc=""
  15523. fi
  15524. { $as_echo "$as_me:${as_lineno-$LINENO}: passcc = $passcc" >&5
  15525. $as_echo "$as_me: passcc = $passcc" >&6;}
  15526. doconfig="$SHELL $abssrcdir/libraries/libffi/configure -C $filtered \
  15527. $pass_host \
  15528. CPPFLAGS=\"$CPPFLAGS\" \
  15529. CFLAGS=\"$CFLAGS\" \
  15530. CXXFLAGS=\"$CXXFLAGS\" \
  15531. LDFLAGS=\"$LDFLAGS\" \
  15532. $passcc \
  15533. --disable-multi-os-directory \
  15534. --disable-docs \
  15535. --prefix=\"$builddir\" \
  15536. --libdir=\"$builddir/lib\" \
  15537. --includedir=\"$builddir/include\""
  15538. { $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5
  15539. $as_echo "$as_me: doconfig = $doconfig" >&6;}
  15540. if test "x$with_sequential" = "xno"
  15541. then
  15542. eval "$doconfig" &
  15543. procids="$procids $!"
  15544. else
  15545. eval "$doconfig"
  15546. fi
  15547. cd "$builddir"
  15548. { $as_echo "$as_me:${as_lineno-$LINENO}: About to configure libsoftfloat" >&5
  15549. $as_echo "$as_me: About to configure libsoftfloat" >&6;}
  15550. mkdir -p softfloat
  15551. cd softfloat
  15552. if test "x$CC$CPP$CXX$CXXCPP" != "x"
  15553. then
  15554. passcc="CC=\"$CC\" CPP=\"$CPP\" CXX=\"$CXX\" CXXCPP=\"$CXXCPP\""
  15555. else
  15556. passcc=""
  15557. fi
  15558. { $as_echo "$as_me:${as_lineno-$LINENO}: passcc = $passcc" >&5
  15559. $as_echo "$as_me: passcc = $passcc" >&6;}
  15560. # NOTE that there is now a SoftFloat-3e and I should migrate to use of it!
  15561. doconfig="$SHELL $abssrcdir/libraries/SoftFloat-3a/source/configure -C \
  15562. $filtered \
  15563. $pass_host \
  15564. CPPFLAGS=\"$CPPFLAGS\" \
  15565. CFLAGS=\"$CFLAGS\" \
  15566. CXXFLAGS=\"$CXXFLAGS\" \
  15567. LDFLAGS=\"$LDFLAGS\" \
  15568. $passcc \
  15569. --prefix=\"$builddir\" \
  15570. --libdir=\"$builddir/lib\" \
  15571. --includedir=\"$builddir/include\""
  15572. { $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5
  15573. $as_echo "$as_me: doconfig = $doconfig" >&6;}
  15574. if test "x$with_sequential" = "xno"
  15575. then
  15576. eval "$doconfig" &
  15577. procids="$procids $!"
  15578. else
  15579. eval "$doconfig"
  15580. fi
  15581. cd "$builddir"
  15582. { $as_echo "$as_me:${as_lineno-$LINENO}: About to configure libedit" >&5
  15583. $as_echo "$as_me: About to configure libedit" >&6;}
  15584. mkdir -p libedit
  15585. cd libedit
  15586. doconfig="$SHELL $abssrcdir/libraries/libedit-$LIBEDIT_VERSION/configure -C \
  15587. $nohost \
  15588. CC=\"$CC\" CXX=\"$CXX\" \
  15589. CPPFLAGS=\"$CPPFLAGS\" \
  15590. CFLAGS=\"$CFLAGS\" \
  15591. CXXFLAGS=\"$CXXFLAGS\" \
  15592. LDFLAGS=\"$LDFLAGS\" \
  15593. --enable-widec=yes \
  15594. --prefix=\"$builddir\" \
  15595. --libdir=\"$builddir/lib\" \
  15596. --includedir=\"$builddir/include\""
  15597. { $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5
  15598. $as_echo "$as_me: doconfig = $doconfig" >&6;}
  15599. if test "x$with_sequential" = "xno"
  15600. then
  15601. eval "$doconfig" &
  15602. procids="$procids $!"
  15603. else
  15604. eval "$doconfig"
  15605. fi
  15606. cd "$builddir"
  15607. ln -f -s $abssrcdir/libraries/wineditline .
  15608. { $as_echo "$as_me:${as_lineno-$LINENO}: About to configure redfront" >&5
  15609. $as_echo "$as_me: About to configure redfront" >&6;}
  15610. mkdir -p redfront
  15611. cd redfront
  15612. doconfig="$SHELL $abssrcdir/generic/newfront/configure -C $nohost \
  15613. CC=\"$CC\" CXX=\"$CXX\" \
  15614. CPPFLAGS=\"$CPPFLAGS\" \
  15615. CFLAGS=\"$CFLAGS\" \
  15616. CXXFLAGS=\"$CXXFLAGS\" \
  15617. LDFLAGS=\"$LDFLAGS\" \
  15618. --prefix=\"$builddir\" \
  15619. --libdir=\"$builddir/lib\" \
  15620. --includedir=\"$builddir/include\""
  15621. { $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5
  15622. $as_echo "$as_me: doconfig = $doconfig" >&6;}
  15623. if test "x$with_sequential" = "xno"
  15624. then
  15625. eval "$doconfig" &
  15626. procids="$procids $!"
  15627. else
  15628. eval "$doconfig"
  15629. fi
  15630. cd "$builddir"
  15631. { $as_echo "$as_me:${as_lineno-$LINENO}: All sub-packages have had their configure script launched" >&5
  15632. $as_echo "$as_me: All sub-packages have had their configure script launched" >&6;}
  15633. ###############################################################################
  15634. if test "x$with_csl" != "xno"; then
  15635. csl_TRUE=
  15636. csl_FALSE='#'
  15637. else
  15638. csl_TRUE='#'
  15639. csl_FALSE=
  15640. fi
  15641. if test "x$with_psl" != "xno"; then
  15642. psl_TRUE=
  15643. psl_FALSE='#'
  15644. else
  15645. psl_TRUE='#'
  15646. psl_FALSE=
  15647. fi
  15648. if test "x$with_csl" != "xno" && test "x$with_psl" != "xno"; then
  15649. cslpsl_TRUE=
  15650. cslpsl_FALSE='#'
  15651. else
  15652. cslpsl_TRUE='#'
  15653. cslpsl_FALSE=
  15654. fi
  15655. if test "x$with_fox" != "xno"; then
  15656. fox_TRUE=
  15657. fox_FALSE='#'
  15658. else
  15659. fox_TRUE='#'
  15660. fox_FALSE=
  15661. fi
  15662. if test "x$with_wx" != "xno"; then
  15663. wx_TRUE=
  15664. wx_FALSE='#'
  15665. else
  15666. wx_TRUE='#'
  15667. wx_FALSE=
  15668. fi
  15669. if test "x$with_crlibm" != "xno"; then
  15670. crlibm_TRUE=
  15671. crlibm_FALSE='#'
  15672. else
  15673. crlibm_TRUE='#'
  15674. crlibm_FALSE=
  15675. fi
  15676. { $as_echo "$as_me:${as_lineno-$LINENO}: final output from top level configuration" >&5
  15677. $as_echo "$as_me: final output from top level configuration" >&6;}
  15678. cat >confcache <<\_ACEOF
  15679. # This file is a shell script that caches the results of configure
  15680. # tests run on this system so they can be shared between configure
  15681. # scripts and configure runs, see configure's option --config-cache.
  15682. # It is not useful on other systems. If it contains results you don't
  15683. # want to keep, you may remove or edit it.
  15684. #
  15685. # config.status only pays attention to the cache file if you give it
  15686. # the --recheck option to rerun configure.
  15687. #
  15688. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15689. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15690. # following values.
  15691. _ACEOF
  15692. # The following way of writing the cache mishandles newlines in values,
  15693. # but we know of no workaround that is simple, portable, and efficient.
  15694. # So, we kill variables containing newlines.
  15695. # Ultrix sh set writes to stderr and can't be redirected directly,
  15696. # and sets the high bit in the cache file unless we assign to the vars.
  15697. (
  15698. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15699. eval ac_val=\$$ac_var
  15700. case $ac_val in #(
  15701. *${as_nl}*)
  15702. case $ac_var in #(
  15703. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  15704. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15705. esac
  15706. case $ac_var in #(
  15707. _ | IFS | as_nl) ;; #(
  15708. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15709. *) { eval $ac_var=; unset $ac_var;} ;;
  15710. esac ;;
  15711. esac
  15712. done
  15713. (set) 2>&1 |
  15714. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15715. *${as_nl}ac_space=\ *)
  15716. # `set' does not quote correctly, so add quotes: double-quote
  15717. # substitution turns \\\\ into \\, and sed turns \\ into \.
  15718. sed -n \
  15719. "s/'/'\\\\''/g;
  15720. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15721. ;; #(
  15722. *)
  15723. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15724. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15725. ;;
  15726. esac |
  15727. sort
  15728. ) |
  15729. sed '
  15730. /^ac_cv_env_/b end
  15731. t clear
  15732. :clear
  15733. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15734. t end
  15735. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15736. :end' >>confcache
  15737. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15738. if test -w "$cache_file"; then
  15739. if test "x$cache_file" != "x/dev/null"; then
  15740. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  15741. $as_echo "$as_me: updating cache $cache_file" >&6;}
  15742. if test ! -f "$cache_file" || test -h "$cache_file"; then
  15743. cat confcache >"$cache_file"
  15744. else
  15745. case $cache_file in #(
  15746. */* | ?:*)
  15747. mv -f confcache "$cache_file"$$ &&
  15748. mv -f "$cache_file"$$ "$cache_file" ;; #(
  15749. *)
  15750. mv -f confcache "$cache_file" ;;
  15751. esac
  15752. fi
  15753. fi
  15754. else
  15755. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  15756. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  15757. fi
  15758. fi
  15759. rm -f confcache
  15760. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  15761. # Let make expand exec_prefix.
  15762. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  15763. # Transform confdefs.h into DEFS.
  15764. # Protect against shell expansion while executing Makefile rules.
  15765. # Protect against Makefile macro expansion.
  15766. #
  15767. # If the first sed substitution is executed (which looks for macros that
  15768. # take arguments), then branch to the quote section. Otherwise,
  15769. # look for a macro that doesn't take arguments.
  15770. ac_script='
  15771. :mline
  15772. /\\$/{
  15773. N
  15774. s,\\\n,,
  15775. b mline
  15776. }
  15777. t clear
  15778. :clear
  15779. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  15780. t quote
  15781. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  15782. t quote
  15783. b any
  15784. :quote
  15785. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  15786. s/\[/\\&/g
  15787. s/\]/\\&/g
  15788. s/\$/$$/g
  15789. H
  15790. :any
  15791. ${
  15792. g
  15793. s/^\n//
  15794. s/\n/ /g
  15795. p
  15796. }
  15797. '
  15798. DEFS=`sed -n "$ac_script" confdefs.h`
  15799. ac_libobjs=
  15800. ac_ltlibobjs=
  15801. U=
  15802. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  15803. # 1. Remove the extension, and $U if already installed.
  15804. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  15805. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  15806. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  15807. # will be set to the directory where LIBOBJS objects are built.
  15808. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  15809. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  15810. done
  15811. LIBOBJS=$ac_libobjs
  15812. LTLIBOBJS=$ac_ltlibobjs
  15813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  15814. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  15815. if test -n "$am_sleep_pid"; then
  15816. # Hide warnings about reused PIDs.
  15817. wait $am_sleep_pid 2>/dev/null
  15818. fi
  15819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  15820. $as_echo "done" >&6; }
  15821. if test -n "$EXEEXT"; then
  15822. am__EXEEXT_TRUE=
  15823. am__EXEEXT_FALSE='#'
  15824. else
  15825. am__EXEEXT_TRUE='#'
  15826. am__EXEEXT_FALSE=
  15827. fi
  15828. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  15829. as_fn_error $? "conditional \"AMDEP\" was never defined.
  15830. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15831. fi
  15832. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  15833. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  15834. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15835. fi
  15836. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  15837. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  15838. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15839. fi
  15840. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  15841. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  15842. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15843. fi
  15844. if test -z "${csl_TRUE}" && test -z "${csl_FALSE}"; then
  15845. as_fn_error $? "conditional \"csl\" was never defined.
  15846. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15847. fi
  15848. if test -z "${psl_TRUE}" && test -z "${psl_FALSE}"; then
  15849. as_fn_error $? "conditional \"psl\" was never defined.
  15850. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15851. fi
  15852. if test -z "${cslpsl_TRUE}" && test -z "${cslpsl_FALSE}"; then
  15853. as_fn_error $? "conditional \"cslpsl\" was never defined.
  15854. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15855. fi
  15856. if test -z "${fox_TRUE}" && test -z "${fox_FALSE}"; then
  15857. as_fn_error $? "conditional \"fox\" was never defined.
  15858. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15859. fi
  15860. if test -z "${wx_TRUE}" && test -z "${wx_FALSE}"; then
  15861. as_fn_error $? "conditional \"wx\" was never defined.
  15862. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15863. fi
  15864. if test -z "${crlibm_TRUE}" && test -z "${crlibm_FALSE}"; then
  15865. as_fn_error $? "conditional \"crlibm\" was never defined.
  15866. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15867. fi
  15868. : "${CONFIG_STATUS=./config.status}"
  15869. ac_write_fail=0
  15870. ac_clean_files_save=$ac_clean_files
  15871. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  15872. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  15873. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  15874. as_write_fail=0
  15875. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  15876. #! $SHELL
  15877. # Generated by $as_me.
  15878. # Run this file to recreate the current configuration.
  15879. # Compiler output produced by configure, useful for debugging
  15880. # configure, is in config.log if it exists.
  15881. debug=false
  15882. ac_cs_recheck=false
  15883. ac_cs_silent=false
  15884. SHELL=\${CONFIG_SHELL-$SHELL}
  15885. export SHELL
  15886. _ASEOF
  15887. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  15888. ## -------------------- ##
  15889. ## M4sh Initialization. ##
  15890. ## -------------------- ##
  15891. # Be more Bourne compatible
  15892. DUALCASE=1; export DUALCASE # for MKS sh
  15893. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  15894. emulate sh
  15895. NULLCMD=:
  15896. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15897. # is contrary to our usage. Disable this feature.
  15898. alias -g '${1+"$@"}'='"$@"'
  15899. setopt NO_GLOB_SUBST
  15900. else
  15901. case `(set -o) 2>/dev/null` in #(
  15902. *posix*) :
  15903. set -o posix ;; #(
  15904. *) :
  15905. ;;
  15906. esac
  15907. fi
  15908. as_nl='
  15909. '
  15910. export as_nl
  15911. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  15912. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15913. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15914. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15915. # Prefer a ksh shell builtin over an external printf program on Solaris,
  15916. # but without wasting forks for bash or zsh.
  15917. if test -z "$BASH_VERSION$ZSH_VERSION" \
  15918. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  15919. as_echo='print -r --'
  15920. as_echo_n='print -rn --'
  15921. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15922. as_echo='printf %s\n'
  15923. as_echo_n='printf %s'
  15924. else
  15925. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15926. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15927. as_echo_n='/usr/ucb/echo -n'
  15928. else
  15929. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15930. as_echo_n_body='eval
  15931. arg=$1;
  15932. case $arg in #(
  15933. *"$as_nl"*)
  15934. expr "X$arg" : "X\\(.*\\)$as_nl";
  15935. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15936. esac;
  15937. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15938. '
  15939. export as_echo_n_body
  15940. as_echo_n='sh -c $as_echo_n_body as_echo'
  15941. fi
  15942. export as_echo_body
  15943. as_echo='sh -c $as_echo_body as_echo'
  15944. fi
  15945. # The user is always right.
  15946. if test "${PATH_SEPARATOR+set}" != set; then
  15947. PATH_SEPARATOR=:
  15948. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15949. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15950. PATH_SEPARATOR=';'
  15951. }
  15952. fi
  15953. # IFS
  15954. # We need space, tab and new line, in precisely that order. Quoting is
  15955. # there to prevent editors from complaining about space-tab.
  15956. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15957. # splitting by setting IFS to empty value.)
  15958. IFS=" "" $as_nl"
  15959. # Find who we are. Look in the path if we contain no directory separator.
  15960. as_myself=
  15961. case $0 in #((
  15962. *[\\/]* ) as_myself=$0 ;;
  15963. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15964. for as_dir in $PATH
  15965. do
  15966. IFS=$as_save_IFS
  15967. test -z "$as_dir" && as_dir=.
  15968. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15969. done
  15970. IFS=$as_save_IFS
  15971. ;;
  15972. esac
  15973. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15974. # in which case we are not to be found in the path.
  15975. if test "x$as_myself" = x; then
  15976. as_myself=$0
  15977. fi
  15978. if test ! -f "$as_myself"; then
  15979. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15980. exit 1
  15981. fi
  15982. # Unset variables that we do not need and which cause bugs (e.g. in
  15983. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  15984. # suppresses any "Segmentation fault" message there. '((' could
  15985. # trigger a bug in pdksh 5.2.14.
  15986. for as_var in BASH_ENV ENV MAIL MAILPATH
  15987. do eval test x\${$as_var+set} = xset \
  15988. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  15989. done
  15990. PS1='$ '
  15991. PS2='> '
  15992. PS4='+ '
  15993. # NLS nuisances.
  15994. LC_ALL=C
  15995. export LC_ALL
  15996. LANGUAGE=C
  15997. export LANGUAGE
  15998. # CDPATH.
  15999. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16000. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  16001. # ----------------------------------------
  16002. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  16003. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  16004. # script with STATUS, using 1 if that was 0.
  16005. as_fn_error ()
  16006. {
  16007. as_status=$1; test $as_status -eq 0 && as_status=1
  16008. if test "$4"; then
  16009. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16010. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  16011. fi
  16012. $as_echo "$as_me: error: $2" >&2
  16013. as_fn_exit $as_status
  16014. } # as_fn_error
  16015. # as_fn_set_status STATUS
  16016. # -----------------------
  16017. # Set $? to STATUS, without forking.
  16018. as_fn_set_status ()
  16019. {
  16020. return $1
  16021. } # as_fn_set_status
  16022. # as_fn_exit STATUS
  16023. # -----------------
  16024. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  16025. as_fn_exit ()
  16026. {
  16027. set +e
  16028. as_fn_set_status $1
  16029. exit $1
  16030. } # as_fn_exit
  16031. # as_fn_unset VAR
  16032. # ---------------
  16033. # Portably unset VAR.
  16034. as_fn_unset ()
  16035. {
  16036. { eval $1=; unset $1;}
  16037. }
  16038. as_unset=as_fn_unset
  16039. # as_fn_append VAR VALUE
  16040. # ----------------------
  16041. # Append the text in VALUE to the end of the definition contained in VAR. Take
  16042. # advantage of any shell optimizations that allow amortized linear growth over
  16043. # repeated appends, instead of the typical quadratic growth present in naive
  16044. # implementations.
  16045. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  16046. eval 'as_fn_append ()
  16047. {
  16048. eval $1+=\$2
  16049. }'
  16050. else
  16051. as_fn_append ()
  16052. {
  16053. eval $1=\$$1\$2
  16054. }
  16055. fi # as_fn_append
  16056. # as_fn_arith ARG...
  16057. # ------------------
  16058. # Perform arithmetic evaluation on the ARGs, and store the result in the
  16059. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  16060. # must be portable across $(()) and expr.
  16061. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  16062. eval 'as_fn_arith ()
  16063. {
  16064. as_val=$(( $* ))
  16065. }'
  16066. else
  16067. as_fn_arith ()
  16068. {
  16069. as_val=`expr "$@" || test $? -eq 1`
  16070. }
  16071. fi # as_fn_arith
  16072. if expr a : '\(a\)' >/dev/null 2>&1 &&
  16073. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  16074. as_expr=expr
  16075. else
  16076. as_expr=false
  16077. fi
  16078. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  16079. as_basename=basename
  16080. else
  16081. as_basename=false
  16082. fi
  16083. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  16084. as_dirname=dirname
  16085. else
  16086. as_dirname=false
  16087. fi
  16088. as_me=`$as_basename -- "$0" ||
  16089. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  16090. X"$0" : 'X\(//\)$' \| \
  16091. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  16092. $as_echo X/"$0" |
  16093. sed '/^.*\/\([^/][^/]*\)\/*$/{
  16094. s//\1/
  16095. q
  16096. }
  16097. /^X\/\(\/\/\)$/{
  16098. s//\1/
  16099. q
  16100. }
  16101. /^X\/\(\/\).*/{
  16102. s//\1/
  16103. q
  16104. }
  16105. s/.*/./; q'`
  16106. # Avoid depending upon Character Ranges.
  16107. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  16108. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  16109. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  16110. as_cr_digits='0123456789'
  16111. as_cr_alnum=$as_cr_Letters$as_cr_digits
  16112. ECHO_C= ECHO_N= ECHO_T=
  16113. case `echo -n x` in #(((((
  16114. -n*)
  16115. case `echo 'xy\c'` in
  16116. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  16117. xy) ECHO_C='\c';;
  16118. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  16119. ECHO_T=' ';;
  16120. esac;;
  16121. *)
  16122. ECHO_N='-n';;
  16123. esac
  16124. rm -f conf$$ conf$$.exe conf$$.file
  16125. if test -d conf$$.dir; then
  16126. rm -f conf$$.dir/conf$$.file
  16127. else
  16128. rm -f conf$$.dir
  16129. mkdir conf$$.dir 2>/dev/null
  16130. fi
  16131. if (echo >conf$$.file) 2>/dev/null; then
  16132. if ln -s conf$$.file conf$$ 2>/dev/null; then
  16133. as_ln_s='ln -s'
  16134. # ... but there are two gotchas:
  16135. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  16136. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  16137. # In both cases, we have to default to `cp -pR'.
  16138. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  16139. as_ln_s='cp -pR'
  16140. elif ln conf$$.file conf$$ 2>/dev/null; then
  16141. as_ln_s=ln
  16142. else
  16143. as_ln_s='cp -pR'
  16144. fi
  16145. else
  16146. as_ln_s='cp -pR'
  16147. fi
  16148. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  16149. rmdir conf$$.dir 2>/dev/null
  16150. # as_fn_mkdir_p
  16151. # -------------
  16152. # Create "$as_dir" as a directory, including parents if necessary.
  16153. as_fn_mkdir_p ()
  16154. {
  16155. case $as_dir in #(
  16156. -*) as_dir=./$as_dir;;
  16157. esac
  16158. test -d "$as_dir" || eval $as_mkdir_p || {
  16159. as_dirs=
  16160. while :; do
  16161. case $as_dir in #(
  16162. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  16163. *) as_qdir=$as_dir;;
  16164. esac
  16165. as_dirs="'$as_qdir' $as_dirs"
  16166. as_dir=`$as_dirname -- "$as_dir" ||
  16167. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16168. X"$as_dir" : 'X\(//\)[^/]' \| \
  16169. X"$as_dir" : 'X\(//\)$' \| \
  16170. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  16171. $as_echo X"$as_dir" |
  16172. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16173. s//\1/
  16174. q
  16175. }
  16176. /^X\(\/\/\)[^/].*/{
  16177. s//\1/
  16178. q
  16179. }
  16180. /^X\(\/\/\)$/{
  16181. s//\1/
  16182. q
  16183. }
  16184. /^X\(\/\).*/{
  16185. s//\1/
  16186. q
  16187. }
  16188. s/.*/./; q'`
  16189. test -d "$as_dir" && break
  16190. done
  16191. test -z "$as_dirs" || eval "mkdir $as_dirs"
  16192. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  16193. } # as_fn_mkdir_p
  16194. if mkdir -p . 2>/dev/null; then
  16195. as_mkdir_p='mkdir -p "$as_dir"'
  16196. else
  16197. test -d ./-p && rmdir ./-p
  16198. as_mkdir_p=false
  16199. fi
  16200. # as_fn_executable_p FILE
  16201. # -----------------------
  16202. # Test if FILE is an executable regular file.
  16203. as_fn_executable_p ()
  16204. {
  16205. test -f "$1" && test -x "$1"
  16206. } # as_fn_executable_p
  16207. as_test_x='test -x'
  16208. as_executable_p=as_fn_executable_p
  16209. # Sed expression to map a string onto a valid CPP name.
  16210. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  16211. # Sed expression to map a string onto a valid variable name.
  16212. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  16213. exec 6>&1
  16214. ## ----------------------------------- ##
  16215. ## Main body of $CONFIG_STATUS script. ##
  16216. ## ----------------------------------- ##
  16217. _ASEOF
  16218. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  16219. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16220. # Save the log message, to keep $0 and so on meaningful, and to
  16221. # report actual input values of CONFIG_FILES etc. instead of their
  16222. # values after options handling.
  16223. ac_log="
  16224. This file was extended by REDUCE $as_me from SourceForge, which was
  16225. generated by GNU Autoconf 2.69. Invocation command line was
  16226. CONFIG_FILES = $CONFIG_FILES
  16227. CONFIG_HEADERS = $CONFIG_HEADERS
  16228. CONFIG_LINKS = $CONFIG_LINKS
  16229. CONFIG_COMMANDS = $CONFIG_COMMANDS
  16230. $ $0 $@
  16231. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  16232. "
  16233. _ACEOF
  16234. case $ac_config_files in *"
  16235. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  16236. esac
  16237. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16238. # Files that config.status was made for.
  16239. config_files="$ac_config_files"
  16240. config_commands="$ac_config_commands"
  16241. _ACEOF
  16242. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16243. ac_cs_usage="\
  16244. \`$as_me' instantiates files and other configuration actions
  16245. from templates according to the current configuration. Unless the files
  16246. and actions are specified as TAGs, all are instantiated by default.
  16247. Usage: $0 [OPTION]... [TAG]...
  16248. -h, --help print this help, then exit
  16249. -V, --version print version number and configuration settings, then exit
  16250. --config print configuration, then exit
  16251. -q, --quiet, --silent
  16252. do not print progress messages
  16253. -d, --debug don't remove temporary files
  16254. --recheck update $as_me by reconfiguring in the same conditions
  16255. --file=FILE[:TEMPLATE]
  16256. instantiate the configuration file FILE
  16257. Configuration files:
  16258. $config_files
  16259. Configuration commands:
  16260. $config_commands
  16261. Report bugs to <acn1@cam.ac.uk>."
  16262. _ACEOF
  16263. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16264. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  16265. ac_cs_version="\\
  16266. REDUCE config.status from SourceForge
  16267. configured by $0, generated by GNU Autoconf 2.69,
  16268. with options \\"\$ac_cs_config\\"
  16269. Copyright (C) 2012 Free Software Foundation, Inc.
  16270. This config.status script is free software; the Free Software Foundation
  16271. gives unlimited permission to copy, distribute and modify it."
  16272. ac_pwd='$ac_pwd'
  16273. srcdir='$srcdir'
  16274. INSTALL='$INSTALL'
  16275. MKDIR_P='$MKDIR_P'
  16276. AWK='$AWK'
  16277. test -n "\$AWK" || AWK=awk
  16278. _ACEOF
  16279. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16280. # The default lists apply if the user does not specify any file.
  16281. ac_need_defaults=:
  16282. while test $# != 0
  16283. do
  16284. case $1 in
  16285. --*=?*)
  16286. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16287. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  16288. ac_shift=:
  16289. ;;
  16290. --*=)
  16291. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16292. ac_optarg=
  16293. ac_shift=:
  16294. ;;
  16295. *)
  16296. ac_option=$1
  16297. ac_optarg=$2
  16298. ac_shift=shift
  16299. ;;
  16300. esac
  16301. case $ac_option in
  16302. # Handling of the options.
  16303. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  16304. ac_cs_recheck=: ;;
  16305. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  16306. $as_echo "$ac_cs_version"; exit ;;
  16307. --config | --confi | --conf | --con | --co | --c )
  16308. $as_echo "$ac_cs_config"; exit ;;
  16309. --debug | --debu | --deb | --de | --d | -d )
  16310. debug=: ;;
  16311. --file | --fil | --fi | --f )
  16312. $ac_shift
  16313. case $ac_optarg in
  16314. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16315. '') as_fn_error $? "missing file argument" ;;
  16316. esac
  16317. as_fn_append CONFIG_FILES " '$ac_optarg'"
  16318. ac_need_defaults=false;;
  16319. --he | --h | --help | --hel | -h )
  16320. $as_echo "$ac_cs_usage"; exit ;;
  16321. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  16322. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  16323. ac_cs_silent=: ;;
  16324. # This is an error.
  16325. -*) as_fn_error $? "unrecognized option: \`$1'
  16326. Try \`$0 --help' for more information." ;;
  16327. *) as_fn_append ac_config_targets " $1"
  16328. ac_need_defaults=false ;;
  16329. esac
  16330. shift
  16331. done
  16332. ac_configure_extra_args=
  16333. if $ac_cs_silent; then
  16334. exec 6>/dev/null
  16335. ac_configure_extra_args="$ac_configure_extra_args --silent"
  16336. fi
  16337. _ACEOF
  16338. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16339. if \$ac_cs_recheck; then
  16340. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  16341. shift
  16342. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  16343. CONFIG_SHELL='$SHELL'
  16344. export CONFIG_SHELL
  16345. exec "\$@"
  16346. fi
  16347. _ACEOF
  16348. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16349. exec 5>>config.log
  16350. {
  16351. echo
  16352. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  16353. ## Running $as_me. ##
  16354. _ASBOX
  16355. $as_echo "$ac_log"
  16356. } >&5
  16357. _ACEOF
  16358. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16359. #
  16360. # INIT-COMMANDS
  16361. #
  16362. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  16363. # The HP-UX ksh and POSIX shell print the target directory to stdout
  16364. # if CDPATH is set.
  16365. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16366. sed_quote_subst='$sed_quote_subst'
  16367. double_quote_subst='$double_quote_subst'
  16368. delay_variable_subst='$delay_variable_subst'
  16369. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  16370. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  16371. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  16372. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  16373. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  16374. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  16375. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  16376. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  16377. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  16378. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  16379. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  16380. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  16381. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  16382. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  16383. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  16384. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  16385. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  16386. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  16387. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  16388. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  16389. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  16390. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  16391. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  16392. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  16393. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  16394. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  16395. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  16396. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  16397. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  16398. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  16399. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  16400. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  16401. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  16402. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  16403. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  16404. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  16405. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  16406. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  16407. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  16408. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  16409. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  16410. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  16411. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  16412. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  16413. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  16414. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  16415. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16416. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16417. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  16418. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  16419. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  16420. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  16421. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  16422. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  16423. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  16424. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  16425. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  16426. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  16427. 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"`'
  16428. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  16429. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  16430. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  16431. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  16432. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  16433. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  16434. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  16435. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  16436. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  16437. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  16438. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  16439. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  16440. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  16441. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  16442. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  16443. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  16444. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  16445. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  16446. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  16447. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  16448. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16449. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  16450. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  16451. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  16452. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  16453. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  16454. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  16455. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16456. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  16457. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16458. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  16459. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16460. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  16461. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16462. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16463. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  16464. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  16465. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  16466. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  16467. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  16468. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16469. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  16470. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  16471. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  16472. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  16473. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  16474. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  16475. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  16476. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  16477. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  16478. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  16479. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  16480. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  16481. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  16482. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  16483. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  16484. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16485. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  16486. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  16487. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  16488. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  16489. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  16490. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16491. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16492. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  16493. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  16494. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  16495. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  16496. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  16497. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  16498. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  16499. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  16500. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  16501. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  16502. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  16503. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  16504. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  16505. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  16506. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  16507. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  16508. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  16509. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  16510. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  16511. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16512. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16513. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16514. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  16515. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  16516. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16517. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  16518. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  16519. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  16520. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  16521. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  16522. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  16523. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16524. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16525. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  16526. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16527. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16528. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16529. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16530. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16531. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16532. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  16533. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16534. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16535. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16536. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  16537. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  16538. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  16539. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  16540. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  16541. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  16542. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  16543. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  16544. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  16545. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16546. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  16547. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  16548. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16549. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16550. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16551. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  16552. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  16553. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  16554. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  16555. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  16556. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  16557. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  16558. LTCC='$LTCC'
  16559. LTCFLAGS='$LTCFLAGS'
  16560. compiler='$compiler_DEFAULT'
  16561. # A function that is used when there is no print builtin or printf.
  16562. func_fallback_echo ()
  16563. {
  16564. eval 'cat <<_LTECHO_EOF
  16565. \$1
  16566. _LTECHO_EOF'
  16567. }
  16568. # Quote evaled strings.
  16569. for var in SHELL \
  16570. ECHO \
  16571. PATH_SEPARATOR \
  16572. SED \
  16573. GREP \
  16574. EGREP \
  16575. FGREP \
  16576. LD \
  16577. NM \
  16578. LN_S \
  16579. lt_SP2NL \
  16580. lt_NL2SP \
  16581. reload_flag \
  16582. OBJDUMP \
  16583. deplibs_check_method \
  16584. file_magic_cmd \
  16585. file_magic_glob \
  16586. want_nocaseglob \
  16587. DLLTOOL \
  16588. sharedlib_from_linklib_cmd \
  16589. AR \
  16590. AR_FLAGS \
  16591. archiver_list_spec \
  16592. STRIP \
  16593. RANLIB \
  16594. CC \
  16595. CFLAGS \
  16596. compiler \
  16597. lt_cv_sys_global_symbol_pipe \
  16598. lt_cv_sys_global_symbol_to_cdecl \
  16599. lt_cv_sys_global_symbol_to_import \
  16600. lt_cv_sys_global_symbol_to_c_name_address \
  16601. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  16602. lt_cv_nm_interface \
  16603. nm_file_list_spec \
  16604. lt_cv_truncate_bin \
  16605. lt_prog_compiler_no_builtin_flag \
  16606. lt_prog_compiler_pic \
  16607. lt_prog_compiler_wl \
  16608. lt_prog_compiler_static \
  16609. lt_cv_prog_compiler_c_o \
  16610. need_locks \
  16611. MANIFEST_TOOL \
  16612. DSYMUTIL \
  16613. NMEDIT \
  16614. LIPO \
  16615. OTOOL \
  16616. OTOOL64 \
  16617. shrext_cmds \
  16618. export_dynamic_flag_spec \
  16619. whole_archive_flag_spec \
  16620. compiler_needs_object \
  16621. with_gnu_ld \
  16622. allow_undefined_flag \
  16623. no_undefined_flag \
  16624. hardcode_libdir_flag_spec \
  16625. hardcode_libdir_separator \
  16626. exclude_expsyms \
  16627. include_expsyms \
  16628. file_list_spec \
  16629. variables_saved_for_relink \
  16630. libname_spec \
  16631. library_names_spec \
  16632. soname_spec \
  16633. install_override_mode \
  16634. finish_eval \
  16635. old_striplib \
  16636. striplib \
  16637. compiler_lib_search_dirs \
  16638. predep_objects \
  16639. postdep_objects \
  16640. predeps \
  16641. postdeps \
  16642. compiler_lib_search_path \
  16643. LD_CXX \
  16644. reload_flag_CXX \
  16645. compiler_CXX \
  16646. lt_prog_compiler_no_builtin_flag_CXX \
  16647. lt_prog_compiler_pic_CXX \
  16648. lt_prog_compiler_wl_CXX \
  16649. lt_prog_compiler_static_CXX \
  16650. lt_cv_prog_compiler_c_o_CXX \
  16651. export_dynamic_flag_spec_CXX \
  16652. whole_archive_flag_spec_CXX \
  16653. compiler_needs_object_CXX \
  16654. with_gnu_ld_CXX \
  16655. allow_undefined_flag_CXX \
  16656. no_undefined_flag_CXX \
  16657. hardcode_libdir_flag_spec_CXX \
  16658. hardcode_libdir_separator_CXX \
  16659. exclude_expsyms_CXX \
  16660. include_expsyms_CXX \
  16661. file_list_spec_CXX \
  16662. compiler_lib_search_dirs_CXX \
  16663. predep_objects_CXX \
  16664. postdep_objects_CXX \
  16665. predeps_CXX \
  16666. postdeps_CXX \
  16667. compiler_lib_search_path_CXX; do
  16668. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16669. *[\\\\\\\`\\"\\\$]*)
  16670. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  16671. ;;
  16672. *)
  16673. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16674. ;;
  16675. esac
  16676. done
  16677. # Double-quote double-evaled strings.
  16678. for var in reload_cmds \
  16679. old_postinstall_cmds \
  16680. old_postuninstall_cmds \
  16681. old_archive_cmds \
  16682. extract_expsyms_cmds \
  16683. old_archive_from_new_cmds \
  16684. old_archive_from_expsyms_cmds \
  16685. archive_cmds \
  16686. archive_expsym_cmds \
  16687. module_cmds \
  16688. module_expsym_cmds \
  16689. export_symbols_cmds \
  16690. prelink_cmds \
  16691. postlink_cmds \
  16692. postinstall_cmds \
  16693. postuninstall_cmds \
  16694. finish_cmds \
  16695. sys_lib_search_path_spec \
  16696. configure_time_dlsearch_path \
  16697. configure_time_lt_sys_library_path \
  16698. reload_cmds_CXX \
  16699. old_archive_cmds_CXX \
  16700. old_archive_from_new_cmds_CXX \
  16701. old_archive_from_expsyms_cmds_CXX \
  16702. archive_cmds_CXX \
  16703. archive_expsym_cmds_CXX \
  16704. module_cmds_CXX \
  16705. module_expsym_cmds_CXX \
  16706. export_symbols_cmds_CXX \
  16707. prelink_cmds_CXX \
  16708. postlink_cmds_CXX; do
  16709. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16710. *[\\\\\\\`\\"\\\$]*)
  16711. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  16712. ;;
  16713. *)
  16714. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16715. ;;
  16716. esac
  16717. done
  16718. ac_aux_dir='$ac_aux_dir'
  16719. # See if we are running on zsh, and set the options that allow our
  16720. # commands through without removal of \ escapes INIT.
  16721. if test -n "\${ZSH_VERSION+set}"; then
  16722. setopt NO_GLOB_SUBST
  16723. fi
  16724. PACKAGE='$PACKAGE'
  16725. VERSION='$VERSION'
  16726. RM='$RM'
  16727. ofile='$ofile'
  16728. _ACEOF
  16729. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16730. # Handling of arguments.
  16731. for ac_config_target in $ac_config_targets
  16732. do
  16733. case $ac_config_target in
  16734. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  16735. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  16736. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16737. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  16738. esac
  16739. done
  16740. # If the user did not use the arguments to specify the items to instantiate,
  16741. # then the envvar interface is used. Set only those that are not.
  16742. # We use the long form for the default assignment because of an extremely
  16743. # bizarre bug on SunOS 4.1.3.
  16744. if $ac_need_defaults; then
  16745. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  16746. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  16747. fi
  16748. # Have a temporary directory for convenience. Make it in the build tree
  16749. # simply because there is no reason against having it here, and in addition,
  16750. # creating and moving files from /tmp can sometimes cause problems.
  16751. # Hook for its removal unless debugging.
  16752. # Note that there is a small window in which the directory will not be cleaned:
  16753. # after its creation but before its name has been assigned to `$tmp'.
  16754. $debug ||
  16755. {
  16756. tmp= ac_tmp=
  16757. trap 'exit_status=$?
  16758. : "${ac_tmp:=$tmp}"
  16759. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  16760. ' 0
  16761. trap 'as_fn_exit 1' 1 2 13 15
  16762. }
  16763. # Create a (secure) tmp directory for tmp files.
  16764. {
  16765. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  16766. test -d "$tmp"
  16767. } ||
  16768. {
  16769. tmp=./conf$$-$RANDOM
  16770. (umask 077 && mkdir "$tmp")
  16771. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  16772. ac_tmp=$tmp
  16773. # Set up the scripts for CONFIG_FILES section.
  16774. # No need to generate them if there are no CONFIG_FILES.
  16775. # This happens for instance with `./config.status config.h'.
  16776. if test -n "$CONFIG_FILES"; then
  16777. ac_cr=`echo X | tr X '\015'`
  16778. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  16779. # But we know of no other shell where ac_cr would be empty at this
  16780. # point, so we can use a bashism as a fallback.
  16781. if test "x$ac_cr" = x; then
  16782. eval ac_cr=\$\'\\r\'
  16783. fi
  16784. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  16785. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  16786. ac_cs_awk_cr='\\r'
  16787. else
  16788. ac_cs_awk_cr=$ac_cr
  16789. fi
  16790. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  16791. _ACEOF
  16792. {
  16793. echo "cat >conf$$subs.awk <<_ACEOF" &&
  16794. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  16795. echo "_ACEOF"
  16796. } >conf$$subs.sh ||
  16797. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16798. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  16799. ac_delim='%!_!# '
  16800. for ac_last_try in false false false false false :; do
  16801. . ./conf$$subs.sh ||
  16802. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16803. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  16804. if test $ac_delim_n = $ac_delim_num; then
  16805. break
  16806. elif $ac_last_try; then
  16807. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16808. else
  16809. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16810. fi
  16811. done
  16812. rm -f conf$$subs.sh
  16813. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16814. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  16815. _ACEOF
  16816. sed -n '
  16817. h
  16818. s/^/S["/; s/!.*/"]=/
  16819. p
  16820. g
  16821. s/^[^!]*!//
  16822. :repl
  16823. t repl
  16824. s/'"$ac_delim"'$//
  16825. t delim
  16826. :nl
  16827. h
  16828. s/\(.\{148\}\)..*/\1/
  16829. t more1
  16830. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  16831. p
  16832. n
  16833. b repl
  16834. :more1
  16835. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16836. p
  16837. g
  16838. s/.\{148\}//
  16839. t nl
  16840. :delim
  16841. h
  16842. s/\(.\{148\}\)..*/\1/
  16843. t more2
  16844. s/["\\]/\\&/g; s/^/"/; s/$/"/
  16845. p
  16846. b
  16847. :more2
  16848. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16849. p
  16850. g
  16851. s/.\{148\}//
  16852. t delim
  16853. ' <conf$$subs.awk | sed '
  16854. /^[^""]/{
  16855. N
  16856. s/\n//
  16857. }
  16858. ' >>$CONFIG_STATUS || ac_write_fail=1
  16859. rm -f conf$$subs.awk
  16860. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16861. _ACAWK
  16862. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  16863. for (key in S) S_is_set[key] = 1
  16864. FS = ""
  16865. }
  16866. {
  16867. line = $ 0
  16868. nfields = split(line, field, "@")
  16869. substed = 0
  16870. len = length(field[1])
  16871. for (i = 2; i < nfields; i++) {
  16872. key = field[i]
  16873. keylen = length(key)
  16874. if (S_is_set[key]) {
  16875. value = S[key]
  16876. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  16877. len += length(value) + length(field[++i])
  16878. substed = 1
  16879. } else
  16880. len += 1 + keylen
  16881. }
  16882. print line
  16883. }
  16884. _ACAWK
  16885. _ACEOF
  16886. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16887. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  16888. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  16889. else
  16890. cat
  16891. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  16892. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  16893. _ACEOF
  16894. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  16895. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  16896. # trailing colons and then remove the whole line if VPATH becomes empty
  16897. # (actually we leave an empty line to preserve line numbers).
  16898. if test "x$srcdir" = x.; then
  16899. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  16900. h
  16901. s///
  16902. s/^/:/
  16903. s/[ ]*$/:/
  16904. s/:\$(srcdir):/:/g
  16905. s/:\${srcdir}:/:/g
  16906. s/:@srcdir@:/:/g
  16907. s/^:*//
  16908. s/:*$//
  16909. x
  16910. s/\(=[ ]*\).*/\1/
  16911. G
  16912. s/\n//
  16913. s/^[^=]*=[ ]*$//
  16914. }'
  16915. fi
  16916. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16917. fi # test -n "$CONFIG_FILES"
  16918. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  16919. shift
  16920. for ac_tag
  16921. do
  16922. case $ac_tag in
  16923. :[FHLC]) ac_mode=$ac_tag; continue;;
  16924. esac
  16925. case $ac_mode$ac_tag in
  16926. :[FHL]*:*);;
  16927. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  16928. :[FH]-) ac_tag=-:-;;
  16929. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  16930. esac
  16931. ac_save_IFS=$IFS
  16932. IFS=:
  16933. set x $ac_tag
  16934. IFS=$ac_save_IFS
  16935. shift
  16936. ac_file=$1
  16937. shift
  16938. case $ac_mode in
  16939. :L) ac_source=$1;;
  16940. :[FH])
  16941. ac_file_inputs=
  16942. for ac_f
  16943. do
  16944. case $ac_f in
  16945. -) ac_f="$ac_tmp/stdin";;
  16946. *) # Look for the file first in the build tree, then in the source tree
  16947. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16948. # because $ac_f cannot contain `:'.
  16949. test -f "$ac_f" ||
  16950. case $ac_f in
  16951. [\\/$]*) false;;
  16952. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16953. esac ||
  16954. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  16955. esac
  16956. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16957. as_fn_append ac_file_inputs " '$ac_f'"
  16958. done
  16959. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16960. # use $as_me), people would be surprised to read:
  16961. # /* config.h. Generated by config.status. */
  16962. configure_input='Generated from '`
  16963. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16964. `' by configure.'
  16965. if test x"$ac_file" != x-; then
  16966. configure_input="$ac_file. $configure_input"
  16967. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  16968. $as_echo "$as_me: creating $ac_file" >&6;}
  16969. fi
  16970. # Neutralize special characters interpreted by sed in replacement strings.
  16971. case $configure_input in #(
  16972. *\&* | *\|* | *\\* )
  16973. ac_sed_conf_input=`$as_echo "$configure_input" |
  16974. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16975. *) ac_sed_conf_input=$configure_input;;
  16976. esac
  16977. case $ac_tag in
  16978. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  16979. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  16980. esac
  16981. ;;
  16982. esac
  16983. ac_dir=`$as_dirname -- "$ac_file" ||
  16984. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16985. X"$ac_file" : 'X\(//\)[^/]' \| \
  16986. X"$ac_file" : 'X\(//\)$' \| \
  16987. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16988. $as_echo X"$ac_file" |
  16989. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16990. s//\1/
  16991. q
  16992. }
  16993. /^X\(\/\/\)[^/].*/{
  16994. s//\1/
  16995. q
  16996. }
  16997. /^X\(\/\/\)$/{
  16998. s//\1/
  16999. q
  17000. }
  17001. /^X\(\/\).*/{
  17002. s//\1/
  17003. q
  17004. }
  17005. s/.*/./; q'`
  17006. as_dir="$ac_dir"; as_fn_mkdir_p
  17007. ac_builddir=.
  17008. case "$ac_dir" in
  17009. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17010. *)
  17011. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  17012. # A ".." for each directory in $ac_dir_suffix.
  17013. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  17014. case $ac_top_builddir_sub in
  17015. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17016. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  17017. esac ;;
  17018. esac
  17019. ac_abs_top_builddir=$ac_pwd
  17020. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  17021. # for backward compatibility:
  17022. ac_top_builddir=$ac_top_build_prefix
  17023. case $srcdir in
  17024. .) # We are building in place.
  17025. ac_srcdir=.
  17026. ac_top_srcdir=$ac_top_builddir_sub
  17027. ac_abs_top_srcdir=$ac_pwd ;;
  17028. [\\/]* | ?:[\\/]* ) # Absolute name.
  17029. ac_srcdir=$srcdir$ac_dir_suffix;
  17030. ac_top_srcdir=$srcdir
  17031. ac_abs_top_srcdir=$srcdir ;;
  17032. *) # Relative name.
  17033. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  17034. ac_top_srcdir=$ac_top_build_prefix$srcdir
  17035. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  17036. esac
  17037. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  17038. case $ac_mode in
  17039. :F)
  17040. #
  17041. # CONFIG_FILE
  17042. #
  17043. case $INSTALL in
  17044. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  17045. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  17046. esac
  17047. ac_MKDIR_P=$MKDIR_P
  17048. case $MKDIR_P in
  17049. [\\/$]* | ?:[\\/]* ) ;;
  17050. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  17051. esac
  17052. _ACEOF
  17053. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17054. # If the template does not know about datarootdir, expand it.
  17055. # FIXME: This hack should be removed a few years after 2.60.
  17056. ac_datarootdir_hack=; ac_datarootdir_seen=
  17057. ac_sed_dataroot='
  17058. /datarootdir/ {
  17059. p
  17060. q
  17061. }
  17062. /@datadir@/p
  17063. /@docdir@/p
  17064. /@infodir@/p
  17065. /@localedir@/p
  17066. /@mandir@/p'
  17067. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  17068. *datarootdir*) ac_datarootdir_seen=yes;;
  17069. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  17070. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  17071. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  17072. _ACEOF
  17073. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17074. ac_datarootdir_hack='
  17075. s&@datadir@&$datadir&g
  17076. s&@docdir@&$docdir&g
  17077. s&@infodir@&$infodir&g
  17078. s&@localedir@&$localedir&g
  17079. s&@mandir@&$mandir&g
  17080. s&\\\${datarootdir}&$datarootdir&g' ;;
  17081. esac
  17082. _ACEOF
  17083. # Neutralize VPATH when `$srcdir' = `.'.
  17084. # Shell code in configure.ac might set extrasub.
  17085. # FIXME: do we really want to maintain this feature?
  17086. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17087. ac_sed_extra="$ac_vpsub
  17088. $extrasub
  17089. _ACEOF
  17090. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17091. :t
  17092. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  17093. s|@configure_input@|$ac_sed_conf_input|;t t
  17094. s&@top_builddir@&$ac_top_builddir_sub&;t t
  17095. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  17096. s&@srcdir@&$ac_srcdir&;t t
  17097. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  17098. s&@top_srcdir@&$ac_top_srcdir&;t t
  17099. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  17100. s&@builddir@&$ac_builddir&;t t
  17101. s&@abs_builddir@&$ac_abs_builddir&;t t
  17102. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  17103. s&@INSTALL@&$ac_INSTALL&;t t
  17104. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  17105. $ac_datarootdir_hack
  17106. "
  17107. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  17108. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17109. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  17110. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  17111. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  17112. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  17113. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17114. which seems to be undefined. Please make sure it is defined" >&5
  17115. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17116. which seems to be undefined. Please make sure it is defined" >&2;}
  17117. rm -f "$ac_tmp/stdin"
  17118. case $ac_file in
  17119. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  17120. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  17121. esac \
  17122. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17123. ;;
  17124. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  17125. $as_echo "$as_me: executing $ac_file commands" >&6;}
  17126. ;;
  17127. esac
  17128. case $ac_file$ac_mode in
  17129. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  17130. # Older Autoconf quotes --file arguments for eval, but not when files
  17131. # are listed without --file. Let's play safe and only enable the eval
  17132. # if we detect the quoting.
  17133. case $CONFIG_FILES in
  17134. *\'*) eval set x "$CONFIG_FILES" ;;
  17135. *) set x $CONFIG_FILES ;;
  17136. esac
  17137. shift
  17138. for mf
  17139. do
  17140. # Strip MF so we end up with the name of the file.
  17141. mf=`echo "$mf" | sed -e 's/:.*$//'`
  17142. # Check whether this is an Automake generated Makefile or not.
  17143. # We used to match only the files named 'Makefile.in', but
  17144. # some people rename them; so instead we look at the file content.
  17145. # Grep'ing the first line is not enough: some people post-process
  17146. # each Makefile.in and add a new line on top of each file to say so.
  17147. # Grep'ing the whole file is not good either: AIX grep has a line
  17148. # limit of 2048, but all sed's we know have understand at least 4000.
  17149. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  17150. dirpart=`$as_dirname -- "$mf" ||
  17151. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17152. X"$mf" : 'X\(//\)[^/]' \| \
  17153. X"$mf" : 'X\(//\)$' \| \
  17154. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  17155. $as_echo X"$mf" |
  17156. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17157. s//\1/
  17158. q
  17159. }
  17160. /^X\(\/\/\)[^/].*/{
  17161. s//\1/
  17162. q
  17163. }
  17164. /^X\(\/\/\)$/{
  17165. s//\1/
  17166. q
  17167. }
  17168. /^X\(\/\).*/{
  17169. s//\1/
  17170. q
  17171. }
  17172. s/.*/./; q'`
  17173. else
  17174. continue
  17175. fi
  17176. # Extract the definition of DEPDIR, am__include, and am__quote
  17177. # from the Makefile without running 'make'.
  17178. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  17179. test -z "$DEPDIR" && continue
  17180. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  17181. test -z "$am__include" && continue
  17182. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  17183. # Find all dependency output files, they are included files with
  17184. # $(DEPDIR) in their names. We invoke sed twice because it is the
  17185. # simplest approach to changing $(DEPDIR) to its actual value in the
  17186. # expansion.
  17187. for file in `sed -n "
  17188. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  17189. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  17190. # Make sure the directory exists.
  17191. test -f "$dirpart/$file" && continue
  17192. fdir=`$as_dirname -- "$file" ||
  17193. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17194. X"$file" : 'X\(//\)[^/]' \| \
  17195. X"$file" : 'X\(//\)$' \| \
  17196. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  17197. $as_echo X"$file" |
  17198. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17199. s//\1/
  17200. q
  17201. }
  17202. /^X\(\/\/\)[^/].*/{
  17203. s//\1/
  17204. q
  17205. }
  17206. /^X\(\/\/\)$/{
  17207. s//\1/
  17208. q
  17209. }
  17210. /^X\(\/\).*/{
  17211. s//\1/
  17212. q
  17213. }
  17214. s/.*/./; q'`
  17215. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  17216. # echo "creating $dirpart/$file"
  17217. echo '# dummy' > "$dirpart/$file"
  17218. done
  17219. done
  17220. }
  17221. ;;
  17222. "libtool":C)
  17223. # See if we are running on zsh, and set the options that allow our
  17224. # commands through without removal of \ escapes.
  17225. if test -n "${ZSH_VERSION+set}"; then
  17226. setopt NO_GLOB_SUBST
  17227. fi
  17228. cfgfile=${ofile}T
  17229. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  17230. $RM "$cfgfile"
  17231. cat <<_LT_EOF >> "$cfgfile"
  17232. #! $SHELL
  17233. # Generated automatically by $as_me ($PACKAGE) $VERSION
  17234. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  17235. # Provide generalized library-building support services.
  17236. # Written by Gordon Matzigkeit, 1996
  17237. # Copyright (C) 2014 Free Software Foundation, Inc.
  17238. # This is free software; see the source for copying conditions. There is NO
  17239. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  17240. # GNU Libtool is free software; you can redistribute it and/or modify
  17241. # it under the terms of the GNU General Public License as published by
  17242. # the Free Software Foundation; either version 2 of of the License, or
  17243. # (at your option) any later version.
  17244. #
  17245. # As a special exception to the GNU General Public License, if you
  17246. # distribute this file as part of a program or library that is built
  17247. # using GNU Libtool, you may include this file under the same
  17248. # distribution terms that you use for the rest of that program.
  17249. #
  17250. # GNU Libtool is distributed in the hope that it will be useful, but
  17251. # WITHOUT ANY WARRANTY; without even the implied warranty of
  17252. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17253. # GNU General Public License for more details.
  17254. #
  17255. # You should have received a copy of the GNU General Public License
  17256. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  17257. # The names of the tagged configurations supported by this script.
  17258. available_tags='CXX '
  17259. # Configured defaults for sys_lib_dlsearch_path munging.
  17260. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  17261. # ### BEGIN LIBTOOL CONFIG
  17262. # Which release of libtool.m4 was used?
  17263. macro_version=$macro_version
  17264. macro_revision=$macro_revision
  17265. # Whether or not to build shared libraries.
  17266. build_libtool_libs=$enable_shared
  17267. # Whether or not to build static libraries.
  17268. build_old_libs=$enable_static
  17269. # What type of objects to build.
  17270. pic_mode=$pic_mode
  17271. # Whether or not to optimize for fast installation.
  17272. fast_install=$enable_fast_install
  17273. # Shared archive member basename,for filename based shared library versioning on AIX.
  17274. shared_archive_member_spec=$shared_archive_member_spec
  17275. # Shell to use when invoking shell scripts.
  17276. SHELL=$lt_SHELL
  17277. # An echo program that protects backslashes.
  17278. ECHO=$lt_ECHO
  17279. # The PATH separator for the build system.
  17280. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  17281. # The host system.
  17282. host_alias=$host_alias
  17283. host=$host
  17284. host_os=$host_os
  17285. # The build system.
  17286. build_alias=$build_alias
  17287. build=$build
  17288. build_os=$build_os
  17289. # A sed program that does not truncate output.
  17290. SED=$lt_SED
  17291. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  17292. Xsed="\$SED -e 1s/^X//"
  17293. # A grep program that handles long lines.
  17294. GREP=$lt_GREP
  17295. # An ERE matcher.
  17296. EGREP=$lt_EGREP
  17297. # A literal string matcher.
  17298. FGREP=$lt_FGREP
  17299. # A BSD- or MS-compatible name lister.
  17300. NM=$lt_NM
  17301. # Whether we need soft or hard links.
  17302. LN_S=$lt_LN_S
  17303. # What is the maximum length of a command?
  17304. max_cmd_len=$max_cmd_len
  17305. # Object file suffix (normally "o").
  17306. objext=$ac_objext
  17307. # Executable file suffix (normally "").
  17308. exeext=$exeext
  17309. # whether the shell understands "unset".
  17310. lt_unset=$lt_unset
  17311. # turn spaces into newlines.
  17312. SP2NL=$lt_lt_SP2NL
  17313. # turn newlines into spaces.
  17314. NL2SP=$lt_lt_NL2SP
  17315. # convert \$build file names to \$host format.
  17316. to_host_file_cmd=$lt_cv_to_host_file_cmd
  17317. # convert \$build files to toolchain format.
  17318. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  17319. # An object symbol dumper.
  17320. OBJDUMP=$lt_OBJDUMP
  17321. # Method to check whether dependent libraries are shared objects.
  17322. deplibs_check_method=$lt_deplibs_check_method
  17323. # Command to use when deplibs_check_method = "file_magic".
  17324. file_magic_cmd=$lt_file_magic_cmd
  17325. # How to find potential files when deplibs_check_method = "file_magic".
  17326. file_magic_glob=$lt_file_magic_glob
  17327. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  17328. want_nocaseglob=$lt_want_nocaseglob
  17329. # DLL creation program.
  17330. DLLTOOL=$lt_DLLTOOL
  17331. # Command to associate shared and link libraries.
  17332. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  17333. # The archiver.
  17334. AR=$lt_AR
  17335. # Flags to create an archive.
  17336. AR_FLAGS=$lt_AR_FLAGS
  17337. # How to feed a file listing to the archiver.
  17338. archiver_list_spec=$lt_archiver_list_spec
  17339. # A symbol stripping program.
  17340. STRIP=$lt_STRIP
  17341. # Commands used to install an old-style archive.
  17342. RANLIB=$lt_RANLIB
  17343. old_postinstall_cmds=$lt_old_postinstall_cmds
  17344. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17345. # Whether to use a lock for old archive extraction.
  17346. lock_old_archive_extraction=$lock_old_archive_extraction
  17347. # A C compiler.
  17348. LTCC=$lt_CC
  17349. # LTCC compiler flags.
  17350. LTCFLAGS=$lt_CFLAGS
  17351. # Take the output of nm and produce a listing of raw symbols and C names.
  17352. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17353. # Transform the output of nm in a proper C declaration.
  17354. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17355. # Transform the output of nm into a list of symbols to manually relocate.
  17356. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  17357. # Transform the output of nm in a C name address pair.
  17358. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17359. # Transform the output of nm in a C name address pair when lib prefix is needed.
  17360. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  17361. # The name lister interface.
  17362. nm_interface=$lt_lt_cv_nm_interface
  17363. # Specify filename containing input files for \$NM.
  17364. nm_file_list_spec=$lt_nm_file_list_spec
  17365. # The root where to search for dependent libraries,and where our libraries should be installed.
  17366. lt_sysroot=$lt_sysroot
  17367. # Command to truncate a binary pipe.
  17368. lt_truncate_bin=$lt_lt_cv_truncate_bin
  17369. # The name of the directory that contains temporary libtool files.
  17370. objdir=$objdir
  17371. # Used to examine libraries when file_magic_cmd begins with "file".
  17372. MAGIC_CMD=$MAGIC_CMD
  17373. # Must we lock files when doing compilation?
  17374. need_locks=$lt_need_locks
  17375. # Manifest tool.
  17376. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  17377. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  17378. DSYMUTIL=$lt_DSYMUTIL
  17379. # Tool to change global to local symbols on Mac OS X.
  17380. NMEDIT=$lt_NMEDIT
  17381. # Tool to manipulate fat objects and archives on Mac OS X.
  17382. LIPO=$lt_LIPO
  17383. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  17384. OTOOL=$lt_OTOOL
  17385. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  17386. OTOOL64=$lt_OTOOL64
  17387. # Old archive suffix (normally "a").
  17388. libext=$libext
  17389. # Shared library suffix (normally ".so").
  17390. shrext_cmds=$lt_shrext_cmds
  17391. # The commands to extract the exported symbol list from a shared archive.
  17392. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17393. # Variables whose values should be saved in libtool wrapper scripts and
  17394. # restored at link time.
  17395. variables_saved_for_relink=$lt_variables_saved_for_relink
  17396. # Do we need the "lib" prefix for modules?
  17397. need_lib_prefix=$need_lib_prefix
  17398. # Do we need a version for libraries?
  17399. need_version=$need_version
  17400. # Library versioning type.
  17401. version_type=$version_type
  17402. # Shared library runtime path variable.
  17403. runpath_var=$runpath_var
  17404. # Shared library path variable.
  17405. shlibpath_var=$shlibpath_var
  17406. # Is shlibpath searched before the hard-coded library search path?
  17407. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17408. # Format of library name prefix.
  17409. libname_spec=$lt_libname_spec
  17410. # List of archive names. First name is the real one, the rest are links.
  17411. # The last name is the one that the linker finds with -lNAME
  17412. library_names_spec=$lt_library_names_spec
  17413. # The coded name of the library, if different from the real name.
  17414. soname_spec=$lt_soname_spec
  17415. # Permission mode override for installation of shared libraries.
  17416. install_override_mode=$lt_install_override_mode
  17417. # Command to use after installation of a shared archive.
  17418. postinstall_cmds=$lt_postinstall_cmds
  17419. # Command to use after uninstallation of a shared archive.
  17420. postuninstall_cmds=$lt_postuninstall_cmds
  17421. # Commands used to finish a libtool library installation in a directory.
  17422. finish_cmds=$lt_finish_cmds
  17423. # As "finish_cmds", except a single script fragment to be evaled but
  17424. # not shown.
  17425. finish_eval=$lt_finish_eval
  17426. # Whether we should hardcode library paths into libraries.
  17427. hardcode_into_libs=$hardcode_into_libs
  17428. # Compile-time system search path for libraries.
  17429. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17430. # Detected run-time system search path for libraries.
  17431. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  17432. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  17433. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  17434. # Whether dlopen is supported.
  17435. dlopen_support=$enable_dlopen
  17436. # Whether dlopen of programs is supported.
  17437. dlopen_self=$enable_dlopen_self
  17438. # Whether dlopen of statically linked programs is supported.
  17439. dlopen_self_static=$enable_dlopen_self_static
  17440. # Commands to strip libraries.
  17441. old_striplib=$lt_old_striplib
  17442. striplib=$lt_striplib
  17443. # The linker used to build libraries.
  17444. LD=$lt_LD
  17445. # How to create reloadable object files.
  17446. reload_flag=$lt_reload_flag
  17447. reload_cmds=$lt_reload_cmds
  17448. # Commands used to build an old-style archive.
  17449. old_archive_cmds=$lt_old_archive_cmds
  17450. # A language specific compiler.
  17451. CC=$lt_compiler
  17452. # Is the compiler the GNU compiler?
  17453. with_gcc=$GCC
  17454. # Compiler flag to turn off builtin functions.
  17455. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  17456. # Additional compiler flags for building library objects.
  17457. pic_flag=$lt_lt_prog_compiler_pic
  17458. # How to pass a linker flag through the compiler.
  17459. wl=$lt_lt_prog_compiler_wl
  17460. # Compiler flag to prevent dynamic linking.
  17461. link_static_flag=$lt_lt_prog_compiler_static
  17462. # Does compiler simultaneously support -c and -o options?
  17463. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  17464. # Whether or not to add -lc for building shared libraries.
  17465. build_libtool_need_lc=$archive_cmds_need_lc
  17466. # Whether or not to disallow shared libs when runtime libs are static.
  17467. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  17468. # Compiler flag to allow reflexive dlopens.
  17469. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  17470. # Compiler flag to generate shared objects directly from archives.
  17471. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  17472. # Whether the compiler copes with passing no objects directly.
  17473. compiler_needs_object=$lt_compiler_needs_object
  17474. # Create an old-style archive from a shared archive.
  17475. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  17476. # Create a temporary old-style archive to link instead of a shared archive.
  17477. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  17478. # Commands used to build a shared archive.
  17479. archive_cmds=$lt_archive_cmds
  17480. archive_expsym_cmds=$lt_archive_expsym_cmds
  17481. # Commands used to build a loadable module if different from building
  17482. # a shared archive.
  17483. module_cmds=$lt_module_cmds
  17484. module_expsym_cmds=$lt_module_expsym_cmds
  17485. # Whether we are building with GNU ld or not.
  17486. with_gnu_ld=$lt_with_gnu_ld
  17487. # Flag that allows shared libraries with undefined symbols to be built.
  17488. allow_undefined_flag=$lt_allow_undefined_flag
  17489. # Flag that enforces no undefined symbols.
  17490. no_undefined_flag=$lt_no_undefined_flag
  17491. # Flag to hardcode \$libdir into a binary during linking.
  17492. # This must work even if \$libdir does not exist
  17493. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  17494. # Whether we need a single "-rpath" flag with a separated argument.
  17495. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  17496. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17497. # DIR into the resulting binary.
  17498. hardcode_direct=$hardcode_direct
  17499. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17500. # DIR into the resulting binary and the resulting library dependency is
  17501. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  17502. # library is relocated.
  17503. hardcode_direct_absolute=$hardcode_direct_absolute
  17504. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17505. # into the resulting binary.
  17506. hardcode_minus_L=$hardcode_minus_L
  17507. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17508. # into the resulting binary.
  17509. hardcode_shlibpath_var=$hardcode_shlibpath_var
  17510. # Set to "yes" if building a shared library automatically hardcodes DIR
  17511. # into the library and all subsequent libraries and executables linked
  17512. # against it.
  17513. hardcode_automatic=$hardcode_automatic
  17514. # Set to yes if linker adds runtime paths of dependent libraries
  17515. # to runtime path list.
  17516. inherit_rpath=$inherit_rpath
  17517. # Whether libtool must link a program against all its dependency libraries.
  17518. link_all_deplibs=$link_all_deplibs
  17519. # Set to "yes" if exported symbols are required.
  17520. always_export_symbols=$always_export_symbols
  17521. # The commands to list exported symbols.
  17522. export_symbols_cmds=$lt_export_symbols_cmds
  17523. # Symbols that should not be listed in the preloaded symbols.
  17524. exclude_expsyms=$lt_exclude_expsyms
  17525. # Symbols that must always be exported.
  17526. include_expsyms=$lt_include_expsyms
  17527. # Commands necessary for linking programs (against libraries) with templates.
  17528. prelink_cmds=$lt_prelink_cmds
  17529. # Commands necessary for finishing linking programs.
  17530. postlink_cmds=$lt_postlink_cmds
  17531. # Specify filename containing input files.
  17532. file_list_spec=$lt_file_list_spec
  17533. # How to hardcode a shared library path into an executable.
  17534. hardcode_action=$hardcode_action
  17535. # The directories searched by this compiler when creating a shared library.
  17536. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  17537. # Dependencies to place before and after the objects being linked to
  17538. # create a shared library.
  17539. predep_objects=$lt_predep_objects
  17540. postdep_objects=$lt_postdep_objects
  17541. predeps=$lt_predeps
  17542. postdeps=$lt_postdeps
  17543. # The library search path used internally by the compiler when linking
  17544. # a shared library.
  17545. compiler_lib_search_path=$lt_compiler_lib_search_path
  17546. # ### END LIBTOOL CONFIG
  17547. _LT_EOF
  17548. cat <<'_LT_EOF' >> "$cfgfile"
  17549. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  17550. # func_munge_path_list VARIABLE PATH
  17551. # -----------------------------------
  17552. # VARIABLE is name of variable containing _space_ separated list of
  17553. # directories to be munged by the contents of PATH, which is string
  17554. # having a format:
  17555. # "DIR[:DIR]:"
  17556. # string "DIR[ DIR]" will be prepended to VARIABLE
  17557. # ":DIR[:DIR]"
  17558. # string "DIR[ DIR]" will be appended to VARIABLE
  17559. # "DIRP[:DIRP]::[DIRA:]DIRA"
  17560. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  17561. # "DIRA[ DIRA]" will be appended to VARIABLE
  17562. # "DIR[:DIR]"
  17563. # VARIABLE will be replaced by "DIR[ DIR]"
  17564. func_munge_path_list ()
  17565. {
  17566. case x$2 in
  17567. x)
  17568. ;;
  17569. *:)
  17570. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  17571. ;;
  17572. x:*)
  17573. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  17574. ;;
  17575. *::*)
  17576. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  17577. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  17578. ;;
  17579. *)
  17580. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  17581. ;;
  17582. esac
  17583. }
  17584. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  17585. func_cc_basename ()
  17586. {
  17587. for cc_temp in $*""; do
  17588. case $cc_temp in
  17589. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17590. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17591. \-*) ;;
  17592. *) break;;
  17593. esac
  17594. done
  17595. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  17596. }
  17597. # ### END FUNCTIONS SHARED WITH CONFIGURE
  17598. _LT_EOF
  17599. case $host_os in
  17600. aix3*)
  17601. cat <<\_LT_EOF >> "$cfgfile"
  17602. # AIX sometimes has problems with the GCC collect2 program. For some
  17603. # reason, if we set the COLLECT_NAMES environment variable, the problems
  17604. # vanish in a puff of smoke.
  17605. if test set != "${COLLECT_NAMES+set}"; then
  17606. COLLECT_NAMES=
  17607. export COLLECT_NAMES
  17608. fi
  17609. _LT_EOF
  17610. ;;
  17611. esac
  17612. ltmain=$ac_aux_dir/ltmain.sh
  17613. # We use sed instead of cat because bash on DJGPP gets confused if
  17614. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  17615. # text mode, it properly converts lines to CR/LF. This bash problem
  17616. # is reportedly fixed, but why not run on old versions too?
  17617. sed '$q' "$ltmain" >> "$cfgfile" \
  17618. || (rm -f "$cfgfile"; exit 1)
  17619. mv -f "$cfgfile" "$ofile" ||
  17620. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  17621. chmod +x "$ofile"
  17622. cat <<_LT_EOF >> "$ofile"
  17623. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  17624. # The linker used to build libraries.
  17625. LD=$lt_LD_CXX
  17626. # How to create reloadable object files.
  17627. reload_flag=$lt_reload_flag_CXX
  17628. reload_cmds=$lt_reload_cmds_CXX
  17629. # Commands used to build an old-style archive.
  17630. old_archive_cmds=$lt_old_archive_cmds_CXX
  17631. # A language specific compiler.
  17632. CC=$lt_compiler_CXX
  17633. # Is the compiler the GNU compiler?
  17634. with_gcc=$GCC_CXX
  17635. # Compiler flag to turn off builtin functions.
  17636. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  17637. # Additional compiler flags for building library objects.
  17638. pic_flag=$lt_lt_prog_compiler_pic_CXX
  17639. # How to pass a linker flag through the compiler.
  17640. wl=$lt_lt_prog_compiler_wl_CXX
  17641. # Compiler flag to prevent dynamic linking.
  17642. link_static_flag=$lt_lt_prog_compiler_static_CXX
  17643. # Does compiler simultaneously support -c and -o options?
  17644. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  17645. # Whether or not to add -lc for building shared libraries.
  17646. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  17647. # Whether or not to disallow shared libs when runtime libs are static.
  17648. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  17649. # Compiler flag to allow reflexive dlopens.
  17650. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  17651. # Compiler flag to generate shared objects directly from archives.
  17652. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  17653. # Whether the compiler copes with passing no objects directly.
  17654. compiler_needs_object=$lt_compiler_needs_object_CXX
  17655. # Create an old-style archive from a shared archive.
  17656. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  17657. # Create a temporary old-style archive to link instead of a shared archive.
  17658. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  17659. # Commands used to build a shared archive.
  17660. archive_cmds=$lt_archive_cmds_CXX
  17661. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  17662. # Commands used to build a loadable module if different from building
  17663. # a shared archive.
  17664. module_cmds=$lt_module_cmds_CXX
  17665. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  17666. # Whether we are building with GNU ld or not.
  17667. with_gnu_ld=$lt_with_gnu_ld_CXX
  17668. # Flag that allows shared libraries with undefined symbols to be built.
  17669. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  17670. # Flag that enforces no undefined symbols.
  17671. no_undefined_flag=$lt_no_undefined_flag_CXX
  17672. # Flag to hardcode \$libdir into a binary during linking.
  17673. # This must work even if \$libdir does not exist
  17674. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  17675. # Whether we need a single "-rpath" flag with a separated argument.
  17676. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  17677. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17678. # DIR into the resulting binary.
  17679. hardcode_direct=$hardcode_direct_CXX
  17680. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17681. # DIR into the resulting binary and the resulting library dependency is
  17682. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  17683. # library is relocated.
  17684. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  17685. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17686. # into the resulting binary.
  17687. hardcode_minus_L=$hardcode_minus_L_CXX
  17688. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17689. # into the resulting binary.
  17690. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  17691. # Set to "yes" if building a shared library automatically hardcodes DIR
  17692. # into the library and all subsequent libraries and executables linked
  17693. # against it.
  17694. hardcode_automatic=$hardcode_automatic_CXX
  17695. # Set to yes if linker adds runtime paths of dependent libraries
  17696. # to runtime path list.
  17697. inherit_rpath=$inherit_rpath_CXX
  17698. # Whether libtool must link a program against all its dependency libraries.
  17699. link_all_deplibs=$link_all_deplibs_CXX
  17700. # Set to "yes" if exported symbols are required.
  17701. always_export_symbols=$always_export_symbols_CXX
  17702. # The commands to list exported symbols.
  17703. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  17704. # Symbols that should not be listed in the preloaded symbols.
  17705. exclude_expsyms=$lt_exclude_expsyms_CXX
  17706. # Symbols that must always be exported.
  17707. include_expsyms=$lt_include_expsyms_CXX
  17708. # Commands necessary for linking programs (against libraries) with templates.
  17709. prelink_cmds=$lt_prelink_cmds_CXX
  17710. # Commands necessary for finishing linking programs.
  17711. postlink_cmds=$lt_postlink_cmds_CXX
  17712. # Specify filename containing input files.
  17713. file_list_spec=$lt_file_list_spec_CXX
  17714. # How to hardcode a shared library path into an executable.
  17715. hardcode_action=$hardcode_action_CXX
  17716. # The directories searched by this compiler when creating a shared library.
  17717. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  17718. # Dependencies to place before and after the objects being linked to
  17719. # create a shared library.
  17720. predep_objects=$lt_predep_objects_CXX
  17721. postdep_objects=$lt_postdep_objects_CXX
  17722. predeps=$lt_predeps_CXX
  17723. postdeps=$lt_postdeps_CXX
  17724. # The library search path used internally by the compiler when linking
  17725. # a shared library.
  17726. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  17727. # ### END LIBTOOL TAG CONFIG: CXX
  17728. _LT_EOF
  17729. ;;
  17730. esac
  17731. done # for ac_tag
  17732. as_fn_exit 0
  17733. _ACEOF
  17734. ac_clean_files=$ac_clean_files_save
  17735. test $ac_write_fail = 0 ||
  17736. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17737. # configure is writing to config.log, and then calls config.status.
  17738. # config.status does its own redirection, appending to config.log.
  17739. # Unfortunately, on DOS this fails, as config.log is still kept open
  17740. # by configure, so config.status won't be able to write to it; its
  17741. # output is simply discarded. So we exec the FD to /dev/null,
  17742. # effectively closing config.log, so it can be properly (re)opened and
  17743. # appended to by config.status. When coming back to configure, we
  17744. # need to make the FD available again.
  17745. if test "$no_create" != yes; then
  17746. ac_cs_success=:
  17747. ac_config_status_args=
  17748. test "$silent" = yes &&
  17749. ac_config_status_args="$ac_config_status_args --quiet"
  17750. exec 5>/dev/null
  17751. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17752. exec 5>>config.log
  17753. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17754. # would make configure fail if this is the last instruction.
  17755. $ac_cs_success || as_fn_exit 1
  17756. fi
  17757. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17758. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17759. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17760. fi
  17761. printf "Wait for %s\n" "$procids"
  17762. wait $procids
  17763. printf "All sub-tasks should have completed\n"
  17764. # end of configure.ac