configure 819 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for fedora-ds 1.1.
  4. #
  5. # Report bugs to <http://bugzilla.redhat.com/>.
  6. #
  7. # Copyright (C) 2003 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. ## --------------------- ##
  11. ## M4sh Initialization. ##
  12. ## --------------------- ##
  13. # Be Bourne compatible
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  21. set -o posix
  22. fi
  23. DUALCASE=1; export DUALCASE # for MKS sh
  24. # Support unset when possible.
  25. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  26. as_unset=unset
  27. else
  28. as_unset=false
  29. fi
  30. # Work around bugs in pre-3.0 UWIN ksh.
  31. $as_unset ENV MAIL MAILPATH
  32. PS1='$ '
  33. PS2='> '
  34. PS4='+ '
  35. # NLS nuisances.
  36. for as_var in \
  37. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  38. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  39. LC_TELEPHONE LC_TIME
  40. do
  41. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  42. eval $as_var=C; export $as_var
  43. else
  44. $as_unset $as_var
  45. fi
  46. done
  47. # Required to use basename.
  48. if expr a : '\(a\)' >/dev/null 2>&1; then
  49. as_expr=expr
  50. else
  51. as_expr=false
  52. fi
  53. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  54. as_basename=basename
  55. else
  56. as_basename=false
  57. fi
  58. # Name of the executable.
  59. as_me=`$as_basename "$0" ||
  60. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  61. X"$0" : 'X\(//\)$' \| \
  62. X"$0" : 'X\(/\)$' \| \
  63. . : '\(.\)' 2>/dev/null ||
  64. echo X/"$0" |
  65. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  66. /^X\/\(\/\/\)$/{ s//\1/; q; }
  67. /^X\/\(\/\).*/{ s//\1/; q; }
  68. s/.*/./; q'`
  69. # PATH needs CR, and LINENO needs CR and PATH.
  70. # Avoid depending upon Character Ranges.
  71. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  72. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  73. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  74. as_cr_digits='0123456789'
  75. as_cr_alnum=$as_cr_Letters$as_cr_digits
  76. # The user is always right.
  77. if test "${PATH_SEPARATOR+set}" != set; then
  78. echo "#! /bin/sh" >conf$$.sh
  79. echo "exit 0" >>conf$$.sh
  80. chmod +x conf$$.sh
  81. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  82. PATH_SEPARATOR=';'
  83. else
  84. PATH_SEPARATOR=:
  85. fi
  86. rm -f conf$$.sh
  87. fi
  88. as_lineno_1=$LINENO
  89. as_lineno_2=$LINENO
  90. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  91. test "x$as_lineno_1" != "x$as_lineno_2" &&
  92. test "x$as_lineno_3" = "x$as_lineno_2" || {
  93. # Find who we are. Look in the path if we contain no path at all
  94. # relative or not.
  95. case $0 in
  96. *[\\/]* ) as_myself=$0 ;;
  97. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  98. for as_dir in $PATH
  99. do
  100. IFS=$as_save_IFS
  101. test -z "$as_dir" && as_dir=.
  102. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  103. done
  104. ;;
  105. esac
  106. # We did not find ourselves, most probably we were run as `sh COMMAND'
  107. # in which case we are not to be found in the path.
  108. if test "x$as_myself" = x; then
  109. as_myself=$0
  110. fi
  111. if test ! -f "$as_myself"; then
  112. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  113. { (exit 1); exit 1; }; }
  114. fi
  115. case $CONFIG_SHELL in
  116. '')
  117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  118. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  119. do
  120. IFS=$as_save_IFS
  121. test -z "$as_dir" && as_dir=.
  122. for as_base in sh bash ksh sh5; do
  123. case $as_dir in
  124. /*)
  125. if ("$as_dir/$as_base" -c '
  126. as_lineno_1=$LINENO
  127. as_lineno_2=$LINENO
  128. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  129. test "x$as_lineno_1" != "x$as_lineno_2" &&
  130. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  131. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  132. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  133. CONFIG_SHELL=$as_dir/$as_base
  134. export CONFIG_SHELL
  135. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  136. fi;;
  137. esac
  138. done
  139. done
  140. ;;
  141. esac
  142. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  143. # uniformly replaced by the line number. The first 'sed' inserts a
  144. # line-number line before each line; the second 'sed' does the real
  145. # work. The second script uses 'N' to pair each line-number line
  146. # with the numbered line, and appends trailing '-' during
  147. # substitution so that $LINENO is not a special case at line end.
  148. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  149. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  150. sed '=' <$as_myself |
  151. sed '
  152. N
  153. s,$,-,
  154. : loop
  155. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  156. t loop
  157. s,-$,,
  158. s,^['$as_cr_digits']*\n,,
  159. ' >$as_me.lineno &&
  160. chmod +x $as_me.lineno ||
  161. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  162. { (exit 1); exit 1; }; }
  163. # Don't try to exec as it changes $[0], causing all sort of problems
  164. # (the dirname of $[0] is not the place where we might find the
  165. # original and so on. Autoconf is especially sensible to this).
  166. . ./$as_me.lineno
  167. # Exit status is that of the last command.
  168. exit
  169. }
  170. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  171. *c*,-n*) ECHO_N= ECHO_C='
  172. ' ECHO_T=' ' ;;
  173. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  174. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  175. esac
  176. if expr a : '\(a\)' >/dev/null 2>&1; then
  177. as_expr=expr
  178. else
  179. as_expr=false
  180. fi
  181. rm -f conf$$ conf$$.exe conf$$.file
  182. echo >conf$$.file
  183. if ln -s conf$$.file conf$$ 2>/dev/null; then
  184. # We could just check for DJGPP; but this test a) works b) is more generic
  185. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  186. if test -f conf$$.exe; then
  187. # Don't use ln at all; we don't have any links
  188. as_ln_s='cp -p'
  189. else
  190. as_ln_s='ln -s'
  191. fi
  192. elif ln conf$$.file conf$$ 2>/dev/null; then
  193. as_ln_s=ln
  194. else
  195. as_ln_s='cp -p'
  196. fi
  197. rm -f conf$$ conf$$.exe conf$$.file
  198. if mkdir -p . 2>/dev/null; then
  199. as_mkdir_p=:
  200. else
  201. test -d ./-p && rmdir ./-p
  202. as_mkdir_p=false
  203. fi
  204. as_executable_p="test -f"
  205. # Sed expression to map a string onto a valid CPP name.
  206. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  207. # Sed expression to map a string onto a valid variable name.
  208. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  209. # IFS
  210. # We need space, tab and new line, in precisely that order.
  211. as_nl='
  212. '
  213. IFS=" $as_nl"
  214. # CDPATH.
  215. $as_unset CDPATH
  216. # Check that we are running under the correct shell.
  217. SHELL=${CONFIG_SHELL-/bin/sh}
  218. case X$ECHO in
  219. X*--fallback-echo)
  220. # Remove one level of quotation (which was required for Make).
  221. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  222. ;;
  223. esac
  224. echo=${ECHO-echo}
  225. if test "X$1" = X--no-reexec; then
  226. # Discard the --no-reexec flag, and continue.
  227. shift
  228. elif test "X$1" = X--fallback-echo; then
  229. # Avoid inline document here, it may be left over
  230. :
  231. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  232. # Yippee, $echo works!
  233. :
  234. else
  235. # Restart under the correct shell.
  236. exec $SHELL "$0" --no-reexec ${1+"$@"}
  237. fi
  238. if test "X$1" = X--fallback-echo; then
  239. # used as fallback echo
  240. shift
  241. cat <<EOF
  242. $*
  243. EOF
  244. exit 0
  245. fi
  246. # The HP-UX ksh and POSIX shell print the target directory to stdout
  247. # if CDPATH is set.
  248. if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  249. if test -z "$ECHO"; then
  250. if test "X${echo_test_string+set}" != Xset; then
  251. # find a string as large as possible, as long as the shell can cope with it
  252. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  253. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  254. if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  255. echo_test_string="`eval $cmd`" &&
  256. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  257. then
  258. break
  259. fi
  260. done
  261. fi
  262. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  263. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  264. test "X$echo_testing_string" = "X$echo_test_string"; then
  265. :
  266. else
  267. # The Solaris, AIX, and Digital Unix default echo programs unquote
  268. # backslashes. This makes it impossible to quote backslashes using
  269. # echo "$something" | sed 's/\\/\\\\/g'
  270. #
  271. # So, first we look for a working echo in the user's PATH.
  272. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  273. for dir in $PATH /usr/ucb; do
  274. IFS="$lt_save_ifs"
  275. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  276. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  277. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  278. test "X$echo_testing_string" = "X$echo_test_string"; then
  279. echo="$dir/echo"
  280. break
  281. fi
  282. done
  283. IFS="$lt_save_ifs"
  284. if test "X$echo" = Xecho; then
  285. # We didn't find a better echo, so look for alternatives.
  286. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  287. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  288. test "X$echo_testing_string" = "X$echo_test_string"; then
  289. # This shell has a builtin print -r that does the trick.
  290. echo='print -r'
  291. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  292. test "X$CONFIG_SHELL" != X/bin/ksh; then
  293. # If we have ksh, try running configure again with it.
  294. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  295. export ORIGINAL_CONFIG_SHELL
  296. CONFIG_SHELL=/bin/ksh
  297. export CONFIG_SHELL
  298. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  299. else
  300. # Try using printf.
  301. echo='printf %s\n'
  302. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  303. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  304. test "X$echo_testing_string" = "X$echo_test_string"; then
  305. # Cool, printf works
  306. :
  307. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  308. test "X$echo_testing_string" = 'X\t' &&
  309. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  310. test "X$echo_testing_string" = "X$echo_test_string"; then
  311. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  312. export CONFIG_SHELL
  313. SHELL="$CONFIG_SHELL"
  314. export SHELL
  315. echo="$CONFIG_SHELL $0 --fallback-echo"
  316. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  317. test "X$echo_testing_string" = 'X\t' &&
  318. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  319. test "X$echo_testing_string" = "X$echo_test_string"; then
  320. echo="$CONFIG_SHELL $0 --fallback-echo"
  321. else
  322. # maybe with a smaller string...
  323. prev=:
  324. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  325. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  326. then
  327. break
  328. fi
  329. prev="$cmd"
  330. done
  331. if test "$prev" != 'sed 50q "$0"'; then
  332. echo_test_string=`eval $prev`
  333. export echo_test_string
  334. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  335. else
  336. # Oops. We lost completely, so just stick with echo.
  337. echo=echo
  338. fi
  339. fi
  340. fi
  341. fi
  342. fi
  343. fi
  344. # Copy echo and quote the copy suitably for passing to libtool from
  345. # the Makefile, instead of quoting the original, which is used later.
  346. ECHO=$echo
  347. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  348. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  349. fi
  350. tagnames=${tagnames+${tagnames},}CXX
  351. tagnames=${tagnames+${tagnames},}F77
  352. # Name of the host.
  353. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  354. # so uname gets run too.
  355. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  356. exec 6>&1
  357. #
  358. # Initializations.
  359. #
  360. ac_default_prefix=/usr/local
  361. ac_config_libobj_dir=.
  362. cross_compiling=no
  363. subdirs=
  364. MFLAGS=
  365. MAKEFLAGS=
  366. SHELL=${CONFIG_SHELL-/bin/sh}
  367. # Maximum number of lines to put in a shell here document.
  368. # This variable seems obsolete. It should probably be removed, and
  369. # only ac_max_sed_lines should be used.
  370. : ${ac_max_here_lines=38}
  371. # Identity of this package.
  372. PACKAGE_NAME='fedora-ds'
  373. PACKAGE_TARNAME='fedora-ds'
  374. PACKAGE_VERSION='1.1'
  375. PACKAGE_STRING='fedora-ds 1.1'
  376. PACKAGE_BUGREPORT='http://bugzilla.redhat.com/'
  377. # Factoring default headers for most tests.
  378. ac_includes_default="\
  379. #include <stdio.h>
  380. #if HAVE_SYS_TYPES_H
  381. # include <sys/types.h>
  382. #endif
  383. #if HAVE_SYS_STAT_H
  384. # include <sys/stat.h>
  385. #endif
  386. #if STDC_HEADERS
  387. # include <stdlib.h>
  388. # include <stddef.h>
  389. #else
  390. # if HAVE_STDLIB_H
  391. # include <stdlib.h>
  392. # endif
  393. #endif
  394. #if HAVE_STRING_H
  395. # if !STDC_HEADERS && HAVE_MEMORY_H
  396. # include <memory.h>
  397. # endif
  398. # include <string.h>
  399. #endif
  400. #if HAVE_STRINGS_H
  401. # include <strings.h>
  402. #endif
  403. #if HAVE_INTTYPES_H
  404. # include <inttypes.h>
  405. #else
  406. # if HAVE_STDINT_H
  407. # include <stdint.h>
  408. # endif
  409. #endif
  410. #if HAVE_UNISTD_H
  411. # include <unistd.h>
  412. #endif"
  413. ac_default_prefix=/opt/fedora-ds
  414. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS platform_defs SOLARIS_TRUE SOLARIS_FALSE debug_defs PKG_CONFIG ICU_CONFIG NETSNMP_CONFIG nspr_inc nspr_lib nspr_libdir nss_inc nss_lib nss_libdir ldapsdk_inc ldapsdk_lib ldapsdk_libdir ldapsdk_bindir db_inc db_incdir db_lib db_libdir db_bindir sasl_inc sasl_lib sasl_libdir svrcore_inc svrcore_lib icu_lib icu_inc icu_bin netsnmp_inc netsnmp_lib netsnmp_libdir netsnmp_link configdir sampledatadir propertydir schemadir serverdir serverplugindir scripttemplatedir WINNT_TRUE WINNT_FALSE LTLIBOBJS'
  415. ac_subst_files=''
  416. # Initialize some variables set by options.
  417. ac_init_help=
  418. ac_init_version=false
  419. # The variables have the same names as the options, with
  420. # dashes changed to underlines.
  421. cache_file=/dev/null
  422. exec_prefix=NONE
  423. no_create=
  424. no_recursion=
  425. prefix=NONE
  426. program_prefix=NONE
  427. program_suffix=NONE
  428. program_transform_name=s,x,x,
  429. silent=
  430. site=
  431. srcdir=
  432. verbose=
  433. x_includes=NONE
  434. x_libraries=NONE
  435. # Installation directory options.
  436. # These are left unexpanded so users can "make install exec_prefix=/foo"
  437. # and all the variables that are supposed to be based on exec_prefix
  438. # by default will actually change.
  439. # Use braces instead of parens because sh, perl, etc. also accept them.
  440. bindir='${exec_prefix}/bin'
  441. sbindir='${exec_prefix}/sbin'
  442. libexecdir='${exec_prefix}/libexec'
  443. datadir='${prefix}/share'
  444. sysconfdir='${prefix}/etc'
  445. sharedstatedir='${prefix}/com'
  446. localstatedir='${prefix}/var'
  447. libdir='${exec_prefix}/lib'
  448. includedir='${prefix}/include'
  449. oldincludedir='/usr/include'
  450. infodir='${prefix}/info'
  451. mandir='${prefix}/man'
  452. ac_prev=
  453. for ac_option
  454. do
  455. # If the previous option needs an argument, assign it.
  456. if test -n "$ac_prev"; then
  457. eval "$ac_prev=\$ac_option"
  458. ac_prev=
  459. continue
  460. fi
  461. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  462. # Accept the important Cygnus configure options, so we can diagnose typos.
  463. case $ac_option in
  464. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  465. ac_prev=bindir ;;
  466. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  467. bindir=$ac_optarg ;;
  468. -build | --build | --buil | --bui | --bu)
  469. ac_prev=build_alias ;;
  470. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  471. build_alias=$ac_optarg ;;
  472. -cache-file | --cache-file | --cache-fil | --cache-fi \
  473. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  474. ac_prev=cache_file ;;
  475. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  476. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  477. cache_file=$ac_optarg ;;
  478. --config-cache | -C)
  479. cache_file=config.cache ;;
  480. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  481. ac_prev=datadir ;;
  482. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  483. | --da=*)
  484. datadir=$ac_optarg ;;
  485. -disable-* | --disable-*)
  486. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  487. # Reject names that are not valid shell variable names.
  488. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  489. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  490. { (exit 1); exit 1; }; }
  491. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  492. eval "enable_$ac_feature=no" ;;
  493. -enable-* | --enable-*)
  494. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  495. # Reject names that are not valid shell variable names.
  496. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  497. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  498. { (exit 1); exit 1; }; }
  499. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  500. case $ac_option in
  501. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  502. *) ac_optarg=yes ;;
  503. esac
  504. eval "enable_$ac_feature='$ac_optarg'" ;;
  505. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  506. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  507. | --exec | --exe | --ex)
  508. ac_prev=exec_prefix ;;
  509. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  510. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  511. | --exec=* | --exe=* | --ex=*)
  512. exec_prefix=$ac_optarg ;;
  513. -gas | --gas | --ga | --g)
  514. # Obsolete; use --with-gas.
  515. with_gas=yes ;;
  516. -help | --help | --hel | --he | -h)
  517. ac_init_help=long ;;
  518. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  519. ac_init_help=recursive ;;
  520. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  521. ac_init_help=short ;;
  522. -host | --host | --hos | --ho)
  523. ac_prev=host_alias ;;
  524. -host=* | --host=* | --hos=* | --ho=*)
  525. host_alias=$ac_optarg ;;
  526. -includedir | --includedir | --includedi | --included | --include \
  527. | --includ | --inclu | --incl | --inc)
  528. ac_prev=includedir ;;
  529. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  530. | --includ=* | --inclu=* | --incl=* | --inc=*)
  531. includedir=$ac_optarg ;;
  532. -infodir | --infodir | --infodi | --infod | --info | --inf)
  533. ac_prev=infodir ;;
  534. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  535. infodir=$ac_optarg ;;
  536. -libdir | --libdir | --libdi | --libd)
  537. ac_prev=libdir ;;
  538. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  539. libdir=$ac_optarg ;;
  540. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  541. | --libexe | --libex | --libe)
  542. ac_prev=libexecdir ;;
  543. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  544. | --libexe=* | --libex=* | --libe=*)
  545. libexecdir=$ac_optarg ;;
  546. -localstatedir | --localstatedir | --localstatedi | --localstated \
  547. | --localstate | --localstat | --localsta | --localst \
  548. | --locals | --local | --loca | --loc | --lo)
  549. ac_prev=localstatedir ;;
  550. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  551. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  552. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  553. localstatedir=$ac_optarg ;;
  554. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  555. ac_prev=mandir ;;
  556. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  557. mandir=$ac_optarg ;;
  558. -nfp | --nfp | --nf)
  559. # Obsolete; use --without-fp.
  560. with_fp=no ;;
  561. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  562. | --no-cr | --no-c | -n)
  563. no_create=yes ;;
  564. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  565. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  566. no_recursion=yes ;;
  567. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  568. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  569. | --oldin | --oldi | --old | --ol | --o)
  570. ac_prev=oldincludedir ;;
  571. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  572. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  573. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  574. oldincludedir=$ac_optarg ;;
  575. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  576. ac_prev=prefix ;;
  577. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  578. prefix=$ac_optarg ;;
  579. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  580. | --program-pre | --program-pr | --program-p)
  581. ac_prev=program_prefix ;;
  582. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  583. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  584. program_prefix=$ac_optarg ;;
  585. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  586. | --program-suf | --program-su | --program-s)
  587. ac_prev=program_suffix ;;
  588. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  589. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  590. program_suffix=$ac_optarg ;;
  591. -program-transform-name | --program-transform-name \
  592. | --program-transform-nam | --program-transform-na \
  593. | --program-transform-n | --program-transform- \
  594. | --program-transform | --program-transfor \
  595. | --program-transfo | --program-transf \
  596. | --program-trans | --program-tran \
  597. | --progr-tra | --program-tr | --program-t)
  598. ac_prev=program_transform_name ;;
  599. -program-transform-name=* | --program-transform-name=* \
  600. | --program-transform-nam=* | --program-transform-na=* \
  601. | --program-transform-n=* | --program-transform-=* \
  602. | --program-transform=* | --program-transfor=* \
  603. | --program-transfo=* | --program-transf=* \
  604. | --program-trans=* | --program-tran=* \
  605. | --progr-tra=* | --program-tr=* | --program-t=*)
  606. program_transform_name=$ac_optarg ;;
  607. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  608. | -silent | --silent | --silen | --sile | --sil)
  609. silent=yes ;;
  610. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  611. ac_prev=sbindir ;;
  612. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  613. | --sbi=* | --sb=*)
  614. sbindir=$ac_optarg ;;
  615. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  616. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  617. | --sharedst | --shareds | --shared | --share | --shar \
  618. | --sha | --sh)
  619. ac_prev=sharedstatedir ;;
  620. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  621. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  622. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  623. | --sha=* | --sh=*)
  624. sharedstatedir=$ac_optarg ;;
  625. -site | --site | --sit)
  626. ac_prev=site ;;
  627. -site=* | --site=* | --sit=*)
  628. site=$ac_optarg ;;
  629. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  630. ac_prev=srcdir ;;
  631. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  632. srcdir=$ac_optarg ;;
  633. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  634. | --syscon | --sysco | --sysc | --sys | --sy)
  635. ac_prev=sysconfdir ;;
  636. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  637. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  638. sysconfdir=$ac_optarg ;;
  639. -target | --target | --targe | --targ | --tar | --ta | --t)
  640. ac_prev=target_alias ;;
  641. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  642. target_alias=$ac_optarg ;;
  643. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  644. verbose=yes ;;
  645. -version | --version | --versio | --versi | --vers | -V)
  646. ac_init_version=: ;;
  647. -with-* | --with-*)
  648. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  649. # Reject names that are not valid shell variable names.
  650. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  651. { echo "$as_me: error: invalid package name: $ac_package" >&2
  652. { (exit 1); exit 1; }; }
  653. ac_package=`echo $ac_package| sed 's/-/_/g'`
  654. case $ac_option in
  655. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  656. *) ac_optarg=yes ;;
  657. esac
  658. eval "with_$ac_package='$ac_optarg'" ;;
  659. -without-* | --without-*)
  660. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  661. # Reject names that are not valid shell variable names.
  662. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  663. { echo "$as_me: error: invalid package name: $ac_package" >&2
  664. { (exit 1); exit 1; }; }
  665. ac_package=`echo $ac_package | sed 's/-/_/g'`
  666. eval "with_$ac_package=no" ;;
  667. --x)
  668. # Obsolete; use --with-x.
  669. with_x=yes ;;
  670. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  671. | --x-incl | --x-inc | --x-in | --x-i)
  672. ac_prev=x_includes ;;
  673. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  674. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  675. x_includes=$ac_optarg ;;
  676. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  677. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  678. ac_prev=x_libraries ;;
  679. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  680. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  681. x_libraries=$ac_optarg ;;
  682. -*) { echo "$as_me: error: unrecognized option: $ac_option
  683. Try \`$0 --help' for more information." >&2
  684. { (exit 1); exit 1; }; }
  685. ;;
  686. *=*)
  687. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  688. # Reject names that are not valid shell variable names.
  689. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  690. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  691. { (exit 1); exit 1; }; }
  692. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  693. eval "$ac_envvar='$ac_optarg'"
  694. export $ac_envvar ;;
  695. *)
  696. # FIXME: should be removed in autoconf 3.0.
  697. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  698. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  699. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  700. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  701. ;;
  702. esac
  703. done
  704. if test -n "$ac_prev"; then
  705. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  706. { echo "$as_me: error: missing argument to $ac_option" >&2
  707. { (exit 1); exit 1; }; }
  708. fi
  709. # Be sure to have absolute paths.
  710. for ac_var in exec_prefix prefix
  711. do
  712. eval ac_val=$`echo $ac_var`
  713. case $ac_val in
  714. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  715. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  716. { (exit 1); exit 1; }; };;
  717. esac
  718. done
  719. # Be sure to have absolute paths.
  720. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  721. localstatedir libdir includedir oldincludedir infodir mandir
  722. do
  723. eval ac_val=$`echo $ac_var`
  724. case $ac_val in
  725. [\\/$]* | ?:[\\/]* ) ;;
  726. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  727. { (exit 1); exit 1; }; };;
  728. esac
  729. done
  730. # There might be people who depend on the old broken behavior: `$host'
  731. # used to hold the argument of --host etc.
  732. # FIXME: To remove some day.
  733. build=$build_alias
  734. host=$host_alias
  735. target=$target_alias
  736. # FIXME: To remove some day.
  737. if test "x$host_alias" != x; then
  738. if test "x$build_alias" = x; then
  739. cross_compiling=maybe
  740. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  741. If a cross compiler is detected then cross compile mode will be used." >&2
  742. elif test "x$build_alias" != "x$host_alias"; then
  743. cross_compiling=yes
  744. fi
  745. fi
  746. ac_tool_prefix=
  747. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  748. test "$silent" = yes && exec 6>/dev/null
  749. # Find the source files, if location was not specified.
  750. if test -z "$srcdir"; then
  751. ac_srcdir_defaulted=yes
  752. # Try the directory containing this script, then its parent.
  753. ac_confdir=`(dirname "$0") 2>/dev/null ||
  754. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  755. X"$0" : 'X\(//\)[^/]' \| \
  756. X"$0" : 'X\(//\)$' \| \
  757. X"$0" : 'X\(/\)' \| \
  758. . : '\(.\)' 2>/dev/null ||
  759. echo X"$0" |
  760. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  761. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  762. /^X\(\/\/\)$/{ s//\1/; q; }
  763. /^X\(\/\).*/{ s//\1/; q; }
  764. s/.*/./; q'`
  765. srcdir=$ac_confdir
  766. if test ! -r $srcdir/$ac_unique_file; then
  767. srcdir=..
  768. fi
  769. else
  770. ac_srcdir_defaulted=no
  771. fi
  772. if test ! -r $srcdir/$ac_unique_file; then
  773. if test "$ac_srcdir_defaulted" = yes; then
  774. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  775. { (exit 1); exit 1; }; }
  776. else
  777. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  778. { (exit 1); exit 1; }; }
  779. fi
  780. fi
  781. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  782. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  783. { (exit 1); exit 1; }; }
  784. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  785. ac_env_build_alias_set=${build_alias+set}
  786. ac_env_build_alias_value=$build_alias
  787. ac_cv_env_build_alias_set=${build_alias+set}
  788. ac_cv_env_build_alias_value=$build_alias
  789. ac_env_host_alias_set=${host_alias+set}
  790. ac_env_host_alias_value=$host_alias
  791. ac_cv_env_host_alias_set=${host_alias+set}
  792. ac_cv_env_host_alias_value=$host_alias
  793. ac_env_target_alias_set=${target_alias+set}
  794. ac_env_target_alias_value=$target_alias
  795. ac_cv_env_target_alias_set=${target_alias+set}
  796. ac_cv_env_target_alias_value=$target_alias
  797. ac_env_CXX_set=${CXX+set}
  798. ac_env_CXX_value=$CXX
  799. ac_cv_env_CXX_set=${CXX+set}
  800. ac_cv_env_CXX_value=$CXX
  801. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  802. ac_env_CXXFLAGS_value=$CXXFLAGS
  803. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  804. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  805. ac_env_LDFLAGS_set=${LDFLAGS+set}
  806. ac_env_LDFLAGS_value=$LDFLAGS
  807. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  808. ac_cv_env_LDFLAGS_value=$LDFLAGS
  809. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  810. ac_env_CPPFLAGS_value=$CPPFLAGS
  811. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  812. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  813. ac_env_CC_set=${CC+set}
  814. ac_env_CC_value=$CC
  815. ac_cv_env_CC_set=${CC+set}
  816. ac_cv_env_CC_value=$CC
  817. ac_env_CFLAGS_set=${CFLAGS+set}
  818. ac_env_CFLAGS_value=$CFLAGS
  819. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  820. ac_cv_env_CFLAGS_value=$CFLAGS
  821. ac_env_CPP_set=${CPP+set}
  822. ac_env_CPP_value=$CPP
  823. ac_cv_env_CPP_set=${CPP+set}
  824. ac_cv_env_CPP_value=$CPP
  825. ac_env_CXXCPP_set=${CXXCPP+set}
  826. ac_env_CXXCPP_value=$CXXCPP
  827. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  828. ac_cv_env_CXXCPP_value=$CXXCPP
  829. ac_env_F77_set=${F77+set}
  830. ac_env_F77_value=$F77
  831. ac_cv_env_F77_set=${F77+set}
  832. ac_cv_env_F77_value=$F77
  833. ac_env_FFLAGS_set=${FFLAGS+set}
  834. ac_env_FFLAGS_value=$FFLAGS
  835. ac_cv_env_FFLAGS_set=${FFLAGS+set}
  836. ac_cv_env_FFLAGS_value=$FFLAGS
  837. #
  838. # Report the --help message.
  839. #
  840. if test "$ac_init_help" = "long"; then
  841. # Omit some internal or obsolete options to make the list less imposing.
  842. # This message is too long to be a string in the A/UX 3.1 sh.
  843. cat <<_ACEOF
  844. \`configure' configures fedora-ds 1.1 to adapt to many kinds of systems.
  845. Usage: $0 [OPTION]... [VAR=VALUE]...
  846. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  847. VAR=VALUE. See below for descriptions of some of the useful variables.
  848. Defaults for the options are specified in brackets.
  849. Configuration:
  850. -h, --help display this help and exit
  851. --help=short display options specific to this package
  852. --help=recursive display the short help of all the included packages
  853. -V, --version display version information and exit
  854. -q, --quiet, --silent do not print \`checking...' messages
  855. --cache-file=FILE cache test results in FILE [disabled]
  856. -C, --config-cache alias for \`--cache-file=config.cache'
  857. -n, --no-create do not create output files
  858. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  859. _ACEOF
  860. cat <<_ACEOF
  861. Installation directories:
  862. --prefix=PREFIX install architecture-independent files in PREFIX
  863. [$ac_default_prefix]
  864. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  865. [PREFIX]
  866. By default, \`make install' will install all the files in
  867. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  868. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  869. for instance \`--prefix=\$HOME'.
  870. For better control, use the options below.
  871. Fine tuning of the installation directories:
  872. --bindir=DIR user executables [EPREFIX/bin]
  873. --sbindir=DIR system admin executables [EPREFIX/sbin]
  874. --libexecdir=DIR program executables [EPREFIX/libexec]
  875. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  876. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  877. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  878. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  879. --libdir=DIR object code libraries [EPREFIX/lib]
  880. --includedir=DIR C header files [PREFIX/include]
  881. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  882. --infodir=DIR info documentation [PREFIX/info]
  883. --mandir=DIR man documentation [PREFIX/man]
  884. _ACEOF
  885. cat <<\_ACEOF
  886. Program names:
  887. --program-prefix=PREFIX prepend PREFIX to installed program names
  888. --program-suffix=SUFFIX append SUFFIX to installed program names
  889. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  890. System types:
  891. --build=BUILD configure for building on BUILD [guessed]
  892. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  893. _ACEOF
  894. fi
  895. if test -n "$ac_init_help"; then
  896. case $ac_init_help in
  897. short | recursive ) echo "Configuration of fedora-ds 1.1:";;
  898. esac
  899. cat <<\_ACEOF
  900. Optional Features:
  901. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  902. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  903. --enable-maintainer-mode enable make rules and dependencies not useful
  904. (and sometimes confusing) to the casual installer
  905. --disable-dependency-tracking speeds up one-time build
  906. --enable-dependency-tracking do not reject slow dependency extractors
  907. --enable-shared[=PKGS]
  908. build shared libraries [default=yes]
  909. --enable-static[=PKGS]
  910. build static libraries [default=yes]
  911. --enable-fast-install[=PKGS]
  912. optimize for fast installation [default=yes]
  913. --disable-libtool-lock avoid locking (might break parallel builds)
  914. --enable-debug Enable debug features
  915. Optional Packages:
  916. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  917. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  918. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  919. --with-pic try to use only PIC/non-PIC objects [default=use
  920. both]
  921. --with-tags[=TAGS]
  922. include additional configurations [automatic]
  923. --with-nspr=PATH Netscape Portable Runtime (NSPR) directory
  924. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include file directory
  925. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  926. --with-nss=PATH Network Security Services (NSS) directory
  927. --with-nss-inc=PATH Network Security Services (NSS) include directory
  928. --with-nss-lib=PATH Network Security Services (NSS) library directory
  929. --with-ldapsdk=PATH Mozilla LDAP SDK directory
  930. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  931. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  932. --with-db=PATH Berkeley DB directory
  933. --with-sasl=PATH Use sasl from supplied path
  934. --with-sasl-inc=PATH SASL include file directory
  935. --with-sasl-lib=PATH SASL library directory
  936. --with-svrcore[=PATH] Use system installed svrcore - optional path for svrcore
  937. --with-svrcore-inc=PATH SVRCORE include file directory
  938. --with-svrcore-lib=PATH SVRCORE library directory
  939. --with-icu=PATH ICU directory
  940. --with-icu-inc=PATH ICU include directory
  941. --with-icu-lib=PATH ICU library directory
  942. --with-icu-bin=PATH ICU binary directory
  943. --with-netsnmp=PATH Net-SNMP directory
  944. --with-netsnmp-inc=PATH Net-SNMP include directory
  945. --with-netsnmp-lib=PATH Net-SNMP library directory
  946. --with-fhs Use FHS layout
  947. Some influential environment variables:
  948. CXX C++ compiler command
  949. CXXFLAGS C++ compiler flags
  950. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  951. nonstandard directory <lib dir>
  952. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  953. headers in a nonstandard directory <include dir>
  954. CC C compiler command
  955. CFLAGS C compiler flags
  956. CPP C preprocessor
  957. CXXCPP C++ preprocessor
  958. F77 Fortran 77 compiler command
  959. FFLAGS Fortran 77 compiler flags
  960. Use these variables to override the choices made by `configure' or to help
  961. it to find libraries and programs with nonstandard names/locations.
  962. Report bugs to <http://bugzilla.redhat.com/>.
  963. _ACEOF
  964. fi
  965. if test "$ac_init_help" = "recursive"; then
  966. # If there are subdirs, report their specific --help.
  967. ac_popdir=`pwd`
  968. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  969. test -d $ac_dir || continue
  970. ac_builddir=.
  971. if test "$ac_dir" != .; then
  972. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  973. # A "../" for each directory in $ac_dir_suffix.
  974. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  975. else
  976. ac_dir_suffix= ac_top_builddir=
  977. fi
  978. case $srcdir in
  979. .) # No --srcdir option. We are building in place.
  980. ac_srcdir=.
  981. if test -z "$ac_top_builddir"; then
  982. ac_top_srcdir=.
  983. else
  984. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  985. fi ;;
  986. [\\/]* | ?:[\\/]* ) # Absolute path.
  987. ac_srcdir=$srcdir$ac_dir_suffix;
  988. ac_top_srcdir=$srcdir ;;
  989. *) # Relative path.
  990. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  991. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  992. esac
  993. # Do not use `cd foo && pwd` to compute absolute paths, because
  994. # the directories may not exist.
  995. case `pwd` in
  996. .) ac_abs_builddir="$ac_dir";;
  997. *)
  998. case "$ac_dir" in
  999. .) ac_abs_builddir=`pwd`;;
  1000. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  1001. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  1002. esac;;
  1003. esac
  1004. case $ac_abs_builddir in
  1005. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  1006. *)
  1007. case ${ac_top_builddir}. in
  1008. .) ac_abs_top_builddir=$ac_abs_builddir;;
  1009. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  1010. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  1011. esac;;
  1012. esac
  1013. case $ac_abs_builddir in
  1014. .) ac_abs_srcdir=$ac_srcdir;;
  1015. *)
  1016. case $ac_srcdir in
  1017. .) ac_abs_srcdir=$ac_abs_builddir;;
  1018. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  1019. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  1020. esac;;
  1021. esac
  1022. case $ac_abs_builddir in
  1023. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  1024. *)
  1025. case $ac_top_srcdir in
  1026. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1027. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1028. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1029. esac;;
  1030. esac
  1031. cd $ac_dir
  1032. # Check for guested configure; otherwise get Cygnus style configure.
  1033. if test -f $ac_srcdir/configure.gnu; then
  1034. echo
  1035. $SHELL $ac_srcdir/configure.gnu --help=recursive
  1036. elif test -f $ac_srcdir/configure; then
  1037. echo
  1038. $SHELL $ac_srcdir/configure --help=recursive
  1039. elif test -f $ac_srcdir/configure.ac ||
  1040. test -f $ac_srcdir/configure.in; then
  1041. echo
  1042. $ac_configure --help
  1043. else
  1044. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1045. fi
  1046. cd $ac_popdir
  1047. done
  1048. fi
  1049. test -n "$ac_init_help" && exit 0
  1050. if $ac_init_version; then
  1051. cat <<\_ACEOF
  1052. fedora-ds configure 1.1
  1053. generated by GNU Autoconf 2.59
  1054. Copyright (C) 2003 Free Software Foundation, Inc.
  1055. This configure script is free software; the Free Software Foundation
  1056. gives unlimited permission to copy, distribute and modify it.
  1057. _ACEOF
  1058. exit 0
  1059. fi
  1060. exec 5>config.log
  1061. cat >&5 <<_ACEOF
  1062. This file contains any messages produced by compilers while
  1063. running configure, to aid debugging if configure makes a mistake.
  1064. It was created by fedora-ds $as_me 1.1, which was
  1065. generated by GNU Autoconf 2.59. Invocation command line was
  1066. $ $0 $@
  1067. _ACEOF
  1068. {
  1069. cat <<_ASUNAME
  1070. ## --------- ##
  1071. ## Platform. ##
  1072. ## --------- ##
  1073. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1074. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1075. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1076. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1077. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1078. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1079. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1080. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1081. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1082. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1083. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1084. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1085. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1086. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1087. _ASUNAME
  1088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1089. for as_dir in $PATH
  1090. do
  1091. IFS=$as_save_IFS
  1092. test -z "$as_dir" && as_dir=.
  1093. echo "PATH: $as_dir"
  1094. done
  1095. } >&5
  1096. cat >&5 <<_ACEOF
  1097. ## ----------- ##
  1098. ## Core tests. ##
  1099. ## ----------- ##
  1100. _ACEOF
  1101. # Keep a trace of the command line.
  1102. # Strip out --no-create and --no-recursion so they do not pile up.
  1103. # Strip out --silent because we don't want to record it for future runs.
  1104. # Also quote any args containing shell meta-characters.
  1105. # Make two passes to allow for proper duplicate-argument suppression.
  1106. ac_configure_args=
  1107. ac_configure_args0=
  1108. ac_configure_args1=
  1109. ac_sep=
  1110. ac_must_keep_next=false
  1111. for ac_pass in 1 2
  1112. do
  1113. for ac_arg
  1114. do
  1115. case $ac_arg in
  1116. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1117. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1118. | -silent | --silent | --silen | --sile | --sil)
  1119. continue ;;
  1120. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1121. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1122. esac
  1123. case $ac_pass in
  1124. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1125. 2)
  1126. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1127. if test $ac_must_keep_next = true; then
  1128. ac_must_keep_next=false # Got value, back to normal.
  1129. else
  1130. case $ac_arg in
  1131. *=* | --config-cache | -C | -disable-* | --disable-* \
  1132. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1133. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1134. | -with-* | --with-* | -without-* | --without-* | --x)
  1135. case "$ac_configure_args0 " in
  1136. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1137. esac
  1138. ;;
  1139. -* ) ac_must_keep_next=true ;;
  1140. esac
  1141. fi
  1142. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1143. # Get rid of the leading space.
  1144. ac_sep=" "
  1145. ;;
  1146. esac
  1147. done
  1148. done
  1149. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1150. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1151. # When interrupted or exit'd, cleanup temporary files, and complete
  1152. # config.log. We remove comments because anyway the quotes in there
  1153. # would cause problems or look ugly.
  1154. # WARNING: Be sure not to use single quotes in there, as some shells,
  1155. # such as our DU 5.0 friend, will then `close' the trap.
  1156. trap 'exit_status=$?
  1157. # Save into config.log some information that might help in debugging.
  1158. {
  1159. echo
  1160. cat <<\_ASBOX
  1161. ## ---------------- ##
  1162. ## Cache variables. ##
  1163. ## ---------------- ##
  1164. _ASBOX
  1165. echo
  1166. # The following way of writing the cache mishandles newlines in values,
  1167. {
  1168. (set) 2>&1 |
  1169. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1170. *ac_space=\ *)
  1171. sed -n \
  1172. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1173. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1174. ;;
  1175. *)
  1176. sed -n \
  1177. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1178. ;;
  1179. esac;
  1180. }
  1181. echo
  1182. cat <<\_ASBOX
  1183. ## ----------------- ##
  1184. ## Output variables. ##
  1185. ## ----------------- ##
  1186. _ASBOX
  1187. echo
  1188. for ac_var in $ac_subst_vars
  1189. do
  1190. eval ac_val=$`echo $ac_var`
  1191. echo "$ac_var='"'"'$ac_val'"'"'"
  1192. done | sort
  1193. echo
  1194. if test -n "$ac_subst_files"; then
  1195. cat <<\_ASBOX
  1196. ## ------------- ##
  1197. ## Output files. ##
  1198. ## ------------- ##
  1199. _ASBOX
  1200. echo
  1201. for ac_var in $ac_subst_files
  1202. do
  1203. eval ac_val=$`echo $ac_var`
  1204. echo "$ac_var='"'"'$ac_val'"'"'"
  1205. done | sort
  1206. echo
  1207. fi
  1208. if test -s confdefs.h; then
  1209. cat <<\_ASBOX
  1210. ## ----------- ##
  1211. ## confdefs.h. ##
  1212. ## ----------- ##
  1213. _ASBOX
  1214. echo
  1215. sed "/^$/d" confdefs.h | sort
  1216. echo
  1217. fi
  1218. test "$ac_signal" != 0 &&
  1219. echo "$as_me: caught signal $ac_signal"
  1220. echo "$as_me: exit $exit_status"
  1221. } >&5
  1222. rm -f core *.core &&
  1223. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1224. exit $exit_status
  1225. ' 0
  1226. for ac_signal in 1 2 13 15; do
  1227. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1228. done
  1229. ac_signal=0
  1230. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1231. rm -rf conftest* confdefs.h
  1232. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1233. echo >confdefs.h
  1234. # Predefined preprocessor variables.
  1235. cat >>confdefs.h <<_ACEOF
  1236. #define PACKAGE_NAME "$PACKAGE_NAME"
  1237. _ACEOF
  1238. cat >>confdefs.h <<_ACEOF
  1239. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1240. _ACEOF
  1241. cat >>confdefs.h <<_ACEOF
  1242. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1243. _ACEOF
  1244. cat >>confdefs.h <<_ACEOF
  1245. #define PACKAGE_STRING "$PACKAGE_STRING"
  1246. _ACEOF
  1247. cat >>confdefs.h <<_ACEOF
  1248. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1249. _ACEOF
  1250. # Let the site file select an alternate cache file if it wants to.
  1251. # Prefer explicitly selected file to automatically selected ones.
  1252. if test -z "$CONFIG_SITE"; then
  1253. if test "x$prefix" != xNONE; then
  1254. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1255. else
  1256. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1257. fi
  1258. fi
  1259. for ac_site_file in $CONFIG_SITE; do
  1260. if test -r "$ac_site_file"; then
  1261. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1262. echo "$as_me: loading site script $ac_site_file" >&6;}
  1263. sed 's/^/| /' "$ac_site_file" >&5
  1264. . "$ac_site_file"
  1265. fi
  1266. done
  1267. if test -r "$cache_file"; then
  1268. # Some versions of bash will fail to source /dev/null (special
  1269. # files actually), so we avoid doing that.
  1270. if test -f "$cache_file"; then
  1271. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1272. echo "$as_me: loading cache $cache_file" >&6;}
  1273. case $cache_file in
  1274. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1275. *) . ./$cache_file;;
  1276. esac
  1277. fi
  1278. else
  1279. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1280. echo "$as_me: creating cache $cache_file" >&6;}
  1281. >$cache_file
  1282. fi
  1283. # Check that the precious variables saved in the cache have kept the same
  1284. # value.
  1285. ac_cache_corrupted=false
  1286. for ac_var in `(set) 2>&1 |
  1287. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1288. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1289. eval ac_new_set=\$ac_env_${ac_var}_set
  1290. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1291. eval ac_new_val="\$ac_env_${ac_var}_value"
  1292. case $ac_old_set,$ac_new_set in
  1293. set,)
  1294. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1295. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1296. ac_cache_corrupted=: ;;
  1297. ,set)
  1298. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1299. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1300. ac_cache_corrupted=: ;;
  1301. ,);;
  1302. *)
  1303. if test "x$ac_old_val" != "x$ac_new_val"; then
  1304. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1305. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1306. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1307. echo "$as_me: former value: $ac_old_val" >&2;}
  1308. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1309. echo "$as_me: current value: $ac_new_val" >&2;}
  1310. ac_cache_corrupted=:
  1311. fi;;
  1312. esac
  1313. # Pass precious variables to config.status.
  1314. if test "$ac_new_set" = set; then
  1315. case $ac_new_val in
  1316. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1317. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1318. *) ac_arg=$ac_var=$ac_new_val ;;
  1319. esac
  1320. case " $ac_configure_args " in
  1321. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1322. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1323. esac
  1324. fi
  1325. done
  1326. if $ac_cache_corrupted; then
  1327. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1328. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1329. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1330. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1331. { (exit 1); exit 1; }; }
  1332. fi
  1333. ac_ext=c
  1334. ac_cpp='$CPP $CPPFLAGS'
  1335. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1336. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1337. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1338. # AC_CONFIG_HEADER must be called right after AC_INIT.
  1339. ac_config_headers="$ac_config_headers config.h"
  1340. am__api_version="1.9"
  1341. ac_aux_dir=
  1342. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1343. if test -f $ac_dir/install-sh; then
  1344. ac_aux_dir=$ac_dir
  1345. ac_install_sh="$ac_aux_dir/install-sh -c"
  1346. break
  1347. elif test -f $ac_dir/install.sh; then
  1348. ac_aux_dir=$ac_dir
  1349. ac_install_sh="$ac_aux_dir/install.sh -c"
  1350. break
  1351. elif test -f $ac_dir/shtool; then
  1352. ac_aux_dir=$ac_dir
  1353. ac_install_sh="$ac_aux_dir/shtool install -c"
  1354. break
  1355. fi
  1356. done
  1357. if test -z "$ac_aux_dir"; then
  1358. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1359. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1360. { (exit 1); exit 1; }; }
  1361. fi
  1362. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1363. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1364. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1365. # Find a good install program. We prefer a C program (faster),
  1366. # so one script is as good as another. But avoid the broken or
  1367. # incompatible versions:
  1368. # SysV /etc/install, /usr/sbin/install
  1369. # SunOS /usr/etc/install
  1370. # IRIX /sbin/install
  1371. # AIX /bin/install
  1372. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1373. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1374. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1375. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1376. # OS/2's system install, which has a completely different semantic
  1377. # ./install, which can be erroneously created by make from ./install.sh.
  1378. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1379. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1380. if test -z "$INSTALL"; then
  1381. if test "${ac_cv_path_install+set}" = set; then
  1382. echo $ECHO_N "(cached) $ECHO_C" >&6
  1383. else
  1384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1385. for as_dir in $PATH
  1386. do
  1387. IFS=$as_save_IFS
  1388. test -z "$as_dir" && as_dir=.
  1389. # Account for people who put trailing slashes in PATH elements.
  1390. case $as_dir/ in
  1391. ./ | .// | /cC/* | \
  1392. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1393. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1394. /usr/ucb/* ) ;;
  1395. *)
  1396. # OSF1 and SCO ODT 3.0 have their own names for install.
  1397. # Don't use installbsd from OSF since it installs stuff as root
  1398. # by default.
  1399. for ac_prog in ginstall scoinst install; do
  1400. for ac_exec_ext in '' $ac_executable_extensions; do
  1401. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1402. if test $ac_prog = install &&
  1403. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1404. # AIX install. It has an incompatible calling convention.
  1405. :
  1406. elif test $ac_prog = install &&
  1407. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1408. # program-specific install script used by HP pwplus--don't use.
  1409. :
  1410. else
  1411. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1412. break 3
  1413. fi
  1414. fi
  1415. done
  1416. done
  1417. ;;
  1418. esac
  1419. done
  1420. fi
  1421. if test "${ac_cv_path_install+set}" = set; then
  1422. INSTALL=$ac_cv_path_install
  1423. else
  1424. # As a last resort, use the slow shell script. We don't cache a
  1425. # path for INSTALL within a source directory, because that will
  1426. # break other packages using the cache if that directory is
  1427. # removed, or if the path is relative.
  1428. INSTALL=$ac_install_sh
  1429. fi
  1430. fi
  1431. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1432. echo "${ECHO_T}$INSTALL" >&6
  1433. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1434. # It thinks the first close brace ends the variable substitution.
  1435. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1436. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1437. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1438. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1439. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1440. # Just in case
  1441. sleep 1
  1442. echo timestamp > conftest.file
  1443. # Do `set' in a subshell so we don't clobber the current shell's
  1444. # arguments. Must try -L first in case configure is actually a
  1445. # symlink; some systems play weird games with the mod time of symlinks
  1446. # (eg FreeBSD returns the mod time of the symlink's containing
  1447. # directory).
  1448. if (
  1449. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1450. if test "$*" = "X"; then
  1451. # -L didn't work.
  1452. set X `ls -t $srcdir/configure conftest.file`
  1453. fi
  1454. rm -f conftest.file
  1455. if test "$*" != "X $srcdir/configure conftest.file" \
  1456. && test "$*" != "X conftest.file $srcdir/configure"; then
  1457. # If neither matched, then we have a broken ls. This can happen
  1458. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1459. # broken ls alias from the environment. This has actually
  1460. # happened. Such a system could not be considered "sane".
  1461. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1462. alias in your environment" >&5
  1463. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1464. alias in your environment" >&2;}
  1465. { (exit 1); exit 1; }; }
  1466. fi
  1467. test "$2" = conftest.file
  1468. )
  1469. then
  1470. # Ok.
  1471. :
  1472. else
  1473. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1474. Check your system clock" >&5
  1475. echo "$as_me: error: newly created file is older than distributed files!
  1476. Check your system clock" >&2;}
  1477. { (exit 1); exit 1; }; }
  1478. fi
  1479. echo "$as_me:$LINENO: result: yes" >&5
  1480. echo "${ECHO_T}yes" >&6
  1481. test "$program_prefix" != NONE &&
  1482. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1483. # Use a double $ so make ignores it.
  1484. test "$program_suffix" != NONE &&
  1485. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1486. # Double any \ or $. echo might interpret backslashes.
  1487. # By default was `s,x,x', remove it if useless.
  1488. cat <<\_ACEOF >conftest.sed
  1489. s/[\\$]/&&/g;s/;s,x,x,$//
  1490. _ACEOF
  1491. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1492. rm conftest.sed
  1493. # expand $ac_aux_dir to an absolute path
  1494. am_aux_dir=`cd $ac_aux_dir && pwd`
  1495. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1496. # Use eval to expand $SHELL
  1497. if eval "$MISSING --run true"; then
  1498. am_missing_run="$MISSING --run "
  1499. else
  1500. am_missing_run=
  1501. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1502. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1503. fi
  1504. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1505. # We used to keeping the `.' as first argument, in order to
  1506. # allow $(mkdir_p) to be used without argument. As in
  1507. # $(mkdir_p) $(somedir)
  1508. # where $(somedir) is conditionally defined. However this is wrong
  1509. # for two reasons:
  1510. # 1. if the package is installed by a user who cannot write `.'
  1511. # make install will fail,
  1512. # 2. the above comment should most certainly read
  1513. # $(mkdir_p) $(DESTDIR)$(somedir)
  1514. # so it does not work when $(somedir) is undefined and
  1515. # $(DESTDIR) is not.
  1516. # To support the latter case, we have to write
  1517. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1518. # so the `.' trick is pointless.
  1519. mkdir_p='mkdir -p --'
  1520. else
  1521. # On NextStep and OpenStep, the `mkdir' command does not
  1522. # recognize any option. It will interpret all options as
  1523. # directories to create, and then abort because `.' already
  1524. # exists.
  1525. for d in ./-p ./--version;
  1526. do
  1527. test -d $d && rmdir $d
  1528. done
  1529. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1530. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1531. mkdir_p='$(mkinstalldirs)'
  1532. else
  1533. mkdir_p='$(install_sh) -d'
  1534. fi
  1535. fi
  1536. for ac_prog in gawk mawk nawk awk
  1537. do
  1538. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1539. set dummy $ac_prog; ac_word=$2
  1540. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1541. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1542. if test "${ac_cv_prog_AWK+set}" = set; then
  1543. echo $ECHO_N "(cached) $ECHO_C" >&6
  1544. else
  1545. if test -n "$AWK"; then
  1546. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1547. else
  1548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1549. for as_dir in $PATH
  1550. do
  1551. IFS=$as_save_IFS
  1552. test -z "$as_dir" && as_dir=.
  1553. for ac_exec_ext in '' $ac_executable_extensions; do
  1554. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1555. ac_cv_prog_AWK="$ac_prog"
  1556. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1557. break 2
  1558. fi
  1559. done
  1560. done
  1561. fi
  1562. fi
  1563. AWK=$ac_cv_prog_AWK
  1564. if test -n "$AWK"; then
  1565. echo "$as_me:$LINENO: result: $AWK" >&5
  1566. echo "${ECHO_T}$AWK" >&6
  1567. else
  1568. echo "$as_me:$LINENO: result: no" >&5
  1569. echo "${ECHO_T}no" >&6
  1570. fi
  1571. test -n "$AWK" && break
  1572. done
  1573. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1574. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1575. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1576. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1577. echo $ECHO_N "(cached) $ECHO_C" >&6
  1578. else
  1579. cat >conftest.make <<\_ACEOF
  1580. all:
  1581. @echo 'ac_maketemp="$(MAKE)"'
  1582. _ACEOF
  1583. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1584. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1585. if test -n "$ac_maketemp"; then
  1586. eval ac_cv_prog_make_${ac_make}_set=yes
  1587. else
  1588. eval ac_cv_prog_make_${ac_make}_set=no
  1589. fi
  1590. rm -f conftest.make
  1591. fi
  1592. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1593. echo "$as_me:$LINENO: result: yes" >&5
  1594. echo "${ECHO_T}yes" >&6
  1595. SET_MAKE=
  1596. else
  1597. echo "$as_me:$LINENO: result: no" >&5
  1598. echo "${ECHO_T}no" >&6
  1599. SET_MAKE="MAKE=${MAKE-make}"
  1600. fi
  1601. rm -rf .tst 2>/dev/null
  1602. mkdir .tst 2>/dev/null
  1603. if test -d .tst; then
  1604. am__leading_dot=.
  1605. else
  1606. am__leading_dot=_
  1607. fi
  1608. rmdir .tst 2>/dev/null
  1609. # test to see if srcdir already configured
  1610. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1611. test -f $srcdir/config.status; then
  1612. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1613. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1614. { (exit 1); exit 1; }; }
  1615. fi
  1616. # test whether we have cygpath
  1617. if test -z "$CYGPATH_W"; then
  1618. if (cygpath --version) >/dev/null 2>/dev/null; then
  1619. CYGPATH_W='cygpath -w'
  1620. else
  1621. CYGPATH_W=echo
  1622. fi
  1623. fi
  1624. # Define the identity of the package.
  1625. PACKAGE='fedora-ds'
  1626. VERSION='1.1'
  1627. cat >>confdefs.h <<_ACEOF
  1628. #define PACKAGE "$PACKAGE"
  1629. _ACEOF
  1630. cat >>confdefs.h <<_ACEOF
  1631. #define VERSION "$VERSION"
  1632. _ACEOF
  1633. # Some tools Automake needs.
  1634. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1635. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1636. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1637. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1638. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1639. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1640. # Installed binaries are usually stripped using `strip' when the user
  1641. # run `make install-strip'. However `strip' might not be the right
  1642. # tool to use in cross-compilation environments, therefore Automake
  1643. # will honor the `STRIP' environment variable to overrule this program.
  1644. if test "$cross_compiling" != no; then
  1645. if test -n "$ac_tool_prefix"; then
  1646. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1647. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1648. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1649. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1650. if test "${ac_cv_prog_STRIP+set}" = set; then
  1651. echo $ECHO_N "(cached) $ECHO_C" >&6
  1652. else
  1653. if test -n "$STRIP"; then
  1654. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1655. else
  1656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1657. for as_dir in $PATH
  1658. do
  1659. IFS=$as_save_IFS
  1660. test -z "$as_dir" && as_dir=.
  1661. for ac_exec_ext in '' $ac_executable_extensions; do
  1662. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1663. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1664. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1665. break 2
  1666. fi
  1667. done
  1668. done
  1669. fi
  1670. fi
  1671. STRIP=$ac_cv_prog_STRIP
  1672. if test -n "$STRIP"; then
  1673. echo "$as_me:$LINENO: result: $STRIP" >&5
  1674. echo "${ECHO_T}$STRIP" >&6
  1675. else
  1676. echo "$as_me:$LINENO: result: no" >&5
  1677. echo "${ECHO_T}no" >&6
  1678. fi
  1679. fi
  1680. if test -z "$ac_cv_prog_STRIP"; then
  1681. ac_ct_STRIP=$STRIP
  1682. # Extract the first word of "strip", so it can be a program name with args.
  1683. set dummy strip; ac_word=$2
  1684. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1685. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1686. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1687. echo $ECHO_N "(cached) $ECHO_C" >&6
  1688. else
  1689. if test -n "$ac_ct_STRIP"; then
  1690. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1691. else
  1692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1693. for as_dir in $PATH
  1694. do
  1695. IFS=$as_save_IFS
  1696. test -z "$as_dir" && as_dir=.
  1697. for ac_exec_ext in '' $ac_executable_extensions; do
  1698. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1699. ac_cv_prog_ac_ct_STRIP="strip"
  1700. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1701. break 2
  1702. fi
  1703. done
  1704. done
  1705. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1706. fi
  1707. fi
  1708. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1709. if test -n "$ac_ct_STRIP"; then
  1710. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1711. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1712. else
  1713. echo "$as_me:$LINENO: result: no" >&5
  1714. echo "${ECHO_T}no" >&6
  1715. fi
  1716. STRIP=$ac_ct_STRIP
  1717. else
  1718. STRIP="$ac_cv_prog_STRIP"
  1719. fi
  1720. fi
  1721. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1722. # We need awk for the "check" target. The system "awk" is bad on
  1723. # some platforms.
  1724. # Always define AMTAR for backward compatibility.
  1725. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1726. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1727. echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1728. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  1729. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  1730. if test "${enable_maintainer_mode+set}" = set; then
  1731. enableval="$enable_maintainer_mode"
  1732. USE_MAINTAINER_MODE=$enableval
  1733. else
  1734. USE_MAINTAINER_MODE=no
  1735. fi;
  1736. echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1737. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  1738. if test $USE_MAINTAINER_MODE = yes; then
  1739. MAINTAINER_MODE_TRUE=
  1740. MAINTAINER_MODE_FALSE='#'
  1741. else
  1742. MAINTAINER_MODE_TRUE='#'
  1743. MAINTAINER_MODE_FALSE=
  1744. fi
  1745. MAINT=$MAINTAINER_MODE_TRUE
  1746. # Make sure we can run config.sub.
  1747. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1748. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1749. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1750. { (exit 1); exit 1; }; }
  1751. echo "$as_me:$LINENO: checking build system type" >&5
  1752. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1753. if test "${ac_cv_build+set}" = set; then
  1754. echo $ECHO_N "(cached) $ECHO_C" >&6
  1755. else
  1756. ac_cv_build_alias=$build_alias
  1757. test -z "$ac_cv_build_alias" &&
  1758. ac_cv_build_alias=`$ac_config_guess`
  1759. test -z "$ac_cv_build_alias" &&
  1760. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1761. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1762. { (exit 1); exit 1; }; }
  1763. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1764. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1765. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1766. { (exit 1); exit 1; }; }
  1767. fi
  1768. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1769. echo "${ECHO_T}$ac_cv_build" >&6
  1770. build=$ac_cv_build
  1771. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1772. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1773. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1774. echo "$as_me:$LINENO: checking host system type" >&5
  1775. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1776. if test "${ac_cv_host+set}" = set; then
  1777. echo $ECHO_N "(cached) $ECHO_C" >&6
  1778. else
  1779. ac_cv_host_alias=$host_alias
  1780. test -z "$ac_cv_host_alias" &&
  1781. ac_cv_host_alias=$ac_cv_build_alias
  1782. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1783. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1784. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1785. { (exit 1); exit 1; }; }
  1786. fi
  1787. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1788. echo "${ECHO_T}$ac_cv_host" >&6
  1789. host=$ac_cv_host
  1790. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1791. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1792. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1793. # Checks for programs.
  1794. ac_ext=cc
  1795. ac_cpp='$CXXCPP $CPPFLAGS'
  1796. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1797. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1798. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1799. if test -n "$ac_tool_prefix"; then
  1800. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1801. do
  1802. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1803. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1804. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1805. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1806. if test "${ac_cv_prog_CXX+set}" = set; then
  1807. echo $ECHO_N "(cached) $ECHO_C" >&6
  1808. else
  1809. if test -n "$CXX"; then
  1810. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1811. else
  1812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1813. for as_dir in $PATH
  1814. do
  1815. IFS=$as_save_IFS
  1816. test -z "$as_dir" && as_dir=.
  1817. for ac_exec_ext in '' $ac_executable_extensions; do
  1818. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1819. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1820. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1821. break 2
  1822. fi
  1823. done
  1824. done
  1825. fi
  1826. fi
  1827. CXX=$ac_cv_prog_CXX
  1828. if test -n "$CXX"; then
  1829. echo "$as_me:$LINENO: result: $CXX" >&5
  1830. echo "${ECHO_T}$CXX" >&6
  1831. else
  1832. echo "$as_me:$LINENO: result: no" >&5
  1833. echo "${ECHO_T}no" >&6
  1834. fi
  1835. test -n "$CXX" && break
  1836. done
  1837. fi
  1838. if test -z "$CXX"; then
  1839. ac_ct_CXX=$CXX
  1840. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1841. do
  1842. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1843. set dummy $ac_prog; ac_word=$2
  1844. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1845. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1846. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1847. echo $ECHO_N "(cached) $ECHO_C" >&6
  1848. else
  1849. if test -n "$ac_ct_CXX"; then
  1850. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1851. else
  1852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1853. for as_dir in $PATH
  1854. do
  1855. IFS=$as_save_IFS
  1856. test -z "$as_dir" && as_dir=.
  1857. for ac_exec_ext in '' $ac_executable_extensions; do
  1858. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1859. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1860. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1861. break 2
  1862. fi
  1863. done
  1864. done
  1865. fi
  1866. fi
  1867. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1868. if test -n "$ac_ct_CXX"; then
  1869. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1870. echo "${ECHO_T}$ac_ct_CXX" >&6
  1871. else
  1872. echo "$as_me:$LINENO: result: no" >&5
  1873. echo "${ECHO_T}no" >&6
  1874. fi
  1875. test -n "$ac_ct_CXX" && break
  1876. done
  1877. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1878. CXX=$ac_ct_CXX
  1879. fi
  1880. # Provide some information about the compiler.
  1881. echo "$as_me:$LINENO:" \
  1882. "checking for C++ compiler version" >&5
  1883. ac_compiler=`set X $ac_compile; echo $2`
  1884. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1885. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1886. ac_status=$?
  1887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1888. (exit $ac_status); }
  1889. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1890. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1891. ac_status=$?
  1892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1893. (exit $ac_status); }
  1894. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1895. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1896. ac_status=$?
  1897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1898. (exit $ac_status); }
  1899. cat >conftest.$ac_ext <<_ACEOF
  1900. /* confdefs.h. */
  1901. _ACEOF
  1902. cat confdefs.h >>conftest.$ac_ext
  1903. cat >>conftest.$ac_ext <<_ACEOF
  1904. /* end confdefs.h. */
  1905. int
  1906. main ()
  1907. {
  1908. ;
  1909. return 0;
  1910. }
  1911. _ACEOF
  1912. ac_clean_files_save=$ac_clean_files
  1913. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1914. # Try to create an executable without -o first, disregard a.out.
  1915. # It will help us diagnose broken compilers, and finding out an intuition
  1916. # of exeext.
  1917. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1918. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  1919. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1920. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1921. (eval $ac_link_default) 2>&5
  1922. ac_status=$?
  1923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1924. (exit $ac_status); }; then
  1925. # Find the output, starting from the most likely. This scheme is
  1926. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1927. # resort.
  1928. # Be careful to initialize this variable, since it used to be cached.
  1929. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1930. ac_cv_exeext=
  1931. # b.out is created by i960 compilers.
  1932. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1933. do
  1934. test -f "$ac_file" || continue
  1935. case $ac_file in
  1936. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1937. ;;
  1938. conftest.$ac_ext )
  1939. # This is the source file.
  1940. ;;
  1941. [ab].out )
  1942. # We found the default executable, but exeext='' is most
  1943. # certainly right.
  1944. break;;
  1945. *.* )
  1946. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1947. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1948. # but it would be cool to find out if it's true. Does anybody
  1949. # maintain Libtool? --akim.
  1950. export ac_cv_exeext
  1951. break;;
  1952. * )
  1953. break;;
  1954. esac
  1955. done
  1956. else
  1957. echo "$as_me: failed program was:" >&5
  1958. sed 's/^/| /' conftest.$ac_ext >&5
  1959. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1960. See \`config.log' for more details." >&5
  1961. echo "$as_me: error: C++ compiler cannot create executables
  1962. See \`config.log' for more details." >&2;}
  1963. { (exit 77); exit 77; }; }
  1964. fi
  1965. ac_exeext=$ac_cv_exeext
  1966. echo "$as_me:$LINENO: result: $ac_file" >&5
  1967. echo "${ECHO_T}$ac_file" >&6
  1968. # Check the compiler produces executables we can run. If not, either
  1969. # the compiler is broken, or we cross compile.
  1970. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1971. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  1972. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1973. # If not cross compiling, check that we can run a simple program.
  1974. if test "$cross_compiling" != yes; then
  1975. if { ac_try='./$ac_file'
  1976. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1977. (eval $ac_try) 2>&5
  1978. ac_status=$?
  1979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1980. (exit $ac_status); }; }; then
  1981. cross_compiling=no
  1982. else
  1983. if test "$cross_compiling" = maybe; then
  1984. cross_compiling=yes
  1985. else
  1986. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1987. If you meant to cross compile, use \`--host'.
  1988. See \`config.log' for more details." >&5
  1989. echo "$as_me: error: cannot run C++ compiled programs.
  1990. If you meant to cross compile, use \`--host'.
  1991. See \`config.log' for more details." >&2;}
  1992. { (exit 1); exit 1; }; }
  1993. fi
  1994. fi
  1995. fi
  1996. echo "$as_me:$LINENO: result: yes" >&5
  1997. echo "${ECHO_T}yes" >&6
  1998. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1999. ac_clean_files=$ac_clean_files_save
  2000. # Check the compiler produces executables we can run. If not, either
  2001. # the compiler is broken, or we cross compile.
  2002. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2003. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2004. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2005. echo "${ECHO_T}$cross_compiling" >&6
  2006. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2007. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2008. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2009. (eval $ac_link) 2>&5
  2010. ac_status=$?
  2011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2012. (exit $ac_status); }; then
  2013. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2014. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2015. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2016. # `rm'.
  2017. for ac_file in conftest.exe conftest conftest.*; do
  2018. test -f "$ac_file" || continue
  2019. case $ac_file in
  2020. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2021. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2022. export ac_cv_exeext
  2023. break;;
  2024. * ) break;;
  2025. esac
  2026. done
  2027. else
  2028. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2029. See \`config.log' for more details." >&5
  2030. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2031. See \`config.log' for more details." >&2;}
  2032. { (exit 1); exit 1; }; }
  2033. fi
  2034. rm -f conftest$ac_cv_exeext
  2035. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2036. echo "${ECHO_T}$ac_cv_exeext" >&6
  2037. rm -f conftest.$ac_ext
  2038. EXEEXT=$ac_cv_exeext
  2039. ac_exeext=$EXEEXT
  2040. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2041. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2042. if test "${ac_cv_objext+set}" = set; then
  2043. echo $ECHO_N "(cached) $ECHO_C" >&6
  2044. else
  2045. cat >conftest.$ac_ext <<_ACEOF
  2046. /* confdefs.h. */
  2047. _ACEOF
  2048. cat confdefs.h >>conftest.$ac_ext
  2049. cat >>conftest.$ac_ext <<_ACEOF
  2050. /* end confdefs.h. */
  2051. int
  2052. main ()
  2053. {
  2054. ;
  2055. return 0;
  2056. }
  2057. _ACEOF
  2058. rm -f conftest.o conftest.obj
  2059. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2060. (eval $ac_compile) 2>&5
  2061. ac_status=$?
  2062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2063. (exit $ac_status); }; then
  2064. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2065. case $ac_file in
  2066. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2067. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2068. break;;
  2069. esac
  2070. done
  2071. else
  2072. echo "$as_me: failed program was:" >&5
  2073. sed 's/^/| /' conftest.$ac_ext >&5
  2074. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2075. See \`config.log' for more details." >&5
  2076. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2077. See \`config.log' for more details." >&2;}
  2078. { (exit 1); exit 1; }; }
  2079. fi
  2080. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2081. fi
  2082. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2083. echo "${ECHO_T}$ac_cv_objext" >&6
  2084. OBJEXT=$ac_cv_objext
  2085. ac_objext=$OBJEXT
  2086. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2087. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  2088. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2089. echo $ECHO_N "(cached) $ECHO_C" >&6
  2090. else
  2091. cat >conftest.$ac_ext <<_ACEOF
  2092. /* confdefs.h. */
  2093. _ACEOF
  2094. cat confdefs.h >>conftest.$ac_ext
  2095. cat >>conftest.$ac_ext <<_ACEOF
  2096. /* end confdefs.h. */
  2097. int
  2098. main ()
  2099. {
  2100. #ifndef __GNUC__
  2101. choke me
  2102. #endif
  2103. ;
  2104. return 0;
  2105. }
  2106. _ACEOF
  2107. rm -f conftest.$ac_objext
  2108. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2109. (eval $ac_compile) 2>conftest.er1
  2110. ac_status=$?
  2111. grep -v '^ *+' conftest.er1 >conftest.err
  2112. rm -f conftest.er1
  2113. cat conftest.err >&5
  2114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2115. (exit $ac_status); } &&
  2116. { ac_try='test -z "$ac_cxx_werror_flag"
  2117. || test ! -s conftest.err'
  2118. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2119. (eval $ac_try) 2>&5
  2120. ac_status=$?
  2121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2122. (exit $ac_status); }; } &&
  2123. { ac_try='test -s conftest.$ac_objext'
  2124. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2125. (eval $ac_try) 2>&5
  2126. ac_status=$?
  2127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2128. (exit $ac_status); }; }; then
  2129. ac_compiler_gnu=yes
  2130. else
  2131. echo "$as_me: failed program was:" >&5
  2132. sed 's/^/| /' conftest.$ac_ext >&5
  2133. ac_compiler_gnu=no
  2134. fi
  2135. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2136. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2137. fi
  2138. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2139. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2140. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2141. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2142. ac_save_CXXFLAGS=$CXXFLAGS
  2143. CXXFLAGS="-g"
  2144. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2145. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2146. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2147. echo $ECHO_N "(cached) $ECHO_C" >&6
  2148. else
  2149. cat >conftest.$ac_ext <<_ACEOF
  2150. /* confdefs.h. */
  2151. _ACEOF
  2152. cat confdefs.h >>conftest.$ac_ext
  2153. cat >>conftest.$ac_ext <<_ACEOF
  2154. /* end confdefs.h. */
  2155. int
  2156. main ()
  2157. {
  2158. ;
  2159. return 0;
  2160. }
  2161. _ACEOF
  2162. rm -f conftest.$ac_objext
  2163. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2164. (eval $ac_compile) 2>conftest.er1
  2165. ac_status=$?
  2166. grep -v '^ *+' conftest.er1 >conftest.err
  2167. rm -f conftest.er1
  2168. cat conftest.err >&5
  2169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2170. (exit $ac_status); } &&
  2171. { ac_try='test -z "$ac_cxx_werror_flag"
  2172. || test ! -s conftest.err'
  2173. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2174. (eval $ac_try) 2>&5
  2175. ac_status=$?
  2176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2177. (exit $ac_status); }; } &&
  2178. { ac_try='test -s conftest.$ac_objext'
  2179. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2180. (eval $ac_try) 2>&5
  2181. ac_status=$?
  2182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2183. (exit $ac_status); }; }; then
  2184. ac_cv_prog_cxx_g=yes
  2185. else
  2186. echo "$as_me: failed program was:" >&5
  2187. sed 's/^/| /' conftest.$ac_ext >&5
  2188. ac_cv_prog_cxx_g=no
  2189. fi
  2190. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2191. fi
  2192. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2193. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2194. if test "$ac_test_CXXFLAGS" = set; then
  2195. CXXFLAGS=$ac_save_CXXFLAGS
  2196. elif test $ac_cv_prog_cxx_g = yes; then
  2197. if test "$GXX" = yes; then
  2198. CXXFLAGS="-g -O2"
  2199. else
  2200. CXXFLAGS="-g"
  2201. fi
  2202. else
  2203. if test "$GXX" = yes; then
  2204. CXXFLAGS="-O2"
  2205. else
  2206. CXXFLAGS=
  2207. fi
  2208. fi
  2209. for ac_declaration in \
  2210. '' \
  2211. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2212. 'extern "C" void std::exit (int); using std::exit;' \
  2213. 'extern "C" void exit (int) throw ();' \
  2214. 'extern "C" void exit (int);' \
  2215. 'void exit (int);'
  2216. do
  2217. cat >conftest.$ac_ext <<_ACEOF
  2218. /* confdefs.h. */
  2219. _ACEOF
  2220. cat confdefs.h >>conftest.$ac_ext
  2221. cat >>conftest.$ac_ext <<_ACEOF
  2222. /* end confdefs.h. */
  2223. $ac_declaration
  2224. #include <stdlib.h>
  2225. int
  2226. main ()
  2227. {
  2228. exit (42);
  2229. ;
  2230. return 0;
  2231. }
  2232. _ACEOF
  2233. rm -f conftest.$ac_objext
  2234. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2235. (eval $ac_compile) 2>conftest.er1
  2236. ac_status=$?
  2237. grep -v '^ *+' conftest.er1 >conftest.err
  2238. rm -f conftest.er1
  2239. cat conftest.err >&5
  2240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2241. (exit $ac_status); } &&
  2242. { ac_try='test -z "$ac_cxx_werror_flag"
  2243. || test ! -s conftest.err'
  2244. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2245. (eval $ac_try) 2>&5
  2246. ac_status=$?
  2247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2248. (exit $ac_status); }; } &&
  2249. { ac_try='test -s conftest.$ac_objext'
  2250. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2251. (eval $ac_try) 2>&5
  2252. ac_status=$?
  2253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2254. (exit $ac_status); }; }; then
  2255. :
  2256. else
  2257. echo "$as_me: failed program was:" >&5
  2258. sed 's/^/| /' conftest.$ac_ext >&5
  2259. continue
  2260. fi
  2261. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2262. cat >conftest.$ac_ext <<_ACEOF
  2263. /* confdefs.h. */
  2264. _ACEOF
  2265. cat confdefs.h >>conftest.$ac_ext
  2266. cat >>conftest.$ac_ext <<_ACEOF
  2267. /* end confdefs.h. */
  2268. $ac_declaration
  2269. int
  2270. main ()
  2271. {
  2272. exit (42);
  2273. ;
  2274. return 0;
  2275. }
  2276. _ACEOF
  2277. rm -f conftest.$ac_objext
  2278. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2279. (eval $ac_compile) 2>conftest.er1
  2280. ac_status=$?
  2281. grep -v '^ *+' conftest.er1 >conftest.err
  2282. rm -f conftest.er1
  2283. cat conftest.err >&5
  2284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2285. (exit $ac_status); } &&
  2286. { ac_try='test -z "$ac_cxx_werror_flag"
  2287. || test ! -s conftest.err'
  2288. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2289. (eval $ac_try) 2>&5
  2290. ac_status=$?
  2291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2292. (exit $ac_status); }; } &&
  2293. { ac_try='test -s conftest.$ac_objext'
  2294. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2295. (eval $ac_try) 2>&5
  2296. ac_status=$?
  2297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2298. (exit $ac_status); }; }; then
  2299. break
  2300. else
  2301. echo "$as_me: failed program was:" >&5
  2302. sed 's/^/| /' conftest.$ac_ext >&5
  2303. fi
  2304. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2305. done
  2306. rm -f conftest*
  2307. if test -n "$ac_declaration"; then
  2308. echo '#ifdef __cplusplus' >>confdefs.h
  2309. echo $ac_declaration >>confdefs.h
  2310. echo '#endif' >>confdefs.h
  2311. fi
  2312. ac_ext=c
  2313. ac_cpp='$CPP $CPPFLAGS'
  2314. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2315. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2316. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2317. DEPDIR="${am__leading_dot}deps"
  2318. ac_config_commands="$ac_config_commands depfiles"
  2319. am_make=${MAKE-make}
  2320. cat > confinc << 'END'
  2321. am__doit:
  2322. @echo done
  2323. .PHONY: am__doit
  2324. END
  2325. # If we don't find an include directive, just comment out the code.
  2326. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2327. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2328. am__include="#"
  2329. am__quote=
  2330. _am_result=none
  2331. # First try GNU make style include.
  2332. echo "include confinc" > confmf
  2333. # We grep out `Entering directory' and `Leaving directory'
  2334. # messages which can occur if `w' ends up in MAKEFLAGS.
  2335. # In particular we don't look at `^make:' because GNU make might
  2336. # be invoked under some other name (usually "gmake"), in which
  2337. # case it prints its new name instead of `make'.
  2338. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2339. am__include=include
  2340. am__quote=
  2341. _am_result=GNU
  2342. fi
  2343. # Now try BSD make style include.
  2344. if test "$am__include" = "#"; then
  2345. echo '.include "confinc"' > confmf
  2346. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2347. am__include=.include
  2348. am__quote="\""
  2349. _am_result=BSD
  2350. fi
  2351. fi
  2352. echo "$as_me:$LINENO: result: $_am_result" >&5
  2353. echo "${ECHO_T}$_am_result" >&6
  2354. rm -f confinc confmf
  2355. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2356. if test "${enable_dependency_tracking+set}" = set; then
  2357. enableval="$enable_dependency_tracking"
  2358. fi;
  2359. if test "x$enable_dependency_tracking" != xno; then
  2360. am_depcomp="$ac_aux_dir/depcomp"
  2361. AMDEPBACKSLASH='\'
  2362. fi
  2363. if test "x$enable_dependency_tracking" != xno; then
  2364. AMDEP_TRUE=
  2365. AMDEP_FALSE='#'
  2366. else
  2367. AMDEP_TRUE='#'
  2368. AMDEP_FALSE=
  2369. fi
  2370. depcc="$CXX" am_compiler_list=
  2371. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2372. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2373. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2374. echo $ECHO_N "(cached) $ECHO_C" >&6
  2375. else
  2376. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2377. # We make a subdir and do the tests there. Otherwise we can end up
  2378. # making bogus files that we don't know about and never remove. For
  2379. # instance it was reported that on HP-UX the gcc test will end up
  2380. # making a dummy file named `D' -- because `-MD' means `put the output
  2381. # in D'.
  2382. mkdir conftest.dir
  2383. # Copy depcomp to subdir because otherwise we won't find it if we're
  2384. # using a relative directory.
  2385. cp "$am_depcomp" conftest.dir
  2386. cd conftest.dir
  2387. # We will build objects and dependencies in a subdirectory because
  2388. # it helps to detect inapplicable dependency modes. For instance
  2389. # both Tru64's cc and ICC support -MD to output dependencies as a
  2390. # side effect of compilation, but ICC will put the dependencies in
  2391. # the current directory while Tru64 will put them in the object
  2392. # directory.
  2393. mkdir sub
  2394. am_cv_CXX_dependencies_compiler_type=none
  2395. if test "$am_compiler_list" = ""; then
  2396. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2397. fi
  2398. for depmode in $am_compiler_list; do
  2399. # Setup a source with many dependencies, because some compilers
  2400. # like to wrap large dependency lists on column 80 (with \), and
  2401. # we should not choose a depcomp mode which is confused by this.
  2402. #
  2403. # We need to recreate these files for each test, as the compiler may
  2404. # overwrite some of them when testing with obscure command lines.
  2405. # This happens at least with the AIX C compiler.
  2406. : > sub/conftest.c
  2407. for i in 1 2 3 4 5 6; do
  2408. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2409. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2410. # Solaris 8's {/usr,}/bin/sh.
  2411. touch sub/conftst$i.h
  2412. done
  2413. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2414. case $depmode in
  2415. nosideeffect)
  2416. # after this tag, mechanisms are not by side-effect, so they'll
  2417. # only be used when explicitly requested
  2418. if test "x$enable_dependency_tracking" = xyes; then
  2419. continue
  2420. else
  2421. break
  2422. fi
  2423. ;;
  2424. none) break ;;
  2425. esac
  2426. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2427. # mode. It turns out that the SunPro C++ compiler does not properly
  2428. # handle `-M -o', and we need to detect this.
  2429. if depmode=$depmode \
  2430. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2431. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2432. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2433. >/dev/null 2>conftest.err &&
  2434. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2435. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2436. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2437. # icc doesn't choke on unknown options, it will just issue warnings
  2438. # or remarks (even with -Werror). So we grep stderr for any message
  2439. # that says an option was ignored or not supported.
  2440. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2441. # icc: Command line warning: ignoring option '-M'; no argument required
  2442. # The diagnosis changed in icc 8.0:
  2443. # icc: Command line remark: option '-MP' not supported
  2444. if (grep 'ignoring option' conftest.err ||
  2445. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2446. am_cv_CXX_dependencies_compiler_type=$depmode
  2447. break
  2448. fi
  2449. fi
  2450. done
  2451. cd ..
  2452. rm -rf conftest.dir
  2453. else
  2454. am_cv_CXX_dependencies_compiler_type=none
  2455. fi
  2456. fi
  2457. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2458. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  2459. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2460. if
  2461. test "x$enable_dependency_tracking" != xno \
  2462. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2463. am__fastdepCXX_TRUE=
  2464. am__fastdepCXX_FALSE='#'
  2465. else
  2466. am__fastdepCXX_TRUE='#'
  2467. am__fastdepCXX_FALSE=
  2468. fi
  2469. ac_ext=c
  2470. ac_cpp='$CPP $CPPFLAGS'
  2471. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2472. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2473. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2474. if test -n "$ac_tool_prefix"; then
  2475. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2476. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2477. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2478. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2479. if test "${ac_cv_prog_CC+set}" = set; then
  2480. echo $ECHO_N "(cached) $ECHO_C" >&6
  2481. else
  2482. if test -n "$CC"; then
  2483. ac_cv_prog_CC="$CC" # Let the user override the test.
  2484. else
  2485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2486. for as_dir in $PATH
  2487. do
  2488. IFS=$as_save_IFS
  2489. test -z "$as_dir" && as_dir=.
  2490. for ac_exec_ext in '' $ac_executable_extensions; do
  2491. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2492. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2493. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2494. break 2
  2495. fi
  2496. done
  2497. done
  2498. fi
  2499. fi
  2500. CC=$ac_cv_prog_CC
  2501. if test -n "$CC"; then
  2502. echo "$as_me:$LINENO: result: $CC" >&5
  2503. echo "${ECHO_T}$CC" >&6
  2504. else
  2505. echo "$as_me:$LINENO: result: no" >&5
  2506. echo "${ECHO_T}no" >&6
  2507. fi
  2508. fi
  2509. if test -z "$ac_cv_prog_CC"; then
  2510. ac_ct_CC=$CC
  2511. # Extract the first word of "gcc", so it can be a program name with args.
  2512. set dummy gcc; ac_word=$2
  2513. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2514. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2515. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2516. echo $ECHO_N "(cached) $ECHO_C" >&6
  2517. else
  2518. if test -n "$ac_ct_CC"; then
  2519. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2520. else
  2521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2522. for as_dir in $PATH
  2523. do
  2524. IFS=$as_save_IFS
  2525. test -z "$as_dir" && as_dir=.
  2526. for ac_exec_ext in '' $ac_executable_extensions; do
  2527. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2528. ac_cv_prog_ac_ct_CC="gcc"
  2529. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2530. break 2
  2531. fi
  2532. done
  2533. done
  2534. fi
  2535. fi
  2536. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2537. if test -n "$ac_ct_CC"; then
  2538. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2539. echo "${ECHO_T}$ac_ct_CC" >&6
  2540. else
  2541. echo "$as_me:$LINENO: result: no" >&5
  2542. echo "${ECHO_T}no" >&6
  2543. fi
  2544. CC=$ac_ct_CC
  2545. else
  2546. CC="$ac_cv_prog_CC"
  2547. fi
  2548. if test -z "$CC"; then
  2549. if test -n "$ac_tool_prefix"; then
  2550. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2551. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2552. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2553. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2554. if test "${ac_cv_prog_CC+set}" = set; then
  2555. echo $ECHO_N "(cached) $ECHO_C" >&6
  2556. else
  2557. if test -n "$CC"; then
  2558. ac_cv_prog_CC="$CC" # Let the user override the test.
  2559. else
  2560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2561. for as_dir in $PATH
  2562. do
  2563. IFS=$as_save_IFS
  2564. test -z "$as_dir" && as_dir=.
  2565. for ac_exec_ext in '' $ac_executable_extensions; do
  2566. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2567. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2568. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2569. break 2
  2570. fi
  2571. done
  2572. done
  2573. fi
  2574. fi
  2575. CC=$ac_cv_prog_CC
  2576. if test -n "$CC"; then
  2577. echo "$as_me:$LINENO: result: $CC" >&5
  2578. echo "${ECHO_T}$CC" >&6
  2579. else
  2580. echo "$as_me:$LINENO: result: no" >&5
  2581. echo "${ECHO_T}no" >&6
  2582. fi
  2583. fi
  2584. if test -z "$ac_cv_prog_CC"; then
  2585. ac_ct_CC=$CC
  2586. # Extract the first word of "cc", so it can be a program name with args.
  2587. set dummy cc; ac_word=$2
  2588. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2589. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2590. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2591. echo $ECHO_N "(cached) $ECHO_C" >&6
  2592. else
  2593. if test -n "$ac_ct_CC"; then
  2594. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2595. else
  2596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2597. for as_dir in $PATH
  2598. do
  2599. IFS=$as_save_IFS
  2600. test -z "$as_dir" && as_dir=.
  2601. for ac_exec_ext in '' $ac_executable_extensions; do
  2602. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2603. ac_cv_prog_ac_ct_CC="cc"
  2604. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2605. break 2
  2606. fi
  2607. done
  2608. done
  2609. fi
  2610. fi
  2611. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2612. if test -n "$ac_ct_CC"; then
  2613. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2614. echo "${ECHO_T}$ac_ct_CC" >&6
  2615. else
  2616. echo "$as_me:$LINENO: result: no" >&5
  2617. echo "${ECHO_T}no" >&6
  2618. fi
  2619. CC=$ac_ct_CC
  2620. else
  2621. CC="$ac_cv_prog_CC"
  2622. fi
  2623. fi
  2624. if test -z "$CC"; then
  2625. # Extract the first word of "cc", so it can be a program name with args.
  2626. set dummy cc; ac_word=$2
  2627. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2628. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2629. if test "${ac_cv_prog_CC+set}" = set; then
  2630. echo $ECHO_N "(cached) $ECHO_C" >&6
  2631. else
  2632. if test -n "$CC"; then
  2633. ac_cv_prog_CC="$CC" # Let the user override the test.
  2634. else
  2635. ac_prog_rejected=no
  2636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2637. for as_dir in $PATH
  2638. do
  2639. IFS=$as_save_IFS
  2640. test -z "$as_dir" && as_dir=.
  2641. for ac_exec_ext in '' $ac_executable_extensions; do
  2642. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2643. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2644. ac_prog_rejected=yes
  2645. continue
  2646. fi
  2647. ac_cv_prog_CC="cc"
  2648. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2649. break 2
  2650. fi
  2651. done
  2652. done
  2653. if test $ac_prog_rejected = yes; then
  2654. # We found a bogon in the path, so make sure we never use it.
  2655. set dummy $ac_cv_prog_CC
  2656. shift
  2657. if test $# != 0; then
  2658. # We chose a different compiler from the bogus one.
  2659. # However, it has the same basename, so the bogon will be chosen
  2660. # first if we set CC to just the basename; use the full file name.
  2661. shift
  2662. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2663. fi
  2664. fi
  2665. fi
  2666. fi
  2667. CC=$ac_cv_prog_CC
  2668. if test -n "$CC"; then
  2669. echo "$as_me:$LINENO: result: $CC" >&5
  2670. echo "${ECHO_T}$CC" >&6
  2671. else
  2672. echo "$as_me:$LINENO: result: no" >&5
  2673. echo "${ECHO_T}no" >&6
  2674. fi
  2675. fi
  2676. if test -z "$CC"; then
  2677. if test -n "$ac_tool_prefix"; then
  2678. for ac_prog in cl
  2679. do
  2680. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2681. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2682. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2683. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2684. if test "${ac_cv_prog_CC+set}" = set; then
  2685. echo $ECHO_N "(cached) $ECHO_C" >&6
  2686. else
  2687. if test -n "$CC"; then
  2688. ac_cv_prog_CC="$CC" # Let the user override the test.
  2689. else
  2690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2691. for as_dir in $PATH
  2692. do
  2693. IFS=$as_save_IFS
  2694. test -z "$as_dir" && as_dir=.
  2695. for ac_exec_ext in '' $ac_executable_extensions; do
  2696. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2697. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2698. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2699. break 2
  2700. fi
  2701. done
  2702. done
  2703. fi
  2704. fi
  2705. CC=$ac_cv_prog_CC
  2706. if test -n "$CC"; then
  2707. echo "$as_me:$LINENO: result: $CC" >&5
  2708. echo "${ECHO_T}$CC" >&6
  2709. else
  2710. echo "$as_me:$LINENO: result: no" >&5
  2711. echo "${ECHO_T}no" >&6
  2712. fi
  2713. test -n "$CC" && break
  2714. done
  2715. fi
  2716. if test -z "$CC"; then
  2717. ac_ct_CC=$CC
  2718. for ac_prog in cl
  2719. do
  2720. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2721. set dummy $ac_prog; ac_word=$2
  2722. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2723. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2724. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2725. echo $ECHO_N "(cached) $ECHO_C" >&6
  2726. else
  2727. if test -n "$ac_ct_CC"; then
  2728. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2729. else
  2730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2731. for as_dir in $PATH
  2732. do
  2733. IFS=$as_save_IFS
  2734. test -z "$as_dir" && as_dir=.
  2735. for ac_exec_ext in '' $ac_executable_extensions; do
  2736. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2737. ac_cv_prog_ac_ct_CC="$ac_prog"
  2738. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2739. break 2
  2740. fi
  2741. done
  2742. done
  2743. fi
  2744. fi
  2745. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2746. if test -n "$ac_ct_CC"; then
  2747. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2748. echo "${ECHO_T}$ac_ct_CC" >&6
  2749. else
  2750. echo "$as_me:$LINENO: result: no" >&5
  2751. echo "${ECHO_T}no" >&6
  2752. fi
  2753. test -n "$ac_ct_CC" && break
  2754. done
  2755. CC=$ac_ct_CC
  2756. fi
  2757. fi
  2758. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2759. See \`config.log' for more details." >&5
  2760. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2761. See \`config.log' for more details." >&2;}
  2762. { (exit 1); exit 1; }; }
  2763. # Provide some information about the compiler.
  2764. echo "$as_me:$LINENO:" \
  2765. "checking for C compiler version" >&5
  2766. ac_compiler=`set X $ac_compile; echo $2`
  2767. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2768. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2769. ac_status=$?
  2770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2771. (exit $ac_status); }
  2772. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2773. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2774. ac_status=$?
  2775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2776. (exit $ac_status); }
  2777. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2778. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2779. ac_status=$?
  2780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2781. (exit $ac_status); }
  2782. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2783. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2784. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2785. echo $ECHO_N "(cached) $ECHO_C" >&6
  2786. else
  2787. cat >conftest.$ac_ext <<_ACEOF
  2788. /* confdefs.h. */
  2789. _ACEOF
  2790. cat confdefs.h >>conftest.$ac_ext
  2791. cat >>conftest.$ac_ext <<_ACEOF
  2792. /* end confdefs.h. */
  2793. int
  2794. main ()
  2795. {
  2796. #ifndef __GNUC__
  2797. choke me
  2798. #endif
  2799. ;
  2800. return 0;
  2801. }
  2802. _ACEOF
  2803. rm -f conftest.$ac_objext
  2804. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2805. (eval $ac_compile) 2>conftest.er1
  2806. ac_status=$?
  2807. grep -v '^ *+' conftest.er1 >conftest.err
  2808. rm -f conftest.er1
  2809. cat conftest.err >&5
  2810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2811. (exit $ac_status); } &&
  2812. { ac_try='test -z "$ac_c_werror_flag"
  2813. || test ! -s conftest.err'
  2814. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2815. (eval $ac_try) 2>&5
  2816. ac_status=$?
  2817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2818. (exit $ac_status); }; } &&
  2819. { ac_try='test -s conftest.$ac_objext'
  2820. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2821. (eval $ac_try) 2>&5
  2822. ac_status=$?
  2823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2824. (exit $ac_status); }; }; then
  2825. ac_compiler_gnu=yes
  2826. else
  2827. echo "$as_me: failed program was:" >&5
  2828. sed 's/^/| /' conftest.$ac_ext >&5
  2829. ac_compiler_gnu=no
  2830. fi
  2831. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2832. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2833. fi
  2834. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2835. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2836. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2837. ac_test_CFLAGS=${CFLAGS+set}
  2838. ac_save_CFLAGS=$CFLAGS
  2839. CFLAGS="-g"
  2840. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2841. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2842. if test "${ac_cv_prog_cc_g+set}" = set; then
  2843. echo $ECHO_N "(cached) $ECHO_C" >&6
  2844. else
  2845. cat >conftest.$ac_ext <<_ACEOF
  2846. /* confdefs.h. */
  2847. _ACEOF
  2848. cat confdefs.h >>conftest.$ac_ext
  2849. cat >>conftest.$ac_ext <<_ACEOF
  2850. /* end confdefs.h. */
  2851. int
  2852. main ()
  2853. {
  2854. ;
  2855. return 0;
  2856. }
  2857. _ACEOF
  2858. rm -f conftest.$ac_objext
  2859. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2860. (eval $ac_compile) 2>conftest.er1
  2861. ac_status=$?
  2862. grep -v '^ *+' conftest.er1 >conftest.err
  2863. rm -f conftest.er1
  2864. cat conftest.err >&5
  2865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2866. (exit $ac_status); } &&
  2867. { ac_try='test -z "$ac_c_werror_flag"
  2868. || test ! -s conftest.err'
  2869. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2870. (eval $ac_try) 2>&5
  2871. ac_status=$?
  2872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2873. (exit $ac_status); }; } &&
  2874. { ac_try='test -s conftest.$ac_objext'
  2875. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2876. (eval $ac_try) 2>&5
  2877. ac_status=$?
  2878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2879. (exit $ac_status); }; }; then
  2880. ac_cv_prog_cc_g=yes
  2881. else
  2882. echo "$as_me: failed program was:" >&5
  2883. sed 's/^/| /' conftest.$ac_ext >&5
  2884. ac_cv_prog_cc_g=no
  2885. fi
  2886. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2887. fi
  2888. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2889. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2890. if test "$ac_test_CFLAGS" = set; then
  2891. CFLAGS=$ac_save_CFLAGS
  2892. elif test $ac_cv_prog_cc_g = yes; then
  2893. if test "$GCC" = yes; then
  2894. CFLAGS="-g -O2"
  2895. else
  2896. CFLAGS="-g"
  2897. fi
  2898. else
  2899. if test "$GCC" = yes; then
  2900. CFLAGS="-O2"
  2901. else
  2902. CFLAGS=
  2903. fi
  2904. fi
  2905. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2906. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2907. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2908. echo $ECHO_N "(cached) $ECHO_C" >&6
  2909. else
  2910. ac_cv_prog_cc_stdc=no
  2911. ac_save_CC=$CC
  2912. cat >conftest.$ac_ext <<_ACEOF
  2913. /* confdefs.h. */
  2914. _ACEOF
  2915. cat confdefs.h >>conftest.$ac_ext
  2916. cat >>conftest.$ac_ext <<_ACEOF
  2917. /* end confdefs.h. */
  2918. #include <stdarg.h>
  2919. #include <stdio.h>
  2920. #include <sys/types.h>
  2921. #include <sys/stat.h>
  2922. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2923. struct buf { int x; };
  2924. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2925. static char *e (p, i)
  2926. char **p;
  2927. int i;
  2928. {
  2929. return p[i];
  2930. }
  2931. static char *f (char * (*g) (char **, int), char **p, ...)
  2932. {
  2933. char *s;
  2934. va_list v;
  2935. va_start (v,p);
  2936. s = g (p, va_arg (v,int));
  2937. va_end (v);
  2938. return s;
  2939. }
  2940. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2941. function prototypes and stuff, but not '\xHH' hex character constants.
  2942. These don't provoke an error unfortunately, instead are silently treated
  2943. as 'x'. The following induces an error, until -std1 is added to get
  2944. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2945. array size at least. It's necessary to write '\x00'==0 to get something
  2946. that's true only with -std1. */
  2947. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2948. int test (int i, double x);
  2949. struct s1 {int (*f) (int a);};
  2950. struct s2 {int (*f) (double a);};
  2951. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2952. int argc;
  2953. char **argv;
  2954. int
  2955. main ()
  2956. {
  2957. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2958. ;
  2959. return 0;
  2960. }
  2961. _ACEOF
  2962. # Don't try gcc -ansi; that turns off useful extensions and
  2963. # breaks some systems' header files.
  2964. # AIX -qlanglvl=ansi
  2965. # Ultrix and OSF/1 -std1
  2966. # HP-UX 10.20 and later -Ae
  2967. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2968. # SVR4 -Xc -D__EXTENSIONS__
  2969. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2970. do
  2971. CC="$ac_save_CC $ac_arg"
  2972. rm -f conftest.$ac_objext
  2973. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2974. (eval $ac_compile) 2>conftest.er1
  2975. ac_status=$?
  2976. grep -v '^ *+' conftest.er1 >conftest.err
  2977. rm -f conftest.er1
  2978. cat conftest.err >&5
  2979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2980. (exit $ac_status); } &&
  2981. { ac_try='test -z "$ac_c_werror_flag"
  2982. || test ! -s conftest.err'
  2983. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2984. (eval $ac_try) 2>&5
  2985. ac_status=$?
  2986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2987. (exit $ac_status); }; } &&
  2988. { ac_try='test -s conftest.$ac_objext'
  2989. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2990. (eval $ac_try) 2>&5
  2991. ac_status=$?
  2992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2993. (exit $ac_status); }; }; then
  2994. ac_cv_prog_cc_stdc=$ac_arg
  2995. break
  2996. else
  2997. echo "$as_me: failed program was:" >&5
  2998. sed 's/^/| /' conftest.$ac_ext >&5
  2999. fi
  3000. rm -f conftest.err conftest.$ac_objext
  3001. done
  3002. rm -f conftest.$ac_ext conftest.$ac_objext
  3003. CC=$ac_save_CC
  3004. fi
  3005. case "x$ac_cv_prog_cc_stdc" in
  3006. x|xno)
  3007. echo "$as_me:$LINENO: result: none needed" >&5
  3008. echo "${ECHO_T}none needed" >&6 ;;
  3009. *)
  3010. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  3011. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  3012. CC="$CC $ac_cv_prog_cc_stdc" ;;
  3013. esac
  3014. # Some people use a C++ compiler to compile C. Since we use `exit',
  3015. # in C++ we need to declare it. In case someone uses the same compiler
  3016. # for both compiling C and C++ we need to have the C++ compiler decide
  3017. # the declaration of exit, since it's the most demanding environment.
  3018. cat >conftest.$ac_ext <<_ACEOF
  3019. #ifndef __cplusplus
  3020. choke me
  3021. #endif
  3022. _ACEOF
  3023. rm -f conftest.$ac_objext
  3024. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3025. (eval $ac_compile) 2>conftest.er1
  3026. ac_status=$?
  3027. grep -v '^ *+' conftest.er1 >conftest.err
  3028. rm -f conftest.er1
  3029. cat conftest.err >&5
  3030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3031. (exit $ac_status); } &&
  3032. { ac_try='test -z "$ac_c_werror_flag"
  3033. || test ! -s conftest.err'
  3034. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3035. (eval $ac_try) 2>&5
  3036. ac_status=$?
  3037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3038. (exit $ac_status); }; } &&
  3039. { ac_try='test -s conftest.$ac_objext'
  3040. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3041. (eval $ac_try) 2>&5
  3042. ac_status=$?
  3043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3044. (exit $ac_status); }; }; then
  3045. for ac_declaration in \
  3046. '' \
  3047. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3048. 'extern "C" void std::exit (int); using std::exit;' \
  3049. 'extern "C" void exit (int) throw ();' \
  3050. 'extern "C" void exit (int);' \
  3051. 'void exit (int);'
  3052. do
  3053. cat >conftest.$ac_ext <<_ACEOF
  3054. /* confdefs.h. */
  3055. _ACEOF
  3056. cat confdefs.h >>conftest.$ac_ext
  3057. cat >>conftest.$ac_ext <<_ACEOF
  3058. /* end confdefs.h. */
  3059. $ac_declaration
  3060. #include <stdlib.h>
  3061. int
  3062. main ()
  3063. {
  3064. exit (42);
  3065. ;
  3066. return 0;
  3067. }
  3068. _ACEOF
  3069. rm -f conftest.$ac_objext
  3070. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3071. (eval $ac_compile) 2>conftest.er1
  3072. ac_status=$?
  3073. grep -v '^ *+' conftest.er1 >conftest.err
  3074. rm -f conftest.er1
  3075. cat conftest.err >&5
  3076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3077. (exit $ac_status); } &&
  3078. { ac_try='test -z "$ac_c_werror_flag"
  3079. || test ! -s conftest.err'
  3080. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3081. (eval $ac_try) 2>&5
  3082. ac_status=$?
  3083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3084. (exit $ac_status); }; } &&
  3085. { ac_try='test -s conftest.$ac_objext'
  3086. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3087. (eval $ac_try) 2>&5
  3088. ac_status=$?
  3089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3090. (exit $ac_status); }; }; then
  3091. :
  3092. else
  3093. echo "$as_me: failed program was:" >&5
  3094. sed 's/^/| /' conftest.$ac_ext >&5
  3095. continue
  3096. fi
  3097. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3098. cat >conftest.$ac_ext <<_ACEOF
  3099. /* confdefs.h. */
  3100. _ACEOF
  3101. cat confdefs.h >>conftest.$ac_ext
  3102. cat >>conftest.$ac_ext <<_ACEOF
  3103. /* end confdefs.h. */
  3104. $ac_declaration
  3105. int
  3106. main ()
  3107. {
  3108. exit (42);
  3109. ;
  3110. return 0;
  3111. }
  3112. _ACEOF
  3113. rm -f conftest.$ac_objext
  3114. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3115. (eval $ac_compile) 2>conftest.er1
  3116. ac_status=$?
  3117. grep -v '^ *+' conftest.er1 >conftest.err
  3118. rm -f conftest.er1
  3119. cat conftest.err >&5
  3120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3121. (exit $ac_status); } &&
  3122. { ac_try='test -z "$ac_c_werror_flag"
  3123. || test ! -s conftest.err'
  3124. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3125. (eval $ac_try) 2>&5
  3126. ac_status=$?
  3127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3128. (exit $ac_status); }; } &&
  3129. { ac_try='test -s conftest.$ac_objext'
  3130. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3131. (eval $ac_try) 2>&5
  3132. ac_status=$?
  3133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3134. (exit $ac_status); }; }; then
  3135. break
  3136. else
  3137. echo "$as_me: failed program was:" >&5
  3138. sed 's/^/| /' conftest.$ac_ext >&5
  3139. fi
  3140. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3141. done
  3142. rm -f conftest*
  3143. if test -n "$ac_declaration"; then
  3144. echo '#ifdef __cplusplus' >>confdefs.h
  3145. echo $ac_declaration >>confdefs.h
  3146. echo '#endif' >>confdefs.h
  3147. fi
  3148. else
  3149. echo "$as_me: failed program was:" >&5
  3150. sed 's/^/| /' conftest.$ac_ext >&5
  3151. fi
  3152. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3153. ac_ext=c
  3154. ac_cpp='$CPP $CPPFLAGS'
  3155. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3156. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3157. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3158. depcc="$CC" am_compiler_list=
  3159. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3160. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3161. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3162. echo $ECHO_N "(cached) $ECHO_C" >&6
  3163. else
  3164. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3165. # We make a subdir and do the tests there. Otherwise we can end up
  3166. # making bogus files that we don't know about and never remove. For
  3167. # instance it was reported that on HP-UX the gcc test will end up
  3168. # making a dummy file named `D' -- because `-MD' means `put the output
  3169. # in D'.
  3170. mkdir conftest.dir
  3171. # Copy depcomp to subdir because otherwise we won't find it if we're
  3172. # using a relative directory.
  3173. cp "$am_depcomp" conftest.dir
  3174. cd conftest.dir
  3175. # We will build objects and dependencies in a subdirectory because
  3176. # it helps to detect inapplicable dependency modes. For instance
  3177. # both Tru64's cc and ICC support -MD to output dependencies as a
  3178. # side effect of compilation, but ICC will put the dependencies in
  3179. # the current directory while Tru64 will put them in the object
  3180. # directory.
  3181. mkdir sub
  3182. am_cv_CC_dependencies_compiler_type=none
  3183. if test "$am_compiler_list" = ""; then
  3184. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3185. fi
  3186. for depmode in $am_compiler_list; do
  3187. # Setup a source with many dependencies, because some compilers
  3188. # like to wrap large dependency lists on column 80 (with \), and
  3189. # we should not choose a depcomp mode which is confused by this.
  3190. #
  3191. # We need to recreate these files for each test, as the compiler may
  3192. # overwrite some of them when testing with obscure command lines.
  3193. # This happens at least with the AIX C compiler.
  3194. : > sub/conftest.c
  3195. for i in 1 2 3 4 5 6; do
  3196. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3197. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3198. # Solaris 8's {/usr,}/bin/sh.
  3199. touch sub/conftst$i.h
  3200. done
  3201. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3202. case $depmode in
  3203. nosideeffect)
  3204. # after this tag, mechanisms are not by side-effect, so they'll
  3205. # only be used when explicitly requested
  3206. if test "x$enable_dependency_tracking" = xyes; then
  3207. continue
  3208. else
  3209. break
  3210. fi
  3211. ;;
  3212. none) break ;;
  3213. esac
  3214. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3215. # mode. It turns out that the SunPro C++ compiler does not properly
  3216. # handle `-M -o', and we need to detect this.
  3217. if depmode=$depmode \
  3218. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3219. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3220. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3221. >/dev/null 2>conftest.err &&
  3222. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3223. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3224. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3225. # icc doesn't choke on unknown options, it will just issue warnings
  3226. # or remarks (even with -Werror). So we grep stderr for any message
  3227. # that says an option was ignored or not supported.
  3228. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3229. # icc: Command line warning: ignoring option '-M'; no argument required
  3230. # The diagnosis changed in icc 8.0:
  3231. # icc: Command line remark: option '-MP' not supported
  3232. if (grep 'ignoring option' conftest.err ||
  3233. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3234. am_cv_CC_dependencies_compiler_type=$depmode
  3235. break
  3236. fi
  3237. fi
  3238. done
  3239. cd ..
  3240. rm -rf conftest.dir
  3241. else
  3242. am_cv_CC_dependencies_compiler_type=none
  3243. fi
  3244. fi
  3245. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3246. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3247. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3248. if
  3249. test "x$enable_dependency_tracking" != xno \
  3250. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3251. am__fastdepCC_TRUE=
  3252. am__fastdepCC_FALSE='#'
  3253. else
  3254. am__fastdepCC_TRUE='#'
  3255. am__fastdepCC_FALSE=
  3256. fi
  3257. if test "x$CC" != xcc; then
  3258. echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  3259. echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
  3260. else
  3261. echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  3262. echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
  3263. fi
  3264. set dummy $CC; ac_cc=`echo $2 |
  3265. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3266. if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
  3267. echo $ECHO_N "(cached) $ECHO_C" >&6
  3268. else
  3269. cat >conftest.$ac_ext <<_ACEOF
  3270. /* confdefs.h. */
  3271. _ACEOF
  3272. cat confdefs.h >>conftest.$ac_ext
  3273. cat >>conftest.$ac_ext <<_ACEOF
  3274. /* end confdefs.h. */
  3275. int
  3276. main ()
  3277. {
  3278. ;
  3279. return 0;
  3280. }
  3281. _ACEOF
  3282. # Make sure it works both with $CC and with simple cc.
  3283. # We do the test twice because some compilers refuse to overwrite an
  3284. # existing .o file with -o, though they will create one.
  3285. ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
  3286. if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3287. (eval $ac_try) 2>&5
  3288. ac_status=$?
  3289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3290. (exit $ac_status); } &&
  3291. test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3292. (eval $ac_try) 2>&5
  3293. ac_status=$?
  3294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3295. (exit $ac_status); };
  3296. then
  3297. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3298. if test "x$CC" != xcc; then
  3299. # Test first that cc exists at all.
  3300. if { ac_try='cc -c conftest.$ac_ext >&5'
  3301. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3302. (eval $ac_try) 2>&5
  3303. ac_status=$?
  3304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3305. (exit $ac_status); }; }; then
  3306. ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
  3307. if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3308. (eval $ac_try) 2>&5
  3309. ac_status=$?
  3310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3311. (exit $ac_status); } &&
  3312. test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3313. (eval $ac_try) 2>&5
  3314. ac_status=$?
  3315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3316. (exit $ac_status); };
  3317. then
  3318. # cc works too.
  3319. :
  3320. else
  3321. # cc exists but doesn't like -o.
  3322. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3323. fi
  3324. fi
  3325. fi
  3326. else
  3327. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3328. fi
  3329. rm -f conftest*
  3330. fi
  3331. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
  3332. echo "$as_me:$LINENO: result: yes" >&5
  3333. echo "${ECHO_T}yes" >&6
  3334. else
  3335. echo "$as_me:$LINENO: result: no" >&5
  3336. echo "${ECHO_T}no" >&6
  3337. cat >>confdefs.h <<\_ACEOF
  3338. #define NO_MINUS_C_MINUS_O 1
  3339. _ACEOF
  3340. fi
  3341. # FIXME: we rely on the cache variable name because
  3342. # there is no other way.
  3343. set dummy $CC
  3344. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3345. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  3346. # Losing compiler, so override with the script.
  3347. # FIXME: It is wrong to rewrite CC.
  3348. # But if we don't then we get into trouble of one sort or another.
  3349. # A longer-term fix would be to have automake use am__CC in this case,
  3350. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3351. CC="$am_aux_dir/compile $CC"
  3352. fi
  3353. # Check whether --enable-shared or --disable-shared was given.
  3354. if test "${enable_shared+set}" = set; then
  3355. enableval="$enable_shared"
  3356. p=${PACKAGE-default}
  3357. case $enableval in
  3358. yes) enable_shared=yes ;;
  3359. no) enable_shared=no ;;
  3360. *)
  3361. enable_shared=no
  3362. # Look at the argument we got. We use all the common list separators.
  3363. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3364. for pkg in $enableval; do
  3365. IFS="$lt_save_ifs"
  3366. if test "X$pkg" = "X$p"; then
  3367. enable_shared=yes
  3368. fi
  3369. done
  3370. IFS="$lt_save_ifs"
  3371. ;;
  3372. esac
  3373. else
  3374. enable_shared=yes
  3375. fi;
  3376. # Check whether --enable-static or --disable-static was given.
  3377. if test "${enable_static+set}" = set; then
  3378. enableval="$enable_static"
  3379. p=${PACKAGE-default}
  3380. case $enableval in
  3381. yes) enable_static=yes ;;
  3382. no) enable_static=no ;;
  3383. *)
  3384. enable_static=no
  3385. # Look at the argument we got. We use all the common list separators.
  3386. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3387. for pkg in $enableval; do
  3388. IFS="$lt_save_ifs"
  3389. if test "X$pkg" = "X$p"; then
  3390. enable_static=yes
  3391. fi
  3392. done
  3393. IFS="$lt_save_ifs"
  3394. ;;
  3395. esac
  3396. else
  3397. enable_static=yes
  3398. fi;
  3399. # Check whether --enable-fast-install or --disable-fast-install was given.
  3400. if test "${enable_fast_install+set}" = set; then
  3401. enableval="$enable_fast_install"
  3402. p=${PACKAGE-default}
  3403. case $enableval in
  3404. yes) enable_fast_install=yes ;;
  3405. no) enable_fast_install=no ;;
  3406. *)
  3407. enable_fast_install=no
  3408. # Look at the argument we got. We use all the common list separators.
  3409. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3410. for pkg in $enableval; do
  3411. IFS="$lt_save_ifs"
  3412. if test "X$pkg" = "X$p"; then
  3413. enable_fast_install=yes
  3414. fi
  3415. done
  3416. IFS="$lt_save_ifs"
  3417. ;;
  3418. esac
  3419. else
  3420. enable_fast_install=yes
  3421. fi;
  3422. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3423. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  3424. if test "${lt_cv_path_SED+set}" = set; then
  3425. echo $ECHO_N "(cached) $ECHO_C" >&6
  3426. else
  3427. # Loop through the user's path and test for sed and gsed.
  3428. # Then use that list of sed's as ones to test for truncation.
  3429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3430. for as_dir in $PATH
  3431. do
  3432. IFS=$as_save_IFS
  3433. test -z "$as_dir" && as_dir=.
  3434. for lt_ac_prog in sed gsed; do
  3435. for ac_exec_ext in '' $ac_executable_extensions; do
  3436. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3437. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3438. fi
  3439. done
  3440. done
  3441. done
  3442. lt_ac_max=0
  3443. lt_ac_count=0
  3444. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3445. # along with /bin/sed that truncates output.
  3446. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3447. test ! -f $lt_ac_sed && break
  3448. cat /dev/null > conftest.in
  3449. lt_ac_count=0
  3450. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3451. # Check for GNU sed and select it if it is found.
  3452. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3453. lt_cv_path_SED=$lt_ac_sed
  3454. break
  3455. fi
  3456. while true; do
  3457. cat conftest.in conftest.in >conftest.tmp
  3458. mv conftest.tmp conftest.in
  3459. cp conftest.in conftest.nl
  3460. echo >>conftest.nl
  3461. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3462. cmp -s conftest.out conftest.nl || break
  3463. # 10000 chars as input seems more than enough
  3464. test $lt_ac_count -gt 10 && break
  3465. lt_ac_count=`expr $lt_ac_count + 1`
  3466. if test $lt_ac_count -gt $lt_ac_max; then
  3467. lt_ac_max=$lt_ac_count
  3468. lt_cv_path_SED=$lt_ac_sed
  3469. fi
  3470. done
  3471. done
  3472. SED=$lt_cv_path_SED
  3473. fi
  3474. echo "$as_me:$LINENO: result: $SED" >&5
  3475. echo "${ECHO_T}$SED" >&6
  3476. echo "$as_me:$LINENO: checking for egrep" >&5
  3477. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3478. if test "${ac_cv_prog_egrep+set}" = set; then
  3479. echo $ECHO_N "(cached) $ECHO_C" >&6
  3480. else
  3481. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3482. then ac_cv_prog_egrep='grep -E'
  3483. else ac_cv_prog_egrep='egrep'
  3484. fi
  3485. fi
  3486. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3487. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3488. EGREP=$ac_cv_prog_egrep
  3489. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  3490. if test "${with_gnu_ld+set}" = set; then
  3491. withval="$with_gnu_ld"
  3492. test "$withval" = no || with_gnu_ld=yes
  3493. else
  3494. with_gnu_ld=no
  3495. fi;
  3496. ac_prog=ld
  3497. if test "$GCC" = yes; then
  3498. # Check if gcc -print-prog-name=ld gives a path.
  3499. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3500. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  3501. case $host in
  3502. *-*-mingw*)
  3503. # gcc leaves a trailing carriage return which upsets mingw
  3504. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3505. *)
  3506. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3507. esac
  3508. case $ac_prog in
  3509. # Accept absolute paths.
  3510. [\\/]* | ?:[\\/]*)
  3511. re_direlt='/[^/][^/]*/\.\./'
  3512. # Canonicalize the pathname of ld
  3513. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3514. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3515. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3516. done
  3517. test -z "$LD" && LD="$ac_prog"
  3518. ;;
  3519. "")
  3520. # If it fails, then pretend we aren't using GCC.
  3521. ac_prog=ld
  3522. ;;
  3523. *)
  3524. # If it is relative, then search for the first ld in PATH.
  3525. with_gnu_ld=unknown
  3526. ;;
  3527. esac
  3528. elif test "$with_gnu_ld" = yes; then
  3529. echo "$as_me:$LINENO: checking for GNU ld" >&5
  3530. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  3531. else
  3532. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3533. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  3534. fi
  3535. if test "${lt_cv_path_LD+set}" = set; then
  3536. echo $ECHO_N "(cached) $ECHO_C" >&6
  3537. else
  3538. if test -z "$LD"; then
  3539. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3540. for ac_dir in $PATH; do
  3541. IFS="$lt_save_ifs"
  3542. test -z "$ac_dir" && ac_dir=.
  3543. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3544. lt_cv_path_LD="$ac_dir/$ac_prog"
  3545. # Check to see if the program is GNU ld. I'd rather use --version,
  3546. # but apparently some GNU ld's only accept -v.
  3547. # Break only if it was the GNU/non-GNU ld that we prefer.
  3548. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3549. *GNU* | *'with BFD'*)
  3550. test "$with_gnu_ld" != no && break
  3551. ;;
  3552. *)
  3553. test "$with_gnu_ld" != yes && break
  3554. ;;
  3555. esac
  3556. fi
  3557. done
  3558. IFS="$lt_save_ifs"
  3559. else
  3560. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3561. fi
  3562. fi
  3563. LD="$lt_cv_path_LD"
  3564. if test -n "$LD"; then
  3565. echo "$as_me:$LINENO: result: $LD" >&5
  3566. echo "${ECHO_T}$LD" >&6
  3567. else
  3568. echo "$as_me:$LINENO: result: no" >&5
  3569. echo "${ECHO_T}no" >&6
  3570. fi
  3571. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3572. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3573. { (exit 1); exit 1; }; }
  3574. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3575. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  3576. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3577. echo $ECHO_N "(cached) $ECHO_C" >&6
  3578. else
  3579. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  3580. case `$LD -v 2>&1 </dev/null` in
  3581. *GNU* | *'with BFD'*)
  3582. lt_cv_prog_gnu_ld=yes
  3583. ;;
  3584. *)
  3585. lt_cv_prog_gnu_ld=no
  3586. ;;
  3587. esac
  3588. fi
  3589. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3590. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  3591. with_gnu_ld=$lt_cv_prog_gnu_ld
  3592. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3593. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  3594. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3595. echo $ECHO_N "(cached) $ECHO_C" >&6
  3596. else
  3597. lt_cv_ld_reload_flag='-r'
  3598. fi
  3599. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3600. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  3601. reload_flag=$lt_cv_ld_reload_flag
  3602. case $reload_flag in
  3603. "" | " "*) ;;
  3604. *) reload_flag=" $reload_flag" ;;
  3605. esac
  3606. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3607. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3608. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  3609. if test "${lt_cv_path_NM+set}" = set; then
  3610. echo $ECHO_N "(cached) $ECHO_C" >&6
  3611. else
  3612. if test -n "$NM"; then
  3613. # Let the user override the test.
  3614. lt_cv_path_NM="$NM"
  3615. else
  3616. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3617. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  3618. IFS="$lt_save_ifs"
  3619. test -z "$ac_dir" && ac_dir=.
  3620. tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  3621. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3622. # Check to see if the nm accepts a BSD-compat flag.
  3623. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3624. # nm: unknown option "B" ignored
  3625. # Tru64's nm complains that /dev/null is an invalid object file
  3626. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3627. */dev/null* | *'Invalid file or object type'*)
  3628. lt_cv_path_NM="$tmp_nm -B"
  3629. break
  3630. ;;
  3631. *)
  3632. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3633. */dev/null*)
  3634. lt_cv_path_NM="$tmp_nm -p"
  3635. break
  3636. ;;
  3637. *)
  3638. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3639. continue # so that we can try to find one that supports BSD flags
  3640. ;;
  3641. esac
  3642. esac
  3643. fi
  3644. done
  3645. IFS="$lt_save_ifs"
  3646. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3647. fi
  3648. fi
  3649. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3650. echo "${ECHO_T}$lt_cv_path_NM" >&6
  3651. NM="$lt_cv_path_NM"
  3652. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3653. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  3654. LN_S=$as_ln_s
  3655. if test "$LN_S" = "ln -s"; then
  3656. echo "$as_me:$LINENO: result: yes" >&5
  3657. echo "${ECHO_T}yes" >&6
  3658. else
  3659. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3660. echo "${ECHO_T}no, using $LN_S" >&6
  3661. fi
  3662. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  3663. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  3664. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3665. echo $ECHO_N "(cached) $ECHO_C" >&6
  3666. else
  3667. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3668. lt_cv_file_magic_test_file=
  3669. lt_cv_deplibs_check_method='unknown'
  3670. # Need to set the preceding variable on all platforms that support
  3671. # interlibrary dependencies.
  3672. # 'none' -- dependencies not supported.
  3673. # `unknown' -- same as none, but documents that we really don't know.
  3674. # 'pass_all' -- all dependencies passed with no checks.
  3675. # 'test_compile' -- check by making test program.
  3676. # 'file_magic [[regex]]' -- check by looking for files in library path
  3677. # which responds to the $file_magic_cmd with a given extended regex.
  3678. # If you have `file' or equivalent on your system and you're not sure
  3679. # whether `pass_all' will *always* work, you probably want this one.
  3680. case $host_os in
  3681. aix4* | aix5*)
  3682. lt_cv_deplibs_check_method=pass_all
  3683. ;;
  3684. beos*)
  3685. lt_cv_deplibs_check_method=pass_all
  3686. ;;
  3687. bsdi4*)
  3688. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3689. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3690. lt_cv_file_magic_test_file=/shlib/libc.so
  3691. ;;
  3692. cygwin*)
  3693. # func_win32_libid is a shell function defined in ltmain.sh
  3694. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3695. lt_cv_file_magic_cmd='func_win32_libid'
  3696. ;;
  3697. mingw* | pw32*)
  3698. # Base MSYS/MinGW do not provide the 'file' command needed by
  3699. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3700. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3701. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3702. ;;
  3703. darwin* | rhapsody*)
  3704. lt_cv_deplibs_check_method=pass_all
  3705. ;;
  3706. freebsd* | kfreebsd*-gnu)
  3707. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3708. case $host_cpu in
  3709. i*86 )
  3710. # Not sure whether the presence of OpenBSD here was a mistake.
  3711. # Let's accept both of them until this is cleared up.
  3712. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  3713. lt_cv_file_magic_cmd=/usr/bin/file
  3714. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3715. ;;
  3716. esac
  3717. else
  3718. lt_cv_deplibs_check_method=pass_all
  3719. fi
  3720. ;;
  3721. gnu*)
  3722. lt_cv_deplibs_check_method=pass_all
  3723. ;;
  3724. hpux10.20* | hpux11*)
  3725. lt_cv_file_magic_cmd=/usr/bin/file
  3726. case "$host_cpu" in
  3727. ia64*)
  3728. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3729. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3730. ;;
  3731. hppa*64*)
  3732. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  3733. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3734. ;;
  3735. *)
  3736. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3737. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3738. ;;
  3739. esac
  3740. ;;
  3741. irix5* | irix6* | nonstopux*)
  3742. case $LD in
  3743. *-32|*"-32 ") libmagic=32-bit;;
  3744. *-n32|*"-n32 ") libmagic=N32;;
  3745. *-64|*"-64 ") libmagic=64-bit;;
  3746. *) libmagic=never-match;;
  3747. esac
  3748. lt_cv_deplibs_check_method=pass_all
  3749. ;;
  3750. # This must be Linux ELF.
  3751. linux*)
  3752. case $host_cpu in
  3753. alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
  3754. lt_cv_deplibs_check_method=pass_all ;;
  3755. *)
  3756. # glibc up to 2.1.1 does not perform some relocations on ARM
  3757. # this will be overridden with pass_all, but let us keep it just in case
  3758. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
  3759. esac
  3760. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  3761. lt_cv_deplibs_check_method=pass_all
  3762. ;;
  3763. netbsd*)
  3764. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3765. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3766. else
  3767. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3768. fi
  3769. ;;
  3770. newos6*)
  3771. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3772. lt_cv_file_magic_cmd=/usr/bin/file
  3773. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3774. ;;
  3775. nto-qnx*)
  3776. lt_cv_deplibs_check_method=unknown
  3777. ;;
  3778. openbsd*)
  3779. lt_cv_file_magic_cmd=/usr/bin/file
  3780. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3781. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3782. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  3783. else
  3784. lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  3785. fi
  3786. ;;
  3787. osf3* | osf4* | osf5*)
  3788. lt_cv_deplibs_check_method=pass_all
  3789. ;;
  3790. sco3.2v5*)
  3791. lt_cv_deplibs_check_method=pass_all
  3792. ;;
  3793. solaris*)
  3794. lt_cv_deplibs_check_method=pass_all
  3795. ;;
  3796. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  3797. case $host_vendor in
  3798. motorola)
  3799. 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]'
  3800. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3801. ;;
  3802. ncr)
  3803. lt_cv_deplibs_check_method=pass_all
  3804. ;;
  3805. sequent)
  3806. lt_cv_file_magic_cmd='/bin/file'
  3807. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3808. ;;
  3809. sni)
  3810. lt_cv_file_magic_cmd='/bin/file'
  3811. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3812. lt_cv_file_magic_test_file=/lib/libc.so
  3813. ;;
  3814. siemens)
  3815. lt_cv_deplibs_check_method=pass_all
  3816. ;;
  3817. esac
  3818. ;;
  3819. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  3820. lt_cv_deplibs_check_method=pass_all
  3821. ;;
  3822. esac
  3823. fi
  3824. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3825. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  3826. file_magic_cmd=$lt_cv_file_magic_cmd
  3827. deplibs_check_method=$lt_cv_deplibs_check_method
  3828. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3829. # If no C compiler was specified, use CC.
  3830. LTCC=${LTCC-"$CC"}
  3831. # Allow CC to be a program name with arguments.
  3832. compiler=$CC
  3833. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  3834. if test "${enable_libtool_lock+set}" = set; then
  3835. enableval="$enable_libtool_lock"
  3836. fi;
  3837. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3838. # Some flags need to be propagated to the compiler or linker for good
  3839. # libtool support.
  3840. case $host in
  3841. ia64-*-hpux*)
  3842. # Find out which ABI we are using.
  3843. echo 'int i;' > conftest.$ac_ext
  3844. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3845. (eval $ac_compile) 2>&5
  3846. ac_status=$?
  3847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3848. (exit $ac_status); }; then
  3849. case `/usr/bin/file conftest.$ac_objext` in
  3850. *ELF-32*)
  3851. HPUX_IA64_MODE="32"
  3852. ;;
  3853. *ELF-64*)
  3854. HPUX_IA64_MODE="64"
  3855. ;;
  3856. esac
  3857. fi
  3858. rm -rf conftest*
  3859. ;;
  3860. *-*-irix6*)
  3861. # Find out which ABI we are using.
  3862. echo '#line 4284 "configure"' > conftest.$ac_ext
  3863. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3864. (eval $ac_compile) 2>&5
  3865. ac_status=$?
  3866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3867. (exit $ac_status); }; then
  3868. if test "$lt_cv_prog_gnu_ld" = yes; then
  3869. case `/usr/bin/file conftest.$ac_objext` in
  3870. *32-bit*)
  3871. LD="${LD-ld} -melf32bsmip"
  3872. ;;
  3873. *N32*)
  3874. LD="${LD-ld} -melf32bmipn32"
  3875. ;;
  3876. *64-bit*)
  3877. LD="${LD-ld} -melf64bmip"
  3878. ;;
  3879. esac
  3880. else
  3881. case `/usr/bin/file conftest.$ac_objext` in
  3882. *32-bit*)
  3883. LD="${LD-ld} -32"
  3884. ;;
  3885. *N32*)
  3886. LD="${LD-ld} -n32"
  3887. ;;
  3888. *64-bit*)
  3889. LD="${LD-ld} -64"
  3890. ;;
  3891. esac
  3892. fi
  3893. fi
  3894. rm -rf conftest*
  3895. ;;
  3896. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  3897. # Find out which ABI we are using.
  3898. echo 'int i;' > conftest.$ac_ext
  3899. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3900. (eval $ac_compile) 2>&5
  3901. ac_status=$?
  3902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3903. (exit $ac_status); }; then
  3904. case "`/usr/bin/file conftest.o`" in
  3905. *32-bit*)
  3906. case $host in
  3907. x86_64-*linux*)
  3908. LD="${LD-ld} -m elf_i386"
  3909. ;;
  3910. ppc64-*linux*|powerpc64-*linux*)
  3911. LD="${LD-ld} -m elf32ppclinux"
  3912. ;;
  3913. s390x-*linux*)
  3914. LD="${LD-ld} -m elf_s390"
  3915. ;;
  3916. sparc64-*linux*)
  3917. LD="${LD-ld} -m elf32_sparc"
  3918. ;;
  3919. esac
  3920. ;;
  3921. *64-bit*)
  3922. case $host in
  3923. x86_64-*linux*)
  3924. LD="${LD-ld} -m elf_x86_64"
  3925. ;;
  3926. ppc*-*linux*|powerpc*-*linux*)
  3927. LD="${LD-ld} -m elf64ppc"
  3928. ;;
  3929. s390*-*linux*)
  3930. LD="${LD-ld} -m elf64_s390"
  3931. ;;
  3932. sparc*-*linux*)
  3933. LD="${LD-ld} -m elf64_sparc"
  3934. ;;
  3935. esac
  3936. ;;
  3937. esac
  3938. fi
  3939. rm -rf conftest*
  3940. ;;
  3941. *-*-sco3.2v5*)
  3942. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  3943. SAVE_CFLAGS="$CFLAGS"
  3944. CFLAGS="$CFLAGS -belf"
  3945. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  3946. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  3947. if test "${lt_cv_cc_needs_belf+set}" = set; then
  3948. echo $ECHO_N "(cached) $ECHO_C" >&6
  3949. else
  3950. ac_ext=c
  3951. ac_cpp='$CPP $CPPFLAGS'
  3952. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3953. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3954. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3955. cat >conftest.$ac_ext <<_ACEOF
  3956. /* confdefs.h. */
  3957. _ACEOF
  3958. cat confdefs.h >>conftest.$ac_ext
  3959. cat >>conftest.$ac_ext <<_ACEOF
  3960. /* end confdefs.h. */
  3961. int
  3962. main ()
  3963. {
  3964. ;
  3965. return 0;
  3966. }
  3967. _ACEOF
  3968. rm -f conftest.$ac_objext conftest$ac_exeext
  3969. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3970. (eval $ac_link) 2>conftest.er1
  3971. ac_status=$?
  3972. grep -v '^ *+' conftest.er1 >conftest.err
  3973. rm -f conftest.er1
  3974. cat conftest.err >&5
  3975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3976. (exit $ac_status); } &&
  3977. { ac_try='test -z "$ac_c_werror_flag"
  3978. || test ! -s conftest.err'
  3979. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3980. (eval $ac_try) 2>&5
  3981. ac_status=$?
  3982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3983. (exit $ac_status); }; } &&
  3984. { ac_try='test -s conftest$ac_exeext'
  3985. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3986. (eval $ac_try) 2>&5
  3987. ac_status=$?
  3988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3989. (exit $ac_status); }; }; then
  3990. lt_cv_cc_needs_belf=yes
  3991. else
  3992. echo "$as_me: failed program was:" >&5
  3993. sed 's/^/| /' conftest.$ac_ext >&5
  3994. lt_cv_cc_needs_belf=no
  3995. fi
  3996. rm -f conftest.err conftest.$ac_objext \
  3997. conftest$ac_exeext conftest.$ac_ext
  3998. ac_ext=c
  3999. ac_cpp='$CPP $CPPFLAGS'
  4000. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4001. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4002. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4003. fi
  4004. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4005. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  4006. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4007. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4008. CFLAGS="$SAVE_CFLAGS"
  4009. fi
  4010. ;;
  4011. esac
  4012. need_locks="$enable_libtool_lock"
  4013. ac_ext=c
  4014. ac_cpp='$CPP $CPPFLAGS'
  4015. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4016. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4017. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4018. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4019. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  4020. # On Suns, sometimes $CPP names a directory.
  4021. if test -n "$CPP" && test -d "$CPP"; then
  4022. CPP=
  4023. fi
  4024. if test -z "$CPP"; then
  4025. if test "${ac_cv_prog_CPP+set}" = set; then
  4026. echo $ECHO_N "(cached) $ECHO_C" >&6
  4027. else
  4028. # Double quotes because CPP needs to be expanded
  4029. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4030. do
  4031. ac_preproc_ok=false
  4032. for ac_c_preproc_warn_flag in '' yes
  4033. do
  4034. # Use a header file that comes with gcc, so configuring glibc
  4035. # with a fresh cross-compiler works.
  4036. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4037. # <limits.h> exists even on freestanding compilers.
  4038. # On the NeXT, cc -E runs the code through the compiler's parser,
  4039. # not just through cpp. "Syntax error" is here to catch this case.
  4040. cat >conftest.$ac_ext <<_ACEOF
  4041. /* confdefs.h. */
  4042. _ACEOF
  4043. cat confdefs.h >>conftest.$ac_ext
  4044. cat >>conftest.$ac_ext <<_ACEOF
  4045. /* end confdefs.h. */
  4046. #ifdef __STDC__
  4047. # include <limits.h>
  4048. #else
  4049. # include <assert.h>
  4050. #endif
  4051. Syntax error
  4052. _ACEOF
  4053. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4054. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4055. ac_status=$?
  4056. grep -v '^ *+' conftest.er1 >conftest.err
  4057. rm -f conftest.er1
  4058. cat conftest.err >&5
  4059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4060. (exit $ac_status); } >/dev/null; then
  4061. if test -s conftest.err; then
  4062. ac_cpp_err=$ac_c_preproc_warn_flag
  4063. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4064. else
  4065. ac_cpp_err=
  4066. fi
  4067. else
  4068. ac_cpp_err=yes
  4069. fi
  4070. if test -z "$ac_cpp_err"; then
  4071. :
  4072. else
  4073. echo "$as_me: failed program was:" >&5
  4074. sed 's/^/| /' conftest.$ac_ext >&5
  4075. # Broken: fails on valid input.
  4076. continue
  4077. fi
  4078. rm -f conftest.err conftest.$ac_ext
  4079. # OK, works on sane cases. Now check whether non-existent headers
  4080. # can be detected and how.
  4081. cat >conftest.$ac_ext <<_ACEOF
  4082. /* confdefs.h. */
  4083. _ACEOF
  4084. cat confdefs.h >>conftest.$ac_ext
  4085. cat >>conftest.$ac_ext <<_ACEOF
  4086. /* end confdefs.h. */
  4087. #include <ac_nonexistent.h>
  4088. _ACEOF
  4089. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4090. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4091. ac_status=$?
  4092. grep -v '^ *+' conftest.er1 >conftest.err
  4093. rm -f conftest.er1
  4094. cat conftest.err >&5
  4095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4096. (exit $ac_status); } >/dev/null; then
  4097. if test -s conftest.err; then
  4098. ac_cpp_err=$ac_c_preproc_warn_flag
  4099. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4100. else
  4101. ac_cpp_err=
  4102. fi
  4103. else
  4104. ac_cpp_err=yes
  4105. fi
  4106. if test -z "$ac_cpp_err"; then
  4107. # Broken: success on invalid input.
  4108. continue
  4109. else
  4110. echo "$as_me: failed program was:" >&5
  4111. sed 's/^/| /' conftest.$ac_ext >&5
  4112. # Passes both tests.
  4113. ac_preproc_ok=:
  4114. break
  4115. fi
  4116. rm -f conftest.err conftest.$ac_ext
  4117. done
  4118. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4119. rm -f conftest.err conftest.$ac_ext
  4120. if $ac_preproc_ok; then
  4121. break
  4122. fi
  4123. done
  4124. ac_cv_prog_CPP=$CPP
  4125. fi
  4126. CPP=$ac_cv_prog_CPP
  4127. else
  4128. ac_cv_prog_CPP=$CPP
  4129. fi
  4130. echo "$as_me:$LINENO: result: $CPP" >&5
  4131. echo "${ECHO_T}$CPP" >&6
  4132. ac_preproc_ok=false
  4133. for ac_c_preproc_warn_flag in '' yes
  4134. do
  4135. # Use a header file that comes with gcc, so configuring glibc
  4136. # with a fresh cross-compiler works.
  4137. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4138. # <limits.h> exists even on freestanding compilers.
  4139. # On the NeXT, cc -E runs the code through the compiler's parser,
  4140. # not just through cpp. "Syntax error" is here to catch this case.
  4141. cat >conftest.$ac_ext <<_ACEOF
  4142. /* confdefs.h. */
  4143. _ACEOF
  4144. cat confdefs.h >>conftest.$ac_ext
  4145. cat >>conftest.$ac_ext <<_ACEOF
  4146. /* end confdefs.h. */
  4147. #ifdef __STDC__
  4148. # include <limits.h>
  4149. #else
  4150. # include <assert.h>
  4151. #endif
  4152. Syntax error
  4153. _ACEOF
  4154. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4155. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4156. ac_status=$?
  4157. grep -v '^ *+' conftest.er1 >conftest.err
  4158. rm -f conftest.er1
  4159. cat conftest.err >&5
  4160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4161. (exit $ac_status); } >/dev/null; then
  4162. if test -s conftest.err; then
  4163. ac_cpp_err=$ac_c_preproc_warn_flag
  4164. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4165. else
  4166. ac_cpp_err=
  4167. fi
  4168. else
  4169. ac_cpp_err=yes
  4170. fi
  4171. if test -z "$ac_cpp_err"; then
  4172. :
  4173. else
  4174. echo "$as_me: failed program was:" >&5
  4175. sed 's/^/| /' conftest.$ac_ext >&5
  4176. # Broken: fails on valid input.
  4177. continue
  4178. fi
  4179. rm -f conftest.err conftest.$ac_ext
  4180. # OK, works on sane cases. Now check whether non-existent headers
  4181. # can be detected and how.
  4182. cat >conftest.$ac_ext <<_ACEOF
  4183. /* confdefs.h. */
  4184. _ACEOF
  4185. cat confdefs.h >>conftest.$ac_ext
  4186. cat >>conftest.$ac_ext <<_ACEOF
  4187. /* end confdefs.h. */
  4188. #include <ac_nonexistent.h>
  4189. _ACEOF
  4190. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4191. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4192. ac_status=$?
  4193. grep -v '^ *+' conftest.er1 >conftest.err
  4194. rm -f conftest.er1
  4195. cat conftest.err >&5
  4196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4197. (exit $ac_status); } >/dev/null; then
  4198. if test -s conftest.err; then
  4199. ac_cpp_err=$ac_c_preproc_warn_flag
  4200. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4201. else
  4202. ac_cpp_err=
  4203. fi
  4204. else
  4205. ac_cpp_err=yes
  4206. fi
  4207. if test -z "$ac_cpp_err"; then
  4208. # Broken: success on invalid input.
  4209. continue
  4210. else
  4211. echo "$as_me: failed program was:" >&5
  4212. sed 's/^/| /' conftest.$ac_ext >&5
  4213. # Passes both tests.
  4214. ac_preproc_ok=:
  4215. break
  4216. fi
  4217. rm -f conftest.err conftest.$ac_ext
  4218. done
  4219. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4220. rm -f conftest.err conftest.$ac_ext
  4221. if $ac_preproc_ok; then
  4222. :
  4223. else
  4224. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4225. See \`config.log' for more details." >&5
  4226. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4227. See \`config.log' for more details." >&2;}
  4228. { (exit 1); exit 1; }; }
  4229. fi
  4230. ac_ext=c
  4231. ac_cpp='$CPP $CPPFLAGS'
  4232. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4233. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4234. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4235. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4236. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4237. if test "${ac_cv_header_stdc+set}" = set; then
  4238. echo $ECHO_N "(cached) $ECHO_C" >&6
  4239. else
  4240. cat >conftest.$ac_ext <<_ACEOF
  4241. /* confdefs.h. */
  4242. _ACEOF
  4243. cat confdefs.h >>conftest.$ac_ext
  4244. cat >>conftest.$ac_ext <<_ACEOF
  4245. /* end confdefs.h. */
  4246. #include <stdlib.h>
  4247. #include <stdarg.h>
  4248. #include <string.h>
  4249. #include <float.h>
  4250. int
  4251. main ()
  4252. {
  4253. ;
  4254. return 0;
  4255. }
  4256. _ACEOF
  4257. rm -f conftest.$ac_objext
  4258. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4259. (eval $ac_compile) 2>conftest.er1
  4260. ac_status=$?
  4261. grep -v '^ *+' conftest.er1 >conftest.err
  4262. rm -f conftest.er1
  4263. cat conftest.err >&5
  4264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4265. (exit $ac_status); } &&
  4266. { ac_try='test -z "$ac_c_werror_flag"
  4267. || test ! -s conftest.err'
  4268. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4269. (eval $ac_try) 2>&5
  4270. ac_status=$?
  4271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4272. (exit $ac_status); }; } &&
  4273. { ac_try='test -s conftest.$ac_objext'
  4274. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4275. (eval $ac_try) 2>&5
  4276. ac_status=$?
  4277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4278. (exit $ac_status); }; }; then
  4279. ac_cv_header_stdc=yes
  4280. else
  4281. echo "$as_me: failed program was:" >&5
  4282. sed 's/^/| /' conftest.$ac_ext >&5
  4283. ac_cv_header_stdc=no
  4284. fi
  4285. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4286. if test $ac_cv_header_stdc = yes; then
  4287. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4288. cat >conftest.$ac_ext <<_ACEOF
  4289. /* confdefs.h. */
  4290. _ACEOF
  4291. cat confdefs.h >>conftest.$ac_ext
  4292. cat >>conftest.$ac_ext <<_ACEOF
  4293. /* end confdefs.h. */
  4294. #include <string.h>
  4295. _ACEOF
  4296. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4297. $EGREP "memchr" >/dev/null 2>&1; then
  4298. :
  4299. else
  4300. ac_cv_header_stdc=no
  4301. fi
  4302. rm -f conftest*
  4303. fi
  4304. if test $ac_cv_header_stdc = yes; then
  4305. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4306. cat >conftest.$ac_ext <<_ACEOF
  4307. /* confdefs.h. */
  4308. _ACEOF
  4309. cat confdefs.h >>conftest.$ac_ext
  4310. cat >>conftest.$ac_ext <<_ACEOF
  4311. /* end confdefs.h. */
  4312. #include <stdlib.h>
  4313. _ACEOF
  4314. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4315. $EGREP "free" >/dev/null 2>&1; then
  4316. :
  4317. else
  4318. ac_cv_header_stdc=no
  4319. fi
  4320. rm -f conftest*
  4321. fi
  4322. if test $ac_cv_header_stdc = yes; then
  4323. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4324. if test "$cross_compiling" = yes; then
  4325. :
  4326. else
  4327. cat >conftest.$ac_ext <<_ACEOF
  4328. /* confdefs.h. */
  4329. _ACEOF
  4330. cat confdefs.h >>conftest.$ac_ext
  4331. cat >>conftest.$ac_ext <<_ACEOF
  4332. /* end confdefs.h. */
  4333. #include <ctype.h>
  4334. #if ((' ' & 0x0FF) == 0x020)
  4335. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4336. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4337. #else
  4338. # define ISLOWER(c) \
  4339. (('a' <= (c) && (c) <= 'i') \
  4340. || ('j' <= (c) && (c) <= 'r') \
  4341. || ('s' <= (c) && (c) <= 'z'))
  4342. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4343. #endif
  4344. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4345. int
  4346. main ()
  4347. {
  4348. int i;
  4349. for (i = 0; i < 256; i++)
  4350. if (XOR (islower (i), ISLOWER (i))
  4351. || toupper (i) != TOUPPER (i))
  4352. exit(2);
  4353. exit (0);
  4354. }
  4355. _ACEOF
  4356. rm -f conftest$ac_exeext
  4357. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4358. (eval $ac_link) 2>&5
  4359. ac_status=$?
  4360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4361. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4362. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4363. (eval $ac_try) 2>&5
  4364. ac_status=$?
  4365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4366. (exit $ac_status); }; }; then
  4367. :
  4368. else
  4369. echo "$as_me: program exited with status $ac_status" >&5
  4370. echo "$as_me: failed program was:" >&5
  4371. sed 's/^/| /' conftest.$ac_ext >&5
  4372. ( exit $ac_status )
  4373. ac_cv_header_stdc=no
  4374. fi
  4375. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4376. fi
  4377. fi
  4378. fi
  4379. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4380. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4381. if test $ac_cv_header_stdc = yes; then
  4382. cat >>confdefs.h <<\_ACEOF
  4383. #define STDC_HEADERS 1
  4384. _ACEOF
  4385. fi
  4386. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4387. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4388. inttypes.h stdint.h unistd.h
  4389. do
  4390. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4391. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4392. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4393. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4394. echo $ECHO_N "(cached) $ECHO_C" >&6
  4395. else
  4396. cat >conftest.$ac_ext <<_ACEOF
  4397. /* confdefs.h. */
  4398. _ACEOF
  4399. cat confdefs.h >>conftest.$ac_ext
  4400. cat >>conftest.$ac_ext <<_ACEOF
  4401. /* end confdefs.h. */
  4402. $ac_includes_default
  4403. #include <$ac_header>
  4404. _ACEOF
  4405. rm -f conftest.$ac_objext
  4406. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4407. (eval $ac_compile) 2>conftest.er1
  4408. ac_status=$?
  4409. grep -v '^ *+' conftest.er1 >conftest.err
  4410. rm -f conftest.er1
  4411. cat conftest.err >&5
  4412. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4413. (exit $ac_status); } &&
  4414. { ac_try='test -z "$ac_c_werror_flag"
  4415. || test ! -s conftest.err'
  4416. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4417. (eval $ac_try) 2>&5
  4418. ac_status=$?
  4419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4420. (exit $ac_status); }; } &&
  4421. { ac_try='test -s conftest.$ac_objext'
  4422. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4423. (eval $ac_try) 2>&5
  4424. ac_status=$?
  4425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4426. (exit $ac_status); }; }; then
  4427. eval "$as_ac_Header=yes"
  4428. else
  4429. echo "$as_me: failed program was:" >&5
  4430. sed 's/^/| /' conftest.$ac_ext >&5
  4431. eval "$as_ac_Header=no"
  4432. fi
  4433. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4434. fi
  4435. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4436. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4437. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4438. cat >>confdefs.h <<_ACEOF
  4439. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4440. _ACEOF
  4441. fi
  4442. done
  4443. for ac_header in dlfcn.h
  4444. do
  4445. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4446. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4447. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4448. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4449. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4450. echo $ECHO_N "(cached) $ECHO_C" >&6
  4451. fi
  4452. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4453. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4454. else
  4455. # Is the header compilable?
  4456. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4457. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4458. cat >conftest.$ac_ext <<_ACEOF
  4459. /* confdefs.h. */
  4460. _ACEOF
  4461. cat confdefs.h >>conftest.$ac_ext
  4462. cat >>conftest.$ac_ext <<_ACEOF
  4463. /* end confdefs.h. */
  4464. $ac_includes_default
  4465. #include <$ac_header>
  4466. _ACEOF
  4467. rm -f conftest.$ac_objext
  4468. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4469. (eval $ac_compile) 2>conftest.er1
  4470. ac_status=$?
  4471. grep -v '^ *+' conftest.er1 >conftest.err
  4472. rm -f conftest.er1
  4473. cat conftest.err >&5
  4474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4475. (exit $ac_status); } &&
  4476. { ac_try='test -z "$ac_c_werror_flag"
  4477. || test ! -s conftest.err'
  4478. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4479. (eval $ac_try) 2>&5
  4480. ac_status=$?
  4481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4482. (exit $ac_status); }; } &&
  4483. { ac_try='test -s conftest.$ac_objext'
  4484. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4485. (eval $ac_try) 2>&5
  4486. ac_status=$?
  4487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4488. (exit $ac_status); }; }; then
  4489. ac_header_compiler=yes
  4490. else
  4491. echo "$as_me: failed program was:" >&5
  4492. sed 's/^/| /' conftest.$ac_ext >&5
  4493. ac_header_compiler=no
  4494. fi
  4495. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4496. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4497. echo "${ECHO_T}$ac_header_compiler" >&6
  4498. # Is the header present?
  4499. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4500. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4501. cat >conftest.$ac_ext <<_ACEOF
  4502. /* confdefs.h. */
  4503. _ACEOF
  4504. cat confdefs.h >>conftest.$ac_ext
  4505. cat >>conftest.$ac_ext <<_ACEOF
  4506. /* end confdefs.h. */
  4507. #include <$ac_header>
  4508. _ACEOF
  4509. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4510. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4511. ac_status=$?
  4512. grep -v '^ *+' conftest.er1 >conftest.err
  4513. rm -f conftest.er1
  4514. cat conftest.err >&5
  4515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4516. (exit $ac_status); } >/dev/null; then
  4517. if test -s conftest.err; then
  4518. ac_cpp_err=$ac_c_preproc_warn_flag
  4519. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4520. else
  4521. ac_cpp_err=
  4522. fi
  4523. else
  4524. ac_cpp_err=yes
  4525. fi
  4526. if test -z "$ac_cpp_err"; then
  4527. ac_header_preproc=yes
  4528. else
  4529. echo "$as_me: failed program was:" >&5
  4530. sed 's/^/| /' conftest.$ac_ext >&5
  4531. ac_header_preproc=no
  4532. fi
  4533. rm -f conftest.err conftest.$ac_ext
  4534. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4535. echo "${ECHO_T}$ac_header_preproc" >&6
  4536. # So? What about this header?
  4537. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4538. yes:no: )
  4539. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4540. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4541. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4542. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4543. ac_header_preproc=yes
  4544. ;;
  4545. no:yes:* )
  4546. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4547. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4548. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4549. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4550. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4551. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4552. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4553. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4554. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4555. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4556. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4557. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4558. (
  4559. cat <<\_ASBOX
  4560. ## ------------------------------------------ ##
  4561. ## Report this to http://bugzilla.redhat.com/ ##
  4562. ## ------------------------------------------ ##
  4563. _ASBOX
  4564. ) |
  4565. sed "s/^/$as_me: WARNING: /" >&2
  4566. ;;
  4567. esac
  4568. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4569. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4570. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4571. echo $ECHO_N "(cached) $ECHO_C" >&6
  4572. else
  4573. eval "$as_ac_Header=\$ac_header_preproc"
  4574. fi
  4575. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4576. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4577. fi
  4578. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4579. cat >>confdefs.h <<_ACEOF
  4580. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4581. _ACEOF
  4582. fi
  4583. done
  4584. ac_ext=cc
  4585. ac_cpp='$CXXCPP $CPPFLAGS'
  4586. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4587. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4588. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4589. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4590. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  4591. if test -z "$CXXCPP"; then
  4592. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4593. echo $ECHO_N "(cached) $ECHO_C" >&6
  4594. else
  4595. # Double quotes because CXXCPP needs to be expanded
  4596. for CXXCPP in "$CXX -E" "/lib/cpp"
  4597. do
  4598. ac_preproc_ok=false
  4599. for ac_cxx_preproc_warn_flag in '' yes
  4600. do
  4601. # Use a header file that comes with gcc, so configuring glibc
  4602. # with a fresh cross-compiler works.
  4603. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4604. # <limits.h> exists even on freestanding compilers.
  4605. # On the NeXT, cc -E runs the code through the compiler's parser,
  4606. # not just through cpp. "Syntax error" is here to catch this case.
  4607. cat >conftest.$ac_ext <<_ACEOF
  4608. /* confdefs.h. */
  4609. _ACEOF
  4610. cat confdefs.h >>conftest.$ac_ext
  4611. cat >>conftest.$ac_ext <<_ACEOF
  4612. /* end confdefs.h. */
  4613. #ifdef __STDC__
  4614. # include <limits.h>
  4615. #else
  4616. # include <assert.h>
  4617. #endif
  4618. Syntax error
  4619. _ACEOF
  4620. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4621. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4622. ac_status=$?
  4623. grep -v '^ *+' conftest.er1 >conftest.err
  4624. rm -f conftest.er1
  4625. cat conftest.err >&5
  4626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4627. (exit $ac_status); } >/dev/null; then
  4628. if test -s conftest.err; then
  4629. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4630. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4631. else
  4632. ac_cpp_err=
  4633. fi
  4634. else
  4635. ac_cpp_err=yes
  4636. fi
  4637. if test -z "$ac_cpp_err"; then
  4638. :
  4639. else
  4640. echo "$as_me: failed program was:" >&5
  4641. sed 's/^/| /' conftest.$ac_ext >&5
  4642. # Broken: fails on valid input.
  4643. continue
  4644. fi
  4645. rm -f conftest.err conftest.$ac_ext
  4646. # OK, works on sane cases. Now check whether non-existent headers
  4647. # can be detected and how.
  4648. cat >conftest.$ac_ext <<_ACEOF
  4649. /* confdefs.h. */
  4650. _ACEOF
  4651. cat confdefs.h >>conftest.$ac_ext
  4652. cat >>conftest.$ac_ext <<_ACEOF
  4653. /* end confdefs.h. */
  4654. #include <ac_nonexistent.h>
  4655. _ACEOF
  4656. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4657. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4658. ac_status=$?
  4659. grep -v '^ *+' conftest.er1 >conftest.err
  4660. rm -f conftest.er1
  4661. cat conftest.err >&5
  4662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4663. (exit $ac_status); } >/dev/null; then
  4664. if test -s conftest.err; then
  4665. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4666. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4667. else
  4668. ac_cpp_err=
  4669. fi
  4670. else
  4671. ac_cpp_err=yes
  4672. fi
  4673. if test -z "$ac_cpp_err"; then
  4674. # Broken: success on invalid input.
  4675. continue
  4676. else
  4677. echo "$as_me: failed program was:" >&5
  4678. sed 's/^/| /' conftest.$ac_ext >&5
  4679. # Passes both tests.
  4680. ac_preproc_ok=:
  4681. break
  4682. fi
  4683. rm -f conftest.err conftest.$ac_ext
  4684. done
  4685. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4686. rm -f conftest.err conftest.$ac_ext
  4687. if $ac_preproc_ok; then
  4688. break
  4689. fi
  4690. done
  4691. ac_cv_prog_CXXCPP=$CXXCPP
  4692. fi
  4693. CXXCPP=$ac_cv_prog_CXXCPP
  4694. else
  4695. ac_cv_prog_CXXCPP=$CXXCPP
  4696. fi
  4697. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4698. echo "${ECHO_T}$CXXCPP" >&6
  4699. ac_preproc_ok=false
  4700. for ac_cxx_preproc_warn_flag in '' yes
  4701. do
  4702. # Use a header file that comes with gcc, so configuring glibc
  4703. # with a fresh cross-compiler works.
  4704. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4705. # <limits.h> exists even on freestanding compilers.
  4706. # On the NeXT, cc -E runs the code through the compiler's parser,
  4707. # not just through cpp. "Syntax error" is here to catch this case.
  4708. cat >conftest.$ac_ext <<_ACEOF
  4709. /* confdefs.h. */
  4710. _ACEOF
  4711. cat confdefs.h >>conftest.$ac_ext
  4712. cat >>conftest.$ac_ext <<_ACEOF
  4713. /* end confdefs.h. */
  4714. #ifdef __STDC__
  4715. # include <limits.h>
  4716. #else
  4717. # include <assert.h>
  4718. #endif
  4719. Syntax error
  4720. _ACEOF
  4721. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4722. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4723. ac_status=$?
  4724. grep -v '^ *+' conftest.er1 >conftest.err
  4725. rm -f conftest.er1
  4726. cat conftest.err >&5
  4727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4728. (exit $ac_status); } >/dev/null; then
  4729. if test -s conftest.err; then
  4730. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4731. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4732. else
  4733. ac_cpp_err=
  4734. fi
  4735. else
  4736. ac_cpp_err=yes
  4737. fi
  4738. if test -z "$ac_cpp_err"; then
  4739. :
  4740. else
  4741. echo "$as_me: failed program was:" >&5
  4742. sed 's/^/| /' conftest.$ac_ext >&5
  4743. # Broken: fails on valid input.
  4744. continue
  4745. fi
  4746. rm -f conftest.err conftest.$ac_ext
  4747. # OK, works on sane cases. Now check whether non-existent headers
  4748. # can be detected and how.
  4749. cat >conftest.$ac_ext <<_ACEOF
  4750. /* confdefs.h. */
  4751. _ACEOF
  4752. cat confdefs.h >>conftest.$ac_ext
  4753. cat >>conftest.$ac_ext <<_ACEOF
  4754. /* end confdefs.h. */
  4755. #include <ac_nonexistent.h>
  4756. _ACEOF
  4757. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4758. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4759. ac_status=$?
  4760. grep -v '^ *+' conftest.er1 >conftest.err
  4761. rm -f conftest.er1
  4762. cat conftest.err >&5
  4763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4764. (exit $ac_status); } >/dev/null; then
  4765. if test -s conftest.err; then
  4766. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4767. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4768. else
  4769. ac_cpp_err=
  4770. fi
  4771. else
  4772. ac_cpp_err=yes
  4773. fi
  4774. if test -z "$ac_cpp_err"; then
  4775. # Broken: success on invalid input.
  4776. continue
  4777. else
  4778. echo "$as_me: failed program was:" >&5
  4779. sed 's/^/| /' conftest.$ac_ext >&5
  4780. # Passes both tests.
  4781. ac_preproc_ok=:
  4782. break
  4783. fi
  4784. rm -f conftest.err conftest.$ac_ext
  4785. done
  4786. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4787. rm -f conftest.err conftest.$ac_ext
  4788. if $ac_preproc_ok; then
  4789. :
  4790. else
  4791. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4792. See \`config.log' for more details." >&5
  4793. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4794. See \`config.log' for more details." >&2;}
  4795. { (exit 1); exit 1; }; }
  4796. fi
  4797. ac_ext=cc
  4798. ac_cpp='$CXXCPP $CPPFLAGS'
  4799. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4800. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4801. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4802. ac_ext=f
  4803. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  4804. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4805. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  4806. if test -n "$ac_tool_prefix"; then
  4807. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4808. do
  4809. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4810. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4811. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4812. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4813. if test "${ac_cv_prog_F77+set}" = set; then
  4814. echo $ECHO_N "(cached) $ECHO_C" >&6
  4815. else
  4816. if test -n "$F77"; then
  4817. ac_cv_prog_F77="$F77" # Let the user override the test.
  4818. else
  4819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4820. for as_dir in $PATH
  4821. do
  4822. IFS=$as_save_IFS
  4823. test -z "$as_dir" && as_dir=.
  4824. for ac_exec_ext in '' $ac_executable_extensions; do
  4825. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4826. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  4827. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4828. break 2
  4829. fi
  4830. done
  4831. done
  4832. fi
  4833. fi
  4834. F77=$ac_cv_prog_F77
  4835. if test -n "$F77"; then
  4836. echo "$as_me:$LINENO: result: $F77" >&5
  4837. echo "${ECHO_T}$F77" >&6
  4838. else
  4839. echo "$as_me:$LINENO: result: no" >&5
  4840. echo "${ECHO_T}no" >&6
  4841. fi
  4842. test -n "$F77" && break
  4843. done
  4844. fi
  4845. if test -z "$F77"; then
  4846. ac_ct_F77=$F77
  4847. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4848. do
  4849. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4850. set dummy $ac_prog; ac_word=$2
  4851. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4852. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4853. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  4854. echo $ECHO_N "(cached) $ECHO_C" >&6
  4855. else
  4856. if test -n "$ac_ct_F77"; then
  4857. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  4858. else
  4859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4860. for as_dir in $PATH
  4861. do
  4862. IFS=$as_save_IFS
  4863. test -z "$as_dir" && as_dir=.
  4864. for ac_exec_ext in '' $ac_executable_extensions; do
  4865. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4866. ac_cv_prog_ac_ct_F77="$ac_prog"
  4867. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4868. break 2
  4869. fi
  4870. done
  4871. done
  4872. fi
  4873. fi
  4874. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  4875. if test -n "$ac_ct_F77"; then
  4876. echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  4877. echo "${ECHO_T}$ac_ct_F77" >&6
  4878. else
  4879. echo "$as_me:$LINENO: result: no" >&5
  4880. echo "${ECHO_T}no" >&6
  4881. fi
  4882. test -n "$ac_ct_F77" && break
  4883. done
  4884. F77=$ac_ct_F77
  4885. fi
  4886. # Provide some information about the compiler.
  4887. echo "$as_me:5392:" \
  4888. "checking for Fortran 77 compiler version" >&5
  4889. ac_compiler=`set X $ac_compile; echo $2`
  4890. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  4891. (eval $ac_compiler --version </dev/null >&5) 2>&5
  4892. ac_status=$?
  4893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4894. (exit $ac_status); }
  4895. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  4896. (eval $ac_compiler -v </dev/null >&5) 2>&5
  4897. ac_status=$?
  4898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4899. (exit $ac_status); }
  4900. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  4901. (eval $ac_compiler -V </dev/null >&5) 2>&5
  4902. ac_status=$?
  4903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4904. (exit $ac_status); }
  4905. rm -f a.out
  4906. # If we don't use `.F' as extension, the preprocessor is not run on the
  4907. # input file. (Note that this only needs to work for GNU compilers.)
  4908. ac_save_ext=$ac_ext
  4909. ac_ext=F
  4910. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  4911. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  4912. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  4913. echo $ECHO_N "(cached) $ECHO_C" >&6
  4914. else
  4915. cat >conftest.$ac_ext <<_ACEOF
  4916. program main
  4917. #ifndef __GNUC__
  4918. choke me
  4919. #endif
  4920. end
  4921. _ACEOF
  4922. rm -f conftest.$ac_objext
  4923. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4924. (eval $ac_compile) 2>conftest.er1
  4925. ac_status=$?
  4926. grep -v '^ *+' conftest.er1 >conftest.err
  4927. rm -f conftest.er1
  4928. cat conftest.err >&5
  4929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4930. (exit $ac_status); } &&
  4931. { ac_try='test -z "$ac_f77_werror_flag"
  4932. || test ! -s conftest.err'
  4933. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4934. (eval $ac_try) 2>&5
  4935. ac_status=$?
  4936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4937. (exit $ac_status); }; } &&
  4938. { ac_try='test -s conftest.$ac_objext'
  4939. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4940. (eval $ac_try) 2>&5
  4941. ac_status=$?
  4942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4943. (exit $ac_status); }; }; then
  4944. ac_compiler_gnu=yes
  4945. else
  4946. echo "$as_me: failed program was:" >&5
  4947. sed 's/^/| /' conftest.$ac_ext >&5
  4948. ac_compiler_gnu=no
  4949. fi
  4950. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4951. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  4952. fi
  4953. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  4954. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  4955. ac_ext=$ac_save_ext
  4956. ac_test_FFLAGS=${FFLAGS+set}
  4957. ac_save_FFLAGS=$FFLAGS
  4958. FFLAGS=
  4959. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  4960. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  4961. if test "${ac_cv_prog_f77_g+set}" = set; then
  4962. echo $ECHO_N "(cached) $ECHO_C" >&6
  4963. else
  4964. FFLAGS=-g
  4965. cat >conftest.$ac_ext <<_ACEOF
  4966. program main
  4967. end
  4968. _ACEOF
  4969. rm -f conftest.$ac_objext
  4970. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4971. (eval $ac_compile) 2>conftest.er1
  4972. ac_status=$?
  4973. grep -v '^ *+' conftest.er1 >conftest.err
  4974. rm -f conftest.er1
  4975. cat conftest.err >&5
  4976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4977. (exit $ac_status); } &&
  4978. { ac_try='test -z "$ac_f77_werror_flag"
  4979. || test ! -s conftest.err'
  4980. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4981. (eval $ac_try) 2>&5
  4982. ac_status=$?
  4983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4984. (exit $ac_status); }; } &&
  4985. { ac_try='test -s conftest.$ac_objext'
  4986. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4987. (eval $ac_try) 2>&5
  4988. ac_status=$?
  4989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4990. (exit $ac_status); }; }; then
  4991. ac_cv_prog_f77_g=yes
  4992. else
  4993. echo "$as_me: failed program was:" >&5
  4994. sed 's/^/| /' conftest.$ac_ext >&5
  4995. ac_cv_prog_f77_g=no
  4996. fi
  4997. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4998. fi
  4999. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5000. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  5001. if test "$ac_test_FFLAGS" = set; then
  5002. FFLAGS=$ac_save_FFLAGS
  5003. elif test $ac_cv_prog_f77_g = yes; then
  5004. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5005. FFLAGS="-g -O2"
  5006. else
  5007. FFLAGS="-g"
  5008. fi
  5009. else
  5010. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5011. FFLAGS="-O2"
  5012. else
  5013. FFLAGS=
  5014. fi
  5015. fi
  5016. G77=`test $ac_compiler_gnu = yes && echo yes`
  5017. ac_ext=c
  5018. ac_cpp='$CPP $CPPFLAGS'
  5019. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5020. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5021. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5022. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5023. # find the maximum length of command line arguments
  5024. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5025. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  5026. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5027. echo $ECHO_N "(cached) $ECHO_C" >&6
  5028. else
  5029. i=0
  5030. teststring="ABCD"
  5031. case $build_os in
  5032. msdosdjgpp*)
  5033. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5034. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5035. # during glob expansion). Even if it were fixed, the result of this
  5036. # check would be larger than it should be.
  5037. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5038. ;;
  5039. gnu*)
  5040. # Under GNU Hurd, this test is not required because there is
  5041. # no limit to the length of command line arguments.
  5042. # Libtool will interpret -1 as no limit whatsoever
  5043. lt_cv_sys_max_cmd_len=-1;
  5044. ;;
  5045. cygwin* | mingw*)
  5046. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5047. # about 5 minutes as the teststring grows exponentially.
  5048. # Worse, since 9x/ME are not pre-emptively multitasking,
  5049. # you end up with a "frozen" computer, even though with patience
  5050. # the test eventually succeeds (with a max line length of 256k).
  5051. # Instead, let's just punt: use the minimum linelength reported by
  5052. # all of the supported platforms: 8192 (on NT/2K/XP).
  5053. lt_cv_sys_max_cmd_len=8192;
  5054. ;;
  5055. amigaos*)
  5056. # On AmigaOS with pdksh, this test takes hours, literally.
  5057. # So we just punt and use a minimum line length of 8192.
  5058. lt_cv_sys_max_cmd_len=8192;
  5059. ;;
  5060. *)
  5061. # If test is not a shell built-in, we'll probably end up computing a
  5062. # maximum length that is only half of the actual maximum length, but
  5063. # we can't tell.
  5064. while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5065. = "XX$teststring") >/dev/null 2>&1 &&
  5066. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5067. lt_cv_sys_max_cmd_len=$new_result &&
  5068. test $i != 17 # 1/2 MB should be enough
  5069. do
  5070. i=`expr $i + 1`
  5071. teststring=$teststring$teststring
  5072. done
  5073. teststring=
  5074. # Add a significant safety factor because C++ compilers can tack on massive
  5075. # amounts of additional arguments before passing them to the linker.
  5076. # It appears as though 1/2 is a usable value.
  5077. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5078. ;;
  5079. esac
  5080. fi
  5081. if test -n $lt_cv_sys_max_cmd_len ; then
  5082. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5083. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  5084. else
  5085. echo "$as_me:$LINENO: result: none" >&5
  5086. echo "${ECHO_T}none" >&6
  5087. fi
  5088. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5089. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5090. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  5091. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5092. echo $ECHO_N "(cached) $ECHO_C" >&6
  5093. else
  5094. # These are sane defaults that work on at least a few old systems.
  5095. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5096. # Character class describing NM global symbol codes.
  5097. symcode='[BCDEGRST]'
  5098. # Regexp to match symbols that can be accessed directly from C.
  5099. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5100. # Transform the above into a raw symbol and a C symbol.
  5101. symxfrm='\1 \2\3 \3'
  5102. # Transform an extracted symbol line into a proper C declaration
  5103. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5104. # Transform an extracted symbol line into symbol name and symbol address
  5105. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5106. # Define system-specific variables.
  5107. case $host_os in
  5108. aix*)
  5109. symcode='[BCDT]'
  5110. ;;
  5111. cygwin* | mingw* | pw32*)
  5112. symcode='[ABCDGISTW]'
  5113. ;;
  5114. hpux*) # Its linker distinguishes data from code symbols
  5115. if test "$host_cpu" = ia64; then
  5116. symcode='[ABCDEGRST]'
  5117. fi
  5118. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5119. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5120. ;;
  5121. irix* | nonstopux*)
  5122. symcode='[BCDEGRST]'
  5123. ;;
  5124. osf*)
  5125. symcode='[BCDEGQRST]'
  5126. ;;
  5127. solaris* | sysv5*)
  5128. symcode='[BDRT]'
  5129. ;;
  5130. sysv4)
  5131. symcode='[DFNSTU]'
  5132. ;;
  5133. esac
  5134. # Handle CRLF in mingw tool chain
  5135. opt_cr=
  5136. case $build_os in
  5137. mingw*)
  5138. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5139. ;;
  5140. esac
  5141. # If we're using GNU nm, then use its standard symbol codes.
  5142. case `$NM -V 2>&1` in
  5143. *GNU* | *'with BFD'*)
  5144. symcode='[ABCDGIRSTW]' ;;
  5145. esac
  5146. # Try without a prefix undercore, then with it.
  5147. for ac_symprfx in "" "_"; do
  5148. # Write the raw and C identifiers.
  5149. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  5150. # Check to see that the pipe works correctly.
  5151. pipe_works=no
  5152. rm -f conftest*
  5153. cat > conftest.$ac_ext <<EOF
  5154. #ifdef __cplusplus
  5155. extern "C" {
  5156. #endif
  5157. char nm_test_var;
  5158. void nm_test_func(){}
  5159. #ifdef __cplusplus
  5160. }
  5161. #endif
  5162. int main(){nm_test_var='a';nm_test_func();return(0);}
  5163. EOF
  5164. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5165. (eval $ac_compile) 2>&5
  5166. ac_status=$?
  5167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5168. (exit $ac_status); }; then
  5169. # Now try to grab the symbols.
  5170. nlist=conftest.nm
  5171. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5172. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5173. ac_status=$?
  5174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5175. (exit $ac_status); } && test -s "$nlist"; then
  5176. # Try sorting and uniquifying the output.
  5177. if sort "$nlist" | uniq > "$nlist"T; then
  5178. mv -f "$nlist"T "$nlist"
  5179. else
  5180. rm -f "$nlist"T
  5181. fi
  5182. # Make sure that we snagged all the symbols we need.
  5183. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5184. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5185. cat <<EOF > conftest.$ac_ext
  5186. #ifdef __cplusplus
  5187. extern "C" {
  5188. #endif
  5189. EOF
  5190. # Now generate the symbol file.
  5191. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5192. cat <<EOF >> conftest.$ac_ext
  5193. #if defined (__STDC__) && __STDC__
  5194. # define lt_ptr_t void *
  5195. #else
  5196. # define lt_ptr_t char *
  5197. # define const
  5198. #endif
  5199. /* The mapping between symbol names and symbols. */
  5200. const struct {
  5201. const char *name;
  5202. lt_ptr_t address;
  5203. }
  5204. lt_preloaded_symbols[] =
  5205. {
  5206. EOF
  5207. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5208. cat <<\EOF >> conftest.$ac_ext
  5209. {0, (lt_ptr_t) 0}
  5210. };
  5211. #ifdef __cplusplus
  5212. }
  5213. #endif
  5214. EOF
  5215. # Now try linking the two files.
  5216. mv conftest.$ac_objext conftstm.$ac_objext
  5217. lt_save_LIBS="$LIBS"
  5218. lt_save_CFLAGS="$CFLAGS"
  5219. LIBS="conftstm.$ac_objext"
  5220. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5221. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5222. (eval $ac_link) 2>&5
  5223. ac_status=$?
  5224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5225. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5226. pipe_works=yes
  5227. fi
  5228. LIBS="$lt_save_LIBS"
  5229. CFLAGS="$lt_save_CFLAGS"
  5230. else
  5231. echo "cannot find nm_test_func in $nlist" >&5
  5232. fi
  5233. else
  5234. echo "cannot find nm_test_var in $nlist" >&5
  5235. fi
  5236. else
  5237. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5238. fi
  5239. else
  5240. echo "$progname: failed program was:" >&5
  5241. cat conftest.$ac_ext >&5
  5242. fi
  5243. rm -f conftest* conftst*
  5244. # Do not use the global_symbol_pipe unless it works.
  5245. if test "$pipe_works" = yes; then
  5246. break
  5247. else
  5248. lt_cv_sys_global_symbol_pipe=
  5249. fi
  5250. done
  5251. fi
  5252. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5253. lt_cv_sys_global_symbol_to_cdecl=
  5254. fi
  5255. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5256. echo "$as_me:$LINENO: result: failed" >&5
  5257. echo "${ECHO_T}failed" >&6
  5258. else
  5259. echo "$as_me:$LINENO: result: ok" >&5
  5260. echo "${ECHO_T}ok" >&6
  5261. fi
  5262. echo "$as_me:$LINENO: checking for objdir" >&5
  5263. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  5264. if test "${lt_cv_objdir+set}" = set; then
  5265. echo $ECHO_N "(cached) $ECHO_C" >&6
  5266. else
  5267. rm -f .libs 2>/dev/null
  5268. mkdir .libs 2>/dev/null
  5269. if test -d .libs; then
  5270. lt_cv_objdir=.libs
  5271. else
  5272. # MS-DOS does not allow filenames that begin with a dot.
  5273. lt_cv_objdir=_libs
  5274. fi
  5275. rmdir .libs 2>/dev/null
  5276. fi
  5277. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5278. echo "${ECHO_T}$lt_cv_objdir" >&6
  5279. objdir=$lt_cv_objdir
  5280. case $host_os in
  5281. aix3*)
  5282. # AIX sometimes has problems with the GCC collect2 program. For some
  5283. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5284. # vanish in a puff of smoke.
  5285. if test "X${COLLECT_NAMES+set}" != Xset; then
  5286. COLLECT_NAMES=
  5287. export COLLECT_NAMES
  5288. fi
  5289. ;;
  5290. esac
  5291. # Sed substitution that helps us do robust quoting. It backslashifies
  5292. # metacharacters that are still active within double-quoted strings.
  5293. Xsed='sed -e s/^X//'
  5294. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5295. # Same as above, but do not quote variable references.
  5296. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5297. # Sed substitution to delay expansion of an escaped shell variable in a
  5298. # double_quote_subst'ed string.
  5299. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5300. # Sed substitution to avoid accidental globbing in evaled expressions
  5301. no_glob_subst='s/\*/\\\*/g'
  5302. # Constants:
  5303. rm="rm -f"
  5304. # Global variables:
  5305. default_ofile=libtool
  5306. can_build_shared=yes
  5307. # All known linkers require a `.a' archive for static linking (except M$VC,
  5308. # which needs '.lib').
  5309. libext=a
  5310. ltmain="$ac_aux_dir/ltmain.sh"
  5311. ofile="$default_ofile"
  5312. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5313. if test -n "$ac_tool_prefix"; then
  5314. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5315. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5316. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5317. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5318. if test "${ac_cv_prog_AR+set}" = set; then
  5319. echo $ECHO_N "(cached) $ECHO_C" >&6
  5320. else
  5321. if test -n "$AR"; then
  5322. ac_cv_prog_AR="$AR" # Let the user override the test.
  5323. else
  5324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5325. for as_dir in $PATH
  5326. do
  5327. IFS=$as_save_IFS
  5328. test -z "$as_dir" && as_dir=.
  5329. for ac_exec_ext in '' $ac_executable_extensions; do
  5330. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5331. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5332. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5333. break 2
  5334. fi
  5335. done
  5336. done
  5337. fi
  5338. fi
  5339. AR=$ac_cv_prog_AR
  5340. if test -n "$AR"; then
  5341. echo "$as_me:$LINENO: result: $AR" >&5
  5342. echo "${ECHO_T}$AR" >&6
  5343. else
  5344. echo "$as_me:$LINENO: result: no" >&5
  5345. echo "${ECHO_T}no" >&6
  5346. fi
  5347. fi
  5348. if test -z "$ac_cv_prog_AR"; then
  5349. ac_ct_AR=$AR
  5350. # Extract the first word of "ar", so it can be a program name with args.
  5351. set dummy ar; ac_word=$2
  5352. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5353. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5354. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5355. echo $ECHO_N "(cached) $ECHO_C" >&6
  5356. else
  5357. if test -n "$ac_ct_AR"; then
  5358. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5359. else
  5360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5361. for as_dir in $PATH
  5362. do
  5363. IFS=$as_save_IFS
  5364. test -z "$as_dir" && as_dir=.
  5365. for ac_exec_ext in '' $ac_executable_extensions; do
  5366. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5367. ac_cv_prog_ac_ct_AR="ar"
  5368. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5369. break 2
  5370. fi
  5371. done
  5372. done
  5373. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  5374. fi
  5375. fi
  5376. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5377. if test -n "$ac_ct_AR"; then
  5378. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5379. echo "${ECHO_T}$ac_ct_AR" >&6
  5380. else
  5381. echo "$as_me:$LINENO: result: no" >&5
  5382. echo "${ECHO_T}no" >&6
  5383. fi
  5384. AR=$ac_ct_AR
  5385. else
  5386. AR="$ac_cv_prog_AR"
  5387. fi
  5388. if test -n "$ac_tool_prefix"; then
  5389. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5390. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5391. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5392. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5393. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5394. echo $ECHO_N "(cached) $ECHO_C" >&6
  5395. else
  5396. if test -n "$RANLIB"; then
  5397. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5398. else
  5399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5400. for as_dir in $PATH
  5401. do
  5402. IFS=$as_save_IFS
  5403. test -z "$as_dir" && as_dir=.
  5404. for ac_exec_ext in '' $ac_executable_extensions; do
  5405. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5406. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5407. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5408. break 2
  5409. fi
  5410. done
  5411. done
  5412. fi
  5413. fi
  5414. RANLIB=$ac_cv_prog_RANLIB
  5415. if test -n "$RANLIB"; then
  5416. echo "$as_me:$LINENO: result: $RANLIB" >&5
  5417. echo "${ECHO_T}$RANLIB" >&6
  5418. else
  5419. echo "$as_me:$LINENO: result: no" >&5
  5420. echo "${ECHO_T}no" >&6
  5421. fi
  5422. fi
  5423. if test -z "$ac_cv_prog_RANLIB"; then
  5424. ac_ct_RANLIB=$RANLIB
  5425. # Extract the first word of "ranlib", so it can be a program name with args.
  5426. set dummy ranlib; ac_word=$2
  5427. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5428. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5429. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5430. echo $ECHO_N "(cached) $ECHO_C" >&6
  5431. else
  5432. if test -n "$ac_ct_RANLIB"; then
  5433. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5434. else
  5435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5436. for as_dir in $PATH
  5437. do
  5438. IFS=$as_save_IFS
  5439. test -z "$as_dir" && as_dir=.
  5440. for ac_exec_ext in '' $ac_executable_extensions; do
  5441. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5442. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5443. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5444. break 2
  5445. fi
  5446. done
  5447. done
  5448. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  5449. fi
  5450. fi
  5451. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5452. if test -n "$ac_ct_RANLIB"; then
  5453. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5454. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  5455. else
  5456. echo "$as_me:$LINENO: result: no" >&5
  5457. echo "${ECHO_T}no" >&6
  5458. fi
  5459. RANLIB=$ac_ct_RANLIB
  5460. else
  5461. RANLIB="$ac_cv_prog_RANLIB"
  5462. fi
  5463. if test -n "$ac_tool_prefix"; then
  5464. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5465. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5466. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5467. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5468. if test "${ac_cv_prog_STRIP+set}" = set; then
  5469. echo $ECHO_N "(cached) $ECHO_C" >&6
  5470. else
  5471. if test -n "$STRIP"; then
  5472. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5473. else
  5474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5475. for as_dir in $PATH
  5476. do
  5477. IFS=$as_save_IFS
  5478. test -z "$as_dir" && as_dir=.
  5479. for ac_exec_ext in '' $ac_executable_extensions; do
  5480. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5481. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5482. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5483. break 2
  5484. fi
  5485. done
  5486. done
  5487. fi
  5488. fi
  5489. STRIP=$ac_cv_prog_STRIP
  5490. if test -n "$STRIP"; then
  5491. echo "$as_me:$LINENO: result: $STRIP" >&5
  5492. echo "${ECHO_T}$STRIP" >&6
  5493. else
  5494. echo "$as_me:$LINENO: result: no" >&5
  5495. echo "${ECHO_T}no" >&6
  5496. fi
  5497. fi
  5498. if test -z "$ac_cv_prog_STRIP"; then
  5499. ac_ct_STRIP=$STRIP
  5500. # Extract the first word of "strip", so it can be a program name with args.
  5501. set dummy strip; ac_word=$2
  5502. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5503. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5504. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5505. echo $ECHO_N "(cached) $ECHO_C" >&6
  5506. else
  5507. if test -n "$ac_ct_STRIP"; then
  5508. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5509. else
  5510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5511. for as_dir in $PATH
  5512. do
  5513. IFS=$as_save_IFS
  5514. test -z "$as_dir" && as_dir=.
  5515. for ac_exec_ext in '' $ac_executable_extensions; do
  5516. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5517. ac_cv_prog_ac_ct_STRIP="strip"
  5518. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5519. break 2
  5520. fi
  5521. done
  5522. done
  5523. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  5524. fi
  5525. fi
  5526. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5527. if test -n "$ac_ct_STRIP"; then
  5528. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5529. echo "${ECHO_T}$ac_ct_STRIP" >&6
  5530. else
  5531. echo "$as_me:$LINENO: result: no" >&5
  5532. echo "${ECHO_T}no" >&6
  5533. fi
  5534. STRIP=$ac_ct_STRIP
  5535. else
  5536. STRIP="$ac_cv_prog_STRIP"
  5537. fi
  5538. old_CC="$CC"
  5539. old_CFLAGS="$CFLAGS"
  5540. # Set sane defaults for various variables
  5541. test -z "$AR" && AR=ar
  5542. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5543. test -z "$AS" && AS=as
  5544. test -z "$CC" && CC=cc
  5545. test -z "$LTCC" && LTCC=$CC
  5546. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5547. test -z "$LD" && LD=ld
  5548. test -z "$LN_S" && LN_S="ln -s"
  5549. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5550. test -z "$NM" && NM=nm
  5551. test -z "$SED" && SED=sed
  5552. test -z "$OBJDUMP" && OBJDUMP=objdump
  5553. test -z "$RANLIB" && RANLIB=:
  5554. test -z "$STRIP" && STRIP=:
  5555. test -z "$ac_objext" && ac_objext=o
  5556. # Determine commands to create old-style static archives.
  5557. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  5558. old_postinstall_cmds='chmod 644 $oldlib'
  5559. old_postuninstall_cmds=
  5560. if test -n "$RANLIB"; then
  5561. case $host_os in
  5562. openbsd*)
  5563. old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  5564. ;;
  5565. *)
  5566. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  5567. ;;
  5568. esac
  5569. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5570. fi
  5571. # Only perform the check for file, if the check method requires it
  5572. case $deplibs_check_method in
  5573. file_magic*)
  5574. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  5575. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  5576. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  5577. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5578. echo $ECHO_N "(cached) $ECHO_C" >&6
  5579. else
  5580. case $MAGIC_CMD in
  5581. [\\/*] | ?:[\\/]*)
  5582. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5583. ;;
  5584. *)
  5585. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5586. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5587. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5588. for ac_dir in $ac_dummy; do
  5589. IFS="$lt_save_ifs"
  5590. test -z "$ac_dir" && ac_dir=.
  5591. if test -f $ac_dir/${ac_tool_prefix}file; then
  5592. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5593. if test -n "$file_magic_test_file"; then
  5594. case $deplibs_check_method in
  5595. "file_magic "*)
  5596. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  5597. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5598. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5599. $EGREP "$file_magic_regex" > /dev/null; then
  5600. :
  5601. else
  5602. cat <<EOF 1>&2
  5603. *** Warning: the command libtool uses to detect shared libraries,
  5604. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5605. *** The result is that libtool may fail to recognize shared libraries
  5606. *** as such. This will affect the creation of libtool libraries that
  5607. *** depend on shared libraries, but programs linked with such libtool
  5608. *** libraries will work regardless of this problem. Nevertheless, you
  5609. *** may want to report the problem to your system manager and/or to
  5610. *** [email protected]
  5611. EOF
  5612. fi ;;
  5613. esac
  5614. fi
  5615. break
  5616. fi
  5617. done
  5618. IFS="$lt_save_ifs"
  5619. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5620. ;;
  5621. esac
  5622. fi
  5623. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5624. if test -n "$MAGIC_CMD"; then
  5625. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5626. echo "${ECHO_T}$MAGIC_CMD" >&6
  5627. else
  5628. echo "$as_me:$LINENO: result: no" >&5
  5629. echo "${ECHO_T}no" >&6
  5630. fi
  5631. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5632. if test -n "$ac_tool_prefix"; then
  5633. echo "$as_me:$LINENO: checking for file" >&5
  5634. echo $ECHO_N "checking for file... $ECHO_C" >&6
  5635. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5636. echo $ECHO_N "(cached) $ECHO_C" >&6
  5637. else
  5638. case $MAGIC_CMD in
  5639. [\\/*] | ?:[\\/]*)
  5640. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5641. ;;
  5642. *)
  5643. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5644. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5645. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5646. for ac_dir in $ac_dummy; do
  5647. IFS="$lt_save_ifs"
  5648. test -z "$ac_dir" && ac_dir=.
  5649. if test -f $ac_dir/file; then
  5650. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5651. if test -n "$file_magic_test_file"; then
  5652. case $deplibs_check_method in
  5653. "file_magic "*)
  5654. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  5655. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5656. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5657. $EGREP "$file_magic_regex" > /dev/null; then
  5658. :
  5659. else
  5660. cat <<EOF 1>&2
  5661. *** Warning: the command libtool uses to detect shared libraries,
  5662. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5663. *** The result is that libtool may fail to recognize shared libraries
  5664. *** as such. This will affect the creation of libtool libraries that
  5665. *** depend on shared libraries, but programs linked with such libtool
  5666. *** libraries will work regardless of this problem. Nevertheless, you
  5667. *** may want to report the problem to your system manager and/or to
  5668. *** [email protected]
  5669. EOF
  5670. fi ;;
  5671. esac
  5672. fi
  5673. break
  5674. fi
  5675. done
  5676. IFS="$lt_save_ifs"
  5677. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5678. ;;
  5679. esac
  5680. fi
  5681. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5682. if test -n "$MAGIC_CMD"; then
  5683. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5684. echo "${ECHO_T}$MAGIC_CMD" >&6
  5685. else
  5686. echo "$as_me:$LINENO: result: no" >&5
  5687. echo "${ECHO_T}no" >&6
  5688. fi
  5689. else
  5690. MAGIC_CMD=:
  5691. fi
  5692. fi
  5693. fi
  5694. ;;
  5695. esac
  5696. enable_dlopen=no
  5697. enable_win32_dll=no
  5698. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  5699. if test "${enable_libtool_lock+set}" = set; then
  5700. enableval="$enable_libtool_lock"
  5701. fi;
  5702. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5703. # Check whether --with-pic or --without-pic was given.
  5704. if test "${with_pic+set}" = set; then
  5705. withval="$with_pic"
  5706. pic_mode="$withval"
  5707. else
  5708. pic_mode=default
  5709. fi;
  5710. test -z "$pic_mode" && pic_mode=default
  5711. # Use C for the default configuration in the libtool script
  5712. tagname=
  5713. lt_save_CC="$CC"
  5714. ac_ext=c
  5715. ac_cpp='$CPP $CPPFLAGS'
  5716. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5717. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5718. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5719. # Source file extension for C test sources.
  5720. ac_ext=c
  5721. # Object file extension for compiled C test sources.
  5722. objext=o
  5723. objext=$objext
  5724. # Code to be used in simple compile tests
  5725. lt_simple_compile_test_code="int some_variable = 0;\n"
  5726. # Code to be used in simple link tests
  5727. lt_simple_link_test_code='int main(){return(0);}\n'
  5728. # If no C compiler was specified, use CC.
  5729. LTCC=${LTCC-"$CC"}
  5730. # Allow CC to be a program name with arguments.
  5731. compiler=$CC
  5732. #
  5733. # Check for any special shared library compilation flags.
  5734. #
  5735. lt_prog_cc_shlib=
  5736. if test "$GCC" = no; then
  5737. case $host_os in
  5738. sco3.2v5*)
  5739. lt_prog_cc_shlib='-belf'
  5740. ;;
  5741. esac
  5742. fi
  5743. if test -n "$lt_prog_cc_shlib"; then
  5744. { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  5745. echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  5746. if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
  5747. else
  5748. { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  5749. echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  5750. lt_cv_prog_cc_can_build_shared=no
  5751. fi
  5752. fi
  5753. #
  5754. # Check to make sure the static flag actually works.
  5755. #
  5756. echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  5757. echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
  5758. if test "${lt_prog_compiler_static_works+set}" = set; then
  5759. echo $ECHO_N "(cached) $ECHO_C" >&6
  5760. else
  5761. lt_prog_compiler_static_works=no
  5762. save_LDFLAGS="$LDFLAGS"
  5763. LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  5764. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  5765. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  5766. # The compiler can only warn and ignore the option if not recognized
  5767. # So say no if there are warnings
  5768. if test -s conftest.err; then
  5769. # Append any errors to the config.log.
  5770. cat conftest.err 1>&5
  5771. else
  5772. lt_prog_compiler_static_works=yes
  5773. fi
  5774. fi
  5775. $rm conftest*
  5776. LDFLAGS="$save_LDFLAGS"
  5777. fi
  5778. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  5779. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  5780. if test x"$lt_prog_compiler_static_works" = xyes; then
  5781. :
  5782. else
  5783. lt_prog_compiler_static=
  5784. fi
  5785. lt_prog_compiler_no_builtin_flag=
  5786. if test "$GCC" = yes; then
  5787. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5788. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5789. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  5790. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  5791. echo $ECHO_N "(cached) $ECHO_C" >&6
  5792. else
  5793. lt_cv_prog_compiler_rtti_exceptions=no
  5794. ac_outfile=conftest.$ac_objext
  5795. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5796. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5797. # Insert the option either (1) after the last *FLAGS variable, or
  5798. # (2) before a word containing "conftest.", or (3) at the end.
  5799. # Note that $ac_compile itself does not contain backslashes and begins
  5800. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5801. # The option is referenced via a variable to avoid confusing sed.
  5802. lt_compile=`echo "$ac_compile" | $SED \
  5803. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  5804. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5805. -e 's:$: $lt_compiler_flag:'`
  5806. (eval echo "\"\$as_me:6426: $lt_compile\"" >&5)
  5807. (eval "$lt_compile" 2>conftest.err)
  5808. ac_status=$?
  5809. cat conftest.err >&5
  5810. echo "$as_me:6430: \$? = $ac_status" >&5
  5811. if (exit $ac_status) && test -s "$ac_outfile"; then
  5812. # The compiler can only warn and ignore the option if not recognized
  5813. # So say no if there are warnings
  5814. if test ! -s conftest.err; then
  5815. lt_cv_prog_compiler_rtti_exceptions=yes
  5816. fi
  5817. fi
  5818. $rm conftest*
  5819. fi
  5820. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5821. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  5822. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5823. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5824. else
  5825. :
  5826. fi
  5827. fi
  5828. lt_prog_compiler_wl=
  5829. lt_prog_compiler_pic=
  5830. lt_prog_compiler_static=
  5831. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  5832. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  5833. if test "$GCC" = yes; then
  5834. lt_prog_compiler_wl='-Wl,'
  5835. lt_prog_compiler_static='-static'
  5836. case $host_os in
  5837. aix*)
  5838. # All AIX code is PIC.
  5839. if test "$host_cpu" = ia64; then
  5840. # AIX 5 now supports IA64 processor
  5841. lt_prog_compiler_static='-Bstatic'
  5842. fi
  5843. ;;
  5844. amigaos*)
  5845. # FIXME: we need at least 68020 code to build shared libraries, but
  5846. # adding the `-m68020' flag to GCC prevents building anything better,
  5847. # like `-m68040'.
  5848. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5849. ;;
  5850. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5851. # PIC is the default for these OSes.
  5852. ;;
  5853. mingw* | pw32* | os2*)
  5854. # This hack is so that the source file can tell whether it is being
  5855. # built for inclusion in a dll (and should export symbols for example).
  5856. lt_prog_compiler_pic='-DDLL_EXPORT'
  5857. ;;
  5858. darwin* | rhapsody*)
  5859. # PIC is the default on this platform
  5860. # Common symbols not allowed in MH_DYLIB files
  5861. lt_prog_compiler_pic='-fno-common'
  5862. ;;
  5863. msdosdjgpp*)
  5864. # Just because we use GCC doesn't mean we suddenly get shared libraries
  5865. # on systems that don't support them.
  5866. lt_prog_compiler_can_build_shared=no
  5867. enable_shared=no
  5868. ;;
  5869. sysv4*MP*)
  5870. if test -d /usr/nec; then
  5871. lt_prog_compiler_pic=-Kconform_pic
  5872. fi
  5873. ;;
  5874. hpux*)
  5875. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5876. # not for PA HP-UX.
  5877. case "$host_cpu" in
  5878. hppa*64*|ia64*)
  5879. # +Z the default
  5880. ;;
  5881. *)
  5882. lt_prog_compiler_pic='-fPIC'
  5883. ;;
  5884. esac
  5885. ;;
  5886. *)
  5887. lt_prog_compiler_pic='-fPIC'
  5888. ;;
  5889. esac
  5890. else
  5891. # PORTME Check for flag to pass linker flags through the system compiler.
  5892. case $host_os in
  5893. aix*)
  5894. lt_prog_compiler_wl='-Wl,'
  5895. if test "$host_cpu" = ia64; then
  5896. # AIX 5 now supports IA64 processor
  5897. lt_prog_compiler_static='-Bstatic'
  5898. else
  5899. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  5900. fi
  5901. ;;
  5902. mingw* | pw32* | os2*)
  5903. # This hack is so that the source file can tell whether it is being
  5904. # built for inclusion in a dll (and should export symbols for example).
  5905. lt_prog_compiler_pic='-DDLL_EXPORT'
  5906. ;;
  5907. hpux9* | hpux10* | hpux11*)
  5908. lt_prog_compiler_wl='-Wl,'
  5909. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5910. # not for PA HP-UX.
  5911. case "$host_cpu" in
  5912. hppa*64*|ia64*)
  5913. # +Z the default
  5914. ;;
  5915. *)
  5916. lt_prog_compiler_pic='+Z'
  5917. ;;
  5918. esac
  5919. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  5920. lt_prog_compiler_static='${wl}-a ${wl}archive'
  5921. ;;
  5922. irix5* | irix6* | nonstopux*)
  5923. lt_prog_compiler_wl='-Wl,'
  5924. # PIC (with -KPIC) is the default.
  5925. lt_prog_compiler_static='-non_shared'
  5926. ;;
  5927. newsos6)
  5928. lt_prog_compiler_pic='-KPIC'
  5929. lt_prog_compiler_static='-Bstatic'
  5930. ;;
  5931. linux*)
  5932. case $CC in
  5933. icc* | ecc*)
  5934. lt_prog_compiler_wl='-Wl,'
  5935. lt_prog_compiler_pic='-KPIC'
  5936. lt_prog_compiler_static='-static'
  5937. ;;
  5938. ccc*)
  5939. lt_prog_compiler_wl='-Wl,'
  5940. # All Alpha code is PIC.
  5941. lt_prog_compiler_static='-non_shared'
  5942. ;;
  5943. esac
  5944. ;;
  5945. osf3* | osf4* | osf5*)
  5946. lt_prog_compiler_wl='-Wl,'
  5947. # All OSF/1 code is PIC.
  5948. lt_prog_compiler_static='-non_shared'
  5949. ;;
  5950. sco3.2v5*)
  5951. lt_prog_compiler_pic='-Kpic'
  5952. lt_prog_compiler_static='-dn'
  5953. ;;
  5954. solaris*)
  5955. lt_prog_compiler_wl='-Wl,'
  5956. lt_prog_compiler_pic='-KPIC'
  5957. lt_prog_compiler_static='-Bstatic'
  5958. ;;
  5959. sunos4*)
  5960. lt_prog_compiler_wl='-Qoption ld '
  5961. lt_prog_compiler_pic='-PIC'
  5962. lt_prog_compiler_static='-Bstatic'
  5963. ;;
  5964. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5965. lt_prog_compiler_wl='-Wl,'
  5966. lt_prog_compiler_pic='-KPIC'
  5967. lt_prog_compiler_static='-Bstatic'
  5968. ;;
  5969. sysv4*MP*)
  5970. if test -d /usr/nec ;then
  5971. lt_prog_compiler_pic='-Kconform_pic'
  5972. lt_prog_compiler_static='-Bstatic'
  5973. fi
  5974. ;;
  5975. uts4*)
  5976. lt_prog_compiler_pic='-pic'
  5977. lt_prog_compiler_static='-Bstatic'
  5978. ;;
  5979. *)
  5980. lt_prog_compiler_can_build_shared=no
  5981. ;;
  5982. esac
  5983. fi
  5984. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  5985. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  5986. #
  5987. # Check to make sure the PIC flag actually works.
  5988. #
  5989. if test -n "$lt_prog_compiler_pic"; then
  5990. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  5991. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  5992. if test "${lt_prog_compiler_pic_works+set}" = set; then
  5993. echo $ECHO_N "(cached) $ECHO_C" >&6
  5994. else
  5995. lt_prog_compiler_pic_works=no
  5996. ac_outfile=conftest.$ac_objext
  5997. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5998. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  5999. # Insert the option either (1) after the last *FLAGS variable, or
  6000. # (2) before a word containing "conftest.", or (3) at the end.
  6001. # Note that $ac_compile itself does not contain backslashes and begins
  6002. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6003. # The option is referenced via a variable to avoid confusing sed.
  6004. lt_compile=`echo "$ac_compile" | $SED \
  6005. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6006. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6007. -e 's:$: $lt_compiler_flag:'`
  6008. (eval echo "\"\$as_me:6659: $lt_compile\"" >&5)
  6009. (eval "$lt_compile" 2>conftest.err)
  6010. ac_status=$?
  6011. cat conftest.err >&5
  6012. echo "$as_me:6663: \$? = $ac_status" >&5
  6013. if (exit $ac_status) && test -s "$ac_outfile"; then
  6014. # The compiler can only warn and ignore the option if not recognized
  6015. # So say no if there are warnings
  6016. if test ! -s conftest.err; then
  6017. lt_prog_compiler_pic_works=yes
  6018. fi
  6019. fi
  6020. $rm conftest*
  6021. fi
  6022. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6023. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  6024. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6025. case $lt_prog_compiler_pic in
  6026. "" | " "*) ;;
  6027. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6028. esac
  6029. else
  6030. lt_prog_compiler_pic=
  6031. lt_prog_compiler_can_build_shared=no
  6032. fi
  6033. fi
  6034. case "$host_os" in
  6035. # For platforms which do not support PIC, -DPIC is meaningless:
  6036. *djgpp*)
  6037. lt_prog_compiler_pic=
  6038. ;;
  6039. *)
  6040. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6041. ;;
  6042. esac
  6043. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6044. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  6045. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6046. echo $ECHO_N "(cached) $ECHO_C" >&6
  6047. else
  6048. lt_cv_prog_compiler_c_o=no
  6049. $rm -r conftest 2>/dev/null
  6050. mkdir conftest
  6051. cd conftest
  6052. mkdir out
  6053. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6054. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6055. # Insert the option either (1) after the last *FLAGS variable, or
  6056. # (2) before a word containing "conftest.", or (3) at the end.
  6057. # Note that $ac_compile itself does not contain backslashes and begins
  6058. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6059. lt_compile=`echo "$ac_compile" | $SED \
  6060. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6061. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6062. -e 's:$: $lt_compiler_flag:'`
  6063. (eval echo "\"\$as_me:6719: $lt_compile\"" >&5)
  6064. (eval "$lt_compile" 2>out/conftest.err)
  6065. ac_status=$?
  6066. cat out/conftest.err >&5
  6067. echo "$as_me:6723: \$? = $ac_status" >&5
  6068. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6069. then
  6070. # The compiler can only warn and ignore the option if not recognized
  6071. # So say no if there are warnings
  6072. if test ! -s out/conftest.err; then
  6073. lt_cv_prog_compiler_c_o=yes
  6074. fi
  6075. fi
  6076. chmod u+w .
  6077. $rm conftest*
  6078. # SGI C++ compiler will create directory out/ii_files/ for
  6079. # template instantiation
  6080. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6081. $rm out/* && rmdir out
  6082. cd ..
  6083. rmdir conftest
  6084. $rm conftest*
  6085. fi
  6086. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6087. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  6088. hard_links="nottested"
  6089. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6090. # do not overwrite the value of need_locks provided by the user
  6091. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6092. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  6093. hard_links=yes
  6094. $rm conftest*
  6095. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6096. touch conftest.a
  6097. ln conftest.a conftest.b 2>&5 || hard_links=no
  6098. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6099. echo "$as_me:$LINENO: result: $hard_links" >&5
  6100. echo "${ECHO_T}$hard_links" >&6
  6101. if test "$hard_links" = no; then
  6102. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6103. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6104. need_locks=warn
  6105. fi
  6106. else
  6107. need_locks=no
  6108. fi
  6109. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6110. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  6111. runpath_var=
  6112. allow_undefined_flag=
  6113. enable_shared_with_static_runtimes=no
  6114. archive_cmds=
  6115. archive_expsym_cmds=
  6116. old_archive_From_new_cmds=
  6117. old_archive_from_expsyms_cmds=
  6118. export_dynamic_flag_spec=
  6119. whole_archive_flag_spec=
  6120. thread_safe_flag_spec=
  6121. hardcode_libdir_flag_spec=
  6122. hardcode_libdir_flag_spec_ld=
  6123. hardcode_libdir_separator=
  6124. hardcode_direct=no
  6125. hardcode_minus_L=no
  6126. hardcode_shlibpath_var=unsupported
  6127. link_all_deplibs=unknown
  6128. hardcode_automatic=no
  6129. module_cmds=
  6130. module_expsym_cmds=
  6131. always_export_symbols=no
  6132. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6133. # include_expsyms should be a list of space-separated symbols to be *always*
  6134. # included in the symbol list
  6135. include_expsyms=
  6136. # exclude_expsyms can be an extended regexp of symbols to exclude
  6137. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6138. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6139. # as well as any symbol that contains `d'.
  6140. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6141. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6142. # platforms (ab)use it in PIC code, but their linkers get confused if
  6143. # the symbol is explicitly referenced. Since portable code cannot
  6144. # rely on this symbol name, it's probably fine to never include it in
  6145. # preloaded symbol tables.
  6146. extract_expsyms_cmds=
  6147. case $host_os in
  6148. cygwin* | mingw* | pw32*)
  6149. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6150. # When not using gcc, we currently assume that we are using
  6151. # Microsoft Visual C++.
  6152. if test "$GCC" != yes; then
  6153. with_gnu_ld=no
  6154. fi
  6155. ;;
  6156. openbsd*)
  6157. with_gnu_ld=no
  6158. ;;
  6159. esac
  6160. ld_shlibs=yes
  6161. if test "$with_gnu_ld" = yes; then
  6162. # If archive_cmds runs LD, not CC, wlarc should be empty
  6163. wlarc='${wl}'
  6164. # See if GNU ld supports shared libraries.
  6165. case $host_os in
  6166. aix3* | aix4* | aix5*)
  6167. # On AIX/PPC, the GNU linker is very broken
  6168. if test "$host_cpu" != ia64; then
  6169. ld_shlibs=no
  6170. cat <<EOF 1>&2
  6171. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6172. *** to be unable to reliably create shared libraries on AIX.
  6173. *** Therefore, libtool is disabling shared libraries support. If you
  6174. *** really care for shared libraries, you may want to modify your PATH
  6175. *** so that a non-GNU linker is found, and then restart.
  6176. EOF
  6177. fi
  6178. ;;
  6179. amigaos*)
  6180. 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)'
  6181. hardcode_libdir_flag_spec='-L$libdir'
  6182. hardcode_minus_L=yes
  6183. # Samuel A. Falvo II <[email protected]> reports
  6184. # that the semantics of dynamic libraries on AmigaOS, at least up
  6185. # to version 4, is to share data among multiple programs linked
  6186. # with the same dynamic library. Since this doesn't match the
  6187. # behavior of shared libraries on other platforms, we can't use
  6188. # them.
  6189. ld_shlibs=no
  6190. ;;
  6191. beos*)
  6192. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6193. allow_undefined_flag=unsupported
  6194. # Joseph Beckenbach <[email protected]> says some releases of gcc
  6195. # support --undefined. This deserves some investigation. FIXME
  6196. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6197. else
  6198. ld_shlibs=no
  6199. fi
  6200. ;;
  6201. cygwin* | mingw* | pw32*)
  6202. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6203. # as there is no search path for DLLs.
  6204. hardcode_libdir_flag_spec='-L$libdir'
  6205. allow_undefined_flag=unsupported
  6206. always_export_symbols=no
  6207. enable_shared_with_static_runtimes=yes
  6208. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  6209. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6210. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  6211. # If the export-symbols file already is a .def file (1st line
  6212. # is EXPORTS), use it as is; otherwise, prepend...
  6213. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6214. cp $export_symbols $output_objdir/$soname.def;
  6215. else
  6216. echo EXPORTS > $output_objdir/$soname.def;
  6217. cat $export_symbols >> $output_objdir/$soname.def;
  6218. fi~
  6219. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  6220. else
  6221. ld_shlibs=no
  6222. fi
  6223. ;;
  6224. netbsd*)
  6225. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6226. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6227. wlarc=
  6228. else
  6229. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6230. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6231. fi
  6232. ;;
  6233. solaris* | sysv5*)
  6234. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  6235. ld_shlibs=no
  6236. cat <<EOF 1>&2
  6237. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6238. *** create shared libraries on Solaris systems. Therefore, libtool
  6239. *** is disabling shared libraries support. We urge you to upgrade GNU
  6240. *** binutils to release 2.9.1 or newer. Another option is to modify
  6241. *** your PATH or compiler configuration so that the native linker is
  6242. *** used, and then restart.
  6243. EOF
  6244. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6245. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6246. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6247. else
  6248. ld_shlibs=no
  6249. fi
  6250. ;;
  6251. sunos4*)
  6252. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6253. wlarc=
  6254. hardcode_direct=yes
  6255. hardcode_shlibpath_var=no
  6256. ;;
  6257. linux*)
  6258. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6259. tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6260. archive_cmds="$tmp_archive_cmds"
  6261. supports_anon_versioning=no
  6262. case `$LD -v 2>/dev/null` in
  6263. *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6264. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6265. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6266. *\ 2.11.*) ;; # other 2.11 versions
  6267. *) supports_anon_versioning=yes ;;
  6268. esac
  6269. if test $supports_anon_versioning = yes; then
  6270. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  6271. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6272. $echo "local: *; };" >> $output_objdir/$libname.ver~
  6273. $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6274. else
  6275. archive_expsym_cmds="$tmp_archive_cmds"
  6276. fi
  6277. else
  6278. ld_shlibs=no
  6279. fi
  6280. ;;
  6281. *)
  6282. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6283. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6284. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6285. else
  6286. ld_shlibs=no
  6287. fi
  6288. ;;
  6289. esac
  6290. if test "$ld_shlibs" = yes; then
  6291. runpath_var=LD_RUN_PATH
  6292. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6293. export_dynamic_flag_spec='${wl}--export-dynamic'
  6294. # ancient GNU ld didn't support --whole-archive et. al.
  6295. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6296. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6297. else
  6298. whole_archive_flag_spec=
  6299. fi
  6300. fi
  6301. else
  6302. # PORTME fill in a description of your system's linker (not GNU ld)
  6303. case $host_os in
  6304. aix3*)
  6305. allow_undefined_flag=unsupported
  6306. always_export_symbols=yes
  6307. 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'
  6308. # Note: this linker hardcodes the directories in LIBPATH if there
  6309. # are no directories specified by -L.
  6310. hardcode_minus_L=yes
  6311. if test "$GCC" = yes && test -z "$link_static_flag"; then
  6312. # Neither direct hardcoding nor static linking is supported with a
  6313. # broken collect2.
  6314. hardcode_direct=unsupported
  6315. fi
  6316. ;;
  6317. aix4* | aix5*)
  6318. if test "$host_cpu" = ia64; then
  6319. # On IA64, the linker does run time linking by default, so we don't
  6320. # have to do anything special.
  6321. aix_use_runtimelinking=no
  6322. exp_sym_flag='-Bexport'
  6323. no_entry_flag=""
  6324. else
  6325. # If we're using GNU nm, then we don't want the "-C" option.
  6326. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6327. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  6328. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  6329. else
  6330. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  6331. fi
  6332. aix_use_runtimelinking=no
  6333. # Test if we are trying to use run time linking or normal
  6334. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6335. # need to do runtime linking.
  6336. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  6337. for ld_flag in $LDFLAGS; do
  6338. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6339. aix_use_runtimelinking=yes
  6340. break
  6341. fi
  6342. done
  6343. esac
  6344. exp_sym_flag='-bexport'
  6345. no_entry_flag='-bnoentry'
  6346. fi
  6347. # When large executables or shared objects are built, AIX ld can
  6348. # have problems creating the table of contents. If linking a library
  6349. # or program results in "error TOC overflow" add -mminimal-toc to
  6350. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6351. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6352. archive_cmds=''
  6353. hardcode_direct=yes
  6354. hardcode_libdir_separator=':'
  6355. link_all_deplibs=yes
  6356. if test "$GCC" = yes; then
  6357. case $host_os in aix4.012|aix4.012.*)
  6358. # We only want to do this on AIX 4.2 and lower, the check
  6359. # below for broken collect2 doesn't work under 4.3+
  6360. collect2name=`${CC} -print-prog-name=collect2`
  6361. if test -f "$collect2name" && \
  6362. strings "$collect2name" | grep resolve_lib_name >/dev/null
  6363. then
  6364. # We have reworked collect2
  6365. hardcode_direct=yes
  6366. else
  6367. # We have old collect2
  6368. hardcode_direct=unsupported
  6369. # It fails to find uninstalled libraries when the uninstalled
  6370. # path is not listed in the libpath. Setting hardcode_minus_L
  6371. # to unsupported forces relinking
  6372. hardcode_minus_L=yes
  6373. hardcode_libdir_flag_spec='-L$libdir'
  6374. hardcode_libdir_separator=
  6375. fi
  6376. esac
  6377. shared_flag='-shared'
  6378. else
  6379. # not using gcc
  6380. if test "$host_cpu" = ia64; then
  6381. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6382. # chokes on -Wl,-G. The following line is correct:
  6383. shared_flag='-G'
  6384. else
  6385. if test "$aix_use_runtimelinking" = yes; then
  6386. shared_flag='${wl}-G'
  6387. else
  6388. shared_flag='${wl}-bM:SRE'
  6389. fi
  6390. fi
  6391. fi
  6392. # It seems that -bexpall does not export symbols beginning with
  6393. # underscore (_), so it is better to generate a list of symbols to export.
  6394. always_export_symbols=yes
  6395. if test "$aix_use_runtimelinking" = yes; then
  6396. # Warning - without using the other runtime loading flags (-brtl),
  6397. # -berok will link without error, but may produce a broken library.
  6398. allow_undefined_flag='-berok'
  6399. # Determine the default libpath from the value encoded in an empty executable.
  6400. cat >conftest.$ac_ext <<_ACEOF
  6401. /* confdefs.h. */
  6402. _ACEOF
  6403. cat confdefs.h >>conftest.$ac_ext
  6404. cat >>conftest.$ac_ext <<_ACEOF
  6405. /* end confdefs.h. */
  6406. int
  6407. main ()
  6408. {
  6409. ;
  6410. return 0;
  6411. }
  6412. _ACEOF
  6413. rm -f conftest.$ac_objext conftest$ac_exeext
  6414. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6415. (eval $ac_link) 2>conftest.er1
  6416. ac_status=$?
  6417. grep -v '^ *+' conftest.er1 >conftest.err
  6418. rm -f conftest.er1
  6419. cat conftest.err >&5
  6420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6421. (exit $ac_status); } &&
  6422. { ac_try='test -z "$ac_c_werror_flag"
  6423. || test ! -s conftest.err'
  6424. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6425. (eval $ac_try) 2>&5
  6426. ac_status=$?
  6427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6428. (exit $ac_status); }; } &&
  6429. { ac_try='test -s conftest$ac_exeext'
  6430. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6431. (eval $ac_try) 2>&5
  6432. ac_status=$?
  6433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6434. (exit $ac_status); }; }; then
  6435. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6436. }'`
  6437. # Check for a 64-bit object if we didn't find anything.
  6438. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6439. }'`; fi
  6440. else
  6441. echo "$as_me: failed program was:" >&5
  6442. sed 's/^/| /' conftest.$ac_ext >&5
  6443. fi
  6444. rm -f conftest.err conftest.$ac_objext \
  6445. conftest$ac_exeext conftest.$ac_ext
  6446. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6447. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6448. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  6449. else
  6450. if test "$host_cpu" = ia64; then
  6451. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  6452. allow_undefined_flag="-z nodefs"
  6453. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  6454. else
  6455. # Determine the default libpath from the value encoded in an empty executable.
  6456. cat >conftest.$ac_ext <<_ACEOF
  6457. /* confdefs.h. */
  6458. _ACEOF
  6459. cat confdefs.h >>conftest.$ac_ext
  6460. cat >>conftest.$ac_ext <<_ACEOF
  6461. /* end confdefs.h. */
  6462. int
  6463. main ()
  6464. {
  6465. ;
  6466. return 0;
  6467. }
  6468. _ACEOF
  6469. rm -f conftest.$ac_objext conftest$ac_exeext
  6470. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6471. (eval $ac_link) 2>conftest.er1
  6472. ac_status=$?
  6473. grep -v '^ *+' conftest.er1 >conftest.err
  6474. rm -f conftest.er1
  6475. cat conftest.err >&5
  6476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6477. (exit $ac_status); } &&
  6478. { ac_try='test -z "$ac_c_werror_flag"
  6479. || test ! -s conftest.err'
  6480. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6481. (eval $ac_try) 2>&5
  6482. ac_status=$?
  6483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6484. (exit $ac_status); }; } &&
  6485. { ac_try='test -s conftest$ac_exeext'
  6486. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6487. (eval $ac_try) 2>&5
  6488. ac_status=$?
  6489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6490. (exit $ac_status); }; }; then
  6491. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6492. }'`
  6493. # Check for a 64-bit object if we didn't find anything.
  6494. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6495. }'`; fi
  6496. else
  6497. echo "$as_me: failed program was:" >&5
  6498. sed 's/^/| /' conftest.$ac_ext >&5
  6499. fi
  6500. rm -f conftest.err conftest.$ac_objext \
  6501. conftest$ac_exeext conftest.$ac_ext
  6502. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6503. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6504. # Warning - without using the other run time loading flags,
  6505. # -berok will link without error, but may produce a broken library.
  6506. no_undefined_flag=' ${wl}-bernotok'
  6507. allow_undefined_flag=' ${wl}-berok'
  6508. # -bexpall does not export symbols beginning with underscore (_)
  6509. always_export_symbols=yes
  6510. # Exported symbols can be pulled into shared objects from archives
  6511. whole_archive_flag_spec=' '
  6512. archive_cmds_need_lc=yes
  6513. # This is similar to how AIX traditionally builds it's shared libraries.
  6514. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  6515. fi
  6516. fi
  6517. ;;
  6518. amigaos*)
  6519. 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)'
  6520. hardcode_libdir_flag_spec='-L$libdir'
  6521. hardcode_minus_L=yes
  6522. # see comment about different semantics on the GNU ld section
  6523. ld_shlibs=no
  6524. ;;
  6525. bsdi4*)
  6526. export_dynamic_flag_spec=-rdynamic
  6527. ;;
  6528. cygwin* | mingw* | pw32*)
  6529. # When not using gcc, we currently assume that we are using
  6530. # Microsoft Visual C++.
  6531. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6532. # no search path for DLLs.
  6533. hardcode_libdir_flag_spec=' '
  6534. allow_undefined_flag=unsupported
  6535. # Tell ltmain to make .lib files, not .a files.
  6536. libext=lib
  6537. # Tell ltmain to make .dll files, not .so files.
  6538. shrext_cmds=".dll"
  6539. # FIXME: Setting linknames here is a bad hack.
  6540. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6541. # The linker will automatically build a .lib file if we build a DLL.
  6542. old_archive_From_new_cmds='true'
  6543. # FIXME: Should let the user specify the lib program.
  6544. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  6545. fix_srcfile_path='`cygpath -w "$srcfile"`'
  6546. enable_shared_with_static_runtimes=yes
  6547. ;;
  6548. darwin* | rhapsody*)
  6549. if test "$GXX" = yes ; then
  6550. archive_cmds_need_lc=no
  6551. case "$host_os" in
  6552. rhapsody* | darwin1.[012])
  6553. allow_undefined_flag='-undefined suppress'
  6554. ;;
  6555. *) # Darwin 1.3 on
  6556. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  6557. allow_undefined_flag='-flat_namespace -undefined suppress'
  6558. else
  6559. case ${MACOSX_DEPLOYMENT_TARGET} in
  6560. 10.[012])
  6561. allow_undefined_flag='-flat_namespace -undefined suppress'
  6562. ;;
  6563. 10.*)
  6564. allow_undefined_flag='-undefined dynamic_lookup'
  6565. ;;
  6566. esac
  6567. fi
  6568. ;;
  6569. esac
  6570. lt_int_apple_cc_single_mod=no
  6571. output_verbose_link_cmd='echo'
  6572. if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  6573. lt_int_apple_cc_single_mod=yes
  6574. fi
  6575. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  6576. archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6577. else
  6578. archive_cmds='$CC -r ${wl}-bind_at_load -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'
  6579. fi
  6580. module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6581. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  6582. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  6583. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6584. else
  6585. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6586. fi
  6587. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6588. hardcode_direct=no
  6589. hardcode_automatic=yes
  6590. hardcode_shlibpath_var=unsupported
  6591. whole_archive_flag_spec='-all_load $convenience'
  6592. link_all_deplibs=yes
  6593. else
  6594. ld_shlibs=no
  6595. fi
  6596. ;;
  6597. dgux*)
  6598. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6599. hardcode_libdir_flag_spec='-L$libdir'
  6600. hardcode_shlibpath_var=no
  6601. ;;
  6602. freebsd1*)
  6603. ld_shlibs=no
  6604. ;;
  6605. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6606. # support. Future versions do this automatically, but an explicit c++rt0.o
  6607. # does not break anything, and helps significantly (at the cost of a little
  6608. # extra space).
  6609. freebsd2.2*)
  6610. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6611. hardcode_libdir_flag_spec='-R$libdir'
  6612. hardcode_direct=yes
  6613. hardcode_shlibpath_var=no
  6614. ;;
  6615. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6616. freebsd2*)
  6617. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6618. hardcode_direct=yes
  6619. hardcode_minus_L=yes
  6620. hardcode_shlibpath_var=no
  6621. ;;
  6622. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6623. freebsd* | kfreebsd*-gnu)
  6624. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6625. hardcode_libdir_flag_spec='-R$libdir'
  6626. hardcode_direct=yes
  6627. hardcode_shlibpath_var=no
  6628. ;;
  6629. hpux9*)
  6630. if test "$GCC" = yes; then
  6631. archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  6632. else
  6633. archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  6634. fi
  6635. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6636. hardcode_libdir_separator=:
  6637. hardcode_direct=yes
  6638. # hardcode_minus_L: Not really in the search PATH,
  6639. # but as the default location of the library.
  6640. hardcode_minus_L=yes
  6641. export_dynamic_flag_spec='${wl}-E'
  6642. ;;
  6643. hpux10* | hpux11*)
  6644. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6645. case "$host_cpu" in
  6646. hppa*64*|ia64*)
  6647. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6648. ;;
  6649. *)
  6650. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6651. ;;
  6652. esac
  6653. else
  6654. case "$host_cpu" in
  6655. hppa*64*|ia64*)
  6656. archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  6657. ;;
  6658. *)
  6659. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6660. ;;
  6661. esac
  6662. fi
  6663. if test "$with_gnu_ld" = no; then
  6664. case "$host_cpu" in
  6665. hppa*64*)
  6666. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6667. hardcode_libdir_flag_spec_ld='+b $libdir'
  6668. hardcode_libdir_separator=:
  6669. hardcode_direct=no
  6670. hardcode_shlibpath_var=no
  6671. ;;
  6672. ia64*)
  6673. hardcode_libdir_flag_spec='-L$libdir'
  6674. hardcode_direct=no
  6675. hardcode_shlibpath_var=no
  6676. # hardcode_minus_L: Not really in the search PATH,
  6677. # but as the default location of the library.
  6678. hardcode_minus_L=yes
  6679. ;;
  6680. *)
  6681. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6682. hardcode_libdir_separator=:
  6683. hardcode_direct=yes
  6684. export_dynamic_flag_spec='${wl}-E'
  6685. # hardcode_minus_L: Not really in the search PATH,
  6686. # but as the default location of the library.
  6687. hardcode_minus_L=yes
  6688. ;;
  6689. esac
  6690. fi
  6691. ;;
  6692. irix5* | irix6* | nonstopux*)
  6693. if test "$GCC" = yes; then
  6694. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6695. else
  6696. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6697. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  6698. fi
  6699. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6700. hardcode_libdir_separator=:
  6701. link_all_deplibs=yes
  6702. ;;
  6703. netbsd*)
  6704. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6705. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6706. else
  6707. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6708. fi
  6709. hardcode_libdir_flag_spec='-R$libdir'
  6710. hardcode_direct=yes
  6711. hardcode_shlibpath_var=no
  6712. ;;
  6713. newsos6)
  6714. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6715. hardcode_direct=yes
  6716. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6717. hardcode_libdir_separator=:
  6718. hardcode_shlibpath_var=no
  6719. ;;
  6720. openbsd*)
  6721. hardcode_direct=yes
  6722. hardcode_shlibpath_var=no
  6723. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6724. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6725. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6726. export_dynamic_flag_spec='${wl}-E'
  6727. else
  6728. case $host_os in
  6729. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  6730. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6731. hardcode_libdir_flag_spec='-R$libdir'
  6732. ;;
  6733. *)
  6734. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6735. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6736. ;;
  6737. esac
  6738. fi
  6739. ;;
  6740. os2*)
  6741. hardcode_libdir_flag_spec='-L$libdir'
  6742. hardcode_minus_L=yes
  6743. allow_undefined_flag=unsupported
  6744. archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  6745. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6746. ;;
  6747. osf3*)
  6748. if test "$GCC" = yes; then
  6749. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6750. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6751. else
  6752. allow_undefined_flag=' -expect_unresolved \*'
  6753. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6754. fi
  6755. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6756. hardcode_libdir_separator=:
  6757. ;;
  6758. osf4* | osf5*) # as osf3* with the addition of -msym flag
  6759. if test "$GCC" = yes; then
  6760. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6761. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6762. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6763. else
  6764. allow_undefined_flag=' -expect_unresolved \*'
  6765. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6766. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  6767. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  6768. # Both c and cxx compiler support -rpath directly
  6769. hardcode_libdir_flag_spec='-rpath $libdir'
  6770. fi
  6771. hardcode_libdir_separator=:
  6772. ;;
  6773. sco3.2v5*)
  6774. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6775. hardcode_shlibpath_var=no
  6776. export_dynamic_flag_spec='${wl}-Bexport'
  6777. runpath_var=LD_RUN_PATH
  6778. hardcode_runpath_var=yes
  6779. ;;
  6780. solaris*)
  6781. no_undefined_flag=' -z text'
  6782. if test "$GCC" = yes; then
  6783. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6784. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6785. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  6786. else
  6787. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6788. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6789. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6790. fi
  6791. hardcode_libdir_flag_spec='-R$libdir'
  6792. hardcode_shlibpath_var=no
  6793. case $host_os in
  6794. solaris2.[0-5] | solaris2.[0-5].*) ;;
  6795. *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  6796. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  6797. esac
  6798. link_all_deplibs=yes
  6799. ;;
  6800. sunos4*)
  6801. if test "x$host_vendor" = xsequent; then
  6802. # Use $CC to link under sequent, because it throws in some extra .o
  6803. # files that make .init and .fini sections work.
  6804. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6805. else
  6806. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6807. fi
  6808. hardcode_libdir_flag_spec='-L$libdir'
  6809. hardcode_direct=yes
  6810. hardcode_minus_L=yes
  6811. hardcode_shlibpath_var=no
  6812. ;;
  6813. sysv4)
  6814. case $host_vendor in
  6815. sni)
  6816. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6817. hardcode_direct=yes # is this really true???
  6818. ;;
  6819. siemens)
  6820. ## LD is ld it makes a PLAMLIB
  6821. ## CC just makes a GrossModule.
  6822. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6823. reload_cmds='$CC -r -o $output$reload_objs'
  6824. hardcode_direct=no
  6825. ;;
  6826. motorola)
  6827. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6828. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  6829. ;;
  6830. esac
  6831. runpath_var='LD_RUN_PATH'
  6832. hardcode_shlibpath_var=no
  6833. ;;
  6834. sysv4.3*)
  6835. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6836. hardcode_shlibpath_var=no
  6837. export_dynamic_flag_spec='-Bexport'
  6838. ;;
  6839. sysv4*MP*)
  6840. if test -d /usr/nec; then
  6841. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6842. hardcode_shlibpath_var=no
  6843. runpath_var=LD_RUN_PATH
  6844. hardcode_runpath_var=yes
  6845. ld_shlibs=yes
  6846. fi
  6847. ;;
  6848. sysv4.2uw2*)
  6849. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6850. hardcode_direct=yes
  6851. hardcode_minus_L=no
  6852. hardcode_shlibpath_var=no
  6853. hardcode_runpath_var=yes
  6854. runpath_var=LD_RUN_PATH
  6855. ;;
  6856. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  6857. no_undefined_flag='${wl}-z ${wl}text'
  6858. if test "$GCC" = yes; then
  6859. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6860. else
  6861. archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6862. fi
  6863. runpath_var='LD_RUN_PATH'
  6864. hardcode_shlibpath_var=no
  6865. ;;
  6866. sysv5*)
  6867. no_undefined_flag=' -z text'
  6868. # $CC -shared without GNU ld will not create a library from C++
  6869. # object files and a static libstdc++, better avoid it by now
  6870. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6871. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6872. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6873. hardcode_libdir_flag_spec=
  6874. hardcode_shlibpath_var=no
  6875. runpath_var='LD_RUN_PATH'
  6876. ;;
  6877. uts4*)
  6878. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6879. hardcode_libdir_flag_spec='-L$libdir'
  6880. hardcode_shlibpath_var=no
  6881. ;;
  6882. *)
  6883. ld_shlibs=no
  6884. ;;
  6885. esac
  6886. fi
  6887. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  6888. echo "${ECHO_T}$ld_shlibs" >&6
  6889. test "$ld_shlibs" = no && can_build_shared=no
  6890. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  6891. if test "$GCC" = yes; then
  6892. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  6893. fi
  6894. #
  6895. # Do we need to explicitly link libc?
  6896. #
  6897. case "x$archive_cmds_need_lc" in
  6898. x|xyes)
  6899. # Assume -lc should be added
  6900. archive_cmds_need_lc=yes
  6901. if test "$enable_shared" = yes && test "$GCC" = yes; then
  6902. case $archive_cmds in
  6903. *'~'*)
  6904. # FIXME: we may have to deal with multi-command sequences.
  6905. ;;
  6906. '$CC '*)
  6907. # Test whether the compiler implicitly links with -lc since on some
  6908. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6909. # to ld, don't add -lc before -lgcc.
  6910. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  6911. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  6912. $rm conftest*
  6913. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6914. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6915. (eval $ac_compile) 2>&5
  6916. ac_status=$?
  6917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6918. (exit $ac_status); } 2>conftest.err; then
  6919. soname=conftest
  6920. lib=conftest
  6921. libobjs=conftest.$ac_objext
  6922. deplibs=
  6923. wl=$lt_prog_compiler_wl
  6924. compiler_flags=-v
  6925. linker_flags=-v
  6926. verstring=
  6927. output_objdir=.
  6928. libname=conftest
  6929. lt_save_allow_undefined_flag=$allow_undefined_flag
  6930. allow_undefined_flag=
  6931. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  6932. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  6933. ac_status=$?
  6934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6935. (exit $ac_status); }
  6936. then
  6937. archive_cmds_need_lc=no
  6938. else
  6939. archive_cmds_need_lc=yes
  6940. fi
  6941. allow_undefined_flag=$lt_save_allow_undefined_flag
  6942. else
  6943. cat conftest.err 1>&5
  6944. fi
  6945. $rm conftest*
  6946. echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  6947. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  6948. ;;
  6949. esac
  6950. fi
  6951. ;;
  6952. esac
  6953. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  6954. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  6955. library_names_spec=
  6956. libname_spec='lib$name'
  6957. soname_spec=
  6958. shrext_cmds=".so"
  6959. postinstall_cmds=
  6960. postuninstall_cmds=
  6961. finish_cmds=
  6962. finish_eval=
  6963. shlibpath_var=
  6964. shlibpath_overrides_runpath=unknown
  6965. version_type=none
  6966. dynamic_linker="$host_os ld.so"
  6967. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  6968. if test "$GCC" = yes; then
  6969. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  6970. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  6971. # if the path contains ";" then we assume it to be the separator
  6972. # otherwise default to the standard path separator (i.e. ":") - it is
  6973. # assumed that no part of a normal pathname contains ";" but that should
  6974. # okay in the real world where ";" in dirpaths is itself problematic.
  6975. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  6976. else
  6977. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  6978. fi
  6979. else
  6980. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  6981. fi
  6982. need_lib_prefix=unknown
  6983. hardcode_into_libs=no
  6984. # when you set need_version to no, make sure it does not cause -set_version
  6985. # flags to be left without arguments
  6986. need_version=unknown
  6987. case $host_os in
  6988. aix3*)
  6989. version_type=linux
  6990. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  6991. shlibpath_var=LIBPATH
  6992. # AIX 3 has no versioning support, so we append a major version to the name.
  6993. soname_spec='${libname}${release}${shared_ext}$major'
  6994. ;;
  6995. aix4* | aix5*)
  6996. version_type=linux
  6997. need_lib_prefix=no
  6998. need_version=no
  6999. hardcode_into_libs=yes
  7000. if test "$host_cpu" = ia64; then
  7001. # AIX 5 supports IA64
  7002. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7003. shlibpath_var=LD_LIBRARY_PATH
  7004. else
  7005. # With GCC up to 2.95.x, collect2 would create an import file
  7006. # for dependence libraries. The import file would start with
  7007. # the line `#! .'. This would cause the generated library to
  7008. # depend on `.', always an invalid library. This was fixed in
  7009. # development snapshots of GCC prior to 3.0.
  7010. case $host_os in
  7011. aix4 | aix4.[01] | aix4.[01].*)
  7012. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7013. echo ' yes '
  7014. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7015. :
  7016. else
  7017. can_build_shared=no
  7018. fi
  7019. ;;
  7020. esac
  7021. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7022. # soname into executable. Probably we can add versioning support to
  7023. # collect2, so additional links can be useful in future.
  7024. if test "$aix_use_runtimelinking" = yes; then
  7025. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7026. # instead of lib<name>.a to let people know that these are not
  7027. # typical AIX shared libraries.
  7028. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7029. else
  7030. # We preserve .a as extension for shared libraries through AIX4.2
  7031. # and later when we are not doing run time linking.
  7032. library_names_spec='${libname}${release}.a $libname.a'
  7033. soname_spec='${libname}${release}${shared_ext}$major'
  7034. fi
  7035. shlibpath_var=LIBPATH
  7036. fi
  7037. ;;
  7038. amigaos*)
  7039. library_names_spec='$libname.ixlibrary $libname.a'
  7040. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7041. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  7042. ;;
  7043. beos*)
  7044. library_names_spec='${libname}${shared_ext}'
  7045. dynamic_linker="$host_os ld.so"
  7046. shlibpath_var=LIBRARY_PATH
  7047. ;;
  7048. bsdi4*)
  7049. version_type=linux
  7050. need_version=no
  7051. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7052. soname_spec='${libname}${release}${shared_ext}$major'
  7053. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7054. shlibpath_var=LD_LIBRARY_PATH
  7055. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7056. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7057. # the default ld.so.conf also contains /usr/contrib/lib and
  7058. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7059. # libtool to hard-code these into programs
  7060. ;;
  7061. cygwin* | mingw* | pw32*)
  7062. version_type=windows
  7063. shrext_cmds=".dll"
  7064. need_version=no
  7065. need_lib_prefix=no
  7066. case $GCC,$host_os in
  7067. yes,cygwin* | yes,mingw* | yes,pw32*)
  7068. library_names_spec='$libname.dll.a'
  7069. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7070. postinstall_cmds='base_file=`basename \${file}`~
  7071. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7072. dldir=$destdir/`dirname \$dlpath`~
  7073. test -d \$dldir || mkdir -p \$dldir~
  7074. $install_prog $dir/$dlname \$dldir/$dlname'
  7075. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7076. dlpath=$dir/\$dldll~
  7077. $rm \$dlpath'
  7078. shlibpath_overrides_runpath=yes
  7079. case $host_os in
  7080. cygwin*)
  7081. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7082. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7083. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7084. ;;
  7085. mingw*)
  7086. # MinGW DLLs use traditional 'lib' prefix
  7087. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7088. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7089. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7090. # It is most probably a Windows format PATH printed by
  7091. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7092. # path with ; separators, and with drive letters. We can handle the
  7093. # drive letters (cygwin fileutils understands them), so leave them,
  7094. # especially as we might pass files found there to a mingw objdump,
  7095. # which wouldn't understand a cygwinified path. Ahh.
  7096. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7097. else
  7098. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7099. fi
  7100. ;;
  7101. pw32*)
  7102. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7103. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  7104. ;;
  7105. esac
  7106. ;;
  7107. *)
  7108. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7109. ;;
  7110. esac
  7111. dynamic_linker='Win32 ld.exe'
  7112. # FIXME: first we should search . and the directory the executable is in
  7113. shlibpath_var=PATH
  7114. ;;
  7115. darwin* | rhapsody*)
  7116. dynamic_linker="$host_os dyld"
  7117. version_type=darwin
  7118. need_lib_prefix=no
  7119. need_version=no
  7120. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7121. soname_spec='${libname}${release}${major}$shared_ext'
  7122. shlibpath_overrides_runpath=yes
  7123. shlibpath_var=DYLD_LIBRARY_PATH
  7124. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  7125. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  7126. if test "$GCC" = yes; then
  7127. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  7128. else
  7129. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  7130. fi
  7131. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7132. ;;
  7133. dgux*)
  7134. version_type=linux
  7135. need_lib_prefix=no
  7136. need_version=no
  7137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7138. soname_spec='${libname}${release}${shared_ext}$major'
  7139. shlibpath_var=LD_LIBRARY_PATH
  7140. ;;
  7141. freebsd1*)
  7142. dynamic_linker=no
  7143. ;;
  7144. kfreebsd*-gnu)
  7145. version_type=linux
  7146. need_lib_prefix=no
  7147. need_version=no
  7148. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7149. soname_spec='${libname}${release}${shared_ext}$major'
  7150. shlibpath_var=LD_LIBRARY_PATH
  7151. shlibpath_overrides_runpath=no
  7152. hardcode_into_libs=yes
  7153. dynamic_linker='GNU ld.so'
  7154. ;;
  7155. freebsd*)
  7156. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  7157. version_type=freebsd-$objformat
  7158. case $version_type in
  7159. freebsd-elf*)
  7160. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7161. need_version=no
  7162. need_lib_prefix=no
  7163. ;;
  7164. freebsd-*)
  7165. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7166. need_version=yes
  7167. ;;
  7168. esac
  7169. shlibpath_var=LD_LIBRARY_PATH
  7170. case $host_os in
  7171. freebsd2*)
  7172. shlibpath_overrides_runpath=yes
  7173. ;;
  7174. freebsd3.01* | freebsdelf3.01*)
  7175. shlibpath_overrides_runpath=yes
  7176. hardcode_into_libs=yes
  7177. ;;
  7178. *) # from 3.2 on
  7179. shlibpath_overrides_runpath=no
  7180. hardcode_into_libs=yes
  7181. ;;
  7182. esac
  7183. ;;
  7184. gnu*)
  7185. version_type=linux
  7186. need_lib_prefix=no
  7187. need_version=no
  7188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7189. soname_spec='${libname}${release}${shared_ext}$major'
  7190. shlibpath_var=LD_LIBRARY_PATH
  7191. hardcode_into_libs=yes
  7192. ;;
  7193. hpux9* | hpux10* | hpux11*)
  7194. # Give a soname corresponding to the major version so that dld.sl refuses to
  7195. # link against other versions.
  7196. version_type=sunos
  7197. need_lib_prefix=no
  7198. need_version=no
  7199. case "$host_cpu" in
  7200. ia64*)
  7201. shrext_cmds='.so'
  7202. hardcode_into_libs=yes
  7203. dynamic_linker="$host_os dld.so"
  7204. shlibpath_var=LD_LIBRARY_PATH
  7205. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7206. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7207. soname_spec='${libname}${release}${shared_ext}$major'
  7208. if test "X$HPUX_IA64_MODE" = X32; then
  7209. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7210. else
  7211. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7212. fi
  7213. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7214. ;;
  7215. hppa*64*)
  7216. shrext_cmds='.sl'
  7217. hardcode_into_libs=yes
  7218. dynamic_linker="$host_os dld.sl"
  7219. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  7220. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7222. soname_spec='${libname}${release}${shared_ext}$major'
  7223. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7224. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7225. ;;
  7226. *)
  7227. shrext_cmds='.sl'
  7228. dynamic_linker="$host_os dld.sl"
  7229. shlibpath_var=SHLIB_PATH
  7230. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7232. soname_spec='${libname}${release}${shared_ext}$major'
  7233. ;;
  7234. esac
  7235. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7236. postinstall_cmds='chmod 555 $lib'
  7237. ;;
  7238. irix5* | irix6* | nonstopux*)
  7239. case $host_os in
  7240. nonstopux*) version_type=nonstopux ;;
  7241. *)
  7242. if test "$lt_cv_prog_gnu_ld" = yes; then
  7243. version_type=linux
  7244. else
  7245. version_type=irix
  7246. fi ;;
  7247. esac
  7248. need_lib_prefix=no
  7249. need_version=no
  7250. soname_spec='${libname}${release}${shared_ext}$major'
  7251. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7252. case $host_os in
  7253. irix5* | nonstopux*)
  7254. libsuff= shlibsuff=
  7255. ;;
  7256. *)
  7257. case $LD in # libtool.m4 will add one of these switches to LD
  7258. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7259. libsuff= shlibsuff= libmagic=32-bit;;
  7260. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7261. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7262. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7263. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7264. *) libsuff= shlibsuff= libmagic=never-match;;
  7265. esac
  7266. ;;
  7267. esac
  7268. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7269. shlibpath_overrides_runpath=no
  7270. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7271. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7272. hardcode_into_libs=yes
  7273. ;;
  7274. # No shared lib support for Linux oldld, aout, or coff.
  7275. linux*oldld* | linux*aout* | linux*coff*)
  7276. dynamic_linker=no
  7277. ;;
  7278. # This must be Linux ELF.
  7279. linux*)
  7280. version_type=linux
  7281. need_lib_prefix=no
  7282. need_version=no
  7283. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7284. soname_spec='${libname}${release}${shared_ext}$major'
  7285. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  7286. shlibpath_var=LD_LIBRARY_PATH
  7287. shlibpath_overrides_runpath=no
  7288. # This implies no fast_install, which is unacceptable.
  7289. # Some rework will be needed to allow for fast_install
  7290. # before this can be enabled.
  7291. hardcode_into_libs=yes
  7292. # find out which ABI we are using
  7293. libsuff=
  7294. case "$host_cpu" in
  7295. x86_64*|s390x*|powerpc64*)
  7296. echo '#line 8053 "configure"' > conftest.$ac_ext
  7297. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7298. (eval $ac_compile) 2>&5
  7299. ac_status=$?
  7300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7301. (exit $ac_status); }; then
  7302. case `/usr/bin/file conftest.$ac_objext` in
  7303. *64-bit*)
  7304. libsuff=64
  7305. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  7306. ;;
  7307. esac
  7308. fi
  7309. rm -rf conftest*
  7310. ;;
  7311. esac
  7312. # Append ld.so.conf contents to the search path
  7313. if test -f /etc/ld.so.conf; then
  7314. lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
  7315. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  7316. fi
  7317. # We used to test for /lib/ld.so.1 and disable shared libraries on
  7318. # powerpc, because MkLinux only supported shared libraries with the
  7319. # GNU dynamic linker. Since this was broken with cross compilers,
  7320. # most powerpc-linux boxes support dynamic linking these days and
  7321. # people can always --disable-shared, the test was removed, and we
  7322. # assume the GNU/Linux dynamic linker is in use.
  7323. dynamic_linker='GNU/Linux ld.so'
  7324. ;;
  7325. knetbsd*-gnu)
  7326. version_type=linux
  7327. need_lib_prefix=no
  7328. need_version=no
  7329. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7330. soname_spec='${libname}${release}${shared_ext}$major'
  7331. shlibpath_var=LD_LIBRARY_PATH
  7332. shlibpath_overrides_runpath=no
  7333. hardcode_into_libs=yes
  7334. dynamic_linker='GNU ld.so'
  7335. ;;
  7336. netbsd*)
  7337. version_type=sunos
  7338. need_lib_prefix=no
  7339. need_version=no
  7340. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7342. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7343. dynamic_linker='NetBSD (a.out) ld.so'
  7344. else
  7345. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7346. soname_spec='${libname}${release}${shared_ext}$major'
  7347. dynamic_linker='NetBSD ld.elf_so'
  7348. fi
  7349. shlibpath_var=LD_LIBRARY_PATH
  7350. shlibpath_overrides_runpath=yes
  7351. hardcode_into_libs=yes
  7352. ;;
  7353. newsos6)
  7354. version_type=linux
  7355. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7356. shlibpath_var=LD_LIBRARY_PATH
  7357. shlibpath_overrides_runpath=yes
  7358. ;;
  7359. nto-qnx*)
  7360. version_type=linux
  7361. need_lib_prefix=no
  7362. need_version=no
  7363. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7364. soname_spec='${libname}${release}${shared_ext}$major'
  7365. shlibpath_var=LD_LIBRARY_PATH
  7366. shlibpath_overrides_runpath=yes
  7367. ;;
  7368. openbsd*)
  7369. version_type=sunos
  7370. need_lib_prefix=no
  7371. need_version=yes
  7372. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7373. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7374. shlibpath_var=LD_LIBRARY_PATH
  7375. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7376. case $host_os in
  7377. openbsd2.[89] | openbsd2.[89].*)
  7378. shlibpath_overrides_runpath=no
  7379. ;;
  7380. *)
  7381. shlibpath_overrides_runpath=yes
  7382. ;;
  7383. esac
  7384. else
  7385. shlibpath_overrides_runpath=yes
  7386. fi
  7387. ;;
  7388. os2*)
  7389. libname_spec='$name'
  7390. shrext_cmds=".dll"
  7391. need_lib_prefix=no
  7392. library_names_spec='$libname${shared_ext} $libname.a'
  7393. dynamic_linker='OS/2 ld.exe'
  7394. shlibpath_var=LIBPATH
  7395. ;;
  7396. osf3* | osf4* | osf5*)
  7397. version_type=osf
  7398. need_lib_prefix=no
  7399. need_version=no
  7400. soname_spec='${libname}${release}${shared_ext}$major'
  7401. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7402. shlibpath_var=LD_LIBRARY_PATH
  7403. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  7404. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  7405. ;;
  7406. sco3.2v5*)
  7407. version_type=osf
  7408. soname_spec='${libname}${release}${shared_ext}$major'
  7409. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7410. shlibpath_var=LD_LIBRARY_PATH
  7411. ;;
  7412. solaris*)
  7413. version_type=linux
  7414. need_lib_prefix=no
  7415. need_version=no
  7416. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7417. soname_spec='${libname}${release}${shared_ext}$major'
  7418. shlibpath_var=LD_LIBRARY_PATH
  7419. shlibpath_overrides_runpath=yes
  7420. hardcode_into_libs=yes
  7421. # ldd complains unless libraries are executable
  7422. postinstall_cmds='chmod +x $lib'
  7423. ;;
  7424. sunos4*)
  7425. version_type=sunos
  7426. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7427. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  7428. shlibpath_var=LD_LIBRARY_PATH
  7429. shlibpath_overrides_runpath=yes
  7430. if test "$with_gnu_ld" = yes; then
  7431. need_lib_prefix=no
  7432. fi
  7433. need_version=yes
  7434. ;;
  7435. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7436. version_type=linux
  7437. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7438. soname_spec='${libname}${release}${shared_ext}$major'
  7439. shlibpath_var=LD_LIBRARY_PATH
  7440. case $host_vendor in
  7441. sni)
  7442. shlibpath_overrides_runpath=no
  7443. need_lib_prefix=no
  7444. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7445. runpath_var=LD_RUN_PATH
  7446. ;;
  7447. siemens)
  7448. need_lib_prefix=no
  7449. ;;
  7450. motorola)
  7451. need_lib_prefix=no
  7452. need_version=no
  7453. shlibpath_overrides_runpath=no
  7454. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  7455. ;;
  7456. esac
  7457. ;;
  7458. sysv4*MP*)
  7459. if test -d /usr/nec ;then
  7460. version_type=linux
  7461. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  7462. soname_spec='$libname${shared_ext}.$major'
  7463. shlibpath_var=LD_LIBRARY_PATH
  7464. fi
  7465. ;;
  7466. uts4*)
  7467. version_type=linux
  7468. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7469. soname_spec='${libname}${release}${shared_ext}$major'
  7470. shlibpath_var=LD_LIBRARY_PATH
  7471. ;;
  7472. *)
  7473. dynamic_linker=no
  7474. ;;
  7475. esac
  7476. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  7477. echo "${ECHO_T}$dynamic_linker" >&6
  7478. test "$dynamic_linker" = no && can_build_shared=no
  7479. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  7480. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  7481. hardcode_action=
  7482. if test -n "$hardcode_libdir_flag_spec" || \
  7483. test -n "$runpath_var " || \
  7484. test "X$hardcode_automatic"="Xyes" ; then
  7485. # We can hardcode non-existant directories.
  7486. if test "$hardcode_direct" != no &&
  7487. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  7488. # have to relink, otherwise we might link with an installed library
  7489. # when we should be linking with a yet-to-be-installed one
  7490. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  7491. test "$hardcode_minus_L" != no; then
  7492. # Linking always hardcodes the temporary library directory.
  7493. hardcode_action=relink
  7494. else
  7495. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  7496. hardcode_action=immediate
  7497. fi
  7498. else
  7499. # We cannot hardcode anything, or else we can only hardcode existing
  7500. # directories.
  7501. hardcode_action=unsupported
  7502. fi
  7503. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  7504. echo "${ECHO_T}$hardcode_action" >&6
  7505. if test "$hardcode_action" = relink; then
  7506. # Fast installation is not supported
  7507. enable_fast_install=no
  7508. elif test "$shlibpath_overrides_runpath" = yes ||
  7509. test "$enable_shared" = no; then
  7510. # Fast installation is not necessary
  7511. enable_fast_install=needless
  7512. fi
  7513. striplib=
  7514. old_striplib=
  7515. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  7516. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  7517. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  7518. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  7519. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  7520. echo "$as_me:$LINENO: result: yes" >&5
  7521. echo "${ECHO_T}yes" >&6
  7522. else
  7523. # FIXME - insert some real tests, host_os isn't really good enough
  7524. case $host_os in
  7525. darwin*)
  7526. if test -n "$STRIP" ; then
  7527. striplib="$STRIP -x"
  7528. echo "$as_me:$LINENO: result: yes" >&5
  7529. echo "${ECHO_T}yes" >&6
  7530. else
  7531. echo "$as_me:$LINENO: result: no" >&5
  7532. echo "${ECHO_T}no" >&6
  7533. fi
  7534. ;;
  7535. *)
  7536. echo "$as_me:$LINENO: result: no" >&5
  7537. echo "${ECHO_T}no" >&6
  7538. ;;
  7539. esac
  7540. fi
  7541. if test "x$enable_dlopen" != xyes; then
  7542. enable_dlopen=unknown
  7543. enable_dlopen_self=unknown
  7544. enable_dlopen_self_static=unknown
  7545. else
  7546. lt_cv_dlopen=no
  7547. lt_cv_dlopen_libs=
  7548. case $host_os in
  7549. beos*)
  7550. lt_cv_dlopen="load_add_on"
  7551. lt_cv_dlopen_libs=
  7552. lt_cv_dlopen_self=yes
  7553. ;;
  7554. mingw* | pw32*)
  7555. lt_cv_dlopen="LoadLibrary"
  7556. lt_cv_dlopen_libs=
  7557. ;;
  7558. cygwin*)
  7559. lt_cv_dlopen="dlopen"
  7560. lt_cv_dlopen_libs=
  7561. ;;
  7562. darwin*)
  7563. # if libdl is installed we need to link against it
  7564. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7565. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7566. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7567. echo $ECHO_N "(cached) $ECHO_C" >&6
  7568. else
  7569. ac_check_lib_save_LIBS=$LIBS
  7570. LIBS="-ldl $LIBS"
  7571. cat >conftest.$ac_ext <<_ACEOF
  7572. /* confdefs.h. */
  7573. _ACEOF
  7574. cat confdefs.h >>conftest.$ac_ext
  7575. cat >>conftest.$ac_ext <<_ACEOF
  7576. /* end confdefs.h. */
  7577. /* Override any gcc2 internal prototype to avoid an error. */
  7578. #ifdef __cplusplus
  7579. extern "C"
  7580. #endif
  7581. /* We use char because int might match the return type of a gcc2
  7582. builtin and then its argument prototype would still apply. */
  7583. char dlopen ();
  7584. int
  7585. main ()
  7586. {
  7587. dlopen ();
  7588. ;
  7589. return 0;
  7590. }
  7591. _ACEOF
  7592. rm -f conftest.$ac_objext conftest$ac_exeext
  7593. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7594. (eval $ac_link) 2>conftest.er1
  7595. ac_status=$?
  7596. grep -v '^ *+' conftest.er1 >conftest.err
  7597. rm -f conftest.er1
  7598. cat conftest.err >&5
  7599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7600. (exit $ac_status); } &&
  7601. { ac_try='test -z "$ac_c_werror_flag"
  7602. || test ! -s conftest.err'
  7603. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7604. (eval $ac_try) 2>&5
  7605. ac_status=$?
  7606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7607. (exit $ac_status); }; } &&
  7608. { ac_try='test -s conftest$ac_exeext'
  7609. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7610. (eval $ac_try) 2>&5
  7611. ac_status=$?
  7612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7613. (exit $ac_status); }; }; then
  7614. ac_cv_lib_dl_dlopen=yes
  7615. else
  7616. echo "$as_me: failed program was:" >&5
  7617. sed 's/^/| /' conftest.$ac_ext >&5
  7618. ac_cv_lib_dl_dlopen=no
  7619. fi
  7620. rm -f conftest.err conftest.$ac_objext \
  7621. conftest$ac_exeext conftest.$ac_ext
  7622. LIBS=$ac_check_lib_save_LIBS
  7623. fi
  7624. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7625. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7626. if test $ac_cv_lib_dl_dlopen = yes; then
  7627. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7628. else
  7629. lt_cv_dlopen="dyld"
  7630. lt_cv_dlopen_libs=
  7631. lt_cv_dlopen_self=yes
  7632. fi
  7633. ;;
  7634. *)
  7635. echo "$as_me:$LINENO: checking for shl_load" >&5
  7636. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  7637. if test "${ac_cv_func_shl_load+set}" = set; then
  7638. echo $ECHO_N "(cached) $ECHO_C" >&6
  7639. else
  7640. cat >conftest.$ac_ext <<_ACEOF
  7641. /* confdefs.h. */
  7642. _ACEOF
  7643. cat confdefs.h >>conftest.$ac_ext
  7644. cat >>conftest.$ac_ext <<_ACEOF
  7645. /* end confdefs.h. */
  7646. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  7647. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7648. #define shl_load innocuous_shl_load
  7649. /* System header to define __stub macros and hopefully few prototypes,
  7650. which can conflict with char shl_load (); below.
  7651. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7652. <limits.h> exists even on freestanding compilers. */
  7653. #ifdef __STDC__
  7654. # include <limits.h>
  7655. #else
  7656. # include <assert.h>
  7657. #endif
  7658. #undef shl_load
  7659. /* Override any gcc2 internal prototype to avoid an error. */
  7660. #ifdef __cplusplus
  7661. extern "C"
  7662. {
  7663. #endif
  7664. /* We use char because int might match the return type of a gcc2
  7665. builtin and then its argument prototype would still apply. */
  7666. char shl_load ();
  7667. /* The GNU C library defines this for functions which it implements
  7668. to always fail with ENOSYS. Some functions are actually named
  7669. something starting with __ and the normal name is an alias. */
  7670. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  7671. choke me
  7672. #else
  7673. char (*f) () = shl_load;
  7674. #endif
  7675. #ifdef __cplusplus
  7676. }
  7677. #endif
  7678. int
  7679. main ()
  7680. {
  7681. return f != shl_load;
  7682. ;
  7683. return 0;
  7684. }
  7685. _ACEOF
  7686. rm -f conftest.$ac_objext conftest$ac_exeext
  7687. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7688. (eval $ac_link) 2>conftest.er1
  7689. ac_status=$?
  7690. grep -v '^ *+' conftest.er1 >conftest.err
  7691. rm -f conftest.er1
  7692. cat conftest.err >&5
  7693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7694. (exit $ac_status); } &&
  7695. { ac_try='test -z "$ac_c_werror_flag"
  7696. || test ! -s conftest.err'
  7697. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7698. (eval $ac_try) 2>&5
  7699. ac_status=$?
  7700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7701. (exit $ac_status); }; } &&
  7702. { ac_try='test -s conftest$ac_exeext'
  7703. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7704. (eval $ac_try) 2>&5
  7705. ac_status=$?
  7706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7707. (exit $ac_status); }; }; then
  7708. ac_cv_func_shl_load=yes
  7709. else
  7710. echo "$as_me: failed program was:" >&5
  7711. sed 's/^/| /' conftest.$ac_ext >&5
  7712. ac_cv_func_shl_load=no
  7713. fi
  7714. rm -f conftest.err conftest.$ac_objext \
  7715. conftest$ac_exeext conftest.$ac_ext
  7716. fi
  7717. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  7718. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  7719. if test $ac_cv_func_shl_load = yes; then
  7720. lt_cv_dlopen="shl_load"
  7721. else
  7722. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  7723. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  7724. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  7725. echo $ECHO_N "(cached) $ECHO_C" >&6
  7726. else
  7727. ac_check_lib_save_LIBS=$LIBS
  7728. LIBS="-ldld $LIBS"
  7729. cat >conftest.$ac_ext <<_ACEOF
  7730. /* confdefs.h. */
  7731. _ACEOF
  7732. cat confdefs.h >>conftest.$ac_ext
  7733. cat >>conftest.$ac_ext <<_ACEOF
  7734. /* end confdefs.h. */
  7735. /* Override any gcc2 internal prototype to avoid an error. */
  7736. #ifdef __cplusplus
  7737. extern "C"
  7738. #endif
  7739. /* We use char because int might match the return type of a gcc2
  7740. builtin and then its argument prototype would still apply. */
  7741. char shl_load ();
  7742. int
  7743. main ()
  7744. {
  7745. shl_load ();
  7746. ;
  7747. return 0;
  7748. }
  7749. _ACEOF
  7750. rm -f conftest.$ac_objext conftest$ac_exeext
  7751. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7752. (eval $ac_link) 2>conftest.er1
  7753. ac_status=$?
  7754. grep -v '^ *+' conftest.er1 >conftest.err
  7755. rm -f conftest.er1
  7756. cat conftest.err >&5
  7757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7758. (exit $ac_status); } &&
  7759. { ac_try='test -z "$ac_c_werror_flag"
  7760. || test ! -s conftest.err'
  7761. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7762. (eval $ac_try) 2>&5
  7763. ac_status=$?
  7764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7765. (exit $ac_status); }; } &&
  7766. { ac_try='test -s conftest$ac_exeext'
  7767. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7768. (eval $ac_try) 2>&5
  7769. ac_status=$?
  7770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7771. (exit $ac_status); }; }; then
  7772. ac_cv_lib_dld_shl_load=yes
  7773. else
  7774. echo "$as_me: failed program was:" >&5
  7775. sed 's/^/| /' conftest.$ac_ext >&5
  7776. ac_cv_lib_dld_shl_load=no
  7777. fi
  7778. rm -f conftest.err conftest.$ac_objext \
  7779. conftest$ac_exeext conftest.$ac_ext
  7780. LIBS=$ac_check_lib_save_LIBS
  7781. fi
  7782. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  7783. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  7784. if test $ac_cv_lib_dld_shl_load = yes; then
  7785. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  7786. else
  7787. echo "$as_me:$LINENO: checking for dlopen" >&5
  7788. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  7789. if test "${ac_cv_func_dlopen+set}" = set; then
  7790. echo $ECHO_N "(cached) $ECHO_C" >&6
  7791. else
  7792. cat >conftest.$ac_ext <<_ACEOF
  7793. /* confdefs.h. */
  7794. _ACEOF
  7795. cat confdefs.h >>conftest.$ac_ext
  7796. cat >>conftest.$ac_ext <<_ACEOF
  7797. /* end confdefs.h. */
  7798. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  7799. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7800. #define dlopen innocuous_dlopen
  7801. /* System header to define __stub macros and hopefully few prototypes,
  7802. which can conflict with char dlopen (); below.
  7803. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7804. <limits.h> exists even on freestanding compilers. */
  7805. #ifdef __STDC__
  7806. # include <limits.h>
  7807. #else
  7808. # include <assert.h>
  7809. #endif
  7810. #undef dlopen
  7811. /* Override any gcc2 internal prototype to avoid an error. */
  7812. #ifdef __cplusplus
  7813. extern "C"
  7814. {
  7815. #endif
  7816. /* We use char because int might match the return type of a gcc2
  7817. builtin and then its argument prototype would still apply. */
  7818. char dlopen ();
  7819. /* The GNU C library defines this for functions which it implements
  7820. to always fail with ENOSYS. Some functions are actually named
  7821. something starting with __ and the normal name is an alias. */
  7822. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  7823. choke me
  7824. #else
  7825. char (*f) () = dlopen;
  7826. #endif
  7827. #ifdef __cplusplus
  7828. }
  7829. #endif
  7830. int
  7831. main ()
  7832. {
  7833. return f != dlopen;
  7834. ;
  7835. return 0;
  7836. }
  7837. _ACEOF
  7838. rm -f conftest.$ac_objext conftest$ac_exeext
  7839. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7840. (eval $ac_link) 2>conftest.er1
  7841. ac_status=$?
  7842. grep -v '^ *+' conftest.er1 >conftest.err
  7843. rm -f conftest.er1
  7844. cat conftest.err >&5
  7845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7846. (exit $ac_status); } &&
  7847. { ac_try='test -z "$ac_c_werror_flag"
  7848. || test ! -s conftest.err'
  7849. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7850. (eval $ac_try) 2>&5
  7851. ac_status=$?
  7852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7853. (exit $ac_status); }; } &&
  7854. { ac_try='test -s conftest$ac_exeext'
  7855. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7856. (eval $ac_try) 2>&5
  7857. ac_status=$?
  7858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7859. (exit $ac_status); }; }; then
  7860. ac_cv_func_dlopen=yes
  7861. else
  7862. echo "$as_me: failed program was:" >&5
  7863. sed 's/^/| /' conftest.$ac_ext >&5
  7864. ac_cv_func_dlopen=no
  7865. fi
  7866. rm -f conftest.err conftest.$ac_objext \
  7867. conftest$ac_exeext conftest.$ac_ext
  7868. fi
  7869. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  7870. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  7871. if test $ac_cv_func_dlopen = yes; then
  7872. lt_cv_dlopen="dlopen"
  7873. else
  7874. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7875. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7876. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7877. echo $ECHO_N "(cached) $ECHO_C" >&6
  7878. else
  7879. ac_check_lib_save_LIBS=$LIBS
  7880. LIBS="-ldl $LIBS"
  7881. cat >conftest.$ac_ext <<_ACEOF
  7882. /* confdefs.h. */
  7883. _ACEOF
  7884. cat confdefs.h >>conftest.$ac_ext
  7885. cat >>conftest.$ac_ext <<_ACEOF
  7886. /* end confdefs.h. */
  7887. /* Override any gcc2 internal prototype to avoid an error. */
  7888. #ifdef __cplusplus
  7889. extern "C"
  7890. #endif
  7891. /* We use char because int might match the return type of a gcc2
  7892. builtin and then its argument prototype would still apply. */
  7893. char dlopen ();
  7894. int
  7895. main ()
  7896. {
  7897. dlopen ();
  7898. ;
  7899. return 0;
  7900. }
  7901. _ACEOF
  7902. rm -f conftest.$ac_objext conftest$ac_exeext
  7903. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7904. (eval $ac_link) 2>conftest.er1
  7905. ac_status=$?
  7906. grep -v '^ *+' conftest.er1 >conftest.err
  7907. rm -f conftest.er1
  7908. cat conftest.err >&5
  7909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7910. (exit $ac_status); } &&
  7911. { ac_try='test -z "$ac_c_werror_flag"
  7912. || test ! -s conftest.err'
  7913. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7914. (eval $ac_try) 2>&5
  7915. ac_status=$?
  7916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7917. (exit $ac_status); }; } &&
  7918. { ac_try='test -s conftest$ac_exeext'
  7919. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7920. (eval $ac_try) 2>&5
  7921. ac_status=$?
  7922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7923. (exit $ac_status); }; }; then
  7924. ac_cv_lib_dl_dlopen=yes
  7925. else
  7926. echo "$as_me: failed program was:" >&5
  7927. sed 's/^/| /' conftest.$ac_ext >&5
  7928. ac_cv_lib_dl_dlopen=no
  7929. fi
  7930. rm -f conftest.err conftest.$ac_objext \
  7931. conftest$ac_exeext conftest.$ac_ext
  7932. LIBS=$ac_check_lib_save_LIBS
  7933. fi
  7934. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7935. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7936. if test $ac_cv_lib_dl_dlopen = yes; then
  7937. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7938. else
  7939. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  7940. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  7941. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  7942. echo $ECHO_N "(cached) $ECHO_C" >&6
  7943. else
  7944. ac_check_lib_save_LIBS=$LIBS
  7945. LIBS="-lsvld $LIBS"
  7946. cat >conftest.$ac_ext <<_ACEOF
  7947. /* confdefs.h. */
  7948. _ACEOF
  7949. cat confdefs.h >>conftest.$ac_ext
  7950. cat >>conftest.$ac_ext <<_ACEOF
  7951. /* end confdefs.h. */
  7952. /* Override any gcc2 internal prototype to avoid an error. */
  7953. #ifdef __cplusplus
  7954. extern "C"
  7955. #endif
  7956. /* We use char because int might match the return type of a gcc2
  7957. builtin and then its argument prototype would still apply. */
  7958. char dlopen ();
  7959. int
  7960. main ()
  7961. {
  7962. dlopen ();
  7963. ;
  7964. return 0;
  7965. }
  7966. _ACEOF
  7967. rm -f conftest.$ac_objext conftest$ac_exeext
  7968. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7969. (eval $ac_link) 2>conftest.er1
  7970. ac_status=$?
  7971. grep -v '^ *+' conftest.er1 >conftest.err
  7972. rm -f conftest.er1
  7973. cat conftest.err >&5
  7974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7975. (exit $ac_status); } &&
  7976. { ac_try='test -z "$ac_c_werror_flag"
  7977. || test ! -s conftest.err'
  7978. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7979. (eval $ac_try) 2>&5
  7980. ac_status=$?
  7981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7982. (exit $ac_status); }; } &&
  7983. { ac_try='test -s conftest$ac_exeext'
  7984. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7985. (eval $ac_try) 2>&5
  7986. ac_status=$?
  7987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7988. (exit $ac_status); }; }; then
  7989. ac_cv_lib_svld_dlopen=yes
  7990. else
  7991. echo "$as_me: failed program was:" >&5
  7992. sed 's/^/| /' conftest.$ac_ext >&5
  7993. ac_cv_lib_svld_dlopen=no
  7994. fi
  7995. rm -f conftest.err conftest.$ac_objext \
  7996. conftest$ac_exeext conftest.$ac_ext
  7997. LIBS=$ac_check_lib_save_LIBS
  7998. fi
  7999. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8000. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  8001. if test $ac_cv_lib_svld_dlopen = yes; then
  8002. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8003. else
  8004. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8005. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  8006. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8007. echo $ECHO_N "(cached) $ECHO_C" >&6
  8008. else
  8009. ac_check_lib_save_LIBS=$LIBS
  8010. LIBS="-ldld $LIBS"
  8011. cat >conftest.$ac_ext <<_ACEOF
  8012. /* confdefs.h. */
  8013. _ACEOF
  8014. cat confdefs.h >>conftest.$ac_ext
  8015. cat >>conftest.$ac_ext <<_ACEOF
  8016. /* end confdefs.h. */
  8017. /* Override any gcc2 internal prototype to avoid an error. */
  8018. #ifdef __cplusplus
  8019. extern "C"
  8020. #endif
  8021. /* We use char because int might match the return type of a gcc2
  8022. builtin and then its argument prototype would still apply. */
  8023. char dld_link ();
  8024. int
  8025. main ()
  8026. {
  8027. dld_link ();
  8028. ;
  8029. return 0;
  8030. }
  8031. _ACEOF
  8032. rm -f conftest.$ac_objext conftest$ac_exeext
  8033. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8034. (eval $ac_link) 2>conftest.er1
  8035. ac_status=$?
  8036. grep -v '^ *+' conftest.er1 >conftest.err
  8037. rm -f conftest.er1
  8038. cat conftest.err >&5
  8039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8040. (exit $ac_status); } &&
  8041. { ac_try='test -z "$ac_c_werror_flag"
  8042. || test ! -s conftest.err'
  8043. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8044. (eval $ac_try) 2>&5
  8045. ac_status=$?
  8046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8047. (exit $ac_status); }; } &&
  8048. { ac_try='test -s conftest$ac_exeext'
  8049. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8050. (eval $ac_try) 2>&5
  8051. ac_status=$?
  8052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8053. (exit $ac_status); }; }; then
  8054. ac_cv_lib_dld_dld_link=yes
  8055. else
  8056. echo "$as_me: failed program was:" >&5
  8057. sed 's/^/| /' conftest.$ac_ext >&5
  8058. ac_cv_lib_dld_dld_link=no
  8059. fi
  8060. rm -f conftest.err conftest.$ac_objext \
  8061. conftest$ac_exeext conftest.$ac_ext
  8062. LIBS=$ac_check_lib_save_LIBS
  8063. fi
  8064. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8065. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  8066. if test $ac_cv_lib_dld_dld_link = yes; then
  8067. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  8068. fi
  8069. fi
  8070. fi
  8071. fi
  8072. fi
  8073. fi
  8074. ;;
  8075. esac
  8076. if test "x$lt_cv_dlopen" != xno; then
  8077. enable_dlopen=yes
  8078. else
  8079. enable_dlopen=no
  8080. fi
  8081. case $lt_cv_dlopen in
  8082. dlopen)
  8083. save_CPPFLAGS="$CPPFLAGS"
  8084. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8085. save_LDFLAGS="$LDFLAGS"
  8086. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8087. save_LIBS="$LIBS"
  8088. LIBS="$lt_cv_dlopen_libs $LIBS"
  8089. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8090. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  8091. if test "${lt_cv_dlopen_self+set}" = set; then
  8092. echo $ECHO_N "(cached) $ECHO_C" >&6
  8093. else
  8094. if test "$cross_compiling" = yes; then :
  8095. lt_cv_dlopen_self=cross
  8096. else
  8097. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8098. lt_status=$lt_dlunknown
  8099. cat > conftest.$ac_ext <<EOF
  8100. #line 8924 "configure"
  8101. #include "confdefs.h"
  8102. #if HAVE_DLFCN_H
  8103. #include <dlfcn.h>
  8104. #endif
  8105. #include <stdio.h>
  8106. #ifdef RTLD_GLOBAL
  8107. # define LT_DLGLOBAL RTLD_GLOBAL
  8108. #else
  8109. # ifdef DL_GLOBAL
  8110. # define LT_DLGLOBAL DL_GLOBAL
  8111. # else
  8112. # define LT_DLGLOBAL 0
  8113. # endif
  8114. #endif
  8115. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8116. find out it does not work in some platform. */
  8117. #ifndef LT_DLLAZY_OR_NOW
  8118. # ifdef RTLD_LAZY
  8119. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8120. # else
  8121. # ifdef DL_LAZY
  8122. # define LT_DLLAZY_OR_NOW DL_LAZY
  8123. # else
  8124. # ifdef RTLD_NOW
  8125. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8126. # else
  8127. # ifdef DL_NOW
  8128. # define LT_DLLAZY_OR_NOW DL_NOW
  8129. # else
  8130. # define LT_DLLAZY_OR_NOW 0
  8131. # endif
  8132. # endif
  8133. # endif
  8134. # endif
  8135. #endif
  8136. #ifdef __cplusplus
  8137. extern "C" void exit (int);
  8138. #endif
  8139. void fnord() { int i=42;}
  8140. int main ()
  8141. {
  8142. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8143. int status = $lt_dlunknown;
  8144. if (self)
  8145. {
  8146. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8147. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8148. /* dlclose (self); */
  8149. }
  8150. exit (status);
  8151. }
  8152. EOF
  8153. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8154. (eval $ac_link) 2>&5
  8155. ac_status=$?
  8156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8157. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8158. (./conftest; exit; ) 2>/dev/null
  8159. lt_status=$?
  8160. case x$lt_status in
  8161. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8162. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8163. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  8164. esac
  8165. else :
  8166. # compilation failed
  8167. lt_cv_dlopen_self=no
  8168. fi
  8169. fi
  8170. rm -fr conftest*
  8171. fi
  8172. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8173. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  8174. if test "x$lt_cv_dlopen_self" = xyes; then
  8175. LDFLAGS="$LDFLAGS $link_static_flag"
  8176. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8177. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  8178. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8179. echo $ECHO_N "(cached) $ECHO_C" >&6
  8180. else
  8181. if test "$cross_compiling" = yes; then :
  8182. lt_cv_dlopen_self_static=cross
  8183. else
  8184. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8185. lt_status=$lt_dlunknown
  8186. cat > conftest.$ac_ext <<EOF
  8187. #line 9022 "configure"
  8188. #include "confdefs.h"
  8189. #if HAVE_DLFCN_H
  8190. #include <dlfcn.h>
  8191. #endif
  8192. #include <stdio.h>
  8193. #ifdef RTLD_GLOBAL
  8194. # define LT_DLGLOBAL RTLD_GLOBAL
  8195. #else
  8196. # ifdef DL_GLOBAL
  8197. # define LT_DLGLOBAL DL_GLOBAL
  8198. # else
  8199. # define LT_DLGLOBAL 0
  8200. # endif
  8201. #endif
  8202. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8203. find out it does not work in some platform. */
  8204. #ifndef LT_DLLAZY_OR_NOW
  8205. # ifdef RTLD_LAZY
  8206. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8207. # else
  8208. # ifdef DL_LAZY
  8209. # define LT_DLLAZY_OR_NOW DL_LAZY
  8210. # else
  8211. # ifdef RTLD_NOW
  8212. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8213. # else
  8214. # ifdef DL_NOW
  8215. # define LT_DLLAZY_OR_NOW DL_NOW
  8216. # else
  8217. # define LT_DLLAZY_OR_NOW 0
  8218. # endif
  8219. # endif
  8220. # endif
  8221. # endif
  8222. #endif
  8223. #ifdef __cplusplus
  8224. extern "C" void exit (int);
  8225. #endif
  8226. void fnord() { int i=42;}
  8227. int main ()
  8228. {
  8229. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8230. int status = $lt_dlunknown;
  8231. if (self)
  8232. {
  8233. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8234. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8235. /* dlclose (self); */
  8236. }
  8237. exit (status);
  8238. }
  8239. EOF
  8240. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8241. (eval $ac_link) 2>&5
  8242. ac_status=$?
  8243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8244. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8245. (./conftest; exit; ) 2>/dev/null
  8246. lt_status=$?
  8247. case x$lt_status in
  8248. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8249. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8250. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  8251. esac
  8252. else :
  8253. # compilation failed
  8254. lt_cv_dlopen_self_static=no
  8255. fi
  8256. fi
  8257. rm -fr conftest*
  8258. fi
  8259. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  8260. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  8261. fi
  8262. CPPFLAGS="$save_CPPFLAGS"
  8263. LDFLAGS="$save_LDFLAGS"
  8264. LIBS="$save_LIBS"
  8265. ;;
  8266. esac
  8267. case $lt_cv_dlopen_self in
  8268. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8269. *) enable_dlopen_self=unknown ;;
  8270. esac
  8271. case $lt_cv_dlopen_self_static in
  8272. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8273. *) enable_dlopen_self_static=unknown ;;
  8274. esac
  8275. fi
  8276. # Report which librarie types wil actually be built
  8277. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  8278. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  8279. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  8280. echo "${ECHO_T}$can_build_shared" >&6
  8281. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  8282. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  8283. test "$can_build_shared" = "no" && enable_shared=no
  8284. # On AIX, shared libraries and static libraries use the same namespace, and
  8285. # are all built from PIC.
  8286. case "$host_os" in
  8287. aix3*)
  8288. test "$enable_shared" = yes && enable_static=no
  8289. if test -n "$RANLIB"; then
  8290. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8291. postinstall_cmds='$RANLIB $lib'
  8292. fi
  8293. ;;
  8294. aix4* | aix5*)
  8295. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8296. test "$enable_shared" = yes && enable_static=no
  8297. fi
  8298. ;;
  8299. darwin* | rhapsody*)
  8300. if test "$GCC" = yes; then
  8301. archive_cmds_need_lc=no
  8302. case "$host_os" in
  8303. rhapsody* | darwin1.[012])
  8304. allow_undefined_flag='-undefined suppress'
  8305. ;;
  8306. *) # Darwin 1.3 on
  8307. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  8308. allow_undefined_flag='-flat_namespace -undefined suppress'
  8309. else
  8310. case ${MACOSX_DEPLOYMENT_TARGET} in
  8311. 10.[012])
  8312. allow_undefined_flag='-flat_namespace -undefined suppress'
  8313. ;;
  8314. 10.*)
  8315. allow_undefined_flag='-undefined dynamic_lookup'
  8316. ;;
  8317. esac
  8318. fi
  8319. ;;
  8320. esac
  8321. output_verbose_link_cmd='echo'
  8322. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
  8323. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  8324. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  8325. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8326. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8327. hardcode_direct=no
  8328. hardcode_automatic=yes
  8329. hardcode_shlibpath_var=unsupported
  8330. whole_archive_flag_spec='-all_load $convenience'
  8331. link_all_deplibs=yes
  8332. else
  8333. ld_shlibs=no
  8334. fi
  8335. ;;
  8336. esac
  8337. echo "$as_me:$LINENO: result: $enable_shared" >&5
  8338. echo "${ECHO_T}$enable_shared" >&6
  8339. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  8340. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  8341. # Make sure either enable_shared or enable_static is yes.
  8342. test "$enable_shared" = yes || enable_static=yes
  8343. echo "$as_me:$LINENO: result: $enable_static" >&5
  8344. echo "${ECHO_T}$enable_static" >&6
  8345. # The else clause should only fire when bootstrapping the
  8346. # libtool distribution, otherwise you forgot to ship ltmain.sh
  8347. # with your package, and you will get complaints that there are
  8348. # no rules to generate ltmain.sh.
  8349. if test -f "$ltmain"; then
  8350. # See if we are running on zsh, and set the options which allow our commands through
  8351. # without removal of \ escapes.
  8352. if test -n "${ZSH_VERSION+set}" ; then
  8353. setopt NO_GLOB_SUBST
  8354. fi
  8355. # Now quote all the things that may contain metacharacters while being
  8356. # careful not to overquote the AC_SUBSTed values. We take copies of the
  8357. # variables and quote the copies for generation of the libtool script.
  8358. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  8359. SED SHELL STRIP \
  8360. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  8361. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  8362. deplibs_check_method reload_flag reload_cmds need_locks \
  8363. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  8364. lt_cv_sys_global_symbol_to_c_name_address \
  8365. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  8366. old_postinstall_cmds old_postuninstall_cmds \
  8367. compiler \
  8368. CC \
  8369. LD \
  8370. lt_prog_compiler_wl \
  8371. lt_prog_compiler_pic \
  8372. lt_prog_compiler_static \
  8373. lt_prog_compiler_no_builtin_flag \
  8374. export_dynamic_flag_spec \
  8375. thread_safe_flag_spec \
  8376. whole_archive_flag_spec \
  8377. enable_shared_with_static_runtimes \
  8378. old_archive_cmds \
  8379. old_archive_from_new_cmds \
  8380. predep_objects \
  8381. postdep_objects \
  8382. predeps \
  8383. postdeps \
  8384. compiler_lib_search_path \
  8385. archive_cmds \
  8386. archive_expsym_cmds \
  8387. postinstall_cmds \
  8388. postuninstall_cmds \
  8389. old_archive_from_expsyms_cmds \
  8390. allow_undefined_flag \
  8391. no_undefined_flag \
  8392. export_symbols_cmds \
  8393. hardcode_libdir_flag_spec \
  8394. hardcode_libdir_flag_spec_ld \
  8395. hardcode_libdir_separator \
  8396. hardcode_automatic \
  8397. module_cmds \
  8398. module_expsym_cmds \
  8399. lt_cv_prog_compiler_c_o \
  8400. exclude_expsyms \
  8401. include_expsyms; do
  8402. case $var in
  8403. old_archive_cmds | \
  8404. old_archive_from_new_cmds | \
  8405. archive_cmds | \
  8406. archive_expsym_cmds | \
  8407. module_cmds | \
  8408. module_expsym_cmds | \
  8409. old_archive_from_expsyms_cmds | \
  8410. export_symbols_cmds | \
  8411. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  8412. postinstall_cmds | postuninstall_cmds | \
  8413. old_postinstall_cmds | old_postuninstall_cmds | \
  8414. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  8415. # Double-quote double-evaled strings.
  8416. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  8417. ;;
  8418. *)
  8419. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  8420. ;;
  8421. esac
  8422. done
  8423. case $lt_echo in
  8424. *'\$0 --fallback-echo"')
  8425. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  8426. ;;
  8427. esac
  8428. cfgfile="${ofile}T"
  8429. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  8430. $rm -f "$cfgfile"
  8431. { echo "$as_me:$LINENO: creating $ofile" >&5
  8432. echo "$as_me: creating $ofile" >&6;}
  8433. cat <<__EOF__ >> "$cfgfile"
  8434. #! $SHELL
  8435. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  8436. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  8437. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  8438. #
  8439. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  8440. # Free Software Foundation, Inc.
  8441. #
  8442. # This file is part of GNU Libtool:
  8443. # Originally by Gordon Matzigkeit <[email protected]>, 1996
  8444. #
  8445. # This program is free software; you can redistribute it and/or modify
  8446. # it under the terms of the GNU General Public License as published by
  8447. # the Free Software Foundation; either version 2 of the License, or
  8448. # (at your option) any later version.
  8449. #
  8450. # This program is distributed in the hope that it will be useful, but
  8451. # WITHOUT ANY WARRANTY; without even the implied warranty of
  8452. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  8453. # General Public License for more details.
  8454. #
  8455. # You should have received a copy of the GNU General Public License
  8456. # along with this program; if not, write to the Free Software
  8457. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  8458. #
  8459. # As a special exception to the GNU General Public License, if you
  8460. # distribute this file as part of a program that contains a
  8461. # configuration script generated by Autoconf, you may include it under
  8462. # the same distribution terms that you use for the rest of that program.
  8463. # A sed program that does not truncate output.
  8464. SED=$lt_SED
  8465. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  8466. Xsed="$SED -e s/^X//"
  8467. # The HP-UX ksh and POSIX shell print the target directory to stdout
  8468. # if CDPATH is set.
  8469. if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  8470. # The names of the tagged configurations supported by this script.
  8471. available_tags=
  8472. # ### BEGIN LIBTOOL CONFIG
  8473. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8474. # Shell to use when invoking shell scripts.
  8475. SHELL=$lt_SHELL
  8476. # Whether or not to build shared libraries.
  8477. build_libtool_libs=$enable_shared
  8478. # Whether or not to build static libraries.
  8479. build_old_libs=$enable_static
  8480. # Whether or not to add -lc for building shared libraries.
  8481. build_libtool_need_lc=$archive_cmds_need_lc
  8482. # Whether or not to disallow shared libs when runtime libs are static
  8483. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  8484. # Whether or not to optimize for fast installation.
  8485. fast_install=$enable_fast_install
  8486. # The host system.
  8487. host_alias=$host_alias
  8488. host=$host
  8489. # An echo program that does not interpret backslashes.
  8490. echo=$lt_echo
  8491. # The archiver.
  8492. AR=$lt_AR
  8493. AR_FLAGS=$lt_AR_FLAGS
  8494. # A C compiler.
  8495. LTCC=$lt_LTCC
  8496. # A language-specific compiler.
  8497. CC=$lt_compiler
  8498. # Is the compiler the GNU C compiler?
  8499. with_gcc=$GCC
  8500. # An ERE matcher.
  8501. EGREP=$lt_EGREP
  8502. # The linker used to build libraries.
  8503. LD=$lt_LD
  8504. # Whether we need hard or soft links.
  8505. LN_S=$lt_LN_S
  8506. # A BSD-compatible nm program.
  8507. NM=$lt_NM
  8508. # A symbol stripping program
  8509. STRIP=$lt_STRIP
  8510. # Used to examine libraries when file_magic_cmd begins "file"
  8511. MAGIC_CMD=$MAGIC_CMD
  8512. # Used on cygwin: DLL creation program.
  8513. DLLTOOL="$DLLTOOL"
  8514. # Used on cygwin: object dumper.
  8515. OBJDUMP="$OBJDUMP"
  8516. # Used on cygwin: assembler.
  8517. AS="$AS"
  8518. # The name of the directory that contains temporary libtool files.
  8519. objdir=$objdir
  8520. # How to create reloadable object files.
  8521. reload_flag=$lt_reload_flag
  8522. reload_cmds=$lt_reload_cmds
  8523. # How to pass a linker flag through the compiler.
  8524. wl=$lt_lt_prog_compiler_wl
  8525. # Object file suffix (normally "o").
  8526. objext="$ac_objext"
  8527. # Old archive suffix (normally "a").
  8528. libext="$libext"
  8529. # Shared library suffix (normally ".so").
  8530. shrext_cmds='$shrext_cmds'
  8531. # Executable file suffix (normally "").
  8532. exeext="$exeext"
  8533. # Additional compiler flags for building library objects.
  8534. pic_flag=$lt_lt_prog_compiler_pic
  8535. pic_mode=$pic_mode
  8536. # What is the maximum length of a command?
  8537. max_cmd_len=$lt_cv_sys_max_cmd_len
  8538. # Does compiler simultaneously support -c and -o options?
  8539. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  8540. # Must we lock files when doing compilation ?
  8541. need_locks=$lt_need_locks
  8542. # Do we need the lib prefix for modules?
  8543. need_lib_prefix=$need_lib_prefix
  8544. # Do we need a version for libraries?
  8545. need_version=$need_version
  8546. # Whether dlopen is supported.
  8547. dlopen_support=$enable_dlopen
  8548. # Whether dlopen of programs is supported.
  8549. dlopen_self=$enable_dlopen_self
  8550. # Whether dlopen of statically linked programs is supported.
  8551. dlopen_self_static=$enable_dlopen_self_static
  8552. # Compiler flag to prevent dynamic linking.
  8553. link_static_flag=$lt_lt_prog_compiler_static
  8554. # Compiler flag to turn off builtin functions.
  8555. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  8556. # Compiler flag to allow reflexive dlopens.
  8557. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  8558. # Compiler flag to generate shared objects directly from archives.
  8559. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  8560. # Compiler flag to generate thread-safe objects.
  8561. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  8562. # Library versioning type.
  8563. version_type=$version_type
  8564. # Format of library name prefix.
  8565. libname_spec=$lt_libname_spec
  8566. # List of archive names. First name is the real one, the rest are links.
  8567. # The last name is the one that the linker finds with -lNAME.
  8568. library_names_spec=$lt_library_names_spec
  8569. # The coded name of the library, if different from the real name.
  8570. soname_spec=$lt_soname_spec
  8571. # Commands used to build and install an old-style archive.
  8572. RANLIB=$lt_RANLIB
  8573. old_archive_cmds=$lt_old_archive_cmds
  8574. old_postinstall_cmds=$lt_old_postinstall_cmds
  8575. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8576. # Create an old-style archive from a shared archive.
  8577. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  8578. # Create a temporary old-style archive to link instead of a shared archive.
  8579. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  8580. # Commands used to build and install a shared archive.
  8581. archive_cmds=$lt_archive_cmds
  8582. archive_expsym_cmds=$lt_archive_expsym_cmds
  8583. postinstall_cmds=$lt_postinstall_cmds
  8584. postuninstall_cmds=$lt_postuninstall_cmds
  8585. # Commands used to build a loadable module (assumed same as above if empty)
  8586. module_cmds=$lt_module_cmds
  8587. module_expsym_cmds=$lt_module_expsym_cmds
  8588. # Commands to strip libraries.
  8589. old_striplib=$lt_old_striplib
  8590. striplib=$lt_striplib
  8591. # Dependencies to place before the objects being linked to create a
  8592. # shared library.
  8593. predep_objects=$lt_predep_objects
  8594. # Dependencies to place after the objects being linked to create a
  8595. # shared library.
  8596. postdep_objects=$lt_postdep_objects
  8597. # Dependencies to place before the objects being linked to create a
  8598. # shared library.
  8599. predeps=$lt_predeps
  8600. # Dependencies to place after the objects being linked to create a
  8601. # shared library.
  8602. postdeps=$lt_postdeps
  8603. # The library search path used internally by the compiler when linking
  8604. # a shared library.
  8605. compiler_lib_search_path=$lt_compiler_lib_search_path
  8606. # Method to check whether dependent libraries are shared objects.
  8607. deplibs_check_method=$lt_deplibs_check_method
  8608. # Command to use when deplibs_check_method == file_magic.
  8609. file_magic_cmd=$lt_file_magic_cmd
  8610. # Flag that allows shared libraries with undefined symbols to be built.
  8611. allow_undefined_flag=$lt_allow_undefined_flag
  8612. # Flag that forces no undefined symbols.
  8613. no_undefined_flag=$lt_no_undefined_flag
  8614. # Commands used to finish a libtool library installation in a directory.
  8615. finish_cmds=$lt_finish_cmds
  8616. # Same as above, but a single script fragment to be evaled but not shown.
  8617. finish_eval=$lt_finish_eval
  8618. # Take the output of nm and produce a listing of raw symbols and C names.
  8619. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8620. # Transform the output of nm in a proper C declaration
  8621. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8622. # Transform the output of nm in a C name address pair
  8623. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8624. # This is the shared library runtime path variable.
  8625. runpath_var=$runpath_var
  8626. # This is the shared library path variable.
  8627. shlibpath_var=$shlibpath_var
  8628. # Is shlibpath searched before the hard-coded library search path?
  8629. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8630. # How to hardcode a shared library path into an executable.
  8631. hardcode_action=$hardcode_action
  8632. # Whether we should hardcode library paths into libraries.
  8633. hardcode_into_libs=$hardcode_into_libs
  8634. # Flag to hardcode \$libdir into a binary during linking.
  8635. # This must work even if \$libdir does not exist.
  8636. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  8637. # If ld is used when linking, flag to hardcode \$libdir into
  8638. # a binary during linking. This must work even if \$libdir does
  8639. # not exist.
  8640. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  8641. # Whether we need a single -rpath flag with a separated argument.
  8642. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  8643. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8644. # resulting binary.
  8645. hardcode_direct=$hardcode_direct
  8646. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8647. # resulting binary.
  8648. hardcode_minus_L=$hardcode_minus_L
  8649. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8650. # the resulting binary.
  8651. hardcode_shlibpath_var=$hardcode_shlibpath_var
  8652. # Set to yes if building a shared library automatically hardcodes DIR into the library
  8653. # and all subsequent libraries and executables linked against it.
  8654. hardcode_automatic=$hardcode_automatic
  8655. # Variables whose values should be saved in libtool wrapper scripts and
  8656. # restored at relink time.
  8657. variables_saved_for_relink="$variables_saved_for_relink"
  8658. # Whether libtool must link a program against all its dependency libraries.
  8659. link_all_deplibs=$link_all_deplibs
  8660. # Compile-time system search path for libraries
  8661. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8662. # Run-time system search path for libraries
  8663. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8664. # Fix the shell variable \$srcfile for the compiler.
  8665. fix_srcfile_path="$fix_srcfile_path"
  8666. # Set to yes if exported symbols are required.
  8667. always_export_symbols=$always_export_symbols
  8668. # The commands to list exported symbols.
  8669. export_symbols_cmds=$lt_export_symbols_cmds
  8670. # The commands to extract the exported symbol list from a shared archive.
  8671. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8672. # Symbols that should not be listed in the preloaded symbols.
  8673. exclude_expsyms=$lt_exclude_expsyms
  8674. # Symbols that must always be exported.
  8675. include_expsyms=$lt_include_expsyms
  8676. # ### END LIBTOOL CONFIG
  8677. __EOF__
  8678. case $host_os in
  8679. aix3*)
  8680. cat <<\EOF >> "$cfgfile"
  8681. # AIX sometimes has problems with the GCC collect2 program. For some
  8682. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8683. # vanish in a puff of smoke.
  8684. if test "X${COLLECT_NAMES+set}" != Xset; then
  8685. COLLECT_NAMES=
  8686. export COLLECT_NAMES
  8687. fi
  8688. EOF
  8689. ;;
  8690. esac
  8691. # We use sed instead of cat because bash on DJGPP gets confused if
  8692. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8693. # text mode, it properly converts lines to CR/LF. This bash problem
  8694. # is reportedly fixed, but why not run on old versions too?
  8695. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8696. mv -f "$cfgfile" "$ofile" || \
  8697. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8698. chmod +x "$ofile"
  8699. else
  8700. # If there is no Makefile yet, we rely on a make rule to execute
  8701. # `config.status --recheck' to rerun these tests and create the
  8702. # libtool script then.
  8703. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8704. if test -f "$ltmain_in"; then
  8705. test -f Makefile && make "$ltmain"
  8706. fi
  8707. fi
  8708. ac_ext=c
  8709. ac_cpp='$CPP $CPPFLAGS'
  8710. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8711. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8712. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8713. CC="$lt_save_CC"
  8714. # Check whether --with-tags or --without-tags was given.
  8715. if test "${with_tags+set}" = set; then
  8716. withval="$with_tags"
  8717. tagnames="$withval"
  8718. fi;
  8719. if test -f "$ltmain" && test -n "$tagnames"; then
  8720. if test ! -f "${ofile}"; then
  8721. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  8722. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  8723. fi
  8724. if test -z "$LTCC"; then
  8725. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  8726. if test -z "$LTCC"; then
  8727. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  8728. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  8729. else
  8730. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  8731. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  8732. fi
  8733. fi
  8734. # Extract list of available tagged configurations in $ofile.
  8735. # Note that this assumes the entire list is on one line.
  8736. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  8737. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8738. for tagname in $tagnames; do
  8739. IFS="$lt_save_ifs"
  8740. # Check whether tagname contains only valid characters
  8741. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  8742. "") ;;
  8743. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  8744. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  8745. { (exit 1); exit 1; }; }
  8746. ;;
  8747. esac
  8748. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  8749. then
  8750. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  8751. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  8752. { (exit 1); exit 1; }; }
  8753. fi
  8754. # Update the list of available tags.
  8755. if test -n "$tagname"; then
  8756. echo appending configuration tag \"$tagname\" to $ofile
  8757. case $tagname in
  8758. CXX)
  8759. if test -n "$CXX" && test "X$CXX" != "Xno"; then
  8760. ac_ext=cc
  8761. ac_cpp='$CXXCPP $CPPFLAGS'
  8762. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8763. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8764. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8765. archive_cmds_need_lc_CXX=no
  8766. allow_undefined_flag_CXX=
  8767. always_export_symbols_CXX=no
  8768. archive_expsym_cmds_CXX=
  8769. export_dynamic_flag_spec_CXX=
  8770. hardcode_direct_CXX=no
  8771. hardcode_libdir_flag_spec_CXX=
  8772. hardcode_libdir_flag_spec_ld_CXX=
  8773. hardcode_libdir_separator_CXX=
  8774. hardcode_minus_L_CXX=no
  8775. hardcode_automatic_CXX=no
  8776. module_cmds_CXX=
  8777. module_expsym_cmds_CXX=
  8778. link_all_deplibs_CXX=unknown
  8779. old_archive_cmds_CXX=$old_archive_cmds
  8780. no_undefined_flag_CXX=
  8781. whole_archive_flag_spec_CXX=
  8782. enable_shared_with_static_runtimes_CXX=no
  8783. # Dependencies to place before and after the object being linked:
  8784. predep_objects_CXX=
  8785. postdep_objects_CXX=
  8786. predeps_CXX=
  8787. postdeps_CXX=
  8788. compiler_lib_search_path_CXX=
  8789. # Source file extension for C++ test sources.
  8790. ac_ext=cc
  8791. # Object file extension for compiled C++ test sources.
  8792. objext=o
  8793. objext_CXX=$objext
  8794. # Code to be used in simple compile tests
  8795. lt_simple_compile_test_code="int some_variable = 0;\n"
  8796. # Code to be used in simple link tests
  8797. lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
  8798. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8799. # If no C compiler was specified, use CC.
  8800. LTCC=${LTCC-"$CC"}
  8801. # Allow CC to be a program name with arguments.
  8802. compiler=$CC
  8803. # Allow CC to be a program name with arguments.
  8804. lt_save_CC=$CC
  8805. lt_save_LD=$LD
  8806. lt_save_GCC=$GCC
  8807. GCC=$GXX
  8808. lt_save_with_gnu_ld=$with_gnu_ld
  8809. lt_save_path_LD=$lt_cv_path_LD
  8810. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  8811. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  8812. else
  8813. unset lt_cv_prog_gnu_ld
  8814. fi
  8815. if test -n "${lt_cv_path_LDCXX+set}"; then
  8816. lt_cv_path_LD=$lt_cv_path_LDCXX
  8817. else
  8818. unset lt_cv_path_LD
  8819. fi
  8820. test -z "${LDCXX+set}" || LD=$LDCXX
  8821. CC=${CXX-"c++"}
  8822. compiler=$CC
  8823. compiler_CXX=$CC
  8824. cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  8825. # We don't want -fno-exception wen compiling C++ code, so set the
  8826. # no_builtin_flag separately
  8827. if test "$GXX" = yes; then
  8828. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  8829. else
  8830. lt_prog_compiler_no_builtin_flag_CXX=
  8831. fi
  8832. if test "$GXX" = yes; then
  8833. # Set up default GNU C++ configuration
  8834. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  8835. if test "${with_gnu_ld+set}" = set; then
  8836. withval="$with_gnu_ld"
  8837. test "$withval" = no || with_gnu_ld=yes
  8838. else
  8839. with_gnu_ld=no
  8840. fi;
  8841. ac_prog=ld
  8842. if test "$GCC" = yes; then
  8843. # Check if gcc -print-prog-name=ld gives a path.
  8844. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  8845. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  8846. case $host in
  8847. *-*-mingw*)
  8848. # gcc leaves a trailing carriage return which upsets mingw
  8849. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8850. *)
  8851. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8852. esac
  8853. case $ac_prog in
  8854. # Accept absolute paths.
  8855. [\\/]* | ?:[\\/]*)
  8856. re_direlt='/[^/][^/]*/\.\./'
  8857. # Canonicalize the pathname of ld
  8858. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  8859. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8860. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  8861. done
  8862. test -z "$LD" && LD="$ac_prog"
  8863. ;;
  8864. "")
  8865. # If it fails, then pretend we aren't using GCC.
  8866. ac_prog=ld
  8867. ;;
  8868. *)
  8869. # If it is relative, then search for the first ld in PATH.
  8870. with_gnu_ld=unknown
  8871. ;;
  8872. esac
  8873. elif test "$with_gnu_ld" = yes; then
  8874. echo "$as_me:$LINENO: checking for GNU ld" >&5
  8875. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  8876. else
  8877. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  8878. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  8879. fi
  8880. if test "${lt_cv_path_LD+set}" = set; then
  8881. echo $ECHO_N "(cached) $ECHO_C" >&6
  8882. else
  8883. if test -z "$LD"; then
  8884. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8885. for ac_dir in $PATH; do
  8886. IFS="$lt_save_ifs"
  8887. test -z "$ac_dir" && ac_dir=.
  8888. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8889. lt_cv_path_LD="$ac_dir/$ac_prog"
  8890. # Check to see if the program is GNU ld. I'd rather use --version,
  8891. # but apparently some GNU ld's only accept -v.
  8892. # Break only if it was the GNU/non-GNU ld that we prefer.
  8893. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  8894. *GNU* | *'with BFD'*)
  8895. test "$with_gnu_ld" != no && break
  8896. ;;
  8897. *)
  8898. test "$with_gnu_ld" != yes && break
  8899. ;;
  8900. esac
  8901. fi
  8902. done
  8903. IFS="$lt_save_ifs"
  8904. else
  8905. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  8906. fi
  8907. fi
  8908. LD="$lt_cv_path_LD"
  8909. if test -n "$LD"; then
  8910. echo "$as_me:$LINENO: result: $LD" >&5
  8911. echo "${ECHO_T}$LD" >&6
  8912. else
  8913. echo "$as_me:$LINENO: result: no" >&5
  8914. echo "${ECHO_T}no" >&6
  8915. fi
  8916. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  8917. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  8918. { (exit 1); exit 1; }; }
  8919. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  8920. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  8921. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  8922. echo $ECHO_N "(cached) $ECHO_C" >&6
  8923. else
  8924. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8925. case `$LD -v 2>&1 </dev/null` in
  8926. *GNU* | *'with BFD'*)
  8927. lt_cv_prog_gnu_ld=yes
  8928. ;;
  8929. *)
  8930. lt_cv_prog_gnu_ld=no
  8931. ;;
  8932. esac
  8933. fi
  8934. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  8935. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  8936. with_gnu_ld=$lt_cv_prog_gnu_ld
  8937. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  8938. # archiving commands below assume that GNU ld is being used.
  8939. if test "$with_gnu_ld" = yes; then
  8940. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8941. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8942. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  8943. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  8944. # If archive_cmds runs LD, not CC, wlarc should be empty
  8945. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  8946. # investigate it a little bit more. (MM)
  8947. wlarc='${wl}'
  8948. # ancient GNU ld didn't support --whole-archive et. al.
  8949. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  8950. grep 'no-whole-archive' > /dev/null; then
  8951. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8952. else
  8953. whole_archive_flag_spec_CXX=
  8954. fi
  8955. else
  8956. with_gnu_ld=no
  8957. wlarc=
  8958. # A generic and very simple default shared library creation
  8959. # command for GNU C++ for the case where it uses the native
  8960. # linker, instead of GNU ld. If possible, this setting should
  8961. # overridden to take advantage of the native linker features on
  8962. # the platform it is being used on.
  8963. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  8964. fi
  8965. # Commands to make compiler produce verbose output that lists
  8966. # what "hidden" libraries, object files and flags are used when
  8967. # linking a shared library.
  8968. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  8969. else
  8970. GXX=no
  8971. with_gnu_ld=no
  8972. wlarc=
  8973. fi
  8974. # PORTME: fill in a description of your system's C++ link characteristics
  8975. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8976. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  8977. ld_shlibs_CXX=yes
  8978. case $host_os in
  8979. aix3*)
  8980. # FIXME: insert proper C++ library support
  8981. ld_shlibs_CXX=no
  8982. ;;
  8983. aix4* | aix5*)
  8984. if test "$host_cpu" = ia64; then
  8985. # On IA64, the linker does run time linking by default, so we don't
  8986. # have to do anything special.
  8987. aix_use_runtimelinking=no
  8988. exp_sym_flag='-Bexport'
  8989. no_entry_flag=""
  8990. else
  8991. aix_use_runtimelinking=no
  8992. # Test if we are trying to use run time linking or normal
  8993. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8994. # need to do runtime linking.
  8995. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  8996. for ld_flag in $LDFLAGS; do
  8997. case $ld_flag in
  8998. *-brtl*)
  8999. aix_use_runtimelinking=yes
  9000. break
  9001. ;;
  9002. esac
  9003. done
  9004. esac
  9005. exp_sym_flag='-bexport'
  9006. no_entry_flag='-bnoentry'
  9007. fi
  9008. # When large executables or shared objects are built, AIX ld can
  9009. # have problems creating the table of contents. If linking a library
  9010. # or program results in "error TOC overflow" add -mminimal-toc to
  9011. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9012. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9013. archive_cmds_CXX=''
  9014. hardcode_direct_CXX=yes
  9015. hardcode_libdir_separator_CXX=':'
  9016. link_all_deplibs_CXX=yes
  9017. if test "$GXX" = yes; then
  9018. case $host_os in aix4.012|aix4.012.*)
  9019. # We only want to do this on AIX 4.2 and lower, the check
  9020. # below for broken collect2 doesn't work under 4.3+
  9021. collect2name=`${CC} -print-prog-name=collect2`
  9022. if test -f "$collect2name" && \
  9023. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9024. then
  9025. # We have reworked collect2
  9026. hardcode_direct_CXX=yes
  9027. else
  9028. # We have old collect2
  9029. hardcode_direct_CXX=unsupported
  9030. # It fails to find uninstalled libraries when the uninstalled
  9031. # path is not listed in the libpath. Setting hardcode_minus_L
  9032. # to unsupported forces relinking
  9033. hardcode_minus_L_CXX=yes
  9034. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9035. hardcode_libdir_separator_CXX=
  9036. fi
  9037. esac
  9038. shared_flag='-shared'
  9039. else
  9040. # not using gcc
  9041. if test "$host_cpu" = ia64; then
  9042. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9043. # chokes on -Wl,-G. The following line is correct:
  9044. shared_flag='-G'
  9045. else
  9046. if test "$aix_use_runtimelinking" = yes; then
  9047. shared_flag='${wl}-G'
  9048. else
  9049. shared_flag='${wl}-bM:SRE'
  9050. fi
  9051. fi
  9052. fi
  9053. # It seems that -bexpall does not export symbols beginning with
  9054. # underscore (_), so it is better to generate a list of symbols to export.
  9055. always_export_symbols_CXX=yes
  9056. if test "$aix_use_runtimelinking" = yes; then
  9057. # Warning - without using the other runtime loading flags (-brtl),
  9058. # -berok will link without error, but may produce a broken library.
  9059. allow_undefined_flag_CXX='-berok'
  9060. # Determine the default libpath from the value encoded in an empty executable.
  9061. cat >conftest.$ac_ext <<_ACEOF
  9062. /* confdefs.h. */
  9063. _ACEOF
  9064. cat confdefs.h >>conftest.$ac_ext
  9065. cat >>conftest.$ac_ext <<_ACEOF
  9066. /* end confdefs.h. */
  9067. int
  9068. main ()
  9069. {
  9070. ;
  9071. return 0;
  9072. }
  9073. _ACEOF
  9074. rm -f conftest.$ac_objext conftest$ac_exeext
  9075. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9076. (eval $ac_link) 2>conftest.er1
  9077. ac_status=$?
  9078. grep -v '^ *+' conftest.er1 >conftest.err
  9079. rm -f conftest.er1
  9080. cat conftest.err >&5
  9081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9082. (exit $ac_status); } &&
  9083. { ac_try='test -z "$ac_cxx_werror_flag"
  9084. || test ! -s conftest.err'
  9085. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9086. (eval $ac_try) 2>&5
  9087. ac_status=$?
  9088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9089. (exit $ac_status); }; } &&
  9090. { ac_try='test -s conftest$ac_exeext'
  9091. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9092. (eval $ac_try) 2>&5
  9093. ac_status=$?
  9094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9095. (exit $ac_status); }; }; then
  9096. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9097. }'`
  9098. # Check for a 64-bit object if we didn't find anything.
  9099. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9100. }'`; fi
  9101. else
  9102. echo "$as_me: failed program was:" >&5
  9103. sed 's/^/| /' conftest.$ac_ext >&5
  9104. fi
  9105. rm -f conftest.err conftest.$ac_objext \
  9106. conftest$ac_exeext conftest.$ac_ext
  9107. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9108. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9109. archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9110. else
  9111. if test "$host_cpu" = ia64; then
  9112. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9113. allow_undefined_flag_CXX="-z nodefs"
  9114. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  9115. else
  9116. # Determine the default libpath from the value encoded in an empty executable.
  9117. cat >conftest.$ac_ext <<_ACEOF
  9118. /* confdefs.h. */
  9119. _ACEOF
  9120. cat confdefs.h >>conftest.$ac_ext
  9121. cat >>conftest.$ac_ext <<_ACEOF
  9122. /* end confdefs.h. */
  9123. int
  9124. main ()
  9125. {
  9126. ;
  9127. return 0;
  9128. }
  9129. _ACEOF
  9130. rm -f conftest.$ac_objext conftest$ac_exeext
  9131. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9132. (eval $ac_link) 2>conftest.er1
  9133. ac_status=$?
  9134. grep -v '^ *+' conftest.er1 >conftest.err
  9135. rm -f conftest.er1
  9136. cat conftest.err >&5
  9137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9138. (exit $ac_status); } &&
  9139. { ac_try='test -z "$ac_cxx_werror_flag"
  9140. || test ! -s conftest.err'
  9141. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9142. (eval $ac_try) 2>&5
  9143. ac_status=$?
  9144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9145. (exit $ac_status); }; } &&
  9146. { ac_try='test -s conftest$ac_exeext'
  9147. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9148. (eval $ac_try) 2>&5
  9149. ac_status=$?
  9150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9151. (exit $ac_status); }; }; then
  9152. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9153. }'`
  9154. # Check for a 64-bit object if we didn't find anything.
  9155. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9156. }'`; fi
  9157. else
  9158. echo "$as_me: failed program was:" >&5
  9159. sed 's/^/| /' conftest.$ac_ext >&5
  9160. fi
  9161. rm -f conftest.err conftest.$ac_objext \
  9162. conftest$ac_exeext conftest.$ac_ext
  9163. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9164. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9165. # Warning - without using the other run time loading flags,
  9166. # -berok will link without error, but may produce a broken library.
  9167. no_undefined_flag_CXX=' ${wl}-bernotok'
  9168. allow_undefined_flag_CXX=' ${wl}-berok'
  9169. # -bexpall does not export symbols beginning with underscore (_)
  9170. always_export_symbols_CXX=yes
  9171. # Exported symbols can be pulled into shared objects from archives
  9172. whole_archive_flag_spec_CXX=' '
  9173. archive_cmds_need_lc_CXX=yes
  9174. # This is similar to how AIX traditionally builds it's shared libraries.
  9175. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  9176. fi
  9177. fi
  9178. ;;
  9179. chorus*)
  9180. case $cc_basename in
  9181. *)
  9182. # FIXME: insert proper C++ library support
  9183. ld_shlibs_CXX=no
  9184. ;;
  9185. esac
  9186. ;;
  9187. cygwin* | mingw* | pw32*)
  9188. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9189. # as there is no search path for DLLs.
  9190. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9191. allow_undefined_flag_CXX=unsupported
  9192. always_export_symbols_CXX=no
  9193. enable_shared_with_static_runtimes_CXX=yes
  9194. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9195. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  9196. # If the export-symbols file already is a .def file (1st line
  9197. # is EXPORTS), use it as is; otherwise, prepend...
  9198. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9199. cp $export_symbols $output_objdir/$soname.def;
  9200. else
  9201. echo EXPORTS > $output_objdir/$soname.def;
  9202. cat $export_symbols >> $output_objdir/$soname.def;
  9203. fi~
  9204. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  9205. else
  9206. ld_shlibs_CXX=no
  9207. fi
  9208. ;;
  9209. darwin* | rhapsody*)
  9210. if test "$GXX" = yes; then
  9211. archive_cmds_need_lc_CXX=no
  9212. case "$host_os" in
  9213. rhapsody* | darwin1.[012])
  9214. allow_undefined_flag_CXX='-undefined suppress'
  9215. ;;
  9216. *) # Darwin 1.3 on
  9217. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9218. allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
  9219. else
  9220. case ${MACOSX_DEPLOYMENT_TARGET} in
  9221. 10.[012])
  9222. allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
  9223. ;;
  9224. 10.*)
  9225. allow_undefined_flag_CXX='-undefined dynamic_lookup'
  9226. ;;
  9227. esac
  9228. fi
  9229. ;;
  9230. esac
  9231. lt_int_apple_cc_single_mod=no
  9232. output_verbose_link_cmd='echo'
  9233. if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  9234. lt_int_apple_cc_single_mod=yes
  9235. fi
  9236. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9237. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9238. else
  9239. archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
  9240. fi
  9241. module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9242. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  9243. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9244. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9245. else
  9246. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9247. fi
  9248. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9249. hardcode_direct_CXX=no
  9250. hardcode_automatic_CXX=yes
  9251. hardcode_shlibpath_var_CXX=unsupported
  9252. whole_archive_flag_spec_CXX='-all_load $convenience'
  9253. link_all_deplibs_CXX=yes
  9254. else
  9255. ld_shlibs_CXX=no
  9256. fi
  9257. ;;
  9258. dgux*)
  9259. case $cc_basename in
  9260. ec++)
  9261. # FIXME: insert proper C++ library support
  9262. ld_shlibs_CXX=no
  9263. ;;
  9264. ghcx)
  9265. # Green Hills C++ Compiler
  9266. # FIXME: insert proper C++ library support
  9267. ld_shlibs_CXX=no
  9268. ;;
  9269. *)
  9270. # FIXME: insert proper C++ library support
  9271. ld_shlibs_CXX=no
  9272. ;;
  9273. esac
  9274. ;;
  9275. freebsd12*)
  9276. # C++ shared libraries reported to be fairly broken before switch to ELF
  9277. ld_shlibs_CXX=no
  9278. ;;
  9279. freebsd-elf*)
  9280. archive_cmds_need_lc_CXX=no
  9281. ;;
  9282. freebsd* | kfreebsd*-gnu)
  9283. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9284. # conventions
  9285. ld_shlibs_CXX=yes
  9286. ;;
  9287. gnu*)
  9288. ;;
  9289. hpux9*)
  9290. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9291. hardcode_libdir_separator_CXX=:
  9292. export_dynamic_flag_spec_CXX='${wl}-E'
  9293. hardcode_direct_CXX=yes
  9294. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9295. # but as the default
  9296. # location of the library.
  9297. case $cc_basename in
  9298. CC)
  9299. # FIXME: insert proper C++ library support
  9300. ld_shlibs_CXX=no
  9301. ;;
  9302. aCC)
  9303. 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9304. # Commands to make compiler produce verbose output that lists
  9305. # what "hidden" libraries, object files and flags are used when
  9306. # linking a shared library.
  9307. #
  9308. # There doesn't appear to be a way to prevent this compiler from
  9309. # explicitly linking system object files so we need to strip them
  9310. # from the output so that they don't get included in the library
  9311. # dependencies.
  9312. 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; echo $list'
  9313. ;;
  9314. *)
  9315. if test "$GXX" = yes; then
  9316. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9317. else
  9318. # FIXME: insert proper C++ library support
  9319. ld_shlibs_CXX=no
  9320. fi
  9321. ;;
  9322. esac
  9323. ;;
  9324. hpux10*|hpux11*)
  9325. if test $with_gnu_ld = no; then
  9326. case "$host_cpu" in
  9327. hppa*64*)
  9328. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9329. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  9330. hardcode_libdir_separator_CXX=:
  9331. ;;
  9332. ia64*)
  9333. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9334. ;;
  9335. *)
  9336. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9337. hardcode_libdir_separator_CXX=:
  9338. export_dynamic_flag_spec_CXX='${wl}-E'
  9339. ;;
  9340. esac
  9341. fi
  9342. case "$host_cpu" in
  9343. hppa*64*)
  9344. hardcode_direct_CXX=no
  9345. hardcode_shlibpath_var_CXX=no
  9346. ;;
  9347. ia64*)
  9348. hardcode_direct_CXX=no
  9349. hardcode_shlibpath_var_CXX=no
  9350. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9351. # but as the default
  9352. # location of the library.
  9353. ;;
  9354. *)
  9355. hardcode_direct_CXX=yes
  9356. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9357. # but as the default
  9358. # location of the library.
  9359. ;;
  9360. esac
  9361. case $cc_basename in
  9362. CC)
  9363. # FIXME: insert proper C++ library support
  9364. ld_shlibs_CXX=no
  9365. ;;
  9366. aCC)
  9367. case "$host_cpu" in
  9368. hppa*64*|ia64*)
  9369. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  9370. ;;
  9371. *)
  9372. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9373. ;;
  9374. esac
  9375. # Commands to make compiler produce verbose output that lists
  9376. # what "hidden" libraries, object files and flags are used when
  9377. # linking a shared library.
  9378. #
  9379. # There doesn't appear to be a way to prevent this compiler from
  9380. # explicitly linking system object files so we need to strip them
  9381. # from the output so that they don't get included in the library
  9382. # dependencies.
  9383. 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; echo $list'
  9384. ;;
  9385. *)
  9386. if test "$GXX" = yes; then
  9387. if test $with_gnu_ld = no; then
  9388. case "$host_cpu" in
  9389. ia64*|hppa*64*)
  9390. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  9391. ;;
  9392. *)
  9393. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9394. ;;
  9395. esac
  9396. fi
  9397. else
  9398. # FIXME: insert proper C++ library support
  9399. ld_shlibs_CXX=no
  9400. fi
  9401. ;;
  9402. esac
  9403. ;;
  9404. irix5* | irix6*)
  9405. case $cc_basename in
  9406. CC)
  9407. # SGI C++
  9408. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  9409. # Archives containing C++ object files must be created using
  9410. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9411. # necessary to make sure instantiated templates are included
  9412. # in the archive.
  9413. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9414. ;;
  9415. *)
  9416. if test "$GXX" = yes; then
  9417. if test "$with_gnu_ld" = no; then
  9418. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  9419. else
  9420. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  9421. fi
  9422. fi
  9423. link_all_deplibs_CXX=yes
  9424. ;;
  9425. esac
  9426. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9427. hardcode_libdir_separator_CXX=:
  9428. ;;
  9429. linux*)
  9430. case $cc_basename in
  9431. KCC)
  9432. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9433. # KCC will only create a shared library if the output file
  9434. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9435. # to its proper name (with version) after linking.
  9436. 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'
  9437. 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'
  9438. # Commands to make compiler produce verbose output that lists
  9439. # what "hidden" libraries, object files and flags are used when
  9440. # linking a shared library.
  9441. #
  9442. # There doesn't appear to be a way to prevent this compiler from
  9443. # explicitly linking system object files so we need to strip them
  9444. # from the output so that they don't get included in the library
  9445. # dependencies.
  9446. 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; echo $list'
  9447. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  9448. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9449. # Archives containing C++ object files must be created using
  9450. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9451. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9452. ;;
  9453. icpc)
  9454. # Intel C++
  9455. with_gnu_ld=yes
  9456. archive_cmds_need_lc_CXX=no
  9457. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9458. 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'
  9459. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9460. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9461. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9462. ;;
  9463. cxx)
  9464. # Compaq C++
  9465. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9466. 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'
  9467. runpath_var=LD_RUN_PATH
  9468. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9469. hardcode_libdir_separator_CXX=:
  9470. # Commands to make compiler produce verbose output that lists
  9471. # what "hidden" libraries, object files and flags are used when
  9472. # linking a shared library.
  9473. #
  9474. # There doesn't appear to be a way to prevent this compiler from
  9475. # explicitly linking system object files so we need to strip them
  9476. # from the output so that they don't get included in the library
  9477. # dependencies.
  9478. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
  9479. ;;
  9480. esac
  9481. ;;
  9482. lynxos*)
  9483. # FIXME: insert proper C++ library support
  9484. ld_shlibs_CXX=no
  9485. ;;
  9486. m88k*)
  9487. # FIXME: insert proper C++ library support
  9488. ld_shlibs_CXX=no
  9489. ;;
  9490. mvs*)
  9491. case $cc_basename in
  9492. cxx)
  9493. # FIXME: insert proper C++ library support
  9494. ld_shlibs_CXX=no
  9495. ;;
  9496. *)
  9497. # FIXME: insert proper C++ library support
  9498. ld_shlibs_CXX=no
  9499. ;;
  9500. esac
  9501. ;;
  9502. netbsd*)
  9503. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9504. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  9505. wlarc=
  9506. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9507. hardcode_direct_CXX=yes
  9508. hardcode_shlibpath_var_CXX=no
  9509. fi
  9510. # Workaround some broken pre-1.5 toolchains
  9511. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  9512. ;;
  9513. osf3*)
  9514. case $cc_basename in
  9515. KCC)
  9516. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9517. # KCC will only create a shared library if the output file
  9518. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9519. # to its proper name (with version) after linking.
  9520. 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'
  9521. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9522. hardcode_libdir_separator_CXX=:
  9523. # Archives containing C++ object files must be created using
  9524. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9525. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9526. ;;
  9527. RCC)
  9528. # Rational C++ 2.4.1
  9529. # FIXME: insert proper C++ library support
  9530. ld_shlibs_CXX=no
  9531. ;;
  9532. cxx)
  9533. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9534. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  9535. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9536. hardcode_libdir_separator_CXX=:
  9537. # Commands to make compiler produce verbose output that lists
  9538. # what "hidden" libraries, object files and flags are used when
  9539. # linking a shared library.
  9540. #
  9541. # There doesn't appear to be a way to prevent this compiler from
  9542. # explicitly linking system object files so we need to strip them
  9543. # from the output so that they don't get included in the library
  9544. # dependencies.
  9545. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
  9546. ;;
  9547. *)
  9548. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9549. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9550. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  9551. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9552. hardcode_libdir_separator_CXX=:
  9553. # Commands to make compiler produce verbose output that lists
  9554. # what "hidden" libraries, object files and flags are used when
  9555. # linking a shared library.
  9556. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9557. else
  9558. # FIXME: insert proper C++ library support
  9559. ld_shlibs_CXX=no
  9560. fi
  9561. ;;
  9562. esac
  9563. ;;
  9564. osf4* | osf5*)
  9565. case $cc_basename in
  9566. KCC)
  9567. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9568. # KCC will only create a shared library if the output file
  9569. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9570. # to its proper name (with version) after linking.
  9571. 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'
  9572. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9573. hardcode_libdir_separator_CXX=:
  9574. # Archives containing C++ object files must be created using
  9575. # the KAI C++ compiler.
  9576. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  9577. ;;
  9578. RCC)
  9579. # Rational C++ 2.4.1
  9580. # FIXME: insert proper C++ library support
  9581. ld_shlibs_CXX=no
  9582. ;;
  9583. cxx)
  9584. allow_undefined_flag_CXX=' -expect_unresolved \*'
  9585. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  9586. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  9587. echo "-hidden">> $lib.exp~
  9588. $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 $objdir/so_locations -o $lib~
  9589. $rm $lib.exp'
  9590. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9591. hardcode_libdir_separator_CXX=:
  9592. # Commands to make compiler produce verbose output that lists
  9593. # what "hidden" libraries, object files and flags are used when
  9594. # linking a shared library.
  9595. #
  9596. # There doesn't appear to be a way to prevent this compiler from
  9597. # explicitly linking system object files so we need to strip them
  9598. # from the output so that they don't get included in the library
  9599. # dependencies.
  9600. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
  9601. ;;
  9602. *)
  9603. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9604. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9605. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  9606. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9607. hardcode_libdir_separator_CXX=:
  9608. # Commands to make compiler produce verbose output that lists
  9609. # what "hidden" libraries, object files and flags are used when
  9610. # linking a shared library.
  9611. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9612. else
  9613. # FIXME: insert proper C++ library support
  9614. ld_shlibs_CXX=no
  9615. fi
  9616. ;;
  9617. esac
  9618. ;;
  9619. psos*)
  9620. # FIXME: insert proper C++ library support
  9621. ld_shlibs_CXX=no
  9622. ;;
  9623. sco*)
  9624. archive_cmds_need_lc_CXX=no
  9625. case $cc_basename in
  9626. CC)
  9627. # FIXME: insert proper C++ library support
  9628. ld_shlibs_CXX=no
  9629. ;;
  9630. *)
  9631. # FIXME: insert proper C++ library support
  9632. ld_shlibs_CXX=no
  9633. ;;
  9634. esac
  9635. ;;
  9636. sunos4*)
  9637. case $cc_basename in
  9638. CC)
  9639. # Sun C++ 4.x
  9640. # FIXME: insert proper C++ library support
  9641. ld_shlibs_CXX=no
  9642. ;;
  9643. lcc)
  9644. # Lucid
  9645. # FIXME: insert proper C++ library support
  9646. ld_shlibs_CXX=no
  9647. ;;
  9648. *)
  9649. # FIXME: insert proper C++ library support
  9650. ld_shlibs_CXX=no
  9651. ;;
  9652. esac
  9653. ;;
  9654. solaris*)
  9655. case $cc_basename in
  9656. CC)
  9657. # Sun C++ 4.2, 5.x and Centerline C++
  9658. no_undefined_flag_CXX=' -zdefs'
  9659. archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9660. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9661. $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9662. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9663. hardcode_shlibpath_var_CXX=no
  9664. case $host_os in
  9665. solaris2.0-5 | solaris2.0-5.*) ;;
  9666. *)
  9667. # The C++ compiler is used as linker so we must use $wl
  9668. # flag to pass the commands to the underlying system
  9669. # linker.
  9670. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9671. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9672. ;;
  9673. esac
  9674. link_all_deplibs_CXX=yes
  9675. # Commands to make compiler produce verbose output that lists
  9676. # what "hidden" libraries, object files and flags are used when
  9677. # linking a shared library.
  9678. #
  9679. # There doesn't appear to be a way to prevent this compiler from
  9680. # explicitly linking system object files so we need to strip them
  9681. # from the output so that they don't get included in the library
  9682. # dependencies.
  9683. output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  9684. # Archives containing C++ object files must be created using
  9685. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  9686. # necessary to make sure instantiated templates are included
  9687. # in the archive.
  9688. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  9689. ;;
  9690. gcx)
  9691. # Green Hills C++ Compiler
  9692. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9693. # The C++ compiler must be used to create the archive.
  9694. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  9695. ;;
  9696. *)
  9697. # GNU C++ compiler with Solaris linker
  9698. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9699. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  9700. if $CC --version | grep -v '^2\.7' > /dev/null; then
  9701. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9702. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9703. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9704. # Commands to make compiler produce verbose output that lists
  9705. # what "hidden" libraries, object files and flags are used when
  9706. # linking a shared library.
  9707. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  9708. else
  9709. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  9710. # platform.
  9711. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9712. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9713. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9714. # Commands to make compiler produce verbose output that lists
  9715. # what "hidden" libraries, object files and flags are used when
  9716. # linking a shared library.
  9717. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  9718. fi
  9719. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  9720. fi
  9721. ;;
  9722. esac
  9723. ;;
  9724. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  9725. archive_cmds_need_lc_CXX=no
  9726. ;;
  9727. tandem*)
  9728. case $cc_basename in
  9729. NCC)
  9730. # NonStop-UX NCC 3.20
  9731. # FIXME: insert proper C++ library support
  9732. ld_shlibs_CXX=no
  9733. ;;
  9734. *)
  9735. # FIXME: insert proper C++ library support
  9736. ld_shlibs_CXX=no
  9737. ;;
  9738. esac
  9739. ;;
  9740. vxworks*)
  9741. # FIXME: insert proper C++ library support
  9742. ld_shlibs_CXX=no
  9743. ;;
  9744. *)
  9745. # FIXME: insert proper C++ library support
  9746. ld_shlibs_CXX=no
  9747. ;;
  9748. esac
  9749. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  9750. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  9751. test "$ld_shlibs_CXX" = no && can_build_shared=no
  9752. GCC_CXX="$GXX"
  9753. LD_CXX="$LD"
  9754. cat > conftest.$ac_ext <<EOF
  9755. class Foo
  9756. {
  9757. public:
  9758. Foo (void) { a = 0; }
  9759. private:
  9760. int a;
  9761. };
  9762. EOF
  9763. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9764. (eval $ac_compile) 2>&5
  9765. ac_status=$?
  9766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9767. (exit $ac_status); }; then
  9768. # Parse the compiler output and extract the necessary
  9769. # objects, libraries and library flags.
  9770. # Sentinel used to keep track of whether or not we are before
  9771. # the conftest object file.
  9772. pre_test_object_deps_done=no
  9773. # The `*' in the case matches for architectures that use `case' in
  9774. # $output_verbose_cmd can trigger glob expansion during the loop
  9775. # eval without this substitution.
  9776. output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  9777. for p in `eval $output_verbose_link_cmd`; do
  9778. case $p in
  9779. -L* | -R* | -l*)
  9780. # Some compilers place space between "-{L,R}" and the path.
  9781. # Remove the space.
  9782. if test $p = "-L" \
  9783. || test $p = "-R"; then
  9784. prev=$p
  9785. continue
  9786. else
  9787. prev=
  9788. fi
  9789. if test "$pre_test_object_deps_done" = no; then
  9790. case $p in
  9791. -L* | -R*)
  9792. # Internal compiler library paths should come after those
  9793. # provided the user. The postdeps already come after the
  9794. # user supplied libs so there is no need to process them.
  9795. if test -z "$compiler_lib_search_path_CXX"; then
  9796. compiler_lib_search_path_CXX="${prev}${p}"
  9797. else
  9798. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  9799. fi
  9800. ;;
  9801. # The "-l" case would never come before the object being
  9802. # linked, so don't bother handling this case.
  9803. esac
  9804. else
  9805. if test -z "$postdeps_CXX"; then
  9806. postdeps_CXX="${prev}${p}"
  9807. else
  9808. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  9809. fi
  9810. fi
  9811. ;;
  9812. *.$objext)
  9813. # This assumes that the test object file only shows up
  9814. # once in the compiler output.
  9815. if test "$p" = "conftest.$objext"; then
  9816. pre_test_object_deps_done=yes
  9817. continue
  9818. fi
  9819. if test "$pre_test_object_deps_done" = no; then
  9820. if test -z "$predep_objects_CXX"; then
  9821. predep_objects_CXX="$p"
  9822. else
  9823. predep_objects_CXX="$predep_objects_CXX $p"
  9824. fi
  9825. else
  9826. if test -z "$postdep_objects_CXX"; then
  9827. postdep_objects_CXX="$p"
  9828. else
  9829. postdep_objects_CXX="$postdep_objects_CXX $p"
  9830. fi
  9831. fi
  9832. ;;
  9833. *) ;; # Ignore the rest.
  9834. esac
  9835. done
  9836. # Clean up.
  9837. rm -f a.out a.exe
  9838. else
  9839. echo "libtool.m4: error: problem compiling CXX test program"
  9840. fi
  9841. $rm -f confest.$objext
  9842. case " $postdeps_CXX " in
  9843. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  9844. esac
  9845. lt_prog_compiler_wl_CXX=
  9846. lt_prog_compiler_pic_CXX=
  9847. lt_prog_compiler_static_CXX=
  9848. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  9849. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  9850. # C++ specific cases for pic, static, wl, etc.
  9851. if test "$GXX" = yes; then
  9852. lt_prog_compiler_wl_CXX='-Wl,'
  9853. lt_prog_compiler_static_CXX='-static'
  9854. case $host_os in
  9855. aix*)
  9856. # All AIX code is PIC.
  9857. if test "$host_cpu" = ia64; then
  9858. # AIX 5 now supports IA64 processor
  9859. lt_prog_compiler_static_CXX='-Bstatic'
  9860. fi
  9861. ;;
  9862. amigaos*)
  9863. # FIXME: we need at least 68020 code to build shared libraries, but
  9864. # adding the `-m68020' flag to GCC prevents building anything better,
  9865. # like `-m68040'.
  9866. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  9867. ;;
  9868. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9869. # PIC is the default for these OSes.
  9870. ;;
  9871. mingw* | os2* | pw32*)
  9872. # This hack is so that the source file can tell whether it is being
  9873. # built for inclusion in a dll (and should export symbols for example).
  9874. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  9875. ;;
  9876. darwin* | rhapsody*)
  9877. # PIC is the default on this platform
  9878. # Common symbols not allowed in MH_DYLIB files
  9879. lt_prog_compiler_pic_CXX='-fno-common'
  9880. ;;
  9881. *djgpp*)
  9882. # DJGPP does not support shared libraries at all
  9883. lt_prog_compiler_pic_CXX=
  9884. ;;
  9885. sysv4*MP*)
  9886. if test -d /usr/nec; then
  9887. lt_prog_compiler_pic_CXX=-Kconform_pic
  9888. fi
  9889. ;;
  9890. hpux*)
  9891. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9892. # not for PA HP-UX.
  9893. case "$host_cpu" in
  9894. hppa*64*|ia64*)
  9895. ;;
  9896. *)
  9897. lt_prog_compiler_pic_CXX='-fPIC'
  9898. ;;
  9899. esac
  9900. ;;
  9901. *)
  9902. lt_prog_compiler_pic_CXX='-fPIC'
  9903. ;;
  9904. esac
  9905. else
  9906. case $host_os in
  9907. aix4* | aix5*)
  9908. # All AIX code is PIC.
  9909. if test "$host_cpu" = ia64; then
  9910. # AIX 5 now supports IA64 processor
  9911. lt_prog_compiler_static_CXX='-Bstatic'
  9912. else
  9913. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  9914. fi
  9915. ;;
  9916. chorus*)
  9917. case $cc_basename in
  9918. cxch68)
  9919. # Green Hills C++ Compiler
  9920. # _LT_AC_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"
  9921. ;;
  9922. esac
  9923. ;;
  9924. dgux*)
  9925. case $cc_basename in
  9926. ec++)
  9927. lt_prog_compiler_pic_CXX='-KPIC'
  9928. ;;
  9929. ghcx)
  9930. # Green Hills C++ Compiler
  9931. lt_prog_compiler_pic_CXX='-pic'
  9932. ;;
  9933. *)
  9934. ;;
  9935. esac
  9936. ;;
  9937. freebsd* | kfreebsd*-gnu)
  9938. # FreeBSD uses GNU C++
  9939. ;;
  9940. hpux9* | hpux10* | hpux11*)
  9941. case $cc_basename in
  9942. CC)
  9943. lt_prog_compiler_wl_CXX='-Wl,'
  9944. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  9945. if test "$host_cpu" != ia64; then
  9946. lt_prog_compiler_pic_CXX='+Z'
  9947. fi
  9948. ;;
  9949. aCC)
  9950. lt_prog_compiler_wl_CXX='-Wl,'
  9951. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  9952. case "$host_cpu" in
  9953. hppa*64*|ia64*)
  9954. # +Z the default
  9955. ;;
  9956. *)
  9957. lt_prog_compiler_pic_CXX='+Z'
  9958. ;;
  9959. esac
  9960. ;;
  9961. *)
  9962. ;;
  9963. esac
  9964. ;;
  9965. irix5* | irix6* | nonstopux*)
  9966. case $cc_basename in
  9967. CC)
  9968. lt_prog_compiler_wl_CXX='-Wl,'
  9969. lt_prog_compiler_static_CXX='-non_shared'
  9970. # CC pic flag -KPIC is the default.
  9971. ;;
  9972. *)
  9973. ;;
  9974. esac
  9975. ;;
  9976. linux*)
  9977. case $cc_basename in
  9978. KCC)
  9979. # KAI C++ Compiler
  9980. lt_prog_compiler_wl_CXX='--backend -Wl,'
  9981. lt_prog_compiler_pic_CXX='-fPIC'
  9982. ;;
  9983. icpc)
  9984. # Intel C++
  9985. lt_prog_compiler_wl_CXX='-Wl,'
  9986. lt_prog_compiler_pic_CXX='-KPIC'
  9987. lt_prog_compiler_static_CXX='-static'
  9988. ;;
  9989. cxx)
  9990. # Compaq C++
  9991. # Make sure the PIC flag is empty. It appears that all Alpha
  9992. # Linux and Compaq Tru64 Unix objects are PIC.
  9993. lt_prog_compiler_pic_CXX=
  9994. lt_prog_compiler_static_CXX='-non_shared'
  9995. ;;
  9996. *)
  9997. ;;
  9998. esac
  9999. ;;
  10000. lynxos*)
  10001. ;;
  10002. m88k*)
  10003. ;;
  10004. mvs*)
  10005. case $cc_basename in
  10006. cxx)
  10007. lt_prog_compiler_pic_CXX='-W c,exportall'
  10008. ;;
  10009. *)
  10010. ;;
  10011. esac
  10012. ;;
  10013. netbsd*)
  10014. ;;
  10015. osf3* | osf4* | osf5*)
  10016. case $cc_basename in
  10017. KCC)
  10018. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10019. ;;
  10020. RCC)
  10021. # Rational C++ 2.4.1
  10022. lt_prog_compiler_pic_CXX='-pic'
  10023. ;;
  10024. cxx)
  10025. # Digital/Compaq C++
  10026. lt_prog_compiler_wl_CXX='-Wl,'
  10027. # Make sure the PIC flag is empty. It appears that all Alpha
  10028. # Linux and Compaq Tru64 Unix objects are PIC.
  10029. lt_prog_compiler_pic_CXX=
  10030. lt_prog_compiler_static_CXX='-non_shared'
  10031. ;;
  10032. *)
  10033. ;;
  10034. esac
  10035. ;;
  10036. psos*)
  10037. ;;
  10038. sco*)
  10039. case $cc_basename in
  10040. CC)
  10041. lt_prog_compiler_pic_CXX='-fPIC'
  10042. ;;
  10043. *)
  10044. ;;
  10045. esac
  10046. ;;
  10047. solaris*)
  10048. case $cc_basename in
  10049. CC)
  10050. # Sun C++ 4.2, 5.x and Centerline C++
  10051. lt_prog_compiler_pic_CXX='-KPIC'
  10052. lt_prog_compiler_static_CXX='-Bstatic'
  10053. lt_prog_compiler_wl_CXX='-Qoption ld '
  10054. ;;
  10055. gcx)
  10056. # Green Hills C++ Compiler
  10057. lt_prog_compiler_pic_CXX='-PIC'
  10058. ;;
  10059. *)
  10060. ;;
  10061. esac
  10062. ;;
  10063. sunos4*)
  10064. case $cc_basename in
  10065. CC)
  10066. # Sun C++ 4.x
  10067. lt_prog_compiler_pic_CXX='-pic'
  10068. lt_prog_compiler_static_CXX='-Bstatic'
  10069. ;;
  10070. lcc)
  10071. # Lucid
  10072. lt_prog_compiler_pic_CXX='-pic'
  10073. ;;
  10074. *)
  10075. ;;
  10076. esac
  10077. ;;
  10078. tandem*)
  10079. case $cc_basename in
  10080. NCC)
  10081. # NonStop-UX NCC 3.20
  10082. lt_prog_compiler_pic_CXX='-KPIC'
  10083. ;;
  10084. *)
  10085. ;;
  10086. esac
  10087. ;;
  10088. unixware*)
  10089. ;;
  10090. vxworks*)
  10091. ;;
  10092. *)
  10093. lt_prog_compiler_can_build_shared_CXX=no
  10094. ;;
  10095. esac
  10096. fi
  10097. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  10098. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  10099. #
  10100. # Check to make sure the PIC flag actually works.
  10101. #
  10102. if test -n "$lt_prog_compiler_pic_CXX"; then
  10103. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  10104. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  10105. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  10106. echo $ECHO_N "(cached) $ECHO_C" >&6
  10107. else
  10108. lt_prog_compiler_pic_works_CXX=no
  10109. ac_outfile=conftest.$ac_objext
  10110. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10111. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  10112. # Insert the option either (1) after the last *FLAGS variable, or
  10113. # (2) before a word containing "conftest.", or (3) at the end.
  10114. # Note that $ac_compile itself does not contain backslashes and begins
  10115. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10116. # The option is referenced via a variable to avoid confusing sed.
  10117. lt_compile=`echo "$ac_compile" | $SED \
  10118. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  10119. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10120. -e 's:$: $lt_compiler_flag:'`
  10121. (eval echo "\"\$as_me:11201: $lt_compile\"" >&5)
  10122. (eval "$lt_compile" 2>conftest.err)
  10123. ac_status=$?
  10124. cat conftest.err >&5
  10125. echo "$as_me:11205: \$? = $ac_status" >&5
  10126. if (exit $ac_status) && test -s "$ac_outfile"; then
  10127. # The compiler can only warn and ignore the option if not recognized
  10128. # So say no if there are warnings
  10129. if test ! -s conftest.err; then
  10130. lt_prog_compiler_pic_works_CXX=yes
  10131. fi
  10132. fi
  10133. $rm conftest*
  10134. fi
  10135. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  10136. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  10137. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  10138. case $lt_prog_compiler_pic_CXX in
  10139. "" | " "*) ;;
  10140. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  10141. esac
  10142. else
  10143. lt_prog_compiler_pic_CXX=
  10144. lt_prog_compiler_can_build_shared_CXX=no
  10145. fi
  10146. fi
  10147. case "$host_os" in
  10148. # For platforms which do not support PIC, -DPIC is meaningless:
  10149. *djgpp*)
  10150. lt_prog_compiler_pic_CXX=
  10151. ;;
  10152. *)
  10153. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  10154. ;;
  10155. esac
  10156. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  10157. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  10158. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  10159. echo $ECHO_N "(cached) $ECHO_C" >&6
  10160. else
  10161. lt_cv_prog_compiler_c_o_CXX=no
  10162. $rm -r conftest 2>/dev/null
  10163. mkdir conftest
  10164. cd conftest
  10165. mkdir out
  10166. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10167. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10168. # Insert the option either (1) after the last *FLAGS variable, or
  10169. # (2) before a word containing "conftest.", or (3) at the end.
  10170. # Note that $ac_compile itself does not contain backslashes and begins
  10171. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10172. lt_compile=`echo "$ac_compile" | $SED \
  10173. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  10174. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10175. -e 's:$: $lt_compiler_flag:'`
  10176. (eval echo "\"\$as_me:11261: $lt_compile\"" >&5)
  10177. (eval "$lt_compile" 2>out/conftest.err)
  10178. ac_status=$?
  10179. cat out/conftest.err >&5
  10180. echo "$as_me:11265: \$? = $ac_status" >&5
  10181. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10182. then
  10183. # The compiler can only warn and ignore the option if not recognized
  10184. # So say no if there are warnings
  10185. if test ! -s out/conftest.err; then
  10186. lt_cv_prog_compiler_c_o_CXX=yes
  10187. fi
  10188. fi
  10189. chmod u+w .
  10190. $rm conftest*
  10191. # SGI C++ compiler will create directory out/ii_files/ for
  10192. # template instantiation
  10193. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  10194. $rm out/* && rmdir out
  10195. cd ..
  10196. rmdir conftest
  10197. $rm conftest*
  10198. fi
  10199. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  10200. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  10201. hard_links="nottested"
  10202. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  10203. # do not overwrite the value of need_locks provided by the user
  10204. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  10205. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  10206. hard_links=yes
  10207. $rm conftest*
  10208. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10209. touch conftest.a
  10210. ln conftest.a conftest.b 2>&5 || hard_links=no
  10211. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10212. echo "$as_me:$LINENO: result: $hard_links" >&5
  10213. echo "${ECHO_T}$hard_links" >&6
  10214. if test "$hard_links" = no; then
  10215. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10216. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10217. need_locks=warn
  10218. fi
  10219. else
  10220. need_locks=no
  10221. fi
  10222. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10223. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  10224. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10225. case $host_os in
  10226. aix4* | aix5*)
  10227. # If we're using GNU nm, then we don't want the "-C" option.
  10228. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10229. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  10230. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  10231. else
  10232. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  10233. fi
  10234. ;;
  10235. pw32*)
  10236. export_symbols_cmds_CXX="$ltdll_cmds"
  10237. ;;
  10238. cygwin* | mingw*)
  10239. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  10240. ;;
  10241. *)
  10242. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10243. ;;
  10244. esac
  10245. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10246. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10247. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10248. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10249. if test "$GCC" = yes; then
  10250. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10251. fi
  10252. #
  10253. # Do we need to explicitly link libc?
  10254. #
  10255. case "x$archive_cmds_need_lc_CXX" in
  10256. x|xyes)
  10257. # Assume -lc should be added
  10258. archive_cmds_need_lc_CXX=yes
  10259. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10260. case $archive_cmds_CXX in
  10261. *'~'*)
  10262. # FIXME: we may have to deal with multi-command sequences.
  10263. ;;
  10264. '$CC '*)
  10265. # Test whether the compiler implicitly links with -lc since on some
  10266. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10267. # to ld, don't add -lc before -lgcc.
  10268. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  10269. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  10270. $rm conftest*
  10271. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10272. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10273. (eval $ac_compile) 2>&5
  10274. ac_status=$?
  10275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10276. (exit $ac_status); } 2>conftest.err; then
  10277. soname=conftest
  10278. lib=conftest
  10279. libobjs=conftest.$ac_objext
  10280. deplibs=
  10281. wl=$lt_prog_compiler_wl_CXX
  10282. compiler_flags=-v
  10283. linker_flags=-v
  10284. verstring=
  10285. output_objdir=.
  10286. libname=conftest
  10287. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  10288. allow_undefined_flag_CXX=
  10289. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  10290. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10291. ac_status=$?
  10292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10293. (exit $ac_status); }
  10294. then
  10295. archive_cmds_need_lc_CXX=no
  10296. else
  10297. archive_cmds_need_lc_CXX=yes
  10298. fi
  10299. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  10300. else
  10301. cat conftest.err 1>&5
  10302. fi
  10303. $rm conftest*
  10304. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  10305. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  10306. ;;
  10307. esac
  10308. fi
  10309. ;;
  10310. esac
  10311. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  10312. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  10313. library_names_spec=
  10314. libname_spec='lib$name'
  10315. soname_spec=
  10316. shrext_cmds=".so"
  10317. postinstall_cmds=
  10318. postuninstall_cmds=
  10319. finish_cmds=
  10320. finish_eval=
  10321. shlibpath_var=
  10322. shlibpath_overrides_runpath=unknown
  10323. version_type=none
  10324. dynamic_linker="$host_os ld.so"
  10325. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10326. if test "$GCC" = yes; then
  10327. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10328. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  10329. # if the path contains ";" then we assume it to be the separator
  10330. # otherwise default to the standard path separator (i.e. ":") - it is
  10331. # assumed that no part of a normal pathname contains ";" but that should
  10332. # okay in the real world where ";" in dirpaths is itself problematic.
  10333. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10334. else
  10335. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10336. fi
  10337. else
  10338. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10339. fi
  10340. need_lib_prefix=unknown
  10341. hardcode_into_libs=no
  10342. # when you set need_version to no, make sure it does not cause -set_version
  10343. # flags to be left without arguments
  10344. need_version=unknown
  10345. case $host_os in
  10346. aix3*)
  10347. version_type=linux
  10348. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10349. shlibpath_var=LIBPATH
  10350. # AIX 3 has no versioning support, so we append a major version to the name.
  10351. soname_spec='${libname}${release}${shared_ext}$major'
  10352. ;;
  10353. aix4* | aix5*)
  10354. version_type=linux
  10355. need_lib_prefix=no
  10356. need_version=no
  10357. hardcode_into_libs=yes
  10358. if test "$host_cpu" = ia64; then
  10359. # AIX 5 supports IA64
  10360. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10361. shlibpath_var=LD_LIBRARY_PATH
  10362. else
  10363. # With GCC up to 2.95.x, collect2 would create an import file
  10364. # for dependence libraries. The import file would start with
  10365. # the line `#! .'. This would cause the generated library to
  10366. # depend on `.', always an invalid library. This was fixed in
  10367. # development snapshots of GCC prior to 3.0.
  10368. case $host_os in
  10369. aix4 | aix4.[01] | aix4.[01].*)
  10370. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10371. echo ' yes '
  10372. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  10373. :
  10374. else
  10375. can_build_shared=no
  10376. fi
  10377. ;;
  10378. esac
  10379. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10380. # soname into executable. Probably we can add versioning support to
  10381. # collect2, so additional links can be useful in future.
  10382. if test "$aix_use_runtimelinking" = yes; then
  10383. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10384. # instead of lib<name>.a to let people know that these are not
  10385. # typical AIX shared libraries.
  10386. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10387. else
  10388. # We preserve .a as extension for shared libraries through AIX4.2
  10389. # and later when we are not doing run time linking.
  10390. library_names_spec='${libname}${release}.a $libname.a'
  10391. soname_spec='${libname}${release}${shared_ext}$major'
  10392. fi
  10393. shlibpath_var=LIBPATH
  10394. fi
  10395. ;;
  10396. amigaos*)
  10397. library_names_spec='$libname.ixlibrary $libname.a'
  10398. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10399. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  10400. ;;
  10401. beos*)
  10402. library_names_spec='${libname}${shared_ext}'
  10403. dynamic_linker="$host_os ld.so"
  10404. shlibpath_var=LIBRARY_PATH
  10405. ;;
  10406. bsdi4*)
  10407. version_type=linux
  10408. need_version=no
  10409. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10410. soname_spec='${libname}${release}${shared_ext}$major'
  10411. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10412. shlibpath_var=LD_LIBRARY_PATH
  10413. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10414. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10415. # the default ld.so.conf also contains /usr/contrib/lib and
  10416. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10417. # libtool to hard-code these into programs
  10418. ;;
  10419. cygwin* | mingw* | pw32*)
  10420. version_type=windows
  10421. shrext_cmds=".dll"
  10422. need_version=no
  10423. need_lib_prefix=no
  10424. case $GCC,$host_os in
  10425. yes,cygwin* | yes,mingw* | yes,pw32*)
  10426. library_names_spec='$libname.dll.a'
  10427. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10428. postinstall_cmds='base_file=`basename \${file}`~
  10429. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  10430. dldir=$destdir/`dirname \$dlpath`~
  10431. test -d \$dldir || mkdir -p \$dldir~
  10432. $install_prog $dir/$dlname \$dldir/$dlname'
  10433. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10434. dlpath=$dir/\$dldll~
  10435. $rm \$dlpath'
  10436. shlibpath_overrides_runpath=yes
  10437. case $host_os in
  10438. cygwin*)
  10439. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10440. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10441. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  10442. ;;
  10443. mingw*)
  10444. # MinGW DLLs use traditional 'lib' prefix
  10445. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10446. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10447. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  10448. # It is most probably a Windows format PATH printed by
  10449. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  10450. # path with ; separators, and with drive letters. We can handle the
  10451. # drive letters (cygwin fileutils understands them), so leave them,
  10452. # especially as we might pass files found there to a mingw objdump,
  10453. # which wouldn't understand a cygwinified path. Ahh.
  10454. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10455. else
  10456. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10457. fi
  10458. ;;
  10459. pw32*)
  10460. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10461. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  10462. ;;
  10463. esac
  10464. ;;
  10465. *)
  10466. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10467. ;;
  10468. esac
  10469. dynamic_linker='Win32 ld.exe'
  10470. # FIXME: first we should search . and the directory the executable is in
  10471. shlibpath_var=PATH
  10472. ;;
  10473. darwin* | rhapsody*)
  10474. dynamic_linker="$host_os dyld"
  10475. version_type=darwin
  10476. need_lib_prefix=no
  10477. need_version=no
  10478. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10479. soname_spec='${libname}${release}${major}$shared_ext'
  10480. shlibpath_overrides_runpath=yes
  10481. shlibpath_var=DYLD_LIBRARY_PATH
  10482. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  10483. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  10484. if test "$GCC" = yes; then
  10485. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  10486. else
  10487. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  10488. fi
  10489. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10490. ;;
  10491. dgux*)
  10492. version_type=linux
  10493. need_lib_prefix=no
  10494. need_version=no
  10495. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10496. soname_spec='${libname}${release}${shared_ext}$major'
  10497. shlibpath_var=LD_LIBRARY_PATH
  10498. ;;
  10499. freebsd1*)
  10500. dynamic_linker=no
  10501. ;;
  10502. kfreebsd*-gnu)
  10503. version_type=linux
  10504. need_lib_prefix=no
  10505. need_version=no
  10506. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10507. soname_spec='${libname}${release}${shared_ext}$major'
  10508. shlibpath_var=LD_LIBRARY_PATH
  10509. shlibpath_overrides_runpath=no
  10510. hardcode_into_libs=yes
  10511. dynamic_linker='GNU ld.so'
  10512. ;;
  10513. freebsd*)
  10514. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  10515. version_type=freebsd-$objformat
  10516. case $version_type in
  10517. freebsd-elf*)
  10518. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10519. need_version=no
  10520. need_lib_prefix=no
  10521. ;;
  10522. freebsd-*)
  10523. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10524. need_version=yes
  10525. ;;
  10526. esac
  10527. shlibpath_var=LD_LIBRARY_PATH
  10528. case $host_os in
  10529. freebsd2*)
  10530. shlibpath_overrides_runpath=yes
  10531. ;;
  10532. freebsd3.01* | freebsdelf3.01*)
  10533. shlibpath_overrides_runpath=yes
  10534. hardcode_into_libs=yes
  10535. ;;
  10536. *) # from 3.2 on
  10537. shlibpath_overrides_runpath=no
  10538. hardcode_into_libs=yes
  10539. ;;
  10540. esac
  10541. ;;
  10542. gnu*)
  10543. version_type=linux
  10544. need_lib_prefix=no
  10545. need_version=no
  10546. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10547. soname_spec='${libname}${release}${shared_ext}$major'
  10548. shlibpath_var=LD_LIBRARY_PATH
  10549. hardcode_into_libs=yes
  10550. ;;
  10551. hpux9* | hpux10* | hpux11*)
  10552. # Give a soname corresponding to the major version so that dld.sl refuses to
  10553. # link against other versions.
  10554. version_type=sunos
  10555. need_lib_prefix=no
  10556. need_version=no
  10557. case "$host_cpu" in
  10558. ia64*)
  10559. shrext_cmds='.so'
  10560. hardcode_into_libs=yes
  10561. dynamic_linker="$host_os dld.so"
  10562. shlibpath_var=LD_LIBRARY_PATH
  10563. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10564. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10565. soname_spec='${libname}${release}${shared_ext}$major'
  10566. if test "X$HPUX_IA64_MODE" = X32; then
  10567. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10568. else
  10569. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10570. fi
  10571. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10572. ;;
  10573. hppa*64*)
  10574. shrext_cmds='.sl'
  10575. hardcode_into_libs=yes
  10576. dynamic_linker="$host_os dld.sl"
  10577. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10578. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10579. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10580. soname_spec='${libname}${release}${shared_ext}$major'
  10581. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10582. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10583. ;;
  10584. *)
  10585. shrext_cmds='.sl'
  10586. dynamic_linker="$host_os dld.sl"
  10587. shlibpath_var=SHLIB_PATH
  10588. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10589. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10590. soname_spec='${libname}${release}${shared_ext}$major'
  10591. ;;
  10592. esac
  10593. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  10594. postinstall_cmds='chmod 555 $lib'
  10595. ;;
  10596. irix5* | irix6* | nonstopux*)
  10597. case $host_os in
  10598. nonstopux*) version_type=nonstopux ;;
  10599. *)
  10600. if test "$lt_cv_prog_gnu_ld" = yes; then
  10601. version_type=linux
  10602. else
  10603. version_type=irix
  10604. fi ;;
  10605. esac
  10606. need_lib_prefix=no
  10607. need_version=no
  10608. soname_spec='${libname}${release}${shared_ext}$major'
  10609. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10610. case $host_os in
  10611. irix5* | nonstopux*)
  10612. libsuff= shlibsuff=
  10613. ;;
  10614. *)
  10615. case $LD in # libtool.m4 will add one of these switches to LD
  10616. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10617. libsuff= shlibsuff= libmagic=32-bit;;
  10618. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10619. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10620. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10621. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10622. *) libsuff= shlibsuff= libmagic=never-match;;
  10623. esac
  10624. ;;
  10625. esac
  10626. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10627. shlibpath_overrides_runpath=no
  10628. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10629. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10630. hardcode_into_libs=yes
  10631. ;;
  10632. # No shared lib support for Linux oldld, aout, or coff.
  10633. linux*oldld* | linux*aout* | linux*coff*)
  10634. dynamic_linker=no
  10635. ;;
  10636. # This must be Linux ELF.
  10637. linux*)
  10638. version_type=linux
  10639. need_lib_prefix=no
  10640. need_version=no
  10641. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10642. soname_spec='${libname}${release}${shared_ext}$major'
  10643. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10644. shlibpath_var=LD_LIBRARY_PATH
  10645. shlibpath_overrides_runpath=no
  10646. # This implies no fast_install, which is unacceptable.
  10647. # Some rework will be needed to allow for fast_install
  10648. # before this can be enabled.
  10649. hardcode_into_libs=yes
  10650. # find out which ABI we are using
  10651. libsuff=
  10652. case "$host_cpu" in
  10653. x86_64*|s390x*|powerpc64*)
  10654. echo '#line 11772 "configure"' > conftest.$ac_ext
  10655. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10656. (eval $ac_compile) 2>&5
  10657. ac_status=$?
  10658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10659. (exit $ac_status); }; then
  10660. case `/usr/bin/file conftest.$ac_objext` in
  10661. *64-bit*)
  10662. libsuff=64
  10663. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  10664. ;;
  10665. esac
  10666. fi
  10667. rm -rf conftest*
  10668. ;;
  10669. esac
  10670. # Append ld.so.conf contents to the search path
  10671. if test -f /etc/ld.so.conf; then
  10672. lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
  10673. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  10674. fi
  10675. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10676. # powerpc, because MkLinux only supported shared libraries with the
  10677. # GNU dynamic linker. Since this was broken with cross compilers,
  10678. # most powerpc-linux boxes support dynamic linking these days and
  10679. # people can always --disable-shared, the test was removed, and we
  10680. # assume the GNU/Linux dynamic linker is in use.
  10681. dynamic_linker='GNU/Linux ld.so'
  10682. ;;
  10683. knetbsd*-gnu)
  10684. version_type=linux
  10685. need_lib_prefix=no
  10686. need_version=no
  10687. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10688. soname_spec='${libname}${release}${shared_ext}$major'
  10689. shlibpath_var=LD_LIBRARY_PATH
  10690. shlibpath_overrides_runpath=no
  10691. hardcode_into_libs=yes
  10692. dynamic_linker='GNU ld.so'
  10693. ;;
  10694. netbsd*)
  10695. version_type=sunos
  10696. need_lib_prefix=no
  10697. need_version=no
  10698. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10699. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10700. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10701. dynamic_linker='NetBSD (a.out) ld.so'
  10702. else
  10703. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10704. soname_spec='${libname}${release}${shared_ext}$major'
  10705. dynamic_linker='NetBSD ld.elf_so'
  10706. fi
  10707. shlibpath_var=LD_LIBRARY_PATH
  10708. shlibpath_overrides_runpath=yes
  10709. hardcode_into_libs=yes
  10710. ;;
  10711. newsos6)
  10712. version_type=linux
  10713. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10714. shlibpath_var=LD_LIBRARY_PATH
  10715. shlibpath_overrides_runpath=yes
  10716. ;;
  10717. nto-qnx*)
  10718. version_type=linux
  10719. need_lib_prefix=no
  10720. need_version=no
  10721. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10722. soname_spec='${libname}${release}${shared_ext}$major'
  10723. shlibpath_var=LD_LIBRARY_PATH
  10724. shlibpath_overrides_runpath=yes
  10725. ;;
  10726. openbsd*)
  10727. version_type=sunos
  10728. need_lib_prefix=no
  10729. need_version=yes
  10730. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10731. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10732. shlibpath_var=LD_LIBRARY_PATH
  10733. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10734. case $host_os in
  10735. openbsd2.[89] | openbsd2.[89].*)
  10736. shlibpath_overrides_runpath=no
  10737. ;;
  10738. *)
  10739. shlibpath_overrides_runpath=yes
  10740. ;;
  10741. esac
  10742. else
  10743. shlibpath_overrides_runpath=yes
  10744. fi
  10745. ;;
  10746. os2*)
  10747. libname_spec='$name'
  10748. shrext_cmds=".dll"
  10749. need_lib_prefix=no
  10750. library_names_spec='$libname${shared_ext} $libname.a'
  10751. dynamic_linker='OS/2 ld.exe'
  10752. shlibpath_var=LIBPATH
  10753. ;;
  10754. osf3* | osf4* | osf5*)
  10755. version_type=osf
  10756. need_lib_prefix=no
  10757. need_version=no
  10758. soname_spec='${libname}${release}${shared_ext}$major'
  10759. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10760. shlibpath_var=LD_LIBRARY_PATH
  10761. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10762. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10763. ;;
  10764. sco3.2v5*)
  10765. version_type=osf
  10766. soname_spec='${libname}${release}${shared_ext}$major'
  10767. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10768. shlibpath_var=LD_LIBRARY_PATH
  10769. ;;
  10770. solaris*)
  10771. version_type=linux
  10772. need_lib_prefix=no
  10773. need_version=no
  10774. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10775. soname_spec='${libname}${release}${shared_ext}$major'
  10776. shlibpath_var=LD_LIBRARY_PATH
  10777. shlibpath_overrides_runpath=yes
  10778. hardcode_into_libs=yes
  10779. # ldd complains unless libraries are executable
  10780. postinstall_cmds='chmod +x $lib'
  10781. ;;
  10782. sunos4*)
  10783. version_type=sunos
  10784. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10785. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10786. shlibpath_var=LD_LIBRARY_PATH
  10787. shlibpath_overrides_runpath=yes
  10788. if test "$with_gnu_ld" = yes; then
  10789. need_lib_prefix=no
  10790. fi
  10791. need_version=yes
  10792. ;;
  10793. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10794. version_type=linux
  10795. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10796. soname_spec='${libname}${release}${shared_ext}$major'
  10797. shlibpath_var=LD_LIBRARY_PATH
  10798. case $host_vendor in
  10799. sni)
  10800. shlibpath_overrides_runpath=no
  10801. need_lib_prefix=no
  10802. export_dynamic_flag_spec='${wl}-Blargedynsym'
  10803. runpath_var=LD_RUN_PATH
  10804. ;;
  10805. siemens)
  10806. need_lib_prefix=no
  10807. ;;
  10808. motorola)
  10809. need_lib_prefix=no
  10810. need_version=no
  10811. shlibpath_overrides_runpath=no
  10812. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10813. ;;
  10814. esac
  10815. ;;
  10816. sysv4*MP*)
  10817. if test -d /usr/nec ;then
  10818. version_type=linux
  10819. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10820. soname_spec='$libname${shared_ext}.$major'
  10821. shlibpath_var=LD_LIBRARY_PATH
  10822. fi
  10823. ;;
  10824. uts4*)
  10825. version_type=linux
  10826. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10827. soname_spec='${libname}${release}${shared_ext}$major'
  10828. shlibpath_var=LD_LIBRARY_PATH
  10829. ;;
  10830. *)
  10831. dynamic_linker=no
  10832. ;;
  10833. esac
  10834. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  10835. echo "${ECHO_T}$dynamic_linker" >&6
  10836. test "$dynamic_linker" = no && can_build_shared=no
  10837. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  10838. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  10839. hardcode_action_CXX=
  10840. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  10841. test -n "$runpath_var CXX" || \
  10842. test "X$hardcode_automatic_CXX"="Xyes" ; then
  10843. # We can hardcode non-existant directories.
  10844. if test "$hardcode_direct_CXX" != no &&
  10845. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10846. # have to relink, otherwise we might link with an installed library
  10847. # when we should be linking with a yet-to-be-installed one
  10848. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  10849. test "$hardcode_minus_L_CXX" != no; then
  10850. # Linking always hardcodes the temporary library directory.
  10851. hardcode_action_CXX=relink
  10852. else
  10853. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10854. hardcode_action_CXX=immediate
  10855. fi
  10856. else
  10857. # We cannot hardcode anything, or else we can only hardcode existing
  10858. # directories.
  10859. hardcode_action_CXX=unsupported
  10860. fi
  10861. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  10862. echo "${ECHO_T}$hardcode_action_CXX" >&6
  10863. if test "$hardcode_action_CXX" = relink; then
  10864. # Fast installation is not supported
  10865. enable_fast_install=no
  10866. elif test "$shlibpath_overrides_runpath" = yes ||
  10867. test "$enable_shared" = no; then
  10868. # Fast installation is not necessary
  10869. enable_fast_install=needless
  10870. fi
  10871. striplib=
  10872. old_striplib=
  10873. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  10874. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  10875. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  10876. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10877. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10878. echo "$as_me:$LINENO: result: yes" >&5
  10879. echo "${ECHO_T}yes" >&6
  10880. else
  10881. # FIXME - insert some real tests, host_os isn't really good enough
  10882. case $host_os in
  10883. darwin*)
  10884. if test -n "$STRIP" ; then
  10885. striplib="$STRIP -x"
  10886. echo "$as_me:$LINENO: result: yes" >&5
  10887. echo "${ECHO_T}yes" >&6
  10888. else
  10889. echo "$as_me:$LINENO: result: no" >&5
  10890. echo "${ECHO_T}no" >&6
  10891. fi
  10892. ;;
  10893. *)
  10894. echo "$as_me:$LINENO: result: no" >&5
  10895. echo "${ECHO_T}no" >&6
  10896. ;;
  10897. esac
  10898. fi
  10899. if test "x$enable_dlopen" != xyes; then
  10900. enable_dlopen=unknown
  10901. enable_dlopen_self=unknown
  10902. enable_dlopen_self_static=unknown
  10903. else
  10904. lt_cv_dlopen=no
  10905. lt_cv_dlopen_libs=
  10906. case $host_os in
  10907. beos*)
  10908. lt_cv_dlopen="load_add_on"
  10909. lt_cv_dlopen_libs=
  10910. lt_cv_dlopen_self=yes
  10911. ;;
  10912. mingw* | pw32*)
  10913. lt_cv_dlopen="LoadLibrary"
  10914. lt_cv_dlopen_libs=
  10915. ;;
  10916. cygwin*)
  10917. lt_cv_dlopen="dlopen"
  10918. lt_cv_dlopen_libs=
  10919. ;;
  10920. darwin*)
  10921. # if libdl is installed we need to link against it
  10922. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10923. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  10924. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10925. echo $ECHO_N "(cached) $ECHO_C" >&6
  10926. else
  10927. ac_check_lib_save_LIBS=$LIBS
  10928. LIBS="-ldl $LIBS"
  10929. cat >conftest.$ac_ext <<_ACEOF
  10930. /* confdefs.h. */
  10931. _ACEOF
  10932. cat confdefs.h >>conftest.$ac_ext
  10933. cat >>conftest.$ac_ext <<_ACEOF
  10934. /* end confdefs.h. */
  10935. /* Override any gcc2 internal prototype to avoid an error. */
  10936. #ifdef __cplusplus
  10937. extern "C"
  10938. #endif
  10939. /* We use char because int might match the return type of a gcc2
  10940. builtin and then its argument prototype would still apply. */
  10941. char dlopen ();
  10942. int
  10943. main ()
  10944. {
  10945. dlopen ();
  10946. ;
  10947. return 0;
  10948. }
  10949. _ACEOF
  10950. rm -f conftest.$ac_objext conftest$ac_exeext
  10951. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10952. (eval $ac_link) 2>conftest.er1
  10953. ac_status=$?
  10954. grep -v '^ *+' conftest.er1 >conftest.err
  10955. rm -f conftest.er1
  10956. cat conftest.err >&5
  10957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10958. (exit $ac_status); } &&
  10959. { ac_try='test -z "$ac_cxx_werror_flag"
  10960. || test ! -s conftest.err'
  10961. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10962. (eval $ac_try) 2>&5
  10963. ac_status=$?
  10964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10965. (exit $ac_status); }; } &&
  10966. { ac_try='test -s conftest$ac_exeext'
  10967. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10968. (eval $ac_try) 2>&5
  10969. ac_status=$?
  10970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10971. (exit $ac_status); }; }; then
  10972. ac_cv_lib_dl_dlopen=yes
  10973. else
  10974. echo "$as_me: failed program was:" >&5
  10975. sed 's/^/| /' conftest.$ac_ext >&5
  10976. ac_cv_lib_dl_dlopen=no
  10977. fi
  10978. rm -f conftest.err conftest.$ac_objext \
  10979. conftest$ac_exeext conftest.$ac_ext
  10980. LIBS=$ac_check_lib_save_LIBS
  10981. fi
  10982. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10983. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  10984. if test $ac_cv_lib_dl_dlopen = yes; then
  10985. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10986. else
  10987. lt_cv_dlopen="dyld"
  10988. lt_cv_dlopen_libs=
  10989. lt_cv_dlopen_self=yes
  10990. fi
  10991. ;;
  10992. *)
  10993. echo "$as_me:$LINENO: checking for shl_load" >&5
  10994. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  10995. if test "${ac_cv_func_shl_load+set}" = set; then
  10996. echo $ECHO_N "(cached) $ECHO_C" >&6
  10997. else
  10998. cat >conftest.$ac_ext <<_ACEOF
  10999. /* confdefs.h. */
  11000. _ACEOF
  11001. cat confdefs.h >>conftest.$ac_ext
  11002. cat >>conftest.$ac_ext <<_ACEOF
  11003. /* end confdefs.h. */
  11004. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  11005. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11006. #define shl_load innocuous_shl_load
  11007. /* System header to define __stub macros and hopefully few prototypes,
  11008. which can conflict with char shl_load (); below.
  11009. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11010. <limits.h> exists even on freestanding compilers. */
  11011. #ifdef __STDC__
  11012. # include <limits.h>
  11013. #else
  11014. # include <assert.h>
  11015. #endif
  11016. #undef shl_load
  11017. /* Override any gcc2 internal prototype to avoid an error. */
  11018. #ifdef __cplusplus
  11019. extern "C"
  11020. {
  11021. #endif
  11022. /* We use char because int might match the return type of a gcc2
  11023. builtin and then its argument prototype would still apply. */
  11024. char shl_load ();
  11025. /* The GNU C library defines this for functions which it implements
  11026. to always fail with ENOSYS. Some functions are actually named
  11027. something starting with __ and the normal name is an alias. */
  11028. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  11029. choke me
  11030. #else
  11031. char (*f) () = shl_load;
  11032. #endif
  11033. #ifdef __cplusplus
  11034. }
  11035. #endif
  11036. int
  11037. main ()
  11038. {
  11039. return f != shl_load;
  11040. ;
  11041. return 0;
  11042. }
  11043. _ACEOF
  11044. rm -f conftest.$ac_objext conftest$ac_exeext
  11045. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11046. (eval $ac_link) 2>conftest.er1
  11047. ac_status=$?
  11048. grep -v '^ *+' conftest.er1 >conftest.err
  11049. rm -f conftest.er1
  11050. cat conftest.err >&5
  11051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11052. (exit $ac_status); } &&
  11053. { ac_try='test -z "$ac_cxx_werror_flag"
  11054. || test ! -s conftest.err'
  11055. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11056. (eval $ac_try) 2>&5
  11057. ac_status=$?
  11058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11059. (exit $ac_status); }; } &&
  11060. { ac_try='test -s conftest$ac_exeext'
  11061. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11062. (eval $ac_try) 2>&5
  11063. ac_status=$?
  11064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11065. (exit $ac_status); }; }; then
  11066. ac_cv_func_shl_load=yes
  11067. else
  11068. echo "$as_me: failed program was:" >&5
  11069. sed 's/^/| /' conftest.$ac_ext >&5
  11070. ac_cv_func_shl_load=no
  11071. fi
  11072. rm -f conftest.err conftest.$ac_objext \
  11073. conftest$ac_exeext conftest.$ac_ext
  11074. fi
  11075. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  11076. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  11077. if test $ac_cv_func_shl_load = yes; then
  11078. lt_cv_dlopen="shl_load"
  11079. else
  11080. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  11081. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  11082. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  11083. echo $ECHO_N "(cached) $ECHO_C" >&6
  11084. else
  11085. ac_check_lib_save_LIBS=$LIBS
  11086. LIBS="-ldld $LIBS"
  11087. cat >conftest.$ac_ext <<_ACEOF
  11088. /* confdefs.h. */
  11089. _ACEOF
  11090. cat confdefs.h >>conftest.$ac_ext
  11091. cat >>conftest.$ac_ext <<_ACEOF
  11092. /* end confdefs.h. */
  11093. /* Override any gcc2 internal prototype to avoid an error. */
  11094. #ifdef __cplusplus
  11095. extern "C"
  11096. #endif
  11097. /* We use char because int might match the return type of a gcc2
  11098. builtin and then its argument prototype would still apply. */
  11099. char shl_load ();
  11100. int
  11101. main ()
  11102. {
  11103. shl_load ();
  11104. ;
  11105. return 0;
  11106. }
  11107. _ACEOF
  11108. rm -f conftest.$ac_objext conftest$ac_exeext
  11109. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11110. (eval $ac_link) 2>conftest.er1
  11111. ac_status=$?
  11112. grep -v '^ *+' conftest.er1 >conftest.err
  11113. rm -f conftest.er1
  11114. cat conftest.err >&5
  11115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11116. (exit $ac_status); } &&
  11117. { ac_try='test -z "$ac_cxx_werror_flag"
  11118. || test ! -s conftest.err'
  11119. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11120. (eval $ac_try) 2>&5
  11121. ac_status=$?
  11122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11123. (exit $ac_status); }; } &&
  11124. { ac_try='test -s conftest$ac_exeext'
  11125. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11126. (eval $ac_try) 2>&5
  11127. ac_status=$?
  11128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11129. (exit $ac_status); }; }; then
  11130. ac_cv_lib_dld_shl_load=yes
  11131. else
  11132. echo "$as_me: failed program was:" >&5
  11133. sed 's/^/| /' conftest.$ac_ext >&5
  11134. ac_cv_lib_dld_shl_load=no
  11135. fi
  11136. rm -f conftest.err conftest.$ac_objext \
  11137. conftest$ac_exeext conftest.$ac_ext
  11138. LIBS=$ac_check_lib_save_LIBS
  11139. fi
  11140. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  11141. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  11142. if test $ac_cv_lib_dld_shl_load = yes; then
  11143. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  11144. else
  11145. echo "$as_me:$LINENO: checking for dlopen" >&5
  11146. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  11147. if test "${ac_cv_func_dlopen+set}" = set; then
  11148. echo $ECHO_N "(cached) $ECHO_C" >&6
  11149. else
  11150. cat >conftest.$ac_ext <<_ACEOF
  11151. /* confdefs.h. */
  11152. _ACEOF
  11153. cat confdefs.h >>conftest.$ac_ext
  11154. cat >>conftest.$ac_ext <<_ACEOF
  11155. /* end confdefs.h. */
  11156. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  11157. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11158. #define dlopen innocuous_dlopen
  11159. /* System header to define __stub macros and hopefully few prototypes,
  11160. which can conflict with char dlopen (); below.
  11161. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11162. <limits.h> exists even on freestanding compilers. */
  11163. #ifdef __STDC__
  11164. # include <limits.h>
  11165. #else
  11166. # include <assert.h>
  11167. #endif
  11168. #undef dlopen
  11169. /* Override any gcc2 internal prototype to avoid an error. */
  11170. #ifdef __cplusplus
  11171. extern "C"
  11172. {
  11173. #endif
  11174. /* We use char because int might match the return type of a gcc2
  11175. builtin and then its argument prototype would still apply. */
  11176. char dlopen ();
  11177. /* The GNU C library defines this for functions which it implements
  11178. to always fail with ENOSYS. Some functions are actually named
  11179. something starting with __ and the normal name is an alias. */
  11180. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  11181. choke me
  11182. #else
  11183. char (*f) () = dlopen;
  11184. #endif
  11185. #ifdef __cplusplus
  11186. }
  11187. #endif
  11188. int
  11189. main ()
  11190. {
  11191. return f != dlopen;
  11192. ;
  11193. return 0;
  11194. }
  11195. _ACEOF
  11196. rm -f conftest.$ac_objext conftest$ac_exeext
  11197. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11198. (eval $ac_link) 2>conftest.er1
  11199. ac_status=$?
  11200. grep -v '^ *+' conftest.er1 >conftest.err
  11201. rm -f conftest.er1
  11202. cat conftest.err >&5
  11203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11204. (exit $ac_status); } &&
  11205. { ac_try='test -z "$ac_cxx_werror_flag"
  11206. || test ! -s conftest.err'
  11207. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11208. (eval $ac_try) 2>&5
  11209. ac_status=$?
  11210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11211. (exit $ac_status); }; } &&
  11212. { ac_try='test -s conftest$ac_exeext'
  11213. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11214. (eval $ac_try) 2>&5
  11215. ac_status=$?
  11216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11217. (exit $ac_status); }; }; then
  11218. ac_cv_func_dlopen=yes
  11219. else
  11220. echo "$as_me: failed program was:" >&5
  11221. sed 's/^/| /' conftest.$ac_ext >&5
  11222. ac_cv_func_dlopen=no
  11223. fi
  11224. rm -f conftest.err conftest.$ac_objext \
  11225. conftest$ac_exeext conftest.$ac_ext
  11226. fi
  11227. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  11228. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  11229. if test $ac_cv_func_dlopen = yes; then
  11230. lt_cv_dlopen="dlopen"
  11231. else
  11232. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  11233. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  11234. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  11235. echo $ECHO_N "(cached) $ECHO_C" >&6
  11236. else
  11237. ac_check_lib_save_LIBS=$LIBS
  11238. LIBS="-ldl $LIBS"
  11239. cat >conftest.$ac_ext <<_ACEOF
  11240. /* confdefs.h. */
  11241. _ACEOF
  11242. cat confdefs.h >>conftest.$ac_ext
  11243. cat >>conftest.$ac_ext <<_ACEOF
  11244. /* end confdefs.h. */
  11245. /* Override any gcc2 internal prototype to avoid an error. */
  11246. #ifdef __cplusplus
  11247. extern "C"
  11248. #endif
  11249. /* We use char because int might match the return type of a gcc2
  11250. builtin and then its argument prototype would still apply. */
  11251. char dlopen ();
  11252. int
  11253. main ()
  11254. {
  11255. dlopen ();
  11256. ;
  11257. return 0;
  11258. }
  11259. _ACEOF
  11260. rm -f conftest.$ac_objext conftest$ac_exeext
  11261. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11262. (eval $ac_link) 2>conftest.er1
  11263. ac_status=$?
  11264. grep -v '^ *+' conftest.er1 >conftest.err
  11265. rm -f conftest.er1
  11266. cat conftest.err >&5
  11267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11268. (exit $ac_status); } &&
  11269. { ac_try='test -z "$ac_cxx_werror_flag"
  11270. || test ! -s conftest.err'
  11271. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11272. (eval $ac_try) 2>&5
  11273. ac_status=$?
  11274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11275. (exit $ac_status); }; } &&
  11276. { ac_try='test -s conftest$ac_exeext'
  11277. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11278. (eval $ac_try) 2>&5
  11279. ac_status=$?
  11280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11281. (exit $ac_status); }; }; then
  11282. ac_cv_lib_dl_dlopen=yes
  11283. else
  11284. echo "$as_me: failed program was:" >&5
  11285. sed 's/^/| /' conftest.$ac_ext >&5
  11286. ac_cv_lib_dl_dlopen=no
  11287. fi
  11288. rm -f conftest.err conftest.$ac_objext \
  11289. conftest$ac_exeext conftest.$ac_ext
  11290. LIBS=$ac_check_lib_save_LIBS
  11291. fi
  11292. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  11293. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  11294. if test $ac_cv_lib_dl_dlopen = yes; then
  11295. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11296. else
  11297. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  11298. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  11299. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  11300. echo $ECHO_N "(cached) $ECHO_C" >&6
  11301. else
  11302. ac_check_lib_save_LIBS=$LIBS
  11303. LIBS="-lsvld $LIBS"
  11304. cat >conftest.$ac_ext <<_ACEOF
  11305. /* confdefs.h. */
  11306. _ACEOF
  11307. cat confdefs.h >>conftest.$ac_ext
  11308. cat >>conftest.$ac_ext <<_ACEOF
  11309. /* end confdefs.h. */
  11310. /* Override any gcc2 internal prototype to avoid an error. */
  11311. #ifdef __cplusplus
  11312. extern "C"
  11313. #endif
  11314. /* We use char because int might match the return type of a gcc2
  11315. builtin and then its argument prototype would still apply. */
  11316. char dlopen ();
  11317. int
  11318. main ()
  11319. {
  11320. dlopen ();
  11321. ;
  11322. return 0;
  11323. }
  11324. _ACEOF
  11325. rm -f conftest.$ac_objext conftest$ac_exeext
  11326. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11327. (eval $ac_link) 2>conftest.er1
  11328. ac_status=$?
  11329. grep -v '^ *+' conftest.er1 >conftest.err
  11330. rm -f conftest.er1
  11331. cat conftest.err >&5
  11332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11333. (exit $ac_status); } &&
  11334. { ac_try='test -z "$ac_cxx_werror_flag"
  11335. || test ! -s conftest.err'
  11336. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11337. (eval $ac_try) 2>&5
  11338. ac_status=$?
  11339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11340. (exit $ac_status); }; } &&
  11341. { ac_try='test -s conftest$ac_exeext'
  11342. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11343. (eval $ac_try) 2>&5
  11344. ac_status=$?
  11345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11346. (exit $ac_status); }; }; then
  11347. ac_cv_lib_svld_dlopen=yes
  11348. else
  11349. echo "$as_me: failed program was:" >&5
  11350. sed 's/^/| /' conftest.$ac_ext >&5
  11351. ac_cv_lib_svld_dlopen=no
  11352. fi
  11353. rm -f conftest.err conftest.$ac_objext \
  11354. conftest$ac_exeext conftest.$ac_ext
  11355. LIBS=$ac_check_lib_save_LIBS
  11356. fi
  11357. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  11358. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  11359. if test $ac_cv_lib_svld_dlopen = yes; then
  11360. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  11361. else
  11362. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  11363. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  11364. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  11365. echo $ECHO_N "(cached) $ECHO_C" >&6
  11366. else
  11367. ac_check_lib_save_LIBS=$LIBS
  11368. LIBS="-ldld $LIBS"
  11369. cat >conftest.$ac_ext <<_ACEOF
  11370. /* confdefs.h. */
  11371. _ACEOF
  11372. cat confdefs.h >>conftest.$ac_ext
  11373. cat >>conftest.$ac_ext <<_ACEOF
  11374. /* end confdefs.h. */
  11375. /* Override any gcc2 internal prototype to avoid an error. */
  11376. #ifdef __cplusplus
  11377. extern "C"
  11378. #endif
  11379. /* We use char because int might match the return type of a gcc2
  11380. builtin and then its argument prototype would still apply. */
  11381. char dld_link ();
  11382. int
  11383. main ()
  11384. {
  11385. dld_link ();
  11386. ;
  11387. return 0;
  11388. }
  11389. _ACEOF
  11390. rm -f conftest.$ac_objext conftest$ac_exeext
  11391. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11392. (eval $ac_link) 2>conftest.er1
  11393. ac_status=$?
  11394. grep -v '^ *+' conftest.er1 >conftest.err
  11395. rm -f conftest.er1
  11396. cat conftest.err >&5
  11397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11398. (exit $ac_status); } &&
  11399. { ac_try='test -z "$ac_cxx_werror_flag"
  11400. || test ! -s conftest.err'
  11401. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11402. (eval $ac_try) 2>&5
  11403. ac_status=$?
  11404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11405. (exit $ac_status); }; } &&
  11406. { ac_try='test -s conftest$ac_exeext'
  11407. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11408. (eval $ac_try) 2>&5
  11409. ac_status=$?
  11410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11411. (exit $ac_status); }; }; then
  11412. ac_cv_lib_dld_dld_link=yes
  11413. else
  11414. echo "$as_me: failed program was:" >&5
  11415. sed 's/^/| /' conftest.$ac_ext >&5
  11416. ac_cv_lib_dld_dld_link=no
  11417. fi
  11418. rm -f conftest.err conftest.$ac_objext \
  11419. conftest$ac_exeext conftest.$ac_ext
  11420. LIBS=$ac_check_lib_save_LIBS
  11421. fi
  11422. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  11423. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  11424. if test $ac_cv_lib_dld_dld_link = yes; then
  11425. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  11426. fi
  11427. fi
  11428. fi
  11429. fi
  11430. fi
  11431. fi
  11432. ;;
  11433. esac
  11434. if test "x$lt_cv_dlopen" != xno; then
  11435. enable_dlopen=yes
  11436. else
  11437. enable_dlopen=no
  11438. fi
  11439. case $lt_cv_dlopen in
  11440. dlopen)
  11441. save_CPPFLAGS="$CPPFLAGS"
  11442. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11443. save_LDFLAGS="$LDFLAGS"
  11444. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11445. save_LIBS="$LIBS"
  11446. LIBS="$lt_cv_dlopen_libs $LIBS"
  11447. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  11448. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  11449. if test "${lt_cv_dlopen_self+set}" = set; then
  11450. echo $ECHO_N "(cached) $ECHO_C" >&6
  11451. else
  11452. if test "$cross_compiling" = yes; then :
  11453. lt_cv_dlopen_self=cross
  11454. else
  11455. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11456. lt_status=$lt_dlunknown
  11457. cat > conftest.$ac_ext <<EOF
  11458. #line 12643 "configure"
  11459. #include "confdefs.h"
  11460. #if HAVE_DLFCN_H
  11461. #include <dlfcn.h>
  11462. #endif
  11463. #include <stdio.h>
  11464. #ifdef RTLD_GLOBAL
  11465. # define LT_DLGLOBAL RTLD_GLOBAL
  11466. #else
  11467. # ifdef DL_GLOBAL
  11468. # define LT_DLGLOBAL DL_GLOBAL
  11469. # else
  11470. # define LT_DLGLOBAL 0
  11471. # endif
  11472. #endif
  11473. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11474. find out it does not work in some platform. */
  11475. #ifndef LT_DLLAZY_OR_NOW
  11476. # ifdef RTLD_LAZY
  11477. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11478. # else
  11479. # ifdef DL_LAZY
  11480. # define LT_DLLAZY_OR_NOW DL_LAZY
  11481. # else
  11482. # ifdef RTLD_NOW
  11483. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11484. # else
  11485. # ifdef DL_NOW
  11486. # define LT_DLLAZY_OR_NOW DL_NOW
  11487. # else
  11488. # define LT_DLLAZY_OR_NOW 0
  11489. # endif
  11490. # endif
  11491. # endif
  11492. # endif
  11493. #endif
  11494. #ifdef __cplusplus
  11495. extern "C" void exit (int);
  11496. #endif
  11497. void fnord() { int i=42;}
  11498. int main ()
  11499. {
  11500. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11501. int status = $lt_dlunknown;
  11502. if (self)
  11503. {
  11504. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11505. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11506. /* dlclose (self); */
  11507. }
  11508. exit (status);
  11509. }
  11510. EOF
  11511. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11512. (eval $ac_link) 2>&5
  11513. ac_status=$?
  11514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11515. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  11516. (./conftest; exit; ) 2>/dev/null
  11517. lt_status=$?
  11518. case x$lt_status in
  11519. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11520. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11521. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  11522. esac
  11523. else :
  11524. # compilation failed
  11525. lt_cv_dlopen_self=no
  11526. fi
  11527. fi
  11528. rm -fr conftest*
  11529. fi
  11530. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  11531. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  11532. if test "x$lt_cv_dlopen_self" = xyes; then
  11533. LDFLAGS="$LDFLAGS $link_static_flag"
  11534. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  11535. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  11536. if test "${lt_cv_dlopen_self_static+set}" = set; then
  11537. echo $ECHO_N "(cached) $ECHO_C" >&6
  11538. else
  11539. if test "$cross_compiling" = yes; then :
  11540. lt_cv_dlopen_self_static=cross
  11541. else
  11542. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11543. lt_status=$lt_dlunknown
  11544. cat > conftest.$ac_ext <<EOF
  11545. #line 12741 "configure"
  11546. #include "confdefs.h"
  11547. #if HAVE_DLFCN_H
  11548. #include <dlfcn.h>
  11549. #endif
  11550. #include <stdio.h>
  11551. #ifdef RTLD_GLOBAL
  11552. # define LT_DLGLOBAL RTLD_GLOBAL
  11553. #else
  11554. # ifdef DL_GLOBAL
  11555. # define LT_DLGLOBAL DL_GLOBAL
  11556. # else
  11557. # define LT_DLGLOBAL 0
  11558. # endif
  11559. #endif
  11560. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11561. find out it does not work in some platform. */
  11562. #ifndef LT_DLLAZY_OR_NOW
  11563. # ifdef RTLD_LAZY
  11564. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11565. # else
  11566. # ifdef DL_LAZY
  11567. # define LT_DLLAZY_OR_NOW DL_LAZY
  11568. # else
  11569. # ifdef RTLD_NOW
  11570. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11571. # else
  11572. # ifdef DL_NOW
  11573. # define LT_DLLAZY_OR_NOW DL_NOW
  11574. # else
  11575. # define LT_DLLAZY_OR_NOW 0
  11576. # endif
  11577. # endif
  11578. # endif
  11579. # endif
  11580. #endif
  11581. #ifdef __cplusplus
  11582. extern "C" void exit (int);
  11583. #endif
  11584. void fnord() { int i=42;}
  11585. int main ()
  11586. {
  11587. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11588. int status = $lt_dlunknown;
  11589. if (self)
  11590. {
  11591. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11592. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11593. /* dlclose (self); */
  11594. }
  11595. exit (status);
  11596. }
  11597. EOF
  11598. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11599. (eval $ac_link) 2>&5
  11600. ac_status=$?
  11601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11602. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  11603. (./conftest; exit; ) 2>/dev/null
  11604. lt_status=$?
  11605. case x$lt_status in
  11606. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11607. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11608. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  11609. esac
  11610. else :
  11611. # compilation failed
  11612. lt_cv_dlopen_self_static=no
  11613. fi
  11614. fi
  11615. rm -fr conftest*
  11616. fi
  11617. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  11618. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  11619. fi
  11620. CPPFLAGS="$save_CPPFLAGS"
  11621. LDFLAGS="$save_LDFLAGS"
  11622. LIBS="$save_LIBS"
  11623. ;;
  11624. esac
  11625. case $lt_cv_dlopen_self in
  11626. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11627. *) enable_dlopen_self=unknown ;;
  11628. esac
  11629. case $lt_cv_dlopen_self_static in
  11630. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11631. *) enable_dlopen_self_static=unknown ;;
  11632. esac
  11633. fi
  11634. # The else clause should only fire when bootstrapping the
  11635. # libtool distribution, otherwise you forgot to ship ltmain.sh
  11636. # with your package, and you will get complaints that there are
  11637. # no rules to generate ltmain.sh.
  11638. if test -f "$ltmain"; then
  11639. # See if we are running on zsh, and set the options which allow our commands through
  11640. # without removal of \ escapes.
  11641. if test -n "${ZSH_VERSION+set}" ; then
  11642. setopt NO_GLOB_SUBST
  11643. fi
  11644. # Now quote all the things that may contain metacharacters while being
  11645. # careful not to overquote the AC_SUBSTed values. We take copies of the
  11646. # variables and quote the copies for generation of the libtool script.
  11647. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  11648. SED SHELL STRIP \
  11649. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11650. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11651. deplibs_check_method reload_flag reload_cmds need_locks \
  11652. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11653. lt_cv_sys_global_symbol_to_c_name_address \
  11654. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11655. old_postinstall_cmds old_postuninstall_cmds \
  11656. compiler_CXX \
  11657. CC_CXX \
  11658. LD_CXX \
  11659. lt_prog_compiler_wl_CXX \
  11660. lt_prog_compiler_pic_CXX \
  11661. lt_prog_compiler_static_CXX \
  11662. lt_prog_compiler_no_builtin_flag_CXX \
  11663. export_dynamic_flag_spec_CXX \
  11664. thread_safe_flag_spec_CXX \
  11665. whole_archive_flag_spec_CXX \
  11666. enable_shared_with_static_runtimes_CXX \
  11667. old_archive_cmds_CXX \
  11668. old_archive_from_new_cmds_CXX \
  11669. predep_objects_CXX \
  11670. postdep_objects_CXX \
  11671. predeps_CXX \
  11672. postdeps_CXX \
  11673. compiler_lib_search_path_CXX \
  11674. archive_cmds_CXX \
  11675. archive_expsym_cmds_CXX \
  11676. postinstall_cmds_CXX \
  11677. postuninstall_cmds_CXX \
  11678. old_archive_from_expsyms_cmds_CXX \
  11679. allow_undefined_flag_CXX \
  11680. no_undefined_flag_CXX \
  11681. export_symbols_cmds_CXX \
  11682. hardcode_libdir_flag_spec_CXX \
  11683. hardcode_libdir_flag_spec_ld_CXX \
  11684. hardcode_libdir_separator_CXX \
  11685. hardcode_automatic_CXX \
  11686. module_cmds_CXX \
  11687. module_expsym_cmds_CXX \
  11688. lt_cv_prog_compiler_c_o_CXX \
  11689. exclude_expsyms_CXX \
  11690. include_expsyms_CXX; do
  11691. case $var in
  11692. old_archive_cmds_CXX | \
  11693. old_archive_from_new_cmds_CXX | \
  11694. archive_cmds_CXX | \
  11695. archive_expsym_cmds_CXX | \
  11696. module_cmds_CXX | \
  11697. module_expsym_cmds_CXX | \
  11698. old_archive_from_expsyms_cmds_CXX | \
  11699. export_symbols_cmds_CXX | \
  11700. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11701. postinstall_cmds | postuninstall_cmds | \
  11702. old_postinstall_cmds | old_postuninstall_cmds | \
  11703. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11704. # Double-quote double-evaled strings.
  11705. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11706. ;;
  11707. *)
  11708. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11709. ;;
  11710. esac
  11711. done
  11712. case $lt_echo in
  11713. *'\$0 --fallback-echo"')
  11714. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  11715. ;;
  11716. esac
  11717. cfgfile="$ofile"
  11718. cat <<__EOF__ >> "$cfgfile"
  11719. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  11720. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11721. # Shell to use when invoking shell scripts.
  11722. SHELL=$lt_SHELL
  11723. # Whether or not to build shared libraries.
  11724. build_libtool_libs=$enable_shared
  11725. # Whether or not to build static libraries.
  11726. build_old_libs=$enable_static
  11727. # Whether or not to add -lc for building shared libraries.
  11728. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  11729. # Whether or not to disallow shared libs when runtime libs are static
  11730. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  11731. # Whether or not to optimize for fast installation.
  11732. fast_install=$enable_fast_install
  11733. # The host system.
  11734. host_alias=$host_alias
  11735. host=$host
  11736. # An echo program that does not interpret backslashes.
  11737. echo=$lt_echo
  11738. # The archiver.
  11739. AR=$lt_AR
  11740. AR_FLAGS=$lt_AR_FLAGS
  11741. # A C compiler.
  11742. LTCC=$lt_LTCC
  11743. # A language-specific compiler.
  11744. CC=$lt_compiler_CXX
  11745. # Is the compiler the GNU C compiler?
  11746. with_gcc=$GCC_CXX
  11747. # An ERE matcher.
  11748. EGREP=$lt_EGREP
  11749. # The linker used to build libraries.
  11750. LD=$lt_LD_CXX
  11751. # Whether we need hard or soft links.
  11752. LN_S=$lt_LN_S
  11753. # A BSD-compatible nm program.
  11754. NM=$lt_NM
  11755. # A symbol stripping program
  11756. STRIP=$lt_STRIP
  11757. # Used to examine libraries when file_magic_cmd begins "file"
  11758. MAGIC_CMD=$MAGIC_CMD
  11759. # Used on cygwin: DLL creation program.
  11760. DLLTOOL="$DLLTOOL"
  11761. # Used on cygwin: object dumper.
  11762. OBJDUMP="$OBJDUMP"
  11763. # Used on cygwin: assembler.
  11764. AS="$AS"
  11765. # The name of the directory that contains temporary libtool files.
  11766. objdir=$objdir
  11767. # How to create reloadable object files.
  11768. reload_flag=$lt_reload_flag
  11769. reload_cmds=$lt_reload_cmds
  11770. # How to pass a linker flag through the compiler.
  11771. wl=$lt_lt_prog_compiler_wl_CXX
  11772. # Object file suffix (normally "o").
  11773. objext="$ac_objext"
  11774. # Old archive suffix (normally "a").
  11775. libext="$libext"
  11776. # Shared library suffix (normally ".so").
  11777. shrext_cmds='$shrext_cmds'
  11778. # Executable file suffix (normally "").
  11779. exeext="$exeext"
  11780. # Additional compiler flags for building library objects.
  11781. pic_flag=$lt_lt_prog_compiler_pic_CXX
  11782. pic_mode=$pic_mode
  11783. # What is the maximum length of a command?
  11784. max_cmd_len=$lt_cv_sys_max_cmd_len
  11785. # Does compiler simultaneously support -c and -o options?
  11786. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  11787. # Must we lock files when doing compilation ?
  11788. need_locks=$lt_need_locks
  11789. # Do we need the lib prefix for modules?
  11790. need_lib_prefix=$need_lib_prefix
  11791. # Do we need a version for libraries?
  11792. need_version=$need_version
  11793. # Whether dlopen is supported.
  11794. dlopen_support=$enable_dlopen
  11795. # Whether dlopen of programs is supported.
  11796. dlopen_self=$enable_dlopen_self
  11797. # Whether dlopen of statically linked programs is supported.
  11798. dlopen_self_static=$enable_dlopen_self_static
  11799. # Compiler flag to prevent dynamic linking.
  11800. link_static_flag=$lt_lt_prog_compiler_static_CXX
  11801. # Compiler flag to turn off builtin functions.
  11802. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  11803. # Compiler flag to allow reflexive dlopens.
  11804. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  11805. # Compiler flag to generate shared objects directly from archives.
  11806. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  11807. # Compiler flag to generate thread-safe objects.
  11808. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  11809. # Library versioning type.
  11810. version_type=$version_type
  11811. # Format of library name prefix.
  11812. libname_spec=$lt_libname_spec
  11813. # List of archive names. First name is the real one, the rest are links.
  11814. # The last name is the one that the linker finds with -lNAME.
  11815. library_names_spec=$lt_library_names_spec
  11816. # The coded name of the library, if different from the real name.
  11817. soname_spec=$lt_soname_spec
  11818. # Commands used to build and install an old-style archive.
  11819. RANLIB=$lt_RANLIB
  11820. old_archive_cmds=$lt_old_archive_cmds_CXX
  11821. old_postinstall_cmds=$lt_old_postinstall_cmds
  11822. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11823. # Create an old-style archive from a shared archive.
  11824. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  11825. # Create a temporary old-style archive to link instead of a shared archive.
  11826. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  11827. # Commands used to build and install a shared archive.
  11828. archive_cmds=$lt_archive_cmds_CXX
  11829. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  11830. postinstall_cmds=$lt_postinstall_cmds
  11831. postuninstall_cmds=$lt_postuninstall_cmds
  11832. # Commands used to build a loadable module (assumed same as above if empty)
  11833. module_cmds=$lt_module_cmds_CXX
  11834. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  11835. # Commands to strip libraries.
  11836. old_striplib=$lt_old_striplib
  11837. striplib=$lt_striplib
  11838. # Dependencies to place before the objects being linked to create a
  11839. # shared library.
  11840. predep_objects=$lt_predep_objects_CXX
  11841. # Dependencies to place after the objects being linked to create a
  11842. # shared library.
  11843. postdep_objects=$lt_postdep_objects_CXX
  11844. # Dependencies to place before the objects being linked to create a
  11845. # shared library.
  11846. predeps=$lt_predeps_CXX
  11847. # Dependencies to place after the objects being linked to create a
  11848. # shared library.
  11849. postdeps=$lt_postdeps_CXX
  11850. # The library search path used internally by the compiler when linking
  11851. # a shared library.
  11852. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  11853. # Method to check whether dependent libraries are shared objects.
  11854. deplibs_check_method=$lt_deplibs_check_method
  11855. # Command to use when deplibs_check_method == file_magic.
  11856. file_magic_cmd=$lt_file_magic_cmd
  11857. # Flag that allows shared libraries with undefined symbols to be built.
  11858. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  11859. # Flag that forces no undefined symbols.
  11860. no_undefined_flag=$lt_no_undefined_flag_CXX
  11861. # Commands used to finish a libtool library installation in a directory.
  11862. finish_cmds=$lt_finish_cmds
  11863. # Same as above, but a single script fragment to be evaled but not shown.
  11864. finish_eval=$lt_finish_eval
  11865. # Take the output of nm and produce a listing of raw symbols and C names.
  11866. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11867. # Transform the output of nm in a proper C declaration
  11868. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11869. # Transform the output of nm in a C name address pair
  11870. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11871. # This is the shared library runtime path variable.
  11872. runpath_var=$runpath_var
  11873. # This is the shared library path variable.
  11874. shlibpath_var=$shlibpath_var
  11875. # Is shlibpath searched before the hard-coded library search path?
  11876. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11877. # How to hardcode a shared library path into an executable.
  11878. hardcode_action=$hardcode_action_CXX
  11879. # Whether we should hardcode library paths into libraries.
  11880. hardcode_into_libs=$hardcode_into_libs
  11881. # Flag to hardcode \$libdir into a binary during linking.
  11882. # This must work even if \$libdir does not exist.
  11883. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  11884. # If ld is used when linking, flag to hardcode \$libdir into
  11885. # a binary during linking. This must work even if \$libdir does
  11886. # not exist.
  11887. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  11888. # Whether we need a single -rpath flag with a separated argument.
  11889. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  11890. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  11891. # resulting binary.
  11892. hardcode_direct=$hardcode_direct_CXX
  11893. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  11894. # resulting binary.
  11895. hardcode_minus_L=$hardcode_minus_L_CXX
  11896. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  11897. # the resulting binary.
  11898. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  11899. # Set to yes if building a shared library automatically hardcodes DIR into the library
  11900. # and all subsequent libraries and executables linked against it.
  11901. hardcode_automatic=$hardcode_automatic_CXX
  11902. # Variables whose values should be saved in libtool wrapper scripts and
  11903. # restored at relink time.
  11904. variables_saved_for_relink="$variables_saved_for_relink"
  11905. # Whether libtool must link a program against all its dependency libraries.
  11906. link_all_deplibs=$link_all_deplibs_CXX
  11907. # Compile-time system search path for libraries
  11908. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11909. # Run-time system search path for libraries
  11910. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11911. # Fix the shell variable \$srcfile for the compiler.
  11912. fix_srcfile_path="$fix_srcfile_path_CXX"
  11913. # Set to yes if exported symbols are required.
  11914. always_export_symbols=$always_export_symbols_CXX
  11915. # The commands to list exported symbols.
  11916. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  11917. # The commands to extract the exported symbol list from a shared archive.
  11918. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11919. # Symbols that should not be listed in the preloaded symbols.
  11920. exclude_expsyms=$lt_exclude_expsyms_CXX
  11921. # Symbols that must always be exported.
  11922. include_expsyms=$lt_include_expsyms_CXX
  11923. # ### END LIBTOOL TAG CONFIG: $tagname
  11924. __EOF__
  11925. else
  11926. # If there is no Makefile yet, we rely on a make rule to execute
  11927. # `config.status --recheck' to rerun these tests and create the
  11928. # libtool script then.
  11929. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  11930. if test -f "$ltmain_in"; then
  11931. test -f Makefile && make "$ltmain"
  11932. fi
  11933. fi
  11934. ac_ext=c
  11935. ac_cpp='$CPP $CPPFLAGS'
  11936. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11937. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11938. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11939. CC=$lt_save_CC
  11940. LDCXX=$LD
  11941. LD=$lt_save_LD
  11942. GCC=$lt_save_GCC
  11943. with_gnu_ldcxx=$with_gnu_ld
  11944. with_gnu_ld=$lt_save_with_gnu_ld
  11945. lt_cv_path_LDCXX=$lt_cv_path_LD
  11946. lt_cv_path_LD=$lt_save_path_LD
  11947. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  11948. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  11949. else
  11950. tagname=""
  11951. fi
  11952. ;;
  11953. F77)
  11954. if test -n "$F77" && test "X$F77" != "Xno"; then
  11955. ac_ext=f
  11956. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  11957. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11958. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  11959. archive_cmds_need_lc_F77=no
  11960. allow_undefined_flag_F77=
  11961. always_export_symbols_F77=no
  11962. archive_expsym_cmds_F77=
  11963. export_dynamic_flag_spec_F77=
  11964. hardcode_direct_F77=no
  11965. hardcode_libdir_flag_spec_F77=
  11966. hardcode_libdir_flag_spec_ld_F77=
  11967. hardcode_libdir_separator_F77=
  11968. hardcode_minus_L_F77=no
  11969. hardcode_automatic_F77=no
  11970. module_cmds_F77=
  11971. module_expsym_cmds_F77=
  11972. link_all_deplibs_F77=unknown
  11973. old_archive_cmds_F77=$old_archive_cmds
  11974. no_undefined_flag_F77=
  11975. whole_archive_flag_spec_F77=
  11976. enable_shared_with_static_runtimes_F77=no
  11977. # Source file extension for f77 test sources.
  11978. ac_ext=f
  11979. # Object file extension for compiled f77 test sources.
  11980. objext=o
  11981. objext_F77=$objext
  11982. # Code to be used in simple compile tests
  11983. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  11984. # Code to be used in simple link tests
  11985. lt_simple_link_test_code=" program t\n end\n"
  11986. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11987. # If no C compiler was specified, use CC.
  11988. LTCC=${LTCC-"$CC"}
  11989. # Allow CC to be a program name with arguments.
  11990. compiler=$CC
  11991. # Allow CC to be a program name with arguments.
  11992. lt_save_CC="$CC"
  11993. CC=${F77-"f77"}
  11994. compiler=$CC
  11995. compiler_F77=$CC
  11996. cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  11997. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11998. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  11999. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  12000. echo "${ECHO_T}$can_build_shared" >&6
  12001. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  12002. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  12003. test "$can_build_shared" = "no" && enable_shared=no
  12004. # On AIX, shared libraries and static libraries use the same namespace, and
  12005. # are all built from PIC.
  12006. case "$host_os" in
  12007. aix3*)
  12008. test "$enable_shared" = yes && enable_static=no
  12009. if test -n "$RANLIB"; then
  12010. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12011. postinstall_cmds='$RANLIB $lib'
  12012. fi
  12013. ;;
  12014. aix4* | aix5*)
  12015. test "$enable_shared" = yes && enable_static=no
  12016. ;;
  12017. esac
  12018. echo "$as_me:$LINENO: result: $enable_shared" >&5
  12019. echo "${ECHO_T}$enable_shared" >&6
  12020. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  12021. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  12022. # Make sure either enable_shared or enable_static is yes.
  12023. test "$enable_shared" = yes || enable_static=yes
  12024. echo "$as_me:$LINENO: result: $enable_static" >&5
  12025. echo "${ECHO_T}$enable_static" >&6
  12026. test "$ld_shlibs_F77" = no && can_build_shared=no
  12027. GCC_F77="$G77"
  12028. LD_F77="$LD"
  12029. lt_prog_compiler_wl_F77=
  12030. lt_prog_compiler_pic_F77=
  12031. lt_prog_compiler_static_F77=
  12032. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12033. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  12034. if test "$GCC" = yes; then
  12035. lt_prog_compiler_wl_F77='-Wl,'
  12036. lt_prog_compiler_static_F77='-static'
  12037. case $host_os in
  12038. aix*)
  12039. # All AIX code is PIC.
  12040. if test "$host_cpu" = ia64; then
  12041. # AIX 5 now supports IA64 processor
  12042. lt_prog_compiler_static_F77='-Bstatic'
  12043. fi
  12044. ;;
  12045. amigaos*)
  12046. # FIXME: we need at least 68020 code to build shared libraries, but
  12047. # adding the `-m68020' flag to GCC prevents building anything better,
  12048. # like `-m68040'.
  12049. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  12050. ;;
  12051. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12052. # PIC is the default for these OSes.
  12053. ;;
  12054. mingw* | pw32* | os2*)
  12055. # This hack is so that the source file can tell whether it is being
  12056. # built for inclusion in a dll (and should export symbols for example).
  12057. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12058. ;;
  12059. darwin* | rhapsody*)
  12060. # PIC is the default on this platform
  12061. # Common symbols not allowed in MH_DYLIB files
  12062. lt_prog_compiler_pic_F77='-fno-common'
  12063. ;;
  12064. msdosdjgpp*)
  12065. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12066. # on systems that don't support them.
  12067. lt_prog_compiler_can_build_shared_F77=no
  12068. enable_shared=no
  12069. ;;
  12070. sysv4*MP*)
  12071. if test -d /usr/nec; then
  12072. lt_prog_compiler_pic_F77=-Kconform_pic
  12073. fi
  12074. ;;
  12075. hpux*)
  12076. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12077. # not for PA HP-UX.
  12078. case "$host_cpu" in
  12079. hppa*64*|ia64*)
  12080. # +Z the default
  12081. ;;
  12082. *)
  12083. lt_prog_compiler_pic_F77='-fPIC'
  12084. ;;
  12085. esac
  12086. ;;
  12087. *)
  12088. lt_prog_compiler_pic_F77='-fPIC'
  12089. ;;
  12090. esac
  12091. else
  12092. # PORTME Check for flag to pass linker flags through the system compiler.
  12093. case $host_os in
  12094. aix*)
  12095. lt_prog_compiler_wl_F77='-Wl,'
  12096. if test "$host_cpu" = ia64; then
  12097. # AIX 5 now supports IA64 processor
  12098. lt_prog_compiler_static_F77='-Bstatic'
  12099. else
  12100. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  12101. fi
  12102. ;;
  12103. mingw* | pw32* | os2*)
  12104. # This hack is so that the source file can tell whether it is being
  12105. # built for inclusion in a dll (and should export symbols for example).
  12106. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12107. ;;
  12108. hpux9* | hpux10* | hpux11*)
  12109. lt_prog_compiler_wl_F77='-Wl,'
  12110. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12111. # not for PA HP-UX.
  12112. case "$host_cpu" in
  12113. hppa*64*|ia64*)
  12114. # +Z the default
  12115. ;;
  12116. *)
  12117. lt_prog_compiler_pic_F77='+Z'
  12118. ;;
  12119. esac
  12120. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12121. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  12122. ;;
  12123. irix5* | irix6* | nonstopux*)
  12124. lt_prog_compiler_wl_F77='-Wl,'
  12125. # PIC (with -KPIC) is the default.
  12126. lt_prog_compiler_static_F77='-non_shared'
  12127. ;;
  12128. newsos6)
  12129. lt_prog_compiler_pic_F77='-KPIC'
  12130. lt_prog_compiler_static_F77='-Bstatic'
  12131. ;;
  12132. linux*)
  12133. case $CC in
  12134. icc* | ecc*)
  12135. lt_prog_compiler_wl_F77='-Wl,'
  12136. lt_prog_compiler_pic_F77='-KPIC'
  12137. lt_prog_compiler_static_F77='-static'
  12138. ;;
  12139. ccc*)
  12140. lt_prog_compiler_wl_F77='-Wl,'
  12141. # All Alpha code is PIC.
  12142. lt_prog_compiler_static_F77='-non_shared'
  12143. ;;
  12144. esac
  12145. ;;
  12146. osf3* | osf4* | osf5*)
  12147. lt_prog_compiler_wl_F77='-Wl,'
  12148. # All OSF/1 code is PIC.
  12149. lt_prog_compiler_static_F77='-non_shared'
  12150. ;;
  12151. sco3.2v5*)
  12152. lt_prog_compiler_pic_F77='-Kpic'
  12153. lt_prog_compiler_static_F77='-dn'
  12154. ;;
  12155. solaris*)
  12156. lt_prog_compiler_wl_F77='-Wl,'
  12157. lt_prog_compiler_pic_F77='-KPIC'
  12158. lt_prog_compiler_static_F77='-Bstatic'
  12159. ;;
  12160. sunos4*)
  12161. lt_prog_compiler_wl_F77='-Qoption ld '
  12162. lt_prog_compiler_pic_F77='-PIC'
  12163. lt_prog_compiler_static_F77='-Bstatic'
  12164. ;;
  12165. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  12166. lt_prog_compiler_wl_F77='-Wl,'
  12167. lt_prog_compiler_pic_F77='-KPIC'
  12168. lt_prog_compiler_static_F77='-Bstatic'
  12169. ;;
  12170. sysv4*MP*)
  12171. if test -d /usr/nec ;then
  12172. lt_prog_compiler_pic_F77='-Kconform_pic'
  12173. lt_prog_compiler_static_F77='-Bstatic'
  12174. fi
  12175. ;;
  12176. uts4*)
  12177. lt_prog_compiler_pic_F77='-pic'
  12178. lt_prog_compiler_static_F77='-Bstatic'
  12179. ;;
  12180. *)
  12181. lt_prog_compiler_can_build_shared_F77=no
  12182. ;;
  12183. esac
  12184. fi
  12185. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  12186. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  12187. #
  12188. # Check to make sure the PIC flag actually works.
  12189. #
  12190. if test -n "$lt_prog_compiler_pic_F77"; then
  12191. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  12192. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  12193. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  12194. echo $ECHO_N "(cached) $ECHO_C" >&6
  12195. else
  12196. lt_prog_compiler_pic_works_F77=no
  12197. ac_outfile=conftest.$ac_objext
  12198. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12199. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  12200. # Insert the option either (1) after the last *FLAGS variable, or
  12201. # (2) before a word containing "conftest.", or (3) at the end.
  12202. # Note that $ac_compile itself does not contain backslashes and begins
  12203. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12204. # The option is referenced via a variable to avoid confusing sed.
  12205. lt_compile=`echo "$ac_compile" | $SED \
  12206. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  12207. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12208. -e 's:$: $lt_compiler_flag:'`
  12209. (eval echo "\"\$as_me:13568: $lt_compile\"" >&5)
  12210. (eval "$lt_compile" 2>conftest.err)
  12211. ac_status=$?
  12212. cat conftest.err >&5
  12213. echo "$as_me:13572: \$? = $ac_status" >&5
  12214. if (exit $ac_status) && test -s "$ac_outfile"; then
  12215. # The compiler can only warn and ignore the option if not recognized
  12216. # So say no if there are warnings
  12217. if test ! -s conftest.err; then
  12218. lt_prog_compiler_pic_works_F77=yes
  12219. fi
  12220. fi
  12221. $rm conftest*
  12222. fi
  12223. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12224. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  12225. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12226. case $lt_prog_compiler_pic_F77 in
  12227. "" | " "*) ;;
  12228. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12229. esac
  12230. else
  12231. lt_prog_compiler_pic_F77=
  12232. lt_prog_compiler_can_build_shared_F77=no
  12233. fi
  12234. fi
  12235. case "$host_os" in
  12236. # For platforms which do not support PIC, -DPIC is meaningless:
  12237. *djgpp*)
  12238. lt_prog_compiler_pic_F77=
  12239. ;;
  12240. *)
  12241. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12242. ;;
  12243. esac
  12244. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12245. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  12246. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12247. echo $ECHO_N "(cached) $ECHO_C" >&6
  12248. else
  12249. lt_cv_prog_compiler_c_o_F77=no
  12250. $rm -r conftest 2>/dev/null
  12251. mkdir conftest
  12252. cd conftest
  12253. mkdir out
  12254. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12255. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12256. # Insert the option either (1) after the last *FLAGS variable, or
  12257. # (2) before a word containing "conftest.", or (3) at the end.
  12258. # Note that $ac_compile itself does not contain backslashes and begins
  12259. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12260. lt_compile=`echo "$ac_compile" | $SED \
  12261. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  12262. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12263. -e 's:$: $lt_compiler_flag:'`
  12264. (eval echo "\"\$as_me:13628: $lt_compile\"" >&5)
  12265. (eval "$lt_compile" 2>out/conftest.err)
  12266. ac_status=$?
  12267. cat out/conftest.err >&5
  12268. echo "$as_me:13632: \$? = $ac_status" >&5
  12269. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12270. then
  12271. # The compiler can only warn and ignore the option if not recognized
  12272. # So say no if there are warnings
  12273. if test ! -s out/conftest.err; then
  12274. lt_cv_prog_compiler_c_o_F77=yes
  12275. fi
  12276. fi
  12277. chmod u+w .
  12278. $rm conftest*
  12279. # SGI C++ compiler will create directory out/ii_files/ for
  12280. # template instantiation
  12281. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12282. $rm out/* && rmdir out
  12283. cd ..
  12284. rmdir conftest
  12285. $rm conftest*
  12286. fi
  12287. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  12288. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  12289. hard_links="nottested"
  12290. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  12291. # do not overwrite the value of need_locks provided by the user
  12292. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12293. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  12294. hard_links=yes
  12295. $rm conftest*
  12296. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12297. touch conftest.a
  12298. ln conftest.a conftest.b 2>&5 || hard_links=no
  12299. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12300. echo "$as_me:$LINENO: result: $hard_links" >&5
  12301. echo "${ECHO_T}$hard_links" >&6
  12302. if test "$hard_links" = no; then
  12303. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12304. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12305. need_locks=warn
  12306. fi
  12307. else
  12308. need_locks=no
  12309. fi
  12310. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12311. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  12312. runpath_var=
  12313. allow_undefined_flag_F77=
  12314. enable_shared_with_static_runtimes_F77=no
  12315. archive_cmds_F77=
  12316. archive_expsym_cmds_F77=
  12317. old_archive_From_new_cmds_F77=
  12318. old_archive_from_expsyms_cmds_F77=
  12319. export_dynamic_flag_spec_F77=
  12320. whole_archive_flag_spec_F77=
  12321. thread_safe_flag_spec_F77=
  12322. hardcode_libdir_flag_spec_F77=
  12323. hardcode_libdir_flag_spec_ld_F77=
  12324. hardcode_libdir_separator_F77=
  12325. hardcode_direct_F77=no
  12326. hardcode_minus_L_F77=no
  12327. hardcode_shlibpath_var_F77=unsupported
  12328. link_all_deplibs_F77=unknown
  12329. hardcode_automatic_F77=no
  12330. module_cmds_F77=
  12331. module_expsym_cmds_F77=
  12332. always_export_symbols_F77=no
  12333. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12334. # include_expsyms should be a list of space-separated symbols to be *always*
  12335. # included in the symbol list
  12336. include_expsyms_F77=
  12337. # exclude_expsyms can be an extended regexp of symbols to exclude
  12338. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12339. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12340. # as well as any symbol that contains `d'.
  12341. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  12342. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12343. # platforms (ab)use it in PIC code, but their linkers get confused if
  12344. # the symbol is explicitly referenced. Since portable code cannot
  12345. # rely on this symbol name, it's probably fine to never include it in
  12346. # preloaded symbol tables.
  12347. extract_expsyms_cmds=
  12348. case $host_os in
  12349. cygwin* | mingw* | pw32*)
  12350. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12351. # When not using gcc, we currently assume that we are using
  12352. # Microsoft Visual C++.
  12353. if test "$GCC" != yes; then
  12354. with_gnu_ld=no
  12355. fi
  12356. ;;
  12357. openbsd*)
  12358. with_gnu_ld=no
  12359. ;;
  12360. esac
  12361. ld_shlibs_F77=yes
  12362. if test "$with_gnu_ld" = yes; then
  12363. # If archive_cmds runs LD, not CC, wlarc should be empty
  12364. wlarc='${wl}'
  12365. # See if GNU ld supports shared libraries.
  12366. case $host_os in
  12367. aix3* | aix4* | aix5*)
  12368. # On AIX/PPC, the GNU linker is very broken
  12369. if test "$host_cpu" != ia64; then
  12370. ld_shlibs_F77=no
  12371. cat <<EOF 1>&2
  12372. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12373. *** to be unable to reliably create shared libraries on AIX.
  12374. *** Therefore, libtool is disabling shared libraries support. If you
  12375. *** really care for shared libraries, you may want to modify your PATH
  12376. *** so that a non-GNU linker is found, and then restart.
  12377. EOF
  12378. fi
  12379. ;;
  12380. amigaos*)
  12381. archive_cmds_F77='$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)'
  12382. hardcode_libdir_flag_spec_F77='-L$libdir'
  12383. hardcode_minus_L_F77=yes
  12384. # Samuel A. Falvo II <[email protected]> reports
  12385. # that the semantics of dynamic libraries on AmigaOS, at least up
  12386. # to version 4, is to share data among multiple programs linked
  12387. # with the same dynamic library. Since this doesn't match the
  12388. # behavior of shared libraries on other platforms, we can't use
  12389. # them.
  12390. ld_shlibs_F77=no
  12391. ;;
  12392. beos*)
  12393. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12394. allow_undefined_flag_F77=unsupported
  12395. # Joseph Beckenbach <[email protected]> says some releases of gcc
  12396. # support --undefined. This deserves some investigation. FIXME
  12397. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12398. else
  12399. ld_shlibs_F77=no
  12400. fi
  12401. ;;
  12402. cygwin* | mingw* | pw32*)
  12403. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  12404. # as there is no search path for DLLs.
  12405. hardcode_libdir_flag_spec_F77='-L$libdir'
  12406. allow_undefined_flag_F77=unsupported
  12407. always_export_symbols_F77=no
  12408. enable_shared_with_static_runtimes_F77=yes
  12409. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  12410. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  12411. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  12412. # If the export-symbols file already is a .def file (1st line
  12413. # is EXPORTS), use it as is; otherwise, prepend...
  12414. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12415. cp $export_symbols $output_objdir/$soname.def;
  12416. else
  12417. echo EXPORTS > $output_objdir/$soname.def;
  12418. cat $export_symbols >> $output_objdir/$soname.def;
  12419. fi~
  12420. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  12421. else
  12422. ld_shlibs=no
  12423. fi
  12424. ;;
  12425. netbsd*)
  12426. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12427. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12428. wlarc=
  12429. else
  12430. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12431. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12432. fi
  12433. ;;
  12434. solaris* | sysv5*)
  12435. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12436. ld_shlibs_F77=no
  12437. cat <<EOF 1>&2
  12438. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12439. *** create shared libraries on Solaris systems. Therefore, libtool
  12440. *** is disabling shared libraries support. We urge you to upgrade GNU
  12441. *** binutils to release 2.9.1 or newer. Another option is to modify
  12442. *** your PATH or compiler configuration so that the native linker is
  12443. *** used, and then restart.
  12444. EOF
  12445. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12446. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12447. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12448. else
  12449. ld_shlibs_F77=no
  12450. fi
  12451. ;;
  12452. sunos4*)
  12453. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12454. wlarc=
  12455. hardcode_direct_F77=yes
  12456. hardcode_shlibpath_var_F77=no
  12457. ;;
  12458. linux*)
  12459. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12460. tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12461. archive_cmds_F77="$tmp_archive_cmds"
  12462. supports_anon_versioning=no
  12463. case `$LD -v 2>/dev/null` in
  12464. *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12465. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12466. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12467. *\ 2.11.*) ;; # other 2.11 versions
  12468. *) supports_anon_versioning=yes ;;
  12469. esac
  12470. if test $supports_anon_versioning = yes; then
  12471. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  12472. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12473. $echo "local: *; };" >> $output_objdir/$libname.ver~
  12474. $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12475. else
  12476. archive_expsym_cmds_F77="$tmp_archive_cmds"
  12477. fi
  12478. else
  12479. ld_shlibs_F77=no
  12480. fi
  12481. ;;
  12482. *)
  12483. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12484. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12485. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12486. else
  12487. ld_shlibs_F77=no
  12488. fi
  12489. ;;
  12490. esac
  12491. if test "$ld_shlibs_F77" = yes; then
  12492. runpath_var=LD_RUN_PATH
  12493. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  12494. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  12495. # ancient GNU ld didn't support --whole-archive et. al.
  12496. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  12497. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12498. else
  12499. whole_archive_flag_spec_F77=
  12500. fi
  12501. fi
  12502. else
  12503. # PORTME fill in a description of your system's linker (not GNU ld)
  12504. case $host_os in
  12505. aix3*)
  12506. allow_undefined_flag_F77=unsupported
  12507. always_export_symbols_F77=yes
  12508. archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  12509. # Note: this linker hardcodes the directories in LIBPATH if there
  12510. # are no directories specified by -L.
  12511. hardcode_minus_L_F77=yes
  12512. if test "$GCC" = yes && test -z "$link_static_flag"; then
  12513. # Neither direct hardcoding nor static linking is supported with a
  12514. # broken collect2.
  12515. hardcode_direct_F77=unsupported
  12516. fi
  12517. ;;
  12518. aix4* | aix5*)
  12519. if test "$host_cpu" = ia64; then
  12520. # On IA64, the linker does run time linking by default, so we don't
  12521. # have to do anything special.
  12522. aix_use_runtimelinking=no
  12523. exp_sym_flag='-Bexport'
  12524. no_entry_flag=""
  12525. else
  12526. # If we're using GNU nm, then we don't want the "-C" option.
  12527. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12528. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12529. export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  12530. else
  12531. export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  12532. fi
  12533. aix_use_runtimelinking=no
  12534. # Test if we are trying to use run time linking or normal
  12535. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12536. # need to do runtime linking.
  12537. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  12538. for ld_flag in $LDFLAGS; do
  12539. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12540. aix_use_runtimelinking=yes
  12541. break
  12542. fi
  12543. done
  12544. esac
  12545. exp_sym_flag='-bexport'
  12546. no_entry_flag='-bnoentry'
  12547. fi
  12548. # When large executables or shared objects are built, AIX ld can
  12549. # have problems creating the table of contents. If linking a library
  12550. # or program results in "error TOC overflow" add -mminimal-toc to
  12551. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12552. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12553. archive_cmds_F77=''
  12554. hardcode_direct_F77=yes
  12555. hardcode_libdir_separator_F77=':'
  12556. link_all_deplibs_F77=yes
  12557. if test "$GCC" = yes; then
  12558. case $host_os in aix4.012|aix4.012.*)
  12559. # We only want to do this on AIX 4.2 and lower, the check
  12560. # below for broken collect2 doesn't work under 4.3+
  12561. collect2name=`${CC} -print-prog-name=collect2`
  12562. if test -f "$collect2name" && \
  12563. strings "$collect2name" | grep resolve_lib_name >/dev/null
  12564. then
  12565. # We have reworked collect2
  12566. hardcode_direct_F77=yes
  12567. else
  12568. # We have old collect2
  12569. hardcode_direct_F77=unsupported
  12570. # It fails to find uninstalled libraries when the uninstalled
  12571. # path is not listed in the libpath. Setting hardcode_minus_L
  12572. # to unsupported forces relinking
  12573. hardcode_minus_L_F77=yes
  12574. hardcode_libdir_flag_spec_F77='-L$libdir'
  12575. hardcode_libdir_separator_F77=
  12576. fi
  12577. esac
  12578. shared_flag='-shared'
  12579. else
  12580. # not using gcc
  12581. if test "$host_cpu" = ia64; then
  12582. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12583. # chokes on -Wl,-G. The following line is correct:
  12584. shared_flag='-G'
  12585. else
  12586. if test "$aix_use_runtimelinking" = yes; then
  12587. shared_flag='${wl}-G'
  12588. else
  12589. shared_flag='${wl}-bM:SRE'
  12590. fi
  12591. fi
  12592. fi
  12593. # It seems that -bexpall does not export symbols beginning with
  12594. # underscore (_), so it is better to generate a list of symbols to export.
  12595. always_export_symbols_F77=yes
  12596. if test "$aix_use_runtimelinking" = yes; then
  12597. # Warning - without using the other runtime loading flags (-brtl),
  12598. # -berok will link without error, but may produce a broken library.
  12599. allow_undefined_flag_F77='-berok'
  12600. # Determine the default libpath from the value encoded in an empty executable.
  12601. cat >conftest.$ac_ext <<_ACEOF
  12602. program main
  12603. end
  12604. _ACEOF
  12605. rm -f conftest.$ac_objext conftest$ac_exeext
  12606. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12607. (eval $ac_link) 2>conftest.er1
  12608. ac_status=$?
  12609. grep -v '^ *+' conftest.er1 >conftest.err
  12610. rm -f conftest.er1
  12611. cat conftest.err >&5
  12612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12613. (exit $ac_status); } &&
  12614. { ac_try='test -z "$ac_f77_werror_flag"
  12615. || test ! -s conftest.err'
  12616. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12617. (eval $ac_try) 2>&5
  12618. ac_status=$?
  12619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12620. (exit $ac_status); }; } &&
  12621. { ac_try='test -s conftest$ac_exeext'
  12622. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12623. (eval $ac_try) 2>&5
  12624. ac_status=$?
  12625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12626. (exit $ac_status); }; }; then
  12627. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12628. }'`
  12629. # Check for a 64-bit object if we didn't find anything.
  12630. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12631. }'`; fi
  12632. else
  12633. echo "$as_me: failed program was:" >&5
  12634. sed 's/^/| /' conftest.$ac_ext >&5
  12635. fi
  12636. rm -f conftest.err conftest.$ac_objext \
  12637. conftest$ac_exeext conftest.$ac_ext
  12638. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12639. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12640. archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  12641. else
  12642. if test "$host_cpu" = ia64; then
  12643. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  12644. allow_undefined_flag_F77="-z nodefs"
  12645. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  12646. else
  12647. # Determine the default libpath from the value encoded in an empty executable.
  12648. cat >conftest.$ac_ext <<_ACEOF
  12649. program main
  12650. end
  12651. _ACEOF
  12652. rm -f conftest.$ac_objext conftest$ac_exeext
  12653. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12654. (eval $ac_link) 2>conftest.er1
  12655. ac_status=$?
  12656. grep -v '^ *+' conftest.er1 >conftest.err
  12657. rm -f conftest.er1
  12658. cat conftest.err >&5
  12659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12660. (exit $ac_status); } &&
  12661. { ac_try='test -z "$ac_f77_werror_flag"
  12662. || test ! -s conftest.err'
  12663. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12664. (eval $ac_try) 2>&5
  12665. ac_status=$?
  12666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12667. (exit $ac_status); }; } &&
  12668. { ac_try='test -s conftest$ac_exeext'
  12669. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12670. (eval $ac_try) 2>&5
  12671. ac_status=$?
  12672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12673. (exit $ac_status); }; }; then
  12674. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12675. }'`
  12676. # Check for a 64-bit object if we didn't find anything.
  12677. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12678. }'`; fi
  12679. else
  12680. echo "$as_me: failed program was:" >&5
  12681. sed 's/^/| /' conftest.$ac_ext >&5
  12682. fi
  12683. rm -f conftest.err conftest.$ac_objext \
  12684. conftest$ac_exeext conftest.$ac_ext
  12685. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12686. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12687. # Warning - without using the other run time loading flags,
  12688. # -berok will link without error, but may produce a broken library.
  12689. no_undefined_flag_F77=' ${wl}-bernotok'
  12690. allow_undefined_flag_F77=' ${wl}-berok'
  12691. # -bexpall does not export symbols beginning with underscore (_)
  12692. always_export_symbols_F77=yes
  12693. # Exported symbols can be pulled into shared objects from archives
  12694. whole_archive_flag_spec_F77=' '
  12695. archive_cmds_need_lc_F77=yes
  12696. # This is similar to how AIX traditionally builds it's shared libraries.
  12697. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  12698. fi
  12699. fi
  12700. ;;
  12701. amigaos*)
  12702. archive_cmds_F77='$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)'
  12703. hardcode_libdir_flag_spec_F77='-L$libdir'
  12704. hardcode_minus_L_F77=yes
  12705. # see comment about different semantics on the GNU ld section
  12706. ld_shlibs_F77=no
  12707. ;;
  12708. bsdi4*)
  12709. export_dynamic_flag_spec_F77=-rdynamic
  12710. ;;
  12711. cygwin* | mingw* | pw32*)
  12712. # When not using gcc, we currently assume that we are using
  12713. # Microsoft Visual C++.
  12714. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12715. # no search path for DLLs.
  12716. hardcode_libdir_flag_spec_F77=' '
  12717. allow_undefined_flag_F77=unsupported
  12718. # Tell ltmain to make .lib files, not .a files.
  12719. libext=lib
  12720. # Tell ltmain to make .dll files, not .so files.
  12721. shrext_cmds=".dll"
  12722. # FIXME: Setting linknames here is a bad hack.
  12723. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12724. # The linker will automatically build a .lib file if we build a DLL.
  12725. old_archive_From_new_cmds_F77='true'
  12726. # FIXME: Should let the user specify the lib program.
  12727. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12728. fix_srcfile_path='`cygpath -w "$srcfile"`'
  12729. enable_shared_with_static_runtimes_F77=yes
  12730. ;;
  12731. darwin* | rhapsody*)
  12732. if test "$GXX" = yes ; then
  12733. archive_cmds_need_lc_F77=no
  12734. case "$host_os" in
  12735. rhapsody* | darwin1.[012])
  12736. allow_undefined_flag_F77='-undefined suppress'
  12737. ;;
  12738. *) # Darwin 1.3 on
  12739. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12740. allow_undefined_flag_F77='-flat_namespace -undefined suppress'
  12741. else
  12742. case ${MACOSX_DEPLOYMENT_TARGET} in
  12743. 10.[012])
  12744. allow_undefined_flag_F77='-flat_namespace -undefined suppress'
  12745. ;;
  12746. 10.*)
  12747. allow_undefined_flag_F77='-undefined dynamic_lookup'
  12748. ;;
  12749. esac
  12750. fi
  12751. ;;
  12752. esac
  12753. lt_int_apple_cc_single_mod=no
  12754. output_verbose_link_cmd='echo'
  12755. if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  12756. lt_int_apple_cc_single_mod=yes
  12757. fi
  12758. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  12759. archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12760. else
  12761. archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
  12762. fi
  12763. module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12764. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  12765. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  12766. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12767. else
  12768. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12769. fi
  12770. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12771. hardcode_direct_F77=no
  12772. hardcode_automatic_F77=yes
  12773. hardcode_shlibpath_var_F77=unsupported
  12774. whole_archive_flag_spec_F77='-all_load $convenience'
  12775. link_all_deplibs_F77=yes
  12776. else
  12777. ld_shlibs_F77=no
  12778. fi
  12779. ;;
  12780. dgux*)
  12781. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12782. hardcode_libdir_flag_spec_F77='-L$libdir'
  12783. hardcode_shlibpath_var_F77=no
  12784. ;;
  12785. freebsd1*)
  12786. ld_shlibs_F77=no
  12787. ;;
  12788. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12789. # support. Future versions do this automatically, but an explicit c++rt0.o
  12790. # does not break anything, and helps significantly (at the cost of a little
  12791. # extra space).
  12792. freebsd2.2*)
  12793. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12794. hardcode_libdir_flag_spec_F77='-R$libdir'
  12795. hardcode_direct_F77=yes
  12796. hardcode_shlibpath_var_F77=no
  12797. ;;
  12798. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12799. freebsd2*)
  12800. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12801. hardcode_direct_F77=yes
  12802. hardcode_minus_L_F77=yes
  12803. hardcode_shlibpath_var_F77=no
  12804. ;;
  12805. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12806. freebsd* | kfreebsd*-gnu)
  12807. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12808. hardcode_libdir_flag_spec_F77='-R$libdir'
  12809. hardcode_direct_F77=yes
  12810. hardcode_shlibpath_var_F77=no
  12811. ;;
  12812. hpux9*)
  12813. if test "$GCC" = yes; then
  12814. archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  12815. else
  12816. archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  12817. fi
  12818. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12819. hardcode_libdir_separator_F77=:
  12820. hardcode_direct_F77=yes
  12821. # hardcode_minus_L: Not really in the search PATH,
  12822. # but as the default location of the library.
  12823. hardcode_minus_L_F77=yes
  12824. export_dynamic_flag_spec_F77='${wl}-E'
  12825. ;;
  12826. hpux10* | hpux11*)
  12827. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12828. case "$host_cpu" in
  12829. hppa*64*|ia64*)
  12830. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12831. ;;
  12832. *)
  12833. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12834. ;;
  12835. esac
  12836. else
  12837. case "$host_cpu" in
  12838. hppa*64*|ia64*)
  12839. archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  12840. ;;
  12841. *)
  12842. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12843. ;;
  12844. esac
  12845. fi
  12846. if test "$with_gnu_ld" = no; then
  12847. case "$host_cpu" in
  12848. hppa*64*)
  12849. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12850. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  12851. hardcode_libdir_separator_F77=:
  12852. hardcode_direct_F77=no
  12853. hardcode_shlibpath_var_F77=no
  12854. ;;
  12855. ia64*)
  12856. hardcode_libdir_flag_spec_F77='-L$libdir'
  12857. hardcode_direct_F77=no
  12858. hardcode_shlibpath_var_F77=no
  12859. # hardcode_minus_L: Not really in the search PATH,
  12860. # but as the default location of the library.
  12861. hardcode_minus_L_F77=yes
  12862. ;;
  12863. *)
  12864. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12865. hardcode_libdir_separator_F77=:
  12866. hardcode_direct_F77=yes
  12867. export_dynamic_flag_spec_F77='${wl}-E'
  12868. # hardcode_minus_L: Not really in the search PATH,
  12869. # but as the default location of the library.
  12870. hardcode_minus_L_F77=yes
  12871. ;;
  12872. esac
  12873. fi
  12874. ;;
  12875. irix5* | irix6* | nonstopux*)
  12876. if test "$GCC" = yes; then
  12877. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12878. else
  12879. archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12880. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  12881. fi
  12882. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12883. hardcode_libdir_separator_F77=:
  12884. link_all_deplibs_F77=yes
  12885. ;;
  12886. netbsd*)
  12887. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12888. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12889. else
  12890. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12891. fi
  12892. hardcode_libdir_flag_spec_F77='-R$libdir'
  12893. hardcode_direct_F77=yes
  12894. hardcode_shlibpath_var_F77=no
  12895. ;;
  12896. newsos6)
  12897. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12898. hardcode_direct_F77=yes
  12899. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12900. hardcode_libdir_separator_F77=:
  12901. hardcode_shlibpath_var_F77=no
  12902. ;;
  12903. openbsd*)
  12904. hardcode_direct_F77=yes
  12905. hardcode_shlibpath_var_F77=no
  12906. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12907. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12908. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12909. export_dynamic_flag_spec_F77='${wl}-E'
  12910. else
  12911. case $host_os in
  12912. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  12913. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12914. hardcode_libdir_flag_spec_F77='-R$libdir'
  12915. ;;
  12916. *)
  12917. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12918. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12919. ;;
  12920. esac
  12921. fi
  12922. ;;
  12923. os2*)
  12924. hardcode_libdir_flag_spec_F77='-L$libdir'
  12925. hardcode_minus_L_F77=yes
  12926. allow_undefined_flag_F77=unsupported
  12927. archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  12928. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12929. ;;
  12930. osf3*)
  12931. if test "$GCC" = yes; then
  12932. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12933. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12934. else
  12935. allow_undefined_flag_F77=' -expect_unresolved \*'
  12936. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12937. fi
  12938. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12939. hardcode_libdir_separator_F77=:
  12940. ;;
  12941. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12942. if test "$GCC" = yes; then
  12943. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12944. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12945. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12946. else
  12947. allow_undefined_flag_F77=' -expect_unresolved \*'
  12948. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12949. archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  12950. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  12951. # Both c and cxx compiler support -rpath directly
  12952. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  12953. fi
  12954. hardcode_libdir_separator_F77=:
  12955. ;;
  12956. sco3.2v5*)
  12957. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12958. hardcode_shlibpath_var_F77=no
  12959. export_dynamic_flag_spec_F77='${wl}-Bexport'
  12960. runpath_var=LD_RUN_PATH
  12961. hardcode_runpath_var=yes
  12962. ;;
  12963. solaris*)
  12964. no_undefined_flag_F77=' -z text'
  12965. if test "$GCC" = yes; then
  12966. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12967. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12968. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12969. else
  12970. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12971. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12972. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12973. fi
  12974. hardcode_libdir_flag_spec_F77='-R$libdir'
  12975. hardcode_shlibpath_var_F77=no
  12976. case $host_os in
  12977. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12978. *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  12979. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  12980. esac
  12981. link_all_deplibs_F77=yes
  12982. ;;
  12983. sunos4*)
  12984. if test "x$host_vendor" = xsequent; then
  12985. # Use $CC to link under sequent, because it throws in some extra .o
  12986. # files that make .init and .fini sections work.
  12987. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12988. else
  12989. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12990. fi
  12991. hardcode_libdir_flag_spec_F77='-L$libdir'
  12992. hardcode_direct_F77=yes
  12993. hardcode_minus_L_F77=yes
  12994. hardcode_shlibpath_var_F77=no
  12995. ;;
  12996. sysv4)
  12997. case $host_vendor in
  12998. sni)
  12999. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13000. hardcode_direct_F77=yes # is this really true???
  13001. ;;
  13002. siemens)
  13003. ## LD is ld it makes a PLAMLIB
  13004. ## CC just makes a GrossModule.
  13005. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13006. reload_cmds_F77='$CC -r -o $output$reload_objs'
  13007. hardcode_direct_F77=no
  13008. ;;
  13009. motorola)
  13010. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13011. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13012. ;;
  13013. esac
  13014. runpath_var='LD_RUN_PATH'
  13015. hardcode_shlibpath_var_F77=no
  13016. ;;
  13017. sysv4.3*)
  13018. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13019. hardcode_shlibpath_var_F77=no
  13020. export_dynamic_flag_spec_F77='-Bexport'
  13021. ;;
  13022. sysv4*MP*)
  13023. if test -d /usr/nec; then
  13024. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13025. hardcode_shlibpath_var_F77=no
  13026. runpath_var=LD_RUN_PATH
  13027. hardcode_runpath_var=yes
  13028. ld_shlibs_F77=yes
  13029. fi
  13030. ;;
  13031. sysv4.2uw2*)
  13032. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13033. hardcode_direct_F77=yes
  13034. hardcode_minus_L_F77=no
  13035. hardcode_shlibpath_var_F77=no
  13036. hardcode_runpath_var=yes
  13037. runpath_var=LD_RUN_PATH
  13038. ;;
  13039. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  13040. no_undefined_flag_F77='${wl}-z ${wl}text'
  13041. if test "$GCC" = yes; then
  13042. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13043. else
  13044. archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13045. fi
  13046. runpath_var='LD_RUN_PATH'
  13047. hardcode_shlibpath_var_F77=no
  13048. ;;
  13049. sysv5*)
  13050. no_undefined_flag_F77=' -z text'
  13051. # $CC -shared without GNU ld will not create a library from C++
  13052. # object files and a static libstdc++, better avoid it by now
  13053. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13054. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13055. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13056. hardcode_libdir_flag_spec_F77=
  13057. hardcode_shlibpath_var_F77=no
  13058. runpath_var='LD_RUN_PATH'
  13059. ;;
  13060. uts4*)
  13061. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13062. hardcode_libdir_flag_spec_F77='-L$libdir'
  13063. hardcode_shlibpath_var_F77=no
  13064. ;;
  13065. *)
  13066. ld_shlibs_F77=no
  13067. ;;
  13068. esac
  13069. fi
  13070. echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13071. echo "${ECHO_T}$ld_shlibs_F77" >&6
  13072. test "$ld_shlibs_F77" = no && can_build_shared=no
  13073. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13074. if test "$GCC" = yes; then
  13075. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13076. fi
  13077. #
  13078. # Do we need to explicitly link libc?
  13079. #
  13080. case "x$archive_cmds_need_lc_F77" in
  13081. x|xyes)
  13082. # Assume -lc should be added
  13083. archive_cmds_need_lc_F77=yes
  13084. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13085. case $archive_cmds_F77 in
  13086. *'~'*)
  13087. # FIXME: we may have to deal with multi-command sequences.
  13088. ;;
  13089. '$CC '*)
  13090. # Test whether the compiler implicitly links with -lc since on some
  13091. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13092. # to ld, don't add -lc before -lgcc.
  13093. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13094. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  13095. $rm conftest*
  13096. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13097. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13098. (eval $ac_compile) 2>&5
  13099. ac_status=$?
  13100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13101. (exit $ac_status); } 2>conftest.err; then
  13102. soname=conftest
  13103. lib=conftest
  13104. libobjs=conftest.$ac_objext
  13105. deplibs=
  13106. wl=$lt_prog_compiler_wl_F77
  13107. compiler_flags=-v
  13108. linker_flags=-v
  13109. verstring=
  13110. output_objdir=.
  13111. libname=conftest
  13112. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13113. allow_undefined_flag_F77=
  13114. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13115. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13116. ac_status=$?
  13117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13118. (exit $ac_status); }
  13119. then
  13120. archive_cmds_need_lc_F77=no
  13121. else
  13122. archive_cmds_need_lc_F77=yes
  13123. fi
  13124. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  13125. else
  13126. cat conftest.err 1>&5
  13127. fi
  13128. $rm conftest*
  13129. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  13130. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  13131. ;;
  13132. esac
  13133. fi
  13134. ;;
  13135. esac
  13136. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13137. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  13138. library_names_spec=
  13139. libname_spec='lib$name'
  13140. soname_spec=
  13141. shrext_cmds=".so"
  13142. postinstall_cmds=
  13143. postuninstall_cmds=
  13144. finish_cmds=
  13145. finish_eval=
  13146. shlibpath_var=
  13147. shlibpath_overrides_runpath=unknown
  13148. version_type=none
  13149. dynamic_linker="$host_os ld.so"
  13150. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13151. if test "$GCC" = yes; then
  13152. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13153. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  13154. # if the path contains ";" then we assume it to be the separator
  13155. # otherwise default to the standard path separator (i.e. ":") - it is
  13156. # assumed that no part of a normal pathname contains ";" but that should
  13157. # okay in the real world where ";" in dirpaths is itself problematic.
  13158. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13159. else
  13160. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13161. fi
  13162. else
  13163. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13164. fi
  13165. need_lib_prefix=unknown
  13166. hardcode_into_libs=no
  13167. # when you set need_version to no, make sure it does not cause -set_version
  13168. # flags to be left without arguments
  13169. need_version=unknown
  13170. case $host_os in
  13171. aix3*)
  13172. version_type=linux
  13173. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13174. shlibpath_var=LIBPATH
  13175. # AIX 3 has no versioning support, so we append a major version to the name.
  13176. soname_spec='${libname}${release}${shared_ext}$major'
  13177. ;;
  13178. aix4* | aix5*)
  13179. version_type=linux
  13180. need_lib_prefix=no
  13181. need_version=no
  13182. hardcode_into_libs=yes
  13183. if test "$host_cpu" = ia64; then
  13184. # AIX 5 supports IA64
  13185. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13186. shlibpath_var=LD_LIBRARY_PATH
  13187. else
  13188. # With GCC up to 2.95.x, collect2 would create an import file
  13189. # for dependence libraries. The import file would start with
  13190. # the line `#! .'. This would cause the generated library to
  13191. # depend on `.', always an invalid library. This was fixed in
  13192. # development snapshots of GCC prior to 3.0.
  13193. case $host_os in
  13194. aix4 | aix4.[01] | aix4.[01].*)
  13195. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13196. echo ' yes '
  13197. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13198. :
  13199. else
  13200. can_build_shared=no
  13201. fi
  13202. ;;
  13203. esac
  13204. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13205. # soname into executable. Probably we can add versioning support to
  13206. # collect2, so additional links can be useful in future.
  13207. if test "$aix_use_runtimelinking" = yes; then
  13208. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13209. # instead of lib<name>.a to let people know that these are not
  13210. # typical AIX shared libraries.
  13211. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13212. else
  13213. # We preserve .a as extension for shared libraries through AIX4.2
  13214. # and later when we are not doing run time linking.
  13215. library_names_spec='${libname}${release}.a $libname.a'
  13216. soname_spec='${libname}${release}${shared_ext}$major'
  13217. fi
  13218. shlibpath_var=LIBPATH
  13219. fi
  13220. ;;
  13221. amigaos*)
  13222. library_names_spec='$libname.ixlibrary $libname.a'
  13223. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13224. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  13225. ;;
  13226. beos*)
  13227. library_names_spec='${libname}${shared_ext}'
  13228. dynamic_linker="$host_os ld.so"
  13229. shlibpath_var=LIBRARY_PATH
  13230. ;;
  13231. bsdi4*)
  13232. version_type=linux
  13233. need_version=no
  13234. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13235. soname_spec='${libname}${release}${shared_ext}$major'
  13236. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13237. shlibpath_var=LD_LIBRARY_PATH
  13238. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13239. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13240. # the default ld.so.conf also contains /usr/contrib/lib and
  13241. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13242. # libtool to hard-code these into programs
  13243. ;;
  13244. cygwin* | mingw* | pw32*)
  13245. version_type=windows
  13246. shrext_cmds=".dll"
  13247. need_version=no
  13248. need_lib_prefix=no
  13249. case $GCC,$host_os in
  13250. yes,cygwin* | yes,mingw* | yes,pw32*)
  13251. library_names_spec='$libname.dll.a'
  13252. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13253. postinstall_cmds='base_file=`basename \${file}`~
  13254. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13255. dldir=$destdir/`dirname \$dlpath`~
  13256. test -d \$dldir || mkdir -p \$dldir~
  13257. $install_prog $dir/$dlname \$dldir/$dlname'
  13258. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13259. dlpath=$dir/\$dldll~
  13260. $rm \$dlpath'
  13261. shlibpath_overrides_runpath=yes
  13262. case $host_os in
  13263. cygwin*)
  13264. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13265. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13266. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13267. ;;
  13268. mingw*)
  13269. # MinGW DLLs use traditional 'lib' prefix
  13270. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13271. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13272. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13273. # It is most probably a Windows format PATH printed by
  13274. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13275. # path with ; separators, and with drive letters. We can handle the
  13276. # drive letters (cygwin fileutils understands them), so leave them,
  13277. # especially as we might pass files found there to a mingw objdump,
  13278. # which wouldn't understand a cygwinified path. Ahh.
  13279. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13280. else
  13281. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13282. fi
  13283. ;;
  13284. pw32*)
  13285. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13286. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  13287. ;;
  13288. esac
  13289. ;;
  13290. *)
  13291. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13292. ;;
  13293. esac
  13294. dynamic_linker='Win32 ld.exe'
  13295. # FIXME: first we should search . and the directory the executable is in
  13296. shlibpath_var=PATH
  13297. ;;
  13298. darwin* | rhapsody*)
  13299. dynamic_linker="$host_os dyld"
  13300. version_type=darwin
  13301. need_lib_prefix=no
  13302. need_version=no
  13303. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13304. soname_spec='${libname}${release}${major}$shared_ext'
  13305. shlibpath_overrides_runpath=yes
  13306. shlibpath_var=DYLD_LIBRARY_PATH
  13307. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  13308. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  13309. if test "$GCC" = yes; then
  13310. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  13311. else
  13312. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  13313. fi
  13314. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13315. ;;
  13316. dgux*)
  13317. version_type=linux
  13318. need_lib_prefix=no
  13319. need_version=no
  13320. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13321. soname_spec='${libname}${release}${shared_ext}$major'
  13322. shlibpath_var=LD_LIBRARY_PATH
  13323. ;;
  13324. freebsd1*)
  13325. dynamic_linker=no
  13326. ;;
  13327. kfreebsd*-gnu)
  13328. version_type=linux
  13329. need_lib_prefix=no
  13330. need_version=no
  13331. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13332. soname_spec='${libname}${release}${shared_ext}$major'
  13333. shlibpath_var=LD_LIBRARY_PATH
  13334. shlibpath_overrides_runpath=no
  13335. hardcode_into_libs=yes
  13336. dynamic_linker='GNU ld.so'
  13337. ;;
  13338. freebsd*)
  13339. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  13340. version_type=freebsd-$objformat
  13341. case $version_type in
  13342. freebsd-elf*)
  13343. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13344. need_version=no
  13345. need_lib_prefix=no
  13346. ;;
  13347. freebsd-*)
  13348. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13349. need_version=yes
  13350. ;;
  13351. esac
  13352. shlibpath_var=LD_LIBRARY_PATH
  13353. case $host_os in
  13354. freebsd2*)
  13355. shlibpath_overrides_runpath=yes
  13356. ;;
  13357. freebsd3.01* | freebsdelf3.01*)
  13358. shlibpath_overrides_runpath=yes
  13359. hardcode_into_libs=yes
  13360. ;;
  13361. *) # from 3.2 on
  13362. shlibpath_overrides_runpath=no
  13363. hardcode_into_libs=yes
  13364. ;;
  13365. esac
  13366. ;;
  13367. gnu*)
  13368. version_type=linux
  13369. need_lib_prefix=no
  13370. need_version=no
  13371. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13372. soname_spec='${libname}${release}${shared_ext}$major'
  13373. shlibpath_var=LD_LIBRARY_PATH
  13374. hardcode_into_libs=yes
  13375. ;;
  13376. hpux9* | hpux10* | hpux11*)
  13377. # Give a soname corresponding to the major version so that dld.sl refuses to
  13378. # link against other versions.
  13379. version_type=sunos
  13380. need_lib_prefix=no
  13381. need_version=no
  13382. case "$host_cpu" in
  13383. ia64*)
  13384. shrext_cmds='.so'
  13385. hardcode_into_libs=yes
  13386. dynamic_linker="$host_os dld.so"
  13387. shlibpath_var=LD_LIBRARY_PATH
  13388. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13389. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13390. soname_spec='${libname}${release}${shared_ext}$major'
  13391. if test "X$HPUX_IA64_MODE" = X32; then
  13392. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13393. else
  13394. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13395. fi
  13396. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13397. ;;
  13398. hppa*64*)
  13399. shrext_cmds='.sl'
  13400. hardcode_into_libs=yes
  13401. dynamic_linker="$host_os dld.sl"
  13402. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13403. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13404. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13405. soname_spec='${libname}${release}${shared_ext}$major'
  13406. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13407. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13408. ;;
  13409. *)
  13410. shrext_cmds='.sl'
  13411. dynamic_linker="$host_os dld.sl"
  13412. shlibpath_var=SHLIB_PATH
  13413. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13414. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13415. soname_spec='${libname}${release}${shared_ext}$major'
  13416. ;;
  13417. esac
  13418. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13419. postinstall_cmds='chmod 555 $lib'
  13420. ;;
  13421. irix5* | irix6* | nonstopux*)
  13422. case $host_os in
  13423. nonstopux*) version_type=nonstopux ;;
  13424. *)
  13425. if test "$lt_cv_prog_gnu_ld" = yes; then
  13426. version_type=linux
  13427. else
  13428. version_type=irix
  13429. fi ;;
  13430. esac
  13431. need_lib_prefix=no
  13432. need_version=no
  13433. soname_spec='${libname}${release}${shared_ext}$major'
  13434. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13435. case $host_os in
  13436. irix5* | nonstopux*)
  13437. libsuff= shlibsuff=
  13438. ;;
  13439. *)
  13440. case $LD in # libtool.m4 will add one of these switches to LD
  13441. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13442. libsuff= shlibsuff= libmagic=32-bit;;
  13443. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13444. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13445. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13446. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13447. *) libsuff= shlibsuff= libmagic=never-match;;
  13448. esac
  13449. ;;
  13450. esac
  13451. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13452. shlibpath_overrides_runpath=no
  13453. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13454. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13455. hardcode_into_libs=yes
  13456. ;;
  13457. # No shared lib support for Linux oldld, aout, or coff.
  13458. linux*oldld* | linux*aout* | linux*coff*)
  13459. dynamic_linker=no
  13460. ;;
  13461. # This must be Linux ELF.
  13462. linux*)
  13463. version_type=linux
  13464. need_lib_prefix=no
  13465. need_version=no
  13466. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13467. soname_spec='${libname}${release}${shared_ext}$major'
  13468. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13469. shlibpath_var=LD_LIBRARY_PATH
  13470. shlibpath_overrides_runpath=no
  13471. # This implies no fast_install, which is unacceptable.
  13472. # Some rework will be needed to allow for fast_install
  13473. # before this can be enabled.
  13474. hardcode_into_libs=yes
  13475. # find out which ABI we are using
  13476. libsuff=
  13477. case "$host_cpu" in
  13478. x86_64*|s390x*|powerpc64*)
  13479. echo '#line 14942 "configure"' > conftest.$ac_ext
  13480. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13481. (eval $ac_compile) 2>&5
  13482. ac_status=$?
  13483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13484. (exit $ac_status); }; then
  13485. case `/usr/bin/file conftest.$ac_objext` in
  13486. *64-bit*)
  13487. libsuff=64
  13488. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  13489. ;;
  13490. esac
  13491. fi
  13492. rm -rf conftest*
  13493. ;;
  13494. esac
  13495. # Append ld.so.conf contents to the search path
  13496. if test -f /etc/ld.so.conf; then
  13497. lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
  13498. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  13499. fi
  13500. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13501. # powerpc, because MkLinux only supported shared libraries with the
  13502. # GNU dynamic linker. Since this was broken with cross compilers,
  13503. # most powerpc-linux boxes support dynamic linking these days and
  13504. # people can always --disable-shared, the test was removed, and we
  13505. # assume the GNU/Linux dynamic linker is in use.
  13506. dynamic_linker='GNU/Linux ld.so'
  13507. ;;
  13508. knetbsd*-gnu)
  13509. version_type=linux
  13510. need_lib_prefix=no
  13511. need_version=no
  13512. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13513. soname_spec='${libname}${release}${shared_ext}$major'
  13514. shlibpath_var=LD_LIBRARY_PATH
  13515. shlibpath_overrides_runpath=no
  13516. hardcode_into_libs=yes
  13517. dynamic_linker='GNU ld.so'
  13518. ;;
  13519. netbsd*)
  13520. version_type=sunos
  13521. need_lib_prefix=no
  13522. need_version=no
  13523. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13524. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13525. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13526. dynamic_linker='NetBSD (a.out) ld.so'
  13527. else
  13528. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13529. soname_spec='${libname}${release}${shared_ext}$major'
  13530. dynamic_linker='NetBSD ld.elf_so'
  13531. fi
  13532. shlibpath_var=LD_LIBRARY_PATH
  13533. shlibpath_overrides_runpath=yes
  13534. hardcode_into_libs=yes
  13535. ;;
  13536. newsos6)
  13537. version_type=linux
  13538. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13539. shlibpath_var=LD_LIBRARY_PATH
  13540. shlibpath_overrides_runpath=yes
  13541. ;;
  13542. nto-qnx*)
  13543. version_type=linux
  13544. need_lib_prefix=no
  13545. need_version=no
  13546. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13547. soname_spec='${libname}${release}${shared_ext}$major'
  13548. shlibpath_var=LD_LIBRARY_PATH
  13549. shlibpath_overrides_runpath=yes
  13550. ;;
  13551. openbsd*)
  13552. version_type=sunos
  13553. need_lib_prefix=no
  13554. need_version=yes
  13555. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13556. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13557. shlibpath_var=LD_LIBRARY_PATH
  13558. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13559. case $host_os in
  13560. openbsd2.[89] | openbsd2.[89].*)
  13561. shlibpath_overrides_runpath=no
  13562. ;;
  13563. *)
  13564. shlibpath_overrides_runpath=yes
  13565. ;;
  13566. esac
  13567. else
  13568. shlibpath_overrides_runpath=yes
  13569. fi
  13570. ;;
  13571. os2*)
  13572. libname_spec='$name'
  13573. shrext_cmds=".dll"
  13574. need_lib_prefix=no
  13575. library_names_spec='$libname${shared_ext} $libname.a'
  13576. dynamic_linker='OS/2 ld.exe'
  13577. shlibpath_var=LIBPATH
  13578. ;;
  13579. osf3* | osf4* | osf5*)
  13580. version_type=osf
  13581. need_lib_prefix=no
  13582. need_version=no
  13583. soname_spec='${libname}${release}${shared_ext}$major'
  13584. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13585. shlibpath_var=LD_LIBRARY_PATH
  13586. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13587. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13588. ;;
  13589. sco3.2v5*)
  13590. version_type=osf
  13591. soname_spec='${libname}${release}${shared_ext}$major'
  13592. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13593. shlibpath_var=LD_LIBRARY_PATH
  13594. ;;
  13595. solaris*)
  13596. version_type=linux
  13597. need_lib_prefix=no
  13598. need_version=no
  13599. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13600. soname_spec='${libname}${release}${shared_ext}$major'
  13601. shlibpath_var=LD_LIBRARY_PATH
  13602. shlibpath_overrides_runpath=yes
  13603. hardcode_into_libs=yes
  13604. # ldd complains unless libraries are executable
  13605. postinstall_cmds='chmod +x $lib'
  13606. ;;
  13607. sunos4*)
  13608. version_type=sunos
  13609. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13610. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13611. shlibpath_var=LD_LIBRARY_PATH
  13612. shlibpath_overrides_runpath=yes
  13613. if test "$with_gnu_ld" = yes; then
  13614. need_lib_prefix=no
  13615. fi
  13616. need_version=yes
  13617. ;;
  13618. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  13619. version_type=linux
  13620. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13621. soname_spec='${libname}${release}${shared_ext}$major'
  13622. shlibpath_var=LD_LIBRARY_PATH
  13623. case $host_vendor in
  13624. sni)
  13625. shlibpath_overrides_runpath=no
  13626. need_lib_prefix=no
  13627. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13628. runpath_var=LD_RUN_PATH
  13629. ;;
  13630. siemens)
  13631. need_lib_prefix=no
  13632. ;;
  13633. motorola)
  13634. need_lib_prefix=no
  13635. need_version=no
  13636. shlibpath_overrides_runpath=no
  13637. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13638. ;;
  13639. esac
  13640. ;;
  13641. sysv4*MP*)
  13642. if test -d /usr/nec ;then
  13643. version_type=linux
  13644. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13645. soname_spec='$libname${shared_ext}.$major'
  13646. shlibpath_var=LD_LIBRARY_PATH
  13647. fi
  13648. ;;
  13649. uts4*)
  13650. version_type=linux
  13651. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13652. soname_spec='${libname}${release}${shared_ext}$major'
  13653. shlibpath_var=LD_LIBRARY_PATH
  13654. ;;
  13655. *)
  13656. dynamic_linker=no
  13657. ;;
  13658. esac
  13659. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13660. echo "${ECHO_T}$dynamic_linker" >&6
  13661. test "$dynamic_linker" = no && can_build_shared=no
  13662. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13663. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  13664. hardcode_action_F77=
  13665. if test -n "$hardcode_libdir_flag_spec_F77" || \
  13666. test -n "$runpath_var F77" || \
  13667. test "X$hardcode_automatic_F77"="Xyes" ; then
  13668. # We can hardcode non-existant directories.
  13669. if test "$hardcode_direct_F77" != no &&
  13670. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13671. # have to relink, otherwise we might link with an installed library
  13672. # when we should be linking with a yet-to-be-installed one
  13673. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  13674. test "$hardcode_minus_L_F77" != no; then
  13675. # Linking always hardcodes the temporary library directory.
  13676. hardcode_action_F77=relink
  13677. else
  13678. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13679. hardcode_action_F77=immediate
  13680. fi
  13681. else
  13682. # We cannot hardcode anything, or else we can only hardcode existing
  13683. # directories.
  13684. hardcode_action_F77=unsupported
  13685. fi
  13686. echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  13687. echo "${ECHO_T}$hardcode_action_F77" >&6
  13688. if test "$hardcode_action_F77" = relink; then
  13689. # Fast installation is not supported
  13690. enable_fast_install=no
  13691. elif test "$shlibpath_overrides_runpath" = yes ||
  13692. test "$enable_shared" = no; then
  13693. # Fast installation is not necessary
  13694. enable_fast_install=needless
  13695. fi
  13696. striplib=
  13697. old_striplib=
  13698. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  13699. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  13700. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  13701. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  13702. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  13703. echo "$as_me:$LINENO: result: yes" >&5
  13704. echo "${ECHO_T}yes" >&6
  13705. else
  13706. # FIXME - insert some real tests, host_os isn't really good enough
  13707. case $host_os in
  13708. darwin*)
  13709. if test -n "$STRIP" ; then
  13710. striplib="$STRIP -x"
  13711. echo "$as_me:$LINENO: result: yes" >&5
  13712. echo "${ECHO_T}yes" >&6
  13713. else
  13714. echo "$as_me:$LINENO: result: no" >&5
  13715. echo "${ECHO_T}no" >&6
  13716. fi
  13717. ;;
  13718. *)
  13719. echo "$as_me:$LINENO: result: no" >&5
  13720. echo "${ECHO_T}no" >&6
  13721. ;;
  13722. esac
  13723. fi
  13724. # The else clause should only fire when bootstrapping the
  13725. # libtool distribution, otherwise you forgot to ship ltmain.sh
  13726. # with your package, and you will get complaints that there are
  13727. # no rules to generate ltmain.sh.
  13728. if test -f "$ltmain"; then
  13729. # See if we are running on zsh, and set the options which allow our commands through
  13730. # without removal of \ escapes.
  13731. if test -n "${ZSH_VERSION+set}" ; then
  13732. setopt NO_GLOB_SUBST
  13733. fi
  13734. # Now quote all the things that may contain metacharacters while being
  13735. # careful not to overquote the AC_SUBSTed values. We take copies of the
  13736. # variables and quote the copies for generation of the libtool script.
  13737. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  13738. SED SHELL STRIP \
  13739. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  13740. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  13741. deplibs_check_method reload_flag reload_cmds need_locks \
  13742. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  13743. lt_cv_sys_global_symbol_to_c_name_address \
  13744. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  13745. old_postinstall_cmds old_postuninstall_cmds \
  13746. compiler_F77 \
  13747. CC_F77 \
  13748. LD_F77 \
  13749. lt_prog_compiler_wl_F77 \
  13750. lt_prog_compiler_pic_F77 \
  13751. lt_prog_compiler_static_F77 \
  13752. lt_prog_compiler_no_builtin_flag_F77 \
  13753. export_dynamic_flag_spec_F77 \
  13754. thread_safe_flag_spec_F77 \
  13755. whole_archive_flag_spec_F77 \
  13756. enable_shared_with_static_runtimes_F77 \
  13757. old_archive_cmds_F77 \
  13758. old_archive_from_new_cmds_F77 \
  13759. predep_objects_F77 \
  13760. postdep_objects_F77 \
  13761. predeps_F77 \
  13762. postdeps_F77 \
  13763. compiler_lib_search_path_F77 \
  13764. archive_cmds_F77 \
  13765. archive_expsym_cmds_F77 \
  13766. postinstall_cmds_F77 \
  13767. postuninstall_cmds_F77 \
  13768. old_archive_from_expsyms_cmds_F77 \
  13769. allow_undefined_flag_F77 \
  13770. no_undefined_flag_F77 \
  13771. export_symbols_cmds_F77 \
  13772. hardcode_libdir_flag_spec_F77 \
  13773. hardcode_libdir_flag_spec_ld_F77 \
  13774. hardcode_libdir_separator_F77 \
  13775. hardcode_automatic_F77 \
  13776. module_cmds_F77 \
  13777. module_expsym_cmds_F77 \
  13778. lt_cv_prog_compiler_c_o_F77 \
  13779. exclude_expsyms_F77 \
  13780. include_expsyms_F77; do
  13781. case $var in
  13782. old_archive_cmds_F77 | \
  13783. old_archive_from_new_cmds_F77 | \
  13784. archive_cmds_F77 | \
  13785. archive_expsym_cmds_F77 | \
  13786. module_cmds_F77 | \
  13787. module_expsym_cmds_F77 | \
  13788. old_archive_from_expsyms_cmds_F77 | \
  13789. export_symbols_cmds_F77 | \
  13790. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  13791. postinstall_cmds | postuninstall_cmds | \
  13792. old_postinstall_cmds | old_postuninstall_cmds | \
  13793. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  13794. # Double-quote double-evaled strings.
  13795. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  13796. ;;
  13797. *)
  13798. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  13799. ;;
  13800. esac
  13801. done
  13802. case $lt_echo in
  13803. *'\$0 --fallback-echo"')
  13804. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  13805. ;;
  13806. esac
  13807. cfgfile="$ofile"
  13808. cat <<__EOF__ >> "$cfgfile"
  13809. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  13810. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13811. # Shell to use when invoking shell scripts.
  13812. SHELL=$lt_SHELL
  13813. # Whether or not to build shared libraries.
  13814. build_libtool_libs=$enable_shared
  13815. # Whether or not to build static libraries.
  13816. build_old_libs=$enable_static
  13817. # Whether or not to add -lc for building shared libraries.
  13818. build_libtool_need_lc=$archive_cmds_need_lc_F77
  13819. # Whether or not to disallow shared libs when runtime libs are static
  13820. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  13821. # Whether or not to optimize for fast installation.
  13822. fast_install=$enable_fast_install
  13823. # The host system.
  13824. host_alias=$host_alias
  13825. host=$host
  13826. # An echo program that does not interpret backslashes.
  13827. echo=$lt_echo
  13828. # The archiver.
  13829. AR=$lt_AR
  13830. AR_FLAGS=$lt_AR_FLAGS
  13831. # A C compiler.
  13832. LTCC=$lt_LTCC
  13833. # A language-specific compiler.
  13834. CC=$lt_compiler_F77
  13835. # Is the compiler the GNU C compiler?
  13836. with_gcc=$GCC_F77
  13837. # An ERE matcher.
  13838. EGREP=$lt_EGREP
  13839. # The linker used to build libraries.
  13840. LD=$lt_LD_F77
  13841. # Whether we need hard or soft links.
  13842. LN_S=$lt_LN_S
  13843. # A BSD-compatible nm program.
  13844. NM=$lt_NM
  13845. # A symbol stripping program
  13846. STRIP=$lt_STRIP
  13847. # Used to examine libraries when file_magic_cmd begins "file"
  13848. MAGIC_CMD=$MAGIC_CMD
  13849. # Used on cygwin: DLL creation program.
  13850. DLLTOOL="$DLLTOOL"
  13851. # Used on cygwin: object dumper.
  13852. OBJDUMP="$OBJDUMP"
  13853. # Used on cygwin: assembler.
  13854. AS="$AS"
  13855. # The name of the directory that contains temporary libtool files.
  13856. objdir=$objdir
  13857. # How to create reloadable object files.
  13858. reload_flag=$lt_reload_flag
  13859. reload_cmds=$lt_reload_cmds
  13860. # How to pass a linker flag through the compiler.
  13861. wl=$lt_lt_prog_compiler_wl_F77
  13862. # Object file suffix (normally "o").
  13863. objext="$ac_objext"
  13864. # Old archive suffix (normally "a").
  13865. libext="$libext"
  13866. # Shared library suffix (normally ".so").
  13867. shrext_cmds='$shrext_cmds'
  13868. # Executable file suffix (normally "").
  13869. exeext="$exeext"
  13870. # Additional compiler flags for building library objects.
  13871. pic_flag=$lt_lt_prog_compiler_pic_F77
  13872. pic_mode=$pic_mode
  13873. # What is the maximum length of a command?
  13874. max_cmd_len=$lt_cv_sys_max_cmd_len
  13875. # Does compiler simultaneously support -c and -o options?
  13876. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  13877. # Must we lock files when doing compilation ?
  13878. need_locks=$lt_need_locks
  13879. # Do we need the lib prefix for modules?
  13880. need_lib_prefix=$need_lib_prefix
  13881. # Do we need a version for libraries?
  13882. need_version=$need_version
  13883. # Whether dlopen is supported.
  13884. dlopen_support=$enable_dlopen
  13885. # Whether dlopen of programs is supported.
  13886. dlopen_self=$enable_dlopen_self
  13887. # Whether dlopen of statically linked programs is supported.
  13888. dlopen_self_static=$enable_dlopen_self_static
  13889. # Compiler flag to prevent dynamic linking.
  13890. link_static_flag=$lt_lt_prog_compiler_static_F77
  13891. # Compiler flag to turn off builtin functions.
  13892. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  13893. # Compiler flag to allow reflexive dlopens.
  13894. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  13895. # Compiler flag to generate shared objects directly from archives.
  13896. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  13897. # Compiler flag to generate thread-safe objects.
  13898. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  13899. # Library versioning type.
  13900. version_type=$version_type
  13901. # Format of library name prefix.
  13902. libname_spec=$lt_libname_spec
  13903. # List of archive names. First name is the real one, the rest are links.
  13904. # The last name is the one that the linker finds with -lNAME.
  13905. library_names_spec=$lt_library_names_spec
  13906. # The coded name of the library, if different from the real name.
  13907. soname_spec=$lt_soname_spec
  13908. # Commands used to build and install an old-style archive.
  13909. RANLIB=$lt_RANLIB
  13910. old_archive_cmds=$lt_old_archive_cmds_F77
  13911. old_postinstall_cmds=$lt_old_postinstall_cmds
  13912. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13913. # Create an old-style archive from a shared archive.
  13914. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  13915. # Create a temporary old-style archive to link instead of a shared archive.
  13916. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  13917. # Commands used to build and install a shared archive.
  13918. archive_cmds=$lt_archive_cmds_F77
  13919. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  13920. postinstall_cmds=$lt_postinstall_cmds
  13921. postuninstall_cmds=$lt_postuninstall_cmds
  13922. # Commands used to build a loadable module (assumed same as above if empty)
  13923. module_cmds=$lt_module_cmds_F77
  13924. module_expsym_cmds=$lt_module_expsym_cmds_F77
  13925. # Commands to strip libraries.
  13926. old_striplib=$lt_old_striplib
  13927. striplib=$lt_striplib
  13928. # Dependencies to place before the objects being linked to create a
  13929. # shared library.
  13930. predep_objects=$lt_predep_objects_F77
  13931. # Dependencies to place after the objects being linked to create a
  13932. # shared library.
  13933. postdep_objects=$lt_postdep_objects_F77
  13934. # Dependencies to place before the objects being linked to create a
  13935. # shared library.
  13936. predeps=$lt_predeps_F77
  13937. # Dependencies to place after the objects being linked to create a
  13938. # shared library.
  13939. postdeps=$lt_postdeps_F77
  13940. # The library search path used internally by the compiler when linking
  13941. # a shared library.
  13942. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  13943. # Method to check whether dependent libraries are shared objects.
  13944. deplibs_check_method=$lt_deplibs_check_method
  13945. # Command to use when deplibs_check_method == file_magic.
  13946. file_magic_cmd=$lt_file_magic_cmd
  13947. # Flag that allows shared libraries with undefined symbols to be built.
  13948. allow_undefined_flag=$lt_allow_undefined_flag_F77
  13949. # Flag that forces no undefined symbols.
  13950. no_undefined_flag=$lt_no_undefined_flag_F77
  13951. # Commands used to finish a libtool library installation in a directory.
  13952. finish_cmds=$lt_finish_cmds
  13953. # Same as above, but a single script fragment to be evaled but not shown.
  13954. finish_eval=$lt_finish_eval
  13955. # Take the output of nm and produce a listing of raw symbols and C names.
  13956. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13957. # Transform the output of nm in a proper C declaration
  13958. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13959. # Transform the output of nm in a C name address pair
  13960. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13961. # This is the shared library runtime path variable.
  13962. runpath_var=$runpath_var
  13963. # This is the shared library path variable.
  13964. shlibpath_var=$shlibpath_var
  13965. # Is shlibpath searched before the hard-coded library search path?
  13966. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13967. # How to hardcode a shared library path into an executable.
  13968. hardcode_action=$hardcode_action_F77
  13969. # Whether we should hardcode library paths into libraries.
  13970. hardcode_into_libs=$hardcode_into_libs
  13971. # Flag to hardcode \$libdir into a binary during linking.
  13972. # This must work even if \$libdir does not exist.
  13973. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  13974. # If ld is used when linking, flag to hardcode \$libdir into
  13975. # a binary during linking. This must work even if \$libdir does
  13976. # not exist.
  13977. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  13978. # Whether we need a single -rpath flag with a separated argument.
  13979. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  13980. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  13981. # resulting binary.
  13982. hardcode_direct=$hardcode_direct_F77
  13983. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  13984. # resulting binary.
  13985. hardcode_minus_L=$hardcode_minus_L_F77
  13986. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  13987. # the resulting binary.
  13988. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  13989. # Set to yes if building a shared library automatically hardcodes DIR into the library
  13990. # and all subsequent libraries and executables linked against it.
  13991. hardcode_automatic=$hardcode_automatic_F77
  13992. # Variables whose values should be saved in libtool wrapper scripts and
  13993. # restored at relink time.
  13994. variables_saved_for_relink="$variables_saved_for_relink"
  13995. # Whether libtool must link a program against all its dependency libraries.
  13996. link_all_deplibs=$link_all_deplibs_F77
  13997. # Compile-time system search path for libraries
  13998. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13999. # Run-time system search path for libraries
  14000. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14001. # Fix the shell variable \$srcfile for the compiler.
  14002. fix_srcfile_path="$fix_srcfile_path_F77"
  14003. # Set to yes if exported symbols are required.
  14004. always_export_symbols=$always_export_symbols_F77
  14005. # The commands to list exported symbols.
  14006. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14007. # The commands to extract the exported symbol list from a shared archive.
  14008. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14009. # Symbols that should not be listed in the preloaded symbols.
  14010. exclude_expsyms=$lt_exclude_expsyms_F77
  14011. # Symbols that must always be exported.
  14012. include_expsyms=$lt_include_expsyms_F77
  14013. # ### END LIBTOOL TAG CONFIG: $tagname
  14014. __EOF__
  14015. else
  14016. # If there is no Makefile yet, we rely on a make rule to execute
  14017. # `config.status --recheck' to rerun these tests and create the
  14018. # libtool script then.
  14019. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14020. if test -f "$ltmain_in"; then
  14021. test -f Makefile && make "$ltmain"
  14022. fi
  14023. fi
  14024. ac_ext=c
  14025. ac_cpp='$CPP $CPPFLAGS'
  14026. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14027. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14028. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14029. CC="$lt_save_CC"
  14030. else
  14031. tagname=""
  14032. fi
  14033. ;;
  14034. GCJ)
  14035. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14036. # Source file extension for Java test sources.
  14037. ac_ext=java
  14038. # Object file extension for compiled Java test sources.
  14039. objext=o
  14040. objext_GCJ=$objext
  14041. # Code to be used in simple compile tests
  14042. lt_simple_compile_test_code="class foo {}\n"
  14043. # Code to be used in simple link tests
  14044. lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
  14045. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14046. # If no C compiler was specified, use CC.
  14047. LTCC=${LTCC-"$CC"}
  14048. # Allow CC to be a program name with arguments.
  14049. compiler=$CC
  14050. # Allow CC to be a program name with arguments.
  14051. lt_save_CC="$CC"
  14052. CC=${GCJ-"gcj"}
  14053. compiler=$CC
  14054. compiler_GCJ=$CC
  14055. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14056. archive_cmds_need_lc_GCJ=no
  14057. lt_prog_compiler_no_builtin_flag_GCJ=
  14058. if test "$GCC" = yes; then
  14059. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14060. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14061. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  14062. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14063. echo $ECHO_N "(cached) $ECHO_C" >&6
  14064. else
  14065. lt_cv_prog_compiler_rtti_exceptions=no
  14066. ac_outfile=conftest.$ac_objext
  14067. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14068. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14069. # Insert the option either (1) after the last *FLAGS variable, or
  14070. # (2) before a word containing "conftest.", or (3) at the end.
  14071. # Note that $ac_compile itself does not contain backslashes and begins
  14072. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14073. # The option is referenced via a variable to avoid confusing sed.
  14074. lt_compile=`echo "$ac_compile" | $SED \
  14075. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  14076. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14077. -e 's:$: $lt_compiler_flag:'`
  14078. (eval echo "\"\$as_me:15683: $lt_compile\"" >&5)
  14079. (eval "$lt_compile" 2>conftest.err)
  14080. ac_status=$?
  14081. cat conftest.err >&5
  14082. echo "$as_me:15687: \$? = $ac_status" >&5
  14083. if (exit $ac_status) && test -s "$ac_outfile"; then
  14084. # The compiler can only warn and ignore the option if not recognized
  14085. # So say no if there are warnings
  14086. if test ! -s conftest.err; then
  14087. lt_cv_prog_compiler_rtti_exceptions=yes
  14088. fi
  14089. fi
  14090. $rm conftest*
  14091. fi
  14092. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14093. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  14094. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14095. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14096. else
  14097. :
  14098. fi
  14099. fi
  14100. lt_prog_compiler_wl_GCJ=
  14101. lt_prog_compiler_pic_GCJ=
  14102. lt_prog_compiler_static_GCJ=
  14103. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14104. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  14105. if test "$GCC" = yes; then
  14106. lt_prog_compiler_wl_GCJ='-Wl,'
  14107. lt_prog_compiler_static_GCJ='-static'
  14108. case $host_os in
  14109. aix*)
  14110. # All AIX code is PIC.
  14111. if test "$host_cpu" = ia64; then
  14112. # AIX 5 now supports IA64 processor
  14113. lt_prog_compiler_static_GCJ='-Bstatic'
  14114. fi
  14115. ;;
  14116. amigaos*)
  14117. # FIXME: we need at least 68020 code to build shared libraries, but
  14118. # adding the `-m68020' flag to GCC prevents building anything better,
  14119. # like `-m68040'.
  14120. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  14121. ;;
  14122. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14123. # PIC is the default for these OSes.
  14124. ;;
  14125. mingw* | pw32* | os2*)
  14126. # This hack is so that the source file can tell whether it is being
  14127. # built for inclusion in a dll (and should export symbols for example).
  14128. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14129. ;;
  14130. darwin* | rhapsody*)
  14131. # PIC is the default on this platform
  14132. # Common symbols not allowed in MH_DYLIB files
  14133. lt_prog_compiler_pic_GCJ='-fno-common'
  14134. ;;
  14135. msdosdjgpp*)
  14136. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14137. # on systems that don't support them.
  14138. lt_prog_compiler_can_build_shared_GCJ=no
  14139. enable_shared=no
  14140. ;;
  14141. sysv4*MP*)
  14142. if test -d /usr/nec; then
  14143. lt_prog_compiler_pic_GCJ=-Kconform_pic
  14144. fi
  14145. ;;
  14146. hpux*)
  14147. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14148. # not for PA HP-UX.
  14149. case "$host_cpu" in
  14150. hppa*64*|ia64*)
  14151. # +Z the default
  14152. ;;
  14153. *)
  14154. lt_prog_compiler_pic_GCJ='-fPIC'
  14155. ;;
  14156. esac
  14157. ;;
  14158. *)
  14159. lt_prog_compiler_pic_GCJ='-fPIC'
  14160. ;;
  14161. esac
  14162. else
  14163. # PORTME Check for flag to pass linker flags through the system compiler.
  14164. case $host_os in
  14165. aix*)
  14166. lt_prog_compiler_wl_GCJ='-Wl,'
  14167. if test "$host_cpu" = ia64; then
  14168. # AIX 5 now supports IA64 processor
  14169. lt_prog_compiler_static_GCJ='-Bstatic'
  14170. else
  14171. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  14172. fi
  14173. ;;
  14174. mingw* | pw32* | os2*)
  14175. # This hack is so that the source file can tell whether it is being
  14176. # built for inclusion in a dll (and should export symbols for example).
  14177. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14178. ;;
  14179. hpux9* | hpux10* | hpux11*)
  14180. lt_prog_compiler_wl_GCJ='-Wl,'
  14181. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14182. # not for PA HP-UX.
  14183. case "$host_cpu" in
  14184. hppa*64*|ia64*)
  14185. # +Z the default
  14186. ;;
  14187. *)
  14188. lt_prog_compiler_pic_GCJ='+Z'
  14189. ;;
  14190. esac
  14191. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14192. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  14193. ;;
  14194. irix5* | irix6* | nonstopux*)
  14195. lt_prog_compiler_wl_GCJ='-Wl,'
  14196. # PIC (with -KPIC) is the default.
  14197. lt_prog_compiler_static_GCJ='-non_shared'
  14198. ;;
  14199. newsos6)
  14200. lt_prog_compiler_pic_GCJ='-KPIC'
  14201. lt_prog_compiler_static_GCJ='-Bstatic'
  14202. ;;
  14203. linux*)
  14204. case $CC in
  14205. icc* | ecc*)
  14206. lt_prog_compiler_wl_GCJ='-Wl,'
  14207. lt_prog_compiler_pic_GCJ='-KPIC'
  14208. lt_prog_compiler_static_GCJ='-static'
  14209. ;;
  14210. ccc*)
  14211. lt_prog_compiler_wl_GCJ='-Wl,'
  14212. # All Alpha code is PIC.
  14213. lt_prog_compiler_static_GCJ='-non_shared'
  14214. ;;
  14215. esac
  14216. ;;
  14217. osf3* | osf4* | osf5*)
  14218. lt_prog_compiler_wl_GCJ='-Wl,'
  14219. # All OSF/1 code is PIC.
  14220. lt_prog_compiler_static_GCJ='-non_shared'
  14221. ;;
  14222. sco3.2v5*)
  14223. lt_prog_compiler_pic_GCJ='-Kpic'
  14224. lt_prog_compiler_static_GCJ='-dn'
  14225. ;;
  14226. solaris*)
  14227. lt_prog_compiler_wl_GCJ='-Wl,'
  14228. lt_prog_compiler_pic_GCJ='-KPIC'
  14229. lt_prog_compiler_static_GCJ='-Bstatic'
  14230. ;;
  14231. sunos4*)
  14232. lt_prog_compiler_wl_GCJ='-Qoption ld '
  14233. lt_prog_compiler_pic_GCJ='-PIC'
  14234. lt_prog_compiler_static_GCJ='-Bstatic'
  14235. ;;
  14236. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  14237. lt_prog_compiler_wl_GCJ='-Wl,'
  14238. lt_prog_compiler_pic_GCJ='-KPIC'
  14239. lt_prog_compiler_static_GCJ='-Bstatic'
  14240. ;;
  14241. sysv4*MP*)
  14242. if test -d /usr/nec ;then
  14243. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  14244. lt_prog_compiler_static_GCJ='-Bstatic'
  14245. fi
  14246. ;;
  14247. uts4*)
  14248. lt_prog_compiler_pic_GCJ='-pic'
  14249. lt_prog_compiler_static_GCJ='-Bstatic'
  14250. ;;
  14251. *)
  14252. lt_prog_compiler_can_build_shared_GCJ=no
  14253. ;;
  14254. esac
  14255. fi
  14256. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  14257. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  14258. #
  14259. # Check to make sure the PIC flag actually works.
  14260. #
  14261. if test -n "$lt_prog_compiler_pic_GCJ"; then
  14262. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  14263. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  14264. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  14265. echo $ECHO_N "(cached) $ECHO_C" >&6
  14266. else
  14267. lt_prog_compiler_pic_works_GCJ=no
  14268. ac_outfile=conftest.$ac_objext
  14269. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14270. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  14271. # Insert the option either (1) after the last *FLAGS variable, or
  14272. # (2) before a word containing "conftest.", or (3) at the end.
  14273. # Note that $ac_compile itself does not contain backslashes and begins
  14274. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14275. # The option is referenced via a variable to avoid confusing sed.
  14276. lt_compile=`echo "$ac_compile" | $SED \
  14277. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  14278. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14279. -e 's:$: $lt_compiler_flag:'`
  14280. (eval echo "\"\$as_me:15916: $lt_compile\"" >&5)
  14281. (eval "$lt_compile" 2>conftest.err)
  14282. ac_status=$?
  14283. cat conftest.err >&5
  14284. echo "$as_me:15920: \$? = $ac_status" >&5
  14285. if (exit $ac_status) && test -s "$ac_outfile"; then
  14286. # The compiler can only warn and ignore the option if not recognized
  14287. # So say no if there are warnings
  14288. if test ! -s conftest.err; then
  14289. lt_prog_compiler_pic_works_GCJ=yes
  14290. fi
  14291. fi
  14292. $rm conftest*
  14293. fi
  14294. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  14295. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  14296. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  14297. case $lt_prog_compiler_pic_GCJ in
  14298. "" | " "*) ;;
  14299. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  14300. esac
  14301. else
  14302. lt_prog_compiler_pic_GCJ=
  14303. lt_prog_compiler_can_build_shared_GCJ=no
  14304. fi
  14305. fi
  14306. case "$host_os" in
  14307. # For platforms which do not support PIC, -DPIC is meaningless:
  14308. *djgpp*)
  14309. lt_prog_compiler_pic_GCJ=
  14310. ;;
  14311. *)
  14312. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  14313. ;;
  14314. esac
  14315. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14316. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  14317. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  14318. echo $ECHO_N "(cached) $ECHO_C" >&6
  14319. else
  14320. lt_cv_prog_compiler_c_o_GCJ=no
  14321. $rm -r conftest 2>/dev/null
  14322. mkdir conftest
  14323. cd conftest
  14324. mkdir out
  14325. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14326. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14327. # Insert the option either (1) after the last *FLAGS variable, or
  14328. # (2) before a word containing "conftest.", or (3) at the end.
  14329. # Note that $ac_compile itself does not contain backslashes and begins
  14330. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14331. lt_compile=`echo "$ac_compile" | $SED \
  14332. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  14333. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14334. -e 's:$: $lt_compiler_flag:'`
  14335. (eval echo "\"\$as_me:15976: $lt_compile\"" >&5)
  14336. (eval "$lt_compile" 2>out/conftest.err)
  14337. ac_status=$?
  14338. cat out/conftest.err >&5
  14339. echo "$as_me:15980: \$? = $ac_status" >&5
  14340. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14341. then
  14342. # The compiler can only warn and ignore the option if not recognized
  14343. # So say no if there are warnings
  14344. if test ! -s out/conftest.err; then
  14345. lt_cv_prog_compiler_c_o_GCJ=yes
  14346. fi
  14347. fi
  14348. chmod u+w .
  14349. $rm conftest*
  14350. # SGI C++ compiler will create directory out/ii_files/ for
  14351. # template instantiation
  14352. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14353. $rm out/* && rmdir out
  14354. cd ..
  14355. rmdir conftest
  14356. $rm conftest*
  14357. fi
  14358. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  14359. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  14360. hard_links="nottested"
  14361. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  14362. # do not overwrite the value of need_locks provided by the user
  14363. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14364. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  14365. hard_links=yes
  14366. $rm conftest*
  14367. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14368. touch conftest.a
  14369. ln conftest.a conftest.b 2>&5 || hard_links=no
  14370. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14371. echo "$as_me:$LINENO: result: $hard_links" >&5
  14372. echo "${ECHO_T}$hard_links" >&6
  14373. if test "$hard_links" = no; then
  14374. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14375. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14376. need_locks=warn
  14377. fi
  14378. else
  14379. need_locks=no
  14380. fi
  14381. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14382. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  14383. runpath_var=
  14384. allow_undefined_flag_GCJ=
  14385. enable_shared_with_static_runtimes_GCJ=no
  14386. archive_cmds_GCJ=
  14387. archive_expsym_cmds_GCJ=
  14388. old_archive_From_new_cmds_GCJ=
  14389. old_archive_from_expsyms_cmds_GCJ=
  14390. export_dynamic_flag_spec_GCJ=
  14391. whole_archive_flag_spec_GCJ=
  14392. thread_safe_flag_spec_GCJ=
  14393. hardcode_libdir_flag_spec_GCJ=
  14394. hardcode_libdir_flag_spec_ld_GCJ=
  14395. hardcode_libdir_separator_GCJ=
  14396. hardcode_direct_GCJ=no
  14397. hardcode_minus_L_GCJ=no
  14398. hardcode_shlibpath_var_GCJ=unsupported
  14399. link_all_deplibs_GCJ=unknown
  14400. hardcode_automatic_GCJ=no
  14401. module_cmds_GCJ=
  14402. module_expsym_cmds_GCJ=
  14403. always_export_symbols_GCJ=no
  14404. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14405. # include_expsyms should be a list of space-separated symbols to be *always*
  14406. # included in the symbol list
  14407. include_expsyms_GCJ=
  14408. # exclude_expsyms can be an extended regexp of symbols to exclude
  14409. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14410. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14411. # as well as any symbol that contains `d'.
  14412. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  14413. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14414. # platforms (ab)use it in PIC code, but their linkers get confused if
  14415. # the symbol is explicitly referenced. Since portable code cannot
  14416. # rely on this symbol name, it's probably fine to never include it in
  14417. # preloaded symbol tables.
  14418. extract_expsyms_cmds=
  14419. case $host_os in
  14420. cygwin* | mingw* | pw32*)
  14421. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14422. # When not using gcc, we currently assume that we are using
  14423. # Microsoft Visual C++.
  14424. if test "$GCC" != yes; then
  14425. with_gnu_ld=no
  14426. fi
  14427. ;;
  14428. openbsd*)
  14429. with_gnu_ld=no
  14430. ;;
  14431. esac
  14432. ld_shlibs_GCJ=yes
  14433. if test "$with_gnu_ld" = yes; then
  14434. # If archive_cmds runs LD, not CC, wlarc should be empty
  14435. wlarc='${wl}'
  14436. # See if GNU ld supports shared libraries.
  14437. case $host_os in
  14438. aix3* | aix4* | aix5*)
  14439. # On AIX/PPC, the GNU linker is very broken
  14440. if test "$host_cpu" != ia64; then
  14441. ld_shlibs_GCJ=no
  14442. cat <<EOF 1>&2
  14443. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14444. *** to be unable to reliably create shared libraries on AIX.
  14445. *** Therefore, libtool is disabling shared libraries support. If you
  14446. *** really care for shared libraries, you may want to modify your PATH
  14447. *** so that a non-GNU linker is found, and then restart.
  14448. EOF
  14449. fi
  14450. ;;
  14451. amigaos*)
  14452. archive_cmds_GCJ='$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)'
  14453. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14454. hardcode_minus_L_GCJ=yes
  14455. # Samuel A. Falvo II <[email protected]> reports
  14456. # that the semantics of dynamic libraries on AmigaOS, at least up
  14457. # to version 4, is to share data among multiple programs linked
  14458. # with the same dynamic library. Since this doesn't match the
  14459. # behavior of shared libraries on other platforms, we can't use
  14460. # them.
  14461. ld_shlibs_GCJ=no
  14462. ;;
  14463. beos*)
  14464. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14465. allow_undefined_flag_GCJ=unsupported
  14466. # Joseph Beckenbach <[email protected]> says some releases of gcc
  14467. # support --undefined. This deserves some investigation. FIXME
  14468. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14469. else
  14470. ld_shlibs_GCJ=no
  14471. fi
  14472. ;;
  14473. cygwin* | mingw* | pw32*)
  14474. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  14475. # as there is no search path for DLLs.
  14476. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14477. allow_undefined_flag_GCJ=unsupported
  14478. always_export_symbols_GCJ=no
  14479. enable_shared_with_static_runtimes_GCJ=yes
  14480. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  14481. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  14482. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  14483. # If the export-symbols file already is a .def file (1st line
  14484. # is EXPORTS), use it as is; otherwise, prepend...
  14485. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  14486. cp $export_symbols $output_objdir/$soname.def;
  14487. else
  14488. echo EXPORTS > $output_objdir/$soname.def;
  14489. cat $export_symbols >> $output_objdir/$soname.def;
  14490. fi~
  14491. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  14492. else
  14493. ld_shlibs=no
  14494. fi
  14495. ;;
  14496. netbsd*)
  14497. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14498. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  14499. wlarc=
  14500. else
  14501. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14502. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14503. fi
  14504. ;;
  14505. solaris* | sysv5*)
  14506. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  14507. ld_shlibs_GCJ=no
  14508. cat <<EOF 1>&2
  14509. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  14510. *** create shared libraries on Solaris systems. Therefore, libtool
  14511. *** is disabling shared libraries support. We urge you to upgrade GNU
  14512. *** binutils to release 2.9.1 or newer. Another option is to modify
  14513. *** your PATH or compiler configuration so that the native linker is
  14514. *** used, and then restart.
  14515. EOF
  14516. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14517. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14518. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14519. else
  14520. ld_shlibs_GCJ=no
  14521. fi
  14522. ;;
  14523. sunos4*)
  14524. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14525. wlarc=
  14526. hardcode_direct_GCJ=yes
  14527. hardcode_shlibpath_var_GCJ=no
  14528. ;;
  14529. linux*)
  14530. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14531. tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14532. archive_cmds_GCJ="$tmp_archive_cmds"
  14533. supports_anon_versioning=no
  14534. case `$LD -v 2>/dev/null` in
  14535. *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  14536. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  14537. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  14538. *\ 2.11.*) ;; # other 2.11 versions
  14539. *) supports_anon_versioning=yes ;;
  14540. esac
  14541. if test $supports_anon_versioning = yes; then
  14542. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  14543. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14544. $echo "local: *; };" >> $output_objdir/$libname.ver~
  14545. $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14546. else
  14547. archive_expsym_cmds_GCJ="$tmp_archive_cmds"
  14548. fi
  14549. else
  14550. ld_shlibs_GCJ=no
  14551. fi
  14552. ;;
  14553. *)
  14554. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14555. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14556. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14557. else
  14558. ld_shlibs_GCJ=no
  14559. fi
  14560. ;;
  14561. esac
  14562. if test "$ld_shlibs_GCJ" = yes; then
  14563. runpath_var=LD_RUN_PATH
  14564. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  14565. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  14566. # ancient GNU ld didn't support --whole-archive et. al.
  14567. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  14568. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14569. else
  14570. whole_archive_flag_spec_GCJ=
  14571. fi
  14572. fi
  14573. else
  14574. # PORTME fill in a description of your system's linker (not GNU ld)
  14575. case $host_os in
  14576. aix3*)
  14577. allow_undefined_flag_GCJ=unsupported
  14578. always_export_symbols_GCJ=yes
  14579. archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  14580. # Note: this linker hardcodes the directories in LIBPATH if there
  14581. # are no directories specified by -L.
  14582. hardcode_minus_L_GCJ=yes
  14583. if test "$GCC" = yes && test -z "$link_static_flag"; then
  14584. # Neither direct hardcoding nor static linking is supported with a
  14585. # broken collect2.
  14586. hardcode_direct_GCJ=unsupported
  14587. fi
  14588. ;;
  14589. aix4* | aix5*)
  14590. if test "$host_cpu" = ia64; then
  14591. # On IA64, the linker does run time linking by default, so we don't
  14592. # have to do anything special.
  14593. aix_use_runtimelinking=no
  14594. exp_sym_flag='-Bexport'
  14595. no_entry_flag=""
  14596. else
  14597. # If we're using GNU nm, then we don't want the "-C" option.
  14598. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14599. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14600. export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  14601. else
  14602. export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  14603. fi
  14604. aix_use_runtimelinking=no
  14605. # Test if we are trying to use run time linking or normal
  14606. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14607. # need to do runtime linking.
  14608. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14609. for ld_flag in $LDFLAGS; do
  14610. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14611. aix_use_runtimelinking=yes
  14612. break
  14613. fi
  14614. done
  14615. esac
  14616. exp_sym_flag='-bexport'
  14617. no_entry_flag='-bnoentry'
  14618. fi
  14619. # When large executables or shared objects are built, AIX ld can
  14620. # have problems creating the table of contents. If linking a library
  14621. # or program results in "error TOC overflow" add -mminimal-toc to
  14622. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14623. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14624. archive_cmds_GCJ=''
  14625. hardcode_direct_GCJ=yes
  14626. hardcode_libdir_separator_GCJ=':'
  14627. link_all_deplibs_GCJ=yes
  14628. if test "$GCC" = yes; then
  14629. case $host_os in aix4.012|aix4.012.*)
  14630. # We only want to do this on AIX 4.2 and lower, the check
  14631. # below for broken collect2 doesn't work under 4.3+
  14632. collect2name=`${CC} -print-prog-name=collect2`
  14633. if test -f "$collect2name" && \
  14634. strings "$collect2name" | grep resolve_lib_name >/dev/null
  14635. then
  14636. # We have reworked collect2
  14637. hardcode_direct_GCJ=yes
  14638. else
  14639. # We have old collect2
  14640. hardcode_direct_GCJ=unsupported
  14641. # It fails to find uninstalled libraries when the uninstalled
  14642. # path is not listed in the libpath. Setting hardcode_minus_L
  14643. # to unsupported forces relinking
  14644. hardcode_minus_L_GCJ=yes
  14645. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14646. hardcode_libdir_separator_GCJ=
  14647. fi
  14648. esac
  14649. shared_flag='-shared'
  14650. else
  14651. # not using gcc
  14652. if test "$host_cpu" = ia64; then
  14653. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14654. # chokes on -Wl,-G. The following line is correct:
  14655. shared_flag='-G'
  14656. else
  14657. if test "$aix_use_runtimelinking" = yes; then
  14658. shared_flag='${wl}-G'
  14659. else
  14660. shared_flag='${wl}-bM:SRE'
  14661. fi
  14662. fi
  14663. fi
  14664. # It seems that -bexpall does not export symbols beginning with
  14665. # underscore (_), so it is better to generate a list of symbols to export.
  14666. always_export_symbols_GCJ=yes
  14667. if test "$aix_use_runtimelinking" = yes; then
  14668. # Warning - without using the other runtime loading flags (-brtl),
  14669. # -berok will link without error, but may produce a broken library.
  14670. allow_undefined_flag_GCJ='-berok'
  14671. # Determine the default libpath from the value encoded in an empty executable.
  14672. cat >conftest.$ac_ext <<_ACEOF
  14673. /* confdefs.h. */
  14674. _ACEOF
  14675. cat confdefs.h >>conftest.$ac_ext
  14676. cat >>conftest.$ac_ext <<_ACEOF
  14677. /* end confdefs.h. */
  14678. int
  14679. main ()
  14680. {
  14681. ;
  14682. return 0;
  14683. }
  14684. _ACEOF
  14685. rm -f conftest.$ac_objext conftest$ac_exeext
  14686. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14687. (eval $ac_link) 2>conftest.er1
  14688. ac_status=$?
  14689. grep -v '^ *+' conftest.er1 >conftest.err
  14690. rm -f conftest.er1
  14691. cat conftest.err >&5
  14692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14693. (exit $ac_status); } &&
  14694. { ac_try='test -z "$ac_c_werror_flag"
  14695. || test ! -s conftest.err'
  14696. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14697. (eval $ac_try) 2>&5
  14698. ac_status=$?
  14699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14700. (exit $ac_status); }; } &&
  14701. { ac_try='test -s conftest$ac_exeext'
  14702. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14703. (eval $ac_try) 2>&5
  14704. ac_status=$?
  14705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14706. (exit $ac_status); }; }; then
  14707. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14708. }'`
  14709. # Check for a 64-bit object if we didn't find anything.
  14710. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14711. }'`; fi
  14712. else
  14713. echo "$as_me: failed program was:" >&5
  14714. sed 's/^/| /' conftest.$ac_ext >&5
  14715. fi
  14716. rm -f conftest.err conftest.$ac_objext \
  14717. conftest$ac_exeext conftest.$ac_ext
  14718. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14719. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14720. archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  14721. else
  14722. if test "$host_cpu" = ia64; then
  14723. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  14724. allow_undefined_flag_GCJ="-z nodefs"
  14725. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  14726. else
  14727. # Determine the default libpath from the value encoded in an empty executable.
  14728. cat >conftest.$ac_ext <<_ACEOF
  14729. /* confdefs.h. */
  14730. _ACEOF
  14731. cat confdefs.h >>conftest.$ac_ext
  14732. cat >>conftest.$ac_ext <<_ACEOF
  14733. /* end confdefs.h. */
  14734. int
  14735. main ()
  14736. {
  14737. ;
  14738. return 0;
  14739. }
  14740. _ACEOF
  14741. rm -f conftest.$ac_objext conftest$ac_exeext
  14742. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14743. (eval $ac_link) 2>conftest.er1
  14744. ac_status=$?
  14745. grep -v '^ *+' conftest.er1 >conftest.err
  14746. rm -f conftest.er1
  14747. cat conftest.err >&5
  14748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14749. (exit $ac_status); } &&
  14750. { ac_try='test -z "$ac_c_werror_flag"
  14751. || test ! -s conftest.err'
  14752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14753. (eval $ac_try) 2>&5
  14754. ac_status=$?
  14755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14756. (exit $ac_status); }; } &&
  14757. { ac_try='test -s conftest$ac_exeext'
  14758. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14759. (eval $ac_try) 2>&5
  14760. ac_status=$?
  14761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14762. (exit $ac_status); }; }; then
  14763. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14764. }'`
  14765. # Check for a 64-bit object if we didn't find anything.
  14766. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14767. }'`; fi
  14768. else
  14769. echo "$as_me: failed program was:" >&5
  14770. sed 's/^/| /' conftest.$ac_ext >&5
  14771. fi
  14772. rm -f conftest.err conftest.$ac_objext \
  14773. conftest$ac_exeext conftest.$ac_ext
  14774. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14775. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14776. # Warning - without using the other run time loading flags,
  14777. # -berok will link without error, but may produce a broken library.
  14778. no_undefined_flag_GCJ=' ${wl}-bernotok'
  14779. allow_undefined_flag_GCJ=' ${wl}-berok'
  14780. # -bexpall does not export symbols beginning with underscore (_)
  14781. always_export_symbols_GCJ=yes
  14782. # Exported symbols can be pulled into shared objects from archives
  14783. whole_archive_flag_spec_GCJ=' '
  14784. archive_cmds_need_lc_GCJ=yes
  14785. # This is similar to how AIX traditionally builds it's shared libraries.
  14786. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  14787. fi
  14788. fi
  14789. ;;
  14790. amigaos*)
  14791. archive_cmds_GCJ='$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)'
  14792. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14793. hardcode_minus_L_GCJ=yes
  14794. # see comment about different semantics on the GNU ld section
  14795. ld_shlibs_GCJ=no
  14796. ;;
  14797. bsdi4*)
  14798. export_dynamic_flag_spec_GCJ=-rdynamic
  14799. ;;
  14800. cygwin* | mingw* | pw32*)
  14801. # When not using gcc, we currently assume that we are using
  14802. # Microsoft Visual C++.
  14803. # hardcode_libdir_flag_spec is actually meaningless, as there is
  14804. # no search path for DLLs.
  14805. hardcode_libdir_flag_spec_GCJ=' '
  14806. allow_undefined_flag_GCJ=unsupported
  14807. # Tell ltmain to make .lib files, not .a files.
  14808. libext=lib
  14809. # Tell ltmain to make .dll files, not .so files.
  14810. shrext_cmds=".dll"
  14811. # FIXME: Setting linknames here is a bad hack.
  14812. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  14813. # The linker will automatically build a .lib file if we build a DLL.
  14814. old_archive_From_new_cmds_GCJ='true'
  14815. # FIXME: Should let the user specify the lib program.
  14816. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  14817. fix_srcfile_path='`cygpath -w "$srcfile"`'
  14818. enable_shared_with_static_runtimes_GCJ=yes
  14819. ;;
  14820. darwin* | rhapsody*)
  14821. if test "$GXX" = yes ; then
  14822. archive_cmds_need_lc_GCJ=no
  14823. case "$host_os" in
  14824. rhapsody* | darwin1.[012])
  14825. allow_undefined_flag_GCJ='-undefined suppress'
  14826. ;;
  14827. *) # Darwin 1.3 on
  14828. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  14829. allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
  14830. else
  14831. case ${MACOSX_DEPLOYMENT_TARGET} in
  14832. 10.[012])
  14833. allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
  14834. ;;
  14835. 10.*)
  14836. allow_undefined_flag_GCJ='-undefined dynamic_lookup'
  14837. ;;
  14838. esac
  14839. fi
  14840. ;;
  14841. esac
  14842. lt_int_apple_cc_single_mod=no
  14843. output_verbose_link_cmd='echo'
  14844. if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  14845. lt_int_apple_cc_single_mod=yes
  14846. fi
  14847. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  14848. archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  14849. else
  14850. archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
  14851. fi
  14852. module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14853. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  14854. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  14855. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14856. else
  14857. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14858. fi
  14859. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14860. hardcode_direct_GCJ=no
  14861. hardcode_automatic_GCJ=yes
  14862. hardcode_shlibpath_var_GCJ=unsupported
  14863. whole_archive_flag_spec_GCJ='-all_load $convenience'
  14864. link_all_deplibs_GCJ=yes
  14865. else
  14866. ld_shlibs_GCJ=no
  14867. fi
  14868. ;;
  14869. dgux*)
  14870. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14871. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14872. hardcode_shlibpath_var_GCJ=no
  14873. ;;
  14874. freebsd1*)
  14875. ld_shlibs_GCJ=no
  14876. ;;
  14877. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  14878. # support. Future versions do this automatically, but an explicit c++rt0.o
  14879. # does not break anything, and helps significantly (at the cost of a little
  14880. # extra space).
  14881. freebsd2.2*)
  14882. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  14883. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14884. hardcode_direct_GCJ=yes
  14885. hardcode_shlibpath_var_GCJ=no
  14886. ;;
  14887. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  14888. freebsd2*)
  14889. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14890. hardcode_direct_GCJ=yes
  14891. hardcode_minus_L_GCJ=yes
  14892. hardcode_shlibpath_var_GCJ=no
  14893. ;;
  14894. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  14895. freebsd* | kfreebsd*-gnu)
  14896. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  14897. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14898. hardcode_direct_GCJ=yes
  14899. hardcode_shlibpath_var_GCJ=no
  14900. ;;
  14901. hpux9*)
  14902. if test "$GCC" = yes; then
  14903. archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  14904. else
  14905. archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  14906. fi
  14907. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14908. hardcode_libdir_separator_GCJ=:
  14909. hardcode_direct_GCJ=yes
  14910. # hardcode_minus_L: Not really in the search PATH,
  14911. # but as the default location of the library.
  14912. hardcode_minus_L_GCJ=yes
  14913. export_dynamic_flag_spec_GCJ='${wl}-E'
  14914. ;;
  14915. hpux10* | hpux11*)
  14916. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14917. case "$host_cpu" in
  14918. hppa*64*|ia64*)
  14919. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14920. ;;
  14921. *)
  14922. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14923. ;;
  14924. esac
  14925. else
  14926. case "$host_cpu" in
  14927. hppa*64*|ia64*)
  14928. archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  14929. ;;
  14930. *)
  14931. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  14932. ;;
  14933. esac
  14934. fi
  14935. if test "$with_gnu_ld" = no; then
  14936. case "$host_cpu" in
  14937. hppa*64*)
  14938. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14939. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  14940. hardcode_libdir_separator_GCJ=:
  14941. hardcode_direct_GCJ=no
  14942. hardcode_shlibpath_var_GCJ=no
  14943. ;;
  14944. ia64*)
  14945. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14946. hardcode_direct_GCJ=no
  14947. hardcode_shlibpath_var_GCJ=no
  14948. # hardcode_minus_L: Not really in the search PATH,
  14949. # but as the default location of the library.
  14950. hardcode_minus_L_GCJ=yes
  14951. ;;
  14952. *)
  14953. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14954. hardcode_libdir_separator_GCJ=:
  14955. hardcode_direct_GCJ=yes
  14956. export_dynamic_flag_spec_GCJ='${wl}-E'
  14957. # hardcode_minus_L: Not really in the search PATH,
  14958. # but as the default location of the library.
  14959. hardcode_minus_L_GCJ=yes
  14960. ;;
  14961. esac
  14962. fi
  14963. ;;
  14964. irix5* | irix6* | nonstopux*)
  14965. if test "$GCC" = yes; then
  14966. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  14967. else
  14968. archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  14969. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  14970. fi
  14971. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14972. hardcode_libdir_separator_GCJ=:
  14973. link_all_deplibs_GCJ=yes
  14974. ;;
  14975. netbsd*)
  14976. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14977. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  14978. else
  14979. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  14980. fi
  14981. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14982. hardcode_direct_GCJ=yes
  14983. hardcode_shlibpath_var_GCJ=no
  14984. ;;
  14985. newsos6)
  14986. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14987. hardcode_direct_GCJ=yes
  14988. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14989. hardcode_libdir_separator_GCJ=:
  14990. hardcode_shlibpath_var_GCJ=no
  14991. ;;
  14992. openbsd*)
  14993. hardcode_direct_GCJ=yes
  14994. hardcode_shlibpath_var_GCJ=no
  14995. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14996. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14997. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14998. export_dynamic_flag_spec_GCJ='${wl}-E'
  14999. else
  15000. case $host_os in
  15001. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15002. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15003. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15004. ;;
  15005. *)
  15006. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15007. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15008. ;;
  15009. esac
  15010. fi
  15011. ;;
  15012. os2*)
  15013. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15014. hardcode_minus_L_GCJ=yes
  15015. allow_undefined_flag_GCJ=unsupported
  15016. archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  15017. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15018. ;;
  15019. osf3*)
  15020. if test "$GCC" = yes; then
  15021. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15022. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  15023. else
  15024. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15025. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  15026. fi
  15027. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15028. hardcode_libdir_separator_GCJ=:
  15029. ;;
  15030. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15031. if test "$GCC" = yes; then
  15032. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15033. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  15034. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15035. else
  15036. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15037. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  15038. archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  15039. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  15040. # Both c and cxx compiler support -rpath directly
  15041. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  15042. fi
  15043. hardcode_libdir_separator_GCJ=:
  15044. ;;
  15045. sco3.2v5*)
  15046. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15047. hardcode_shlibpath_var_GCJ=no
  15048. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  15049. runpath_var=LD_RUN_PATH
  15050. hardcode_runpath_var=yes
  15051. ;;
  15052. solaris*)
  15053. no_undefined_flag_GCJ=' -z text'
  15054. if test "$GCC" = yes; then
  15055. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15056. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15057. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15058. else
  15059. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15060. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15061. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15062. fi
  15063. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15064. hardcode_shlibpath_var_GCJ=no
  15065. case $host_os in
  15066. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15067. *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  15068. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  15069. esac
  15070. link_all_deplibs_GCJ=yes
  15071. ;;
  15072. sunos4*)
  15073. if test "x$host_vendor" = xsequent; then
  15074. # Use $CC to link under sequent, because it throws in some extra .o
  15075. # files that make .init and .fini sections work.
  15076. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15077. else
  15078. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15079. fi
  15080. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15081. hardcode_direct_GCJ=yes
  15082. hardcode_minus_L_GCJ=yes
  15083. hardcode_shlibpath_var_GCJ=no
  15084. ;;
  15085. sysv4)
  15086. case $host_vendor in
  15087. sni)
  15088. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15089. hardcode_direct_GCJ=yes # is this really true???
  15090. ;;
  15091. siemens)
  15092. ## LD is ld it makes a PLAMLIB
  15093. ## CC just makes a GrossModule.
  15094. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15095. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  15096. hardcode_direct_GCJ=no
  15097. ;;
  15098. motorola)
  15099. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15100. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  15101. ;;
  15102. esac
  15103. runpath_var='LD_RUN_PATH'
  15104. hardcode_shlibpath_var_GCJ=no
  15105. ;;
  15106. sysv4.3*)
  15107. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15108. hardcode_shlibpath_var_GCJ=no
  15109. export_dynamic_flag_spec_GCJ='-Bexport'
  15110. ;;
  15111. sysv4*MP*)
  15112. if test -d /usr/nec; then
  15113. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15114. hardcode_shlibpath_var_GCJ=no
  15115. runpath_var=LD_RUN_PATH
  15116. hardcode_runpath_var=yes
  15117. ld_shlibs_GCJ=yes
  15118. fi
  15119. ;;
  15120. sysv4.2uw2*)
  15121. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15122. hardcode_direct_GCJ=yes
  15123. hardcode_minus_L_GCJ=no
  15124. hardcode_shlibpath_var_GCJ=no
  15125. hardcode_runpath_var=yes
  15126. runpath_var=LD_RUN_PATH
  15127. ;;
  15128. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  15129. no_undefined_flag_GCJ='${wl}-z ${wl}text'
  15130. if test "$GCC" = yes; then
  15131. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15132. else
  15133. archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15134. fi
  15135. runpath_var='LD_RUN_PATH'
  15136. hardcode_shlibpath_var_GCJ=no
  15137. ;;
  15138. sysv5*)
  15139. no_undefined_flag_GCJ=' -z text'
  15140. # $CC -shared without GNU ld will not create a library from C++
  15141. # object files and a static libstdc++, better avoid it by now
  15142. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15143. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15144. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15145. hardcode_libdir_flag_spec_GCJ=
  15146. hardcode_shlibpath_var_GCJ=no
  15147. runpath_var='LD_RUN_PATH'
  15148. ;;
  15149. uts4*)
  15150. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15151. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15152. hardcode_shlibpath_var_GCJ=no
  15153. ;;
  15154. *)
  15155. ld_shlibs_GCJ=no
  15156. ;;
  15157. esac
  15158. fi
  15159. echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  15160. echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  15161. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  15162. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15163. if test "$GCC" = yes; then
  15164. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15165. fi
  15166. #
  15167. # Do we need to explicitly link libc?
  15168. #
  15169. case "x$archive_cmds_need_lc_GCJ" in
  15170. x|xyes)
  15171. # Assume -lc should be added
  15172. archive_cmds_need_lc_GCJ=yes
  15173. if test "$enable_shared" = yes && test "$GCC" = yes; then
  15174. case $archive_cmds_GCJ in
  15175. *'~'*)
  15176. # FIXME: we may have to deal with multi-command sequences.
  15177. ;;
  15178. '$CC '*)
  15179. # Test whether the compiler implicitly links with -lc since on some
  15180. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15181. # to ld, don't add -lc before -lgcc.
  15182. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  15183. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  15184. $rm conftest*
  15185. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15186. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15187. (eval $ac_compile) 2>&5
  15188. ac_status=$?
  15189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15190. (exit $ac_status); } 2>conftest.err; then
  15191. soname=conftest
  15192. lib=conftest
  15193. libobjs=conftest.$ac_objext
  15194. deplibs=
  15195. wl=$lt_prog_compiler_wl_GCJ
  15196. compiler_flags=-v
  15197. linker_flags=-v
  15198. verstring=
  15199. output_objdir=.
  15200. libname=conftest
  15201. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  15202. allow_undefined_flag_GCJ=
  15203. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  15204. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15205. ac_status=$?
  15206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15207. (exit $ac_status); }
  15208. then
  15209. archive_cmds_need_lc_GCJ=no
  15210. else
  15211. archive_cmds_need_lc_GCJ=yes
  15212. fi
  15213. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  15214. else
  15215. cat conftest.err 1>&5
  15216. fi
  15217. $rm conftest*
  15218. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  15219. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  15220. ;;
  15221. esac
  15222. fi
  15223. ;;
  15224. esac
  15225. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  15226. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  15227. library_names_spec=
  15228. libname_spec='lib$name'
  15229. soname_spec=
  15230. shrext_cmds=".so"
  15231. postinstall_cmds=
  15232. postuninstall_cmds=
  15233. finish_cmds=
  15234. finish_eval=
  15235. shlibpath_var=
  15236. shlibpath_overrides_runpath=unknown
  15237. version_type=none
  15238. dynamic_linker="$host_os ld.so"
  15239. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15240. if test "$GCC" = yes; then
  15241. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15242. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  15243. # if the path contains ";" then we assume it to be the separator
  15244. # otherwise default to the standard path separator (i.e. ":") - it is
  15245. # assumed that no part of a normal pathname contains ";" but that should
  15246. # okay in the real world where ";" in dirpaths is itself problematic.
  15247. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15248. else
  15249. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15250. fi
  15251. else
  15252. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15253. fi
  15254. need_lib_prefix=unknown
  15255. hardcode_into_libs=no
  15256. # when you set need_version to no, make sure it does not cause -set_version
  15257. # flags to be left without arguments
  15258. need_version=unknown
  15259. case $host_os in
  15260. aix3*)
  15261. version_type=linux
  15262. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15263. shlibpath_var=LIBPATH
  15264. # AIX 3 has no versioning support, so we append a major version to the name.
  15265. soname_spec='${libname}${release}${shared_ext}$major'
  15266. ;;
  15267. aix4* | aix5*)
  15268. version_type=linux
  15269. need_lib_prefix=no
  15270. need_version=no
  15271. hardcode_into_libs=yes
  15272. if test "$host_cpu" = ia64; then
  15273. # AIX 5 supports IA64
  15274. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15275. shlibpath_var=LD_LIBRARY_PATH
  15276. else
  15277. # With GCC up to 2.95.x, collect2 would create an import file
  15278. # for dependence libraries. The import file would start with
  15279. # the line `#! .'. This would cause the generated library to
  15280. # depend on `.', always an invalid library. This was fixed in
  15281. # development snapshots of GCC prior to 3.0.
  15282. case $host_os in
  15283. aix4 | aix4.[01] | aix4.[01].*)
  15284. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15285. echo ' yes '
  15286. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  15287. :
  15288. else
  15289. can_build_shared=no
  15290. fi
  15291. ;;
  15292. esac
  15293. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15294. # soname into executable. Probably we can add versioning support to
  15295. # collect2, so additional links can be useful in future.
  15296. if test "$aix_use_runtimelinking" = yes; then
  15297. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15298. # instead of lib<name>.a to let people know that these are not
  15299. # typical AIX shared libraries.
  15300. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15301. else
  15302. # We preserve .a as extension for shared libraries through AIX4.2
  15303. # and later when we are not doing run time linking.
  15304. library_names_spec='${libname}${release}.a $libname.a'
  15305. soname_spec='${libname}${release}${shared_ext}$major'
  15306. fi
  15307. shlibpath_var=LIBPATH
  15308. fi
  15309. ;;
  15310. amigaos*)
  15311. library_names_spec='$libname.ixlibrary $libname.a'
  15312. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15313. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  15314. ;;
  15315. beos*)
  15316. library_names_spec='${libname}${shared_ext}'
  15317. dynamic_linker="$host_os ld.so"
  15318. shlibpath_var=LIBRARY_PATH
  15319. ;;
  15320. bsdi4*)
  15321. version_type=linux
  15322. need_version=no
  15323. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15324. soname_spec='${libname}${release}${shared_ext}$major'
  15325. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15326. shlibpath_var=LD_LIBRARY_PATH
  15327. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15328. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15329. # the default ld.so.conf also contains /usr/contrib/lib and
  15330. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15331. # libtool to hard-code these into programs
  15332. ;;
  15333. cygwin* | mingw* | pw32*)
  15334. version_type=windows
  15335. shrext_cmds=".dll"
  15336. need_version=no
  15337. need_lib_prefix=no
  15338. case $GCC,$host_os in
  15339. yes,cygwin* | yes,mingw* | yes,pw32*)
  15340. library_names_spec='$libname.dll.a'
  15341. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15342. postinstall_cmds='base_file=`basename \${file}`~
  15343. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  15344. dldir=$destdir/`dirname \$dlpath`~
  15345. test -d \$dldir || mkdir -p \$dldir~
  15346. $install_prog $dir/$dlname \$dldir/$dlname'
  15347. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15348. dlpath=$dir/\$dldll~
  15349. $rm \$dlpath'
  15350. shlibpath_overrides_runpath=yes
  15351. case $host_os in
  15352. cygwin*)
  15353. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15354. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15355. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  15356. ;;
  15357. mingw*)
  15358. # MinGW DLLs use traditional 'lib' prefix
  15359. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15360. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15361. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  15362. # It is most probably a Windows format PATH printed by
  15363. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  15364. # path with ; separators, and with drive letters. We can handle the
  15365. # drive letters (cygwin fileutils understands them), so leave them,
  15366. # especially as we might pass files found there to a mingw objdump,
  15367. # which wouldn't understand a cygwinified path. Ahh.
  15368. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15369. else
  15370. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15371. fi
  15372. ;;
  15373. pw32*)
  15374. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15375. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  15376. ;;
  15377. esac
  15378. ;;
  15379. *)
  15380. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15381. ;;
  15382. esac
  15383. dynamic_linker='Win32 ld.exe'
  15384. # FIXME: first we should search . and the directory the executable is in
  15385. shlibpath_var=PATH
  15386. ;;
  15387. darwin* | rhapsody*)
  15388. dynamic_linker="$host_os dyld"
  15389. version_type=darwin
  15390. need_lib_prefix=no
  15391. need_version=no
  15392. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  15393. soname_spec='${libname}${release}${major}$shared_ext'
  15394. shlibpath_overrides_runpath=yes
  15395. shlibpath_var=DYLD_LIBRARY_PATH
  15396. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  15397. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  15398. if test "$GCC" = yes; then
  15399. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  15400. else
  15401. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  15402. fi
  15403. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15404. ;;
  15405. dgux*)
  15406. version_type=linux
  15407. need_lib_prefix=no
  15408. need_version=no
  15409. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  15410. soname_spec='${libname}${release}${shared_ext}$major'
  15411. shlibpath_var=LD_LIBRARY_PATH
  15412. ;;
  15413. freebsd1*)
  15414. dynamic_linker=no
  15415. ;;
  15416. kfreebsd*-gnu)
  15417. version_type=linux
  15418. need_lib_prefix=no
  15419. need_version=no
  15420. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15421. soname_spec='${libname}${release}${shared_ext}$major'
  15422. shlibpath_var=LD_LIBRARY_PATH
  15423. shlibpath_overrides_runpath=no
  15424. hardcode_into_libs=yes
  15425. dynamic_linker='GNU ld.so'
  15426. ;;
  15427. freebsd*)
  15428. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  15429. version_type=freebsd-$objformat
  15430. case $version_type in
  15431. freebsd-elf*)
  15432. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15433. need_version=no
  15434. need_lib_prefix=no
  15435. ;;
  15436. freebsd-*)
  15437. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15438. need_version=yes
  15439. ;;
  15440. esac
  15441. shlibpath_var=LD_LIBRARY_PATH
  15442. case $host_os in
  15443. freebsd2*)
  15444. shlibpath_overrides_runpath=yes
  15445. ;;
  15446. freebsd3.01* | freebsdelf3.01*)
  15447. shlibpath_overrides_runpath=yes
  15448. hardcode_into_libs=yes
  15449. ;;
  15450. *) # from 3.2 on
  15451. shlibpath_overrides_runpath=no
  15452. hardcode_into_libs=yes
  15453. ;;
  15454. esac
  15455. ;;
  15456. gnu*)
  15457. version_type=linux
  15458. need_lib_prefix=no
  15459. need_version=no
  15460. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15461. soname_spec='${libname}${release}${shared_ext}$major'
  15462. shlibpath_var=LD_LIBRARY_PATH
  15463. hardcode_into_libs=yes
  15464. ;;
  15465. hpux9* | hpux10* | hpux11*)
  15466. # Give a soname corresponding to the major version so that dld.sl refuses to
  15467. # link against other versions.
  15468. version_type=sunos
  15469. need_lib_prefix=no
  15470. need_version=no
  15471. case "$host_cpu" in
  15472. ia64*)
  15473. shrext_cmds='.so'
  15474. hardcode_into_libs=yes
  15475. dynamic_linker="$host_os dld.so"
  15476. shlibpath_var=LD_LIBRARY_PATH
  15477. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15478. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15479. soname_spec='${libname}${release}${shared_ext}$major'
  15480. if test "X$HPUX_IA64_MODE" = X32; then
  15481. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15482. else
  15483. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15484. fi
  15485. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15486. ;;
  15487. hppa*64*)
  15488. shrext_cmds='.sl'
  15489. hardcode_into_libs=yes
  15490. dynamic_linker="$host_os dld.sl"
  15491. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15492. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15493. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15494. soname_spec='${libname}${release}${shared_ext}$major'
  15495. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15496. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15497. ;;
  15498. *)
  15499. shrext_cmds='.sl'
  15500. dynamic_linker="$host_os dld.sl"
  15501. shlibpath_var=SHLIB_PATH
  15502. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15503. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15504. soname_spec='${libname}${release}${shared_ext}$major'
  15505. ;;
  15506. esac
  15507. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15508. postinstall_cmds='chmod 555 $lib'
  15509. ;;
  15510. irix5* | irix6* | nonstopux*)
  15511. case $host_os in
  15512. nonstopux*) version_type=nonstopux ;;
  15513. *)
  15514. if test "$lt_cv_prog_gnu_ld" = yes; then
  15515. version_type=linux
  15516. else
  15517. version_type=irix
  15518. fi ;;
  15519. esac
  15520. need_lib_prefix=no
  15521. need_version=no
  15522. soname_spec='${libname}${release}${shared_ext}$major'
  15523. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15524. case $host_os in
  15525. irix5* | nonstopux*)
  15526. libsuff= shlibsuff=
  15527. ;;
  15528. *)
  15529. case $LD in # libtool.m4 will add one of these switches to LD
  15530. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15531. libsuff= shlibsuff= libmagic=32-bit;;
  15532. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15533. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15534. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15535. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15536. *) libsuff= shlibsuff= libmagic=never-match;;
  15537. esac
  15538. ;;
  15539. esac
  15540. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15541. shlibpath_overrides_runpath=no
  15542. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15543. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15544. hardcode_into_libs=yes
  15545. ;;
  15546. # No shared lib support for Linux oldld, aout, or coff.
  15547. linux*oldld* | linux*aout* | linux*coff*)
  15548. dynamic_linker=no
  15549. ;;
  15550. # This must be Linux ELF.
  15551. linux*)
  15552. version_type=linux
  15553. need_lib_prefix=no
  15554. need_version=no
  15555. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15556. soname_spec='${libname}${release}${shared_ext}$major'
  15557. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15558. shlibpath_var=LD_LIBRARY_PATH
  15559. shlibpath_overrides_runpath=no
  15560. # This implies no fast_install, which is unacceptable.
  15561. # Some rework will be needed to allow for fast_install
  15562. # before this can be enabled.
  15563. hardcode_into_libs=yes
  15564. # find out which ABI we are using
  15565. libsuff=
  15566. case "$host_cpu" in
  15567. x86_64*|s390x*|powerpc64*)
  15568. echo '#line 17310 "configure"' > conftest.$ac_ext
  15569. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15570. (eval $ac_compile) 2>&5
  15571. ac_status=$?
  15572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15573. (exit $ac_status); }; then
  15574. case `/usr/bin/file conftest.$ac_objext` in
  15575. *64-bit*)
  15576. libsuff=64
  15577. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  15578. ;;
  15579. esac
  15580. fi
  15581. rm -rf conftest*
  15582. ;;
  15583. esac
  15584. # Append ld.so.conf contents to the search path
  15585. if test -f /etc/ld.so.conf; then
  15586. lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
  15587. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  15588. fi
  15589. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15590. # powerpc, because MkLinux only supported shared libraries with the
  15591. # GNU dynamic linker. Since this was broken with cross compilers,
  15592. # most powerpc-linux boxes support dynamic linking these days and
  15593. # people can always --disable-shared, the test was removed, and we
  15594. # assume the GNU/Linux dynamic linker is in use.
  15595. dynamic_linker='GNU/Linux ld.so'
  15596. ;;
  15597. knetbsd*-gnu)
  15598. version_type=linux
  15599. need_lib_prefix=no
  15600. need_version=no
  15601. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15602. soname_spec='${libname}${release}${shared_ext}$major'
  15603. shlibpath_var=LD_LIBRARY_PATH
  15604. shlibpath_overrides_runpath=no
  15605. hardcode_into_libs=yes
  15606. dynamic_linker='GNU ld.so'
  15607. ;;
  15608. netbsd*)
  15609. version_type=sunos
  15610. need_lib_prefix=no
  15611. need_version=no
  15612. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15613. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15614. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15615. dynamic_linker='NetBSD (a.out) ld.so'
  15616. else
  15617. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15618. soname_spec='${libname}${release}${shared_ext}$major'
  15619. dynamic_linker='NetBSD ld.elf_so'
  15620. fi
  15621. shlibpath_var=LD_LIBRARY_PATH
  15622. shlibpath_overrides_runpath=yes
  15623. hardcode_into_libs=yes
  15624. ;;
  15625. newsos6)
  15626. version_type=linux
  15627. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15628. shlibpath_var=LD_LIBRARY_PATH
  15629. shlibpath_overrides_runpath=yes
  15630. ;;
  15631. nto-qnx*)
  15632. version_type=linux
  15633. need_lib_prefix=no
  15634. need_version=no
  15635. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15636. soname_spec='${libname}${release}${shared_ext}$major'
  15637. shlibpath_var=LD_LIBRARY_PATH
  15638. shlibpath_overrides_runpath=yes
  15639. ;;
  15640. openbsd*)
  15641. version_type=sunos
  15642. need_lib_prefix=no
  15643. need_version=yes
  15644. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15645. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15646. shlibpath_var=LD_LIBRARY_PATH
  15647. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15648. case $host_os in
  15649. openbsd2.[89] | openbsd2.[89].*)
  15650. shlibpath_overrides_runpath=no
  15651. ;;
  15652. *)
  15653. shlibpath_overrides_runpath=yes
  15654. ;;
  15655. esac
  15656. else
  15657. shlibpath_overrides_runpath=yes
  15658. fi
  15659. ;;
  15660. os2*)
  15661. libname_spec='$name'
  15662. shrext_cmds=".dll"
  15663. need_lib_prefix=no
  15664. library_names_spec='$libname${shared_ext} $libname.a'
  15665. dynamic_linker='OS/2 ld.exe'
  15666. shlibpath_var=LIBPATH
  15667. ;;
  15668. osf3* | osf4* | osf5*)
  15669. version_type=osf
  15670. need_lib_prefix=no
  15671. need_version=no
  15672. soname_spec='${libname}${release}${shared_ext}$major'
  15673. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15674. shlibpath_var=LD_LIBRARY_PATH
  15675. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15676. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15677. ;;
  15678. sco3.2v5*)
  15679. version_type=osf
  15680. soname_spec='${libname}${release}${shared_ext}$major'
  15681. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15682. shlibpath_var=LD_LIBRARY_PATH
  15683. ;;
  15684. solaris*)
  15685. version_type=linux
  15686. need_lib_prefix=no
  15687. need_version=no
  15688. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15689. soname_spec='${libname}${release}${shared_ext}$major'
  15690. shlibpath_var=LD_LIBRARY_PATH
  15691. shlibpath_overrides_runpath=yes
  15692. hardcode_into_libs=yes
  15693. # ldd complains unless libraries are executable
  15694. postinstall_cmds='chmod +x $lib'
  15695. ;;
  15696. sunos4*)
  15697. version_type=sunos
  15698. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15699. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15700. shlibpath_var=LD_LIBRARY_PATH
  15701. shlibpath_overrides_runpath=yes
  15702. if test "$with_gnu_ld" = yes; then
  15703. need_lib_prefix=no
  15704. fi
  15705. need_version=yes
  15706. ;;
  15707. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  15708. version_type=linux
  15709. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15710. soname_spec='${libname}${release}${shared_ext}$major'
  15711. shlibpath_var=LD_LIBRARY_PATH
  15712. case $host_vendor in
  15713. sni)
  15714. shlibpath_overrides_runpath=no
  15715. need_lib_prefix=no
  15716. export_dynamic_flag_spec='${wl}-Blargedynsym'
  15717. runpath_var=LD_RUN_PATH
  15718. ;;
  15719. siemens)
  15720. need_lib_prefix=no
  15721. ;;
  15722. motorola)
  15723. need_lib_prefix=no
  15724. need_version=no
  15725. shlibpath_overrides_runpath=no
  15726. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15727. ;;
  15728. esac
  15729. ;;
  15730. sysv4*MP*)
  15731. if test -d /usr/nec ;then
  15732. version_type=linux
  15733. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15734. soname_spec='$libname${shared_ext}.$major'
  15735. shlibpath_var=LD_LIBRARY_PATH
  15736. fi
  15737. ;;
  15738. uts4*)
  15739. version_type=linux
  15740. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15741. soname_spec='${libname}${release}${shared_ext}$major'
  15742. shlibpath_var=LD_LIBRARY_PATH
  15743. ;;
  15744. *)
  15745. dynamic_linker=no
  15746. ;;
  15747. esac
  15748. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  15749. echo "${ECHO_T}$dynamic_linker" >&6
  15750. test "$dynamic_linker" = no && can_build_shared=no
  15751. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  15752. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  15753. hardcode_action_GCJ=
  15754. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  15755. test -n "$runpath_var GCJ" || \
  15756. test "X$hardcode_automatic_GCJ"="Xyes" ; then
  15757. # We can hardcode non-existant directories.
  15758. if test "$hardcode_direct_GCJ" != no &&
  15759. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15760. # have to relink, otherwise we might link with an installed library
  15761. # when we should be linking with a yet-to-be-installed one
  15762. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  15763. test "$hardcode_minus_L_GCJ" != no; then
  15764. # Linking always hardcodes the temporary library directory.
  15765. hardcode_action_GCJ=relink
  15766. else
  15767. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15768. hardcode_action_GCJ=immediate
  15769. fi
  15770. else
  15771. # We cannot hardcode anything, or else we can only hardcode existing
  15772. # directories.
  15773. hardcode_action_GCJ=unsupported
  15774. fi
  15775. echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  15776. echo "${ECHO_T}$hardcode_action_GCJ" >&6
  15777. if test "$hardcode_action_GCJ" = relink; then
  15778. # Fast installation is not supported
  15779. enable_fast_install=no
  15780. elif test "$shlibpath_overrides_runpath" = yes ||
  15781. test "$enable_shared" = no; then
  15782. # Fast installation is not necessary
  15783. enable_fast_install=needless
  15784. fi
  15785. striplib=
  15786. old_striplib=
  15787. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  15788. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  15789. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  15790. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  15791. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  15792. echo "$as_me:$LINENO: result: yes" >&5
  15793. echo "${ECHO_T}yes" >&6
  15794. else
  15795. # FIXME - insert some real tests, host_os isn't really good enough
  15796. case $host_os in
  15797. darwin*)
  15798. if test -n "$STRIP" ; then
  15799. striplib="$STRIP -x"
  15800. echo "$as_me:$LINENO: result: yes" >&5
  15801. echo "${ECHO_T}yes" >&6
  15802. else
  15803. echo "$as_me:$LINENO: result: no" >&5
  15804. echo "${ECHO_T}no" >&6
  15805. fi
  15806. ;;
  15807. *)
  15808. echo "$as_me:$LINENO: result: no" >&5
  15809. echo "${ECHO_T}no" >&6
  15810. ;;
  15811. esac
  15812. fi
  15813. if test "x$enable_dlopen" != xyes; then
  15814. enable_dlopen=unknown
  15815. enable_dlopen_self=unknown
  15816. enable_dlopen_self_static=unknown
  15817. else
  15818. lt_cv_dlopen=no
  15819. lt_cv_dlopen_libs=
  15820. case $host_os in
  15821. beos*)
  15822. lt_cv_dlopen="load_add_on"
  15823. lt_cv_dlopen_libs=
  15824. lt_cv_dlopen_self=yes
  15825. ;;
  15826. mingw* | pw32*)
  15827. lt_cv_dlopen="LoadLibrary"
  15828. lt_cv_dlopen_libs=
  15829. ;;
  15830. cygwin*)
  15831. lt_cv_dlopen="dlopen"
  15832. lt_cv_dlopen_libs=
  15833. ;;
  15834. darwin*)
  15835. # if libdl is installed we need to link against it
  15836. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  15837. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  15838. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  15839. echo $ECHO_N "(cached) $ECHO_C" >&6
  15840. else
  15841. ac_check_lib_save_LIBS=$LIBS
  15842. LIBS="-ldl $LIBS"
  15843. cat >conftest.$ac_ext <<_ACEOF
  15844. /* confdefs.h. */
  15845. _ACEOF
  15846. cat confdefs.h >>conftest.$ac_ext
  15847. cat >>conftest.$ac_ext <<_ACEOF
  15848. /* end confdefs.h. */
  15849. /* Override any gcc2 internal prototype to avoid an error. */
  15850. #ifdef __cplusplus
  15851. extern "C"
  15852. #endif
  15853. /* We use char because int might match the return type of a gcc2
  15854. builtin and then its argument prototype would still apply. */
  15855. char dlopen ();
  15856. int
  15857. main ()
  15858. {
  15859. dlopen ();
  15860. ;
  15861. return 0;
  15862. }
  15863. _ACEOF
  15864. rm -f conftest.$ac_objext conftest$ac_exeext
  15865. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15866. (eval $ac_link) 2>conftest.er1
  15867. ac_status=$?
  15868. grep -v '^ *+' conftest.er1 >conftest.err
  15869. rm -f conftest.er1
  15870. cat conftest.err >&5
  15871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15872. (exit $ac_status); } &&
  15873. { ac_try='test -z "$ac_c_werror_flag"
  15874. || test ! -s conftest.err'
  15875. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15876. (eval $ac_try) 2>&5
  15877. ac_status=$?
  15878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15879. (exit $ac_status); }; } &&
  15880. { ac_try='test -s conftest$ac_exeext'
  15881. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15882. (eval $ac_try) 2>&5
  15883. ac_status=$?
  15884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15885. (exit $ac_status); }; }; then
  15886. ac_cv_lib_dl_dlopen=yes
  15887. else
  15888. echo "$as_me: failed program was:" >&5
  15889. sed 's/^/| /' conftest.$ac_ext >&5
  15890. ac_cv_lib_dl_dlopen=no
  15891. fi
  15892. rm -f conftest.err conftest.$ac_objext \
  15893. conftest$ac_exeext conftest.$ac_ext
  15894. LIBS=$ac_check_lib_save_LIBS
  15895. fi
  15896. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  15897. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  15898. if test $ac_cv_lib_dl_dlopen = yes; then
  15899. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  15900. else
  15901. lt_cv_dlopen="dyld"
  15902. lt_cv_dlopen_libs=
  15903. lt_cv_dlopen_self=yes
  15904. fi
  15905. ;;
  15906. *)
  15907. echo "$as_me:$LINENO: checking for shl_load" >&5
  15908. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  15909. if test "${ac_cv_func_shl_load+set}" = set; then
  15910. echo $ECHO_N "(cached) $ECHO_C" >&6
  15911. else
  15912. cat >conftest.$ac_ext <<_ACEOF
  15913. /* confdefs.h. */
  15914. _ACEOF
  15915. cat confdefs.h >>conftest.$ac_ext
  15916. cat >>conftest.$ac_ext <<_ACEOF
  15917. /* end confdefs.h. */
  15918. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  15919. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15920. #define shl_load innocuous_shl_load
  15921. /* System header to define __stub macros and hopefully few prototypes,
  15922. which can conflict with char shl_load (); below.
  15923. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15924. <limits.h> exists even on freestanding compilers. */
  15925. #ifdef __STDC__
  15926. # include <limits.h>
  15927. #else
  15928. # include <assert.h>
  15929. #endif
  15930. #undef shl_load
  15931. /* Override any gcc2 internal prototype to avoid an error. */
  15932. #ifdef __cplusplus
  15933. extern "C"
  15934. {
  15935. #endif
  15936. /* We use char because int might match the return type of a gcc2
  15937. builtin and then its argument prototype would still apply. */
  15938. char shl_load ();
  15939. /* The GNU C library defines this for functions which it implements
  15940. to always fail with ENOSYS. Some functions are actually named
  15941. something starting with __ and the normal name is an alias. */
  15942. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  15943. choke me
  15944. #else
  15945. char (*f) () = shl_load;
  15946. #endif
  15947. #ifdef __cplusplus
  15948. }
  15949. #endif
  15950. int
  15951. main ()
  15952. {
  15953. return f != shl_load;
  15954. ;
  15955. return 0;
  15956. }
  15957. _ACEOF
  15958. rm -f conftest.$ac_objext conftest$ac_exeext
  15959. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15960. (eval $ac_link) 2>conftest.er1
  15961. ac_status=$?
  15962. grep -v '^ *+' conftest.er1 >conftest.err
  15963. rm -f conftest.er1
  15964. cat conftest.err >&5
  15965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15966. (exit $ac_status); } &&
  15967. { ac_try='test -z "$ac_c_werror_flag"
  15968. || test ! -s conftest.err'
  15969. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15970. (eval $ac_try) 2>&5
  15971. ac_status=$?
  15972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15973. (exit $ac_status); }; } &&
  15974. { ac_try='test -s conftest$ac_exeext'
  15975. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15976. (eval $ac_try) 2>&5
  15977. ac_status=$?
  15978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15979. (exit $ac_status); }; }; then
  15980. ac_cv_func_shl_load=yes
  15981. else
  15982. echo "$as_me: failed program was:" >&5
  15983. sed 's/^/| /' conftest.$ac_ext >&5
  15984. ac_cv_func_shl_load=no
  15985. fi
  15986. rm -f conftest.err conftest.$ac_objext \
  15987. conftest$ac_exeext conftest.$ac_ext
  15988. fi
  15989. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  15990. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  15991. if test $ac_cv_func_shl_load = yes; then
  15992. lt_cv_dlopen="shl_load"
  15993. else
  15994. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  15995. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  15996. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  15997. echo $ECHO_N "(cached) $ECHO_C" >&6
  15998. else
  15999. ac_check_lib_save_LIBS=$LIBS
  16000. LIBS="-ldld $LIBS"
  16001. cat >conftest.$ac_ext <<_ACEOF
  16002. /* confdefs.h. */
  16003. _ACEOF
  16004. cat confdefs.h >>conftest.$ac_ext
  16005. cat >>conftest.$ac_ext <<_ACEOF
  16006. /* end confdefs.h. */
  16007. /* Override any gcc2 internal prototype to avoid an error. */
  16008. #ifdef __cplusplus
  16009. extern "C"
  16010. #endif
  16011. /* We use char because int might match the return type of a gcc2
  16012. builtin and then its argument prototype would still apply. */
  16013. char shl_load ();
  16014. int
  16015. main ()
  16016. {
  16017. shl_load ();
  16018. ;
  16019. return 0;
  16020. }
  16021. _ACEOF
  16022. rm -f conftest.$ac_objext conftest$ac_exeext
  16023. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16024. (eval $ac_link) 2>conftest.er1
  16025. ac_status=$?
  16026. grep -v '^ *+' conftest.er1 >conftest.err
  16027. rm -f conftest.er1
  16028. cat conftest.err >&5
  16029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16030. (exit $ac_status); } &&
  16031. { ac_try='test -z "$ac_c_werror_flag"
  16032. || test ! -s conftest.err'
  16033. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16034. (eval $ac_try) 2>&5
  16035. ac_status=$?
  16036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16037. (exit $ac_status); }; } &&
  16038. { ac_try='test -s conftest$ac_exeext'
  16039. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16040. (eval $ac_try) 2>&5
  16041. ac_status=$?
  16042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16043. (exit $ac_status); }; }; then
  16044. ac_cv_lib_dld_shl_load=yes
  16045. else
  16046. echo "$as_me: failed program was:" >&5
  16047. sed 's/^/| /' conftest.$ac_ext >&5
  16048. ac_cv_lib_dld_shl_load=no
  16049. fi
  16050. rm -f conftest.err conftest.$ac_objext \
  16051. conftest$ac_exeext conftest.$ac_ext
  16052. LIBS=$ac_check_lib_save_LIBS
  16053. fi
  16054. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  16055. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  16056. if test $ac_cv_lib_dld_shl_load = yes; then
  16057. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  16058. else
  16059. echo "$as_me:$LINENO: checking for dlopen" >&5
  16060. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  16061. if test "${ac_cv_func_dlopen+set}" = set; then
  16062. echo $ECHO_N "(cached) $ECHO_C" >&6
  16063. else
  16064. cat >conftest.$ac_ext <<_ACEOF
  16065. /* confdefs.h. */
  16066. _ACEOF
  16067. cat confdefs.h >>conftest.$ac_ext
  16068. cat >>conftest.$ac_ext <<_ACEOF
  16069. /* end confdefs.h. */
  16070. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  16071. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16072. #define dlopen innocuous_dlopen
  16073. /* System header to define __stub macros and hopefully few prototypes,
  16074. which can conflict with char dlopen (); below.
  16075. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16076. <limits.h> exists even on freestanding compilers. */
  16077. #ifdef __STDC__
  16078. # include <limits.h>
  16079. #else
  16080. # include <assert.h>
  16081. #endif
  16082. #undef dlopen
  16083. /* Override any gcc2 internal prototype to avoid an error. */
  16084. #ifdef __cplusplus
  16085. extern "C"
  16086. {
  16087. #endif
  16088. /* We use char because int might match the return type of a gcc2
  16089. builtin and then its argument prototype would still apply. */
  16090. char dlopen ();
  16091. /* The GNU C library defines this for functions which it implements
  16092. to always fail with ENOSYS. Some functions are actually named
  16093. something starting with __ and the normal name is an alias. */
  16094. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  16095. choke me
  16096. #else
  16097. char (*f) () = dlopen;
  16098. #endif
  16099. #ifdef __cplusplus
  16100. }
  16101. #endif
  16102. int
  16103. main ()
  16104. {
  16105. return f != dlopen;
  16106. ;
  16107. return 0;
  16108. }
  16109. _ACEOF
  16110. rm -f conftest.$ac_objext conftest$ac_exeext
  16111. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16112. (eval $ac_link) 2>conftest.er1
  16113. ac_status=$?
  16114. grep -v '^ *+' conftest.er1 >conftest.err
  16115. rm -f conftest.er1
  16116. cat conftest.err >&5
  16117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16118. (exit $ac_status); } &&
  16119. { ac_try='test -z "$ac_c_werror_flag"
  16120. || test ! -s conftest.err'
  16121. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16122. (eval $ac_try) 2>&5
  16123. ac_status=$?
  16124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16125. (exit $ac_status); }; } &&
  16126. { ac_try='test -s conftest$ac_exeext'
  16127. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16128. (eval $ac_try) 2>&5
  16129. ac_status=$?
  16130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16131. (exit $ac_status); }; }; then
  16132. ac_cv_func_dlopen=yes
  16133. else
  16134. echo "$as_me: failed program was:" >&5
  16135. sed 's/^/| /' conftest.$ac_ext >&5
  16136. ac_cv_func_dlopen=no
  16137. fi
  16138. rm -f conftest.err conftest.$ac_objext \
  16139. conftest$ac_exeext conftest.$ac_ext
  16140. fi
  16141. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  16142. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  16143. if test $ac_cv_func_dlopen = yes; then
  16144. lt_cv_dlopen="dlopen"
  16145. else
  16146. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  16147. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  16148. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  16149. echo $ECHO_N "(cached) $ECHO_C" >&6
  16150. else
  16151. ac_check_lib_save_LIBS=$LIBS
  16152. LIBS="-ldl $LIBS"
  16153. cat >conftest.$ac_ext <<_ACEOF
  16154. /* confdefs.h. */
  16155. _ACEOF
  16156. cat confdefs.h >>conftest.$ac_ext
  16157. cat >>conftest.$ac_ext <<_ACEOF
  16158. /* end confdefs.h. */
  16159. /* Override any gcc2 internal prototype to avoid an error. */
  16160. #ifdef __cplusplus
  16161. extern "C"
  16162. #endif
  16163. /* We use char because int might match the return type of a gcc2
  16164. builtin and then its argument prototype would still apply. */
  16165. char dlopen ();
  16166. int
  16167. main ()
  16168. {
  16169. dlopen ();
  16170. ;
  16171. return 0;
  16172. }
  16173. _ACEOF
  16174. rm -f conftest.$ac_objext conftest$ac_exeext
  16175. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16176. (eval $ac_link) 2>conftest.er1
  16177. ac_status=$?
  16178. grep -v '^ *+' conftest.er1 >conftest.err
  16179. rm -f conftest.er1
  16180. cat conftest.err >&5
  16181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16182. (exit $ac_status); } &&
  16183. { ac_try='test -z "$ac_c_werror_flag"
  16184. || test ! -s conftest.err'
  16185. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16186. (eval $ac_try) 2>&5
  16187. ac_status=$?
  16188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16189. (exit $ac_status); }; } &&
  16190. { ac_try='test -s conftest$ac_exeext'
  16191. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16192. (eval $ac_try) 2>&5
  16193. ac_status=$?
  16194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16195. (exit $ac_status); }; }; then
  16196. ac_cv_lib_dl_dlopen=yes
  16197. else
  16198. echo "$as_me: failed program was:" >&5
  16199. sed 's/^/| /' conftest.$ac_ext >&5
  16200. ac_cv_lib_dl_dlopen=no
  16201. fi
  16202. rm -f conftest.err conftest.$ac_objext \
  16203. conftest$ac_exeext conftest.$ac_ext
  16204. LIBS=$ac_check_lib_save_LIBS
  16205. fi
  16206. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  16207. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  16208. if test $ac_cv_lib_dl_dlopen = yes; then
  16209. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  16210. else
  16211. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  16212. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  16213. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  16214. echo $ECHO_N "(cached) $ECHO_C" >&6
  16215. else
  16216. ac_check_lib_save_LIBS=$LIBS
  16217. LIBS="-lsvld $LIBS"
  16218. cat >conftest.$ac_ext <<_ACEOF
  16219. /* confdefs.h. */
  16220. _ACEOF
  16221. cat confdefs.h >>conftest.$ac_ext
  16222. cat >>conftest.$ac_ext <<_ACEOF
  16223. /* end confdefs.h. */
  16224. /* Override any gcc2 internal prototype to avoid an error. */
  16225. #ifdef __cplusplus
  16226. extern "C"
  16227. #endif
  16228. /* We use char because int might match the return type of a gcc2
  16229. builtin and then its argument prototype would still apply. */
  16230. char dlopen ();
  16231. int
  16232. main ()
  16233. {
  16234. dlopen ();
  16235. ;
  16236. return 0;
  16237. }
  16238. _ACEOF
  16239. rm -f conftest.$ac_objext conftest$ac_exeext
  16240. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16241. (eval $ac_link) 2>conftest.er1
  16242. ac_status=$?
  16243. grep -v '^ *+' conftest.er1 >conftest.err
  16244. rm -f conftest.er1
  16245. cat conftest.err >&5
  16246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16247. (exit $ac_status); } &&
  16248. { ac_try='test -z "$ac_c_werror_flag"
  16249. || test ! -s conftest.err'
  16250. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16251. (eval $ac_try) 2>&5
  16252. ac_status=$?
  16253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16254. (exit $ac_status); }; } &&
  16255. { ac_try='test -s conftest$ac_exeext'
  16256. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16257. (eval $ac_try) 2>&5
  16258. ac_status=$?
  16259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16260. (exit $ac_status); }; }; then
  16261. ac_cv_lib_svld_dlopen=yes
  16262. else
  16263. echo "$as_me: failed program was:" >&5
  16264. sed 's/^/| /' conftest.$ac_ext >&5
  16265. ac_cv_lib_svld_dlopen=no
  16266. fi
  16267. rm -f conftest.err conftest.$ac_objext \
  16268. conftest$ac_exeext conftest.$ac_ext
  16269. LIBS=$ac_check_lib_save_LIBS
  16270. fi
  16271. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  16272. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  16273. if test $ac_cv_lib_svld_dlopen = yes; then
  16274. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  16275. else
  16276. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  16277. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  16278. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  16279. echo $ECHO_N "(cached) $ECHO_C" >&6
  16280. else
  16281. ac_check_lib_save_LIBS=$LIBS
  16282. LIBS="-ldld $LIBS"
  16283. cat >conftest.$ac_ext <<_ACEOF
  16284. /* confdefs.h. */
  16285. _ACEOF
  16286. cat confdefs.h >>conftest.$ac_ext
  16287. cat >>conftest.$ac_ext <<_ACEOF
  16288. /* end confdefs.h. */
  16289. /* Override any gcc2 internal prototype to avoid an error. */
  16290. #ifdef __cplusplus
  16291. extern "C"
  16292. #endif
  16293. /* We use char because int might match the return type of a gcc2
  16294. builtin and then its argument prototype would still apply. */
  16295. char dld_link ();
  16296. int
  16297. main ()
  16298. {
  16299. dld_link ();
  16300. ;
  16301. return 0;
  16302. }
  16303. _ACEOF
  16304. rm -f conftest.$ac_objext conftest$ac_exeext
  16305. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16306. (eval $ac_link) 2>conftest.er1
  16307. ac_status=$?
  16308. grep -v '^ *+' conftest.er1 >conftest.err
  16309. rm -f conftest.er1
  16310. cat conftest.err >&5
  16311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16312. (exit $ac_status); } &&
  16313. { ac_try='test -z "$ac_c_werror_flag"
  16314. || test ! -s conftest.err'
  16315. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16316. (eval $ac_try) 2>&5
  16317. ac_status=$?
  16318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16319. (exit $ac_status); }; } &&
  16320. { ac_try='test -s conftest$ac_exeext'
  16321. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16322. (eval $ac_try) 2>&5
  16323. ac_status=$?
  16324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16325. (exit $ac_status); }; }; then
  16326. ac_cv_lib_dld_dld_link=yes
  16327. else
  16328. echo "$as_me: failed program was:" >&5
  16329. sed 's/^/| /' conftest.$ac_ext >&5
  16330. ac_cv_lib_dld_dld_link=no
  16331. fi
  16332. rm -f conftest.err conftest.$ac_objext \
  16333. conftest$ac_exeext conftest.$ac_ext
  16334. LIBS=$ac_check_lib_save_LIBS
  16335. fi
  16336. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  16337. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  16338. if test $ac_cv_lib_dld_dld_link = yes; then
  16339. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  16340. fi
  16341. fi
  16342. fi
  16343. fi
  16344. fi
  16345. fi
  16346. ;;
  16347. esac
  16348. if test "x$lt_cv_dlopen" != xno; then
  16349. enable_dlopen=yes
  16350. else
  16351. enable_dlopen=no
  16352. fi
  16353. case $lt_cv_dlopen in
  16354. dlopen)
  16355. save_CPPFLAGS="$CPPFLAGS"
  16356. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  16357. save_LDFLAGS="$LDFLAGS"
  16358. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  16359. save_LIBS="$LIBS"
  16360. LIBS="$lt_cv_dlopen_libs $LIBS"
  16361. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  16362. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  16363. if test "${lt_cv_dlopen_self+set}" = set; then
  16364. echo $ECHO_N "(cached) $ECHO_C" >&6
  16365. else
  16366. if test "$cross_compiling" = yes; then :
  16367. lt_cv_dlopen_self=cross
  16368. else
  16369. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  16370. lt_status=$lt_dlunknown
  16371. cat > conftest.$ac_ext <<EOF
  16372. #line 18181 "configure"
  16373. #include "confdefs.h"
  16374. #if HAVE_DLFCN_H
  16375. #include <dlfcn.h>
  16376. #endif
  16377. #include <stdio.h>
  16378. #ifdef RTLD_GLOBAL
  16379. # define LT_DLGLOBAL RTLD_GLOBAL
  16380. #else
  16381. # ifdef DL_GLOBAL
  16382. # define LT_DLGLOBAL DL_GLOBAL
  16383. # else
  16384. # define LT_DLGLOBAL 0
  16385. # endif
  16386. #endif
  16387. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  16388. find out it does not work in some platform. */
  16389. #ifndef LT_DLLAZY_OR_NOW
  16390. # ifdef RTLD_LAZY
  16391. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  16392. # else
  16393. # ifdef DL_LAZY
  16394. # define LT_DLLAZY_OR_NOW DL_LAZY
  16395. # else
  16396. # ifdef RTLD_NOW
  16397. # define LT_DLLAZY_OR_NOW RTLD_NOW
  16398. # else
  16399. # ifdef DL_NOW
  16400. # define LT_DLLAZY_OR_NOW DL_NOW
  16401. # else
  16402. # define LT_DLLAZY_OR_NOW 0
  16403. # endif
  16404. # endif
  16405. # endif
  16406. # endif
  16407. #endif
  16408. #ifdef __cplusplus
  16409. extern "C" void exit (int);
  16410. #endif
  16411. void fnord() { int i=42;}
  16412. int main ()
  16413. {
  16414. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  16415. int status = $lt_dlunknown;
  16416. if (self)
  16417. {
  16418. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  16419. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  16420. /* dlclose (self); */
  16421. }
  16422. exit (status);
  16423. }
  16424. EOF
  16425. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16426. (eval $ac_link) 2>&5
  16427. ac_status=$?
  16428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16429. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  16430. (./conftest; exit; ) 2>/dev/null
  16431. lt_status=$?
  16432. case x$lt_status in
  16433. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  16434. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  16435. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  16436. esac
  16437. else :
  16438. # compilation failed
  16439. lt_cv_dlopen_self=no
  16440. fi
  16441. fi
  16442. rm -fr conftest*
  16443. fi
  16444. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  16445. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  16446. if test "x$lt_cv_dlopen_self" = xyes; then
  16447. LDFLAGS="$LDFLAGS $link_static_flag"
  16448. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  16449. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  16450. if test "${lt_cv_dlopen_self_static+set}" = set; then
  16451. echo $ECHO_N "(cached) $ECHO_C" >&6
  16452. else
  16453. if test "$cross_compiling" = yes; then :
  16454. lt_cv_dlopen_self_static=cross
  16455. else
  16456. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  16457. lt_status=$lt_dlunknown
  16458. cat > conftest.$ac_ext <<EOF
  16459. #line 18279 "configure"
  16460. #include "confdefs.h"
  16461. #if HAVE_DLFCN_H
  16462. #include <dlfcn.h>
  16463. #endif
  16464. #include <stdio.h>
  16465. #ifdef RTLD_GLOBAL
  16466. # define LT_DLGLOBAL RTLD_GLOBAL
  16467. #else
  16468. # ifdef DL_GLOBAL
  16469. # define LT_DLGLOBAL DL_GLOBAL
  16470. # else
  16471. # define LT_DLGLOBAL 0
  16472. # endif
  16473. #endif
  16474. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  16475. find out it does not work in some platform. */
  16476. #ifndef LT_DLLAZY_OR_NOW
  16477. # ifdef RTLD_LAZY
  16478. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  16479. # else
  16480. # ifdef DL_LAZY
  16481. # define LT_DLLAZY_OR_NOW DL_LAZY
  16482. # else
  16483. # ifdef RTLD_NOW
  16484. # define LT_DLLAZY_OR_NOW RTLD_NOW
  16485. # else
  16486. # ifdef DL_NOW
  16487. # define LT_DLLAZY_OR_NOW DL_NOW
  16488. # else
  16489. # define LT_DLLAZY_OR_NOW 0
  16490. # endif
  16491. # endif
  16492. # endif
  16493. # endif
  16494. #endif
  16495. #ifdef __cplusplus
  16496. extern "C" void exit (int);
  16497. #endif
  16498. void fnord() { int i=42;}
  16499. int main ()
  16500. {
  16501. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  16502. int status = $lt_dlunknown;
  16503. if (self)
  16504. {
  16505. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  16506. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  16507. /* dlclose (self); */
  16508. }
  16509. exit (status);
  16510. }
  16511. EOF
  16512. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16513. (eval $ac_link) 2>&5
  16514. ac_status=$?
  16515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16516. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  16517. (./conftest; exit; ) 2>/dev/null
  16518. lt_status=$?
  16519. case x$lt_status in
  16520. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  16521. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  16522. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  16523. esac
  16524. else :
  16525. # compilation failed
  16526. lt_cv_dlopen_self_static=no
  16527. fi
  16528. fi
  16529. rm -fr conftest*
  16530. fi
  16531. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  16532. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  16533. fi
  16534. CPPFLAGS="$save_CPPFLAGS"
  16535. LDFLAGS="$save_LDFLAGS"
  16536. LIBS="$save_LIBS"
  16537. ;;
  16538. esac
  16539. case $lt_cv_dlopen_self in
  16540. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  16541. *) enable_dlopen_self=unknown ;;
  16542. esac
  16543. case $lt_cv_dlopen_self_static in
  16544. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  16545. *) enable_dlopen_self_static=unknown ;;
  16546. esac
  16547. fi
  16548. # The else clause should only fire when bootstrapping the
  16549. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16550. # with your package, and you will get complaints that there are
  16551. # no rules to generate ltmain.sh.
  16552. if test -f "$ltmain"; then
  16553. # See if we are running on zsh, and set the options which allow our commands through
  16554. # without removal of \ escapes.
  16555. if test -n "${ZSH_VERSION+set}" ; then
  16556. setopt NO_GLOB_SUBST
  16557. fi
  16558. # Now quote all the things that may contain metacharacters while being
  16559. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16560. # variables and quote the copies for generation of the libtool script.
  16561. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  16562. SED SHELL STRIP \
  16563. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16564. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16565. deplibs_check_method reload_flag reload_cmds need_locks \
  16566. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16567. lt_cv_sys_global_symbol_to_c_name_address \
  16568. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16569. old_postinstall_cmds old_postuninstall_cmds \
  16570. compiler_GCJ \
  16571. CC_GCJ \
  16572. LD_GCJ \
  16573. lt_prog_compiler_wl_GCJ \
  16574. lt_prog_compiler_pic_GCJ \
  16575. lt_prog_compiler_static_GCJ \
  16576. lt_prog_compiler_no_builtin_flag_GCJ \
  16577. export_dynamic_flag_spec_GCJ \
  16578. thread_safe_flag_spec_GCJ \
  16579. whole_archive_flag_spec_GCJ \
  16580. enable_shared_with_static_runtimes_GCJ \
  16581. old_archive_cmds_GCJ \
  16582. old_archive_from_new_cmds_GCJ \
  16583. predep_objects_GCJ \
  16584. postdep_objects_GCJ \
  16585. predeps_GCJ \
  16586. postdeps_GCJ \
  16587. compiler_lib_search_path_GCJ \
  16588. archive_cmds_GCJ \
  16589. archive_expsym_cmds_GCJ \
  16590. postinstall_cmds_GCJ \
  16591. postuninstall_cmds_GCJ \
  16592. old_archive_from_expsyms_cmds_GCJ \
  16593. allow_undefined_flag_GCJ \
  16594. no_undefined_flag_GCJ \
  16595. export_symbols_cmds_GCJ \
  16596. hardcode_libdir_flag_spec_GCJ \
  16597. hardcode_libdir_flag_spec_ld_GCJ \
  16598. hardcode_libdir_separator_GCJ \
  16599. hardcode_automatic_GCJ \
  16600. module_cmds_GCJ \
  16601. module_expsym_cmds_GCJ \
  16602. lt_cv_prog_compiler_c_o_GCJ \
  16603. exclude_expsyms_GCJ \
  16604. include_expsyms_GCJ; do
  16605. case $var in
  16606. old_archive_cmds_GCJ | \
  16607. old_archive_from_new_cmds_GCJ | \
  16608. archive_cmds_GCJ | \
  16609. archive_expsym_cmds_GCJ | \
  16610. module_cmds_GCJ | \
  16611. module_expsym_cmds_GCJ | \
  16612. old_archive_from_expsyms_cmds_GCJ | \
  16613. export_symbols_cmds_GCJ | \
  16614. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16615. postinstall_cmds | postuninstall_cmds | \
  16616. old_postinstall_cmds | old_postuninstall_cmds | \
  16617. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16618. # Double-quote double-evaled strings.
  16619. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16620. ;;
  16621. *)
  16622. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16623. ;;
  16624. esac
  16625. done
  16626. case $lt_echo in
  16627. *'\$0 --fallback-echo"')
  16628. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16629. ;;
  16630. esac
  16631. cfgfile="$ofile"
  16632. cat <<__EOF__ >> "$cfgfile"
  16633. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16634. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16635. # Shell to use when invoking shell scripts.
  16636. SHELL=$lt_SHELL
  16637. # Whether or not to build shared libraries.
  16638. build_libtool_libs=$enable_shared
  16639. # Whether or not to build static libraries.
  16640. build_old_libs=$enable_static
  16641. # Whether or not to add -lc for building shared libraries.
  16642. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  16643. # Whether or not to disallow shared libs when runtime libs are static
  16644. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  16645. # Whether or not to optimize for fast installation.
  16646. fast_install=$enable_fast_install
  16647. # The host system.
  16648. host_alias=$host_alias
  16649. host=$host
  16650. # An echo program that does not interpret backslashes.
  16651. echo=$lt_echo
  16652. # The archiver.
  16653. AR=$lt_AR
  16654. AR_FLAGS=$lt_AR_FLAGS
  16655. # A C compiler.
  16656. LTCC=$lt_LTCC
  16657. # A language-specific compiler.
  16658. CC=$lt_compiler_GCJ
  16659. # Is the compiler the GNU C compiler?
  16660. with_gcc=$GCC_GCJ
  16661. # An ERE matcher.
  16662. EGREP=$lt_EGREP
  16663. # The linker used to build libraries.
  16664. LD=$lt_LD_GCJ
  16665. # Whether we need hard or soft links.
  16666. LN_S=$lt_LN_S
  16667. # A BSD-compatible nm program.
  16668. NM=$lt_NM
  16669. # A symbol stripping program
  16670. STRIP=$lt_STRIP
  16671. # Used to examine libraries when file_magic_cmd begins "file"
  16672. MAGIC_CMD=$MAGIC_CMD
  16673. # Used on cygwin: DLL creation program.
  16674. DLLTOOL="$DLLTOOL"
  16675. # Used on cygwin: object dumper.
  16676. OBJDUMP="$OBJDUMP"
  16677. # Used on cygwin: assembler.
  16678. AS="$AS"
  16679. # The name of the directory that contains temporary libtool files.
  16680. objdir=$objdir
  16681. # How to create reloadable object files.
  16682. reload_flag=$lt_reload_flag
  16683. reload_cmds=$lt_reload_cmds
  16684. # How to pass a linker flag through the compiler.
  16685. wl=$lt_lt_prog_compiler_wl_GCJ
  16686. # Object file suffix (normally "o").
  16687. objext="$ac_objext"
  16688. # Old archive suffix (normally "a").
  16689. libext="$libext"
  16690. # Shared library suffix (normally ".so").
  16691. shrext_cmds='$shrext_cmds'
  16692. # Executable file suffix (normally "").
  16693. exeext="$exeext"
  16694. # Additional compiler flags for building library objects.
  16695. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  16696. pic_mode=$pic_mode
  16697. # What is the maximum length of a command?
  16698. max_cmd_len=$lt_cv_sys_max_cmd_len
  16699. # Does compiler simultaneously support -c and -o options?
  16700. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  16701. # Must we lock files when doing compilation ?
  16702. need_locks=$lt_need_locks
  16703. # Do we need the lib prefix for modules?
  16704. need_lib_prefix=$need_lib_prefix
  16705. # Do we need a version for libraries?
  16706. need_version=$need_version
  16707. # Whether dlopen is supported.
  16708. dlopen_support=$enable_dlopen
  16709. # Whether dlopen of programs is supported.
  16710. dlopen_self=$enable_dlopen_self
  16711. # Whether dlopen of statically linked programs is supported.
  16712. dlopen_self_static=$enable_dlopen_self_static
  16713. # Compiler flag to prevent dynamic linking.
  16714. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  16715. # Compiler flag to turn off builtin functions.
  16716. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  16717. # Compiler flag to allow reflexive dlopens.
  16718. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  16719. # Compiler flag to generate shared objects directly from archives.
  16720. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  16721. # Compiler flag to generate thread-safe objects.
  16722. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  16723. # Library versioning type.
  16724. version_type=$version_type
  16725. # Format of library name prefix.
  16726. libname_spec=$lt_libname_spec
  16727. # List of archive names. First name is the real one, the rest are links.
  16728. # The last name is the one that the linker finds with -lNAME.
  16729. library_names_spec=$lt_library_names_spec
  16730. # The coded name of the library, if different from the real name.
  16731. soname_spec=$lt_soname_spec
  16732. # Commands used to build and install an old-style archive.
  16733. RANLIB=$lt_RANLIB
  16734. old_archive_cmds=$lt_old_archive_cmds_GCJ
  16735. old_postinstall_cmds=$lt_old_postinstall_cmds
  16736. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16737. # Create an old-style archive from a shared archive.
  16738. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  16739. # Create a temporary old-style archive to link instead of a shared archive.
  16740. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  16741. # Commands used to build and install a shared archive.
  16742. archive_cmds=$lt_archive_cmds_GCJ
  16743. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  16744. postinstall_cmds=$lt_postinstall_cmds
  16745. postuninstall_cmds=$lt_postuninstall_cmds
  16746. # Commands used to build a loadable module (assumed same as above if empty)
  16747. module_cmds=$lt_module_cmds_GCJ
  16748. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  16749. # Commands to strip libraries.
  16750. old_striplib=$lt_old_striplib
  16751. striplib=$lt_striplib
  16752. # Dependencies to place before the objects being linked to create a
  16753. # shared library.
  16754. predep_objects=$lt_predep_objects_GCJ
  16755. # Dependencies to place after the objects being linked to create a
  16756. # shared library.
  16757. postdep_objects=$lt_postdep_objects_GCJ
  16758. # Dependencies to place before the objects being linked to create a
  16759. # shared library.
  16760. predeps=$lt_predeps_GCJ
  16761. # Dependencies to place after the objects being linked to create a
  16762. # shared library.
  16763. postdeps=$lt_postdeps_GCJ
  16764. # The library search path used internally by the compiler when linking
  16765. # a shared library.
  16766. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  16767. # Method to check whether dependent libraries are shared objects.
  16768. deplibs_check_method=$lt_deplibs_check_method
  16769. # Command to use when deplibs_check_method == file_magic.
  16770. file_magic_cmd=$lt_file_magic_cmd
  16771. # Flag that allows shared libraries with undefined symbols to be built.
  16772. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  16773. # Flag that forces no undefined symbols.
  16774. no_undefined_flag=$lt_no_undefined_flag_GCJ
  16775. # Commands used to finish a libtool library installation in a directory.
  16776. finish_cmds=$lt_finish_cmds
  16777. # Same as above, but a single script fragment to be evaled but not shown.
  16778. finish_eval=$lt_finish_eval
  16779. # Take the output of nm and produce a listing of raw symbols and C names.
  16780. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16781. # Transform the output of nm in a proper C declaration
  16782. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16783. # Transform the output of nm in a C name address pair
  16784. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16785. # This is the shared library runtime path variable.
  16786. runpath_var=$runpath_var
  16787. # This is the shared library path variable.
  16788. shlibpath_var=$shlibpath_var
  16789. # Is shlibpath searched before the hard-coded library search path?
  16790. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16791. # How to hardcode a shared library path into an executable.
  16792. hardcode_action=$hardcode_action_GCJ
  16793. # Whether we should hardcode library paths into libraries.
  16794. hardcode_into_libs=$hardcode_into_libs
  16795. # Flag to hardcode \$libdir into a binary during linking.
  16796. # This must work even if \$libdir does not exist.
  16797. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  16798. # If ld is used when linking, flag to hardcode \$libdir into
  16799. # a binary during linking. This must work even if \$libdir does
  16800. # not exist.
  16801. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  16802. # Whether we need a single -rpath flag with a separated argument.
  16803. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  16804. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16805. # resulting binary.
  16806. hardcode_direct=$hardcode_direct_GCJ
  16807. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16808. # resulting binary.
  16809. hardcode_minus_L=$hardcode_minus_L_GCJ
  16810. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16811. # the resulting binary.
  16812. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  16813. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16814. # and all subsequent libraries and executables linked against it.
  16815. hardcode_automatic=$hardcode_automatic_GCJ
  16816. # Variables whose values should be saved in libtool wrapper scripts and
  16817. # restored at relink time.
  16818. variables_saved_for_relink="$variables_saved_for_relink"
  16819. # Whether libtool must link a program against all its dependency libraries.
  16820. link_all_deplibs=$link_all_deplibs_GCJ
  16821. # Compile-time system search path for libraries
  16822. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16823. # Run-time system search path for libraries
  16824. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16825. # Fix the shell variable \$srcfile for the compiler.
  16826. fix_srcfile_path="$fix_srcfile_path_GCJ"
  16827. # Set to yes if exported symbols are required.
  16828. always_export_symbols=$always_export_symbols_GCJ
  16829. # The commands to list exported symbols.
  16830. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  16831. # The commands to extract the exported symbol list from a shared archive.
  16832. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16833. # Symbols that should not be listed in the preloaded symbols.
  16834. exclude_expsyms=$lt_exclude_expsyms_GCJ
  16835. # Symbols that must always be exported.
  16836. include_expsyms=$lt_include_expsyms_GCJ
  16837. # ### END LIBTOOL TAG CONFIG: $tagname
  16838. __EOF__
  16839. else
  16840. # If there is no Makefile yet, we rely on a make rule to execute
  16841. # `config.status --recheck' to rerun these tests and create the
  16842. # libtool script then.
  16843. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16844. if test -f "$ltmain_in"; then
  16845. test -f Makefile && make "$ltmain"
  16846. fi
  16847. fi
  16848. ac_ext=c
  16849. ac_cpp='$CPP $CPPFLAGS'
  16850. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16851. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16852. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16853. CC="$lt_save_CC"
  16854. else
  16855. tagname=""
  16856. fi
  16857. ;;
  16858. RC)
  16859. # Source file extension for RC test sources.
  16860. ac_ext=rc
  16861. # Object file extension for compiled RC test sources.
  16862. objext=o
  16863. objext_RC=$objext
  16864. # Code to be used in simple compile tests
  16865. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  16866. # Code to be used in simple link tests
  16867. lt_simple_link_test_code="$lt_simple_compile_test_code"
  16868. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16869. # If no C compiler was specified, use CC.
  16870. LTCC=${LTCC-"$CC"}
  16871. # Allow CC to be a program name with arguments.
  16872. compiler=$CC
  16873. # Allow CC to be a program name with arguments.
  16874. lt_save_CC="$CC"
  16875. CC=${RC-"windres"}
  16876. compiler=$CC
  16877. compiler_RC=$CC
  16878. lt_cv_prog_compiler_c_o_RC=yes
  16879. # The else clause should only fire when bootstrapping the
  16880. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16881. # with your package, and you will get complaints that there are
  16882. # no rules to generate ltmain.sh.
  16883. if test -f "$ltmain"; then
  16884. # See if we are running on zsh, and set the options which allow our commands through
  16885. # without removal of \ escapes.
  16886. if test -n "${ZSH_VERSION+set}" ; then
  16887. setopt NO_GLOB_SUBST
  16888. fi
  16889. # Now quote all the things that may contain metacharacters while being
  16890. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16891. # variables and quote the copies for generation of the libtool script.
  16892. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  16893. SED SHELL STRIP \
  16894. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16895. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16896. deplibs_check_method reload_flag reload_cmds need_locks \
  16897. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16898. lt_cv_sys_global_symbol_to_c_name_address \
  16899. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16900. old_postinstall_cmds old_postuninstall_cmds \
  16901. compiler_RC \
  16902. CC_RC \
  16903. LD_RC \
  16904. lt_prog_compiler_wl_RC \
  16905. lt_prog_compiler_pic_RC \
  16906. lt_prog_compiler_static_RC \
  16907. lt_prog_compiler_no_builtin_flag_RC \
  16908. export_dynamic_flag_spec_RC \
  16909. thread_safe_flag_spec_RC \
  16910. whole_archive_flag_spec_RC \
  16911. enable_shared_with_static_runtimes_RC \
  16912. old_archive_cmds_RC \
  16913. old_archive_from_new_cmds_RC \
  16914. predep_objects_RC \
  16915. postdep_objects_RC \
  16916. predeps_RC \
  16917. postdeps_RC \
  16918. compiler_lib_search_path_RC \
  16919. archive_cmds_RC \
  16920. archive_expsym_cmds_RC \
  16921. postinstall_cmds_RC \
  16922. postuninstall_cmds_RC \
  16923. old_archive_from_expsyms_cmds_RC \
  16924. allow_undefined_flag_RC \
  16925. no_undefined_flag_RC \
  16926. export_symbols_cmds_RC \
  16927. hardcode_libdir_flag_spec_RC \
  16928. hardcode_libdir_flag_spec_ld_RC \
  16929. hardcode_libdir_separator_RC \
  16930. hardcode_automatic_RC \
  16931. module_cmds_RC \
  16932. module_expsym_cmds_RC \
  16933. lt_cv_prog_compiler_c_o_RC \
  16934. exclude_expsyms_RC \
  16935. include_expsyms_RC; do
  16936. case $var in
  16937. old_archive_cmds_RC | \
  16938. old_archive_from_new_cmds_RC | \
  16939. archive_cmds_RC | \
  16940. archive_expsym_cmds_RC | \
  16941. module_cmds_RC | \
  16942. module_expsym_cmds_RC | \
  16943. old_archive_from_expsyms_cmds_RC | \
  16944. export_symbols_cmds_RC | \
  16945. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16946. postinstall_cmds | postuninstall_cmds | \
  16947. old_postinstall_cmds | old_postuninstall_cmds | \
  16948. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16949. # Double-quote double-evaled strings.
  16950. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16951. ;;
  16952. *)
  16953. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16954. ;;
  16955. esac
  16956. done
  16957. case $lt_echo in
  16958. *'\$0 --fallback-echo"')
  16959. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16960. ;;
  16961. esac
  16962. cfgfile="$ofile"
  16963. cat <<__EOF__ >> "$cfgfile"
  16964. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16965. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16966. # Shell to use when invoking shell scripts.
  16967. SHELL=$lt_SHELL
  16968. # Whether or not to build shared libraries.
  16969. build_libtool_libs=$enable_shared
  16970. # Whether or not to build static libraries.
  16971. build_old_libs=$enable_static
  16972. # Whether or not to add -lc for building shared libraries.
  16973. build_libtool_need_lc=$archive_cmds_need_lc_RC
  16974. # Whether or not to disallow shared libs when runtime libs are static
  16975. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  16976. # Whether or not to optimize for fast installation.
  16977. fast_install=$enable_fast_install
  16978. # The host system.
  16979. host_alias=$host_alias
  16980. host=$host
  16981. # An echo program that does not interpret backslashes.
  16982. echo=$lt_echo
  16983. # The archiver.
  16984. AR=$lt_AR
  16985. AR_FLAGS=$lt_AR_FLAGS
  16986. # A C compiler.
  16987. LTCC=$lt_LTCC
  16988. # A language-specific compiler.
  16989. CC=$lt_compiler_RC
  16990. # Is the compiler the GNU C compiler?
  16991. with_gcc=$GCC_RC
  16992. # An ERE matcher.
  16993. EGREP=$lt_EGREP
  16994. # The linker used to build libraries.
  16995. LD=$lt_LD_RC
  16996. # Whether we need hard or soft links.
  16997. LN_S=$lt_LN_S
  16998. # A BSD-compatible nm program.
  16999. NM=$lt_NM
  17000. # A symbol stripping program
  17001. STRIP=$lt_STRIP
  17002. # Used to examine libraries when file_magic_cmd begins "file"
  17003. MAGIC_CMD=$MAGIC_CMD
  17004. # Used on cygwin: DLL creation program.
  17005. DLLTOOL="$DLLTOOL"
  17006. # Used on cygwin: object dumper.
  17007. OBJDUMP="$OBJDUMP"
  17008. # Used on cygwin: assembler.
  17009. AS="$AS"
  17010. # The name of the directory that contains temporary libtool files.
  17011. objdir=$objdir
  17012. # How to create reloadable object files.
  17013. reload_flag=$lt_reload_flag
  17014. reload_cmds=$lt_reload_cmds
  17015. # How to pass a linker flag through the compiler.
  17016. wl=$lt_lt_prog_compiler_wl_RC
  17017. # Object file suffix (normally "o").
  17018. objext="$ac_objext"
  17019. # Old archive suffix (normally "a").
  17020. libext="$libext"
  17021. # Shared library suffix (normally ".so").
  17022. shrext_cmds='$shrext_cmds'
  17023. # Executable file suffix (normally "").
  17024. exeext="$exeext"
  17025. # Additional compiler flags for building library objects.
  17026. pic_flag=$lt_lt_prog_compiler_pic_RC
  17027. pic_mode=$pic_mode
  17028. # What is the maximum length of a command?
  17029. max_cmd_len=$lt_cv_sys_max_cmd_len
  17030. # Does compiler simultaneously support -c and -o options?
  17031. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  17032. # Must we lock files when doing compilation ?
  17033. need_locks=$lt_need_locks
  17034. # Do we need the lib prefix for modules?
  17035. need_lib_prefix=$need_lib_prefix
  17036. # Do we need a version for libraries?
  17037. need_version=$need_version
  17038. # Whether dlopen is supported.
  17039. dlopen_support=$enable_dlopen
  17040. # Whether dlopen of programs is supported.
  17041. dlopen_self=$enable_dlopen_self
  17042. # Whether dlopen of statically linked programs is supported.
  17043. dlopen_self_static=$enable_dlopen_self_static
  17044. # Compiler flag to prevent dynamic linking.
  17045. link_static_flag=$lt_lt_prog_compiler_static_RC
  17046. # Compiler flag to turn off builtin functions.
  17047. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  17048. # Compiler flag to allow reflexive dlopens.
  17049. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  17050. # Compiler flag to generate shared objects directly from archives.
  17051. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  17052. # Compiler flag to generate thread-safe objects.
  17053. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  17054. # Library versioning type.
  17055. version_type=$version_type
  17056. # Format of library name prefix.
  17057. libname_spec=$lt_libname_spec
  17058. # List of archive names. First name is the real one, the rest are links.
  17059. # The last name is the one that the linker finds with -lNAME.
  17060. library_names_spec=$lt_library_names_spec
  17061. # The coded name of the library, if different from the real name.
  17062. soname_spec=$lt_soname_spec
  17063. # Commands used to build and install an old-style archive.
  17064. RANLIB=$lt_RANLIB
  17065. old_archive_cmds=$lt_old_archive_cmds_RC
  17066. old_postinstall_cmds=$lt_old_postinstall_cmds
  17067. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17068. # Create an old-style archive from a shared archive.
  17069. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  17070. # Create a temporary old-style archive to link instead of a shared archive.
  17071. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  17072. # Commands used to build and install a shared archive.
  17073. archive_cmds=$lt_archive_cmds_RC
  17074. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  17075. postinstall_cmds=$lt_postinstall_cmds
  17076. postuninstall_cmds=$lt_postuninstall_cmds
  17077. # Commands used to build a loadable module (assumed same as above if empty)
  17078. module_cmds=$lt_module_cmds_RC
  17079. module_expsym_cmds=$lt_module_expsym_cmds_RC
  17080. # Commands to strip libraries.
  17081. old_striplib=$lt_old_striplib
  17082. striplib=$lt_striplib
  17083. # Dependencies to place before the objects being linked to create a
  17084. # shared library.
  17085. predep_objects=$lt_predep_objects_RC
  17086. # Dependencies to place after the objects being linked to create a
  17087. # shared library.
  17088. postdep_objects=$lt_postdep_objects_RC
  17089. # Dependencies to place before the objects being linked to create a
  17090. # shared library.
  17091. predeps=$lt_predeps_RC
  17092. # Dependencies to place after the objects being linked to create a
  17093. # shared library.
  17094. postdeps=$lt_postdeps_RC
  17095. # The library search path used internally by the compiler when linking
  17096. # a shared library.
  17097. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  17098. # Method to check whether dependent libraries are shared objects.
  17099. deplibs_check_method=$lt_deplibs_check_method
  17100. # Command to use when deplibs_check_method == file_magic.
  17101. file_magic_cmd=$lt_file_magic_cmd
  17102. # Flag that allows shared libraries with undefined symbols to be built.
  17103. allow_undefined_flag=$lt_allow_undefined_flag_RC
  17104. # Flag that forces no undefined symbols.
  17105. no_undefined_flag=$lt_no_undefined_flag_RC
  17106. # Commands used to finish a libtool library installation in a directory.
  17107. finish_cmds=$lt_finish_cmds
  17108. # Same as above, but a single script fragment to be evaled but not shown.
  17109. finish_eval=$lt_finish_eval
  17110. # Take the output of nm and produce a listing of raw symbols and C names.
  17111. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17112. # Transform the output of nm in a proper C declaration
  17113. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17114. # Transform the output of nm in a C name address pair
  17115. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17116. # This is the shared library runtime path variable.
  17117. runpath_var=$runpath_var
  17118. # This is the shared library path variable.
  17119. shlibpath_var=$shlibpath_var
  17120. # Is shlibpath searched before the hard-coded library search path?
  17121. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17122. # How to hardcode a shared library path into an executable.
  17123. hardcode_action=$hardcode_action_RC
  17124. # Whether we should hardcode library paths into libraries.
  17125. hardcode_into_libs=$hardcode_into_libs
  17126. # Flag to hardcode \$libdir into a binary during linking.
  17127. # This must work even if \$libdir does not exist.
  17128. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  17129. # If ld is used when linking, flag to hardcode \$libdir into
  17130. # a binary during linking. This must work even if \$libdir does
  17131. # not exist.
  17132. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  17133. # Whether we need a single -rpath flag with a separated argument.
  17134. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  17135. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17136. # resulting binary.
  17137. hardcode_direct=$hardcode_direct_RC
  17138. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17139. # resulting binary.
  17140. hardcode_minus_L=$hardcode_minus_L_RC
  17141. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17142. # the resulting binary.
  17143. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  17144. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17145. # and all subsequent libraries and executables linked against it.
  17146. hardcode_automatic=$hardcode_automatic_RC
  17147. # Variables whose values should be saved in libtool wrapper scripts and
  17148. # restored at relink time.
  17149. variables_saved_for_relink="$variables_saved_for_relink"
  17150. # Whether libtool must link a program against all its dependency libraries.
  17151. link_all_deplibs=$link_all_deplibs_RC
  17152. # Compile-time system search path for libraries
  17153. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17154. # Run-time system search path for libraries
  17155. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17156. # Fix the shell variable \$srcfile for the compiler.
  17157. fix_srcfile_path="$fix_srcfile_path_RC"
  17158. # Set to yes if exported symbols are required.
  17159. always_export_symbols=$always_export_symbols_RC
  17160. # The commands to list exported symbols.
  17161. export_symbols_cmds=$lt_export_symbols_cmds_RC
  17162. # The commands to extract the exported symbol list from a shared archive.
  17163. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17164. # Symbols that should not be listed in the preloaded symbols.
  17165. exclude_expsyms=$lt_exclude_expsyms_RC
  17166. # Symbols that must always be exported.
  17167. include_expsyms=$lt_include_expsyms_RC
  17168. # ### END LIBTOOL TAG CONFIG: $tagname
  17169. __EOF__
  17170. else
  17171. # If there is no Makefile yet, we rely on a make rule to execute
  17172. # `config.status --recheck' to rerun these tests and create the
  17173. # libtool script then.
  17174. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17175. if test -f "$ltmain_in"; then
  17176. test -f Makefile && make "$ltmain"
  17177. fi
  17178. fi
  17179. ac_ext=c
  17180. ac_cpp='$CPP $CPPFLAGS'
  17181. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17182. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17183. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17184. CC="$lt_save_CC"
  17185. ;;
  17186. *)
  17187. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  17188. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  17189. { (exit 1); exit 1; }; }
  17190. ;;
  17191. esac
  17192. # Append the new tag name to the list of available tags.
  17193. if test -n "$tagname" ; then
  17194. available_tags="$available_tags $tagname"
  17195. fi
  17196. fi
  17197. done
  17198. IFS="$lt_save_ifs"
  17199. # Now substitute the updated list of available tags.
  17200. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  17201. mv "${ofile}T" "$ofile"
  17202. chmod +x "$ofile"
  17203. else
  17204. rm -f "${ofile}T"
  17205. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  17206. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  17207. { (exit 1); exit 1; }; }
  17208. fi
  17209. fi
  17210. # This can be used to rebuild libtool when needed
  17211. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  17212. # Always use our own libtool.
  17213. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  17214. # Prevent multiple expansion
  17215. # Checks for header files.
  17216. ac_header_dirent=no
  17217. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  17218. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  17219. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  17220. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  17221. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17222. echo $ECHO_N "(cached) $ECHO_C" >&6
  17223. else
  17224. cat >conftest.$ac_ext <<_ACEOF
  17225. /* confdefs.h. */
  17226. _ACEOF
  17227. cat confdefs.h >>conftest.$ac_ext
  17228. cat >>conftest.$ac_ext <<_ACEOF
  17229. /* end confdefs.h. */
  17230. #include <sys/types.h>
  17231. #include <$ac_hdr>
  17232. int
  17233. main ()
  17234. {
  17235. if ((DIR *) 0)
  17236. return 0;
  17237. ;
  17238. return 0;
  17239. }
  17240. _ACEOF
  17241. rm -f conftest.$ac_objext
  17242. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17243. (eval $ac_compile) 2>conftest.er1
  17244. ac_status=$?
  17245. grep -v '^ *+' conftest.er1 >conftest.err
  17246. rm -f conftest.er1
  17247. cat conftest.err >&5
  17248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17249. (exit $ac_status); } &&
  17250. { ac_try='test -z "$ac_c_werror_flag"
  17251. || test ! -s conftest.err'
  17252. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17253. (eval $ac_try) 2>&5
  17254. ac_status=$?
  17255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17256. (exit $ac_status); }; } &&
  17257. { ac_try='test -s conftest.$ac_objext'
  17258. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17259. (eval $ac_try) 2>&5
  17260. ac_status=$?
  17261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17262. (exit $ac_status); }; }; then
  17263. eval "$as_ac_Header=yes"
  17264. else
  17265. echo "$as_me: failed program was:" >&5
  17266. sed 's/^/| /' conftest.$ac_ext >&5
  17267. eval "$as_ac_Header=no"
  17268. fi
  17269. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17270. fi
  17271. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17272. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17273. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17274. cat >>confdefs.h <<_ACEOF
  17275. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  17276. _ACEOF
  17277. ac_header_dirent=$ac_hdr; break
  17278. fi
  17279. done
  17280. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  17281. if test $ac_header_dirent = dirent.h; then
  17282. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  17283. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  17284. if test "${ac_cv_search_opendir+set}" = set; then
  17285. echo $ECHO_N "(cached) $ECHO_C" >&6
  17286. else
  17287. ac_func_search_save_LIBS=$LIBS
  17288. ac_cv_search_opendir=no
  17289. cat >conftest.$ac_ext <<_ACEOF
  17290. /* confdefs.h. */
  17291. _ACEOF
  17292. cat confdefs.h >>conftest.$ac_ext
  17293. cat >>conftest.$ac_ext <<_ACEOF
  17294. /* end confdefs.h. */
  17295. /* Override any gcc2 internal prototype to avoid an error. */
  17296. #ifdef __cplusplus
  17297. extern "C"
  17298. #endif
  17299. /* We use char because int might match the return type of a gcc2
  17300. builtin and then its argument prototype would still apply. */
  17301. char opendir ();
  17302. int
  17303. main ()
  17304. {
  17305. opendir ();
  17306. ;
  17307. return 0;
  17308. }
  17309. _ACEOF
  17310. rm -f conftest.$ac_objext conftest$ac_exeext
  17311. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17312. (eval $ac_link) 2>conftest.er1
  17313. ac_status=$?
  17314. grep -v '^ *+' conftest.er1 >conftest.err
  17315. rm -f conftest.er1
  17316. cat conftest.err >&5
  17317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17318. (exit $ac_status); } &&
  17319. { ac_try='test -z "$ac_c_werror_flag"
  17320. || test ! -s conftest.err'
  17321. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17322. (eval $ac_try) 2>&5
  17323. ac_status=$?
  17324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17325. (exit $ac_status); }; } &&
  17326. { ac_try='test -s conftest$ac_exeext'
  17327. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17328. (eval $ac_try) 2>&5
  17329. ac_status=$?
  17330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17331. (exit $ac_status); }; }; then
  17332. ac_cv_search_opendir="none required"
  17333. else
  17334. echo "$as_me: failed program was:" >&5
  17335. sed 's/^/| /' conftest.$ac_ext >&5
  17336. fi
  17337. rm -f conftest.err conftest.$ac_objext \
  17338. conftest$ac_exeext conftest.$ac_ext
  17339. if test "$ac_cv_search_opendir" = no; then
  17340. for ac_lib in dir; do
  17341. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17342. cat >conftest.$ac_ext <<_ACEOF
  17343. /* confdefs.h. */
  17344. _ACEOF
  17345. cat confdefs.h >>conftest.$ac_ext
  17346. cat >>conftest.$ac_ext <<_ACEOF
  17347. /* end confdefs.h. */
  17348. /* Override any gcc2 internal prototype to avoid an error. */
  17349. #ifdef __cplusplus
  17350. extern "C"
  17351. #endif
  17352. /* We use char because int might match the return type of a gcc2
  17353. builtin and then its argument prototype would still apply. */
  17354. char opendir ();
  17355. int
  17356. main ()
  17357. {
  17358. opendir ();
  17359. ;
  17360. return 0;
  17361. }
  17362. _ACEOF
  17363. rm -f conftest.$ac_objext conftest$ac_exeext
  17364. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17365. (eval $ac_link) 2>conftest.er1
  17366. ac_status=$?
  17367. grep -v '^ *+' conftest.er1 >conftest.err
  17368. rm -f conftest.er1
  17369. cat conftest.err >&5
  17370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17371. (exit $ac_status); } &&
  17372. { ac_try='test -z "$ac_c_werror_flag"
  17373. || test ! -s conftest.err'
  17374. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17375. (eval $ac_try) 2>&5
  17376. ac_status=$?
  17377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17378. (exit $ac_status); }; } &&
  17379. { ac_try='test -s conftest$ac_exeext'
  17380. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17381. (eval $ac_try) 2>&5
  17382. ac_status=$?
  17383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17384. (exit $ac_status); }; }; then
  17385. ac_cv_search_opendir="-l$ac_lib"
  17386. break
  17387. else
  17388. echo "$as_me: failed program was:" >&5
  17389. sed 's/^/| /' conftest.$ac_ext >&5
  17390. fi
  17391. rm -f conftest.err conftest.$ac_objext \
  17392. conftest$ac_exeext conftest.$ac_ext
  17393. done
  17394. fi
  17395. LIBS=$ac_func_search_save_LIBS
  17396. fi
  17397. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  17398. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  17399. if test "$ac_cv_search_opendir" != no; then
  17400. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  17401. fi
  17402. else
  17403. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  17404. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  17405. if test "${ac_cv_search_opendir+set}" = set; then
  17406. echo $ECHO_N "(cached) $ECHO_C" >&6
  17407. else
  17408. ac_func_search_save_LIBS=$LIBS
  17409. ac_cv_search_opendir=no
  17410. cat >conftest.$ac_ext <<_ACEOF
  17411. /* confdefs.h. */
  17412. _ACEOF
  17413. cat confdefs.h >>conftest.$ac_ext
  17414. cat >>conftest.$ac_ext <<_ACEOF
  17415. /* end confdefs.h. */
  17416. /* Override any gcc2 internal prototype to avoid an error. */
  17417. #ifdef __cplusplus
  17418. extern "C"
  17419. #endif
  17420. /* We use char because int might match the return type of a gcc2
  17421. builtin and then its argument prototype would still apply. */
  17422. char opendir ();
  17423. int
  17424. main ()
  17425. {
  17426. opendir ();
  17427. ;
  17428. return 0;
  17429. }
  17430. _ACEOF
  17431. rm -f conftest.$ac_objext conftest$ac_exeext
  17432. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17433. (eval $ac_link) 2>conftest.er1
  17434. ac_status=$?
  17435. grep -v '^ *+' conftest.er1 >conftest.err
  17436. rm -f conftest.er1
  17437. cat conftest.err >&5
  17438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17439. (exit $ac_status); } &&
  17440. { ac_try='test -z "$ac_c_werror_flag"
  17441. || test ! -s conftest.err'
  17442. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17443. (eval $ac_try) 2>&5
  17444. ac_status=$?
  17445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17446. (exit $ac_status); }; } &&
  17447. { ac_try='test -s conftest$ac_exeext'
  17448. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17449. (eval $ac_try) 2>&5
  17450. ac_status=$?
  17451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17452. (exit $ac_status); }; }; then
  17453. ac_cv_search_opendir="none required"
  17454. else
  17455. echo "$as_me: failed program was:" >&5
  17456. sed 's/^/| /' conftest.$ac_ext >&5
  17457. fi
  17458. rm -f conftest.err conftest.$ac_objext \
  17459. conftest$ac_exeext conftest.$ac_ext
  17460. if test "$ac_cv_search_opendir" = no; then
  17461. for ac_lib in x; do
  17462. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17463. cat >conftest.$ac_ext <<_ACEOF
  17464. /* confdefs.h. */
  17465. _ACEOF
  17466. cat confdefs.h >>conftest.$ac_ext
  17467. cat >>conftest.$ac_ext <<_ACEOF
  17468. /* end confdefs.h. */
  17469. /* Override any gcc2 internal prototype to avoid an error. */
  17470. #ifdef __cplusplus
  17471. extern "C"
  17472. #endif
  17473. /* We use char because int might match the return type of a gcc2
  17474. builtin and then its argument prototype would still apply. */
  17475. char opendir ();
  17476. int
  17477. main ()
  17478. {
  17479. opendir ();
  17480. ;
  17481. return 0;
  17482. }
  17483. _ACEOF
  17484. rm -f conftest.$ac_objext conftest$ac_exeext
  17485. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17486. (eval $ac_link) 2>conftest.er1
  17487. ac_status=$?
  17488. grep -v '^ *+' conftest.er1 >conftest.err
  17489. rm -f conftest.er1
  17490. cat conftest.err >&5
  17491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17492. (exit $ac_status); } &&
  17493. { ac_try='test -z "$ac_c_werror_flag"
  17494. || test ! -s conftest.err'
  17495. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17496. (eval $ac_try) 2>&5
  17497. ac_status=$?
  17498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17499. (exit $ac_status); }; } &&
  17500. { ac_try='test -s conftest$ac_exeext'
  17501. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17502. (eval $ac_try) 2>&5
  17503. ac_status=$?
  17504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17505. (exit $ac_status); }; }; then
  17506. ac_cv_search_opendir="-l$ac_lib"
  17507. break
  17508. else
  17509. echo "$as_me: failed program was:" >&5
  17510. sed 's/^/| /' conftest.$ac_ext >&5
  17511. fi
  17512. rm -f conftest.err conftest.$ac_objext \
  17513. conftest$ac_exeext conftest.$ac_ext
  17514. done
  17515. fi
  17516. LIBS=$ac_func_search_save_LIBS
  17517. fi
  17518. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  17519. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  17520. if test "$ac_cv_search_opendir" != no; then
  17521. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  17522. fi
  17523. fi
  17524. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  17525. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  17526. if test "${ac_cv_header_stdc+set}" = set; then
  17527. echo $ECHO_N "(cached) $ECHO_C" >&6
  17528. else
  17529. cat >conftest.$ac_ext <<_ACEOF
  17530. /* confdefs.h. */
  17531. _ACEOF
  17532. cat confdefs.h >>conftest.$ac_ext
  17533. cat >>conftest.$ac_ext <<_ACEOF
  17534. /* end confdefs.h. */
  17535. #include <stdlib.h>
  17536. #include <stdarg.h>
  17537. #include <string.h>
  17538. #include <float.h>
  17539. int
  17540. main ()
  17541. {
  17542. ;
  17543. return 0;
  17544. }
  17545. _ACEOF
  17546. rm -f conftest.$ac_objext
  17547. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17548. (eval $ac_compile) 2>conftest.er1
  17549. ac_status=$?
  17550. grep -v '^ *+' conftest.er1 >conftest.err
  17551. rm -f conftest.er1
  17552. cat conftest.err >&5
  17553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17554. (exit $ac_status); } &&
  17555. { ac_try='test -z "$ac_c_werror_flag"
  17556. || test ! -s conftest.err'
  17557. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17558. (eval $ac_try) 2>&5
  17559. ac_status=$?
  17560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17561. (exit $ac_status); }; } &&
  17562. { ac_try='test -s conftest.$ac_objext'
  17563. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17564. (eval $ac_try) 2>&5
  17565. ac_status=$?
  17566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17567. (exit $ac_status); }; }; then
  17568. ac_cv_header_stdc=yes
  17569. else
  17570. echo "$as_me: failed program was:" >&5
  17571. sed 's/^/| /' conftest.$ac_ext >&5
  17572. ac_cv_header_stdc=no
  17573. fi
  17574. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17575. if test $ac_cv_header_stdc = yes; then
  17576. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  17577. cat >conftest.$ac_ext <<_ACEOF
  17578. /* confdefs.h. */
  17579. _ACEOF
  17580. cat confdefs.h >>conftest.$ac_ext
  17581. cat >>conftest.$ac_ext <<_ACEOF
  17582. /* end confdefs.h. */
  17583. #include <string.h>
  17584. _ACEOF
  17585. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17586. $EGREP "memchr" >/dev/null 2>&1; then
  17587. :
  17588. else
  17589. ac_cv_header_stdc=no
  17590. fi
  17591. rm -f conftest*
  17592. fi
  17593. if test $ac_cv_header_stdc = yes; then
  17594. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  17595. cat >conftest.$ac_ext <<_ACEOF
  17596. /* confdefs.h. */
  17597. _ACEOF
  17598. cat confdefs.h >>conftest.$ac_ext
  17599. cat >>conftest.$ac_ext <<_ACEOF
  17600. /* end confdefs.h. */
  17601. #include <stdlib.h>
  17602. _ACEOF
  17603. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17604. $EGREP "free" >/dev/null 2>&1; then
  17605. :
  17606. else
  17607. ac_cv_header_stdc=no
  17608. fi
  17609. rm -f conftest*
  17610. fi
  17611. if test $ac_cv_header_stdc = yes; then
  17612. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  17613. if test "$cross_compiling" = yes; then
  17614. :
  17615. else
  17616. cat >conftest.$ac_ext <<_ACEOF
  17617. /* confdefs.h. */
  17618. _ACEOF
  17619. cat confdefs.h >>conftest.$ac_ext
  17620. cat >>conftest.$ac_ext <<_ACEOF
  17621. /* end confdefs.h. */
  17622. #include <ctype.h>
  17623. #if ((' ' & 0x0FF) == 0x020)
  17624. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  17625. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  17626. #else
  17627. # define ISLOWER(c) \
  17628. (('a' <= (c) && (c) <= 'i') \
  17629. || ('j' <= (c) && (c) <= 'r') \
  17630. || ('s' <= (c) && (c) <= 'z'))
  17631. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  17632. #endif
  17633. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  17634. int
  17635. main ()
  17636. {
  17637. int i;
  17638. for (i = 0; i < 256; i++)
  17639. if (XOR (islower (i), ISLOWER (i))
  17640. || toupper (i) != TOUPPER (i))
  17641. exit(2);
  17642. exit (0);
  17643. }
  17644. _ACEOF
  17645. rm -f conftest$ac_exeext
  17646. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17647. (eval $ac_link) 2>&5
  17648. ac_status=$?
  17649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17650. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17651. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17652. (eval $ac_try) 2>&5
  17653. ac_status=$?
  17654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17655. (exit $ac_status); }; }; then
  17656. :
  17657. else
  17658. echo "$as_me: program exited with status $ac_status" >&5
  17659. echo "$as_me: failed program was:" >&5
  17660. sed 's/^/| /' conftest.$ac_ext >&5
  17661. ( exit $ac_status )
  17662. ac_cv_header_stdc=no
  17663. fi
  17664. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17665. fi
  17666. fi
  17667. fi
  17668. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  17669. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  17670. if test $ac_cv_header_stdc = yes; then
  17671. cat >>confdefs.h <<\_ACEOF
  17672. #define STDC_HEADERS 1
  17673. _ACEOF
  17674. fi
  17675. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  17676. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  17677. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  17678. echo $ECHO_N "(cached) $ECHO_C" >&6
  17679. else
  17680. cat >conftest.$ac_ext <<_ACEOF
  17681. /* confdefs.h. */
  17682. _ACEOF
  17683. cat confdefs.h >>conftest.$ac_ext
  17684. cat >>conftest.$ac_ext <<_ACEOF
  17685. /* end confdefs.h. */
  17686. #include <sys/types.h>
  17687. #include <sys/wait.h>
  17688. #ifndef WEXITSTATUS
  17689. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  17690. #endif
  17691. #ifndef WIFEXITED
  17692. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  17693. #endif
  17694. int
  17695. main ()
  17696. {
  17697. int s;
  17698. wait (&s);
  17699. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  17700. ;
  17701. return 0;
  17702. }
  17703. _ACEOF
  17704. rm -f conftest.$ac_objext
  17705. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17706. (eval $ac_compile) 2>conftest.er1
  17707. ac_status=$?
  17708. grep -v '^ *+' conftest.er1 >conftest.err
  17709. rm -f conftest.er1
  17710. cat conftest.err >&5
  17711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17712. (exit $ac_status); } &&
  17713. { ac_try='test -z "$ac_c_werror_flag"
  17714. || test ! -s conftest.err'
  17715. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17716. (eval $ac_try) 2>&5
  17717. ac_status=$?
  17718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17719. (exit $ac_status); }; } &&
  17720. { ac_try='test -s conftest.$ac_objext'
  17721. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17722. (eval $ac_try) 2>&5
  17723. ac_status=$?
  17724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17725. (exit $ac_status); }; }; then
  17726. ac_cv_header_sys_wait_h=yes
  17727. else
  17728. echo "$as_me: failed program was:" >&5
  17729. sed 's/^/| /' conftest.$ac_ext >&5
  17730. ac_cv_header_sys_wait_h=no
  17731. fi
  17732. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17733. fi
  17734. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  17735. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  17736. if test $ac_cv_header_sys_wait_h = yes; then
  17737. cat >>confdefs.h <<\_ACEOF
  17738. #define HAVE_SYS_WAIT_H 1
  17739. _ACEOF
  17740. fi
  17741. for ac_header in arpa/inet.h fcntl.h malloc.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/file.h sys/socket.h sys/time.h unistd.h
  17742. do
  17743. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17744. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17745. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17746. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17747. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17748. echo $ECHO_N "(cached) $ECHO_C" >&6
  17749. fi
  17750. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17751. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17752. else
  17753. # Is the header compilable?
  17754. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17755. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  17756. cat >conftest.$ac_ext <<_ACEOF
  17757. /* confdefs.h. */
  17758. _ACEOF
  17759. cat confdefs.h >>conftest.$ac_ext
  17760. cat >>conftest.$ac_ext <<_ACEOF
  17761. /* end confdefs.h. */
  17762. $ac_includes_default
  17763. #include <$ac_header>
  17764. _ACEOF
  17765. rm -f conftest.$ac_objext
  17766. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17767. (eval $ac_compile) 2>conftest.er1
  17768. ac_status=$?
  17769. grep -v '^ *+' conftest.er1 >conftest.err
  17770. rm -f conftest.er1
  17771. cat conftest.err >&5
  17772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17773. (exit $ac_status); } &&
  17774. { ac_try='test -z "$ac_c_werror_flag"
  17775. || test ! -s conftest.err'
  17776. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17777. (eval $ac_try) 2>&5
  17778. ac_status=$?
  17779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17780. (exit $ac_status); }; } &&
  17781. { ac_try='test -s conftest.$ac_objext'
  17782. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17783. (eval $ac_try) 2>&5
  17784. ac_status=$?
  17785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17786. (exit $ac_status); }; }; then
  17787. ac_header_compiler=yes
  17788. else
  17789. echo "$as_me: failed program was:" >&5
  17790. sed 's/^/| /' conftest.$ac_ext >&5
  17791. ac_header_compiler=no
  17792. fi
  17793. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17794. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17795. echo "${ECHO_T}$ac_header_compiler" >&6
  17796. # Is the header present?
  17797. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17798. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  17799. cat >conftest.$ac_ext <<_ACEOF
  17800. /* confdefs.h. */
  17801. _ACEOF
  17802. cat confdefs.h >>conftest.$ac_ext
  17803. cat >>conftest.$ac_ext <<_ACEOF
  17804. /* end confdefs.h. */
  17805. #include <$ac_header>
  17806. _ACEOF
  17807. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17808. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17809. ac_status=$?
  17810. grep -v '^ *+' conftest.er1 >conftest.err
  17811. rm -f conftest.er1
  17812. cat conftest.err >&5
  17813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17814. (exit $ac_status); } >/dev/null; then
  17815. if test -s conftest.err; then
  17816. ac_cpp_err=$ac_c_preproc_warn_flag
  17817. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17818. else
  17819. ac_cpp_err=
  17820. fi
  17821. else
  17822. ac_cpp_err=yes
  17823. fi
  17824. if test -z "$ac_cpp_err"; then
  17825. ac_header_preproc=yes
  17826. else
  17827. echo "$as_me: failed program was:" >&5
  17828. sed 's/^/| /' conftest.$ac_ext >&5
  17829. ac_header_preproc=no
  17830. fi
  17831. rm -f conftest.err conftest.$ac_ext
  17832. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17833. echo "${ECHO_T}$ac_header_preproc" >&6
  17834. # So? What about this header?
  17835. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17836. yes:no: )
  17837. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17838. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17839. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17840. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17841. ac_header_preproc=yes
  17842. ;;
  17843. no:yes:* )
  17844. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17845. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17846. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17847. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17848. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17849. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17850. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17851. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17852. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17853. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17854. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17855. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17856. (
  17857. cat <<\_ASBOX
  17858. ## ------------------------------------------ ##
  17859. ## Report this to http://bugzilla.redhat.com/ ##
  17860. ## ------------------------------------------ ##
  17861. _ASBOX
  17862. ) |
  17863. sed "s/^/$as_me: WARNING: /" >&2
  17864. ;;
  17865. esac
  17866. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17867. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17868. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17869. echo $ECHO_N "(cached) $ECHO_C" >&6
  17870. else
  17871. eval "$as_ac_Header=\$ac_header_preproc"
  17872. fi
  17873. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17874. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17875. fi
  17876. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17877. cat >>confdefs.h <<_ACEOF
  17878. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17879. _ACEOF
  17880. fi
  17881. done
  17882. # Checks for typedefs, structures, and compiler characteristics.
  17883. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  17884. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  17885. if test "${ac_cv_header_stat_broken+set}" = set; then
  17886. echo $ECHO_N "(cached) $ECHO_C" >&6
  17887. else
  17888. cat >conftest.$ac_ext <<_ACEOF
  17889. /* confdefs.h. */
  17890. _ACEOF
  17891. cat confdefs.h >>conftest.$ac_ext
  17892. cat >>conftest.$ac_ext <<_ACEOF
  17893. /* end confdefs.h. */
  17894. #include <sys/types.h>
  17895. #include <sys/stat.h>
  17896. #if defined(S_ISBLK) && defined(S_IFDIR)
  17897. # if S_ISBLK (S_IFDIR)
  17898. You lose.
  17899. # endif
  17900. #endif
  17901. #if defined(S_ISBLK) && defined(S_IFCHR)
  17902. # if S_ISBLK (S_IFCHR)
  17903. You lose.
  17904. # endif
  17905. #endif
  17906. #if defined(S_ISLNK) && defined(S_IFREG)
  17907. # if S_ISLNK (S_IFREG)
  17908. You lose.
  17909. # endif
  17910. #endif
  17911. #if defined(S_ISSOCK) && defined(S_IFREG)
  17912. # if S_ISSOCK (S_IFREG)
  17913. You lose.
  17914. # endif
  17915. #endif
  17916. _ACEOF
  17917. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17918. $EGREP "You lose" >/dev/null 2>&1; then
  17919. ac_cv_header_stat_broken=yes
  17920. else
  17921. ac_cv_header_stat_broken=no
  17922. fi
  17923. rm -f conftest*
  17924. fi
  17925. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  17926. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  17927. if test $ac_cv_header_stat_broken = yes; then
  17928. cat >>confdefs.h <<\_ACEOF
  17929. #define STAT_MACROS_BROKEN 1
  17930. _ACEOF
  17931. fi
  17932. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  17933. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  17934. if test "${ac_cv_c_const+set}" = set; then
  17935. echo $ECHO_N "(cached) $ECHO_C" >&6
  17936. else
  17937. cat >conftest.$ac_ext <<_ACEOF
  17938. /* confdefs.h. */
  17939. _ACEOF
  17940. cat confdefs.h >>conftest.$ac_ext
  17941. cat >>conftest.$ac_ext <<_ACEOF
  17942. /* end confdefs.h. */
  17943. int
  17944. main ()
  17945. {
  17946. /* FIXME: Include the comments suggested by Paul. */
  17947. #ifndef __cplusplus
  17948. /* Ultrix mips cc rejects this. */
  17949. typedef int charset[2];
  17950. const charset x;
  17951. /* SunOS 4.1.1 cc rejects this. */
  17952. char const *const *ccp;
  17953. char **p;
  17954. /* NEC SVR4.0.2 mips cc rejects this. */
  17955. struct point {int x, y;};
  17956. static struct point const zero = {0,0};
  17957. /* AIX XL C 1.02.0.0 rejects this.
  17958. It does not let you subtract one const X* pointer from another in
  17959. an arm of an if-expression whose if-part is not a constant
  17960. expression */
  17961. const char *g = "string";
  17962. ccp = &g + (g ? g-g : 0);
  17963. /* HPUX 7.0 cc rejects these. */
  17964. ++ccp;
  17965. p = (char**) ccp;
  17966. ccp = (char const *const *) p;
  17967. { /* SCO 3.2v4 cc rejects this. */
  17968. char *t;
  17969. char const *s = 0 ? (char *) 0 : (char const *) 0;
  17970. *t++ = 0;
  17971. }
  17972. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  17973. int x[] = {25, 17};
  17974. const int *foo = &x[0];
  17975. ++foo;
  17976. }
  17977. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  17978. typedef const int *iptr;
  17979. iptr p = 0;
  17980. ++p;
  17981. }
  17982. { /* AIX XL C 1.02.0.0 rejects this saying
  17983. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  17984. struct s { int j; const int *ap[3]; };
  17985. struct s *b; b->j = 5;
  17986. }
  17987. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  17988. const int foo = 10;
  17989. }
  17990. #endif
  17991. ;
  17992. return 0;
  17993. }
  17994. _ACEOF
  17995. rm -f conftest.$ac_objext
  17996. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17997. (eval $ac_compile) 2>conftest.er1
  17998. ac_status=$?
  17999. grep -v '^ *+' conftest.er1 >conftest.err
  18000. rm -f conftest.er1
  18001. cat conftest.err >&5
  18002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18003. (exit $ac_status); } &&
  18004. { ac_try='test -z "$ac_c_werror_flag"
  18005. || test ! -s conftest.err'
  18006. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18007. (eval $ac_try) 2>&5
  18008. ac_status=$?
  18009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18010. (exit $ac_status); }; } &&
  18011. { ac_try='test -s conftest.$ac_objext'
  18012. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18013. (eval $ac_try) 2>&5
  18014. ac_status=$?
  18015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18016. (exit $ac_status); }; }; then
  18017. ac_cv_c_const=yes
  18018. else
  18019. echo "$as_me: failed program was:" >&5
  18020. sed 's/^/| /' conftest.$ac_ext >&5
  18021. ac_cv_c_const=no
  18022. fi
  18023. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18024. fi
  18025. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  18026. echo "${ECHO_T}$ac_cv_c_const" >&6
  18027. if test $ac_cv_c_const = no; then
  18028. cat >>confdefs.h <<\_ACEOF
  18029. #define const
  18030. _ACEOF
  18031. fi
  18032. echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  18033. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
  18034. if test "${ac_cv_header_stdbool_h+set}" = set; then
  18035. echo $ECHO_N "(cached) $ECHO_C" >&6
  18036. else
  18037. cat >conftest.$ac_ext <<_ACEOF
  18038. /* confdefs.h. */
  18039. _ACEOF
  18040. cat confdefs.h >>conftest.$ac_ext
  18041. cat >>conftest.$ac_ext <<_ACEOF
  18042. /* end confdefs.h. */
  18043. #include <stdbool.h>
  18044. #ifndef bool
  18045. # error bool is not defined
  18046. #endif
  18047. #ifndef false
  18048. # error false is not defined
  18049. #endif
  18050. #if false
  18051. # error false is not 0
  18052. #endif
  18053. #ifndef true
  18054. # error true is not defined
  18055. #endif
  18056. #if true != 1
  18057. # error true is not 1
  18058. #endif
  18059. #ifndef __bool_true_false_are_defined
  18060. # error __bool_true_false_are_defined is not defined
  18061. #endif
  18062. struct s { _Bool s: 1; _Bool t; } s;
  18063. char a[true == 1 ? 1 : -1];
  18064. char b[false == 0 ? 1 : -1];
  18065. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  18066. char d[(bool) -0.5 == true ? 1 : -1];
  18067. bool e = &s;
  18068. char f[(_Bool) -0.0 == false ? 1 : -1];
  18069. char g[true];
  18070. char h[sizeof (_Bool)];
  18071. char i[sizeof s.t];
  18072. int
  18073. main ()
  18074. {
  18075. return !a + !b + !c + !d + !e + !f + !g + !h + !i;
  18076. ;
  18077. return 0;
  18078. }
  18079. _ACEOF
  18080. rm -f conftest.$ac_objext
  18081. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18082. (eval $ac_compile) 2>conftest.er1
  18083. ac_status=$?
  18084. grep -v '^ *+' conftest.er1 >conftest.err
  18085. rm -f conftest.er1
  18086. cat conftest.err >&5
  18087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18088. (exit $ac_status); } &&
  18089. { ac_try='test -z "$ac_c_werror_flag"
  18090. || test ! -s conftest.err'
  18091. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18092. (eval $ac_try) 2>&5
  18093. ac_status=$?
  18094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18095. (exit $ac_status); }; } &&
  18096. { ac_try='test -s conftest.$ac_objext'
  18097. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18098. (eval $ac_try) 2>&5
  18099. ac_status=$?
  18100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18101. (exit $ac_status); }; }; then
  18102. ac_cv_header_stdbool_h=yes
  18103. else
  18104. echo "$as_me: failed program was:" >&5
  18105. sed 's/^/| /' conftest.$ac_ext >&5
  18106. ac_cv_header_stdbool_h=no
  18107. fi
  18108. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18109. fi
  18110. echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  18111. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
  18112. echo "$as_me:$LINENO: checking for _Bool" >&5
  18113. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
  18114. if test "${ac_cv_type__Bool+set}" = set; then
  18115. echo $ECHO_N "(cached) $ECHO_C" >&6
  18116. else
  18117. cat >conftest.$ac_ext <<_ACEOF
  18118. /* confdefs.h. */
  18119. _ACEOF
  18120. cat confdefs.h >>conftest.$ac_ext
  18121. cat >>conftest.$ac_ext <<_ACEOF
  18122. /* end confdefs.h. */
  18123. $ac_includes_default
  18124. int
  18125. main ()
  18126. {
  18127. if ((_Bool *) 0)
  18128. return 0;
  18129. if (sizeof (_Bool))
  18130. return 0;
  18131. ;
  18132. return 0;
  18133. }
  18134. _ACEOF
  18135. rm -f conftest.$ac_objext
  18136. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18137. (eval $ac_compile) 2>conftest.er1
  18138. ac_status=$?
  18139. grep -v '^ *+' conftest.er1 >conftest.err
  18140. rm -f conftest.er1
  18141. cat conftest.err >&5
  18142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18143. (exit $ac_status); } &&
  18144. { ac_try='test -z "$ac_c_werror_flag"
  18145. || test ! -s conftest.err'
  18146. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18147. (eval $ac_try) 2>&5
  18148. ac_status=$?
  18149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18150. (exit $ac_status); }; } &&
  18151. { ac_try='test -s conftest.$ac_objext'
  18152. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18153. (eval $ac_try) 2>&5
  18154. ac_status=$?
  18155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18156. (exit $ac_status); }; }; then
  18157. ac_cv_type__Bool=yes
  18158. else
  18159. echo "$as_me: failed program was:" >&5
  18160. sed 's/^/| /' conftest.$ac_ext >&5
  18161. ac_cv_type__Bool=no
  18162. fi
  18163. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18164. fi
  18165. echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  18166. echo "${ECHO_T}$ac_cv_type__Bool" >&6
  18167. if test $ac_cv_type__Bool = yes; then
  18168. cat >>confdefs.h <<_ACEOF
  18169. #define HAVE__BOOL 1
  18170. _ACEOF
  18171. fi
  18172. if test $ac_cv_header_stdbool_h = yes; then
  18173. cat >>confdefs.h <<\_ACEOF
  18174. #define HAVE_STDBOOL_H 1
  18175. _ACEOF
  18176. fi
  18177. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  18178. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  18179. if test "${ac_cv_type_uid_t+set}" = set; then
  18180. echo $ECHO_N "(cached) $ECHO_C" >&6
  18181. else
  18182. cat >conftest.$ac_ext <<_ACEOF
  18183. /* confdefs.h. */
  18184. _ACEOF
  18185. cat confdefs.h >>conftest.$ac_ext
  18186. cat >>conftest.$ac_ext <<_ACEOF
  18187. /* end confdefs.h. */
  18188. #include <sys/types.h>
  18189. _ACEOF
  18190. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18191. $EGREP "uid_t" >/dev/null 2>&1; then
  18192. ac_cv_type_uid_t=yes
  18193. else
  18194. ac_cv_type_uid_t=no
  18195. fi
  18196. rm -f conftest*
  18197. fi
  18198. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  18199. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  18200. if test $ac_cv_type_uid_t = no; then
  18201. cat >>confdefs.h <<\_ACEOF
  18202. #define uid_t int
  18203. _ACEOF
  18204. cat >>confdefs.h <<\_ACEOF
  18205. #define gid_t int
  18206. _ACEOF
  18207. fi
  18208. echo "$as_me:$LINENO: checking for pid_t" >&5
  18209. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  18210. if test "${ac_cv_type_pid_t+set}" = set; then
  18211. echo $ECHO_N "(cached) $ECHO_C" >&6
  18212. else
  18213. cat >conftest.$ac_ext <<_ACEOF
  18214. /* confdefs.h. */
  18215. _ACEOF
  18216. cat confdefs.h >>conftest.$ac_ext
  18217. cat >>conftest.$ac_ext <<_ACEOF
  18218. /* end confdefs.h. */
  18219. $ac_includes_default
  18220. int
  18221. main ()
  18222. {
  18223. if ((pid_t *) 0)
  18224. return 0;
  18225. if (sizeof (pid_t))
  18226. return 0;
  18227. ;
  18228. return 0;
  18229. }
  18230. _ACEOF
  18231. rm -f conftest.$ac_objext
  18232. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18233. (eval $ac_compile) 2>conftest.er1
  18234. ac_status=$?
  18235. grep -v '^ *+' conftest.er1 >conftest.err
  18236. rm -f conftest.er1
  18237. cat conftest.err >&5
  18238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18239. (exit $ac_status); } &&
  18240. { ac_try='test -z "$ac_c_werror_flag"
  18241. || test ! -s conftest.err'
  18242. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18243. (eval $ac_try) 2>&5
  18244. ac_status=$?
  18245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18246. (exit $ac_status); }; } &&
  18247. { ac_try='test -s conftest.$ac_objext'
  18248. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18249. (eval $ac_try) 2>&5
  18250. ac_status=$?
  18251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18252. (exit $ac_status); }; }; then
  18253. ac_cv_type_pid_t=yes
  18254. else
  18255. echo "$as_me: failed program was:" >&5
  18256. sed 's/^/| /' conftest.$ac_ext >&5
  18257. ac_cv_type_pid_t=no
  18258. fi
  18259. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18260. fi
  18261. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  18262. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  18263. if test $ac_cv_type_pid_t = yes; then
  18264. :
  18265. else
  18266. cat >>confdefs.h <<_ACEOF
  18267. #define pid_t int
  18268. _ACEOF
  18269. fi
  18270. echo "$as_me:$LINENO: checking for size_t" >&5
  18271. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  18272. if test "${ac_cv_type_size_t+set}" = set; then
  18273. echo $ECHO_N "(cached) $ECHO_C" >&6
  18274. else
  18275. cat >conftest.$ac_ext <<_ACEOF
  18276. /* confdefs.h. */
  18277. _ACEOF
  18278. cat confdefs.h >>conftest.$ac_ext
  18279. cat >>conftest.$ac_ext <<_ACEOF
  18280. /* end confdefs.h. */
  18281. $ac_includes_default
  18282. int
  18283. main ()
  18284. {
  18285. if ((size_t *) 0)
  18286. return 0;
  18287. if (sizeof (size_t))
  18288. return 0;
  18289. ;
  18290. return 0;
  18291. }
  18292. _ACEOF
  18293. rm -f conftest.$ac_objext
  18294. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18295. (eval $ac_compile) 2>conftest.er1
  18296. ac_status=$?
  18297. grep -v '^ *+' conftest.er1 >conftest.err
  18298. rm -f conftest.er1
  18299. cat conftest.err >&5
  18300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18301. (exit $ac_status); } &&
  18302. { ac_try='test -z "$ac_c_werror_flag"
  18303. || test ! -s conftest.err'
  18304. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18305. (eval $ac_try) 2>&5
  18306. ac_status=$?
  18307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18308. (exit $ac_status); }; } &&
  18309. { ac_try='test -s conftest.$ac_objext'
  18310. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18311. (eval $ac_try) 2>&5
  18312. ac_status=$?
  18313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18314. (exit $ac_status); }; }; then
  18315. ac_cv_type_size_t=yes
  18316. else
  18317. echo "$as_me: failed program was:" >&5
  18318. sed 's/^/| /' conftest.$ac_ext >&5
  18319. ac_cv_type_size_t=no
  18320. fi
  18321. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18322. fi
  18323. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  18324. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  18325. if test $ac_cv_type_size_t = yes; then
  18326. :
  18327. else
  18328. cat >>confdefs.h <<_ACEOF
  18329. #define size_t unsigned
  18330. _ACEOF
  18331. fi
  18332. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  18333. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  18334. if test "${ac_cv_header_time+set}" = set; then
  18335. echo $ECHO_N "(cached) $ECHO_C" >&6
  18336. else
  18337. cat >conftest.$ac_ext <<_ACEOF
  18338. /* confdefs.h. */
  18339. _ACEOF
  18340. cat confdefs.h >>conftest.$ac_ext
  18341. cat >>conftest.$ac_ext <<_ACEOF
  18342. /* end confdefs.h. */
  18343. #include <sys/types.h>
  18344. #include <sys/time.h>
  18345. #include <time.h>
  18346. int
  18347. main ()
  18348. {
  18349. if ((struct tm *) 0)
  18350. return 0;
  18351. ;
  18352. return 0;
  18353. }
  18354. _ACEOF
  18355. rm -f conftest.$ac_objext
  18356. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18357. (eval $ac_compile) 2>conftest.er1
  18358. ac_status=$?
  18359. grep -v '^ *+' conftest.er1 >conftest.err
  18360. rm -f conftest.er1
  18361. cat conftest.err >&5
  18362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18363. (exit $ac_status); } &&
  18364. { ac_try='test -z "$ac_c_werror_flag"
  18365. || test ! -s conftest.err'
  18366. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18367. (eval $ac_try) 2>&5
  18368. ac_status=$?
  18369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18370. (exit $ac_status); }; } &&
  18371. { ac_try='test -s conftest.$ac_objext'
  18372. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18373. (eval $ac_try) 2>&5
  18374. ac_status=$?
  18375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18376. (exit $ac_status); }; }; then
  18377. ac_cv_header_time=yes
  18378. else
  18379. echo "$as_me: failed program was:" >&5
  18380. sed 's/^/| /' conftest.$ac_ext >&5
  18381. ac_cv_header_time=no
  18382. fi
  18383. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18384. fi
  18385. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  18386. echo "${ECHO_T}$ac_cv_header_time" >&6
  18387. if test $ac_cv_header_time = yes; then
  18388. cat >>confdefs.h <<\_ACEOF
  18389. #define TIME_WITH_SYS_TIME 1
  18390. _ACEOF
  18391. fi
  18392. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  18393. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  18394. if test "${ac_cv_struct_tm+set}" = set; then
  18395. echo $ECHO_N "(cached) $ECHO_C" >&6
  18396. else
  18397. cat >conftest.$ac_ext <<_ACEOF
  18398. /* confdefs.h. */
  18399. _ACEOF
  18400. cat confdefs.h >>conftest.$ac_ext
  18401. cat >>conftest.$ac_ext <<_ACEOF
  18402. /* end confdefs.h. */
  18403. #include <sys/types.h>
  18404. #include <time.h>
  18405. int
  18406. main ()
  18407. {
  18408. struct tm *tp; tp->tm_sec;
  18409. ;
  18410. return 0;
  18411. }
  18412. _ACEOF
  18413. rm -f conftest.$ac_objext
  18414. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18415. (eval $ac_compile) 2>conftest.er1
  18416. ac_status=$?
  18417. grep -v '^ *+' conftest.er1 >conftest.err
  18418. rm -f conftest.er1
  18419. cat conftest.err >&5
  18420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18421. (exit $ac_status); } &&
  18422. { ac_try='test -z "$ac_c_werror_flag"
  18423. || test ! -s conftest.err'
  18424. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18425. (eval $ac_try) 2>&5
  18426. ac_status=$?
  18427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18428. (exit $ac_status); }; } &&
  18429. { ac_try='test -s conftest.$ac_objext'
  18430. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18431. (eval $ac_try) 2>&5
  18432. ac_status=$?
  18433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18434. (exit $ac_status); }; }; then
  18435. ac_cv_struct_tm=time.h
  18436. else
  18437. echo "$as_me: failed program was:" >&5
  18438. sed 's/^/| /' conftest.$ac_ext >&5
  18439. ac_cv_struct_tm=sys/time.h
  18440. fi
  18441. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18442. fi
  18443. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  18444. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  18445. if test $ac_cv_struct_tm = sys/time.h; then
  18446. cat >>confdefs.h <<\_ACEOF
  18447. #define TM_IN_SYS_TIME 1
  18448. _ACEOF
  18449. fi
  18450. # Checks for library functions.
  18451. for ac_header in unistd.h
  18452. do
  18453. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18454. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18455. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18456. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18457. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18458. echo $ECHO_N "(cached) $ECHO_C" >&6
  18459. fi
  18460. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18461. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18462. else
  18463. # Is the header compilable?
  18464. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18465. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18466. cat >conftest.$ac_ext <<_ACEOF
  18467. /* confdefs.h. */
  18468. _ACEOF
  18469. cat confdefs.h >>conftest.$ac_ext
  18470. cat >>conftest.$ac_ext <<_ACEOF
  18471. /* end confdefs.h. */
  18472. $ac_includes_default
  18473. #include <$ac_header>
  18474. _ACEOF
  18475. rm -f conftest.$ac_objext
  18476. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18477. (eval $ac_compile) 2>conftest.er1
  18478. ac_status=$?
  18479. grep -v '^ *+' conftest.er1 >conftest.err
  18480. rm -f conftest.er1
  18481. cat conftest.err >&5
  18482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18483. (exit $ac_status); } &&
  18484. { ac_try='test -z "$ac_c_werror_flag"
  18485. || test ! -s conftest.err'
  18486. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18487. (eval $ac_try) 2>&5
  18488. ac_status=$?
  18489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18490. (exit $ac_status); }; } &&
  18491. { ac_try='test -s conftest.$ac_objext'
  18492. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18493. (eval $ac_try) 2>&5
  18494. ac_status=$?
  18495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18496. (exit $ac_status); }; }; then
  18497. ac_header_compiler=yes
  18498. else
  18499. echo "$as_me: failed program was:" >&5
  18500. sed 's/^/| /' conftest.$ac_ext >&5
  18501. ac_header_compiler=no
  18502. fi
  18503. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18504. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18505. echo "${ECHO_T}$ac_header_compiler" >&6
  18506. # Is the header present?
  18507. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18508. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18509. cat >conftest.$ac_ext <<_ACEOF
  18510. /* confdefs.h. */
  18511. _ACEOF
  18512. cat confdefs.h >>conftest.$ac_ext
  18513. cat >>conftest.$ac_ext <<_ACEOF
  18514. /* end confdefs.h. */
  18515. #include <$ac_header>
  18516. _ACEOF
  18517. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18518. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18519. ac_status=$?
  18520. grep -v '^ *+' conftest.er1 >conftest.err
  18521. rm -f conftest.er1
  18522. cat conftest.err >&5
  18523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18524. (exit $ac_status); } >/dev/null; then
  18525. if test -s conftest.err; then
  18526. ac_cpp_err=$ac_c_preproc_warn_flag
  18527. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18528. else
  18529. ac_cpp_err=
  18530. fi
  18531. else
  18532. ac_cpp_err=yes
  18533. fi
  18534. if test -z "$ac_cpp_err"; then
  18535. ac_header_preproc=yes
  18536. else
  18537. echo "$as_me: failed program was:" >&5
  18538. sed 's/^/| /' conftest.$ac_ext >&5
  18539. ac_header_preproc=no
  18540. fi
  18541. rm -f conftest.err conftest.$ac_ext
  18542. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18543. echo "${ECHO_T}$ac_header_preproc" >&6
  18544. # So? What about this header?
  18545. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18546. yes:no: )
  18547. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18548. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18549. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18550. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18551. ac_header_preproc=yes
  18552. ;;
  18553. no:yes:* )
  18554. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18555. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18556. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18557. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18558. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18559. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18560. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18561. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18562. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18563. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18564. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18565. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18566. (
  18567. cat <<\_ASBOX
  18568. ## ------------------------------------------ ##
  18569. ## Report this to http://bugzilla.redhat.com/ ##
  18570. ## ------------------------------------------ ##
  18571. _ASBOX
  18572. ) |
  18573. sed "s/^/$as_me: WARNING: /" >&2
  18574. ;;
  18575. esac
  18576. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18577. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18578. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18579. echo $ECHO_N "(cached) $ECHO_C" >&6
  18580. else
  18581. eval "$as_ac_Header=\$ac_header_preproc"
  18582. fi
  18583. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18584. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18585. fi
  18586. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18587. cat >>confdefs.h <<_ACEOF
  18588. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18589. _ACEOF
  18590. fi
  18591. done
  18592. echo "$as_me:$LINENO: checking for working chown" >&5
  18593. echo $ECHO_N "checking for working chown... $ECHO_C" >&6
  18594. if test "${ac_cv_func_chown_works+set}" = set; then
  18595. echo $ECHO_N "(cached) $ECHO_C" >&6
  18596. else
  18597. if test "$cross_compiling" = yes; then
  18598. ac_cv_func_chown_works=no
  18599. else
  18600. cat >conftest.$ac_ext <<_ACEOF
  18601. /* confdefs.h. */
  18602. _ACEOF
  18603. cat confdefs.h >>conftest.$ac_ext
  18604. cat >>conftest.$ac_ext <<_ACEOF
  18605. /* end confdefs.h. */
  18606. $ac_includes_default
  18607. #include <fcntl.h>
  18608. int
  18609. main ()
  18610. {
  18611. char *f = "conftest.chown";
  18612. struct stat before, after;
  18613. if (creat (f, 0600) < 0)
  18614. exit (1);
  18615. if (stat (f, &before) < 0)
  18616. exit (1);
  18617. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  18618. exit (1);
  18619. if (stat (f, &after) < 0)
  18620. exit (1);
  18621. exit ((before.st_uid == after.st_uid
  18622. && before.st_gid == after.st_gid) ? 0 : 1);
  18623. ;
  18624. return 0;
  18625. }
  18626. _ACEOF
  18627. rm -f conftest$ac_exeext
  18628. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18629. (eval $ac_link) 2>&5
  18630. ac_status=$?
  18631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18632. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18633. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18634. (eval $ac_try) 2>&5
  18635. ac_status=$?
  18636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18637. (exit $ac_status); }; }; then
  18638. ac_cv_func_chown_works=yes
  18639. else
  18640. echo "$as_me: program exited with status $ac_status" >&5
  18641. echo "$as_me: failed program was:" >&5
  18642. sed 's/^/| /' conftest.$ac_ext >&5
  18643. ( exit $ac_status )
  18644. ac_cv_func_chown_works=no
  18645. fi
  18646. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18647. fi
  18648. rm -f conftest.chown
  18649. fi
  18650. echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
  18651. echo "${ECHO_T}$ac_cv_func_chown_works" >&6
  18652. if test $ac_cv_func_chown_works = yes; then
  18653. cat >>confdefs.h <<\_ACEOF
  18654. #define HAVE_CHOWN 1
  18655. _ACEOF
  18656. fi
  18657. echo "$as_me:$LINENO: checking whether closedir returns void" >&5
  18658. echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
  18659. if test "${ac_cv_func_closedir_void+set}" = set; then
  18660. echo $ECHO_N "(cached) $ECHO_C" >&6
  18661. else
  18662. if test "$cross_compiling" = yes; then
  18663. ac_cv_func_closedir_void=yes
  18664. else
  18665. cat >conftest.$ac_ext <<_ACEOF
  18666. /* confdefs.h. */
  18667. _ACEOF
  18668. cat confdefs.h >>conftest.$ac_ext
  18669. cat >>conftest.$ac_ext <<_ACEOF
  18670. /* end confdefs.h. */
  18671. $ac_includes_default
  18672. #include <$ac_header_dirent>
  18673. #ifndef __cplusplus
  18674. int closedir ();
  18675. #endif
  18676. int
  18677. main ()
  18678. {
  18679. exit (closedir (opendir (".")) != 0);
  18680. ;
  18681. return 0;
  18682. }
  18683. _ACEOF
  18684. rm -f conftest$ac_exeext
  18685. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18686. (eval $ac_link) 2>&5
  18687. ac_status=$?
  18688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18689. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18690. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18691. (eval $ac_try) 2>&5
  18692. ac_status=$?
  18693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18694. (exit $ac_status); }; }; then
  18695. ac_cv_func_closedir_void=no
  18696. else
  18697. echo "$as_me: program exited with status $ac_status" >&5
  18698. echo "$as_me: failed program was:" >&5
  18699. sed 's/^/| /' conftest.$ac_ext >&5
  18700. ( exit $ac_status )
  18701. ac_cv_func_closedir_void=yes
  18702. fi
  18703. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18704. fi
  18705. fi
  18706. echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
  18707. echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
  18708. if test $ac_cv_func_closedir_void = yes; then
  18709. cat >>confdefs.h <<\_ACEOF
  18710. #define CLOSEDIR_VOID 1
  18711. _ACEOF
  18712. fi
  18713. echo "$as_me:$LINENO: checking for error_at_line" >&5
  18714. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
  18715. if test "${ac_cv_lib_error_at_line+set}" = set; then
  18716. echo $ECHO_N "(cached) $ECHO_C" >&6
  18717. else
  18718. cat >conftest.$ac_ext <<_ACEOF
  18719. /* confdefs.h. */
  18720. _ACEOF
  18721. cat confdefs.h >>conftest.$ac_ext
  18722. cat >>conftest.$ac_ext <<_ACEOF
  18723. /* end confdefs.h. */
  18724. $ac_includes_default
  18725. int
  18726. main ()
  18727. {
  18728. error_at_line (0, 0, "", 0, "");
  18729. ;
  18730. return 0;
  18731. }
  18732. _ACEOF
  18733. rm -f conftest.$ac_objext conftest$ac_exeext
  18734. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18735. (eval $ac_link) 2>conftest.er1
  18736. ac_status=$?
  18737. grep -v '^ *+' conftest.er1 >conftest.err
  18738. rm -f conftest.er1
  18739. cat conftest.err >&5
  18740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18741. (exit $ac_status); } &&
  18742. { ac_try='test -z "$ac_c_werror_flag"
  18743. || test ! -s conftest.err'
  18744. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18745. (eval $ac_try) 2>&5
  18746. ac_status=$?
  18747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18748. (exit $ac_status); }; } &&
  18749. { ac_try='test -s conftest$ac_exeext'
  18750. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18751. (eval $ac_try) 2>&5
  18752. ac_status=$?
  18753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18754. (exit $ac_status); }; }; then
  18755. ac_cv_lib_error_at_line=yes
  18756. else
  18757. echo "$as_me: failed program was:" >&5
  18758. sed 's/^/| /' conftest.$ac_ext >&5
  18759. ac_cv_lib_error_at_line=no
  18760. fi
  18761. rm -f conftest.err conftest.$ac_objext \
  18762. conftest$ac_exeext conftest.$ac_ext
  18763. fi
  18764. echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  18765. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
  18766. if test $ac_cv_lib_error_at_line = no; then
  18767. case $LIBOBJS in
  18768. "error.$ac_objext" | \
  18769. *" error.$ac_objext" | \
  18770. "error.$ac_objext "* | \
  18771. *" error.$ac_objext "* ) ;;
  18772. *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
  18773. esac
  18774. fi
  18775. for ac_header in unistd.h vfork.h
  18776. do
  18777. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18778. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18779. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18780. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18781. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18782. echo $ECHO_N "(cached) $ECHO_C" >&6
  18783. fi
  18784. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18785. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18786. else
  18787. # Is the header compilable?
  18788. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18789. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18790. cat >conftest.$ac_ext <<_ACEOF
  18791. /* confdefs.h. */
  18792. _ACEOF
  18793. cat confdefs.h >>conftest.$ac_ext
  18794. cat >>conftest.$ac_ext <<_ACEOF
  18795. /* end confdefs.h. */
  18796. $ac_includes_default
  18797. #include <$ac_header>
  18798. _ACEOF
  18799. rm -f conftest.$ac_objext
  18800. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18801. (eval $ac_compile) 2>conftest.er1
  18802. ac_status=$?
  18803. grep -v '^ *+' conftest.er1 >conftest.err
  18804. rm -f conftest.er1
  18805. cat conftest.err >&5
  18806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18807. (exit $ac_status); } &&
  18808. { ac_try='test -z "$ac_c_werror_flag"
  18809. || test ! -s conftest.err'
  18810. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18811. (eval $ac_try) 2>&5
  18812. ac_status=$?
  18813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18814. (exit $ac_status); }; } &&
  18815. { ac_try='test -s conftest.$ac_objext'
  18816. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18817. (eval $ac_try) 2>&5
  18818. ac_status=$?
  18819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18820. (exit $ac_status); }; }; then
  18821. ac_header_compiler=yes
  18822. else
  18823. echo "$as_me: failed program was:" >&5
  18824. sed 's/^/| /' conftest.$ac_ext >&5
  18825. ac_header_compiler=no
  18826. fi
  18827. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18828. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18829. echo "${ECHO_T}$ac_header_compiler" >&6
  18830. # Is the header present?
  18831. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18832. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18833. cat >conftest.$ac_ext <<_ACEOF
  18834. /* confdefs.h. */
  18835. _ACEOF
  18836. cat confdefs.h >>conftest.$ac_ext
  18837. cat >>conftest.$ac_ext <<_ACEOF
  18838. /* end confdefs.h. */
  18839. #include <$ac_header>
  18840. _ACEOF
  18841. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18842. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18843. ac_status=$?
  18844. grep -v '^ *+' conftest.er1 >conftest.err
  18845. rm -f conftest.er1
  18846. cat conftest.err >&5
  18847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18848. (exit $ac_status); } >/dev/null; then
  18849. if test -s conftest.err; then
  18850. ac_cpp_err=$ac_c_preproc_warn_flag
  18851. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18852. else
  18853. ac_cpp_err=
  18854. fi
  18855. else
  18856. ac_cpp_err=yes
  18857. fi
  18858. if test -z "$ac_cpp_err"; then
  18859. ac_header_preproc=yes
  18860. else
  18861. echo "$as_me: failed program was:" >&5
  18862. sed 's/^/| /' conftest.$ac_ext >&5
  18863. ac_header_preproc=no
  18864. fi
  18865. rm -f conftest.err conftest.$ac_ext
  18866. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18867. echo "${ECHO_T}$ac_header_preproc" >&6
  18868. # So? What about this header?
  18869. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18870. yes:no: )
  18871. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18872. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18873. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18874. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18875. ac_header_preproc=yes
  18876. ;;
  18877. no:yes:* )
  18878. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18879. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18880. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18881. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18882. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18883. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18884. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18885. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18886. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18887. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18888. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18889. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18890. (
  18891. cat <<\_ASBOX
  18892. ## ------------------------------------------ ##
  18893. ## Report this to http://bugzilla.redhat.com/ ##
  18894. ## ------------------------------------------ ##
  18895. _ASBOX
  18896. ) |
  18897. sed "s/^/$as_me: WARNING: /" >&2
  18898. ;;
  18899. esac
  18900. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18901. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18902. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18903. echo $ECHO_N "(cached) $ECHO_C" >&6
  18904. else
  18905. eval "$as_ac_Header=\$ac_header_preproc"
  18906. fi
  18907. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18908. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18909. fi
  18910. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18911. cat >>confdefs.h <<_ACEOF
  18912. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18913. _ACEOF
  18914. fi
  18915. done
  18916. for ac_func in fork vfork
  18917. do
  18918. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18919. echo "$as_me:$LINENO: checking for $ac_func" >&5
  18920. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  18921. if eval "test \"\${$as_ac_var+set}\" = set"; then
  18922. echo $ECHO_N "(cached) $ECHO_C" >&6
  18923. else
  18924. cat >conftest.$ac_ext <<_ACEOF
  18925. /* confdefs.h. */
  18926. _ACEOF
  18927. cat confdefs.h >>conftest.$ac_ext
  18928. cat >>conftest.$ac_ext <<_ACEOF
  18929. /* end confdefs.h. */
  18930. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18931. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18932. #define $ac_func innocuous_$ac_func
  18933. /* System header to define __stub macros and hopefully few prototypes,
  18934. which can conflict with char $ac_func (); below.
  18935. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18936. <limits.h> exists even on freestanding compilers. */
  18937. #ifdef __STDC__
  18938. # include <limits.h>
  18939. #else
  18940. # include <assert.h>
  18941. #endif
  18942. #undef $ac_func
  18943. /* Override any gcc2 internal prototype to avoid an error. */
  18944. #ifdef __cplusplus
  18945. extern "C"
  18946. {
  18947. #endif
  18948. /* We use char because int might match the return type of a gcc2
  18949. builtin and then its argument prototype would still apply. */
  18950. char $ac_func ();
  18951. /* The GNU C library defines this for functions which it implements
  18952. to always fail with ENOSYS. Some functions are actually named
  18953. something starting with __ and the normal name is an alias. */
  18954. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  18955. choke me
  18956. #else
  18957. char (*f) () = $ac_func;
  18958. #endif
  18959. #ifdef __cplusplus
  18960. }
  18961. #endif
  18962. int
  18963. main ()
  18964. {
  18965. return f != $ac_func;
  18966. ;
  18967. return 0;
  18968. }
  18969. _ACEOF
  18970. rm -f conftest.$ac_objext conftest$ac_exeext
  18971. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18972. (eval $ac_link) 2>conftest.er1
  18973. ac_status=$?
  18974. grep -v '^ *+' conftest.er1 >conftest.err
  18975. rm -f conftest.er1
  18976. cat conftest.err >&5
  18977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18978. (exit $ac_status); } &&
  18979. { ac_try='test -z "$ac_c_werror_flag"
  18980. || test ! -s conftest.err'
  18981. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18982. (eval $ac_try) 2>&5
  18983. ac_status=$?
  18984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18985. (exit $ac_status); }; } &&
  18986. { ac_try='test -s conftest$ac_exeext'
  18987. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18988. (eval $ac_try) 2>&5
  18989. ac_status=$?
  18990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18991. (exit $ac_status); }; }; then
  18992. eval "$as_ac_var=yes"
  18993. else
  18994. echo "$as_me: failed program was:" >&5
  18995. sed 's/^/| /' conftest.$ac_ext >&5
  18996. eval "$as_ac_var=no"
  18997. fi
  18998. rm -f conftest.err conftest.$ac_objext \
  18999. conftest$ac_exeext conftest.$ac_ext
  19000. fi
  19001. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  19002. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  19003. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19004. cat >>confdefs.h <<_ACEOF
  19005. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19006. _ACEOF
  19007. fi
  19008. done
  19009. if test "x$ac_cv_func_fork" = xyes; then
  19010. echo "$as_me:$LINENO: checking for working fork" >&5
  19011. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  19012. if test "${ac_cv_func_fork_works+set}" = set; then
  19013. echo $ECHO_N "(cached) $ECHO_C" >&6
  19014. else
  19015. if test "$cross_compiling" = yes; then
  19016. ac_cv_func_fork_works=cross
  19017. else
  19018. cat >conftest.$ac_ext <<_ACEOF
  19019. /* By Ruediger Kuhlmann. */
  19020. #include <sys/types.h>
  19021. #if HAVE_UNISTD_H
  19022. # include <unistd.h>
  19023. #endif
  19024. /* Some systems only have a dummy stub for fork() */
  19025. int main ()
  19026. {
  19027. if (fork() < 0)
  19028. exit (1);
  19029. exit (0);
  19030. }
  19031. _ACEOF
  19032. rm -f conftest$ac_exeext
  19033. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19034. (eval $ac_link) 2>&5
  19035. ac_status=$?
  19036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19037. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19038. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19039. (eval $ac_try) 2>&5
  19040. ac_status=$?
  19041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19042. (exit $ac_status); }; }; then
  19043. ac_cv_func_fork_works=yes
  19044. else
  19045. echo "$as_me: program exited with status $ac_status" >&5
  19046. echo "$as_me: failed program was:" >&5
  19047. sed 's/^/| /' conftest.$ac_ext >&5
  19048. ( exit $ac_status )
  19049. ac_cv_func_fork_works=no
  19050. fi
  19051. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19052. fi
  19053. fi
  19054. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  19055. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  19056. else
  19057. ac_cv_func_fork_works=$ac_cv_func_fork
  19058. fi
  19059. if test "x$ac_cv_func_fork_works" = xcross; then
  19060. case $host in
  19061. *-*-amigaos* | *-*-msdosdjgpp*)
  19062. # Override, as these systems have only a dummy fork() stub
  19063. ac_cv_func_fork_works=no
  19064. ;;
  19065. *)
  19066. ac_cv_func_fork_works=yes
  19067. ;;
  19068. esac
  19069. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  19070. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  19071. fi
  19072. ac_cv_func_vfork_works=$ac_cv_func_vfork
  19073. if test "x$ac_cv_func_vfork" = xyes; then
  19074. echo "$as_me:$LINENO: checking for working vfork" >&5
  19075. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  19076. if test "${ac_cv_func_vfork_works+set}" = set; then
  19077. echo $ECHO_N "(cached) $ECHO_C" >&6
  19078. else
  19079. if test "$cross_compiling" = yes; then
  19080. ac_cv_func_vfork_works=cross
  19081. else
  19082. cat >conftest.$ac_ext <<_ACEOF
  19083. /* confdefs.h. */
  19084. _ACEOF
  19085. cat confdefs.h >>conftest.$ac_ext
  19086. cat >>conftest.$ac_ext <<_ACEOF
  19087. /* end confdefs.h. */
  19088. /* Thanks to Paul Eggert for this test. */
  19089. #include <stdio.h>
  19090. #include <stdlib.h>
  19091. #include <sys/types.h>
  19092. #include <sys/stat.h>
  19093. #include <sys/wait.h>
  19094. #if HAVE_UNISTD_H
  19095. # include <unistd.h>
  19096. #endif
  19097. #if HAVE_VFORK_H
  19098. # include <vfork.h>
  19099. #endif
  19100. /* On some sparc systems, changes by the child to local and incoming
  19101. argument registers are propagated back to the parent. The compiler
  19102. is told about this with #include <vfork.h>, but some compilers
  19103. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  19104. static variable whose address is put into a register that is
  19105. clobbered by the vfork. */
  19106. static void
  19107. #ifdef __cplusplus
  19108. sparc_address_test (int arg)
  19109. # else
  19110. sparc_address_test (arg) int arg;
  19111. #endif
  19112. {
  19113. static pid_t child;
  19114. if (!child) {
  19115. child = vfork ();
  19116. if (child < 0) {
  19117. perror ("vfork");
  19118. _exit(2);
  19119. }
  19120. if (!child) {
  19121. arg = getpid();
  19122. write(-1, "", 0);
  19123. _exit (arg);
  19124. }
  19125. }
  19126. }
  19127. int
  19128. main ()
  19129. {
  19130. pid_t parent = getpid ();
  19131. pid_t child;
  19132. sparc_address_test (0);
  19133. child = vfork ();
  19134. if (child == 0) {
  19135. /* Here is another test for sparc vfork register problems. This
  19136. test uses lots of local variables, at least as many local
  19137. variables as main has allocated so far including compiler
  19138. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  19139. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  19140. reuse the register of parent for one of the local variables,
  19141. since it will think that parent can't possibly be used any more
  19142. in this routine. Assigning to the local variable will thus
  19143. munge parent in the parent process. */
  19144. pid_t
  19145. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  19146. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  19147. /* Convince the compiler that p..p7 are live; otherwise, it might
  19148. use the same hardware register for all 8 local variables. */
  19149. if (p != p1 || p != p2 || p != p3 || p != p4
  19150. || p != p5 || p != p6 || p != p7)
  19151. _exit(1);
  19152. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  19153. from child file descriptors. If the child closes a descriptor
  19154. before it execs or exits, this munges the parent's descriptor
  19155. as well. Test for this by closing stdout in the child. */
  19156. _exit(close(fileno(stdout)) != 0);
  19157. } else {
  19158. int status;
  19159. struct stat st;
  19160. while (wait(&status) != child)
  19161. ;
  19162. exit(
  19163. /* Was there some problem with vforking? */
  19164. child < 0
  19165. /* Did the child fail? (This shouldn't happen.) */
  19166. || status
  19167. /* Did the vfork/compiler bug occur? */
  19168. || parent != getpid()
  19169. /* Did the file descriptor bug occur? */
  19170. || fstat(fileno(stdout), &st) != 0
  19171. );
  19172. }
  19173. }
  19174. _ACEOF
  19175. rm -f conftest$ac_exeext
  19176. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19177. (eval $ac_link) 2>&5
  19178. ac_status=$?
  19179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19180. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19181. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19182. (eval $ac_try) 2>&5
  19183. ac_status=$?
  19184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19185. (exit $ac_status); }; }; then
  19186. ac_cv_func_vfork_works=yes
  19187. else
  19188. echo "$as_me: program exited with status $ac_status" >&5
  19189. echo "$as_me: failed program was:" >&5
  19190. sed 's/^/| /' conftest.$ac_ext >&5
  19191. ( exit $ac_status )
  19192. ac_cv_func_vfork_works=no
  19193. fi
  19194. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19195. fi
  19196. fi
  19197. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  19198. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  19199. fi;
  19200. if test "x$ac_cv_func_fork_works" = xcross; then
  19201. ac_cv_func_vfork_works=$ac_cv_func_vfork
  19202. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  19203. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  19204. fi
  19205. if test "x$ac_cv_func_vfork_works" = xyes; then
  19206. cat >>confdefs.h <<\_ACEOF
  19207. #define HAVE_WORKING_VFORK 1
  19208. _ACEOF
  19209. else
  19210. cat >>confdefs.h <<\_ACEOF
  19211. #define vfork fork
  19212. _ACEOF
  19213. fi
  19214. if test "x$ac_cv_func_fork_works" = xyes; then
  19215. cat >>confdefs.h <<\_ACEOF
  19216. #define HAVE_WORKING_FORK 1
  19217. _ACEOF
  19218. fi
  19219. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  19220. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  19221. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  19222. echo $ECHO_N "(cached) $ECHO_C" >&6
  19223. else
  19224. rm -f conftest.sym conftest.file
  19225. echo >conftest.file
  19226. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  19227. if test "$cross_compiling" = yes; then
  19228. ac_cv_func_lstat_dereferences_slashed_symlink=no
  19229. else
  19230. cat >conftest.$ac_ext <<_ACEOF
  19231. /* confdefs.h. */
  19232. _ACEOF
  19233. cat confdefs.h >>conftest.$ac_ext
  19234. cat >>conftest.$ac_ext <<_ACEOF
  19235. /* end confdefs.h. */
  19236. $ac_includes_default
  19237. int
  19238. main ()
  19239. {
  19240. struct stat sbuf;
  19241. /* Linux will dereference the symlink and fail.
  19242. That is better in the sense that it means we will not
  19243. have to compile and use the lstat wrapper. */
  19244. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  19245. ;
  19246. return 0;
  19247. }
  19248. _ACEOF
  19249. rm -f conftest$ac_exeext
  19250. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19251. (eval $ac_link) 2>&5
  19252. ac_status=$?
  19253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19254. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19255. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19256. (eval $ac_try) 2>&5
  19257. ac_status=$?
  19258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19259. (exit $ac_status); }; }; then
  19260. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  19261. else
  19262. echo "$as_me: program exited with status $ac_status" >&5
  19263. echo "$as_me: failed program was:" >&5
  19264. sed 's/^/| /' conftest.$ac_ext >&5
  19265. ( exit $ac_status )
  19266. ac_cv_func_lstat_dereferences_slashed_symlink=no
  19267. fi
  19268. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19269. fi
  19270. else
  19271. # If the `ln -s' command failed, then we probably don't even
  19272. # have an lstat function.
  19273. ac_cv_func_lstat_dereferences_slashed_symlink=no
  19274. fi
  19275. rm -f conftest.sym conftest.file
  19276. fi
  19277. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  19278. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  19279. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  19280. cat >>confdefs.h <<_ACEOF
  19281. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  19282. _ACEOF
  19283. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  19284. case $LIBOBJS in
  19285. "lstat.$ac_objext" | \
  19286. *" lstat.$ac_objext" | \
  19287. "lstat.$ac_objext "* | \
  19288. *" lstat.$ac_objext "* ) ;;
  19289. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  19290. esac
  19291. fi
  19292. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  19293. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  19294. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  19295. echo $ECHO_N "(cached) $ECHO_C" >&6
  19296. else
  19297. if test "$cross_compiling" = yes; then
  19298. ac_cv_func_lstat_empty_string_bug=yes
  19299. else
  19300. cat >conftest.$ac_ext <<_ACEOF
  19301. /* confdefs.h. */
  19302. _ACEOF
  19303. cat confdefs.h >>conftest.$ac_ext
  19304. cat >>conftest.$ac_ext <<_ACEOF
  19305. /* end confdefs.h. */
  19306. $ac_includes_default
  19307. int
  19308. main ()
  19309. {
  19310. struct stat sbuf;
  19311. exit (lstat ("", &sbuf) ? 1 : 0);
  19312. ;
  19313. return 0;
  19314. }
  19315. _ACEOF
  19316. rm -f conftest$ac_exeext
  19317. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19318. (eval $ac_link) 2>&5
  19319. ac_status=$?
  19320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19321. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19322. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19323. (eval $ac_try) 2>&5
  19324. ac_status=$?
  19325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19326. (exit $ac_status); }; }; then
  19327. ac_cv_func_lstat_empty_string_bug=yes
  19328. else
  19329. echo "$as_me: program exited with status $ac_status" >&5
  19330. echo "$as_me: failed program was:" >&5
  19331. sed 's/^/| /' conftest.$ac_ext >&5
  19332. ( exit $ac_status )
  19333. ac_cv_func_lstat_empty_string_bug=no
  19334. fi
  19335. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19336. fi
  19337. fi
  19338. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  19339. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  19340. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  19341. case $LIBOBJS in
  19342. "lstat.$ac_objext" | \
  19343. *" lstat.$ac_objext" | \
  19344. "lstat.$ac_objext "* | \
  19345. *" lstat.$ac_objext "* ) ;;
  19346. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  19347. esac
  19348. cat >>confdefs.h <<_ACEOF
  19349. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  19350. _ACEOF
  19351. fi
  19352. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  19353. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  19354. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  19355. echo $ECHO_N "(cached) $ECHO_C" >&6
  19356. else
  19357. rm -f conftest.sym conftest.file
  19358. echo >conftest.file
  19359. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  19360. if test "$cross_compiling" = yes; then
  19361. ac_cv_func_lstat_dereferences_slashed_symlink=no
  19362. else
  19363. cat >conftest.$ac_ext <<_ACEOF
  19364. /* confdefs.h. */
  19365. _ACEOF
  19366. cat confdefs.h >>conftest.$ac_ext
  19367. cat >>conftest.$ac_ext <<_ACEOF
  19368. /* end confdefs.h. */
  19369. $ac_includes_default
  19370. int
  19371. main ()
  19372. {
  19373. struct stat sbuf;
  19374. /* Linux will dereference the symlink and fail.
  19375. That is better in the sense that it means we will not
  19376. have to compile and use the lstat wrapper. */
  19377. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  19378. ;
  19379. return 0;
  19380. }
  19381. _ACEOF
  19382. rm -f conftest$ac_exeext
  19383. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19384. (eval $ac_link) 2>&5
  19385. ac_status=$?
  19386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19387. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19389. (eval $ac_try) 2>&5
  19390. ac_status=$?
  19391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19392. (exit $ac_status); }; }; then
  19393. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  19394. else
  19395. echo "$as_me: program exited with status $ac_status" >&5
  19396. echo "$as_me: failed program was:" >&5
  19397. sed 's/^/| /' conftest.$ac_ext >&5
  19398. ( exit $ac_status )
  19399. ac_cv_func_lstat_dereferences_slashed_symlink=no
  19400. fi
  19401. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19402. fi
  19403. else
  19404. # If the `ln -s' command failed, then we probably don't even
  19405. # have an lstat function.
  19406. ac_cv_func_lstat_dereferences_slashed_symlink=no
  19407. fi
  19408. rm -f conftest.sym conftest.file
  19409. fi
  19410. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  19411. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  19412. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  19413. cat >>confdefs.h <<_ACEOF
  19414. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  19415. _ACEOF
  19416. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  19417. case $LIBOBJS in
  19418. "lstat.$ac_objext" | \
  19419. *" lstat.$ac_objext" | \
  19420. "lstat.$ac_objext "* | \
  19421. *" lstat.$ac_objext "* ) ;;
  19422. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  19423. esac
  19424. fi
  19425. for ac_header in stdlib.h
  19426. do
  19427. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19428. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19429. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19430. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19431. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19432. echo $ECHO_N "(cached) $ECHO_C" >&6
  19433. fi
  19434. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19435. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19436. else
  19437. # Is the header compilable?
  19438. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19439. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  19440. cat >conftest.$ac_ext <<_ACEOF
  19441. /* confdefs.h. */
  19442. _ACEOF
  19443. cat confdefs.h >>conftest.$ac_ext
  19444. cat >>conftest.$ac_ext <<_ACEOF
  19445. /* end confdefs.h. */
  19446. $ac_includes_default
  19447. #include <$ac_header>
  19448. _ACEOF
  19449. rm -f conftest.$ac_objext
  19450. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19451. (eval $ac_compile) 2>conftest.er1
  19452. ac_status=$?
  19453. grep -v '^ *+' conftest.er1 >conftest.err
  19454. rm -f conftest.er1
  19455. cat conftest.err >&5
  19456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19457. (exit $ac_status); } &&
  19458. { ac_try='test -z "$ac_c_werror_flag"
  19459. || test ! -s conftest.err'
  19460. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19461. (eval $ac_try) 2>&5
  19462. ac_status=$?
  19463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19464. (exit $ac_status); }; } &&
  19465. { ac_try='test -s conftest.$ac_objext'
  19466. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19467. (eval $ac_try) 2>&5
  19468. ac_status=$?
  19469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19470. (exit $ac_status); }; }; then
  19471. ac_header_compiler=yes
  19472. else
  19473. echo "$as_me: failed program was:" >&5
  19474. sed 's/^/| /' conftest.$ac_ext >&5
  19475. ac_header_compiler=no
  19476. fi
  19477. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19478. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19479. echo "${ECHO_T}$ac_header_compiler" >&6
  19480. # Is the header present?
  19481. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19482. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  19483. cat >conftest.$ac_ext <<_ACEOF
  19484. /* confdefs.h. */
  19485. _ACEOF
  19486. cat confdefs.h >>conftest.$ac_ext
  19487. cat >>conftest.$ac_ext <<_ACEOF
  19488. /* end confdefs.h. */
  19489. #include <$ac_header>
  19490. _ACEOF
  19491. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  19492. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  19493. ac_status=$?
  19494. grep -v '^ *+' conftest.er1 >conftest.err
  19495. rm -f conftest.er1
  19496. cat conftest.err >&5
  19497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19498. (exit $ac_status); } >/dev/null; then
  19499. if test -s conftest.err; then
  19500. ac_cpp_err=$ac_c_preproc_warn_flag
  19501. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19502. else
  19503. ac_cpp_err=
  19504. fi
  19505. else
  19506. ac_cpp_err=yes
  19507. fi
  19508. if test -z "$ac_cpp_err"; then
  19509. ac_header_preproc=yes
  19510. else
  19511. echo "$as_me: failed program was:" >&5
  19512. sed 's/^/| /' conftest.$ac_ext >&5
  19513. ac_header_preproc=no
  19514. fi
  19515. rm -f conftest.err conftest.$ac_ext
  19516. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19517. echo "${ECHO_T}$ac_header_preproc" >&6
  19518. # So? What about this header?
  19519. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19520. yes:no: )
  19521. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19522. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19523. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19524. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19525. ac_header_preproc=yes
  19526. ;;
  19527. no:yes:* )
  19528. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19529. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19530. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19531. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19532. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19533. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19534. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19535. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19536. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19537. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19538. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19539. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19540. (
  19541. cat <<\_ASBOX
  19542. ## ------------------------------------------ ##
  19543. ## Report this to http://bugzilla.redhat.com/ ##
  19544. ## ------------------------------------------ ##
  19545. _ASBOX
  19546. ) |
  19547. sed "s/^/$as_me: WARNING: /" >&2
  19548. ;;
  19549. esac
  19550. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19551. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19552. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19553. echo $ECHO_N "(cached) $ECHO_C" >&6
  19554. else
  19555. eval "$as_ac_Header=\$ac_header_preproc"
  19556. fi
  19557. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19558. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19559. fi
  19560. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19561. cat >>confdefs.h <<_ACEOF
  19562. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19563. _ACEOF
  19564. fi
  19565. done
  19566. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  19567. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  19568. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  19569. echo $ECHO_N "(cached) $ECHO_C" >&6
  19570. else
  19571. if test "$cross_compiling" = yes; then
  19572. ac_cv_func_malloc_0_nonnull=no
  19573. else
  19574. cat >conftest.$ac_ext <<_ACEOF
  19575. /* confdefs.h. */
  19576. _ACEOF
  19577. cat confdefs.h >>conftest.$ac_ext
  19578. cat >>conftest.$ac_ext <<_ACEOF
  19579. /* end confdefs.h. */
  19580. #if STDC_HEADERS || HAVE_STDLIB_H
  19581. # include <stdlib.h>
  19582. #else
  19583. char *malloc ();
  19584. #endif
  19585. int
  19586. main ()
  19587. {
  19588. exit (malloc (0) ? 0 : 1);
  19589. ;
  19590. return 0;
  19591. }
  19592. _ACEOF
  19593. rm -f conftest$ac_exeext
  19594. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19595. (eval $ac_link) 2>&5
  19596. ac_status=$?
  19597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19598. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19599. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19600. (eval $ac_try) 2>&5
  19601. ac_status=$?
  19602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19603. (exit $ac_status); }; }; then
  19604. ac_cv_func_malloc_0_nonnull=yes
  19605. else
  19606. echo "$as_me: program exited with status $ac_status" >&5
  19607. echo "$as_me: failed program was:" >&5
  19608. sed 's/^/| /' conftest.$ac_ext >&5
  19609. ( exit $ac_status )
  19610. ac_cv_func_malloc_0_nonnull=no
  19611. fi
  19612. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19613. fi
  19614. fi
  19615. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  19616. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  19617. if test $ac_cv_func_malloc_0_nonnull = yes; then
  19618. cat >>confdefs.h <<\_ACEOF
  19619. #define HAVE_MALLOC 1
  19620. _ACEOF
  19621. else
  19622. cat >>confdefs.h <<\_ACEOF
  19623. #define HAVE_MALLOC 0
  19624. _ACEOF
  19625. case $LIBOBJS in
  19626. "malloc.$ac_objext" | \
  19627. *" malloc.$ac_objext" | \
  19628. "malloc.$ac_objext "* | \
  19629. *" malloc.$ac_objext "* ) ;;
  19630. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  19631. esac
  19632. cat >>confdefs.h <<\_ACEOF
  19633. #define malloc rpl_malloc
  19634. _ACEOF
  19635. fi
  19636. echo "$as_me:$LINENO: checking for working memcmp" >&5
  19637. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  19638. if test "${ac_cv_func_memcmp_working+set}" = set; then
  19639. echo $ECHO_N "(cached) $ECHO_C" >&6
  19640. else
  19641. if test "$cross_compiling" = yes; then
  19642. ac_cv_func_memcmp_working=no
  19643. else
  19644. cat >conftest.$ac_ext <<_ACEOF
  19645. /* confdefs.h. */
  19646. _ACEOF
  19647. cat confdefs.h >>conftest.$ac_ext
  19648. cat >>conftest.$ac_ext <<_ACEOF
  19649. /* end confdefs.h. */
  19650. $ac_includes_default
  19651. int
  19652. main ()
  19653. {
  19654. /* Some versions of memcmp are not 8-bit clean. */
  19655. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  19656. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  19657. exit (1);
  19658. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  19659. or more and with at least one buffer not starting on a 4-byte boundary.
  19660. William Lewis provided this test program. */
  19661. {
  19662. char foo[21];
  19663. char bar[21];
  19664. int i;
  19665. for (i = 0; i < 4; i++)
  19666. {
  19667. char *a = foo + i;
  19668. char *b = bar + i;
  19669. strcpy (a, "--------01111111");
  19670. strcpy (b, "--------10000000");
  19671. if (memcmp (a, b, 16) >= 0)
  19672. exit (1);
  19673. }
  19674. exit (0);
  19675. }
  19676. ;
  19677. return 0;
  19678. }
  19679. _ACEOF
  19680. rm -f conftest$ac_exeext
  19681. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19682. (eval $ac_link) 2>&5
  19683. ac_status=$?
  19684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19685. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19686. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19687. (eval $ac_try) 2>&5
  19688. ac_status=$?
  19689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19690. (exit $ac_status); }; }; then
  19691. ac_cv_func_memcmp_working=yes
  19692. else
  19693. echo "$as_me: program exited with status $ac_status" >&5
  19694. echo "$as_me: failed program was:" >&5
  19695. sed 's/^/| /' conftest.$ac_ext >&5
  19696. ( exit $ac_status )
  19697. ac_cv_func_memcmp_working=no
  19698. fi
  19699. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19700. fi
  19701. fi
  19702. echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  19703. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  19704. test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  19705. "memcmp.$ac_objext" | \
  19706. *" memcmp.$ac_objext" | \
  19707. "memcmp.$ac_objext "* | \
  19708. *" memcmp.$ac_objext "* ) ;;
  19709. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  19710. esac
  19711. for ac_header in stdlib.h unistd.h
  19712. do
  19713. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19714. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19715. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19716. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19717. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19718. echo $ECHO_N "(cached) $ECHO_C" >&6
  19719. fi
  19720. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19721. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19722. else
  19723. # Is the header compilable?
  19724. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19725. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  19726. cat >conftest.$ac_ext <<_ACEOF
  19727. /* confdefs.h. */
  19728. _ACEOF
  19729. cat confdefs.h >>conftest.$ac_ext
  19730. cat >>conftest.$ac_ext <<_ACEOF
  19731. /* end confdefs.h. */
  19732. $ac_includes_default
  19733. #include <$ac_header>
  19734. _ACEOF
  19735. rm -f conftest.$ac_objext
  19736. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19737. (eval $ac_compile) 2>conftest.er1
  19738. ac_status=$?
  19739. grep -v '^ *+' conftest.er1 >conftest.err
  19740. rm -f conftest.er1
  19741. cat conftest.err >&5
  19742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19743. (exit $ac_status); } &&
  19744. { ac_try='test -z "$ac_c_werror_flag"
  19745. || test ! -s conftest.err'
  19746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19747. (eval $ac_try) 2>&5
  19748. ac_status=$?
  19749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19750. (exit $ac_status); }; } &&
  19751. { ac_try='test -s conftest.$ac_objext'
  19752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19753. (eval $ac_try) 2>&5
  19754. ac_status=$?
  19755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19756. (exit $ac_status); }; }; then
  19757. ac_header_compiler=yes
  19758. else
  19759. echo "$as_me: failed program was:" >&5
  19760. sed 's/^/| /' conftest.$ac_ext >&5
  19761. ac_header_compiler=no
  19762. fi
  19763. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19764. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19765. echo "${ECHO_T}$ac_header_compiler" >&6
  19766. # Is the header present?
  19767. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19768. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  19769. cat >conftest.$ac_ext <<_ACEOF
  19770. /* confdefs.h. */
  19771. _ACEOF
  19772. cat confdefs.h >>conftest.$ac_ext
  19773. cat >>conftest.$ac_ext <<_ACEOF
  19774. /* end confdefs.h. */
  19775. #include <$ac_header>
  19776. _ACEOF
  19777. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  19778. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  19779. ac_status=$?
  19780. grep -v '^ *+' conftest.er1 >conftest.err
  19781. rm -f conftest.er1
  19782. cat conftest.err >&5
  19783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19784. (exit $ac_status); } >/dev/null; then
  19785. if test -s conftest.err; then
  19786. ac_cpp_err=$ac_c_preproc_warn_flag
  19787. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19788. else
  19789. ac_cpp_err=
  19790. fi
  19791. else
  19792. ac_cpp_err=yes
  19793. fi
  19794. if test -z "$ac_cpp_err"; then
  19795. ac_header_preproc=yes
  19796. else
  19797. echo "$as_me: failed program was:" >&5
  19798. sed 's/^/| /' conftest.$ac_ext >&5
  19799. ac_header_preproc=no
  19800. fi
  19801. rm -f conftest.err conftest.$ac_ext
  19802. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19803. echo "${ECHO_T}$ac_header_preproc" >&6
  19804. # So? What about this header?
  19805. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19806. yes:no: )
  19807. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19808. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19809. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19810. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19811. ac_header_preproc=yes
  19812. ;;
  19813. no:yes:* )
  19814. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19815. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19816. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19817. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19818. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19819. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19820. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19821. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19822. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19823. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19824. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19825. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19826. (
  19827. cat <<\_ASBOX
  19828. ## ------------------------------------------ ##
  19829. ## Report this to http://bugzilla.redhat.com/ ##
  19830. ## ------------------------------------------ ##
  19831. _ASBOX
  19832. ) |
  19833. sed "s/^/$as_me: WARNING: /" >&2
  19834. ;;
  19835. esac
  19836. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19837. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19838. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19839. echo $ECHO_N "(cached) $ECHO_C" >&6
  19840. else
  19841. eval "$as_ac_Header=\$ac_header_preproc"
  19842. fi
  19843. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19844. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19845. fi
  19846. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19847. cat >>confdefs.h <<_ACEOF
  19848. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19849. _ACEOF
  19850. fi
  19851. done
  19852. for ac_func in getpagesize
  19853. do
  19854. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19855. echo "$as_me:$LINENO: checking for $ac_func" >&5
  19856. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  19857. if eval "test \"\${$as_ac_var+set}\" = set"; then
  19858. echo $ECHO_N "(cached) $ECHO_C" >&6
  19859. else
  19860. cat >conftest.$ac_ext <<_ACEOF
  19861. /* confdefs.h. */
  19862. _ACEOF
  19863. cat confdefs.h >>conftest.$ac_ext
  19864. cat >>conftest.$ac_ext <<_ACEOF
  19865. /* end confdefs.h. */
  19866. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19867. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19868. #define $ac_func innocuous_$ac_func
  19869. /* System header to define __stub macros and hopefully few prototypes,
  19870. which can conflict with char $ac_func (); below.
  19871. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19872. <limits.h> exists even on freestanding compilers. */
  19873. #ifdef __STDC__
  19874. # include <limits.h>
  19875. #else
  19876. # include <assert.h>
  19877. #endif
  19878. #undef $ac_func
  19879. /* Override any gcc2 internal prototype to avoid an error. */
  19880. #ifdef __cplusplus
  19881. extern "C"
  19882. {
  19883. #endif
  19884. /* We use char because int might match the return type of a gcc2
  19885. builtin and then its argument prototype would still apply. */
  19886. char $ac_func ();
  19887. /* The GNU C library defines this for functions which it implements
  19888. to always fail with ENOSYS. Some functions are actually named
  19889. something starting with __ and the normal name is an alias. */
  19890. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19891. choke me
  19892. #else
  19893. char (*f) () = $ac_func;
  19894. #endif
  19895. #ifdef __cplusplus
  19896. }
  19897. #endif
  19898. int
  19899. main ()
  19900. {
  19901. return f != $ac_func;
  19902. ;
  19903. return 0;
  19904. }
  19905. _ACEOF
  19906. rm -f conftest.$ac_objext conftest$ac_exeext
  19907. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19908. (eval $ac_link) 2>conftest.er1
  19909. ac_status=$?
  19910. grep -v '^ *+' conftest.er1 >conftest.err
  19911. rm -f conftest.er1
  19912. cat conftest.err >&5
  19913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19914. (exit $ac_status); } &&
  19915. { ac_try='test -z "$ac_c_werror_flag"
  19916. || test ! -s conftest.err'
  19917. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19918. (eval $ac_try) 2>&5
  19919. ac_status=$?
  19920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19921. (exit $ac_status); }; } &&
  19922. { ac_try='test -s conftest$ac_exeext'
  19923. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19924. (eval $ac_try) 2>&5
  19925. ac_status=$?
  19926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19927. (exit $ac_status); }; }; then
  19928. eval "$as_ac_var=yes"
  19929. else
  19930. echo "$as_me: failed program was:" >&5
  19931. sed 's/^/| /' conftest.$ac_ext >&5
  19932. eval "$as_ac_var=no"
  19933. fi
  19934. rm -f conftest.err conftest.$ac_objext \
  19935. conftest$ac_exeext conftest.$ac_ext
  19936. fi
  19937. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  19938. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  19939. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19940. cat >>confdefs.h <<_ACEOF
  19941. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19942. _ACEOF
  19943. fi
  19944. done
  19945. echo "$as_me:$LINENO: checking for working mmap" >&5
  19946. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  19947. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  19948. echo $ECHO_N "(cached) $ECHO_C" >&6
  19949. else
  19950. if test "$cross_compiling" = yes; then
  19951. ac_cv_func_mmap_fixed_mapped=no
  19952. else
  19953. cat >conftest.$ac_ext <<_ACEOF
  19954. /* confdefs.h. */
  19955. _ACEOF
  19956. cat confdefs.h >>conftest.$ac_ext
  19957. cat >>conftest.$ac_ext <<_ACEOF
  19958. /* end confdefs.h. */
  19959. $ac_includes_default
  19960. /* malloc might have been renamed as rpl_malloc. */
  19961. #undef malloc
  19962. /* Thanks to Mike Haertel and Jim Avera for this test.
  19963. Here is a matrix of mmap possibilities:
  19964. mmap private not fixed
  19965. mmap private fixed at somewhere currently unmapped
  19966. mmap private fixed at somewhere already mapped
  19967. mmap shared not fixed
  19968. mmap shared fixed at somewhere currently unmapped
  19969. mmap shared fixed at somewhere already mapped
  19970. For private mappings, we should verify that changes cannot be read()
  19971. back from the file, nor mmap's back from the file at a different
  19972. address. (There have been systems where private was not correctly
  19973. implemented like the infamous i386 svr4.0, and systems where the
  19974. VM page cache was not coherent with the file system buffer cache
  19975. like early versions of FreeBSD and possibly contemporary NetBSD.)
  19976. For shared mappings, we should conversely verify that changes get
  19977. propagated back to all the places they're supposed to be.
  19978. Grep wants private fixed already mapped.
  19979. The main things grep needs to know about mmap are:
  19980. * does it exist and is it safe to write into the mmap'd area
  19981. * how to use it (BSD variants) */
  19982. #include <fcntl.h>
  19983. #include <sys/mman.h>
  19984. #if !STDC_HEADERS && !HAVE_STDLIB_H
  19985. char *malloc ();
  19986. #endif
  19987. /* This mess was copied from the GNU getpagesize.h. */
  19988. #if !HAVE_GETPAGESIZE
  19989. /* Assume that all systems that can run configure have sys/param.h. */
  19990. # if !HAVE_SYS_PARAM_H
  19991. # define HAVE_SYS_PARAM_H 1
  19992. # endif
  19993. # ifdef _SC_PAGESIZE
  19994. # define getpagesize() sysconf(_SC_PAGESIZE)
  19995. # else /* no _SC_PAGESIZE */
  19996. # if HAVE_SYS_PARAM_H
  19997. # include <sys/param.h>
  19998. # ifdef EXEC_PAGESIZE
  19999. # define getpagesize() EXEC_PAGESIZE
  20000. # else /* no EXEC_PAGESIZE */
  20001. # ifdef NBPG
  20002. # define getpagesize() NBPG * CLSIZE
  20003. # ifndef CLSIZE
  20004. # define CLSIZE 1
  20005. # endif /* no CLSIZE */
  20006. # else /* no NBPG */
  20007. # ifdef NBPC
  20008. # define getpagesize() NBPC
  20009. # else /* no NBPC */
  20010. # ifdef PAGESIZE
  20011. # define getpagesize() PAGESIZE
  20012. # endif /* PAGESIZE */
  20013. # endif /* no NBPC */
  20014. # endif /* no NBPG */
  20015. # endif /* no EXEC_PAGESIZE */
  20016. # else /* no HAVE_SYS_PARAM_H */
  20017. # define getpagesize() 8192 /* punt totally */
  20018. # endif /* no HAVE_SYS_PARAM_H */
  20019. # endif /* no _SC_PAGESIZE */
  20020. #endif /* no HAVE_GETPAGESIZE */
  20021. int
  20022. main ()
  20023. {
  20024. char *data, *data2, *data3;
  20025. int i, pagesize;
  20026. int fd;
  20027. pagesize = getpagesize ();
  20028. /* First, make a file with some known garbage in it. */
  20029. data = (char *) malloc (pagesize);
  20030. if (!data)
  20031. exit (1);
  20032. for (i = 0; i < pagesize; ++i)
  20033. *(data + i) = rand ();
  20034. umask (0);
  20035. fd = creat ("conftest.mmap", 0600);
  20036. if (fd < 0)
  20037. exit (1);
  20038. if (write (fd, data, pagesize) != pagesize)
  20039. exit (1);
  20040. close (fd);
  20041. /* Next, try to mmap the file at a fixed address which already has
  20042. something else allocated at it. If we can, also make sure that
  20043. we see the same garbage. */
  20044. fd = open ("conftest.mmap", O_RDWR);
  20045. if (fd < 0)
  20046. exit (1);
  20047. data2 = (char *) malloc (2 * pagesize);
  20048. if (!data2)
  20049. exit (1);
  20050. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  20051. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  20052. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  20053. exit (1);
  20054. for (i = 0; i < pagesize; ++i)
  20055. if (*(data + i) != *(data2 + i))
  20056. exit (1);
  20057. /* Finally, make sure that changes to the mapped area do not
  20058. percolate back to the file as seen by read(). (This is a bug on
  20059. some variants of i386 svr4.0.) */
  20060. for (i = 0; i < pagesize; ++i)
  20061. *(data2 + i) = *(data2 + i) + 1;
  20062. data3 = (char *) malloc (pagesize);
  20063. if (!data3)
  20064. exit (1);
  20065. if (read (fd, data3, pagesize) != pagesize)
  20066. exit (1);
  20067. for (i = 0; i < pagesize; ++i)
  20068. if (*(data + i) != *(data3 + i))
  20069. exit (1);
  20070. close (fd);
  20071. exit (0);
  20072. }
  20073. _ACEOF
  20074. rm -f conftest$ac_exeext
  20075. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20076. (eval $ac_link) 2>&5
  20077. ac_status=$?
  20078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20079. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20080. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20081. (eval $ac_try) 2>&5
  20082. ac_status=$?
  20083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20084. (exit $ac_status); }; }; then
  20085. ac_cv_func_mmap_fixed_mapped=yes
  20086. else
  20087. echo "$as_me: program exited with status $ac_status" >&5
  20088. echo "$as_me: failed program was:" >&5
  20089. sed 's/^/| /' conftest.$ac_ext >&5
  20090. ( exit $ac_status )
  20091. ac_cv_func_mmap_fixed_mapped=no
  20092. fi
  20093. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20094. fi
  20095. fi
  20096. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  20097. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  20098. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  20099. cat >>confdefs.h <<\_ACEOF
  20100. #define HAVE_MMAP 1
  20101. _ACEOF
  20102. fi
  20103. rm -f conftest.mmap
  20104. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  20105. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  20106. if test "${ac_cv_type_signal+set}" = set; then
  20107. echo $ECHO_N "(cached) $ECHO_C" >&6
  20108. else
  20109. cat >conftest.$ac_ext <<_ACEOF
  20110. /* confdefs.h. */
  20111. _ACEOF
  20112. cat confdefs.h >>conftest.$ac_ext
  20113. cat >>conftest.$ac_ext <<_ACEOF
  20114. /* end confdefs.h. */
  20115. #include <sys/types.h>
  20116. #include <signal.h>
  20117. #ifdef signal
  20118. # undef signal
  20119. #endif
  20120. #ifdef __cplusplus
  20121. extern "C" void (*signal (int, void (*)(int)))(int);
  20122. #else
  20123. void (*signal ()) ();
  20124. #endif
  20125. int
  20126. main ()
  20127. {
  20128. int i;
  20129. ;
  20130. return 0;
  20131. }
  20132. _ACEOF
  20133. rm -f conftest.$ac_objext
  20134. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20135. (eval $ac_compile) 2>conftest.er1
  20136. ac_status=$?
  20137. grep -v '^ *+' conftest.er1 >conftest.err
  20138. rm -f conftest.er1
  20139. cat conftest.err >&5
  20140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20141. (exit $ac_status); } &&
  20142. { ac_try='test -z "$ac_c_werror_flag"
  20143. || test ! -s conftest.err'
  20144. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20145. (eval $ac_try) 2>&5
  20146. ac_status=$?
  20147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20148. (exit $ac_status); }; } &&
  20149. { ac_try='test -s conftest.$ac_objext'
  20150. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20151. (eval $ac_try) 2>&5
  20152. ac_status=$?
  20153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20154. (exit $ac_status); }; }; then
  20155. ac_cv_type_signal=void
  20156. else
  20157. echo "$as_me: failed program was:" >&5
  20158. sed 's/^/| /' conftest.$ac_ext >&5
  20159. ac_cv_type_signal=int
  20160. fi
  20161. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20162. fi
  20163. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  20164. echo "${ECHO_T}$ac_cv_type_signal" >&6
  20165. cat >>confdefs.h <<_ACEOF
  20166. #define RETSIGTYPE $ac_cv_type_signal
  20167. _ACEOF
  20168. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  20169. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  20170. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  20171. echo $ECHO_N "(cached) $ECHO_C" >&6
  20172. else
  20173. if test "$cross_compiling" = yes; then
  20174. ac_cv_func_stat_empty_string_bug=yes
  20175. else
  20176. cat >conftest.$ac_ext <<_ACEOF
  20177. /* confdefs.h. */
  20178. _ACEOF
  20179. cat confdefs.h >>conftest.$ac_ext
  20180. cat >>conftest.$ac_ext <<_ACEOF
  20181. /* end confdefs.h. */
  20182. $ac_includes_default
  20183. int
  20184. main ()
  20185. {
  20186. struct stat sbuf;
  20187. exit (stat ("", &sbuf) ? 1 : 0);
  20188. ;
  20189. return 0;
  20190. }
  20191. _ACEOF
  20192. rm -f conftest$ac_exeext
  20193. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20194. (eval $ac_link) 2>&5
  20195. ac_status=$?
  20196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20197. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20198. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20199. (eval $ac_try) 2>&5
  20200. ac_status=$?
  20201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20202. (exit $ac_status); }; }; then
  20203. ac_cv_func_stat_empty_string_bug=yes
  20204. else
  20205. echo "$as_me: program exited with status $ac_status" >&5
  20206. echo "$as_me: failed program was:" >&5
  20207. sed 's/^/| /' conftest.$ac_ext >&5
  20208. ( exit $ac_status )
  20209. ac_cv_func_stat_empty_string_bug=no
  20210. fi
  20211. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20212. fi
  20213. fi
  20214. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  20215. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  20216. if test $ac_cv_func_stat_empty_string_bug = yes; then
  20217. case $LIBOBJS in
  20218. "stat.$ac_objext" | \
  20219. *" stat.$ac_objext" | \
  20220. "stat.$ac_objext "* | \
  20221. *" stat.$ac_objext "* ) ;;
  20222. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  20223. esac
  20224. cat >>confdefs.h <<_ACEOF
  20225. #define HAVE_STAT_EMPTY_STRING_BUG 1
  20226. _ACEOF
  20227. fi
  20228. echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
  20229. echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
  20230. if test "${ac_cv_have_decl_strerror_r+set}" = set; then
  20231. echo $ECHO_N "(cached) $ECHO_C" >&6
  20232. else
  20233. cat >conftest.$ac_ext <<_ACEOF
  20234. /* confdefs.h. */
  20235. _ACEOF
  20236. cat confdefs.h >>conftest.$ac_ext
  20237. cat >>conftest.$ac_ext <<_ACEOF
  20238. /* end confdefs.h. */
  20239. $ac_includes_default
  20240. int
  20241. main ()
  20242. {
  20243. #ifndef strerror_r
  20244. char *p = (char *) strerror_r;
  20245. #endif
  20246. ;
  20247. return 0;
  20248. }
  20249. _ACEOF
  20250. rm -f conftest.$ac_objext
  20251. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20252. (eval $ac_compile) 2>conftest.er1
  20253. ac_status=$?
  20254. grep -v '^ *+' conftest.er1 >conftest.err
  20255. rm -f conftest.er1
  20256. cat conftest.err >&5
  20257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20258. (exit $ac_status); } &&
  20259. { ac_try='test -z "$ac_c_werror_flag"
  20260. || test ! -s conftest.err'
  20261. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20262. (eval $ac_try) 2>&5
  20263. ac_status=$?
  20264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20265. (exit $ac_status); }; } &&
  20266. { ac_try='test -s conftest.$ac_objext'
  20267. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20268. (eval $ac_try) 2>&5
  20269. ac_status=$?
  20270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20271. (exit $ac_status); }; }; then
  20272. ac_cv_have_decl_strerror_r=yes
  20273. else
  20274. echo "$as_me: failed program was:" >&5
  20275. sed 's/^/| /' conftest.$ac_ext >&5
  20276. ac_cv_have_decl_strerror_r=no
  20277. fi
  20278. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20279. fi
  20280. echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
  20281. echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
  20282. if test $ac_cv_have_decl_strerror_r = yes; then
  20283. cat >>confdefs.h <<_ACEOF
  20284. #define HAVE_DECL_STRERROR_R 1
  20285. _ACEOF
  20286. else
  20287. cat >>confdefs.h <<_ACEOF
  20288. #define HAVE_DECL_STRERROR_R 0
  20289. _ACEOF
  20290. fi
  20291. for ac_func in strerror_r
  20292. do
  20293. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20294. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20295. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20296. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20297. echo $ECHO_N "(cached) $ECHO_C" >&6
  20298. else
  20299. cat >conftest.$ac_ext <<_ACEOF
  20300. /* confdefs.h. */
  20301. _ACEOF
  20302. cat confdefs.h >>conftest.$ac_ext
  20303. cat >>conftest.$ac_ext <<_ACEOF
  20304. /* end confdefs.h. */
  20305. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20306. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20307. #define $ac_func innocuous_$ac_func
  20308. /* System header to define __stub macros and hopefully few prototypes,
  20309. which can conflict with char $ac_func (); below.
  20310. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20311. <limits.h> exists even on freestanding compilers. */
  20312. #ifdef __STDC__
  20313. # include <limits.h>
  20314. #else
  20315. # include <assert.h>
  20316. #endif
  20317. #undef $ac_func
  20318. /* Override any gcc2 internal prototype to avoid an error. */
  20319. #ifdef __cplusplus
  20320. extern "C"
  20321. {
  20322. #endif
  20323. /* We use char because int might match the return type of a gcc2
  20324. builtin and then its argument prototype would still apply. */
  20325. char $ac_func ();
  20326. /* The GNU C library defines this for functions which it implements
  20327. to always fail with ENOSYS. Some functions are actually named
  20328. something starting with __ and the normal name is an alias. */
  20329. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20330. choke me
  20331. #else
  20332. char (*f) () = $ac_func;
  20333. #endif
  20334. #ifdef __cplusplus
  20335. }
  20336. #endif
  20337. int
  20338. main ()
  20339. {
  20340. return f != $ac_func;
  20341. ;
  20342. return 0;
  20343. }
  20344. _ACEOF
  20345. rm -f conftest.$ac_objext conftest$ac_exeext
  20346. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20347. (eval $ac_link) 2>conftest.er1
  20348. ac_status=$?
  20349. grep -v '^ *+' conftest.er1 >conftest.err
  20350. rm -f conftest.er1
  20351. cat conftest.err >&5
  20352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20353. (exit $ac_status); } &&
  20354. { ac_try='test -z "$ac_c_werror_flag"
  20355. || test ! -s conftest.err'
  20356. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20357. (eval $ac_try) 2>&5
  20358. ac_status=$?
  20359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20360. (exit $ac_status); }; } &&
  20361. { ac_try='test -s conftest$ac_exeext'
  20362. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20363. (eval $ac_try) 2>&5
  20364. ac_status=$?
  20365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20366. (exit $ac_status); }; }; then
  20367. eval "$as_ac_var=yes"
  20368. else
  20369. echo "$as_me: failed program was:" >&5
  20370. sed 's/^/| /' conftest.$ac_ext >&5
  20371. eval "$as_ac_var=no"
  20372. fi
  20373. rm -f conftest.err conftest.$ac_objext \
  20374. conftest$ac_exeext conftest.$ac_ext
  20375. fi
  20376. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20377. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20378. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20379. cat >>confdefs.h <<_ACEOF
  20380. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20381. _ACEOF
  20382. fi
  20383. done
  20384. echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
  20385. echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
  20386. if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
  20387. echo $ECHO_N "(cached) $ECHO_C" >&6
  20388. else
  20389. ac_cv_func_strerror_r_char_p=no
  20390. if test $ac_cv_have_decl_strerror_r = yes; then
  20391. cat >conftest.$ac_ext <<_ACEOF
  20392. /* confdefs.h. */
  20393. _ACEOF
  20394. cat confdefs.h >>conftest.$ac_ext
  20395. cat >>conftest.$ac_ext <<_ACEOF
  20396. /* end confdefs.h. */
  20397. $ac_includes_default
  20398. int
  20399. main ()
  20400. {
  20401. char buf[100];
  20402. char x = *strerror_r (0, buf, sizeof buf);
  20403. char *p = strerror_r (0, buf, sizeof buf);
  20404. ;
  20405. return 0;
  20406. }
  20407. _ACEOF
  20408. rm -f conftest.$ac_objext
  20409. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20410. (eval $ac_compile) 2>conftest.er1
  20411. ac_status=$?
  20412. grep -v '^ *+' conftest.er1 >conftest.err
  20413. rm -f conftest.er1
  20414. cat conftest.err >&5
  20415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20416. (exit $ac_status); } &&
  20417. { ac_try='test -z "$ac_c_werror_flag"
  20418. || test ! -s conftest.err'
  20419. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20420. (eval $ac_try) 2>&5
  20421. ac_status=$?
  20422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20423. (exit $ac_status); }; } &&
  20424. { ac_try='test -s conftest.$ac_objext'
  20425. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20426. (eval $ac_try) 2>&5
  20427. ac_status=$?
  20428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20429. (exit $ac_status); }; }; then
  20430. ac_cv_func_strerror_r_char_p=yes
  20431. else
  20432. echo "$as_me: failed program was:" >&5
  20433. sed 's/^/| /' conftest.$ac_ext >&5
  20434. fi
  20435. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20436. else
  20437. # strerror_r is not declared. Choose between
  20438. # systems that have relatively inaccessible declarations for the
  20439. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  20440. # former has a strerror_r that returns char*, while the latter
  20441. # has a strerror_r that returns `int'.
  20442. # This test should segfault on the DEC system.
  20443. if test "$cross_compiling" = yes; then
  20444. :
  20445. else
  20446. cat >conftest.$ac_ext <<_ACEOF
  20447. /* confdefs.h. */
  20448. _ACEOF
  20449. cat confdefs.h >>conftest.$ac_ext
  20450. cat >>conftest.$ac_ext <<_ACEOF
  20451. /* end confdefs.h. */
  20452. $ac_includes_default
  20453. extern char *strerror_r ();
  20454. int
  20455. main ()
  20456. {
  20457. char buf[100];
  20458. char x = *strerror_r (0, buf, sizeof buf);
  20459. exit (!isalpha (x));
  20460. ;
  20461. return 0;
  20462. }
  20463. _ACEOF
  20464. rm -f conftest$ac_exeext
  20465. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20466. (eval $ac_link) 2>&5
  20467. ac_status=$?
  20468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20469. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20470. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20471. (eval $ac_try) 2>&5
  20472. ac_status=$?
  20473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20474. (exit $ac_status); }; }; then
  20475. ac_cv_func_strerror_r_char_p=yes
  20476. else
  20477. echo "$as_me: program exited with status $ac_status" >&5
  20478. echo "$as_me: failed program was:" >&5
  20479. sed 's/^/| /' conftest.$ac_ext >&5
  20480. fi
  20481. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20482. fi
  20483. fi
  20484. fi
  20485. echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
  20486. echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
  20487. if test $ac_cv_func_strerror_r_char_p = yes; then
  20488. cat >>confdefs.h <<\_ACEOF
  20489. #define STRERROR_R_CHAR_P 1
  20490. _ACEOF
  20491. fi
  20492. for ac_func in strftime
  20493. do
  20494. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20495. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20496. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20497. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20498. echo $ECHO_N "(cached) $ECHO_C" >&6
  20499. else
  20500. cat >conftest.$ac_ext <<_ACEOF
  20501. /* confdefs.h. */
  20502. _ACEOF
  20503. cat confdefs.h >>conftest.$ac_ext
  20504. cat >>conftest.$ac_ext <<_ACEOF
  20505. /* end confdefs.h. */
  20506. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20507. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20508. #define $ac_func innocuous_$ac_func
  20509. /* System header to define __stub macros and hopefully few prototypes,
  20510. which can conflict with char $ac_func (); below.
  20511. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20512. <limits.h> exists even on freestanding compilers. */
  20513. #ifdef __STDC__
  20514. # include <limits.h>
  20515. #else
  20516. # include <assert.h>
  20517. #endif
  20518. #undef $ac_func
  20519. /* Override any gcc2 internal prototype to avoid an error. */
  20520. #ifdef __cplusplus
  20521. extern "C"
  20522. {
  20523. #endif
  20524. /* We use char because int might match the return type of a gcc2
  20525. builtin and then its argument prototype would still apply. */
  20526. char $ac_func ();
  20527. /* The GNU C library defines this for functions which it implements
  20528. to always fail with ENOSYS. Some functions are actually named
  20529. something starting with __ and the normal name is an alias. */
  20530. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20531. choke me
  20532. #else
  20533. char (*f) () = $ac_func;
  20534. #endif
  20535. #ifdef __cplusplus
  20536. }
  20537. #endif
  20538. int
  20539. main ()
  20540. {
  20541. return f != $ac_func;
  20542. ;
  20543. return 0;
  20544. }
  20545. _ACEOF
  20546. rm -f conftest.$ac_objext conftest$ac_exeext
  20547. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20548. (eval $ac_link) 2>conftest.er1
  20549. ac_status=$?
  20550. grep -v '^ *+' conftest.er1 >conftest.err
  20551. rm -f conftest.er1
  20552. cat conftest.err >&5
  20553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20554. (exit $ac_status); } &&
  20555. { ac_try='test -z "$ac_c_werror_flag"
  20556. || test ! -s conftest.err'
  20557. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20558. (eval $ac_try) 2>&5
  20559. ac_status=$?
  20560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20561. (exit $ac_status); }; } &&
  20562. { ac_try='test -s conftest$ac_exeext'
  20563. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20564. (eval $ac_try) 2>&5
  20565. ac_status=$?
  20566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20567. (exit $ac_status); }; }; then
  20568. eval "$as_ac_var=yes"
  20569. else
  20570. echo "$as_me: failed program was:" >&5
  20571. sed 's/^/| /' conftest.$ac_ext >&5
  20572. eval "$as_ac_var=no"
  20573. fi
  20574. rm -f conftest.err conftest.$ac_objext \
  20575. conftest$ac_exeext conftest.$ac_ext
  20576. fi
  20577. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20578. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20579. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20580. cat >>confdefs.h <<_ACEOF
  20581. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20582. _ACEOF
  20583. else
  20584. # strftime is in -lintl on SCO UNIX.
  20585. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  20586. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  20587. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  20588. echo $ECHO_N "(cached) $ECHO_C" >&6
  20589. else
  20590. ac_check_lib_save_LIBS=$LIBS
  20591. LIBS="-lintl $LIBS"
  20592. cat >conftest.$ac_ext <<_ACEOF
  20593. /* confdefs.h. */
  20594. _ACEOF
  20595. cat confdefs.h >>conftest.$ac_ext
  20596. cat >>conftest.$ac_ext <<_ACEOF
  20597. /* end confdefs.h. */
  20598. /* Override any gcc2 internal prototype to avoid an error. */
  20599. #ifdef __cplusplus
  20600. extern "C"
  20601. #endif
  20602. /* We use char because int might match the return type of a gcc2
  20603. builtin and then its argument prototype would still apply. */
  20604. char strftime ();
  20605. int
  20606. main ()
  20607. {
  20608. strftime ();
  20609. ;
  20610. return 0;
  20611. }
  20612. _ACEOF
  20613. rm -f conftest.$ac_objext conftest$ac_exeext
  20614. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20615. (eval $ac_link) 2>conftest.er1
  20616. ac_status=$?
  20617. grep -v '^ *+' conftest.er1 >conftest.err
  20618. rm -f conftest.er1
  20619. cat conftest.err >&5
  20620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20621. (exit $ac_status); } &&
  20622. { ac_try='test -z "$ac_c_werror_flag"
  20623. || test ! -s conftest.err'
  20624. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20625. (eval $ac_try) 2>&5
  20626. ac_status=$?
  20627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20628. (exit $ac_status); }; } &&
  20629. { ac_try='test -s conftest$ac_exeext'
  20630. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20631. (eval $ac_try) 2>&5
  20632. ac_status=$?
  20633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20634. (exit $ac_status); }; }; then
  20635. ac_cv_lib_intl_strftime=yes
  20636. else
  20637. echo "$as_me: failed program was:" >&5
  20638. sed 's/^/| /' conftest.$ac_ext >&5
  20639. ac_cv_lib_intl_strftime=no
  20640. fi
  20641. rm -f conftest.err conftest.$ac_objext \
  20642. conftest$ac_exeext conftest.$ac_ext
  20643. LIBS=$ac_check_lib_save_LIBS
  20644. fi
  20645. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  20646. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  20647. if test $ac_cv_lib_intl_strftime = yes; then
  20648. cat >>confdefs.h <<\_ACEOF
  20649. #define HAVE_STRFTIME 1
  20650. _ACEOF
  20651. LIBS="-lintl $LIBS"
  20652. fi
  20653. fi
  20654. done
  20655. for ac_func in vprintf
  20656. do
  20657. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20658. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20659. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20660. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20661. echo $ECHO_N "(cached) $ECHO_C" >&6
  20662. else
  20663. cat >conftest.$ac_ext <<_ACEOF
  20664. /* confdefs.h. */
  20665. _ACEOF
  20666. cat confdefs.h >>conftest.$ac_ext
  20667. cat >>conftest.$ac_ext <<_ACEOF
  20668. /* end confdefs.h. */
  20669. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20670. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20671. #define $ac_func innocuous_$ac_func
  20672. /* System header to define __stub macros and hopefully few prototypes,
  20673. which can conflict with char $ac_func (); below.
  20674. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20675. <limits.h> exists even on freestanding compilers. */
  20676. #ifdef __STDC__
  20677. # include <limits.h>
  20678. #else
  20679. # include <assert.h>
  20680. #endif
  20681. #undef $ac_func
  20682. /* Override any gcc2 internal prototype to avoid an error. */
  20683. #ifdef __cplusplus
  20684. extern "C"
  20685. {
  20686. #endif
  20687. /* We use char because int might match the return type of a gcc2
  20688. builtin and then its argument prototype would still apply. */
  20689. char $ac_func ();
  20690. /* The GNU C library defines this for functions which it implements
  20691. to always fail with ENOSYS. Some functions are actually named
  20692. something starting with __ and the normal name is an alias. */
  20693. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20694. choke me
  20695. #else
  20696. char (*f) () = $ac_func;
  20697. #endif
  20698. #ifdef __cplusplus
  20699. }
  20700. #endif
  20701. int
  20702. main ()
  20703. {
  20704. return f != $ac_func;
  20705. ;
  20706. return 0;
  20707. }
  20708. _ACEOF
  20709. rm -f conftest.$ac_objext conftest$ac_exeext
  20710. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20711. (eval $ac_link) 2>conftest.er1
  20712. ac_status=$?
  20713. grep -v '^ *+' conftest.er1 >conftest.err
  20714. rm -f conftest.er1
  20715. cat conftest.err >&5
  20716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20717. (exit $ac_status); } &&
  20718. { ac_try='test -z "$ac_c_werror_flag"
  20719. || test ! -s conftest.err'
  20720. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20721. (eval $ac_try) 2>&5
  20722. ac_status=$?
  20723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20724. (exit $ac_status); }; } &&
  20725. { ac_try='test -s conftest$ac_exeext'
  20726. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20727. (eval $ac_try) 2>&5
  20728. ac_status=$?
  20729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20730. (exit $ac_status); }; }; then
  20731. eval "$as_ac_var=yes"
  20732. else
  20733. echo "$as_me: failed program was:" >&5
  20734. sed 's/^/| /' conftest.$ac_ext >&5
  20735. eval "$as_ac_var=no"
  20736. fi
  20737. rm -f conftest.err conftest.$ac_objext \
  20738. conftest$ac_exeext conftest.$ac_ext
  20739. fi
  20740. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20741. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20742. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20743. cat >>confdefs.h <<_ACEOF
  20744. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20745. _ACEOF
  20746. echo "$as_me:$LINENO: checking for _doprnt" >&5
  20747. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  20748. if test "${ac_cv_func__doprnt+set}" = set; then
  20749. echo $ECHO_N "(cached) $ECHO_C" >&6
  20750. else
  20751. cat >conftest.$ac_ext <<_ACEOF
  20752. /* confdefs.h. */
  20753. _ACEOF
  20754. cat confdefs.h >>conftest.$ac_ext
  20755. cat >>conftest.$ac_ext <<_ACEOF
  20756. /* end confdefs.h. */
  20757. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  20758. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20759. #define _doprnt innocuous__doprnt
  20760. /* System header to define __stub macros and hopefully few prototypes,
  20761. which can conflict with char _doprnt (); below.
  20762. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20763. <limits.h> exists even on freestanding compilers. */
  20764. #ifdef __STDC__
  20765. # include <limits.h>
  20766. #else
  20767. # include <assert.h>
  20768. #endif
  20769. #undef _doprnt
  20770. /* Override any gcc2 internal prototype to avoid an error. */
  20771. #ifdef __cplusplus
  20772. extern "C"
  20773. {
  20774. #endif
  20775. /* We use char because int might match the return type of a gcc2
  20776. builtin and then its argument prototype would still apply. */
  20777. char _doprnt ();
  20778. /* The GNU C library defines this for functions which it implements
  20779. to always fail with ENOSYS. Some functions are actually named
  20780. something starting with __ and the normal name is an alias. */
  20781. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  20782. choke me
  20783. #else
  20784. char (*f) () = _doprnt;
  20785. #endif
  20786. #ifdef __cplusplus
  20787. }
  20788. #endif
  20789. int
  20790. main ()
  20791. {
  20792. return f != _doprnt;
  20793. ;
  20794. return 0;
  20795. }
  20796. _ACEOF
  20797. rm -f conftest.$ac_objext conftest$ac_exeext
  20798. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20799. (eval $ac_link) 2>conftest.er1
  20800. ac_status=$?
  20801. grep -v '^ *+' conftest.er1 >conftest.err
  20802. rm -f conftest.er1
  20803. cat conftest.err >&5
  20804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20805. (exit $ac_status); } &&
  20806. { ac_try='test -z "$ac_c_werror_flag"
  20807. || test ! -s conftest.err'
  20808. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20809. (eval $ac_try) 2>&5
  20810. ac_status=$?
  20811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20812. (exit $ac_status); }; } &&
  20813. { ac_try='test -s conftest$ac_exeext'
  20814. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20815. (eval $ac_try) 2>&5
  20816. ac_status=$?
  20817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20818. (exit $ac_status); }; }; then
  20819. ac_cv_func__doprnt=yes
  20820. else
  20821. echo "$as_me: failed program was:" >&5
  20822. sed 's/^/| /' conftest.$ac_ext >&5
  20823. ac_cv_func__doprnt=no
  20824. fi
  20825. rm -f conftest.err conftest.$ac_objext \
  20826. conftest$ac_exeext conftest.$ac_ext
  20827. fi
  20828. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  20829. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  20830. if test $ac_cv_func__doprnt = yes; then
  20831. cat >>confdefs.h <<\_ACEOF
  20832. #define HAVE_DOPRNT 1
  20833. _ACEOF
  20834. fi
  20835. fi
  20836. done
  20837. for ac_func in setrlimit endpwent ftruncate getcwd gethostbyname inet_ntoa localtime_r memmove memset mkdir munmap putenv rmdir socket strcasecmp strchr strcspn strdup strerror strncasecmp strpbrk strrchr strstr strtol tzset
  20838. do
  20839. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20840. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20841. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20842. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20843. echo $ECHO_N "(cached) $ECHO_C" >&6
  20844. else
  20845. cat >conftest.$ac_ext <<_ACEOF
  20846. /* confdefs.h. */
  20847. _ACEOF
  20848. cat confdefs.h >>conftest.$ac_ext
  20849. cat >>conftest.$ac_ext <<_ACEOF
  20850. /* end confdefs.h. */
  20851. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20852. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20853. #define $ac_func innocuous_$ac_func
  20854. /* System header to define __stub macros and hopefully few prototypes,
  20855. which can conflict with char $ac_func (); below.
  20856. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20857. <limits.h> exists even on freestanding compilers. */
  20858. #ifdef __STDC__
  20859. # include <limits.h>
  20860. #else
  20861. # include <assert.h>
  20862. #endif
  20863. #undef $ac_func
  20864. /* Override any gcc2 internal prototype to avoid an error. */
  20865. #ifdef __cplusplus
  20866. extern "C"
  20867. {
  20868. #endif
  20869. /* We use char because int might match the return type of a gcc2
  20870. builtin and then its argument prototype would still apply. */
  20871. char $ac_func ();
  20872. /* The GNU C library defines this for functions which it implements
  20873. to always fail with ENOSYS. Some functions are actually named
  20874. something starting with __ and the normal name is an alias. */
  20875. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20876. choke me
  20877. #else
  20878. char (*f) () = $ac_func;
  20879. #endif
  20880. #ifdef __cplusplus
  20881. }
  20882. #endif
  20883. int
  20884. main ()
  20885. {
  20886. return f != $ac_func;
  20887. ;
  20888. return 0;
  20889. }
  20890. _ACEOF
  20891. rm -f conftest.$ac_objext conftest$ac_exeext
  20892. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20893. (eval $ac_link) 2>conftest.er1
  20894. ac_status=$?
  20895. grep -v '^ *+' conftest.er1 >conftest.err
  20896. rm -f conftest.er1
  20897. cat conftest.err >&5
  20898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20899. (exit $ac_status); } &&
  20900. { ac_try='test -z "$ac_c_werror_flag"
  20901. || test ! -s conftest.err'
  20902. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20903. (eval $ac_try) 2>&5
  20904. ac_status=$?
  20905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20906. (exit $ac_status); }; } &&
  20907. { ac_try='test -s conftest$ac_exeext'
  20908. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20909. (eval $ac_try) 2>&5
  20910. ac_status=$?
  20911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20912. (exit $ac_status); }; }; then
  20913. eval "$as_ac_var=yes"
  20914. else
  20915. echo "$as_me: failed program was:" >&5
  20916. sed 's/^/| /' conftest.$ac_ext >&5
  20917. eval "$as_ac_var=no"
  20918. fi
  20919. rm -f conftest.err conftest.$ac_objext \
  20920. conftest$ac_exeext conftest.$ac_ext
  20921. fi
  20922. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20923. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20924. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20925. cat >>confdefs.h <<_ACEOF
  20926. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20927. _ACEOF
  20928. fi
  20929. done
  20930. if test $platform = solaris; then
  20931. SOLARIS_TRUE=
  20932. SOLARIS_FALSE='#'
  20933. else
  20934. SOLARIS_TRUE='#'
  20935. SOLARIS_FALSE=
  20936. fi
  20937. echo "$as_me:$LINENO: checking for --enable-debug" >&5
  20938. echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6
  20939. # Check whether --enable-debug or --disable-debug was given.
  20940. if test "${enable_debug+set}" = set; then
  20941. enableval="$enable_debug"
  20942. echo "$as_me:$LINENO: result: yes" >&5
  20943. echo "${ECHO_T}yes" >&6
  20944. debug_defs="-DDEBUG -DMCC_DEBUG"
  20945. else
  20946. echo "$as_me:$LINENO: result: no" >&5
  20947. echo "${ECHO_T}no" >&6
  20948. debug_defs=""
  20949. fi;
  20950. # Check for library dependencies
  20951. # BEGIN COPYRIGHT BLOCK
  20952. # Copyright (C) 2006 Red Hat, Inc.
  20953. # All rights reserved.
  20954. #
  20955. # This program is free software; you can redistribute it and/or
  20956. # modify it under the terms of the GNU General Public License
  20957. # as published by the Free Software Foundation; either version 2
  20958. # of the License, or (at your option) any later version.
  20959. #
  20960. # This program is distributed in the hope that it will be useful,
  20961. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20962. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20963. # GNU General Public License for more details.
  20964. #
  20965. # You should have received a copy of the GNU General Public License
  20966. # along with this program; if not, write to the Free Software
  20967. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20968. #
  20969. # END COPYRIGHT BLOCK
  20970. { echo "$as_me:$LINENO: checking for NSPR..." >&5
  20971. echo "$as_me: checking for NSPR..." >&6;}
  20972. # check for --with-nspr
  20973. echo "$as_me:$LINENO: checking for --with-nspr" >&5
  20974. echo $ECHO_N "checking for --with-nspr... $ECHO_C" >&6
  20975. # Check whether --with-nspr or --without-nspr was given.
  20976. if test "${with_nspr+set}" = set; then
  20977. withval="$with_nspr"
  20978. if test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  20979. then
  20980. echo "$as_me:$LINENO: result: using $withval" >&5
  20981. echo "${ECHO_T}using $withval" >&6
  20982. NSPRDIR=$withval
  20983. nspr_inc="-I$NSPRDIR/include"
  20984. nspr_lib="-L$NSPRDIR/lib"
  20985. nspr_libdir="$NSPRDIR/lib"
  20986. else
  20987. echo
  20988. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  20989. echo "$as_me: error: $withval not found" >&2;}
  20990. { (exit 1); exit 1; }; }
  20991. fi
  20992. else
  20993. echo "$as_me:$LINENO: result: no" >&5
  20994. echo "${ECHO_T}no" >&6
  20995. fi;
  20996. # check for --with-nspr-inc
  20997. echo "$as_me:$LINENO: checking for --with-nspr-inc" >&5
  20998. echo $ECHO_N "checking for --with-nspr-inc... $ECHO_C" >&6
  20999. # Check whether --with-nspr-inc or --without-nspr-inc was given.
  21000. if test "${with_nspr_inc+set}" = set; then
  21001. withval="$with_nspr_inc"
  21002. if test -e "$withval"/nspr.h
  21003. then
  21004. echo "$as_me:$LINENO: result: using $withval" >&5
  21005. echo "${ECHO_T}using $withval" >&6
  21006. nspr_inc="-I$withval"
  21007. else
  21008. echo
  21009. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21010. echo "$as_me: error: $withval not found" >&2;}
  21011. { (exit 1); exit 1; }; }
  21012. fi
  21013. else
  21014. echo "$as_me:$LINENO: result: no" >&5
  21015. echo "${ECHO_T}no" >&6
  21016. fi;
  21017. # check for --with-nspr-lib
  21018. echo "$as_me:$LINENO: checking for --with-nspr-lib" >&5
  21019. echo $ECHO_N "checking for --with-nspr-lib... $ECHO_C" >&6
  21020. # Check whether --with-nspr-lib or --without-nspr-lib was given.
  21021. if test "${with_nspr_lib+set}" = set; then
  21022. withval="$with_nspr_lib"
  21023. if test -d "$withval"
  21024. then
  21025. echo "$as_me:$LINENO: result: using $withval" >&5
  21026. echo "${ECHO_T}using $withval" >&6
  21027. nspr_lib="-L$withval"
  21028. nspr_libdir="$withval"
  21029. else
  21030. echo
  21031. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21032. echo "$as_me: error: $withval not found" >&2;}
  21033. { (exit 1); exit 1; }; }
  21034. fi
  21035. else
  21036. echo "$as_me:$LINENO: result: no" >&5
  21037. echo "${ECHO_T}no" >&6
  21038. fi;
  21039. # if NSPR is not found yet, try pkg-config
  21040. # last resort
  21041. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  21042. echo "$as_me:$LINENO: checking for nspr with pkg-config" >&5
  21043. echo $ECHO_N "checking for nspr with pkg-config... $ECHO_C" >&6
  21044. # Extract the first word of "pkg-config", so it can be a program name with args.
  21045. set dummy pkg-config; ac_word=$2
  21046. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21047. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21048. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21049. echo $ECHO_N "(cached) $ECHO_C" >&6
  21050. else
  21051. case $PKG_CONFIG in
  21052. [\\/]* | ?:[\\/]*)
  21053. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21054. ;;
  21055. *)
  21056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21057. for as_dir in $PATH
  21058. do
  21059. IFS=$as_save_IFS
  21060. test -z "$as_dir" && as_dir=.
  21061. for ac_exec_ext in '' $ac_executable_extensions; do
  21062. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21063. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21064. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21065. break 2
  21066. fi
  21067. done
  21068. done
  21069. ;;
  21070. esac
  21071. fi
  21072. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21073. if test -n "$PKG_CONFIG"; then
  21074. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21075. echo "${ECHO_T}$PKG_CONFIG" >&6
  21076. else
  21077. echo "$as_me:$LINENO: result: no" >&5
  21078. echo "${ECHO_T}no" >&6
  21079. fi
  21080. if test -n "$PKG_CONFIG"; then
  21081. if $PKG_CONFIG --exists nspr; then
  21082. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  21083. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  21084. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ *$//`
  21085. echo "$as_me:$LINENO: result: using system NSPR" >&5
  21086. echo "${ECHO_T}using system NSPR" >&6
  21087. elif $PKG_CONFIG --exists dirsec-nspr; then
  21088. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  21089. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  21090. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ *$//`
  21091. echo "$as_me:$LINENO: result: using system dirsec NSPR" >&5
  21092. echo "${ECHO_T}using system dirsec NSPR" >&6
  21093. else
  21094. { { echo "$as_me:$LINENO: error: NSPR not found, specify with --with-nspr." >&5
  21095. echo "$as_me: error: NSPR not found, specify with --with-nspr." >&2;}
  21096. { (exit 1); exit 1; }; }
  21097. fi
  21098. fi
  21099. fi
  21100. # BEGIN COPYRIGHT BLOCK
  21101. # Copyright (C) 2006 Red Hat, Inc.
  21102. # All rights reserved.
  21103. #
  21104. # This program is free software; you can redistribute it and/or
  21105. # modify it under the terms of the GNU General Public License
  21106. # as published by the Free Software Foundation; either version 2
  21107. # of the License, or (at your option) any later version.
  21108. #
  21109. # This program is distributed in the hope that it will be useful,
  21110. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21111. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21112. # GNU General Public License for more details.
  21113. #
  21114. # You should have received a copy of the GNU General Public License
  21115. # along with this program; if not, write to the Free Software
  21116. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21117. #
  21118. # END COPYRIGHT BLOCK
  21119. { echo "$as_me:$LINENO: checking for NSS..." >&5
  21120. echo "$as_me: checking for NSS..." >&6;}
  21121. # check for --with-nss
  21122. echo "$as_me:$LINENO: checking for --with-nss" >&5
  21123. echo $ECHO_N "checking for --with-nss... $ECHO_C" >&6
  21124. # Check whether --with-nss or --without-nss was given.
  21125. if test "${with_nss+set}" = set; then
  21126. withval="$with_nss"
  21127. if test -e "$withval"/include/nss.h -a -d "$withval"/lib
  21128. then
  21129. echo "$as_me:$LINENO: result: using $withval" >&5
  21130. echo "${ECHO_T}using $withval" >&6
  21131. NSSDIR=$withval
  21132. nss_inc="-I$NSSDIR/include"
  21133. nss_lib="-L$NSSDIR/lib"
  21134. nss_libdir="$NSSDIR/lib"
  21135. else
  21136. echo
  21137. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21138. echo "$as_me: error: $withval not found" >&2;}
  21139. { (exit 1); exit 1; }; }
  21140. fi
  21141. else
  21142. echo "$as_me:$LINENO: result: no" >&5
  21143. echo "${ECHO_T}no" >&6
  21144. fi;
  21145. # check for --with-nss-inc
  21146. echo "$as_me:$LINENO: checking for --with-nss-inc" >&5
  21147. echo $ECHO_N "checking for --with-nss-inc... $ECHO_C" >&6
  21148. # Check whether --with-nss-inc or --without-nss-inc was given.
  21149. if test "${with_nss_inc+set}" = set; then
  21150. withval="$with_nss_inc"
  21151. if test -e "$withval"/nss.h
  21152. then
  21153. echo "$as_me:$LINENO: result: using $withval" >&5
  21154. echo "${ECHO_T}using $withval" >&6
  21155. nss_inc="-I$withval"
  21156. else
  21157. echo
  21158. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21159. echo "$as_me: error: $withval not found" >&2;}
  21160. { (exit 1); exit 1; }; }
  21161. fi
  21162. else
  21163. echo "$as_me:$LINENO: result: no" >&5
  21164. echo "${ECHO_T}no" >&6
  21165. fi;
  21166. # check for --with-nss-lib
  21167. echo "$as_me:$LINENO: checking for --with-nss-lib" >&5
  21168. echo $ECHO_N "checking for --with-nss-lib... $ECHO_C" >&6
  21169. # Check whether --with-nss-lib or --without-nss-lib was given.
  21170. if test "${with_nss_lib+set}" = set; then
  21171. withval="$with_nss_lib"
  21172. if test -d "$withval"
  21173. then
  21174. echo "$as_me:$LINENO: result: using $withval" >&5
  21175. echo "${ECHO_T}using $withval" >&6
  21176. nss_lib="-L$withval"
  21177. nss_libdir="$withval"
  21178. else
  21179. echo
  21180. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21181. echo "$as_me: error: $withval not found" >&2;}
  21182. { (exit 1); exit 1; }; }
  21183. fi
  21184. else
  21185. echo "$as_me:$LINENO: result: no" >&5
  21186. echo "${ECHO_T}no" >&6
  21187. fi;
  21188. # if NSS is not found yet, try pkg-config
  21189. # last resort
  21190. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  21191. echo "$as_me:$LINENO: checking for nss with pkg-config" >&5
  21192. echo $ECHO_N "checking for nss with pkg-config... $ECHO_C" >&6
  21193. # Extract the first word of "pkg-config", so it can be a program name with args.
  21194. set dummy pkg-config; ac_word=$2
  21195. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21196. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21197. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21198. echo $ECHO_N "(cached) $ECHO_C" >&6
  21199. else
  21200. case $PKG_CONFIG in
  21201. [\\/]* | ?:[\\/]*)
  21202. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21203. ;;
  21204. *)
  21205. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21206. for as_dir in $PATH
  21207. do
  21208. IFS=$as_save_IFS
  21209. test -z "$as_dir" && as_dir=.
  21210. for ac_exec_ext in '' $ac_executable_extensions; do
  21211. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21212. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21213. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21214. break 2
  21215. fi
  21216. done
  21217. done
  21218. ;;
  21219. esac
  21220. fi
  21221. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21222. if test -n "$PKG_CONFIG"; then
  21223. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21224. echo "${ECHO_T}$PKG_CONFIG" >&6
  21225. else
  21226. echo "$as_me:$LINENO: result: no" >&5
  21227. echo "${ECHO_T}no" >&6
  21228. fi
  21229. if test -n "$PKG_CONFIG"; then
  21230. if $PKG_CONFIG --exists nss; then
  21231. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  21232. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  21233. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ *$//`
  21234. echo "$as_me:$LINENO: result: using system NSS" >&5
  21235. echo "${ECHO_T}using system NSS" >&6
  21236. elif $PKG_CONFIG --exists dirsec-nss; then
  21237. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  21238. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  21239. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ *$//`
  21240. echo "$as_me:$LINENO: result: using system dirsec NSS" >&5
  21241. echo "${ECHO_T}using system dirsec NSS" >&6
  21242. else
  21243. { { echo "$as_me:$LINENO: error: NSS not found, specify with --with-nss." >&5
  21244. echo "$as_me: error: NSS not found, specify with --with-nss." >&2;}
  21245. { (exit 1); exit 1; }; }
  21246. fi
  21247. fi
  21248. fi
  21249. # BEGIN COPYRIGHT BLOCK
  21250. # Copyright (C) 2006 Red Hat, Inc.
  21251. # All rights reserved.
  21252. #
  21253. # This program is free software; you can redistribute it and/or
  21254. # modify it under the terms of the GNU General Public License
  21255. # as published by the Free Software Foundation; either version 2
  21256. # of the License, or (at your option) any later version.
  21257. #
  21258. # This program is distributed in the hope that it will be useful,
  21259. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21260. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21261. # GNU General Public License for more details.
  21262. #
  21263. # You should have received a copy of the GNU General Public License
  21264. # along with this program; if not, write to the Free Software
  21265. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21266. #
  21267. # END COPYRIGHT BLOCK
  21268. { echo "$as_me:$LINENO: checking for LDAPSDK..." >&5
  21269. echo "$as_me: checking for LDAPSDK..." >&6;}
  21270. # check for --with-ldapsdk
  21271. echo "$as_me:$LINENO: checking for --with-ldapsdk" >&5
  21272. echo $ECHO_N "checking for --with-ldapsdk... $ECHO_C" >&6
  21273. # Check whether --with-ldapsdk or --without-ldapsdk was given.
  21274. if test "${with_ldapsdk+set}" = set; then
  21275. withval="$with_ldapsdk"
  21276. if test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  21277. then
  21278. echo "$as_me:$LINENO: result: using $withval" >&5
  21279. echo "${ECHO_T}using $withval" >&6
  21280. LDAPSDKDIR=$withval
  21281. ldapsdk_inc="-I$LDAPSDKDIR/include"
  21282. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  21283. ldapsdk_libdir="$LDAPSDKDIR/lib"
  21284. else
  21285. echo
  21286. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21287. echo "$as_me: error: $withval not found" >&2;}
  21288. { (exit 1); exit 1; }; }
  21289. fi
  21290. else
  21291. echo "$as_me:$LINENO: result: no" >&5
  21292. echo "${ECHO_T}no" >&6
  21293. fi;
  21294. # check for --with-ldapsdk-inc
  21295. echo "$as_me:$LINENO: checking for --with-ldapsdk-inc" >&5
  21296. echo $ECHO_N "checking for --with-ldapsdk-inc... $ECHO_C" >&6
  21297. # Check whether --with-ldapsdk-inc or --without-ldapsdk-inc was given.
  21298. if test "${with_ldapsdk_inc+set}" = set; then
  21299. withval="$with_ldapsdk_inc"
  21300. if test -e "$withval"/ldap.h
  21301. then
  21302. echo "$as_me:$LINENO: result: using $withval" >&5
  21303. echo "${ECHO_T}using $withval" >&6
  21304. ldapsdk_inc="-I$withval"
  21305. else
  21306. echo
  21307. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21308. echo "$as_me: error: $withval not found" >&2;}
  21309. { (exit 1); exit 1; }; }
  21310. fi
  21311. else
  21312. echo "$as_me:$LINENO: result: no" >&5
  21313. echo "${ECHO_T}no" >&6
  21314. fi;
  21315. # check for --with-ldapsdk-lib
  21316. echo "$as_me:$LINENO: checking for --with-ldapsdk-lib" >&5
  21317. echo $ECHO_N "checking for --with-ldapsdk-lib... $ECHO_C" >&6
  21318. # Check whether --with-ldapsdk-lib or --without-ldapsdk-lib was given.
  21319. if test "${with_ldapsdk_lib+set}" = set; then
  21320. withval="$with_ldapsdk_lib"
  21321. if test -d "$withval"
  21322. then
  21323. echo "$as_me:$LINENO: result: using $withval" >&5
  21324. echo "${ECHO_T}using $withval" >&6
  21325. ldapsdk_lib="-L$withval"
  21326. ldapsdk_libdir="$withval"
  21327. else
  21328. echo
  21329. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21330. echo "$as_me: error: $withval not found" >&2;}
  21331. { (exit 1); exit 1; }; }
  21332. fi
  21333. else
  21334. echo "$as_me:$LINENO: result: no" >&5
  21335. echo "${ECHO_T}no" >&6
  21336. fi;
  21337. # if LDAPSDK is not found yet, try pkg-config
  21338. # last resort
  21339. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir"; then
  21340. echo "$as_me:$LINENO: checking for mozldap with pkg-config" >&5
  21341. echo $ECHO_N "checking for mozldap with pkg-config... $ECHO_C" >&6
  21342. # Extract the first word of "pkg-config", so it can be a program name with args.
  21343. set dummy pkg-config; ac_word=$2
  21344. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21345. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21346. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21347. echo $ECHO_N "(cached) $ECHO_C" >&6
  21348. else
  21349. case $PKG_CONFIG in
  21350. [\\/]* | ?:[\\/]*)
  21351. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21352. ;;
  21353. *)
  21354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21355. for as_dir in $PATH
  21356. do
  21357. IFS=$as_save_IFS
  21358. test -z "$as_dir" && as_dir=.
  21359. for ac_exec_ext in '' $ac_executable_extensions; do
  21360. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21361. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21362. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21363. break 2
  21364. fi
  21365. done
  21366. done
  21367. ;;
  21368. esac
  21369. fi
  21370. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21371. if test -n "$PKG_CONFIG"; then
  21372. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21373. echo "${ECHO_T}$PKG_CONFIG" >&6
  21374. else
  21375. echo "$as_me:$LINENO: result: no" >&5
  21376. echo "${ECHO_T}no" >&6
  21377. fi
  21378. if test -n "$PKG_CONFIG"; then
  21379. if $PKG_CONFIG --exists mozldap6; then
  21380. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I mozldap6`
  21381. ldapsdk_lib=`$PKG_CONFIG --libs-only-L mozldap6`
  21382. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L mozldap6 | sed -e s/-L// | sed -e s/\ *$//`
  21383. echo "$as_me:$LINENO: result: using system mozldap6" >&5
  21384. echo "${ECHO_T}using system mozldap6" >&6
  21385. else
  21386. { { echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib." >&5
  21387. echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib." >&2;}
  21388. { (exit 1); exit 1; }; }
  21389. fi
  21390. fi
  21391. fi
  21392. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  21393. { { echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib." >&5
  21394. echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib." >&2;}
  21395. { (exit 1); exit 1; }; }
  21396. fi
  21397. ldapsdk_bindir=/usr/lib/mozldap6
  21398. save_cppflags="$CPPFLAGS"
  21399. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  21400. echo "$as_me:$LINENO: checking for ldap.h" >&5
  21401. echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
  21402. if test "${ac_cv_header_ldap_h+set}" = set; then
  21403. echo $ECHO_N "(cached) $ECHO_C" >&6
  21404. else
  21405. cat >conftest.$ac_ext <<_ACEOF
  21406. /* confdefs.h. */
  21407. _ACEOF
  21408. cat confdefs.h >>conftest.$ac_ext
  21409. cat >>conftest.$ac_ext <<_ACEOF
  21410. /* end confdefs.h. */
  21411. #include <ldap-standard.h>
  21412. #if LDAP_VENDOR_VERSION < 600
  21413. #error The LDAP C SDK version is not supported
  21414. #endif
  21415. #include <ldap.h>
  21416. _ACEOF
  21417. rm -f conftest.$ac_objext
  21418. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21419. (eval $ac_compile) 2>conftest.er1
  21420. ac_status=$?
  21421. grep -v '^ *+' conftest.er1 >conftest.err
  21422. rm -f conftest.er1
  21423. cat conftest.err >&5
  21424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21425. (exit $ac_status); } &&
  21426. { ac_try='test -z "$ac_c_werror_flag"
  21427. || test ! -s conftest.err'
  21428. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21429. (eval $ac_try) 2>&5
  21430. ac_status=$?
  21431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21432. (exit $ac_status); }; } &&
  21433. { ac_try='test -s conftest.$ac_objext'
  21434. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21435. (eval $ac_try) 2>&5
  21436. ac_status=$?
  21437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21438. (exit $ac_status); }; }; then
  21439. ac_cv_header_ldap_h=yes
  21440. else
  21441. echo "$as_me: failed program was:" >&5
  21442. sed 's/^/| /' conftest.$ac_ext >&5
  21443. ac_cv_header_ldap_h=no
  21444. fi
  21445. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21446. fi
  21447. echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
  21448. echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
  21449. if test $ac_cv_header_ldap_h = yes; then
  21450. isversion6=1
  21451. else
  21452. isversion6=
  21453. fi
  21454. CPPFLAGS="$save_cppflags"
  21455. if test -z "$isversion6" ; then
  21456. { { echo "$as_me:$LINENO: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&5
  21457. echo "$as_me: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&2;}
  21458. { (exit 1); exit 1; }; }
  21459. fi
  21460. # BEGIN COPYRIGHT BLOCK
  21461. # Copyright (C) 2006 Red Hat, Inc.
  21462. # All rights reserved.
  21463. #
  21464. # This program is free software; you can redistribute it and/or
  21465. # modify it under the terms of the GNU General Public License
  21466. # as published by the Free Software Foundation; either version 2
  21467. # of the License, or (at your option) any later version.
  21468. #
  21469. # This program is distributed in the hope that it will be useful,
  21470. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21471. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21472. # GNU General Public License for more details.
  21473. #
  21474. # You should have received a copy of the GNU General Public License
  21475. # along with this program; if not, write to the Free Software
  21476. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21477. #
  21478. # END COPYRIGHT BLOCK
  21479. { echo "$as_me:$LINENO: checking for db..." >&5
  21480. echo "$as_me: checking for db..." >&6;}
  21481. echo "$as_me:$LINENO: checking for --with-db" >&5
  21482. echo $ECHO_N "checking for --with-db... $ECHO_C" >&6
  21483. # Check whether --with-db or --without-db was given.
  21484. if test "${with_db+set}" = set; then
  21485. withval="$with_db"
  21486. if test "$withval" = "yes"; then
  21487. echo "$as_me:$LINENO: result: yes" >&5
  21488. echo "${ECHO_T}yes" >&6
  21489. if test -f "/usr/include/db.h"; then
  21490. db_incdir="/usr/include"
  21491. db_inc="-I/usr/include"
  21492. else
  21493. { { echo "$as_me:$LINENO: error: db.h not found" >&5
  21494. echo "$as_me: error: db.h not found" >&2;}
  21495. { (exit 1); exit 1; }; }
  21496. fi
  21497. elif test -d "$withval"/include -a -d "$withval"/lib; then
  21498. echo "$as_me:$LINENO: result: using $withval" >&5
  21499. echo "${ECHO_T}using $withval" >&6
  21500. DBDIR=$withval
  21501. db_lib="-L$DBDIR/lib"
  21502. db_libdir="$DBDIR/lib"
  21503. db_incdir="$DBDIR/include"
  21504. if ! test -e "$db_incdir/db.h" ; then
  21505. { { echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  21506. echo "$as_me: error: $withval include dir not found" >&2;}
  21507. { (exit 1); exit 1; }; }
  21508. fi
  21509. db_inc="-I$db_incdir"
  21510. else
  21511. echo
  21512. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21513. echo "$as_me: error: $withval not found" >&2;}
  21514. { (exit 1); exit 1; }; }
  21515. fi
  21516. else
  21517. echo "$as_me:$LINENO: result: no" >&5
  21518. echo "${ECHO_T}no" >&6
  21519. fi;
  21520. db_bindir=/usr/bin
  21521. if test -z "$db_inc"; then
  21522. echo "$as_me:$LINENO: checking for db.h" >&5
  21523. echo $ECHO_N "checking for db.h... $ECHO_C" >&6
  21524. if test -f "/usr/include/db.h"; then
  21525. echo "$as_me:$LINENO: result: using /usr/include/db.h" >&5
  21526. echo "${ECHO_T}using /usr/include/db.h" >&6
  21527. db_incdir="/usr/include"
  21528. db_inc="-I/usr/include"
  21529. else
  21530. echo "$as_me:$LINENO: result: no" >&5
  21531. echo "${ECHO_T}no" >&6
  21532. { { echo "$as_me:$LINENO: error: db not found, specify with --with-db." >&5
  21533. echo "$as_me: error: db not found, specify with --with-db." >&2;}
  21534. { (exit 1); exit 1; }; }
  21535. fi
  21536. fi
  21537. # -*- tab-width: 4; -*-
  21538. # Configure paths for SASL
  21539. # Public domain - Nathan Kinder <[email protected]> 2006-06-26
  21540. # Based upon svrcore.m4 (also PD) by Rich Megginson <[email protected]>
  21541. { echo "$as_me:$LINENO: checking for sasl..." >&5
  21542. echo "$as_me: checking for sasl..." >&6;}
  21543. echo "$as_me:$LINENO: checking for --with-sasl" >&5
  21544. echo $ECHO_N "checking for --with-sasl... $ECHO_C" >&6
  21545. # Check whether --with-sasl or --without-sasl was given.
  21546. if test "${with_sasl+set}" = set; then
  21547. withval="$with_sasl"
  21548. if test "$withval" = "yes"; then
  21549. echo "$as_me:$LINENO: result: yes" >&5
  21550. echo "${ECHO_T}yes" >&6
  21551. if test -f /usr/include/sasl/sasl.h; then
  21552. sasl_inc="-I/usr/include/sasl"
  21553. elif test -f /usr/include/sasl.h; then
  21554. sasl_inc="-I/usr/include"
  21555. else
  21556. { { echo "$as_me:$LINENO: error: sasl.h not found" >&5
  21557. echo "$as_me: error: sasl.h not found" >&2;}
  21558. { (exit 1); exit 1; }; }
  21559. fi
  21560. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  21561. echo "$as_me:$LINENO: result: using $withval" >&5
  21562. echo "${ECHO_T}using $withval" >&6
  21563. if test -f "$withval/include/sasl/sasl.h"; then
  21564. sasl_inc="-I$withval/include/sasl"
  21565. elif test -f "$withval/include/sasl.h"; then
  21566. sasl_inc="-I$withval/include"
  21567. else
  21568. { { echo "$as_me:$LINENO: error: sasl.h not found" >&5
  21569. echo "$as_me: error: sasl.h not found" >&2;}
  21570. { (exit 1); exit 1; }; }
  21571. fi
  21572. sasl_lib="-L$withval/lib"
  21573. sasl_libdir="$withval/lib"
  21574. else
  21575. echo "$as_me:$LINENO: result: yes" >&5
  21576. echo "${ECHO_T}yes" >&6
  21577. { { echo "$as_me:$LINENO: error: sasl not found in $withval" >&5
  21578. echo "$as_me: error: sasl not found in $withval" >&2;}
  21579. { (exit 1); exit 1; }; }
  21580. fi
  21581. else
  21582. echo "$as_me:$LINENO: result: no" >&5
  21583. echo "${ECHO_T}no" >&6
  21584. fi;
  21585. echo "$as_me:$LINENO: checking for --with-sasl-inc" >&5
  21586. echo $ECHO_N "checking for --with-sasl-inc... $ECHO_C" >&6
  21587. # Check whether --with-sasl-inc or --without-sasl-inc was given.
  21588. if test "${with_sasl_inc+set}" = set; then
  21589. withval="$with_sasl_inc"
  21590. if test -f "$withval"/sasl.h; then
  21591. echo "$as_me:$LINENO: result: using $withval" >&5
  21592. echo "${ECHO_T}using $withval" >&6
  21593. sasl_inc="-I$withval"
  21594. else
  21595. echo
  21596. { { echo "$as_me:$LINENO: error: $withval/sasl.h not found" >&5
  21597. echo "$as_me: error: $withval/sasl.h not found" >&2;}
  21598. { (exit 1); exit 1; }; }
  21599. fi
  21600. else
  21601. echo "$as_me:$LINENO: result: no" >&5
  21602. echo "${ECHO_T}no" >&6
  21603. fi;
  21604. echo "$as_me:$LINENO: checking for --with-sasl-lib" >&5
  21605. echo $ECHO_N "checking for --with-sasl-lib... $ECHO_C" >&6
  21606. # Check whether --with-sasl-lib or --without-sasl-lib was given.
  21607. if test "${with_sasl_lib+set}" = set; then
  21608. withval="$with_sasl_lib"
  21609. if test -d "$withval"; then
  21610. echo "$as_me:$LINENO: result: using $withval" >&5
  21611. echo "${ECHO_T}using $withval" >&6
  21612. sasl_lib="-L$withval"
  21613. sasl_libdir="$withval"
  21614. else
  21615. echo
  21616. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21617. echo "$as_me: error: $withval not found" >&2;}
  21618. { (exit 1); exit 1; }; }
  21619. fi
  21620. else
  21621. echo "$as_me:$LINENO: result: no" >&5
  21622. echo "${ECHO_T}no" >&6
  21623. fi;
  21624. if test -z "$sasl_inc"; then
  21625. echo "$as_me:$LINENO: checking for sasl.h" >&5
  21626. echo $ECHO_N "checking for sasl.h... $ECHO_C" >&6
  21627. if test -f /usr/include/sasl/sasl.h; then
  21628. echo "$as_me:$LINENO: result: using /usr/include/sasl/sasl.h" >&5
  21629. echo "${ECHO_T}using /usr/include/sasl/sasl.h" >&6
  21630. sasl_inc="-I/usr/include/sasl"
  21631. elif test -f /usr/include/sasl.h; then
  21632. echo "$as_me:$LINENO: result: using /usr/include/sasl.h" >&5
  21633. echo "${ECHO_T}using /usr/include/sasl.h" >&6
  21634. sasl_inc="-I/usr/include"
  21635. else
  21636. echo "$as_me:$LINENO: result: no" >&5
  21637. echo "${ECHO_T}no" >&6
  21638. { { echo "$as_me:$LINENO: error: sasl not found, specify with --with-sasl." >&5
  21639. echo "$as_me: error: sasl not found, specify with --with-sasl." >&2;}
  21640. { (exit 1); exit 1; }; }
  21641. fi
  21642. fi
  21643. # -*- tab-width: 4; -*-
  21644. # Configure paths for SVRCORE
  21645. # Public domain - Nathan Kinder <[email protected]> 2006-06-26
  21646. echo "$as_me:$LINENO: checking for --with-svrcore" >&5
  21647. echo $ECHO_N "checking for --with-svrcore... $ECHO_C" >&6
  21648. # Check whether --with-svrcore or --without-svrcore was given.
  21649. if test "${with_svrcore+set}" = set; then
  21650. withval="$with_svrcore"
  21651. if test "$withval" = "yes"; then
  21652. echo "$as_me:$LINENO: result: yes" >&5
  21653. echo "${ECHO_T}yes" >&6
  21654. if test -f /usr/include/svrcore.h; then
  21655. svrcore_inc="-I/usr/include"
  21656. else
  21657. { { echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  21658. echo "$as_me: error: svrcore.h not found" >&2;}
  21659. { (exit 1); exit 1; }; }
  21660. fi
  21661. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  21662. echo "$as_me:$LINENO: result: using $withval" >&5
  21663. echo "${ECHO_T}using $withval" >&6
  21664. if test -f "$withval/include/svrcore.h"; then
  21665. svrcore_inc="-I$withval/include"
  21666. else
  21667. { { echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  21668. echo "$as_me: error: svrcore.h not found" >&2;}
  21669. { (exit 1); exit 1; }; }
  21670. fi
  21671. svrcore_lib="-L$withval/lib"
  21672. else
  21673. echo "$as_me:$LINENO: result: yes" >&5
  21674. echo "${ECHO_T}yes" >&6
  21675. { { echo "$as_me:$LINENO: error: svrcore not found in $withval" >&5
  21676. echo "$as_me: error: svrcore not found in $withval" >&2;}
  21677. { (exit 1); exit 1; }; }
  21678. fi
  21679. else
  21680. echo "$as_me:$LINENO: result: no" >&5
  21681. echo "${ECHO_T}no" >&6
  21682. fi;
  21683. echo "$as_me:$LINENO: checking for --with-svrcore-inc" >&5
  21684. echo $ECHO_N "checking for --with-svrcore-inc... $ECHO_C" >&6
  21685. # Check whether --with-svrcore-inc or --without-svrcore-inc was given.
  21686. if test "${with_svrcore_inc+set}" = set; then
  21687. withval="$with_svrcore_inc"
  21688. if test -f "$withval"/svrcore.h; then
  21689. echo "$as_me:$LINENO: result: using $withval" >&5
  21690. echo "${ECHO_T}using $withval" >&6
  21691. svrcore_inc="-I$withval"
  21692. else
  21693. echo
  21694. { { echo "$as_me:$LINENO: error: $withval/svrcore.h not found" >&5
  21695. echo "$as_me: error: $withval/svrcore.h not found" >&2;}
  21696. { (exit 1); exit 1; }; }
  21697. fi
  21698. else
  21699. echo "$as_me:$LINENO: result: no" >&5
  21700. echo "${ECHO_T}no" >&6
  21701. fi;
  21702. echo "$as_me:$LINENO: checking for --with-svrcore-lib" >&5
  21703. echo $ECHO_N "checking for --with-svrcore-lib... $ECHO_C" >&6
  21704. # Check whether --with-svrcore-lib or --without-svrcore-lib was given.
  21705. if test "${with_svrcore_lib+set}" = set; then
  21706. withval="$with_svrcore_lib"
  21707. if test -d "$withval"; then
  21708. echo "$as_me:$LINENO: result: using $withval" >&5
  21709. echo "${ECHO_T}using $withval" >&6
  21710. svrcore_lib="-L$withval"
  21711. else
  21712. echo
  21713. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21714. echo "$as_me: error: $withval not found" >&2;}
  21715. { (exit 1); exit 1; }; }
  21716. fi
  21717. else
  21718. echo "$as_me:$LINENO: result: no" >&5
  21719. echo "${ECHO_T}no" >&6
  21720. fi;
  21721. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  21722. echo "$as_me:$LINENO: checking for svrcore with pkg-config" >&5
  21723. echo $ECHO_N "checking for svrcore with pkg-config... $ECHO_C" >&6
  21724. # Extract the first word of "pkg-config", so it can be a program name with args.
  21725. set dummy pkg-config; ac_word=$2
  21726. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21727. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21728. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21729. echo $ECHO_N "(cached) $ECHO_C" >&6
  21730. else
  21731. case $PKG_CONFIG in
  21732. [\\/]* | ?:[\\/]*)
  21733. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21734. ;;
  21735. *)
  21736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21737. for as_dir in $PATH
  21738. do
  21739. IFS=$as_save_IFS
  21740. test -z "$as_dir" && as_dir=.
  21741. for ac_exec_ext in '' $ac_executable_extensions; do
  21742. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21743. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21744. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21745. break 2
  21746. fi
  21747. done
  21748. done
  21749. ;;
  21750. esac
  21751. fi
  21752. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21753. if test -n "$PKG_CONFIG"; then
  21754. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21755. echo "${ECHO_T}$PKG_CONFIG" >&6
  21756. else
  21757. echo "$as_me:$LINENO: result: no" >&5
  21758. echo "${ECHO_T}no" >&6
  21759. fi
  21760. if test -n "$PKG_CONFIG"; then
  21761. if $PKG_CONFIG --exists svrcore-devel; then
  21762. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore-devel`
  21763. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore-devel`
  21764. echo "$as_me:$LINENO: result: using system svrcore" >&5
  21765. echo "${ECHO_T}using system svrcore" >&6
  21766. fi
  21767. fi
  21768. fi
  21769. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  21770. echo "$as_me:$LINENO: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  21771. echo $ECHO_N "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... $ECHO_C" >&6
  21772. if test "${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+set}" = set; then
  21773. echo $ECHO_N "(cached) $ECHO_C" >&6
  21774. else
  21775. ac_check_lib_save_LIBS=$LIBS
  21776. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  21777. cat >conftest.$ac_ext <<_ACEOF
  21778. /* confdefs.h. */
  21779. _ACEOF
  21780. cat confdefs.h >>conftest.$ac_ext
  21781. cat >>conftest.$ac_ext <<_ACEOF
  21782. /* end confdefs.h. */
  21783. /* Override any gcc2 internal prototype to avoid an error. */
  21784. #ifdef __cplusplus
  21785. extern "C"
  21786. #endif
  21787. /* We use char because int might match the return type of a gcc2
  21788. builtin and then its argument prototype would still apply. */
  21789. char SVRCORE_GetRegisteredPinObj ();
  21790. int
  21791. main ()
  21792. {
  21793. SVRCORE_GetRegisteredPinObj ();
  21794. ;
  21795. return 0;
  21796. }
  21797. _ACEOF
  21798. rm -f conftest.$ac_objext conftest$ac_exeext
  21799. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21800. (eval $ac_link) 2>conftest.er1
  21801. ac_status=$?
  21802. grep -v '^ *+' conftest.er1 >conftest.err
  21803. rm -f conftest.er1
  21804. cat conftest.err >&5
  21805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21806. (exit $ac_status); } &&
  21807. { ac_try='test -z "$ac_c_werror_flag"
  21808. || test ! -s conftest.err'
  21809. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21810. (eval $ac_try) 2>&5
  21811. ac_status=$?
  21812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21813. (exit $ac_status); }; } &&
  21814. { ac_try='test -s conftest$ac_exeext'
  21815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21816. (eval $ac_try) 2>&5
  21817. ac_status=$?
  21818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21819. (exit $ac_status); }; }; then
  21820. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  21821. else
  21822. echo "$as_me: failed program was:" >&5
  21823. sed 's/^/| /' conftest.$ac_ext >&5
  21824. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  21825. fi
  21826. rm -f conftest.err conftest.$ac_objext \
  21827. conftest$ac_exeext conftest.$ac_ext
  21828. LIBS=$ac_check_lib_save_LIBS
  21829. fi
  21830. echo "$as_me:$LINENO: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  21831. echo "${ECHO_T}$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6
  21832. if test $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj = yes; then
  21833. havesvrcore=1
  21834. fi
  21835. if test -n "$havesvrcore" ; then
  21836. save_cppflags="$CPPFLAGS"
  21837. CPPFLAGS="$nss_inc $nspr_inc"
  21838. if test "${ac_cv_header_svrcore_h+set}" = set; then
  21839. echo "$as_me:$LINENO: checking for svrcore.h" >&5
  21840. echo $ECHO_N "checking for svrcore.h... $ECHO_C" >&6
  21841. if test "${ac_cv_header_svrcore_h+set}" = set; then
  21842. echo $ECHO_N "(cached) $ECHO_C" >&6
  21843. fi
  21844. echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  21845. echo "${ECHO_T}$ac_cv_header_svrcore_h" >&6
  21846. else
  21847. # Is the header compilable?
  21848. echo "$as_me:$LINENO: checking svrcore.h usability" >&5
  21849. echo $ECHO_N "checking svrcore.h usability... $ECHO_C" >&6
  21850. cat >conftest.$ac_ext <<_ACEOF
  21851. /* confdefs.h. */
  21852. _ACEOF
  21853. cat confdefs.h >>conftest.$ac_ext
  21854. cat >>conftest.$ac_ext <<_ACEOF
  21855. /* end confdefs.h. */
  21856. $ac_includes_default
  21857. #include <svrcore.h>
  21858. _ACEOF
  21859. rm -f conftest.$ac_objext
  21860. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21861. (eval $ac_compile) 2>conftest.er1
  21862. ac_status=$?
  21863. grep -v '^ *+' conftest.er1 >conftest.err
  21864. rm -f conftest.er1
  21865. cat conftest.err >&5
  21866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21867. (exit $ac_status); } &&
  21868. { ac_try='test -z "$ac_c_werror_flag"
  21869. || test ! -s conftest.err'
  21870. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21871. (eval $ac_try) 2>&5
  21872. ac_status=$?
  21873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21874. (exit $ac_status); }; } &&
  21875. { ac_try='test -s conftest.$ac_objext'
  21876. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21877. (eval $ac_try) 2>&5
  21878. ac_status=$?
  21879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21880. (exit $ac_status); }; }; then
  21881. ac_header_compiler=yes
  21882. else
  21883. echo "$as_me: failed program was:" >&5
  21884. sed 's/^/| /' conftest.$ac_ext >&5
  21885. ac_header_compiler=no
  21886. fi
  21887. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21888. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21889. echo "${ECHO_T}$ac_header_compiler" >&6
  21890. # Is the header present?
  21891. echo "$as_me:$LINENO: checking svrcore.h presence" >&5
  21892. echo $ECHO_N "checking svrcore.h presence... $ECHO_C" >&6
  21893. cat >conftest.$ac_ext <<_ACEOF
  21894. /* confdefs.h. */
  21895. _ACEOF
  21896. cat confdefs.h >>conftest.$ac_ext
  21897. cat >>conftest.$ac_ext <<_ACEOF
  21898. /* end confdefs.h. */
  21899. #include <svrcore.h>
  21900. _ACEOF
  21901. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  21902. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  21903. ac_status=$?
  21904. grep -v '^ *+' conftest.er1 >conftest.err
  21905. rm -f conftest.er1
  21906. cat conftest.err >&5
  21907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21908. (exit $ac_status); } >/dev/null; then
  21909. if test -s conftest.err; then
  21910. ac_cpp_err=$ac_c_preproc_warn_flag
  21911. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  21912. else
  21913. ac_cpp_err=
  21914. fi
  21915. else
  21916. ac_cpp_err=yes
  21917. fi
  21918. if test -z "$ac_cpp_err"; then
  21919. ac_header_preproc=yes
  21920. else
  21921. echo "$as_me: failed program was:" >&5
  21922. sed 's/^/| /' conftest.$ac_ext >&5
  21923. ac_header_preproc=no
  21924. fi
  21925. rm -f conftest.err conftest.$ac_ext
  21926. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21927. echo "${ECHO_T}$ac_header_preproc" >&6
  21928. # So? What about this header?
  21929. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21930. yes:no: )
  21931. { echo "$as_me:$LINENO: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&5
  21932. echo "$as_me: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21933. { echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the compiler's result" >&5
  21934. echo "$as_me: WARNING: svrcore.h: proceeding with the compiler's result" >&2;}
  21935. ac_header_preproc=yes
  21936. ;;
  21937. no:yes:* )
  21938. { echo "$as_me:$LINENO: WARNING: svrcore.h: present but cannot be compiled" >&5
  21939. echo "$as_me: WARNING: svrcore.h: present but cannot be compiled" >&2;}
  21940. { echo "$as_me:$LINENO: WARNING: svrcore.h: check for missing prerequisite headers?" >&5
  21941. echo "$as_me: WARNING: svrcore.h: check for missing prerequisite headers?" >&2;}
  21942. { echo "$as_me:$LINENO: WARNING: svrcore.h: see the Autoconf documentation" >&5
  21943. echo "$as_me: WARNING: svrcore.h: see the Autoconf documentation" >&2;}
  21944. { echo "$as_me:$LINENO: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&5
  21945. echo "$as_me: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&2;}
  21946. { echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the preprocessor's result" >&5
  21947. echo "$as_me: WARNING: svrcore.h: proceeding with the preprocessor's result" >&2;}
  21948. { echo "$as_me:$LINENO: WARNING: svrcore.h: in the future, the compiler will take precedence" >&5
  21949. echo "$as_me: WARNING: svrcore.h: in the future, the compiler will take precedence" >&2;}
  21950. (
  21951. cat <<\_ASBOX
  21952. ## ------------------------------------------ ##
  21953. ## Report this to http://bugzilla.redhat.com/ ##
  21954. ## ------------------------------------------ ##
  21955. _ASBOX
  21956. ) |
  21957. sed "s/^/$as_me: WARNING: /" >&2
  21958. ;;
  21959. esac
  21960. echo "$as_me:$LINENO: checking for svrcore.h" >&5
  21961. echo $ECHO_N "checking for svrcore.h... $ECHO_C" >&6
  21962. if test "${ac_cv_header_svrcore_h+set}" = set; then
  21963. echo $ECHO_N "(cached) $ECHO_C" >&6
  21964. else
  21965. ac_cv_header_svrcore_h=$ac_header_preproc
  21966. fi
  21967. echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  21968. echo "${ECHO_T}$ac_cv_header_svrcore_h" >&6
  21969. fi
  21970. if test $ac_cv_header_svrcore_h = yes; then
  21971. havesvrcore=1
  21972. else
  21973. havesvrcore=
  21974. fi
  21975. CPPFLAGS="$save_cppflags"
  21976. fi
  21977. if test -z "$havesvrcore" ; then
  21978. { { echo "$as_me:$LINENO: error: svrcore not found, specify with --with-svrcore." >&5
  21979. echo "$as_me: error: svrcore not found, specify with --with-svrcore." >&2;}
  21980. { (exit 1); exit 1; }; }
  21981. fi
  21982. fi
  21983. # BEGIN COPYRIGHT BLOCK
  21984. # Copyright (C) 2006 Red Hat, Inc.
  21985. # All rights reserved.
  21986. #
  21987. # This program is free software; you can redistribute it and/or
  21988. # modify it under the terms of the GNU General Public License
  21989. # as published by the Free Software Foundation; either version 2
  21990. # of the License, or (at your option) any later version.
  21991. #
  21992. # This program is distributed in the hope that it will be useful,
  21993. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21994. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21995. # GNU General Public License for more details.
  21996. #
  21997. # You should have received a copy of the GNU General Public License
  21998. # along with this program; if not, write to the Free Software
  21999. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22000. #
  22001. # END COPYRIGHT BLOCK
  22002. { echo "$as_me:$LINENO: checking for LIBICU..." >&5
  22003. echo "$as_me: checking for LIBICU..." >&6;}
  22004. # check for --with-icu
  22005. echo "$as_me:$LINENO: checking for --with-icu" >&5
  22006. echo $ECHO_N "checking for --with-icu... $ECHO_C" >&6
  22007. # Check whether --with-icu or --without-icu was given.
  22008. if test "${with_icu+set}" = set; then
  22009. withval="$with_icu"
  22010. if test -d "$withval"/lib
  22011. then
  22012. echo "$as_me:$LINENO: result: using $withval" >&5
  22013. echo "${ECHO_T}using $withval" >&6
  22014. ICUDIR=$withval
  22015. icu_lib="-L$ICUDIR/lib"
  22016. else
  22017. echo
  22018. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22019. echo "$as_me: error: $withval not found" >&2;}
  22020. { (exit 1); exit 1; }; }
  22021. fi
  22022. icu_inc="-I$withval/include"
  22023. icu_bin="$withval/bin"
  22024. else
  22025. echo "$as_me:$LINENO: result: no" >&5
  22026. echo "${ECHO_T}no" >&6
  22027. fi;
  22028. # check for --with-icu-inc
  22029. echo "$as_me:$LINENO: checking for --with-icu-inc" >&5
  22030. echo $ECHO_N "checking for --with-icu-inc... $ECHO_C" >&6
  22031. # Check whether --with-icu-inc or --without-icu-inc was given.
  22032. if test "${with_icu_inc+set}" = set; then
  22033. withval="$with_icu_inc"
  22034. if test -d "$withval"
  22035. then
  22036. echo "$as_me:$LINENO: result: using $withval" >&5
  22037. echo "${ECHO_T}using $withval" >&6
  22038. icu_inc="-I$withval"
  22039. else
  22040. echo
  22041. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22042. echo "$as_me: error: $withval not found" >&2;}
  22043. { (exit 1); exit 1; }; }
  22044. fi
  22045. else
  22046. echo "$as_me:$LINENO: result: no" >&5
  22047. echo "${ECHO_T}no" >&6
  22048. fi;
  22049. # check for --with-icu-lib
  22050. echo "$as_me:$LINENO: checking for --with-icu-lib" >&5
  22051. echo $ECHO_N "checking for --with-icu-lib... $ECHO_C" >&6
  22052. # Check whether --with-icu-lib or --without-icu-lib was given.
  22053. if test "${with_icu_lib+set}" = set; then
  22054. withval="$with_icu_lib"
  22055. if test -d "$withval"
  22056. then
  22057. echo "$as_me:$LINENO: result: using $withval" >&5
  22058. echo "${ECHO_T}using $withval" >&6
  22059. icu_lib="-L$withval"
  22060. else
  22061. echo
  22062. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22063. echo "$as_me: error: $withval not found" >&2;}
  22064. { (exit 1); exit 1; }; }
  22065. fi
  22066. else
  22067. echo "$as_me:$LINENO: result: no" >&5
  22068. echo "${ECHO_T}no" >&6
  22069. fi;
  22070. # check for --with-icu-bin
  22071. echo "$as_me:$LINENO: checking for --with-icu-bin" >&5
  22072. echo $ECHO_N "checking for --with-icu-bin... $ECHO_C" >&6
  22073. # Check whether --with-icu-bin or --without-icu-bin was given.
  22074. if test "${with_icu_bin+set}" = set; then
  22075. withval="$with_icu_bin"
  22076. if test -d "$withval"
  22077. then
  22078. echo "$as_me:$LINENO: result: using $withval" >&5
  22079. echo "${ECHO_T}using $withval" >&6
  22080. icu_bin="$withval"
  22081. else
  22082. echo
  22083. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22084. echo "$as_me: error: $withval not found" >&2;}
  22085. { (exit 1); exit 1; }; }
  22086. fi
  22087. else
  22088. echo "$as_me:$LINENO: result: no" >&5
  22089. echo "${ECHO_T}no" >&6
  22090. fi;
  22091. # if not found yet, try pkg-config
  22092. # last resort
  22093. if test -z "$icu_lib"; then
  22094. echo "$as_me:$LINENO: checking for icu with icu-config" >&5
  22095. echo $ECHO_N "checking for icu with icu-config... $ECHO_C" >&6
  22096. # Extract the first word of "icu-config", so it can be a program name with args.
  22097. set dummy icu-config; ac_word=$2
  22098. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22099. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22100. if test "${ac_cv_path_ICU_CONFIG+set}" = set; then
  22101. echo $ECHO_N "(cached) $ECHO_C" >&6
  22102. else
  22103. case $ICU_CONFIG in
  22104. [\\/]* | ?:[\\/]*)
  22105. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  22106. ;;
  22107. *)
  22108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22109. for as_dir in $PATH
  22110. do
  22111. IFS=$as_save_IFS
  22112. test -z "$as_dir" && as_dir=.
  22113. for ac_exec_ext in '' $ac_executable_extensions; do
  22114. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22115. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22116. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22117. break 2
  22118. fi
  22119. done
  22120. done
  22121. ;;
  22122. esac
  22123. fi
  22124. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  22125. if test -n "$ICU_CONFIG"; then
  22126. echo "$as_me:$LINENO: result: $ICU_CONFIG" >&5
  22127. echo "${ECHO_T}$ICU_CONFIG" >&6
  22128. else
  22129. echo "$as_me:$LINENO: result: no" >&5
  22130. echo "${ECHO_T}no" >&6
  22131. fi
  22132. if test -n "$ICU_CONFIG"; then
  22133. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  22134. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  22135. icu_bin=`$ICU_CONFIG --bindir`
  22136. echo "$as_me:$LINENO: result: using system ICU" >&5
  22137. echo "${ECHO_T}using system ICU" >&6
  22138. else
  22139. { { echo "$as_me:$LINENO: error: ICU not found, specify with --with-icu." >&5
  22140. echo "$as_me: error: ICU not found, specify with --with-icu." >&2;}
  22141. { (exit 1); exit 1; }; }
  22142. fi
  22143. fi
  22144. # BEGIN COPYRIGHT BLOCK
  22145. # Copyright (C) 2006 Red Hat, Inc.
  22146. # All rights reserved.
  22147. #
  22148. # This program is free software; you can redistribute it and/or
  22149. # modify it under the terms of the GNU General Public License
  22150. # as published by the Free Software Foundation; either version 2
  22151. # of the License, or (at your option) any later version.
  22152. #
  22153. # This program is distributed in the hope that it will be useful,
  22154. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22155. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22156. # GNU General Public License for more details.
  22157. #
  22158. # You should have received a copy of the GNU General Public License
  22159. # along with this program; if not, write to the Free Software
  22160. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22161. #
  22162. # END COPYRIGHT BLOCK
  22163. { echo "$as_me:$LINENO: checking for Net-SNMP..." >&5
  22164. echo "$as_me: checking for Net-SNMP..." >&6;}
  22165. echo "$as_me:$LINENO: checking for --with-netsnmp" >&5
  22166. echo $ECHO_N "checking for --with-netsnmp... $ECHO_C" >&6
  22167. # Check whether --with-netsnmp or --without-netsnmp was given.
  22168. if test "${with_netsnmp+set}" = set; then
  22169. withval="$with_netsnmp"
  22170. if test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  22171. echo "$as_me:$LINENO: result: using $withval" >&5
  22172. echo "${ECHO_T}using $withval" >&6
  22173. NETSNMPDIR=$withval
  22174. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  22175. netsnmp_inc="-I$withval/include"
  22176. else
  22177. { { echo "$as_me:$LINENO: error: net-snmp-config.h not found" >&5
  22178. echo "$as_me: error: net-snmp-config.h not found" >&2;}
  22179. { (exit 1); exit 1; }; }
  22180. fi
  22181. netsnmp_lib="-L$withval/lib"
  22182. netsnmp_libdir="$withval/lib"
  22183. else
  22184. echo "$as_me:$LINENO: result: yes" >&5
  22185. echo "${ECHO_T}yes" >&6
  22186. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22187. echo "$as_me: error: $withval not found" >&2;}
  22188. { (exit 1); exit 1; }; }
  22189. fi
  22190. else
  22191. echo "$as_me:$LINENO: result: no" >&5
  22192. echo "${ECHO_T}no" >&6
  22193. fi;
  22194. echo "$as_me:$LINENO: checking for --with-netsnmp-inc" >&5
  22195. echo $ECHO_N "checking for --with-netsnmp-inc... $ECHO_C" >&6
  22196. # Check whether --with-netsnmp-inc or --without-netsnmp-inc was given.
  22197. if test "${with_netsnmp_inc+set}" = set; then
  22198. withval="$with_netsnmp_inc"
  22199. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  22200. echo "$as_me:$LINENO: result: using $withval" >&5
  22201. echo "${ECHO_T}using $withval" >&6
  22202. netsnmp_inc="-I$withval"
  22203. else
  22204. echo
  22205. { { echo "$as_me:$LINENO: error: $withval/net-snmp/net-snmp-includes.h not found" >&5
  22206. echo "$as_me: error: $withval/net-snmp/net-snmp-includes.h not found" >&2;}
  22207. { (exit 1); exit 1; }; }
  22208. fi
  22209. else
  22210. echo "$as_me:$LINENO: result: no" >&5
  22211. echo "${ECHO_T}no" >&6
  22212. fi;
  22213. echo "$as_me:$LINENO: checking for --with-netsnmp-lib" >&5
  22214. echo $ECHO_N "checking for --with-netsnmp-lib... $ECHO_C" >&6
  22215. # Check whether --with-netsnmp-lib or --without-netsnmp-lib was given.
  22216. if test "${with_netsnmp_lib+set}" = set; then
  22217. withval="$with_netsnmp_lib"
  22218. if test -d "$withval"
  22219. then
  22220. echo "$as_me:$LINENO: result: using $withval" >&5
  22221. echo "${ECHO_T}using $withval" >&6
  22222. netsnmp_lib="-L$withval"
  22223. netsnmp_libdir="$withval"
  22224. else
  22225. echo
  22226. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22227. echo "$as_me: error: $withval not found" >&2;}
  22228. { (exit 1); exit 1; }; }
  22229. fi
  22230. else
  22231. echo "$as_me:$LINENO: result: no" >&5
  22232. echo "${ECHO_T}no" >&6
  22233. fi;
  22234. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  22235. echo "$as_me:$LINENO: checking for net-snmp-includes.h" >&5
  22236. echo $ECHO_N "checking for net-snmp-includes.h... $ECHO_C" >&6
  22237. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  22238. echo "$as_me:$LINENO: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  22239. echo "${ECHO_T}using /usr/include/net-snmp/net-snmp-includes.h" >&6
  22240. netsnmp_inc="-I/usr/include"
  22241. else
  22242. echo "$as_me:$LINENO: result: no" >&5
  22243. echo "${ECHO_T}no" >&6
  22244. { { echo "$as_me:$LINENO: error: net-snmp not found, specify with --with-netsnmp." >&5
  22245. echo "$as_me: error: net-snmp not found, specify with --with-netsnmp." >&2;}
  22246. { (exit 1); exit 1; }; }
  22247. fi
  22248. fi
  22249. if test -n "$netsnmp_inc"; then
  22250. echo "$as_me:$LINENO: checking for netsnmp libs with net-snmp-config" >&5
  22251. echo $ECHO_N "checking for netsnmp libs with net-snmp-config... $ECHO_C" >&6
  22252. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  22253. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  22254. else
  22255. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  22256. set dummy net-snmp-config; ac_word=$2
  22257. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22258. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22259. if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
  22260. echo $ECHO_N "(cached) $ECHO_C" >&6
  22261. else
  22262. case $NETSNMP_CONFIG in
  22263. [\\/]* | ?:[\\/]*)
  22264. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  22265. ;;
  22266. *)
  22267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22268. for as_dir in $PATH
  22269. do
  22270. IFS=$as_save_IFS
  22271. test -z "$as_dir" && as_dir=.
  22272. for ac_exec_ext in '' $ac_executable_extensions; do
  22273. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22274. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22275. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22276. break 2
  22277. fi
  22278. done
  22279. done
  22280. ;;
  22281. esac
  22282. fi
  22283. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  22284. if test -n "$NETSNMP_CONFIG"; then
  22285. echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
  22286. echo "${ECHO_T}$NETSNMP_CONFIG" >&6
  22287. else
  22288. echo "$as_me:$LINENO: result: no" >&5
  22289. echo "${ECHO_T}no" >&6
  22290. fi
  22291. fi
  22292. if test -n "$NETSNMP_CONFIG"; then
  22293. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  22294. else
  22295. { { echo "$as_me:$LINENO: error: net-snmp-config not found, specify with --with-netsnmp." >&5
  22296. echo "$as_me: error: net-snmp-config not found, specify with --with-netsnmp." >&2;}
  22297. { (exit 1); exit 1; }; }
  22298. fi
  22299. else
  22300. { { echo "$as_me:$LINENO: error: Net-SNMP not found, specify with --with-netsnmp." >&5
  22301. echo "$as_me: error: Net-SNMP not found, specify with --with-netsnmp." >&2;}
  22302. { (exit 1); exit 1; }; }
  22303. fi
  22304. # BEGIN COPYRIGHT BLOCK
  22305. # Copyright (C) 2006 Red Hat, Inc.
  22306. # All rights reserved.
  22307. #
  22308. # This program is free software; you can redistribute it and/or
  22309. # modify it under the terms of the GNU General Public License
  22310. # as published by the Free Software Foundation; either version 2
  22311. # of the License, or (at your option) any later version.
  22312. #
  22313. # This program is distributed in the hope that it will be useful,
  22314. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22315. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22316. # GNU General Public License for more details.
  22317. #
  22318. # You should have received a copy of the GNU General Public License
  22319. # along with this program; if not, write to the Free Software
  22320. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22321. #
  22322. # END COPYRIGHT BLOCK
  22323. { echo "$as_me:$LINENO: checking for FHS..." >&5
  22324. echo "$as_me: checking for FHS..." >&6;}
  22325. # check for --with-fhs
  22326. echo "$as_me:$LINENO: checking for --with-fhs" >&5
  22327. echo $ECHO_N "checking for --with-fhs... $ECHO_C" >&6
  22328. # Check whether --with-fhs or --without-fhs was given.
  22329. if test "${with_fhs+set}" = set; then
  22330. withval="$with_fhs"
  22331. with_fhs=yes
  22332. else
  22333. echo "$as_me:$LINENO: result: no" >&5
  22334. echo "${ECHO_T}no" >&6
  22335. fi;
  22336. if test "$with_fhs" = "yes"; then
  22337. cat >>confdefs.h <<\_ACEOF
  22338. #define IS_FHS 1
  22339. _ACEOF
  22340. fi
  22341. # write out paths for binary components
  22342. # installation paths
  22343. if test "$with_fhs" = "yes"; then
  22344. bindir=@prefix@/usr/bin
  22345. libdir=@prefix@/usr/lib
  22346. datadir=@prefix@/usr/share
  22347. fi
  22348. # relative to sysconfdir
  22349. configdir=/fedora-ds/config
  22350. # relative to datadir
  22351. sampledatadir=/fedora-ds/data
  22352. # relative to sysconfdir
  22353. propertydir=/fedora-ds/property
  22354. # relative to sysconfdir
  22355. schemadir=/fedora-ds/schema
  22356. # relative to libdir
  22357. serverdir=/fedora-ds
  22358. # relative to libdir
  22359. serverplugindir=/fedora-ds/plugins
  22360. # relative to sysconfdir
  22361. scripttemplatedir=/fedora-ds/script-templates
  22362. # WINNT should be true if building on Windows system not using
  22363. # cygnus, mingw, or the like and using cmd.exe as the shell
  22364. if false; then
  22365. WINNT_TRUE=
  22366. WINNT_FALSE='#'
  22367. else
  22368. WINNT_TRUE='#'
  22369. WINNT_FALSE=
  22370. fi
  22371. # Deal with platform dependent defines
  22372. case $host in
  22373. *-*-linux*)
  22374. cat >>confdefs.h <<\_ACEOF
  22375. #define XP_UNIX 1
  22376. _ACEOF
  22377. cat >>confdefs.h <<\_ACEOF
  22378. #define Linux 1
  22379. _ACEOF
  22380. cat >>confdefs.h <<\_ACEOF
  22381. #define LINUX 1
  22382. _ACEOF
  22383. cat >>confdefs.h <<\_ACEOF
  22384. #define LINUX2_0 1
  22385. _ACEOF
  22386. cat >>confdefs.h <<\_ACEOF
  22387. #define LINUX2_2 1
  22388. _ACEOF
  22389. cat >>confdefs.h <<\_ACEOF
  22390. #define LINUX2_4 1
  22391. _ACEOF
  22392. platform="linux"
  22393. ;;
  22394. ia64-hp-hpux*)
  22395. cat >>confdefs.h <<\_ACEOF
  22396. #define XP_UNIX 1
  22397. _ACEOF
  22398. cat >>confdefs.h <<\_ACEOF
  22399. #define hpux 1
  22400. _ACEOF
  22401. cat >>confdefs.h <<\_ACEOF
  22402. #define HPUX 1
  22403. _ACEOF
  22404. cat >>confdefs.h <<\_ACEOF
  22405. #define HPUX11 1
  22406. _ACEOF
  22407. cat >>confdefs.h <<\_ACEOF
  22408. #define HPUX11_23 1
  22409. _ACEOF
  22410. cat >>confdefs.h <<\_ACEOF
  22411. #define CPU_ia64
  22412. _ACEOF
  22413. cat >>confdefs.h <<\_ACEOF
  22414. #define OS_hpux 1
  22415. _ACEOF
  22416. platform="hpux"
  22417. ;;
  22418. hppa*-hp-hpux*)
  22419. cat >>confdefs.h <<\_ACEOF
  22420. #define XP_UNIX 1
  22421. _ACEOF
  22422. cat >>confdefs.h <<\_ACEOF
  22423. #define hpux 1
  22424. _ACEOF
  22425. cat >>confdefs.h <<\_ACEOF
  22426. #define HPUX 1
  22427. _ACEOF
  22428. cat >>confdefs.h <<\_ACEOF
  22429. #define HPUX11 1
  22430. _ACEOF
  22431. cat >>confdefs.h <<\_ACEOF
  22432. #define HPUX11_11 1
  22433. _ACEOF
  22434. cat >>confdefs.h <<\_ACEOF
  22435. #define CPU_hppa
  22436. _ACEOF
  22437. cat >>confdefs.h <<\_ACEOF
  22438. #define OS_hpux 1
  22439. _ACEOF
  22440. platform="hpux"
  22441. ;;
  22442. sparc-sun-solaris*)
  22443. cat >>confdefs.h <<\_ACEOF
  22444. #define XP_UNIX 1
  22445. _ACEOF
  22446. cat >>confdefs.h <<\_ACEOF
  22447. #define SVR4 1
  22448. _ACEOF
  22449. cat >>confdefs.h <<\_ACEOF
  22450. #define __svr4 1
  22451. _ACEOF
  22452. cat >>confdefs.h <<\_ACEOF
  22453. #define __svr4__ 1
  22454. _ACEOF
  22455. cat >>confdefs.h <<\_ACEOF
  22456. #define _SVID_GETTOD 1
  22457. _ACEOF
  22458. cat >>confdefs.h <<\_ACEOF
  22459. #define SOLARIS 1
  22460. _ACEOF
  22461. cat >>confdefs.h <<\_ACEOF
  22462. #define CPU_sparc
  22463. _ACEOF
  22464. cat >>confdefs.h <<\_ACEOF
  22465. #define OS_solaris 1
  22466. _ACEOF
  22467. cat >>confdefs.h <<\_ACEOF
  22468. #define sunos5 1
  22469. _ACEOF
  22470. cat >>confdefs.h <<\_ACEOF
  22471. #define OSVERSION 509
  22472. _ACEOF
  22473. cat >>confdefs.h <<\_ACEOF
  22474. #define _REENTRANT 1
  22475. _ACEOF
  22476. platform="solaris"
  22477. ;;
  22478. *)
  22479. platform_defs=""
  22480. platform=""
  22481. ;;
  22482. esac
  22483. cat >>confdefs.h <<\_ACEOF
  22484. #define LDAP_DEBUG 1
  22485. _ACEOF
  22486. cat >>confdefs.h <<\_ACEOF
  22487. #define LDAP_DONT_USE_SMARTHEAP 1
  22488. _ACEOF
  22489. ac_config_files="$ac_config_files Makefile"
  22490. cat >confcache <<\_ACEOF
  22491. # This file is a shell script that caches the results of configure
  22492. # tests run on this system so they can be shared between configure
  22493. # scripts and configure runs, see configure's option --config-cache.
  22494. # It is not useful on other systems. If it contains results you don't
  22495. # want to keep, you may remove or edit it.
  22496. #
  22497. # config.status only pays attention to the cache file if you give it
  22498. # the --recheck option to rerun configure.
  22499. #
  22500. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22501. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22502. # following values.
  22503. _ACEOF
  22504. # The following way of writing the cache mishandles newlines in values,
  22505. # but we know of no workaround that is simple, portable, and efficient.
  22506. # So, don't put newlines in cache variables' values.
  22507. # Ultrix sh set writes to stderr and can't be redirected directly,
  22508. # and sets the high bit in the cache file unless we assign to the vars.
  22509. {
  22510. (set) 2>&1 |
  22511. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  22512. *ac_space=\ *)
  22513. # `set' does not quote correctly, so add quotes (double-quote
  22514. # substitution turns \\\\ into \\, and sed turns \\ into \).
  22515. sed -n \
  22516. "s/'/'\\\\''/g;
  22517. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22518. ;;
  22519. *)
  22520. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22521. sed -n \
  22522. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  22523. ;;
  22524. esac;
  22525. } |
  22526. sed '
  22527. t clear
  22528. : clear
  22529. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22530. t end
  22531. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22532. : end' >>confcache
  22533. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  22534. if test -w $cache_file; then
  22535. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  22536. cat confcache >$cache_file
  22537. else
  22538. echo "not updating unwritable cache $cache_file"
  22539. fi
  22540. fi
  22541. rm -f confcache
  22542. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22543. # Let make expand exec_prefix.
  22544. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22545. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  22546. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  22547. # trailing colons and then remove the whole line if VPATH becomes empty
  22548. # (actually we leave an empty line to preserve line numbers).
  22549. if test "x$srcdir" = x.; then
  22550. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  22551. s/:*\$(srcdir):*/:/;
  22552. s/:*\${srcdir}:*/:/;
  22553. s/:*@srcdir@:*/:/;
  22554. s/^\([^=]*=[ ]*\):*/\1/;
  22555. s/:*$//;
  22556. s/^[^=]*=[ ]*$//;
  22557. }'
  22558. fi
  22559. DEFS=-DHAVE_CONFIG_H
  22560. ac_libobjs=
  22561. ac_ltlibobjs=
  22562. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22563. # 1. Remove the extension, and $U if already installed.
  22564. ac_i=`echo "$ac_i" |
  22565. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  22566. # 2. Add them.
  22567. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  22568. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  22569. done
  22570. LIBOBJS=$ac_libobjs
  22571. LTLIBOBJS=$ac_ltlibobjs
  22572. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  22573. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  22574. Usually this means the macro was only invoked conditionally." >&5
  22575. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  22576. Usually this means the macro was only invoked conditionally." >&2;}
  22577. { (exit 1); exit 1; }; }
  22578. fi
  22579. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  22580. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  22581. Usually this means the macro was only invoked conditionally." >&5
  22582. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  22583. Usually this means the macro was only invoked conditionally." >&2;}
  22584. { (exit 1); exit 1; }; }
  22585. fi
  22586. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  22587. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  22588. Usually this means the macro was only invoked conditionally." >&5
  22589. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  22590. Usually this means the macro was only invoked conditionally." >&2;}
  22591. { (exit 1); exit 1; }; }
  22592. fi
  22593. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  22594. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  22595. Usually this means the macro was only invoked conditionally." >&5
  22596. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  22597. Usually this means the macro was only invoked conditionally." >&2;}
  22598. { (exit 1); exit 1; }; }
  22599. fi
  22600. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  22601. { { echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined.
  22602. Usually this means the macro was only invoked conditionally." >&5
  22603. echo "$as_me: error: conditional \"SOLARIS\" was never defined.
  22604. Usually this means the macro was only invoked conditionally." >&2;}
  22605. { (exit 1); exit 1; }; }
  22606. fi
  22607. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  22608. { { echo "$as_me:$LINENO: error: conditional \"WINNT\" was never defined.
  22609. Usually this means the macro was only invoked conditionally." >&5
  22610. echo "$as_me: error: conditional \"WINNT\" was never defined.
  22611. Usually this means the macro was only invoked conditionally." >&2;}
  22612. { (exit 1); exit 1; }; }
  22613. fi
  22614. : ${CONFIG_STATUS=./config.status}
  22615. ac_clean_files_save=$ac_clean_files
  22616. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22617. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  22618. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22619. cat >$CONFIG_STATUS <<_ACEOF
  22620. #! $SHELL
  22621. # Generated by $as_me.
  22622. # Run this file to recreate the current configuration.
  22623. # Compiler output produced by configure, useful for debugging
  22624. # configure, is in config.log if it exists.
  22625. debug=false
  22626. ac_cs_recheck=false
  22627. ac_cs_silent=false
  22628. SHELL=\${CONFIG_SHELL-$SHELL}
  22629. _ACEOF
  22630. cat >>$CONFIG_STATUS <<\_ACEOF
  22631. ## --------------------- ##
  22632. ## M4sh Initialization. ##
  22633. ## --------------------- ##
  22634. # Be Bourne compatible
  22635. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  22636. emulate sh
  22637. NULLCMD=:
  22638. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  22639. # is contrary to our usage. Disable this feature.
  22640. alias -g '${1+"$@"}'='"$@"'
  22641. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  22642. set -o posix
  22643. fi
  22644. DUALCASE=1; export DUALCASE # for MKS sh
  22645. # Support unset when possible.
  22646. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  22647. as_unset=unset
  22648. else
  22649. as_unset=false
  22650. fi
  22651. # Work around bugs in pre-3.0 UWIN ksh.
  22652. $as_unset ENV MAIL MAILPATH
  22653. PS1='$ '
  22654. PS2='> '
  22655. PS4='+ '
  22656. # NLS nuisances.
  22657. for as_var in \
  22658. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  22659. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  22660. LC_TELEPHONE LC_TIME
  22661. do
  22662. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  22663. eval $as_var=C; export $as_var
  22664. else
  22665. $as_unset $as_var
  22666. fi
  22667. done
  22668. # Required to use basename.
  22669. if expr a : '\(a\)' >/dev/null 2>&1; then
  22670. as_expr=expr
  22671. else
  22672. as_expr=false
  22673. fi
  22674. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  22675. as_basename=basename
  22676. else
  22677. as_basename=false
  22678. fi
  22679. # Name of the executable.
  22680. as_me=`$as_basename "$0" ||
  22681. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22682. X"$0" : 'X\(//\)$' \| \
  22683. X"$0" : 'X\(/\)$' \| \
  22684. . : '\(.\)' 2>/dev/null ||
  22685. echo X/"$0" |
  22686. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  22687. /^X\/\(\/\/\)$/{ s//\1/; q; }
  22688. /^X\/\(\/\).*/{ s//\1/; q; }
  22689. s/.*/./; q'`
  22690. # PATH needs CR, and LINENO needs CR and PATH.
  22691. # Avoid depending upon Character Ranges.
  22692. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22693. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22694. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22695. as_cr_digits='0123456789'
  22696. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22697. # The user is always right.
  22698. if test "${PATH_SEPARATOR+set}" != set; then
  22699. echo "#! /bin/sh" >conf$$.sh
  22700. echo "exit 0" >>conf$$.sh
  22701. chmod +x conf$$.sh
  22702. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  22703. PATH_SEPARATOR=';'
  22704. else
  22705. PATH_SEPARATOR=:
  22706. fi
  22707. rm -f conf$$.sh
  22708. fi
  22709. as_lineno_1=$LINENO
  22710. as_lineno_2=$LINENO
  22711. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  22712. test "x$as_lineno_1" != "x$as_lineno_2" &&
  22713. test "x$as_lineno_3" = "x$as_lineno_2" || {
  22714. # Find who we are. Look in the path if we contain no path at all
  22715. # relative or not.
  22716. case $0 in
  22717. *[\\/]* ) as_myself=$0 ;;
  22718. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22719. for as_dir in $PATH
  22720. do
  22721. IFS=$as_save_IFS
  22722. test -z "$as_dir" && as_dir=.
  22723. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22724. done
  22725. ;;
  22726. esac
  22727. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22728. # in which case we are not to be found in the path.
  22729. if test "x$as_myself" = x; then
  22730. as_myself=$0
  22731. fi
  22732. if test ! -f "$as_myself"; then
  22733. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  22734. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  22735. { (exit 1); exit 1; }; }
  22736. fi
  22737. case $CONFIG_SHELL in
  22738. '')
  22739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22740. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  22741. do
  22742. IFS=$as_save_IFS
  22743. test -z "$as_dir" && as_dir=.
  22744. for as_base in sh bash ksh sh5; do
  22745. case $as_dir in
  22746. /*)
  22747. if ("$as_dir/$as_base" -c '
  22748. as_lineno_1=$LINENO
  22749. as_lineno_2=$LINENO
  22750. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  22751. test "x$as_lineno_1" != "x$as_lineno_2" &&
  22752. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  22753. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  22754. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  22755. CONFIG_SHELL=$as_dir/$as_base
  22756. export CONFIG_SHELL
  22757. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  22758. fi;;
  22759. esac
  22760. done
  22761. done
  22762. ;;
  22763. esac
  22764. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  22765. # uniformly replaced by the line number. The first 'sed' inserts a
  22766. # line-number line before each line; the second 'sed' does the real
  22767. # work. The second script uses 'N' to pair each line-number line
  22768. # with the numbered line, and appends trailing '-' during
  22769. # substitution so that $LINENO is not a special case at line end.
  22770. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  22771. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  22772. sed '=' <$as_myself |
  22773. sed '
  22774. N
  22775. s,$,-,
  22776. : loop
  22777. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  22778. t loop
  22779. s,-$,,
  22780. s,^['$as_cr_digits']*\n,,
  22781. ' >$as_me.lineno &&
  22782. chmod +x $as_me.lineno ||
  22783. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  22784. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  22785. { (exit 1); exit 1; }; }
  22786. # Don't try to exec as it changes $[0], causing all sort of problems
  22787. # (the dirname of $[0] is not the place where we might find the
  22788. # original and so on. Autoconf is especially sensible to this).
  22789. . ./$as_me.lineno
  22790. # Exit status is that of the last command.
  22791. exit
  22792. }
  22793. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  22794. *c*,-n*) ECHO_N= ECHO_C='
  22795. ' ECHO_T=' ' ;;
  22796. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  22797. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  22798. esac
  22799. if expr a : '\(a\)' >/dev/null 2>&1; then
  22800. as_expr=expr
  22801. else
  22802. as_expr=false
  22803. fi
  22804. rm -f conf$$ conf$$.exe conf$$.file
  22805. echo >conf$$.file
  22806. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22807. # We could just check for DJGPP; but this test a) works b) is more generic
  22808. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  22809. if test -f conf$$.exe; then
  22810. # Don't use ln at all; we don't have any links
  22811. as_ln_s='cp -p'
  22812. else
  22813. as_ln_s='ln -s'
  22814. fi
  22815. elif ln conf$$.file conf$$ 2>/dev/null; then
  22816. as_ln_s=ln
  22817. else
  22818. as_ln_s='cp -p'
  22819. fi
  22820. rm -f conf$$ conf$$.exe conf$$.file
  22821. if mkdir -p . 2>/dev/null; then
  22822. as_mkdir_p=:
  22823. else
  22824. test -d ./-p && rmdir ./-p
  22825. as_mkdir_p=false
  22826. fi
  22827. as_executable_p="test -f"
  22828. # Sed expression to map a string onto a valid CPP name.
  22829. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22830. # Sed expression to map a string onto a valid variable name.
  22831. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22832. # IFS
  22833. # We need space, tab and new line, in precisely that order.
  22834. as_nl='
  22835. '
  22836. IFS=" $as_nl"
  22837. # CDPATH.
  22838. $as_unset CDPATH
  22839. exec 6>&1
  22840. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  22841. # report actual input values of CONFIG_FILES etc. instead of their
  22842. # values after options handling. Logging --version etc. is OK.
  22843. exec 5>>config.log
  22844. {
  22845. echo
  22846. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22847. ## Running $as_me. ##
  22848. _ASBOX
  22849. } >&5
  22850. cat >&5 <<_CSEOF
  22851. This file was extended by fedora-ds $as_me 1.1, which was
  22852. generated by GNU Autoconf 2.59. Invocation command line was
  22853. CONFIG_FILES = $CONFIG_FILES
  22854. CONFIG_HEADERS = $CONFIG_HEADERS
  22855. CONFIG_LINKS = $CONFIG_LINKS
  22856. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22857. $ $0 $@
  22858. _CSEOF
  22859. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  22860. echo >&5
  22861. _ACEOF
  22862. # Files that config.status was made for.
  22863. if test -n "$ac_config_files"; then
  22864. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  22865. fi
  22866. if test -n "$ac_config_headers"; then
  22867. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  22868. fi
  22869. if test -n "$ac_config_links"; then
  22870. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  22871. fi
  22872. if test -n "$ac_config_commands"; then
  22873. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  22874. fi
  22875. cat >>$CONFIG_STATUS <<\_ACEOF
  22876. ac_cs_usage="\
  22877. \`$as_me' instantiates files from templates according to the
  22878. current configuration.
  22879. Usage: $0 [OPTIONS] [FILE]...
  22880. -h, --help print this help, then exit
  22881. -V, --version print version number, then exit
  22882. -q, --quiet do not print progress messages
  22883. -d, --debug don't remove temporary files
  22884. --recheck update $as_me by reconfiguring in the same conditions
  22885. --file=FILE[:TEMPLATE]
  22886. instantiate the configuration file FILE
  22887. --header=FILE[:TEMPLATE]
  22888. instantiate the configuration header FILE
  22889. Configuration files:
  22890. $config_files
  22891. Configuration headers:
  22892. $config_headers
  22893. Configuration commands:
  22894. $config_commands
  22895. Report bugs to <[email protected]>."
  22896. _ACEOF
  22897. cat >>$CONFIG_STATUS <<_ACEOF
  22898. ac_cs_version="\\
  22899. fedora-ds config.status 1.1
  22900. configured by $0, generated by GNU Autoconf 2.59,
  22901. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  22902. Copyright (C) 2003 Free Software Foundation, Inc.
  22903. This config.status script is free software; the Free Software Foundation
  22904. gives unlimited permission to copy, distribute and modify it."
  22905. srcdir=$srcdir
  22906. INSTALL="$INSTALL"
  22907. _ACEOF
  22908. cat >>$CONFIG_STATUS <<\_ACEOF
  22909. # If no file are specified by the user, then we need to provide default
  22910. # value. By we need to know if files were specified by the user.
  22911. ac_need_defaults=:
  22912. while test $# != 0
  22913. do
  22914. case $1 in
  22915. --*=*)
  22916. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  22917. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  22918. ac_shift=:
  22919. ;;
  22920. -*)
  22921. ac_option=$1
  22922. ac_optarg=$2
  22923. ac_shift=shift
  22924. ;;
  22925. *) # This is not an option, so the user has probably given explicit
  22926. # arguments.
  22927. ac_option=$1
  22928. ac_need_defaults=false;;
  22929. esac
  22930. case $ac_option in
  22931. # Handling of the options.
  22932. _ACEOF
  22933. cat >>$CONFIG_STATUS <<\_ACEOF
  22934. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22935. ac_cs_recheck=: ;;
  22936. --version | --vers* | -V )
  22937. echo "$ac_cs_version"; exit 0 ;;
  22938. --he | --h)
  22939. # Conflict between --help and --header
  22940. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  22941. Try \`$0 --help' for more information." >&5
  22942. echo "$as_me: error: ambiguous option: $1
  22943. Try \`$0 --help' for more information." >&2;}
  22944. { (exit 1); exit 1; }; };;
  22945. --help | --hel | -h )
  22946. echo "$ac_cs_usage"; exit 0 ;;
  22947. --debug | --d* | -d )
  22948. debug=: ;;
  22949. --file | --fil | --fi | --f )
  22950. $ac_shift
  22951. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  22952. ac_need_defaults=false;;
  22953. --header | --heade | --head | --hea )
  22954. $ac_shift
  22955. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  22956. ac_need_defaults=false;;
  22957. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22958. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22959. ac_cs_silent=: ;;
  22960. # This is an error.
  22961. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  22962. Try \`$0 --help' for more information." >&5
  22963. echo "$as_me: error: unrecognized option: $1
  22964. Try \`$0 --help' for more information." >&2;}
  22965. { (exit 1); exit 1; }; } ;;
  22966. *) ac_config_targets="$ac_config_targets $1" ;;
  22967. esac
  22968. shift
  22969. done
  22970. ac_configure_extra_args=
  22971. if $ac_cs_silent; then
  22972. exec 6>/dev/null
  22973. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22974. fi
  22975. _ACEOF
  22976. cat >>$CONFIG_STATUS <<_ACEOF
  22977. if \$ac_cs_recheck; then
  22978. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  22979. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22980. fi
  22981. _ACEOF
  22982. cat >>$CONFIG_STATUS <<_ACEOF
  22983. #
  22984. # INIT-COMMANDS section.
  22985. #
  22986. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  22987. _ACEOF
  22988. cat >>$CONFIG_STATUS <<\_ACEOF
  22989. for ac_config_target in $ac_config_targets
  22990. do
  22991. case "$ac_config_target" in
  22992. # Handling of arguments.
  22993. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  22994. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  22995. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  22996. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  22997. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  22998. { (exit 1); exit 1; }; };;
  22999. esac
  23000. done
  23001. # If the user did not use the arguments to specify the items to instantiate,
  23002. # then the envvar interface is used. Set only those that are not.
  23003. # We use the long form for the default assignment because of an extremely
  23004. # bizarre bug on SunOS 4.1.3.
  23005. if $ac_need_defaults; then
  23006. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23007. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23008. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23009. fi
  23010. # Have a temporary directory for convenience. Make it in the build tree
  23011. # simply because there is no reason to put it here, and in addition,
  23012. # creating and moving files from /tmp can sometimes cause problems.
  23013. # Create a temporary directory, and hook for its removal unless debugging.
  23014. $debug ||
  23015. {
  23016. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  23017. trap '{ (exit 1); exit 1; }' 1 2 13 15
  23018. }
  23019. # Create a (secure) tmp directory for tmp files.
  23020. {
  23021. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  23022. test -n "$tmp" && test -d "$tmp"
  23023. } ||
  23024. {
  23025. tmp=./confstat$$-$RANDOM
  23026. (umask 077 && mkdir $tmp)
  23027. } ||
  23028. {
  23029. echo "$me: cannot create a temporary directory in ." >&2
  23030. { (exit 1); exit 1; }
  23031. }
  23032. _ACEOF
  23033. cat >>$CONFIG_STATUS <<_ACEOF
  23034. #
  23035. # CONFIG_FILES section.
  23036. #
  23037. # No need to generate the scripts if there are no CONFIG_FILES.
  23038. # This happens for instance when ./config.status config.h
  23039. if test -n "\$CONFIG_FILES"; then
  23040. # Protect against being on the right side of a sed subst in config.status.
  23041. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  23042. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  23043. s,@SHELL@,$SHELL,;t t
  23044. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  23045. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  23046. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  23047. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  23048. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  23049. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  23050. s,@exec_prefix@,$exec_prefix,;t t
  23051. s,@prefix@,$prefix,;t t
  23052. s,@program_transform_name@,$program_transform_name,;t t
  23053. s,@bindir@,$bindir,;t t
  23054. s,@sbindir@,$sbindir,;t t
  23055. s,@libexecdir@,$libexecdir,;t t
  23056. s,@datadir@,$datadir,;t t
  23057. s,@sysconfdir@,$sysconfdir,;t t
  23058. s,@sharedstatedir@,$sharedstatedir,;t t
  23059. s,@localstatedir@,$localstatedir,;t t
  23060. s,@libdir@,$libdir,;t t
  23061. s,@includedir@,$includedir,;t t
  23062. s,@oldincludedir@,$oldincludedir,;t t
  23063. s,@infodir@,$infodir,;t t
  23064. s,@mandir@,$mandir,;t t
  23065. s,@build_alias@,$build_alias,;t t
  23066. s,@host_alias@,$host_alias,;t t
  23067. s,@target_alias@,$target_alias,;t t
  23068. s,@DEFS@,$DEFS,;t t
  23069. s,@ECHO_C@,$ECHO_C,;t t
  23070. s,@ECHO_N@,$ECHO_N,;t t
  23071. s,@ECHO_T@,$ECHO_T,;t t
  23072. s,@LIBS@,$LIBS,;t t
  23073. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  23074. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  23075. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  23076. s,@CYGPATH_W@,$CYGPATH_W,;t t
  23077. s,@PACKAGE@,$PACKAGE,;t t
  23078. s,@VERSION@,$VERSION,;t t
  23079. s,@ACLOCAL@,$ACLOCAL,;t t
  23080. s,@AUTOCONF@,$AUTOCONF,;t t
  23081. s,@AUTOMAKE@,$AUTOMAKE,;t t
  23082. s,@AUTOHEADER@,$AUTOHEADER,;t t
  23083. s,@MAKEINFO@,$MAKEINFO,;t t
  23084. s,@install_sh@,$install_sh,;t t
  23085. s,@STRIP@,$STRIP,;t t
  23086. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  23087. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  23088. s,@mkdir_p@,$mkdir_p,;t t
  23089. s,@AWK@,$AWK,;t t
  23090. s,@SET_MAKE@,$SET_MAKE,;t t
  23091. s,@am__leading_dot@,$am__leading_dot,;t t
  23092. s,@AMTAR@,$AMTAR,;t t
  23093. s,@am__tar@,$am__tar,;t t
  23094. s,@am__untar@,$am__untar,;t t
  23095. s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  23096. s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  23097. s,@MAINT@,$MAINT,;t t
  23098. s,@build@,$build,;t t
  23099. s,@build_cpu@,$build_cpu,;t t
  23100. s,@build_vendor@,$build_vendor,;t t
  23101. s,@build_os@,$build_os,;t t
  23102. s,@host@,$host,;t t
  23103. s,@host_cpu@,$host_cpu,;t t
  23104. s,@host_vendor@,$host_vendor,;t t
  23105. s,@host_os@,$host_os,;t t
  23106. s,@CXX@,$CXX,;t t
  23107. s,@CXXFLAGS@,$CXXFLAGS,;t t
  23108. s,@LDFLAGS@,$LDFLAGS,;t t
  23109. s,@CPPFLAGS@,$CPPFLAGS,;t t
  23110. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  23111. s,@EXEEXT@,$EXEEXT,;t t
  23112. s,@OBJEXT@,$OBJEXT,;t t
  23113. s,@DEPDIR@,$DEPDIR,;t t
  23114. s,@am__include@,$am__include,;t t
  23115. s,@am__quote@,$am__quote,;t t
  23116. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  23117. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  23118. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  23119. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  23120. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  23121. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  23122. s,@CC@,$CC,;t t
  23123. s,@CFLAGS@,$CFLAGS,;t t
  23124. s,@ac_ct_CC@,$ac_ct_CC,;t t
  23125. s,@CCDEPMODE@,$CCDEPMODE,;t t
  23126. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  23127. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  23128. s,@EGREP@,$EGREP,;t t
  23129. s,@LN_S@,$LN_S,;t t
  23130. s,@ECHO@,$ECHO,;t t
  23131. s,@AR@,$AR,;t t
  23132. s,@ac_ct_AR@,$ac_ct_AR,;t t
  23133. s,@RANLIB@,$RANLIB,;t t
  23134. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  23135. s,@CPP@,$CPP,;t t
  23136. s,@CXXCPP@,$CXXCPP,;t t
  23137. s,@F77@,$F77,;t t
  23138. s,@FFLAGS@,$FFLAGS,;t t
  23139. s,@ac_ct_F77@,$ac_ct_F77,;t t
  23140. s,@LIBTOOL@,$LIBTOOL,;t t
  23141. s,@LIBOBJS@,$LIBOBJS,;t t
  23142. s,@platform_defs@,$platform_defs,;t t
  23143. s,@SOLARIS_TRUE@,$SOLARIS_TRUE,;t t
  23144. s,@SOLARIS_FALSE@,$SOLARIS_FALSE,;t t
  23145. s,@debug_defs@,$debug_defs,;t t
  23146. s,@PKG_CONFIG@,$PKG_CONFIG,;t t
  23147. s,@ICU_CONFIG@,$ICU_CONFIG,;t t
  23148. s,@NETSNMP_CONFIG@,$NETSNMP_CONFIG,;t t
  23149. s,@nspr_inc@,$nspr_inc,;t t
  23150. s,@nspr_lib@,$nspr_lib,;t t
  23151. s,@nspr_libdir@,$nspr_libdir,;t t
  23152. s,@nss_inc@,$nss_inc,;t t
  23153. s,@nss_lib@,$nss_lib,;t t
  23154. s,@nss_libdir@,$nss_libdir,;t t
  23155. s,@ldapsdk_inc@,$ldapsdk_inc,;t t
  23156. s,@ldapsdk_lib@,$ldapsdk_lib,;t t
  23157. s,@ldapsdk_libdir@,$ldapsdk_libdir,;t t
  23158. s,@ldapsdk_bindir@,$ldapsdk_bindir,;t t
  23159. s,@db_inc@,$db_inc,;t t
  23160. s,@db_incdir@,$db_incdir,;t t
  23161. s,@db_lib@,$db_lib,;t t
  23162. s,@db_libdir@,$db_libdir,;t t
  23163. s,@db_bindir@,$db_bindir,;t t
  23164. s,@sasl_inc@,$sasl_inc,;t t
  23165. s,@sasl_lib@,$sasl_lib,;t t
  23166. s,@sasl_libdir@,$sasl_libdir,;t t
  23167. s,@svrcore_inc@,$svrcore_inc,;t t
  23168. s,@svrcore_lib@,$svrcore_lib,;t t
  23169. s,@icu_lib@,$icu_lib,;t t
  23170. s,@icu_inc@,$icu_inc,;t t
  23171. s,@icu_bin@,$icu_bin,;t t
  23172. s,@netsnmp_inc@,$netsnmp_inc,;t t
  23173. s,@netsnmp_lib@,$netsnmp_lib,;t t
  23174. s,@netsnmp_libdir@,$netsnmp_libdir,;t t
  23175. s,@netsnmp_link@,$netsnmp_link,;t t
  23176. s,@configdir@,$configdir,;t t
  23177. s,@sampledatadir@,$sampledatadir,;t t
  23178. s,@propertydir@,$propertydir,;t t
  23179. s,@schemadir@,$schemadir,;t t
  23180. s,@serverdir@,$serverdir,;t t
  23181. s,@serverplugindir@,$serverplugindir,;t t
  23182. s,@scripttemplatedir@,$scripttemplatedir,;t t
  23183. s,@WINNT_TRUE@,$WINNT_TRUE,;t t
  23184. s,@WINNT_FALSE@,$WINNT_FALSE,;t t
  23185. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  23186. CEOF
  23187. _ACEOF
  23188. cat >>$CONFIG_STATUS <<\_ACEOF
  23189. # Split the substitutions into bite-sized pieces for seds with
  23190. # small command number limits, like on Digital OSF/1 and HP-UX.
  23191. ac_max_sed_lines=48
  23192. ac_sed_frag=1 # Number of current file.
  23193. ac_beg=1 # First line for current file.
  23194. ac_end=$ac_max_sed_lines # Line after last line for current file.
  23195. ac_more_lines=:
  23196. ac_sed_cmds=
  23197. while $ac_more_lines; do
  23198. if test $ac_beg -gt 1; then
  23199. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  23200. else
  23201. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  23202. fi
  23203. if test ! -s $tmp/subs.frag; then
  23204. ac_more_lines=false
  23205. else
  23206. # The purpose of the label and of the branching condition is to
  23207. # speed up the sed processing (if there are no `@' at all, there
  23208. # is no need to browse any of the substitutions).
  23209. # These are the two extra sed commands mentioned above.
  23210. (echo ':t
  23211. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  23212. if test -z "$ac_sed_cmds"; then
  23213. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  23214. else
  23215. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  23216. fi
  23217. ac_sed_frag=`expr $ac_sed_frag + 1`
  23218. ac_beg=$ac_end
  23219. ac_end=`expr $ac_end + $ac_max_sed_lines`
  23220. fi
  23221. done
  23222. if test -z "$ac_sed_cmds"; then
  23223. ac_sed_cmds=cat
  23224. fi
  23225. fi # test -n "$CONFIG_FILES"
  23226. _ACEOF
  23227. cat >>$CONFIG_STATUS <<\_ACEOF
  23228. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  23229. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  23230. case $ac_file in
  23231. - | *:- | *:-:* ) # input from stdin
  23232. cat >$tmp/stdin
  23233. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23234. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  23235. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23236. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  23237. * ) ac_file_in=$ac_file.in ;;
  23238. esac
  23239. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  23240. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  23241. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23242. X"$ac_file" : 'X\(//\)[^/]' \| \
  23243. X"$ac_file" : 'X\(//\)$' \| \
  23244. X"$ac_file" : 'X\(/\)' \| \
  23245. . : '\(.\)' 2>/dev/null ||
  23246. echo X"$ac_file" |
  23247. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23248. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23249. /^X\(\/\/\)$/{ s//\1/; q; }
  23250. /^X\(\/\).*/{ s//\1/; q; }
  23251. s/.*/./; q'`
  23252. { if $as_mkdir_p; then
  23253. mkdir -p "$ac_dir"
  23254. else
  23255. as_dir="$ac_dir"
  23256. as_dirs=
  23257. while test ! -d "$as_dir"; do
  23258. as_dirs="$as_dir $as_dirs"
  23259. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  23260. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23261. X"$as_dir" : 'X\(//\)[^/]' \| \
  23262. X"$as_dir" : 'X\(//\)$' \| \
  23263. X"$as_dir" : 'X\(/\)' \| \
  23264. . : '\(.\)' 2>/dev/null ||
  23265. echo X"$as_dir" |
  23266. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23267. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23268. /^X\(\/\/\)$/{ s//\1/; q; }
  23269. /^X\(\/\).*/{ s//\1/; q; }
  23270. s/.*/./; q'`
  23271. done
  23272. test ! -n "$as_dirs" || mkdir $as_dirs
  23273. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  23274. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  23275. { (exit 1); exit 1; }; }; }
  23276. ac_builddir=.
  23277. if test "$ac_dir" != .; then
  23278. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  23279. # A "../" for each directory in $ac_dir_suffix.
  23280. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  23281. else
  23282. ac_dir_suffix= ac_top_builddir=
  23283. fi
  23284. case $srcdir in
  23285. .) # No --srcdir option. We are building in place.
  23286. ac_srcdir=.
  23287. if test -z "$ac_top_builddir"; then
  23288. ac_top_srcdir=.
  23289. else
  23290. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  23291. fi ;;
  23292. [\\/]* | ?:[\\/]* ) # Absolute path.
  23293. ac_srcdir=$srcdir$ac_dir_suffix;
  23294. ac_top_srcdir=$srcdir ;;
  23295. *) # Relative path.
  23296. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  23297. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  23298. esac
  23299. # Do not use `cd foo && pwd` to compute absolute paths, because
  23300. # the directories may not exist.
  23301. case `pwd` in
  23302. .) ac_abs_builddir="$ac_dir";;
  23303. *)
  23304. case "$ac_dir" in
  23305. .) ac_abs_builddir=`pwd`;;
  23306. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  23307. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  23308. esac;;
  23309. esac
  23310. case $ac_abs_builddir in
  23311. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  23312. *)
  23313. case ${ac_top_builddir}. in
  23314. .) ac_abs_top_builddir=$ac_abs_builddir;;
  23315. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  23316. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  23317. esac;;
  23318. esac
  23319. case $ac_abs_builddir in
  23320. .) ac_abs_srcdir=$ac_srcdir;;
  23321. *)
  23322. case $ac_srcdir in
  23323. .) ac_abs_srcdir=$ac_abs_builddir;;
  23324. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  23325. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  23326. esac;;
  23327. esac
  23328. case $ac_abs_builddir in
  23329. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  23330. *)
  23331. case $ac_top_srcdir in
  23332. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  23333. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  23334. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  23335. esac;;
  23336. esac
  23337. case $INSTALL in
  23338. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23339. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  23340. esac
  23341. if test x"$ac_file" != x-; then
  23342. { echo "$as_me:$LINENO: creating $ac_file" >&5
  23343. echo "$as_me: creating $ac_file" >&6;}
  23344. rm -f "$ac_file"
  23345. fi
  23346. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23347. # use $as_me), people would be surprised to read:
  23348. # /* config.h. Generated by config.status. */
  23349. if test x"$ac_file" = x-; then
  23350. configure_input=
  23351. else
  23352. configure_input="$ac_file. "
  23353. fi
  23354. configure_input=$configure_input"Generated from `echo $ac_file_in |
  23355. sed 's,.*/,,'` by configure."
  23356. # First look for the input files in the build tree, otherwise in the
  23357. # src tree.
  23358. ac_file_inputs=`IFS=:
  23359. for f in $ac_file_in; do
  23360. case $f in
  23361. -) echo $tmp/stdin ;;
  23362. [\\/$]*)
  23363. # Absolute (can't be DOS-style, as IFS=:)
  23364. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  23365. echo "$as_me: error: cannot find input file: $f" >&2;}
  23366. { (exit 1); exit 1; }; }
  23367. echo "$f";;
  23368. *) # Relative
  23369. if test -f "$f"; then
  23370. # Build tree
  23371. echo "$f"
  23372. elif test -f "$srcdir/$f"; then
  23373. # Source tree
  23374. echo "$srcdir/$f"
  23375. else
  23376. # /dev/null tree
  23377. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  23378. echo "$as_me: error: cannot find input file: $f" >&2;}
  23379. { (exit 1); exit 1; }; }
  23380. fi;;
  23381. esac
  23382. done` || { (exit 1); exit 1; }
  23383. _ACEOF
  23384. cat >>$CONFIG_STATUS <<_ACEOF
  23385. sed "$ac_vpsub
  23386. $extrasub
  23387. _ACEOF
  23388. cat >>$CONFIG_STATUS <<\_ACEOF
  23389. :t
  23390. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23391. s,@configure_input@,$configure_input,;t t
  23392. s,@srcdir@,$ac_srcdir,;t t
  23393. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  23394. s,@top_srcdir@,$ac_top_srcdir,;t t
  23395. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  23396. s,@builddir@,$ac_builddir,;t t
  23397. s,@abs_builddir@,$ac_abs_builddir,;t t
  23398. s,@top_builddir@,$ac_top_builddir,;t t
  23399. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  23400. s,@INSTALL@,$ac_INSTALL,;t t
  23401. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  23402. rm -f $tmp/stdin
  23403. if test x"$ac_file" != x-; then
  23404. mv $tmp/out $ac_file
  23405. else
  23406. cat $tmp/out
  23407. rm -f $tmp/out
  23408. fi
  23409. done
  23410. _ACEOF
  23411. cat >>$CONFIG_STATUS <<\_ACEOF
  23412. #
  23413. # CONFIG_HEADER section.
  23414. #
  23415. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  23416. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  23417. #
  23418. # ac_d sets the value in "#define NAME VALUE" lines.
  23419. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  23420. ac_dB='[ ].*$,\1#\2'
  23421. ac_dC=' '
  23422. ac_dD=',;t'
  23423. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  23424. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  23425. ac_uB='$,\1#\2define\3'
  23426. ac_uC=' '
  23427. ac_uD=',;t'
  23428. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  23429. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  23430. case $ac_file in
  23431. - | *:- | *:-:* ) # input from stdin
  23432. cat >$tmp/stdin
  23433. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23434. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  23435. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23436. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  23437. * ) ac_file_in=$ac_file.in ;;
  23438. esac
  23439. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  23440. echo "$as_me: creating $ac_file" >&6;}
  23441. # First look for the input files in the build tree, otherwise in the
  23442. # src tree.
  23443. ac_file_inputs=`IFS=:
  23444. for f in $ac_file_in; do
  23445. case $f in
  23446. -) echo $tmp/stdin ;;
  23447. [\\/$]*)
  23448. # Absolute (can't be DOS-style, as IFS=:)
  23449. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  23450. echo "$as_me: error: cannot find input file: $f" >&2;}
  23451. { (exit 1); exit 1; }; }
  23452. # Do quote $f, to prevent DOS paths from being IFS'd.
  23453. echo "$f";;
  23454. *) # Relative
  23455. if test -f "$f"; then
  23456. # Build tree
  23457. echo "$f"
  23458. elif test -f "$srcdir/$f"; then
  23459. # Source tree
  23460. echo "$srcdir/$f"
  23461. else
  23462. # /dev/null tree
  23463. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  23464. echo "$as_me: error: cannot find input file: $f" >&2;}
  23465. { (exit 1); exit 1; }; }
  23466. fi;;
  23467. esac
  23468. done` || { (exit 1); exit 1; }
  23469. # Remove the trailing spaces.
  23470. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  23471. _ACEOF
  23472. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  23473. # `conftest.undefs', that substitutes the proper values into
  23474. # config.h.in to produce config.h. The first handles `#define'
  23475. # templates, and the second `#undef' templates.
  23476. # And first: Protect against being on the right side of a sed subst in
  23477. # config.status. Protect against being in an unquoted here document
  23478. # in config.status.
  23479. rm -f conftest.defines conftest.undefs
  23480. # Using a here document instead of a string reduces the quoting nightmare.
  23481. # Putting comments in sed scripts is not portable.
  23482. #
  23483. # `end' is used to avoid that the second main sed command (meant for
  23484. # 0-ary CPP macros) applies to n-ary macro definitions.
  23485. # See the Autoconf documentation for `clear'.
  23486. cat >confdef2sed.sed <<\_ACEOF
  23487. s/[\\&,]/\\&/g
  23488. s,[\\$`],\\&,g
  23489. t clear
  23490. : clear
  23491. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  23492. t end
  23493. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  23494. : end
  23495. _ACEOF
  23496. # If some macros were called several times there might be several times
  23497. # the same #defines, which is useless. Nevertheless, we may not want to
  23498. # sort them, since we want the *last* AC-DEFINE to be honored.
  23499. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  23500. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  23501. rm -f confdef2sed.sed
  23502. # This sed command replaces #undef with comments. This is necessary, for
  23503. # example, in the case of _POSIX_SOURCE, which is predefined and required
  23504. # on some systems where configure will not decide to define it.
  23505. cat >>conftest.undefs <<\_ACEOF
  23506. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  23507. _ACEOF
  23508. # Break up conftest.defines because some shells have a limit on the size
  23509. # of here documents, and old seds have small limits too (100 cmds).
  23510. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  23511. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  23512. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  23513. echo ' :' >>$CONFIG_STATUS
  23514. rm -f conftest.tail
  23515. while grep . conftest.defines >/dev/null
  23516. do
  23517. # Write a limited-size here document to $tmp/defines.sed.
  23518. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  23519. # Speed up: don't consider the non `#define' lines.
  23520. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  23521. # Work around the forget-to-reset-the-flag bug.
  23522. echo 't clr' >>$CONFIG_STATUS
  23523. echo ': clr' >>$CONFIG_STATUS
  23524. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  23525. echo 'CEOF
  23526. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  23527. rm -f $tmp/in
  23528. mv $tmp/out $tmp/in
  23529. ' >>$CONFIG_STATUS
  23530. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  23531. rm -f conftest.defines
  23532. mv conftest.tail conftest.defines
  23533. done
  23534. rm -f conftest.defines
  23535. echo ' fi # grep' >>$CONFIG_STATUS
  23536. echo >>$CONFIG_STATUS
  23537. # Break up conftest.undefs because some shells have a limit on the size
  23538. # of here documents, and old seds have small limits too (100 cmds).
  23539. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  23540. rm -f conftest.tail
  23541. while grep . conftest.undefs >/dev/null
  23542. do
  23543. # Write a limited-size here document to $tmp/undefs.sed.
  23544. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  23545. # Speed up: don't consider the non `#undef'
  23546. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  23547. # Work around the forget-to-reset-the-flag bug.
  23548. echo 't clr' >>$CONFIG_STATUS
  23549. echo ': clr' >>$CONFIG_STATUS
  23550. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  23551. echo 'CEOF
  23552. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  23553. rm -f $tmp/in
  23554. mv $tmp/out $tmp/in
  23555. ' >>$CONFIG_STATUS
  23556. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  23557. rm -f conftest.undefs
  23558. mv conftest.tail conftest.undefs
  23559. done
  23560. rm -f conftest.undefs
  23561. cat >>$CONFIG_STATUS <<\_ACEOF
  23562. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23563. # use $as_me), people would be surprised to read:
  23564. # /* config.h. Generated by config.status. */
  23565. if test x"$ac_file" = x-; then
  23566. echo "/* Generated by configure. */" >$tmp/config.h
  23567. else
  23568. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  23569. fi
  23570. cat $tmp/in >>$tmp/config.h
  23571. rm -f $tmp/in
  23572. if test x"$ac_file" != x-; then
  23573. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  23574. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  23575. echo "$as_me: $ac_file is unchanged" >&6;}
  23576. else
  23577. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  23578. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23579. X"$ac_file" : 'X\(//\)[^/]' \| \
  23580. X"$ac_file" : 'X\(//\)$' \| \
  23581. X"$ac_file" : 'X\(/\)' \| \
  23582. . : '\(.\)' 2>/dev/null ||
  23583. echo X"$ac_file" |
  23584. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23585. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23586. /^X\(\/\/\)$/{ s//\1/; q; }
  23587. /^X\(\/\).*/{ s//\1/; q; }
  23588. s/.*/./; q'`
  23589. { if $as_mkdir_p; then
  23590. mkdir -p "$ac_dir"
  23591. else
  23592. as_dir="$ac_dir"
  23593. as_dirs=
  23594. while test ! -d "$as_dir"; do
  23595. as_dirs="$as_dir $as_dirs"
  23596. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  23597. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23598. X"$as_dir" : 'X\(//\)[^/]' \| \
  23599. X"$as_dir" : 'X\(//\)$' \| \
  23600. X"$as_dir" : 'X\(/\)' \| \
  23601. . : '\(.\)' 2>/dev/null ||
  23602. echo X"$as_dir" |
  23603. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23604. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23605. /^X\(\/\/\)$/{ s//\1/; q; }
  23606. /^X\(\/\).*/{ s//\1/; q; }
  23607. s/.*/./; q'`
  23608. done
  23609. test ! -n "$as_dirs" || mkdir $as_dirs
  23610. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  23611. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  23612. { (exit 1); exit 1; }; }; }
  23613. rm -f $ac_file
  23614. mv $tmp/config.h $ac_file
  23615. fi
  23616. else
  23617. cat $tmp/config.h
  23618. rm -f $tmp/config.h
  23619. fi
  23620. # Compute $ac_file's index in $config_headers.
  23621. _am_stamp_count=1
  23622. for _am_header in $config_headers :; do
  23623. case $_am_header in
  23624. $ac_file | $ac_file:* )
  23625. break ;;
  23626. * )
  23627. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  23628. esac
  23629. done
  23630. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  23631. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23632. X$ac_file : 'X\(//\)[^/]' \| \
  23633. X$ac_file : 'X\(//\)$' \| \
  23634. X$ac_file : 'X\(/\)' \| \
  23635. . : '\(.\)' 2>/dev/null ||
  23636. echo X$ac_file |
  23637. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23638. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23639. /^X\(\/\/\)$/{ s//\1/; q; }
  23640. /^X\(\/\).*/{ s//\1/; q; }
  23641. s/.*/./; q'`/stamp-h$_am_stamp_count
  23642. done
  23643. _ACEOF
  23644. cat >>$CONFIG_STATUS <<\_ACEOF
  23645. #
  23646. # CONFIG_COMMANDS section.
  23647. #
  23648. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  23649. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  23650. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23651. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  23652. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23653. X"$ac_dest" : 'X\(//\)[^/]' \| \
  23654. X"$ac_dest" : 'X\(//\)$' \| \
  23655. X"$ac_dest" : 'X\(/\)' \| \
  23656. . : '\(.\)' 2>/dev/null ||
  23657. echo X"$ac_dest" |
  23658. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23659. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23660. /^X\(\/\/\)$/{ s//\1/; q; }
  23661. /^X\(\/\).*/{ s//\1/; q; }
  23662. s/.*/./; q'`
  23663. { if $as_mkdir_p; then
  23664. mkdir -p "$ac_dir"
  23665. else
  23666. as_dir="$ac_dir"
  23667. as_dirs=
  23668. while test ! -d "$as_dir"; do
  23669. as_dirs="$as_dir $as_dirs"
  23670. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  23671. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23672. X"$as_dir" : 'X\(//\)[^/]' \| \
  23673. X"$as_dir" : 'X\(//\)$' \| \
  23674. X"$as_dir" : 'X\(/\)' \| \
  23675. . : '\(.\)' 2>/dev/null ||
  23676. echo X"$as_dir" |
  23677. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23678. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23679. /^X\(\/\/\)$/{ s//\1/; q; }
  23680. /^X\(\/\).*/{ s//\1/; q; }
  23681. s/.*/./; q'`
  23682. done
  23683. test ! -n "$as_dirs" || mkdir $as_dirs
  23684. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  23685. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  23686. { (exit 1); exit 1; }; }; }
  23687. ac_builddir=.
  23688. if test "$ac_dir" != .; then
  23689. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  23690. # A "../" for each directory in $ac_dir_suffix.
  23691. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  23692. else
  23693. ac_dir_suffix= ac_top_builddir=
  23694. fi
  23695. case $srcdir in
  23696. .) # No --srcdir option. We are building in place.
  23697. ac_srcdir=.
  23698. if test -z "$ac_top_builddir"; then
  23699. ac_top_srcdir=.
  23700. else
  23701. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  23702. fi ;;
  23703. [\\/]* | ?:[\\/]* ) # Absolute path.
  23704. ac_srcdir=$srcdir$ac_dir_suffix;
  23705. ac_top_srcdir=$srcdir ;;
  23706. *) # Relative path.
  23707. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  23708. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  23709. esac
  23710. # Do not use `cd foo && pwd` to compute absolute paths, because
  23711. # the directories may not exist.
  23712. case `pwd` in
  23713. .) ac_abs_builddir="$ac_dir";;
  23714. *)
  23715. case "$ac_dir" in
  23716. .) ac_abs_builddir=`pwd`;;
  23717. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  23718. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  23719. esac;;
  23720. esac
  23721. case $ac_abs_builddir in
  23722. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  23723. *)
  23724. case ${ac_top_builddir}. in
  23725. .) ac_abs_top_builddir=$ac_abs_builddir;;
  23726. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  23727. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  23728. esac;;
  23729. esac
  23730. case $ac_abs_builddir in
  23731. .) ac_abs_srcdir=$ac_srcdir;;
  23732. *)
  23733. case $ac_srcdir in
  23734. .) ac_abs_srcdir=$ac_abs_builddir;;
  23735. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  23736. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  23737. esac;;
  23738. esac
  23739. case $ac_abs_builddir in
  23740. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  23741. *)
  23742. case $ac_top_srcdir in
  23743. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  23744. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  23745. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  23746. esac;;
  23747. esac
  23748. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  23749. echo "$as_me: executing $ac_dest commands" >&6;}
  23750. case $ac_dest in
  23751. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  23752. # Strip MF so we end up with the name of the file.
  23753. mf=`echo "$mf" | sed -e 's/:.*$//'`
  23754. # Check whether this is an Automake generated Makefile or not.
  23755. # We used to match only the files named `Makefile.in', but
  23756. # some people rename them; so instead we look at the file content.
  23757. # Grep'ing the first line is not enough: some people post-process
  23758. # each Makefile.in and add a new line on top of each file to say so.
  23759. # So let's grep whole file.
  23760. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  23761. dirpart=`(dirname "$mf") 2>/dev/null ||
  23762. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23763. X"$mf" : 'X\(//\)[^/]' \| \
  23764. X"$mf" : 'X\(//\)$' \| \
  23765. X"$mf" : 'X\(/\)' \| \
  23766. . : '\(.\)' 2>/dev/null ||
  23767. echo X"$mf" |
  23768. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23769. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23770. /^X\(\/\/\)$/{ s//\1/; q; }
  23771. /^X\(\/\).*/{ s//\1/; q; }
  23772. s/.*/./; q'`
  23773. else
  23774. continue
  23775. fi
  23776. # Extract the definition of DEPDIR, am__include, and am__quote
  23777. # from the Makefile without running `make'.
  23778. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  23779. test -z "$DEPDIR" && continue
  23780. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  23781. test -z "am__include" && continue
  23782. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  23783. # When using ansi2knr, U may be empty or an underscore; expand it
  23784. U=`sed -n 's/^U = //p' < "$mf"`
  23785. # Find all dependency output files, they are included files with
  23786. # $(DEPDIR) in their names. We invoke sed twice because it is the
  23787. # simplest approach to changing $(DEPDIR) to its actual value in the
  23788. # expansion.
  23789. for file in `sed -n "
  23790. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  23791. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  23792. # Make sure the directory exists.
  23793. test -f "$dirpart/$file" && continue
  23794. fdir=`(dirname "$file") 2>/dev/null ||
  23795. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23796. X"$file" : 'X\(//\)[^/]' \| \
  23797. X"$file" : 'X\(//\)$' \| \
  23798. X"$file" : 'X\(/\)' \| \
  23799. . : '\(.\)' 2>/dev/null ||
  23800. echo X"$file" |
  23801. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23802. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23803. /^X\(\/\/\)$/{ s//\1/; q; }
  23804. /^X\(\/\).*/{ s//\1/; q; }
  23805. s/.*/./; q'`
  23806. { if $as_mkdir_p; then
  23807. mkdir -p $dirpart/$fdir
  23808. else
  23809. as_dir=$dirpart/$fdir
  23810. as_dirs=
  23811. while test ! -d "$as_dir"; do
  23812. as_dirs="$as_dir $as_dirs"
  23813. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  23814. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23815. X"$as_dir" : 'X\(//\)[^/]' \| \
  23816. X"$as_dir" : 'X\(//\)$' \| \
  23817. X"$as_dir" : 'X\(/\)' \| \
  23818. . : '\(.\)' 2>/dev/null ||
  23819. echo X"$as_dir" |
  23820. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23821. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23822. /^X\(\/\/\)$/{ s//\1/; q; }
  23823. /^X\(\/\).*/{ s//\1/; q; }
  23824. s/.*/./; q'`
  23825. done
  23826. test ! -n "$as_dirs" || mkdir $as_dirs
  23827. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  23828. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  23829. { (exit 1); exit 1; }; }; }
  23830. # echo "creating $dirpart/$file"
  23831. echo '# dummy' > "$dirpart/$file"
  23832. done
  23833. done
  23834. ;;
  23835. esac
  23836. done
  23837. _ACEOF
  23838. cat >>$CONFIG_STATUS <<\_ACEOF
  23839. { (exit 0); exit 0; }
  23840. _ACEOF
  23841. chmod +x $CONFIG_STATUS
  23842. ac_clean_files=$ac_clean_files_save
  23843. # configure is writing to config.log, and then calls config.status.
  23844. # config.status does its own redirection, appending to config.log.
  23845. # Unfortunately, on DOS this fails, as config.log is still kept open
  23846. # by configure, so config.status won't be able to write to it; its
  23847. # output is simply discarded. So we exec the FD to /dev/null,
  23848. # effectively closing config.log, so it can be properly (re)opened and
  23849. # appended to by config.status. When coming back to configure, we
  23850. # need to make the FD available again.
  23851. if test "$no_create" != yes; then
  23852. ac_cs_success=:
  23853. ac_config_status_args=
  23854. test "$silent" = yes &&
  23855. ac_config_status_args="$ac_config_status_args --quiet"
  23856. exec 5>/dev/null
  23857. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23858. exec 5>>config.log
  23859. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23860. # would make configure fail if this is the last instruction.
  23861. $ac_cs_success || { (exit 1); exit 1; }
  23862. fi