configure 876 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for dirsrv 1.1.4.
  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. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  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='dirsrv'
  373. PACKAGE_TARNAME='dirsrv'
  374. PACKAGE_VERSION='1.1.4'
  375. PACKAGE_STRING='dirsrv 1.1.4'
  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/$PACKAGE_NAME
  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 CCAS CCASFLAGS SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS debug_defs BUNDLE_TRUE BUNDLE_FALSE enable_pam_passthru_TRUE enable_pam_passthru_FALSE enable_dna_TRUE enable_dna_FALSE enable_ldapi_TRUE enable_ldapi_FALSE enable_autobind_TRUE enable_autobind_FALSE enable_auto_dn_suffix_TRUE enable_auto_dn_suffix_FALSE enable_bitwise_TRUE enable_bitwise_FALSE with_fhs_opt configdir sampledatadir propertydir schemadir serverdir serverplugindir scripttemplatedir perldir infdir mibdir defaultuser defaultgroup instconfigdir WINNT_TRUE WINNT_FALSE LIBSOCKET LIBNSL LIBDL LIBCSTD LIBCRUN initdir perlexec initconfigdir HPUX_TRUE HPUX_FALSE SOLARIS_TRUE SOLARIS_FALSE PKG_CONFIG ICU_CONFIG NETSNMP_CONFIG KRB5_CONFIG_BIN kerberos_inc kerberos_lib kerberos_libdir PACKAGE_BASE_VERSION 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 db_libver sasl_inc sasl_lib sasl_libdir sasl_path svrcore_inc svrcore_lib icu_lib icu_inc icu_bin netsnmp_inc netsnmp_lib netsnmp_libdir netsnmp_link brand capbrand vendor 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_CCAS_set=${CCAS+set}
  822. ac_env_CCAS_value=$CCAS
  823. ac_cv_env_CCAS_set=${CCAS+set}
  824. ac_cv_env_CCAS_value=$CCAS
  825. ac_env_CCASFLAGS_set=${CCASFLAGS+set}
  826. ac_env_CCASFLAGS_value=$CCASFLAGS
  827. ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
  828. ac_cv_env_CCASFLAGS_value=$CCASFLAGS
  829. ac_env_CPP_set=${CPP+set}
  830. ac_env_CPP_value=$CPP
  831. ac_cv_env_CPP_set=${CPP+set}
  832. ac_cv_env_CPP_value=$CPP
  833. ac_env_CXXCPP_set=${CXXCPP+set}
  834. ac_env_CXXCPP_value=$CXXCPP
  835. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  836. ac_cv_env_CXXCPP_value=$CXXCPP
  837. ac_env_F77_set=${F77+set}
  838. ac_env_F77_value=$F77
  839. ac_cv_env_F77_set=${F77+set}
  840. ac_cv_env_F77_value=$F77
  841. ac_env_FFLAGS_set=${FFLAGS+set}
  842. ac_env_FFLAGS_value=$FFLAGS
  843. ac_cv_env_FFLAGS_set=${FFLAGS+set}
  844. ac_cv_env_FFLAGS_value=$FFLAGS
  845. #
  846. # Report the --help message.
  847. #
  848. if test "$ac_init_help" = "long"; then
  849. # Omit some internal or obsolete options to make the list less imposing.
  850. # This message is too long to be a string in the A/UX 3.1 sh.
  851. cat <<_ACEOF
  852. \`configure' configures dirsrv 1.1.4 to adapt to many kinds of systems.
  853. Usage: $0 [OPTION]... [VAR=VALUE]...
  854. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  855. VAR=VALUE. See below for descriptions of some of the useful variables.
  856. Defaults for the options are specified in brackets.
  857. Configuration:
  858. -h, --help display this help and exit
  859. --help=short display options specific to this package
  860. --help=recursive display the short help of all the included packages
  861. -V, --version display version information and exit
  862. -q, --quiet, --silent do not print \`checking...' messages
  863. --cache-file=FILE cache test results in FILE [disabled]
  864. -C, --config-cache alias for \`--cache-file=config.cache'
  865. -n, --no-create do not create output files
  866. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  867. _ACEOF
  868. cat <<_ACEOF
  869. Installation directories:
  870. --prefix=PREFIX install architecture-independent files in PREFIX
  871. [$ac_default_prefix]
  872. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  873. [PREFIX]
  874. By default, \`make install' will install all the files in
  875. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  876. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  877. for instance \`--prefix=\$HOME'.
  878. For better control, use the options below.
  879. Fine tuning of the installation directories:
  880. --bindir=DIR user executables [EPREFIX/bin]
  881. --sbindir=DIR system admin executables [EPREFIX/sbin]
  882. --libexecdir=DIR program executables [EPREFIX/libexec]
  883. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  884. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  885. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  886. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  887. --libdir=DIR object code libraries [EPREFIX/lib]
  888. --includedir=DIR C header files [PREFIX/include]
  889. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  890. --infodir=DIR info documentation [PREFIX/info]
  891. --mandir=DIR man documentation [PREFIX/man]
  892. _ACEOF
  893. cat <<\_ACEOF
  894. Program names:
  895. --program-prefix=PREFIX prepend PREFIX to installed program names
  896. --program-suffix=SUFFIX append SUFFIX to installed program names
  897. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  898. System types:
  899. --build=BUILD configure for building on BUILD [guessed]
  900. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  901. _ACEOF
  902. fi
  903. if test -n "$ac_init_help"; then
  904. case $ac_init_help in
  905. short | recursive ) echo "Configuration of dirsrv 1.1.4:";;
  906. esac
  907. cat <<\_ACEOF
  908. Optional Features:
  909. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  910. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  911. --enable-maintainer-mode enable make rules and dependencies not useful
  912. (and sometimes confusing) to the casual installer
  913. --disable-dependency-tracking speeds up one-time build
  914. --enable-dependency-tracking do not reject slow dependency extractors
  915. --enable-static[=PKGS]
  916. build static libraries [default=no]
  917. --enable-shared[=PKGS]
  918. build shared libraries [default=yes]
  919. --enable-fast-install[=PKGS]
  920. optimize for fast installation [default=yes]
  921. --disable-libtool-lock avoid locking (might break parallel builds)
  922. --enable-debug Enable debug features (default: no)
  923. --enable-bundle Enable bundled dependencies (default: no)
  924. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  925. yes)
  926. --enable-dna enable the Distributed Numeric Assignment (DNA)
  927. plugin (default: yes)
  928. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  929. (default: yes)
  930. --enable-autobind enable auto bind over unix domain socket (LDAPI)
  931. support (default: no)
  932. --enable-auto-dn-suffix enable auto bind with auto dn suffix over unix
  933. domain socket (LDAPI) support (default: no)
  934. --enable-bitwise enable the bitwise matching rule plugin (default:
  935. yes)
  936. Optional Packages:
  937. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  938. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  939. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  940. --with-pic try to use only PIC/non-PIC objects [default=use
  941. both]
  942. --with-tags[=TAGS]
  943. include additional configurations [automatic]
  944. --with-fhs Use FHS layout
  945. --with-fhs-opt Use FHS optional layout
  946. --with-instconfigdir=/path
  947. Base directory for instance specific writable
  948. configuration directories (default
  949. $sysconfdir/$PACKAGE_NAME)
  950. --with-nspr=PATH Netscape Portable Runtime (NSPR) directory
  951. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include file directory
  952. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  953. --with-nss=PATH Network Security Services (NSS) directory
  954. --with-nss-inc=PATH Network Security Services (NSS) include directory
  955. --with-nss-lib=PATH Network Security Services (NSS) library directory
  956. --with-ldapsdk=PATH Mozilla LDAP SDK directory
  957. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  958. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  959. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  960. --with-db=PATH Berkeley DB directory
  961. --with-sasl=PATH Use sasl from supplied path
  962. --with-sasl-inc=PATH SASL include file directory
  963. --with-sasl-lib=PATH SASL library directory
  964. --with-svrcore[=PATH] Use system installed svrcore - optional path for svrcore
  965. --with-svrcore-inc=PATH SVRCORE include file directory
  966. --with-svrcore-lib=PATH SVRCORE library directory
  967. --with-icu=PATH ICU directory
  968. --with-icu-inc=PATH ICU include directory
  969. --with-icu-lib=PATH ICU library directory
  970. --with-icu-bin=PATH ICU binary directory
  971. --with-netsnmp=PATH Net-SNMP directory
  972. --with-netsnmp-inc=PATH Net-SNMP include directory
  973. --with-netsnmp-lib=PATH Net-SNMP library directory
  974. --with-kerberos=PATH Use the kerberos API in the server directly - allows
  975. the server to authenticate directly with a keytab -
  976. otherwise, SASL/GSSAPI auth depends on underlying
  977. SASL libraries and external kinit with a keytab - if
  978. PATH is not specified, look for kerberos in the
  979. system locations. This will attempt to use
  980. krb5-config from the PATH to find the libs and
  981. include dirs - you can specify KRB5_CONFIG_BIN to
  982. specify a different filename or absolute path. If
  983. krb5-config does not work, this will attempt to look
  984. in various system directories
  985. --with-kerberos-inc=PATH
  986. Allows you to explicitly set the directory
  987. containing the kerberos include files - implies use
  988. of kerberos
  989. --with-kerberos-lib=PATH
  990. Allows you to explicitly set the directory
  991. containing the kerberos libraries - implies use of
  992. kerberos
  993. Some influential environment variables:
  994. CXX C++ compiler command
  995. CXXFLAGS C++ compiler flags
  996. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  997. nonstandard directory <lib dir>
  998. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  999. headers in a nonstandard directory <include dir>
  1000. CC C compiler command
  1001. CFLAGS C compiler flags
  1002. CCAS assembler compiler command (defaults to CC)
  1003. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1004. CPP C preprocessor
  1005. CXXCPP C++ preprocessor
  1006. F77 Fortran 77 compiler command
  1007. FFLAGS Fortran 77 compiler flags
  1008. Use these variables to override the choices made by `configure' or to help
  1009. it to find libraries and programs with nonstandard names/locations.
  1010. Report bugs to <http://bugzilla.redhat.com/>.
  1011. _ACEOF
  1012. fi
  1013. if test "$ac_init_help" = "recursive"; then
  1014. # If there are subdirs, report their specific --help.
  1015. ac_popdir=`pwd`
  1016. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1017. test -d $ac_dir || continue
  1018. ac_builddir=.
  1019. if test "$ac_dir" != .; then
  1020. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1021. # A "../" for each directory in $ac_dir_suffix.
  1022. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  1023. else
  1024. ac_dir_suffix= ac_top_builddir=
  1025. fi
  1026. case $srcdir in
  1027. .) # No --srcdir option. We are building in place.
  1028. ac_srcdir=.
  1029. if test -z "$ac_top_builddir"; then
  1030. ac_top_srcdir=.
  1031. else
  1032. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  1033. fi ;;
  1034. [\\/]* | ?:[\\/]* ) # Absolute path.
  1035. ac_srcdir=$srcdir$ac_dir_suffix;
  1036. ac_top_srcdir=$srcdir ;;
  1037. *) # Relative path.
  1038. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  1039. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  1040. esac
  1041. # Do not use `cd foo && pwd` to compute absolute paths, because
  1042. # the directories may not exist.
  1043. case `pwd` in
  1044. .) ac_abs_builddir="$ac_dir";;
  1045. *)
  1046. case "$ac_dir" in
  1047. .) ac_abs_builddir=`pwd`;;
  1048. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  1049. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  1050. esac;;
  1051. esac
  1052. case $ac_abs_builddir in
  1053. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  1054. *)
  1055. case ${ac_top_builddir}. in
  1056. .) ac_abs_top_builddir=$ac_abs_builddir;;
  1057. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  1058. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  1059. esac;;
  1060. esac
  1061. case $ac_abs_builddir in
  1062. .) ac_abs_srcdir=$ac_srcdir;;
  1063. *)
  1064. case $ac_srcdir in
  1065. .) ac_abs_srcdir=$ac_abs_builddir;;
  1066. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  1067. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  1068. esac;;
  1069. esac
  1070. case $ac_abs_builddir in
  1071. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  1072. *)
  1073. case $ac_top_srcdir in
  1074. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1075. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1076. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1077. esac;;
  1078. esac
  1079. cd $ac_dir
  1080. # Check for guested configure; otherwise get Cygnus style configure.
  1081. if test -f $ac_srcdir/configure.gnu; then
  1082. echo
  1083. $SHELL $ac_srcdir/configure.gnu --help=recursive
  1084. elif test -f $ac_srcdir/configure; then
  1085. echo
  1086. $SHELL $ac_srcdir/configure --help=recursive
  1087. elif test -f $ac_srcdir/configure.ac ||
  1088. test -f $ac_srcdir/configure.in; then
  1089. echo
  1090. $ac_configure --help
  1091. else
  1092. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1093. fi
  1094. cd $ac_popdir
  1095. done
  1096. fi
  1097. test -n "$ac_init_help" && exit 0
  1098. if $ac_init_version; then
  1099. cat <<\_ACEOF
  1100. dirsrv configure 1.1.4
  1101. generated by GNU Autoconf 2.59
  1102. Copyright (C) 2003 Free Software Foundation, Inc.
  1103. This configure script is free software; the Free Software Foundation
  1104. gives unlimited permission to copy, distribute and modify it.
  1105. _ACEOF
  1106. exit 0
  1107. fi
  1108. exec 5>config.log
  1109. cat >&5 <<_ACEOF
  1110. This file contains any messages produced by compilers while
  1111. running configure, to aid debugging if configure makes a mistake.
  1112. It was created by dirsrv $as_me 1.1.4, which was
  1113. generated by GNU Autoconf 2.59. Invocation command line was
  1114. $ $0 $@
  1115. _ACEOF
  1116. {
  1117. cat <<_ASUNAME
  1118. ## --------- ##
  1119. ## Platform. ##
  1120. ## --------- ##
  1121. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1122. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1123. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1124. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1125. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1126. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1127. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1128. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1129. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1130. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1131. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1132. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1133. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1134. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1135. _ASUNAME
  1136. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1137. for as_dir in $PATH
  1138. do
  1139. IFS=$as_save_IFS
  1140. test -z "$as_dir" && as_dir=.
  1141. echo "PATH: $as_dir"
  1142. done
  1143. } >&5
  1144. cat >&5 <<_ACEOF
  1145. ## ----------- ##
  1146. ## Core tests. ##
  1147. ## ----------- ##
  1148. _ACEOF
  1149. # Keep a trace of the command line.
  1150. # Strip out --no-create and --no-recursion so they do not pile up.
  1151. # Strip out --silent because we don't want to record it for future runs.
  1152. # Also quote any args containing shell meta-characters.
  1153. # Make two passes to allow for proper duplicate-argument suppression.
  1154. ac_configure_args=
  1155. ac_configure_args0=
  1156. ac_configure_args1=
  1157. ac_sep=
  1158. ac_must_keep_next=false
  1159. for ac_pass in 1 2
  1160. do
  1161. for ac_arg
  1162. do
  1163. case $ac_arg in
  1164. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1165. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1166. | -silent | --silent | --silen | --sile | --sil)
  1167. continue ;;
  1168. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1169. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1170. esac
  1171. case $ac_pass in
  1172. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1173. 2)
  1174. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1175. if test $ac_must_keep_next = true; then
  1176. ac_must_keep_next=false # Got value, back to normal.
  1177. else
  1178. case $ac_arg in
  1179. *=* | --config-cache | -C | -disable-* | --disable-* \
  1180. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1181. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1182. | -with-* | --with-* | -without-* | --without-* | --x)
  1183. case "$ac_configure_args0 " in
  1184. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1185. esac
  1186. ;;
  1187. -* ) ac_must_keep_next=true ;;
  1188. esac
  1189. fi
  1190. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1191. # Get rid of the leading space.
  1192. ac_sep=" "
  1193. ;;
  1194. esac
  1195. done
  1196. done
  1197. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1198. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1199. # When interrupted or exit'd, cleanup temporary files, and complete
  1200. # config.log. We remove comments because anyway the quotes in there
  1201. # would cause problems or look ugly.
  1202. # WARNING: Be sure not to use single quotes in there, as some shells,
  1203. # such as our DU 5.0 friend, will then `close' the trap.
  1204. trap 'exit_status=$?
  1205. # Save into config.log some information that might help in debugging.
  1206. {
  1207. echo
  1208. cat <<\_ASBOX
  1209. ## ---------------- ##
  1210. ## Cache variables. ##
  1211. ## ---------------- ##
  1212. _ASBOX
  1213. echo
  1214. # The following way of writing the cache mishandles newlines in values,
  1215. {
  1216. (set) 2>&1 |
  1217. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1218. *ac_space=\ *)
  1219. sed -n \
  1220. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1221. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1222. ;;
  1223. *)
  1224. sed -n \
  1225. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1226. ;;
  1227. esac;
  1228. }
  1229. echo
  1230. cat <<\_ASBOX
  1231. ## ----------------- ##
  1232. ## Output variables. ##
  1233. ## ----------------- ##
  1234. _ASBOX
  1235. echo
  1236. for ac_var in $ac_subst_vars
  1237. do
  1238. eval ac_val=$`echo $ac_var`
  1239. echo "$ac_var='"'"'$ac_val'"'"'"
  1240. done | sort
  1241. echo
  1242. if test -n "$ac_subst_files"; then
  1243. cat <<\_ASBOX
  1244. ## ------------- ##
  1245. ## Output files. ##
  1246. ## ------------- ##
  1247. _ASBOX
  1248. echo
  1249. for ac_var in $ac_subst_files
  1250. do
  1251. eval ac_val=$`echo $ac_var`
  1252. echo "$ac_var='"'"'$ac_val'"'"'"
  1253. done | sort
  1254. echo
  1255. fi
  1256. if test -s confdefs.h; then
  1257. cat <<\_ASBOX
  1258. ## ----------- ##
  1259. ## confdefs.h. ##
  1260. ## ----------- ##
  1261. _ASBOX
  1262. echo
  1263. sed "/^$/d" confdefs.h | sort
  1264. echo
  1265. fi
  1266. test "$ac_signal" != 0 &&
  1267. echo "$as_me: caught signal $ac_signal"
  1268. echo "$as_me: exit $exit_status"
  1269. } >&5
  1270. rm -f core *.core &&
  1271. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1272. exit $exit_status
  1273. ' 0
  1274. for ac_signal in 1 2 13 15; do
  1275. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1276. done
  1277. ac_signal=0
  1278. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1279. rm -rf conftest* confdefs.h
  1280. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1281. echo >confdefs.h
  1282. # Predefined preprocessor variables.
  1283. cat >>confdefs.h <<_ACEOF
  1284. #define PACKAGE_NAME "$PACKAGE_NAME"
  1285. _ACEOF
  1286. cat >>confdefs.h <<_ACEOF
  1287. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1288. _ACEOF
  1289. cat >>confdefs.h <<_ACEOF
  1290. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1291. _ACEOF
  1292. cat >>confdefs.h <<_ACEOF
  1293. #define PACKAGE_STRING "$PACKAGE_STRING"
  1294. _ACEOF
  1295. cat >>confdefs.h <<_ACEOF
  1296. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1297. _ACEOF
  1298. # Let the site file select an alternate cache file if it wants to.
  1299. # Prefer explicitly selected file to automatically selected ones.
  1300. if test -z "$CONFIG_SITE"; then
  1301. if test "x$prefix" != xNONE; then
  1302. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1303. else
  1304. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1305. fi
  1306. fi
  1307. for ac_site_file in $CONFIG_SITE; do
  1308. if test -r "$ac_site_file"; then
  1309. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1310. echo "$as_me: loading site script $ac_site_file" >&6;}
  1311. sed 's/^/| /' "$ac_site_file" >&5
  1312. . "$ac_site_file"
  1313. fi
  1314. done
  1315. if test -r "$cache_file"; then
  1316. # Some versions of bash will fail to source /dev/null (special
  1317. # files actually), so we avoid doing that.
  1318. if test -f "$cache_file"; then
  1319. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1320. echo "$as_me: loading cache $cache_file" >&6;}
  1321. case $cache_file in
  1322. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1323. *) . ./$cache_file;;
  1324. esac
  1325. fi
  1326. else
  1327. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1328. echo "$as_me: creating cache $cache_file" >&6;}
  1329. >$cache_file
  1330. fi
  1331. # Check that the precious variables saved in the cache have kept the same
  1332. # value.
  1333. ac_cache_corrupted=false
  1334. for ac_var in `(set) 2>&1 |
  1335. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1336. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1337. eval ac_new_set=\$ac_env_${ac_var}_set
  1338. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1339. eval ac_new_val="\$ac_env_${ac_var}_value"
  1340. case $ac_old_set,$ac_new_set in
  1341. set,)
  1342. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1343. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1344. ac_cache_corrupted=: ;;
  1345. ,set)
  1346. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1347. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1348. ac_cache_corrupted=: ;;
  1349. ,);;
  1350. *)
  1351. if test "x$ac_old_val" != "x$ac_new_val"; then
  1352. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1353. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1354. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1355. echo "$as_me: former value: $ac_old_val" >&2;}
  1356. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1357. echo "$as_me: current value: $ac_new_val" >&2;}
  1358. ac_cache_corrupted=:
  1359. fi;;
  1360. esac
  1361. # Pass precious variables to config.status.
  1362. if test "$ac_new_set" = set; then
  1363. case $ac_new_val in
  1364. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1365. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1366. *) ac_arg=$ac_var=$ac_new_val ;;
  1367. esac
  1368. case " $ac_configure_args " in
  1369. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1370. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1371. esac
  1372. fi
  1373. done
  1374. if $ac_cache_corrupted; then
  1375. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1376. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1377. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1378. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1379. { (exit 1); exit 1; }; }
  1380. fi
  1381. ac_ext=c
  1382. ac_cpp='$CPP $CPPFLAGS'
  1383. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1384. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1385. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1386. # AC_CONFIG_HEADER must be called right after AC_INIT.
  1387. ac_config_headers="$ac_config_headers config.h"
  1388. am__api_version="1.9"
  1389. ac_aux_dir=
  1390. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1391. if test -f $ac_dir/install-sh; then
  1392. ac_aux_dir=$ac_dir
  1393. ac_install_sh="$ac_aux_dir/install-sh -c"
  1394. break
  1395. elif test -f $ac_dir/install.sh; then
  1396. ac_aux_dir=$ac_dir
  1397. ac_install_sh="$ac_aux_dir/install.sh -c"
  1398. break
  1399. elif test -f $ac_dir/shtool; then
  1400. ac_aux_dir=$ac_dir
  1401. ac_install_sh="$ac_aux_dir/shtool install -c"
  1402. break
  1403. fi
  1404. done
  1405. if test -z "$ac_aux_dir"; then
  1406. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1407. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1408. { (exit 1); exit 1; }; }
  1409. fi
  1410. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1411. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1412. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1413. # Find a good install program. We prefer a C program (faster),
  1414. # so one script is as good as another. But avoid the broken or
  1415. # incompatible versions:
  1416. # SysV /etc/install, /usr/sbin/install
  1417. # SunOS /usr/etc/install
  1418. # IRIX /sbin/install
  1419. # AIX /bin/install
  1420. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1421. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1422. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1423. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1424. # OS/2's system install, which has a completely different semantic
  1425. # ./install, which can be erroneously created by make from ./install.sh.
  1426. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1427. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1428. if test -z "$INSTALL"; then
  1429. if test "${ac_cv_path_install+set}" = set; then
  1430. echo $ECHO_N "(cached) $ECHO_C" >&6
  1431. else
  1432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1433. for as_dir in $PATH
  1434. do
  1435. IFS=$as_save_IFS
  1436. test -z "$as_dir" && as_dir=.
  1437. # Account for people who put trailing slashes in PATH elements.
  1438. case $as_dir/ in
  1439. ./ | .// | /cC/* | \
  1440. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1441. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1442. /usr/ucb/* ) ;;
  1443. *)
  1444. # OSF1 and SCO ODT 3.0 have their own names for install.
  1445. # Don't use installbsd from OSF since it installs stuff as root
  1446. # by default.
  1447. for ac_prog in ginstall scoinst install; do
  1448. for ac_exec_ext in '' $ac_executable_extensions; do
  1449. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1450. if test $ac_prog = install &&
  1451. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1452. # AIX install. It has an incompatible calling convention.
  1453. :
  1454. elif test $ac_prog = install &&
  1455. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1456. # program-specific install script used by HP pwplus--don't use.
  1457. :
  1458. else
  1459. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1460. break 3
  1461. fi
  1462. fi
  1463. done
  1464. done
  1465. ;;
  1466. esac
  1467. done
  1468. fi
  1469. if test "${ac_cv_path_install+set}" = set; then
  1470. INSTALL=$ac_cv_path_install
  1471. else
  1472. # As a last resort, use the slow shell script. We don't cache a
  1473. # path for INSTALL within a source directory, because that will
  1474. # break other packages using the cache if that directory is
  1475. # removed, or if the path is relative.
  1476. INSTALL=$ac_install_sh
  1477. fi
  1478. fi
  1479. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1480. echo "${ECHO_T}$INSTALL" >&6
  1481. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1482. # It thinks the first close brace ends the variable substitution.
  1483. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1484. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1485. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1486. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1487. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1488. # Just in case
  1489. sleep 1
  1490. echo timestamp > conftest.file
  1491. # Do `set' in a subshell so we don't clobber the current shell's
  1492. # arguments. Must try -L first in case configure is actually a
  1493. # symlink; some systems play weird games with the mod time of symlinks
  1494. # (eg FreeBSD returns the mod time of the symlink's containing
  1495. # directory).
  1496. if (
  1497. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1498. if test "$*" = "X"; then
  1499. # -L didn't work.
  1500. set X `ls -t $srcdir/configure conftest.file`
  1501. fi
  1502. rm -f conftest.file
  1503. if test "$*" != "X $srcdir/configure conftest.file" \
  1504. && test "$*" != "X conftest.file $srcdir/configure"; then
  1505. # If neither matched, then we have a broken ls. This can happen
  1506. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1507. # broken ls alias from the environment. This has actually
  1508. # happened. Such a system could not be considered "sane".
  1509. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1510. alias in your environment" >&5
  1511. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1512. alias in your environment" >&2;}
  1513. { (exit 1); exit 1; }; }
  1514. fi
  1515. test "$2" = conftest.file
  1516. )
  1517. then
  1518. # Ok.
  1519. :
  1520. else
  1521. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1522. Check your system clock" >&5
  1523. echo "$as_me: error: newly created file is older than distributed files!
  1524. Check your system clock" >&2;}
  1525. { (exit 1); exit 1; }; }
  1526. fi
  1527. echo "$as_me:$LINENO: result: yes" >&5
  1528. echo "${ECHO_T}yes" >&6
  1529. test "$program_prefix" != NONE &&
  1530. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1531. # Use a double $ so make ignores it.
  1532. test "$program_suffix" != NONE &&
  1533. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1534. # Double any \ or $. echo might interpret backslashes.
  1535. # By default was `s,x,x', remove it if useless.
  1536. cat <<\_ACEOF >conftest.sed
  1537. s/[\\$]/&&/g;s/;s,x,x,$//
  1538. _ACEOF
  1539. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1540. rm conftest.sed
  1541. # expand $ac_aux_dir to an absolute path
  1542. am_aux_dir=`cd $ac_aux_dir && pwd`
  1543. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1544. # Use eval to expand $SHELL
  1545. if eval "$MISSING --run true"; then
  1546. am_missing_run="$MISSING --run "
  1547. else
  1548. am_missing_run=
  1549. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1550. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1551. fi
  1552. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1553. # We used to keeping the `.' as first argument, in order to
  1554. # allow $(mkdir_p) to be used without argument. As in
  1555. # $(mkdir_p) $(somedir)
  1556. # where $(somedir) is conditionally defined. However this is wrong
  1557. # for two reasons:
  1558. # 1. if the package is installed by a user who cannot write `.'
  1559. # make install will fail,
  1560. # 2. the above comment should most certainly read
  1561. # $(mkdir_p) $(DESTDIR)$(somedir)
  1562. # so it does not work when $(somedir) is undefined and
  1563. # $(DESTDIR) is not.
  1564. # To support the latter case, we have to write
  1565. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1566. # so the `.' trick is pointless.
  1567. mkdir_p='mkdir -p --'
  1568. else
  1569. # On NextStep and OpenStep, the `mkdir' command does not
  1570. # recognize any option. It will interpret all options as
  1571. # directories to create, and then abort because `.' already
  1572. # exists.
  1573. for d in ./-p ./--version;
  1574. do
  1575. test -d $d && rmdir $d
  1576. done
  1577. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1578. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1579. mkdir_p='$(mkinstalldirs)'
  1580. else
  1581. mkdir_p='$(install_sh) -d'
  1582. fi
  1583. fi
  1584. for ac_prog in gawk mawk nawk awk
  1585. do
  1586. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1587. set dummy $ac_prog; ac_word=$2
  1588. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1589. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1590. if test "${ac_cv_prog_AWK+set}" = set; then
  1591. echo $ECHO_N "(cached) $ECHO_C" >&6
  1592. else
  1593. if test -n "$AWK"; then
  1594. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1595. else
  1596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1597. for as_dir in $PATH
  1598. do
  1599. IFS=$as_save_IFS
  1600. test -z "$as_dir" && as_dir=.
  1601. for ac_exec_ext in '' $ac_executable_extensions; do
  1602. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1603. ac_cv_prog_AWK="$ac_prog"
  1604. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1605. break 2
  1606. fi
  1607. done
  1608. done
  1609. fi
  1610. fi
  1611. AWK=$ac_cv_prog_AWK
  1612. if test -n "$AWK"; then
  1613. echo "$as_me:$LINENO: result: $AWK" >&5
  1614. echo "${ECHO_T}$AWK" >&6
  1615. else
  1616. echo "$as_me:$LINENO: result: no" >&5
  1617. echo "${ECHO_T}no" >&6
  1618. fi
  1619. test -n "$AWK" && break
  1620. done
  1621. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1622. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1623. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1624. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1625. echo $ECHO_N "(cached) $ECHO_C" >&6
  1626. else
  1627. cat >conftest.make <<\_ACEOF
  1628. all:
  1629. @echo 'ac_maketemp="$(MAKE)"'
  1630. _ACEOF
  1631. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1632. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1633. if test -n "$ac_maketemp"; then
  1634. eval ac_cv_prog_make_${ac_make}_set=yes
  1635. else
  1636. eval ac_cv_prog_make_${ac_make}_set=no
  1637. fi
  1638. rm -f conftest.make
  1639. fi
  1640. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1641. echo "$as_me:$LINENO: result: yes" >&5
  1642. echo "${ECHO_T}yes" >&6
  1643. SET_MAKE=
  1644. else
  1645. echo "$as_me:$LINENO: result: no" >&5
  1646. echo "${ECHO_T}no" >&6
  1647. SET_MAKE="MAKE=${MAKE-make}"
  1648. fi
  1649. rm -rf .tst 2>/dev/null
  1650. mkdir .tst 2>/dev/null
  1651. if test -d .tst; then
  1652. am__leading_dot=.
  1653. else
  1654. am__leading_dot=_
  1655. fi
  1656. rmdir .tst 2>/dev/null
  1657. # test to see if srcdir already configured
  1658. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1659. test -f $srcdir/config.status; then
  1660. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1661. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1662. { (exit 1); exit 1; }; }
  1663. fi
  1664. # test whether we have cygpath
  1665. if test -z "$CYGPATH_W"; then
  1666. if (cygpath --version) >/dev/null 2>/dev/null; then
  1667. CYGPATH_W='cygpath -w'
  1668. else
  1669. CYGPATH_W=echo
  1670. fi
  1671. fi
  1672. # Define the identity of the package.
  1673. PACKAGE='dirsrv'
  1674. VERSION='1.1.4'
  1675. cat >>confdefs.h <<_ACEOF
  1676. #define PACKAGE "$PACKAGE"
  1677. _ACEOF
  1678. cat >>confdefs.h <<_ACEOF
  1679. #define VERSION "$VERSION"
  1680. _ACEOF
  1681. # Some tools Automake needs.
  1682. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1683. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1684. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1685. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1686. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1687. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1688. # Installed binaries are usually stripped using `strip' when the user
  1689. # run `make install-strip'. However `strip' might not be the right
  1690. # tool to use in cross-compilation environments, therefore Automake
  1691. # will honor the `STRIP' environment variable to overrule this program.
  1692. if test "$cross_compiling" != no; then
  1693. if test -n "$ac_tool_prefix"; then
  1694. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1695. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1696. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1697. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1698. if test "${ac_cv_prog_STRIP+set}" = set; then
  1699. echo $ECHO_N "(cached) $ECHO_C" >&6
  1700. else
  1701. if test -n "$STRIP"; then
  1702. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1703. else
  1704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1705. for as_dir in $PATH
  1706. do
  1707. IFS=$as_save_IFS
  1708. test -z "$as_dir" && as_dir=.
  1709. for ac_exec_ext in '' $ac_executable_extensions; do
  1710. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1711. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1712. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1713. break 2
  1714. fi
  1715. done
  1716. done
  1717. fi
  1718. fi
  1719. STRIP=$ac_cv_prog_STRIP
  1720. if test -n "$STRIP"; then
  1721. echo "$as_me:$LINENO: result: $STRIP" >&5
  1722. echo "${ECHO_T}$STRIP" >&6
  1723. else
  1724. echo "$as_me:$LINENO: result: no" >&5
  1725. echo "${ECHO_T}no" >&6
  1726. fi
  1727. fi
  1728. if test -z "$ac_cv_prog_STRIP"; then
  1729. ac_ct_STRIP=$STRIP
  1730. # Extract the first word of "strip", so it can be a program name with args.
  1731. set dummy strip; ac_word=$2
  1732. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1733. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1734. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1735. echo $ECHO_N "(cached) $ECHO_C" >&6
  1736. else
  1737. if test -n "$ac_ct_STRIP"; then
  1738. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1739. else
  1740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1741. for as_dir in $PATH
  1742. do
  1743. IFS=$as_save_IFS
  1744. test -z "$as_dir" && as_dir=.
  1745. for ac_exec_ext in '' $ac_executable_extensions; do
  1746. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1747. ac_cv_prog_ac_ct_STRIP="strip"
  1748. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1749. break 2
  1750. fi
  1751. done
  1752. done
  1753. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1754. fi
  1755. fi
  1756. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1757. if test -n "$ac_ct_STRIP"; then
  1758. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1759. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1760. else
  1761. echo "$as_me:$LINENO: result: no" >&5
  1762. echo "${ECHO_T}no" >&6
  1763. fi
  1764. STRIP=$ac_ct_STRIP
  1765. else
  1766. STRIP="$ac_cv_prog_STRIP"
  1767. fi
  1768. fi
  1769. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1770. # We need awk for the "check" target. The system "awk" is bad on
  1771. # some platforms.
  1772. # Always define AMTAR for backward compatibility.
  1773. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1774. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1775. echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1776. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  1777. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  1778. if test "${enable_maintainer_mode+set}" = set; then
  1779. enableval="$enable_maintainer_mode"
  1780. USE_MAINTAINER_MODE=$enableval
  1781. else
  1782. USE_MAINTAINER_MODE=no
  1783. fi;
  1784. echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1785. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  1786. if test $USE_MAINTAINER_MODE = yes; then
  1787. MAINTAINER_MODE_TRUE=
  1788. MAINTAINER_MODE_FALSE='#'
  1789. else
  1790. MAINTAINER_MODE_TRUE='#'
  1791. MAINTAINER_MODE_FALSE=
  1792. fi
  1793. MAINT=$MAINTAINER_MODE_TRUE
  1794. # Make sure we can run config.sub.
  1795. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1796. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1797. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1798. { (exit 1); exit 1; }; }
  1799. echo "$as_me:$LINENO: checking build system type" >&5
  1800. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1801. if test "${ac_cv_build+set}" = set; then
  1802. echo $ECHO_N "(cached) $ECHO_C" >&6
  1803. else
  1804. ac_cv_build_alias=$build_alias
  1805. test -z "$ac_cv_build_alias" &&
  1806. ac_cv_build_alias=`$ac_config_guess`
  1807. test -z "$ac_cv_build_alias" &&
  1808. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1809. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1810. { (exit 1); exit 1; }; }
  1811. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1812. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1813. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1814. { (exit 1); exit 1; }; }
  1815. fi
  1816. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1817. echo "${ECHO_T}$ac_cv_build" >&6
  1818. build=$ac_cv_build
  1819. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1820. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1821. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1822. echo "$as_me:$LINENO: checking host system type" >&5
  1823. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1824. if test "${ac_cv_host+set}" = set; then
  1825. echo $ECHO_N "(cached) $ECHO_C" >&6
  1826. else
  1827. ac_cv_host_alias=$host_alias
  1828. test -z "$ac_cv_host_alias" &&
  1829. ac_cv_host_alias=$ac_cv_build_alias
  1830. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1831. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1832. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1833. { (exit 1); exit 1; }; }
  1834. fi
  1835. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1836. echo "${ECHO_T}$ac_cv_host" >&6
  1837. host=$ac_cv_host
  1838. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1839. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1840. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1841. # Checks for programs.
  1842. ac_ext=cc
  1843. ac_cpp='$CXXCPP $CPPFLAGS'
  1844. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1845. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1846. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1847. if test -n "$ac_tool_prefix"; then
  1848. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1849. do
  1850. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1851. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1852. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1853. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1854. if test "${ac_cv_prog_CXX+set}" = set; then
  1855. echo $ECHO_N "(cached) $ECHO_C" >&6
  1856. else
  1857. if test -n "$CXX"; then
  1858. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1859. else
  1860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1861. for as_dir in $PATH
  1862. do
  1863. IFS=$as_save_IFS
  1864. test -z "$as_dir" && as_dir=.
  1865. for ac_exec_ext in '' $ac_executable_extensions; do
  1866. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1867. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1868. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1869. break 2
  1870. fi
  1871. done
  1872. done
  1873. fi
  1874. fi
  1875. CXX=$ac_cv_prog_CXX
  1876. if test -n "$CXX"; then
  1877. echo "$as_me:$LINENO: result: $CXX" >&5
  1878. echo "${ECHO_T}$CXX" >&6
  1879. else
  1880. echo "$as_me:$LINENO: result: no" >&5
  1881. echo "${ECHO_T}no" >&6
  1882. fi
  1883. test -n "$CXX" && break
  1884. done
  1885. fi
  1886. if test -z "$CXX"; then
  1887. ac_ct_CXX=$CXX
  1888. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1889. do
  1890. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1891. set dummy $ac_prog; ac_word=$2
  1892. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1893. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1894. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1895. echo $ECHO_N "(cached) $ECHO_C" >&6
  1896. else
  1897. if test -n "$ac_ct_CXX"; then
  1898. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1899. else
  1900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1901. for as_dir in $PATH
  1902. do
  1903. IFS=$as_save_IFS
  1904. test -z "$as_dir" && as_dir=.
  1905. for ac_exec_ext in '' $ac_executable_extensions; do
  1906. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1907. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1908. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1909. break 2
  1910. fi
  1911. done
  1912. done
  1913. fi
  1914. fi
  1915. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1916. if test -n "$ac_ct_CXX"; then
  1917. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1918. echo "${ECHO_T}$ac_ct_CXX" >&6
  1919. else
  1920. echo "$as_me:$LINENO: result: no" >&5
  1921. echo "${ECHO_T}no" >&6
  1922. fi
  1923. test -n "$ac_ct_CXX" && break
  1924. done
  1925. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1926. CXX=$ac_ct_CXX
  1927. fi
  1928. # Provide some information about the compiler.
  1929. echo "$as_me:$LINENO:" \
  1930. "checking for C++ compiler version" >&5
  1931. ac_compiler=`set X $ac_compile; echo $2`
  1932. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1933. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1934. ac_status=$?
  1935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1936. (exit $ac_status); }
  1937. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1938. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1939. ac_status=$?
  1940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1941. (exit $ac_status); }
  1942. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1943. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1944. ac_status=$?
  1945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1946. (exit $ac_status); }
  1947. cat >conftest.$ac_ext <<_ACEOF
  1948. /* confdefs.h. */
  1949. _ACEOF
  1950. cat confdefs.h >>conftest.$ac_ext
  1951. cat >>conftest.$ac_ext <<_ACEOF
  1952. /* end confdefs.h. */
  1953. int
  1954. main ()
  1955. {
  1956. ;
  1957. return 0;
  1958. }
  1959. _ACEOF
  1960. ac_clean_files_save=$ac_clean_files
  1961. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1962. # Try to create an executable without -o first, disregard a.out.
  1963. # It will help us diagnose broken compilers, and finding out an intuition
  1964. # of exeext.
  1965. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1966. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  1967. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1968. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1969. (eval $ac_link_default) 2>&5
  1970. ac_status=$?
  1971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1972. (exit $ac_status); }; then
  1973. # Find the output, starting from the most likely. This scheme is
  1974. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1975. # resort.
  1976. # Be careful to initialize this variable, since it used to be cached.
  1977. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1978. ac_cv_exeext=
  1979. # b.out is created by i960 compilers.
  1980. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1981. do
  1982. test -f "$ac_file" || continue
  1983. case $ac_file in
  1984. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1985. ;;
  1986. conftest.$ac_ext )
  1987. # This is the source file.
  1988. ;;
  1989. [ab].out )
  1990. # We found the default executable, but exeext='' is most
  1991. # certainly right.
  1992. break;;
  1993. *.* )
  1994. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1995. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1996. # but it would be cool to find out if it's true. Does anybody
  1997. # maintain Libtool? --akim.
  1998. export ac_cv_exeext
  1999. break;;
  2000. * )
  2001. break;;
  2002. esac
  2003. done
  2004. else
  2005. echo "$as_me: failed program was:" >&5
  2006. sed 's/^/| /' conftest.$ac_ext >&5
  2007. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2008. See \`config.log' for more details." >&5
  2009. echo "$as_me: error: C++ compiler cannot create executables
  2010. See \`config.log' for more details." >&2;}
  2011. { (exit 77); exit 77; }; }
  2012. fi
  2013. ac_exeext=$ac_cv_exeext
  2014. echo "$as_me:$LINENO: result: $ac_file" >&5
  2015. echo "${ECHO_T}$ac_file" >&6
  2016. # Check the compiler produces executables we can run. If not, either
  2017. # the compiler is broken, or we cross compile.
  2018. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2019. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  2020. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2021. # If not cross compiling, check that we can run a simple program.
  2022. if test "$cross_compiling" != yes; then
  2023. if { ac_try='./$ac_file'
  2024. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2025. (eval $ac_try) 2>&5
  2026. ac_status=$?
  2027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2028. (exit $ac_status); }; }; then
  2029. cross_compiling=no
  2030. else
  2031. if test "$cross_compiling" = maybe; then
  2032. cross_compiling=yes
  2033. else
  2034. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2035. If you meant to cross compile, use \`--host'.
  2036. See \`config.log' for more details." >&5
  2037. echo "$as_me: error: cannot run C++ compiled programs.
  2038. If you meant to cross compile, use \`--host'.
  2039. See \`config.log' for more details." >&2;}
  2040. { (exit 1); exit 1; }; }
  2041. fi
  2042. fi
  2043. fi
  2044. echo "$as_me:$LINENO: result: yes" >&5
  2045. echo "${ECHO_T}yes" >&6
  2046. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2047. ac_clean_files=$ac_clean_files_save
  2048. # Check the compiler produces executables we can run. If not, either
  2049. # the compiler is broken, or we cross compile.
  2050. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2051. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2052. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2053. echo "${ECHO_T}$cross_compiling" >&6
  2054. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2055. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2056. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2057. (eval $ac_link) 2>&5
  2058. ac_status=$?
  2059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2060. (exit $ac_status); }; then
  2061. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2062. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2063. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2064. # `rm'.
  2065. for ac_file in conftest.exe conftest conftest.*; do
  2066. test -f "$ac_file" || continue
  2067. case $ac_file in
  2068. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2069. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2070. export ac_cv_exeext
  2071. break;;
  2072. * ) break;;
  2073. esac
  2074. done
  2075. else
  2076. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2077. See \`config.log' for more details." >&5
  2078. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2079. See \`config.log' for more details." >&2;}
  2080. { (exit 1); exit 1; }; }
  2081. fi
  2082. rm -f conftest$ac_cv_exeext
  2083. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2084. echo "${ECHO_T}$ac_cv_exeext" >&6
  2085. rm -f conftest.$ac_ext
  2086. EXEEXT=$ac_cv_exeext
  2087. ac_exeext=$EXEEXT
  2088. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2089. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2090. if test "${ac_cv_objext+set}" = set; then
  2091. echo $ECHO_N "(cached) $ECHO_C" >&6
  2092. else
  2093. cat >conftest.$ac_ext <<_ACEOF
  2094. /* confdefs.h. */
  2095. _ACEOF
  2096. cat confdefs.h >>conftest.$ac_ext
  2097. cat >>conftest.$ac_ext <<_ACEOF
  2098. /* end confdefs.h. */
  2099. int
  2100. main ()
  2101. {
  2102. ;
  2103. return 0;
  2104. }
  2105. _ACEOF
  2106. rm -f conftest.o conftest.obj
  2107. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2108. (eval $ac_compile) 2>&5
  2109. ac_status=$?
  2110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2111. (exit $ac_status); }; then
  2112. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2113. case $ac_file in
  2114. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2115. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2116. break;;
  2117. esac
  2118. done
  2119. else
  2120. echo "$as_me: failed program was:" >&5
  2121. sed 's/^/| /' conftest.$ac_ext >&5
  2122. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2123. See \`config.log' for more details." >&5
  2124. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2125. See \`config.log' for more details." >&2;}
  2126. { (exit 1); exit 1; }; }
  2127. fi
  2128. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2129. fi
  2130. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2131. echo "${ECHO_T}$ac_cv_objext" >&6
  2132. OBJEXT=$ac_cv_objext
  2133. ac_objext=$OBJEXT
  2134. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2135. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  2136. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2137. echo $ECHO_N "(cached) $ECHO_C" >&6
  2138. else
  2139. cat >conftest.$ac_ext <<_ACEOF
  2140. /* confdefs.h. */
  2141. _ACEOF
  2142. cat confdefs.h >>conftest.$ac_ext
  2143. cat >>conftest.$ac_ext <<_ACEOF
  2144. /* end confdefs.h. */
  2145. int
  2146. main ()
  2147. {
  2148. #ifndef __GNUC__
  2149. choke me
  2150. #endif
  2151. ;
  2152. return 0;
  2153. }
  2154. _ACEOF
  2155. rm -f conftest.$ac_objext
  2156. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2157. (eval $ac_compile) 2>conftest.er1
  2158. ac_status=$?
  2159. grep -v '^ *+' conftest.er1 >conftest.err
  2160. rm -f conftest.er1
  2161. cat conftest.err >&5
  2162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2163. (exit $ac_status); } &&
  2164. { ac_try='test -z "$ac_cxx_werror_flag"
  2165. || test ! -s conftest.err'
  2166. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2167. (eval $ac_try) 2>&5
  2168. ac_status=$?
  2169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2170. (exit $ac_status); }; } &&
  2171. { ac_try='test -s conftest.$ac_objext'
  2172. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2173. (eval $ac_try) 2>&5
  2174. ac_status=$?
  2175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2176. (exit $ac_status); }; }; then
  2177. ac_compiler_gnu=yes
  2178. else
  2179. echo "$as_me: failed program was:" >&5
  2180. sed 's/^/| /' conftest.$ac_ext >&5
  2181. ac_compiler_gnu=no
  2182. fi
  2183. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2184. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2185. fi
  2186. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2187. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2188. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2189. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2190. ac_save_CXXFLAGS=$CXXFLAGS
  2191. CXXFLAGS="-g"
  2192. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2193. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2194. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2195. echo $ECHO_N "(cached) $ECHO_C" >&6
  2196. else
  2197. cat >conftest.$ac_ext <<_ACEOF
  2198. /* confdefs.h. */
  2199. _ACEOF
  2200. cat confdefs.h >>conftest.$ac_ext
  2201. cat >>conftest.$ac_ext <<_ACEOF
  2202. /* end confdefs.h. */
  2203. int
  2204. main ()
  2205. {
  2206. ;
  2207. return 0;
  2208. }
  2209. _ACEOF
  2210. rm -f conftest.$ac_objext
  2211. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2212. (eval $ac_compile) 2>conftest.er1
  2213. ac_status=$?
  2214. grep -v '^ *+' conftest.er1 >conftest.err
  2215. rm -f conftest.er1
  2216. cat conftest.err >&5
  2217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2218. (exit $ac_status); } &&
  2219. { ac_try='test -z "$ac_cxx_werror_flag"
  2220. || test ! -s conftest.err'
  2221. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2222. (eval $ac_try) 2>&5
  2223. ac_status=$?
  2224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2225. (exit $ac_status); }; } &&
  2226. { ac_try='test -s conftest.$ac_objext'
  2227. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2228. (eval $ac_try) 2>&5
  2229. ac_status=$?
  2230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2231. (exit $ac_status); }; }; then
  2232. ac_cv_prog_cxx_g=yes
  2233. else
  2234. echo "$as_me: failed program was:" >&5
  2235. sed 's/^/| /' conftest.$ac_ext >&5
  2236. ac_cv_prog_cxx_g=no
  2237. fi
  2238. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2239. fi
  2240. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2241. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2242. if test "$ac_test_CXXFLAGS" = set; then
  2243. CXXFLAGS=$ac_save_CXXFLAGS
  2244. elif test $ac_cv_prog_cxx_g = yes; then
  2245. if test "$GXX" = yes; then
  2246. CXXFLAGS="-g -O2"
  2247. else
  2248. CXXFLAGS="-g"
  2249. fi
  2250. else
  2251. if test "$GXX" = yes; then
  2252. CXXFLAGS="-O2"
  2253. else
  2254. CXXFLAGS=
  2255. fi
  2256. fi
  2257. for ac_declaration in \
  2258. '' \
  2259. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2260. 'extern "C" void std::exit (int); using std::exit;' \
  2261. 'extern "C" void exit (int) throw ();' \
  2262. 'extern "C" void exit (int);' \
  2263. 'void exit (int);'
  2264. do
  2265. cat >conftest.$ac_ext <<_ACEOF
  2266. /* confdefs.h. */
  2267. _ACEOF
  2268. cat confdefs.h >>conftest.$ac_ext
  2269. cat >>conftest.$ac_ext <<_ACEOF
  2270. /* end confdefs.h. */
  2271. $ac_declaration
  2272. #include <stdlib.h>
  2273. int
  2274. main ()
  2275. {
  2276. exit (42);
  2277. ;
  2278. return 0;
  2279. }
  2280. _ACEOF
  2281. rm -f conftest.$ac_objext
  2282. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2283. (eval $ac_compile) 2>conftest.er1
  2284. ac_status=$?
  2285. grep -v '^ *+' conftest.er1 >conftest.err
  2286. rm -f conftest.er1
  2287. cat conftest.err >&5
  2288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2289. (exit $ac_status); } &&
  2290. { ac_try='test -z "$ac_cxx_werror_flag"
  2291. || test ! -s conftest.err'
  2292. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2293. (eval $ac_try) 2>&5
  2294. ac_status=$?
  2295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2296. (exit $ac_status); }; } &&
  2297. { ac_try='test -s conftest.$ac_objext'
  2298. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2299. (eval $ac_try) 2>&5
  2300. ac_status=$?
  2301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2302. (exit $ac_status); }; }; then
  2303. :
  2304. else
  2305. echo "$as_me: failed program was:" >&5
  2306. sed 's/^/| /' conftest.$ac_ext >&5
  2307. continue
  2308. fi
  2309. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2310. cat >conftest.$ac_ext <<_ACEOF
  2311. /* confdefs.h. */
  2312. _ACEOF
  2313. cat confdefs.h >>conftest.$ac_ext
  2314. cat >>conftest.$ac_ext <<_ACEOF
  2315. /* end confdefs.h. */
  2316. $ac_declaration
  2317. int
  2318. main ()
  2319. {
  2320. exit (42);
  2321. ;
  2322. return 0;
  2323. }
  2324. _ACEOF
  2325. rm -f conftest.$ac_objext
  2326. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2327. (eval $ac_compile) 2>conftest.er1
  2328. ac_status=$?
  2329. grep -v '^ *+' conftest.er1 >conftest.err
  2330. rm -f conftest.er1
  2331. cat conftest.err >&5
  2332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2333. (exit $ac_status); } &&
  2334. { ac_try='test -z "$ac_cxx_werror_flag"
  2335. || test ! -s conftest.err'
  2336. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2337. (eval $ac_try) 2>&5
  2338. ac_status=$?
  2339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2340. (exit $ac_status); }; } &&
  2341. { ac_try='test -s conftest.$ac_objext'
  2342. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2343. (eval $ac_try) 2>&5
  2344. ac_status=$?
  2345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2346. (exit $ac_status); }; }; then
  2347. break
  2348. else
  2349. echo "$as_me: failed program was:" >&5
  2350. sed 's/^/| /' conftest.$ac_ext >&5
  2351. fi
  2352. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2353. done
  2354. rm -f conftest*
  2355. if test -n "$ac_declaration"; then
  2356. echo '#ifdef __cplusplus' >>confdefs.h
  2357. echo $ac_declaration >>confdefs.h
  2358. echo '#endif' >>confdefs.h
  2359. fi
  2360. ac_ext=c
  2361. ac_cpp='$CPP $CPPFLAGS'
  2362. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2363. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2364. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2365. DEPDIR="${am__leading_dot}deps"
  2366. ac_config_commands="$ac_config_commands depfiles"
  2367. am_make=${MAKE-make}
  2368. cat > confinc << 'END'
  2369. am__doit:
  2370. @echo done
  2371. .PHONY: am__doit
  2372. END
  2373. # If we don't find an include directive, just comment out the code.
  2374. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2375. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2376. am__include="#"
  2377. am__quote=
  2378. _am_result=none
  2379. # First try GNU make style include.
  2380. echo "include confinc" > confmf
  2381. # We grep out `Entering directory' and `Leaving directory'
  2382. # messages which can occur if `w' ends up in MAKEFLAGS.
  2383. # In particular we don't look at `^make:' because GNU make might
  2384. # be invoked under some other name (usually "gmake"), in which
  2385. # case it prints its new name instead of `make'.
  2386. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2387. am__include=include
  2388. am__quote=
  2389. _am_result=GNU
  2390. fi
  2391. # Now try BSD make style include.
  2392. if test "$am__include" = "#"; then
  2393. echo '.include "confinc"' > confmf
  2394. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2395. am__include=.include
  2396. am__quote="\""
  2397. _am_result=BSD
  2398. fi
  2399. fi
  2400. echo "$as_me:$LINENO: result: $_am_result" >&5
  2401. echo "${ECHO_T}$_am_result" >&6
  2402. rm -f confinc confmf
  2403. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2404. if test "${enable_dependency_tracking+set}" = set; then
  2405. enableval="$enable_dependency_tracking"
  2406. fi;
  2407. if test "x$enable_dependency_tracking" != xno; then
  2408. am_depcomp="$ac_aux_dir/depcomp"
  2409. AMDEPBACKSLASH='\'
  2410. fi
  2411. if test "x$enable_dependency_tracking" != xno; then
  2412. AMDEP_TRUE=
  2413. AMDEP_FALSE='#'
  2414. else
  2415. AMDEP_TRUE='#'
  2416. AMDEP_FALSE=
  2417. fi
  2418. depcc="$CXX" am_compiler_list=
  2419. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2420. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2421. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2422. echo $ECHO_N "(cached) $ECHO_C" >&6
  2423. else
  2424. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2425. # We make a subdir and do the tests there. Otherwise we can end up
  2426. # making bogus files that we don't know about and never remove. For
  2427. # instance it was reported that on HP-UX the gcc test will end up
  2428. # making a dummy file named `D' -- because `-MD' means `put the output
  2429. # in D'.
  2430. mkdir conftest.dir
  2431. # Copy depcomp to subdir because otherwise we won't find it if we're
  2432. # using a relative directory.
  2433. cp "$am_depcomp" conftest.dir
  2434. cd conftest.dir
  2435. # We will build objects and dependencies in a subdirectory because
  2436. # it helps to detect inapplicable dependency modes. For instance
  2437. # both Tru64's cc and ICC support -MD to output dependencies as a
  2438. # side effect of compilation, but ICC will put the dependencies in
  2439. # the current directory while Tru64 will put them in the object
  2440. # directory.
  2441. mkdir sub
  2442. am_cv_CXX_dependencies_compiler_type=none
  2443. if test "$am_compiler_list" = ""; then
  2444. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2445. fi
  2446. for depmode in $am_compiler_list; do
  2447. # Setup a source with many dependencies, because some compilers
  2448. # like to wrap large dependency lists on column 80 (with \), and
  2449. # we should not choose a depcomp mode which is confused by this.
  2450. #
  2451. # We need to recreate these files for each test, as the compiler may
  2452. # overwrite some of them when testing with obscure command lines.
  2453. # This happens at least with the AIX C compiler.
  2454. : > sub/conftest.c
  2455. for i in 1 2 3 4 5 6; do
  2456. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2457. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2458. # Solaris 8's {/usr,}/bin/sh.
  2459. touch sub/conftst$i.h
  2460. done
  2461. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2462. case $depmode in
  2463. nosideeffect)
  2464. # after this tag, mechanisms are not by side-effect, so they'll
  2465. # only be used when explicitly requested
  2466. if test "x$enable_dependency_tracking" = xyes; then
  2467. continue
  2468. else
  2469. break
  2470. fi
  2471. ;;
  2472. none) break ;;
  2473. esac
  2474. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2475. # mode. It turns out that the SunPro C++ compiler does not properly
  2476. # handle `-M -o', and we need to detect this.
  2477. if depmode=$depmode \
  2478. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2479. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2480. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2481. >/dev/null 2>conftest.err &&
  2482. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2483. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2484. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2485. # icc doesn't choke on unknown options, it will just issue warnings
  2486. # or remarks (even with -Werror). So we grep stderr for any message
  2487. # that says an option was ignored or not supported.
  2488. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2489. # icc: Command line warning: ignoring option '-M'; no argument required
  2490. # The diagnosis changed in icc 8.0:
  2491. # icc: Command line remark: option '-MP' not supported
  2492. if (grep 'ignoring option' conftest.err ||
  2493. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2494. am_cv_CXX_dependencies_compiler_type=$depmode
  2495. break
  2496. fi
  2497. fi
  2498. done
  2499. cd ..
  2500. rm -rf conftest.dir
  2501. else
  2502. am_cv_CXX_dependencies_compiler_type=none
  2503. fi
  2504. fi
  2505. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2506. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  2507. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2508. if
  2509. test "x$enable_dependency_tracking" != xno \
  2510. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2511. am__fastdepCXX_TRUE=
  2512. am__fastdepCXX_FALSE='#'
  2513. else
  2514. am__fastdepCXX_TRUE='#'
  2515. am__fastdepCXX_FALSE=
  2516. fi
  2517. ac_ext=c
  2518. ac_cpp='$CPP $CPPFLAGS'
  2519. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2520. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2521. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2522. if test -n "$ac_tool_prefix"; then
  2523. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2524. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2525. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2526. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2527. if test "${ac_cv_prog_CC+set}" = set; then
  2528. echo $ECHO_N "(cached) $ECHO_C" >&6
  2529. else
  2530. if test -n "$CC"; then
  2531. ac_cv_prog_CC="$CC" # Let the user override the test.
  2532. else
  2533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2534. for as_dir in $PATH
  2535. do
  2536. IFS=$as_save_IFS
  2537. test -z "$as_dir" && as_dir=.
  2538. for ac_exec_ext in '' $ac_executable_extensions; do
  2539. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2540. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2541. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2542. break 2
  2543. fi
  2544. done
  2545. done
  2546. fi
  2547. fi
  2548. CC=$ac_cv_prog_CC
  2549. if test -n "$CC"; then
  2550. echo "$as_me:$LINENO: result: $CC" >&5
  2551. echo "${ECHO_T}$CC" >&6
  2552. else
  2553. echo "$as_me:$LINENO: result: no" >&5
  2554. echo "${ECHO_T}no" >&6
  2555. fi
  2556. fi
  2557. if test -z "$ac_cv_prog_CC"; then
  2558. ac_ct_CC=$CC
  2559. # Extract the first word of "gcc", so it can be a program name with args.
  2560. set dummy gcc; ac_word=$2
  2561. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2562. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2563. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2564. echo $ECHO_N "(cached) $ECHO_C" >&6
  2565. else
  2566. if test -n "$ac_ct_CC"; then
  2567. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2568. else
  2569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2570. for as_dir in $PATH
  2571. do
  2572. IFS=$as_save_IFS
  2573. test -z "$as_dir" && as_dir=.
  2574. for ac_exec_ext in '' $ac_executable_extensions; do
  2575. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2576. ac_cv_prog_ac_ct_CC="gcc"
  2577. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2578. break 2
  2579. fi
  2580. done
  2581. done
  2582. fi
  2583. fi
  2584. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2585. if test -n "$ac_ct_CC"; then
  2586. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2587. echo "${ECHO_T}$ac_ct_CC" >&6
  2588. else
  2589. echo "$as_me:$LINENO: result: no" >&5
  2590. echo "${ECHO_T}no" >&6
  2591. fi
  2592. CC=$ac_ct_CC
  2593. else
  2594. CC="$ac_cv_prog_CC"
  2595. fi
  2596. if test -z "$CC"; then
  2597. if test -n "$ac_tool_prefix"; then
  2598. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2599. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2600. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2601. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2602. if test "${ac_cv_prog_CC+set}" = set; then
  2603. echo $ECHO_N "(cached) $ECHO_C" >&6
  2604. else
  2605. if test -n "$CC"; then
  2606. ac_cv_prog_CC="$CC" # Let the user override the test.
  2607. else
  2608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2609. for as_dir in $PATH
  2610. do
  2611. IFS=$as_save_IFS
  2612. test -z "$as_dir" && as_dir=.
  2613. for ac_exec_ext in '' $ac_executable_extensions; do
  2614. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2615. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2616. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2617. break 2
  2618. fi
  2619. done
  2620. done
  2621. fi
  2622. fi
  2623. CC=$ac_cv_prog_CC
  2624. if test -n "$CC"; then
  2625. echo "$as_me:$LINENO: result: $CC" >&5
  2626. echo "${ECHO_T}$CC" >&6
  2627. else
  2628. echo "$as_me:$LINENO: result: no" >&5
  2629. echo "${ECHO_T}no" >&6
  2630. fi
  2631. fi
  2632. if test -z "$ac_cv_prog_CC"; then
  2633. ac_ct_CC=$CC
  2634. # Extract the first word of "cc", so it can be a program name with args.
  2635. set dummy cc; ac_word=$2
  2636. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2637. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2638. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2639. echo $ECHO_N "(cached) $ECHO_C" >&6
  2640. else
  2641. if test -n "$ac_ct_CC"; then
  2642. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2643. else
  2644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2645. for as_dir in $PATH
  2646. do
  2647. IFS=$as_save_IFS
  2648. test -z "$as_dir" && as_dir=.
  2649. for ac_exec_ext in '' $ac_executable_extensions; do
  2650. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2651. ac_cv_prog_ac_ct_CC="cc"
  2652. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2653. break 2
  2654. fi
  2655. done
  2656. done
  2657. fi
  2658. fi
  2659. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2660. if test -n "$ac_ct_CC"; then
  2661. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2662. echo "${ECHO_T}$ac_ct_CC" >&6
  2663. else
  2664. echo "$as_me:$LINENO: result: no" >&5
  2665. echo "${ECHO_T}no" >&6
  2666. fi
  2667. CC=$ac_ct_CC
  2668. else
  2669. CC="$ac_cv_prog_CC"
  2670. fi
  2671. fi
  2672. if test -z "$CC"; then
  2673. # Extract the first word of "cc", so it can be a program name with args.
  2674. set dummy cc; ac_word=$2
  2675. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2676. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2677. if test "${ac_cv_prog_CC+set}" = set; then
  2678. echo $ECHO_N "(cached) $ECHO_C" >&6
  2679. else
  2680. if test -n "$CC"; then
  2681. ac_cv_prog_CC="$CC" # Let the user override the test.
  2682. else
  2683. ac_prog_rejected=no
  2684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2685. for as_dir in $PATH
  2686. do
  2687. IFS=$as_save_IFS
  2688. test -z "$as_dir" && as_dir=.
  2689. for ac_exec_ext in '' $ac_executable_extensions; do
  2690. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2691. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2692. ac_prog_rejected=yes
  2693. continue
  2694. fi
  2695. ac_cv_prog_CC="cc"
  2696. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2697. break 2
  2698. fi
  2699. done
  2700. done
  2701. if test $ac_prog_rejected = yes; then
  2702. # We found a bogon in the path, so make sure we never use it.
  2703. set dummy $ac_cv_prog_CC
  2704. shift
  2705. if test $# != 0; then
  2706. # We chose a different compiler from the bogus one.
  2707. # However, it has the same basename, so the bogon will be chosen
  2708. # first if we set CC to just the basename; use the full file name.
  2709. shift
  2710. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2711. fi
  2712. fi
  2713. fi
  2714. fi
  2715. CC=$ac_cv_prog_CC
  2716. if test -n "$CC"; then
  2717. echo "$as_me:$LINENO: result: $CC" >&5
  2718. echo "${ECHO_T}$CC" >&6
  2719. else
  2720. echo "$as_me:$LINENO: result: no" >&5
  2721. echo "${ECHO_T}no" >&6
  2722. fi
  2723. fi
  2724. if test -z "$CC"; then
  2725. if test -n "$ac_tool_prefix"; then
  2726. for ac_prog in cl
  2727. do
  2728. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2729. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2730. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2731. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2732. if test "${ac_cv_prog_CC+set}" = set; then
  2733. echo $ECHO_N "(cached) $ECHO_C" >&6
  2734. else
  2735. if test -n "$CC"; then
  2736. ac_cv_prog_CC="$CC" # Let the user override the test.
  2737. else
  2738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2739. for as_dir in $PATH
  2740. do
  2741. IFS=$as_save_IFS
  2742. test -z "$as_dir" && as_dir=.
  2743. for ac_exec_ext in '' $ac_executable_extensions; do
  2744. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2745. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2746. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2747. break 2
  2748. fi
  2749. done
  2750. done
  2751. fi
  2752. fi
  2753. CC=$ac_cv_prog_CC
  2754. if test -n "$CC"; then
  2755. echo "$as_me:$LINENO: result: $CC" >&5
  2756. echo "${ECHO_T}$CC" >&6
  2757. else
  2758. echo "$as_me:$LINENO: result: no" >&5
  2759. echo "${ECHO_T}no" >&6
  2760. fi
  2761. test -n "$CC" && break
  2762. done
  2763. fi
  2764. if test -z "$CC"; then
  2765. ac_ct_CC=$CC
  2766. for ac_prog in cl
  2767. do
  2768. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2769. set dummy $ac_prog; ac_word=$2
  2770. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2771. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2772. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2773. echo $ECHO_N "(cached) $ECHO_C" >&6
  2774. else
  2775. if test -n "$ac_ct_CC"; then
  2776. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2777. else
  2778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2779. for as_dir in $PATH
  2780. do
  2781. IFS=$as_save_IFS
  2782. test -z "$as_dir" && as_dir=.
  2783. for ac_exec_ext in '' $ac_executable_extensions; do
  2784. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2785. ac_cv_prog_ac_ct_CC="$ac_prog"
  2786. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2787. break 2
  2788. fi
  2789. done
  2790. done
  2791. fi
  2792. fi
  2793. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2794. if test -n "$ac_ct_CC"; then
  2795. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2796. echo "${ECHO_T}$ac_ct_CC" >&6
  2797. else
  2798. echo "$as_me:$LINENO: result: no" >&5
  2799. echo "${ECHO_T}no" >&6
  2800. fi
  2801. test -n "$ac_ct_CC" && break
  2802. done
  2803. CC=$ac_ct_CC
  2804. fi
  2805. fi
  2806. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2807. See \`config.log' for more details." >&5
  2808. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2809. See \`config.log' for more details." >&2;}
  2810. { (exit 1); exit 1; }; }
  2811. # Provide some information about the compiler.
  2812. echo "$as_me:$LINENO:" \
  2813. "checking for C compiler version" >&5
  2814. ac_compiler=`set X $ac_compile; echo $2`
  2815. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2816. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2817. ac_status=$?
  2818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2819. (exit $ac_status); }
  2820. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2821. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2822. ac_status=$?
  2823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2824. (exit $ac_status); }
  2825. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2826. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2827. ac_status=$?
  2828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2829. (exit $ac_status); }
  2830. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2831. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2832. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2833. echo $ECHO_N "(cached) $ECHO_C" >&6
  2834. else
  2835. cat >conftest.$ac_ext <<_ACEOF
  2836. /* confdefs.h. */
  2837. _ACEOF
  2838. cat confdefs.h >>conftest.$ac_ext
  2839. cat >>conftest.$ac_ext <<_ACEOF
  2840. /* end confdefs.h. */
  2841. int
  2842. main ()
  2843. {
  2844. #ifndef __GNUC__
  2845. choke me
  2846. #endif
  2847. ;
  2848. return 0;
  2849. }
  2850. _ACEOF
  2851. rm -f conftest.$ac_objext
  2852. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2853. (eval $ac_compile) 2>conftest.er1
  2854. ac_status=$?
  2855. grep -v '^ *+' conftest.er1 >conftest.err
  2856. rm -f conftest.er1
  2857. cat conftest.err >&5
  2858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2859. (exit $ac_status); } &&
  2860. { ac_try='test -z "$ac_c_werror_flag"
  2861. || test ! -s conftest.err'
  2862. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2863. (eval $ac_try) 2>&5
  2864. ac_status=$?
  2865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2866. (exit $ac_status); }; } &&
  2867. { ac_try='test -s conftest.$ac_objext'
  2868. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2869. (eval $ac_try) 2>&5
  2870. ac_status=$?
  2871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2872. (exit $ac_status); }; }; then
  2873. ac_compiler_gnu=yes
  2874. else
  2875. echo "$as_me: failed program was:" >&5
  2876. sed 's/^/| /' conftest.$ac_ext >&5
  2877. ac_compiler_gnu=no
  2878. fi
  2879. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2880. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2881. fi
  2882. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2883. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2884. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2885. ac_test_CFLAGS=${CFLAGS+set}
  2886. ac_save_CFLAGS=$CFLAGS
  2887. CFLAGS="-g"
  2888. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2889. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2890. if test "${ac_cv_prog_cc_g+set}" = set; then
  2891. echo $ECHO_N "(cached) $ECHO_C" >&6
  2892. else
  2893. cat >conftest.$ac_ext <<_ACEOF
  2894. /* confdefs.h. */
  2895. _ACEOF
  2896. cat confdefs.h >>conftest.$ac_ext
  2897. cat >>conftest.$ac_ext <<_ACEOF
  2898. /* end confdefs.h. */
  2899. int
  2900. main ()
  2901. {
  2902. ;
  2903. return 0;
  2904. }
  2905. _ACEOF
  2906. rm -f conftest.$ac_objext
  2907. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2908. (eval $ac_compile) 2>conftest.er1
  2909. ac_status=$?
  2910. grep -v '^ *+' conftest.er1 >conftest.err
  2911. rm -f conftest.er1
  2912. cat conftest.err >&5
  2913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2914. (exit $ac_status); } &&
  2915. { ac_try='test -z "$ac_c_werror_flag"
  2916. || test ! -s conftest.err'
  2917. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2918. (eval $ac_try) 2>&5
  2919. ac_status=$?
  2920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2921. (exit $ac_status); }; } &&
  2922. { ac_try='test -s conftest.$ac_objext'
  2923. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2924. (eval $ac_try) 2>&5
  2925. ac_status=$?
  2926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2927. (exit $ac_status); }; }; then
  2928. ac_cv_prog_cc_g=yes
  2929. else
  2930. echo "$as_me: failed program was:" >&5
  2931. sed 's/^/| /' conftest.$ac_ext >&5
  2932. ac_cv_prog_cc_g=no
  2933. fi
  2934. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2935. fi
  2936. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2937. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2938. if test "$ac_test_CFLAGS" = set; then
  2939. CFLAGS=$ac_save_CFLAGS
  2940. elif test $ac_cv_prog_cc_g = yes; then
  2941. if test "$GCC" = yes; then
  2942. CFLAGS="-g -O2"
  2943. else
  2944. CFLAGS="-g"
  2945. fi
  2946. else
  2947. if test "$GCC" = yes; then
  2948. CFLAGS="-O2"
  2949. else
  2950. CFLAGS=
  2951. fi
  2952. fi
  2953. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2954. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2955. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2956. echo $ECHO_N "(cached) $ECHO_C" >&6
  2957. else
  2958. ac_cv_prog_cc_stdc=no
  2959. ac_save_CC=$CC
  2960. cat >conftest.$ac_ext <<_ACEOF
  2961. /* confdefs.h. */
  2962. _ACEOF
  2963. cat confdefs.h >>conftest.$ac_ext
  2964. cat >>conftest.$ac_ext <<_ACEOF
  2965. /* end confdefs.h. */
  2966. #include <stdarg.h>
  2967. #include <stdio.h>
  2968. #include <sys/types.h>
  2969. #include <sys/stat.h>
  2970. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2971. struct buf { int x; };
  2972. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2973. static char *e (p, i)
  2974. char **p;
  2975. int i;
  2976. {
  2977. return p[i];
  2978. }
  2979. static char *f (char * (*g) (char **, int), char **p, ...)
  2980. {
  2981. char *s;
  2982. va_list v;
  2983. va_start (v,p);
  2984. s = g (p, va_arg (v,int));
  2985. va_end (v);
  2986. return s;
  2987. }
  2988. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2989. function prototypes and stuff, but not '\xHH' hex character constants.
  2990. These don't provoke an error unfortunately, instead are silently treated
  2991. as 'x'. The following induces an error, until -std1 is added to get
  2992. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2993. array size at least. It's necessary to write '\x00'==0 to get something
  2994. that's true only with -std1. */
  2995. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2996. int test (int i, double x);
  2997. struct s1 {int (*f) (int a);};
  2998. struct s2 {int (*f) (double a);};
  2999. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3000. int argc;
  3001. char **argv;
  3002. int
  3003. main ()
  3004. {
  3005. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3006. ;
  3007. return 0;
  3008. }
  3009. _ACEOF
  3010. # Don't try gcc -ansi; that turns off useful extensions and
  3011. # breaks some systems' header files.
  3012. # AIX -qlanglvl=ansi
  3013. # Ultrix and OSF/1 -std1
  3014. # HP-UX 10.20 and later -Ae
  3015. # HP-UX older versions -Aa -D_HPUX_SOURCE
  3016. # SVR4 -Xc -D__EXTENSIONS__
  3017. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3018. do
  3019. CC="$ac_save_CC $ac_arg"
  3020. rm -f conftest.$ac_objext
  3021. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3022. (eval $ac_compile) 2>conftest.er1
  3023. ac_status=$?
  3024. grep -v '^ *+' conftest.er1 >conftest.err
  3025. rm -f conftest.er1
  3026. cat conftest.err >&5
  3027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3028. (exit $ac_status); } &&
  3029. { ac_try='test -z "$ac_c_werror_flag"
  3030. || test ! -s conftest.err'
  3031. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3032. (eval $ac_try) 2>&5
  3033. ac_status=$?
  3034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3035. (exit $ac_status); }; } &&
  3036. { ac_try='test -s conftest.$ac_objext'
  3037. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3038. (eval $ac_try) 2>&5
  3039. ac_status=$?
  3040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3041. (exit $ac_status); }; }; then
  3042. ac_cv_prog_cc_stdc=$ac_arg
  3043. break
  3044. else
  3045. echo "$as_me: failed program was:" >&5
  3046. sed 's/^/| /' conftest.$ac_ext >&5
  3047. fi
  3048. rm -f conftest.err conftest.$ac_objext
  3049. done
  3050. rm -f conftest.$ac_ext conftest.$ac_objext
  3051. CC=$ac_save_CC
  3052. fi
  3053. case "x$ac_cv_prog_cc_stdc" in
  3054. x|xno)
  3055. echo "$as_me:$LINENO: result: none needed" >&5
  3056. echo "${ECHO_T}none needed" >&6 ;;
  3057. *)
  3058. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  3059. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  3060. CC="$CC $ac_cv_prog_cc_stdc" ;;
  3061. esac
  3062. # Some people use a C++ compiler to compile C. Since we use `exit',
  3063. # in C++ we need to declare it. In case someone uses the same compiler
  3064. # for both compiling C and C++ we need to have the C++ compiler decide
  3065. # the declaration of exit, since it's the most demanding environment.
  3066. cat >conftest.$ac_ext <<_ACEOF
  3067. #ifndef __cplusplus
  3068. choke me
  3069. #endif
  3070. _ACEOF
  3071. rm -f conftest.$ac_objext
  3072. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3073. (eval $ac_compile) 2>conftest.er1
  3074. ac_status=$?
  3075. grep -v '^ *+' conftest.er1 >conftest.err
  3076. rm -f conftest.er1
  3077. cat conftest.err >&5
  3078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3079. (exit $ac_status); } &&
  3080. { ac_try='test -z "$ac_c_werror_flag"
  3081. || test ! -s conftest.err'
  3082. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3083. (eval $ac_try) 2>&5
  3084. ac_status=$?
  3085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3086. (exit $ac_status); }; } &&
  3087. { ac_try='test -s conftest.$ac_objext'
  3088. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3089. (eval $ac_try) 2>&5
  3090. ac_status=$?
  3091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3092. (exit $ac_status); }; }; then
  3093. for ac_declaration in \
  3094. '' \
  3095. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3096. 'extern "C" void std::exit (int); using std::exit;' \
  3097. 'extern "C" void exit (int) throw ();' \
  3098. 'extern "C" void exit (int);' \
  3099. 'void exit (int);'
  3100. do
  3101. cat >conftest.$ac_ext <<_ACEOF
  3102. /* confdefs.h. */
  3103. _ACEOF
  3104. cat confdefs.h >>conftest.$ac_ext
  3105. cat >>conftest.$ac_ext <<_ACEOF
  3106. /* end confdefs.h. */
  3107. $ac_declaration
  3108. #include <stdlib.h>
  3109. int
  3110. main ()
  3111. {
  3112. exit (42);
  3113. ;
  3114. return 0;
  3115. }
  3116. _ACEOF
  3117. rm -f conftest.$ac_objext
  3118. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3119. (eval $ac_compile) 2>conftest.er1
  3120. ac_status=$?
  3121. grep -v '^ *+' conftest.er1 >conftest.err
  3122. rm -f conftest.er1
  3123. cat conftest.err >&5
  3124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3125. (exit $ac_status); } &&
  3126. { ac_try='test -z "$ac_c_werror_flag"
  3127. || test ! -s conftest.err'
  3128. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3129. (eval $ac_try) 2>&5
  3130. ac_status=$?
  3131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3132. (exit $ac_status); }; } &&
  3133. { ac_try='test -s conftest.$ac_objext'
  3134. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3135. (eval $ac_try) 2>&5
  3136. ac_status=$?
  3137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3138. (exit $ac_status); }; }; then
  3139. :
  3140. else
  3141. echo "$as_me: failed program was:" >&5
  3142. sed 's/^/| /' conftest.$ac_ext >&5
  3143. continue
  3144. fi
  3145. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3146. cat >conftest.$ac_ext <<_ACEOF
  3147. /* confdefs.h. */
  3148. _ACEOF
  3149. cat confdefs.h >>conftest.$ac_ext
  3150. cat >>conftest.$ac_ext <<_ACEOF
  3151. /* end confdefs.h. */
  3152. $ac_declaration
  3153. int
  3154. main ()
  3155. {
  3156. exit (42);
  3157. ;
  3158. return 0;
  3159. }
  3160. _ACEOF
  3161. rm -f conftest.$ac_objext
  3162. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3163. (eval $ac_compile) 2>conftest.er1
  3164. ac_status=$?
  3165. grep -v '^ *+' conftest.er1 >conftest.err
  3166. rm -f conftest.er1
  3167. cat conftest.err >&5
  3168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3169. (exit $ac_status); } &&
  3170. { ac_try='test -z "$ac_c_werror_flag"
  3171. || test ! -s conftest.err'
  3172. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3173. (eval $ac_try) 2>&5
  3174. ac_status=$?
  3175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3176. (exit $ac_status); }; } &&
  3177. { ac_try='test -s conftest.$ac_objext'
  3178. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3179. (eval $ac_try) 2>&5
  3180. ac_status=$?
  3181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3182. (exit $ac_status); }; }; then
  3183. break
  3184. else
  3185. echo "$as_me: failed program was:" >&5
  3186. sed 's/^/| /' conftest.$ac_ext >&5
  3187. fi
  3188. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3189. done
  3190. rm -f conftest*
  3191. if test -n "$ac_declaration"; then
  3192. echo '#ifdef __cplusplus' >>confdefs.h
  3193. echo $ac_declaration >>confdefs.h
  3194. echo '#endif' >>confdefs.h
  3195. fi
  3196. else
  3197. echo "$as_me: failed program was:" >&5
  3198. sed 's/^/| /' conftest.$ac_ext >&5
  3199. fi
  3200. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3201. ac_ext=c
  3202. ac_cpp='$CPP $CPPFLAGS'
  3203. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3204. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3205. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3206. depcc="$CC" am_compiler_list=
  3207. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3208. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3209. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3210. echo $ECHO_N "(cached) $ECHO_C" >&6
  3211. else
  3212. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3213. # We make a subdir and do the tests there. Otherwise we can end up
  3214. # making bogus files that we don't know about and never remove. For
  3215. # instance it was reported that on HP-UX the gcc test will end up
  3216. # making a dummy file named `D' -- because `-MD' means `put the output
  3217. # in D'.
  3218. mkdir conftest.dir
  3219. # Copy depcomp to subdir because otherwise we won't find it if we're
  3220. # using a relative directory.
  3221. cp "$am_depcomp" conftest.dir
  3222. cd conftest.dir
  3223. # We will build objects and dependencies in a subdirectory because
  3224. # it helps to detect inapplicable dependency modes. For instance
  3225. # both Tru64's cc and ICC support -MD to output dependencies as a
  3226. # side effect of compilation, but ICC will put the dependencies in
  3227. # the current directory while Tru64 will put them in the object
  3228. # directory.
  3229. mkdir sub
  3230. am_cv_CC_dependencies_compiler_type=none
  3231. if test "$am_compiler_list" = ""; then
  3232. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3233. fi
  3234. for depmode in $am_compiler_list; do
  3235. # Setup a source with many dependencies, because some compilers
  3236. # like to wrap large dependency lists on column 80 (with \), and
  3237. # we should not choose a depcomp mode which is confused by this.
  3238. #
  3239. # We need to recreate these files for each test, as the compiler may
  3240. # overwrite some of them when testing with obscure command lines.
  3241. # This happens at least with the AIX C compiler.
  3242. : > sub/conftest.c
  3243. for i in 1 2 3 4 5 6; do
  3244. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3245. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3246. # Solaris 8's {/usr,}/bin/sh.
  3247. touch sub/conftst$i.h
  3248. done
  3249. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3250. case $depmode in
  3251. nosideeffect)
  3252. # after this tag, mechanisms are not by side-effect, so they'll
  3253. # only be used when explicitly requested
  3254. if test "x$enable_dependency_tracking" = xyes; then
  3255. continue
  3256. else
  3257. break
  3258. fi
  3259. ;;
  3260. none) break ;;
  3261. esac
  3262. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3263. # mode. It turns out that the SunPro C++ compiler does not properly
  3264. # handle `-M -o', and we need to detect this.
  3265. if depmode=$depmode \
  3266. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3267. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3268. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3269. >/dev/null 2>conftest.err &&
  3270. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3271. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3272. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3273. # icc doesn't choke on unknown options, it will just issue warnings
  3274. # or remarks (even with -Werror). So we grep stderr for any message
  3275. # that says an option was ignored or not supported.
  3276. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3277. # icc: Command line warning: ignoring option '-M'; no argument required
  3278. # The diagnosis changed in icc 8.0:
  3279. # icc: Command line remark: option '-MP' not supported
  3280. if (grep 'ignoring option' conftest.err ||
  3281. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3282. am_cv_CC_dependencies_compiler_type=$depmode
  3283. break
  3284. fi
  3285. fi
  3286. done
  3287. cd ..
  3288. rm -rf conftest.dir
  3289. else
  3290. am_cv_CC_dependencies_compiler_type=none
  3291. fi
  3292. fi
  3293. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3294. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3295. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3296. if
  3297. test "x$enable_dependency_tracking" != xno \
  3298. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3299. am__fastdepCC_TRUE=
  3300. am__fastdepCC_FALSE='#'
  3301. else
  3302. am__fastdepCC_TRUE='#'
  3303. am__fastdepCC_FALSE=
  3304. fi
  3305. if test "x$CC" != xcc; then
  3306. echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  3307. echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
  3308. else
  3309. echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  3310. echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
  3311. fi
  3312. set dummy $CC; ac_cc=`echo $2 |
  3313. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3314. if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
  3315. echo $ECHO_N "(cached) $ECHO_C" >&6
  3316. else
  3317. cat >conftest.$ac_ext <<_ACEOF
  3318. /* confdefs.h. */
  3319. _ACEOF
  3320. cat confdefs.h >>conftest.$ac_ext
  3321. cat >>conftest.$ac_ext <<_ACEOF
  3322. /* end confdefs.h. */
  3323. int
  3324. main ()
  3325. {
  3326. ;
  3327. return 0;
  3328. }
  3329. _ACEOF
  3330. # Make sure it works both with $CC and with simple cc.
  3331. # We do the test twice because some compilers refuse to overwrite an
  3332. # existing .o file with -o, though they will create one.
  3333. ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
  3334. if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3335. (eval $ac_try) 2>&5
  3336. ac_status=$?
  3337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3338. (exit $ac_status); } &&
  3339. test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3340. (eval $ac_try) 2>&5
  3341. ac_status=$?
  3342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3343. (exit $ac_status); };
  3344. then
  3345. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3346. if test "x$CC" != xcc; then
  3347. # Test first that cc exists at all.
  3348. if { ac_try='cc -c conftest.$ac_ext >&5'
  3349. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3350. (eval $ac_try) 2>&5
  3351. ac_status=$?
  3352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3353. (exit $ac_status); }; }; then
  3354. ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
  3355. if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3356. (eval $ac_try) 2>&5
  3357. ac_status=$?
  3358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3359. (exit $ac_status); } &&
  3360. test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3361. (eval $ac_try) 2>&5
  3362. ac_status=$?
  3363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3364. (exit $ac_status); };
  3365. then
  3366. # cc works too.
  3367. :
  3368. else
  3369. # cc exists but doesn't like -o.
  3370. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3371. fi
  3372. fi
  3373. fi
  3374. else
  3375. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3376. fi
  3377. rm -f conftest*
  3378. fi
  3379. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
  3380. echo "$as_me:$LINENO: result: yes" >&5
  3381. echo "${ECHO_T}yes" >&6
  3382. else
  3383. echo "$as_me:$LINENO: result: no" >&5
  3384. echo "${ECHO_T}no" >&6
  3385. cat >>confdefs.h <<\_ACEOF
  3386. #define NO_MINUS_C_MINUS_O 1
  3387. _ACEOF
  3388. fi
  3389. # FIXME: we rely on the cache variable name because
  3390. # there is no other way.
  3391. set dummy $CC
  3392. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3393. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  3394. # Losing compiler, so override with the script.
  3395. # FIXME: It is wrong to rewrite CC.
  3396. # But if we don't then we get into trouble of one sort or another.
  3397. # A longer-term fix would be to have automake use am__CC in this case,
  3398. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3399. CC="$am_aux_dir/compile $CC"
  3400. fi
  3401. # By default we simply use the C compiler to build assembly code.
  3402. test "${CCAS+set}" = set || CCAS=$CC
  3403. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  3404. # disable static libs by default - we only use a couple
  3405. # Check whether --enable-static or --disable-static was given.
  3406. if test "${enable_static+set}" = set; then
  3407. enableval="$enable_static"
  3408. p=${PACKAGE-default}
  3409. case $enableval in
  3410. yes) enable_static=yes ;;
  3411. no) enable_static=no ;;
  3412. *)
  3413. enable_static=no
  3414. # Look at the argument we got. We use all the common list separators.
  3415. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3416. for pkg in $enableval; do
  3417. IFS="$lt_save_ifs"
  3418. if test "X$pkg" = "X$p"; then
  3419. enable_static=yes
  3420. fi
  3421. done
  3422. IFS="$lt_save_ifs"
  3423. ;;
  3424. esac
  3425. else
  3426. enable_static=no
  3427. fi;
  3428. # Check whether --enable-shared or --disable-shared was given.
  3429. if test "${enable_shared+set}" = set; then
  3430. enableval="$enable_shared"
  3431. p=${PACKAGE-default}
  3432. case $enableval in
  3433. yes) enable_shared=yes ;;
  3434. no) enable_shared=no ;;
  3435. *)
  3436. enable_shared=no
  3437. # Look at the argument we got. We use all the common list separators.
  3438. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3439. for pkg in $enableval; do
  3440. IFS="$lt_save_ifs"
  3441. if test "X$pkg" = "X$p"; then
  3442. enable_shared=yes
  3443. fi
  3444. done
  3445. IFS="$lt_save_ifs"
  3446. ;;
  3447. esac
  3448. else
  3449. enable_shared=yes
  3450. fi;
  3451. # Check whether --enable-fast-install or --disable-fast-install was given.
  3452. if test "${enable_fast_install+set}" = set; then
  3453. enableval="$enable_fast_install"
  3454. p=${PACKAGE-default}
  3455. case $enableval in
  3456. yes) enable_fast_install=yes ;;
  3457. no) enable_fast_install=no ;;
  3458. *)
  3459. enable_fast_install=no
  3460. # Look at the argument we got. We use all the common list separators.
  3461. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3462. for pkg in $enableval; do
  3463. IFS="$lt_save_ifs"
  3464. if test "X$pkg" = "X$p"; then
  3465. enable_fast_install=yes
  3466. fi
  3467. done
  3468. IFS="$lt_save_ifs"
  3469. ;;
  3470. esac
  3471. else
  3472. enable_fast_install=yes
  3473. fi;
  3474. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3475. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  3476. if test "${lt_cv_path_SED+set}" = set; then
  3477. echo $ECHO_N "(cached) $ECHO_C" >&6
  3478. else
  3479. # Loop through the user's path and test for sed and gsed.
  3480. # Then use that list of sed's as ones to test for truncation.
  3481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3482. for as_dir in $PATH
  3483. do
  3484. IFS=$as_save_IFS
  3485. test -z "$as_dir" && as_dir=.
  3486. for lt_ac_prog in sed gsed; do
  3487. for ac_exec_ext in '' $ac_executable_extensions; do
  3488. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3489. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3490. fi
  3491. done
  3492. done
  3493. done
  3494. IFS=$as_save_IFS
  3495. lt_ac_max=0
  3496. lt_ac_count=0
  3497. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3498. # along with /bin/sed that truncates output.
  3499. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3500. test ! -f $lt_ac_sed && continue
  3501. cat /dev/null > conftest.in
  3502. lt_ac_count=0
  3503. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3504. # Check for GNU sed and select it if it is found.
  3505. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3506. lt_cv_path_SED=$lt_ac_sed
  3507. break
  3508. fi
  3509. while true; do
  3510. cat conftest.in conftest.in >conftest.tmp
  3511. mv conftest.tmp conftest.in
  3512. cp conftest.in conftest.nl
  3513. echo >>conftest.nl
  3514. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3515. cmp -s conftest.out conftest.nl || break
  3516. # 10000 chars as input seems more than enough
  3517. test $lt_ac_count -gt 10 && break
  3518. lt_ac_count=`expr $lt_ac_count + 1`
  3519. if test $lt_ac_count -gt $lt_ac_max; then
  3520. lt_ac_max=$lt_ac_count
  3521. lt_cv_path_SED=$lt_ac_sed
  3522. fi
  3523. done
  3524. done
  3525. fi
  3526. SED=$lt_cv_path_SED
  3527. echo "$as_me:$LINENO: result: $SED" >&5
  3528. echo "${ECHO_T}$SED" >&6
  3529. echo "$as_me:$LINENO: checking for egrep" >&5
  3530. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3531. if test "${ac_cv_prog_egrep+set}" = set; then
  3532. echo $ECHO_N "(cached) $ECHO_C" >&6
  3533. else
  3534. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3535. then ac_cv_prog_egrep='grep -E'
  3536. else ac_cv_prog_egrep='egrep'
  3537. fi
  3538. fi
  3539. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3540. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3541. EGREP=$ac_cv_prog_egrep
  3542. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  3543. if test "${with_gnu_ld+set}" = set; then
  3544. withval="$with_gnu_ld"
  3545. test "$withval" = no || with_gnu_ld=yes
  3546. else
  3547. with_gnu_ld=no
  3548. fi;
  3549. ac_prog=ld
  3550. if test "$GCC" = yes; then
  3551. # Check if gcc -print-prog-name=ld gives a path.
  3552. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3553. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  3554. case $host in
  3555. *-*-mingw*)
  3556. # gcc leaves a trailing carriage return which upsets mingw
  3557. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3558. *)
  3559. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3560. esac
  3561. case $ac_prog in
  3562. # Accept absolute paths.
  3563. [\\/]* | ?:[\\/]*)
  3564. re_direlt='/[^/][^/]*/\.\./'
  3565. # Canonicalize the pathname of ld
  3566. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3567. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3568. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3569. done
  3570. test -z "$LD" && LD="$ac_prog"
  3571. ;;
  3572. "")
  3573. # If it fails, then pretend we aren't using GCC.
  3574. ac_prog=ld
  3575. ;;
  3576. *)
  3577. # If it is relative, then search for the first ld in PATH.
  3578. with_gnu_ld=unknown
  3579. ;;
  3580. esac
  3581. elif test "$with_gnu_ld" = yes; then
  3582. echo "$as_me:$LINENO: checking for GNU ld" >&5
  3583. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  3584. else
  3585. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3586. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  3587. fi
  3588. if test "${lt_cv_path_LD+set}" = set; then
  3589. echo $ECHO_N "(cached) $ECHO_C" >&6
  3590. else
  3591. if test -z "$LD"; then
  3592. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3593. for ac_dir in $PATH; do
  3594. IFS="$lt_save_ifs"
  3595. test -z "$ac_dir" && ac_dir=.
  3596. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3597. lt_cv_path_LD="$ac_dir/$ac_prog"
  3598. # Check to see if the program is GNU ld. I'd rather use --version,
  3599. # but apparently some variants of GNU ld only accept -v.
  3600. # Break only if it was the GNU/non-GNU ld that we prefer.
  3601. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3602. *GNU* | *'with BFD'*)
  3603. test "$with_gnu_ld" != no && break
  3604. ;;
  3605. *)
  3606. test "$with_gnu_ld" != yes && break
  3607. ;;
  3608. esac
  3609. fi
  3610. done
  3611. IFS="$lt_save_ifs"
  3612. else
  3613. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3614. fi
  3615. fi
  3616. LD="$lt_cv_path_LD"
  3617. if test -n "$LD"; then
  3618. echo "$as_me:$LINENO: result: $LD" >&5
  3619. echo "${ECHO_T}$LD" >&6
  3620. else
  3621. echo "$as_me:$LINENO: result: no" >&5
  3622. echo "${ECHO_T}no" >&6
  3623. fi
  3624. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3625. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3626. { (exit 1); exit 1; }; }
  3627. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3628. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  3629. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3630. echo $ECHO_N "(cached) $ECHO_C" >&6
  3631. else
  3632. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3633. case `$LD -v 2>&1 </dev/null` in
  3634. *GNU* | *'with BFD'*)
  3635. lt_cv_prog_gnu_ld=yes
  3636. ;;
  3637. *)
  3638. lt_cv_prog_gnu_ld=no
  3639. ;;
  3640. esac
  3641. fi
  3642. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3643. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  3644. with_gnu_ld=$lt_cv_prog_gnu_ld
  3645. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3646. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  3647. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3648. echo $ECHO_N "(cached) $ECHO_C" >&6
  3649. else
  3650. lt_cv_ld_reload_flag='-r'
  3651. fi
  3652. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3653. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  3654. reload_flag=$lt_cv_ld_reload_flag
  3655. case $reload_flag in
  3656. "" | " "*) ;;
  3657. *) reload_flag=" $reload_flag" ;;
  3658. esac
  3659. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3660. case $host_os in
  3661. darwin*)
  3662. if test "$GCC" = yes; then
  3663. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3664. else
  3665. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3666. fi
  3667. ;;
  3668. esac
  3669. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3670. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  3671. if test "${lt_cv_path_NM+set}" = set; then
  3672. echo $ECHO_N "(cached) $ECHO_C" >&6
  3673. else
  3674. if test -n "$NM"; then
  3675. # Let the user override the test.
  3676. lt_cv_path_NM="$NM"
  3677. else
  3678. lt_nm_to_check="${ac_tool_prefix}nm"
  3679. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3680. lt_nm_to_check="$lt_nm_to_check nm"
  3681. fi
  3682. for lt_tmp_nm in $lt_nm_to_check; do
  3683. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3684. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3685. IFS="$lt_save_ifs"
  3686. test -z "$ac_dir" && ac_dir=.
  3687. tmp_nm="$ac_dir/$lt_tmp_nm"
  3688. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3689. # Check to see if the nm accepts a BSD-compat flag.
  3690. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3691. # nm: unknown option "B" ignored
  3692. # Tru64's nm complains that /dev/null is an invalid object file
  3693. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3694. */dev/null* | *'Invalid file or object type'*)
  3695. lt_cv_path_NM="$tmp_nm -B"
  3696. break
  3697. ;;
  3698. *)
  3699. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3700. */dev/null*)
  3701. lt_cv_path_NM="$tmp_nm -p"
  3702. break
  3703. ;;
  3704. *)
  3705. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3706. continue # so that we can try to find one that supports BSD flags
  3707. ;;
  3708. esac
  3709. ;;
  3710. esac
  3711. fi
  3712. done
  3713. IFS="$lt_save_ifs"
  3714. done
  3715. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3716. fi
  3717. fi
  3718. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3719. echo "${ECHO_T}$lt_cv_path_NM" >&6
  3720. NM="$lt_cv_path_NM"
  3721. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3722. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  3723. LN_S=$as_ln_s
  3724. if test "$LN_S" = "ln -s"; then
  3725. echo "$as_me:$LINENO: result: yes" >&5
  3726. echo "${ECHO_T}yes" >&6
  3727. else
  3728. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3729. echo "${ECHO_T}no, using $LN_S" >&6
  3730. fi
  3731. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  3732. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  3733. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3734. echo $ECHO_N "(cached) $ECHO_C" >&6
  3735. else
  3736. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3737. lt_cv_file_magic_test_file=
  3738. lt_cv_deplibs_check_method='unknown'
  3739. # Need to set the preceding variable on all platforms that support
  3740. # interlibrary dependencies.
  3741. # 'none' -- dependencies not supported.
  3742. # `unknown' -- same as none, but documents that we really don't know.
  3743. # 'pass_all' -- all dependencies passed with no checks.
  3744. # 'test_compile' -- check by making test program.
  3745. # 'file_magic [[regex]]' -- check by looking for files in library path
  3746. # which responds to the $file_magic_cmd with a given extended regex.
  3747. # If you have `file' or equivalent on your system and you're not sure
  3748. # whether `pass_all' will *always* work, you probably want this one.
  3749. case $host_os in
  3750. aix4* | aix5*)
  3751. lt_cv_deplibs_check_method=pass_all
  3752. ;;
  3753. beos*)
  3754. lt_cv_deplibs_check_method=pass_all
  3755. ;;
  3756. bsdi[45]*)
  3757. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3758. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3759. lt_cv_file_magic_test_file=/shlib/libc.so
  3760. ;;
  3761. cygwin*)
  3762. # func_win32_libid is a shell function defined in ltmain.sh
  3763. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3764. lt_cv_file_magic_cmd='func_win32_libid'
  3765. ;;
  3766. mingw* | pw32*)
  3767. # Base MSYS/MinGW do not provide the 'file' command needed by
  3768. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3769. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3770. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3771. ;;
  3772. darwin* | rhapsody*)
  3773. lt_cv_deplibs_check_method=pass_all
  3774. ;;
  3775. freebsd* | kfreebsd*-gnu | dragonfly*)
  3776. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3777. case $host_cpu in
  3778. i*86 )
  3779. # Not sure whether the presence of OpenBSD here was a mistake.
  3780. # Let's accept both of them until this is cleared up.
  3781. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3782. lt_cv_file_magic_cmd=/usr/bin/file
  3783. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3784. ;;
  3785. esac
  3786. else
  3787. lt_cv_deplibs_check_method=pass_all
  3788. fi
  3789. ;;
  3790. gnu*)
  3791. lt_cv_deplibs_check_method=pass_all
  3792. ;;
  3793. hpux10.20* | hpux11*)
  3794. lt_cv_file_magic_cmd=/usr/bin/file
  3795. case $host_cpu in
  3796. ia64*)
  3797. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3798. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3799. ;;
  3800. hppa*64*)
  3801. 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]'
  3802. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3803. ;;
  3804. *)
  3805. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3806. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3807. ;;
  3808. esac
  3809. ;;
  3810. interix3*)
  3811. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3812. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  3813. ;;
  3814. irix5* | irix6* | nonstopux*)
  3815. case $LD in
  3816. *-32|*"-32 ") libmagic=32-bit;;
  3817. *-n32|*"-n32 ") libmagic=N32;;
  3818. *-64|*"-64 ") libmagic=64-bit;;
  3819. *) libmagic=never-match;;
  3820. esac
  3821. lt_cv_deplibs_check_method=pass_all
  3822. ;;
  3823. # This must be Linux ELF.
  3824. linux*)
  3825. lt_cv_deplibs_check_method=pass_all
  3826. ;;
  3827. netbsd*)
  3828. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3829. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3830. else
  3831. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3832. fi
  3833. ;;
  3834. newos6*)
  3835. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3836. lt_cv_file_magic_cmd=/usr/bin/file
  3837. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3838. ;;
  3839. nto-qnx*)
  3840. lt_cv_deplibs_check_method=unknown
  3841. ;;
  3842. openbsd*)
  3843. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3844. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3845. else
  3846. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3847. fi
  3848. ;;
  3849. osf3* | osf4* | osf5*)
  3850. lt_cv_deplibs_check_method=pass_all
  3851. ;;
  3852. solaris*)
  3853. lt_cv_deplibs_check_method=pass_all
  3854. ;;
  3855. sysv4 | sysv4.3*)
  3856. case $host_vendor in
  3857. motorola)
  3858. 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]'
  3859. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3860. ;;
  3861. ncr)
  3862. lt_cv_deplibs_check_method=pass_all
  3863. ;;
  3864. sequent)
  3865. lt_cv_file_magic_cmd='/bin/file'
  3866. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3867. ;;
  3868. sni)
  3869. lt_cv_file_magic_cmd='/bin/file'
  3870. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3871. lt_cv_file_magic_test_file=/lib/libc.so
  3872. ;;
  3873. siemens)
  3874. lt_cv_deplibs_check_method=pass_all
  3875. ;;
  3876. pc)
  3877. lt_cv_deplibs_check_method=pass_all
  3878. ;;
  3879. esac
  3880. ;;
  3881. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3882. lt_cv_deplibs_check_method=pass_all
  3883. ;;
  3884. esac
  3885. fi
  3886. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3887. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  3888. file_magic_cmd=$lt_cv_file_magic_cmd
  3889. deplibs_check_method=$lt_cv_deplibs_check_method
  3890. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3891. # If no C compiler was specified, use CC.
  3892. LTCC=${LTCC-"$CC"}
  3893. # If no C compiler flags were specified, use CFLAGS.
  3894. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  3895. # Allow CC to be a program name with arguments.
  3896. compiler=$CC
  3897. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  3898. if test "${enable_libtool_lock+set}" = set; then
  3899. enableval="$enable_libtool_lock"
  3900. fi;
  3901. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3902. # Some flags need to be propagated to the compiler or linker for good
  3903. # libtool support.
  3904. case $host in
  3905. ia64-*-hpux*)
  3906. # Find out which ABI we are using.
  3907. echo 'int i;' > conftest.$ac_ext
  3908. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3909. (eval $ac_compile) 2>&5
  3910. ac_status=$?
  3911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3912. (exit $ac_status); }; then
  3913. case `/usr/bin/file conftest.$ac_objext` in
  3914. *ELF-32*)
  3915. HPUX_IA64_MODE="32"
  3916. ;;
  3917. *ELF-64*)
  3918. HPUX_IA64_MODE="64"
  3919. ;;
  3920. esac
  3921. fi
  3922. rm -rf conftest*
  3923. ;;
  3924. *-*-irix6*)
  3925. # Find out which ABI we are using.
  3926. echo '#line 4355 "configure"' > conftest.$ac_ext
  3927. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3928. (eval $ac_compile) 2>&5
  3929. ac_status=$?
  3930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3931. (exit $ac_status); }; then
  3932. if test "$lt_cv_prog_gnu_ld" = yes; then
  3933. case `/usr/bin/file conftest.$ac_objext` in
  3934. *32-bit*)
  3935. LD="${LD-ld} -melf32bsmip"
  3936. ;;
  3937. *N32*)
  3938. LD="${LD-ld} -melf32bmipn32"
  3939. ;;
  3940. *64-bit*)
  3941. LD="${LD-ld} -melf64bmip"
  3942. ;;
  3943. esac
  3944. else
  3945. case `/usr/bin/file conftest.$ac_objext` in
  3946. *32-bit*)
  3947. LD="${LD-ld} -32"
  3948. ;;
  3949. *N32*)
  3950. LD="${LD-ld} -n32"
  3951. ;;
  3952. *64-bit*)
  3953. LD="${LD-ld} -64"
  3954. ;;
  3955. esac
  3956. fi
  3957. fi
  3958. rm -rf conftest*
  3959. ;;
  3960. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  3961. # Find out which ABI we are using.
  3962. echo 'int i;' > conftest.$ac_ext
  3963. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3964. (eval $ac_compile) 2>&5
  3965. ac_status=$?
  3966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3967. (exit $ac_status); }; then
  3968. case `/usr/bin/file conftest.o` in
  3969. *32-bit*)
  3970. case $host in
  3971. x86_64-*linux*)
  3972. LD="${LD-ld} -m elf_i386"
  3973. ;;
  3974. ppc64-*linux*|powerpc64-*linux*)
  3975. LD="${LD-ld} -m elf32ppclinux"
  3976. ;;
  3977. s390x-*linux*)
  3978. LD="${LD-ld} -m elf_s390"
  3979. ;;
  3980. sparc64-*linux*)
  3981. LD="${LD-ld} -m elf32_sparc"
  3982. ;;
  3983. esac
  3984. ;;
  3985. *64-bit*)
  3986. case $host in
  3987. x86_64-*linux*)
  3988. LD="${LD-ld} -m elf_x86_64"
  3989. ;;
  3990. ppc*-*linux*|powerpc*-*linux*)
  3991. LD="${LD-ld} -m elf64ppc"
  3992. ;;
  3993. s390*-*linux*)
  3994. LD="${LD-ld} -m elf64_s390"
  3995. ;;
  3996. sparc*-*linux*)
  3997. LD="${LD-ld} -m elf64_sparc"
  3998. ;;
  3999. esac
  4000. ;;
  4001. esac
  4002. fi
  4003. rm -rf conftest*
  4004. ;;
  4005. *-*-sco3.2v5*)
  4006. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4007. SAVE_CFLAGS="$CFLAGS"
  4008. CFLAGS="$CFLAGS -belf"
  4009. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4010. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  4011. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4012. echo $ECHO_N "(cached) $ECHO_C" >&6
  4013. else
  4014. ac_ext=c
  4015. ac_cpp='$CPP $CPPFLAGS'
  4016. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4017. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4018. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4019. cat >conftest.$ac_ext <<_ACEOF
  4020. /* confdefs.h. */
  4021. _ACEOF
  4022. cat confdefs.h >>conftest.$ac_ext
  4023. cat >>conftest.$ac_ext <<_ACEOF
  4024. /* end confdefs.h. */
  4025. int
  4026. main ()
  4027. {
  4028. ;
  4029. return 0;
  4030. }
  4031. _ACEOF
  4032. rm -f conftest.$ac_objext conftest$ac_exeext
  4033. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4034. (eval $ac_link) 2>conftest.er1
  4035. ac_status=$?
  4036. grep -v '^ *+' conftest.er1 >conftest.err
  4037. rm -f conftest.er1
  4038. cat conftest.err >&5
  4039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4040. (exit $ac_status); } &&
  4041. { ac_try='test -z "$ac_c_werror_flag"
  4042. || test ! -s conftest.err'
  4043. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4044. (eval $ac_try) 2>&5
  4045. ac_status=$?
  4046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4047. (exit $ac_status); }; } &&
  4048. { ac_try='test -s conftest$ac_exeext'
  4049. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4050. (eval $ac_try) 2>&5
  4051. ac_status=$?
  4052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4053. (exit $ac_status); }; }; then
  4054. lt_cv_cc_needs_belf=yes
  4055. else
  4056. echo "$as_me: failed program was:" >&5
  4057. sed 's/^/| /' conftest.$ac_ext >&5
  4058. lt_cv_cc_needs_belf=no
  4059. fi
  4060. rm -f conftest.err conftest.$ac_objext \
  4061. conftest$ac_exeext conftest.$ac_ext
  4062. ac_ext=c
  4063. ac_cpp='$CPP $CPPFLAGS'
  4064. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4065. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4066. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4067. fi
  4068. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4069. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  4070. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4071. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4072. CFLAGS="$SAVE_CFLAGS"
  4073. fi
  4074. ;;
  4075. sparc*-*solaris*)
  4076. # Find out which ABI we are using.
  4077. echo 'int i;' > conftest.$ac_ext
  4078. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4079. (eval $ac_compile) 2>&5
  4080. ac_status=$?
  4081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4082. (exit $ac_status); }; then
  4083. case `/usr/bin/file conftest.o` in
  4084. *64-bit*)
  4085. case $lt_cv_prog_gnu_ld in
  4086. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4087. *) LD="${LD-ld} -64" ;;
  4088. esac
  4089. ;;
  4090. esac
  4091. fi
  4092. rm -rf conftest*
  4093. ;;
  4094. esac
  4095. need_locks="$enable_libtool_lock"
  4096. ac_ext=c
  4097. ac_cpp='$CPP $CPPFLAGS'
  4098. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4099. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4100. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4101. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4102. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  4103. # On Suns, sometimes $CPP names a directory.
  4104. if test -n "$CPP" && test -d "$CPP"; then
  4105. CPP=
  4106. fi
  4107. if test -z "$CPP"; then
  4108. if test "${ac_cv_prog_CPP+set}" = set; then
  4109. echo $ECHO_N "(cached) $ECHO_C" >&6
  4110. else
  4111. # Double quotes because CPP needs to be expanded
  4112. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4113. do
  4114. ac_preproc_ok=false
  4115. for ac_c_preproc_warn_flag in '' yes
  4116. do
  4117. # Use a header file that comes with gcc, so configuring glibc
  4118. # with a fresh cross-compiler works.
  4119. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4120. # <limits.h> exists even on freestanding compilers.
  4121. # On the NeXT, cc -E runs the code through the compiler's parser,
  4122. # not just through cpp. "Syntax error" is here to catch this case.
  4123. cat >conftest.$ac_ext <<_ACEOF
  4124. /* confdefs.h. */
  4125. _ACEOF
  4126. cat confdefs.h >>conftest.$ac_ext
  4127. cat >>conftest.$ac_ext <<_ACEOF
  4128. /* end confdefs.h. */
  4129. #ifdef __STDC__
  4130. # include <limits.h>
  4131. #else
  4132. # include <assert.h>
  4133. #endif
  4134. Syntax error
  4135. _ACEOF
  4136. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4137. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4138. ac_status=$?
  4139. grep -v '^ *+' conftest.er1 >conftest.err
  4140. rm -f conftest.er1
  4141. cat conftest.err >&5
  4142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4143. (exit $ac_status); } >/dev/null; then
  4144. if test -s conftest.err; then
  4145. ac_cpp_err=$ac_c_preproc_warn_flag
  4146. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4147. else
  4148. ac_cpp_err=
  4149. fi
  4150. else
  4151. ac_cpp_err=yes
  4152. fi
  4153. if test -z "$ac_cpp_err"; then
  4154. :
  4155. else
  4156. echo "$as_me: failed program was:" >&5
  4157. sed 's/^/| /' conftest.$ac_ext >&5
  4158. # Broken: fails on valid input.
  4159. continue
  4160. fi
  4161. rm -f conftest.err conftest.$ac_ext
  4162. # OK, works on sane cases. Now check whether non-existent headers
  4163. # can be detected and how.
  4164. cat >conftest.$ac_ext <<_ACEOF
  4165. /* confdefs.h. */
  4166. _ACEOF
  4167. cat confdefs.h >>conftest.$ac_ext
  4168. cat >>conftest.$ac_ext <<_ACEOF
  4169. /* end confdefs.h. */
  4170. #include <ac_nonexistent.h>
  4171. _ACEOF
  4172. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4173. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4174. ac_status=$?
  4175. grep -v '^ *+' conftest.er1 >conftest.err
  4176. rm -f conftest.er1
  4177. cat conftest.err >&5
  4178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4179. (exit $ac_status); } >/dev/null; then
  4180. if test -s conftest.err; then
  4181. ac_cpp_err=$ac_c_preproc_warn_flag
  4182. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4183. else
  4184. ac_cpp_err=
  4185. fi
  4186. else
  4187. ac_cpp_err=yes
  4188. fi
  4189. if test -z "$ac_cpp_err"; then
  4190. # Broken: success on invalid input.
  4191. continue
  4192. else
  4193. echo "$as_me: failed program was:" >&5
  4194. sed 's/^/| /' conftest.$ac_ext >&5
  4195. # Passes both tests.
  4196. ac_preproc_ok=:
  4197. break
  4198. fi
  4199. rm -f conftest.err conftest.$ac_ext
  4200. done
  4201. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4202. rm -f conftest.err conftest.$ac_ext
  4203. if $ac_preproc_ok; then
  4204. break
  4205. fi
  4206. done
  4207. ac_cv_prog_CPP=$CPP
  4208. fi
  4209. CPP=$ac_cv_prog_CPP
  4210. else
  4211. ac_cv_prog_CPP=$CPP
  4212. fi
  4213. echo "$as_me:$LINENO: result: $CPP" >&5
  4214. echo "${ECHO_T}$CPP" >&6
  4215. ac_preproc_ok=false
  4216. for ac_c_preproc_warn_flag in '' yes
  4217. do
  4218. # Use a header file that comes with gcc, so configuring glibc
  4219. # with a fresh cross-compiler works.
  4220. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4221. # <limits.h> exists even on freestanding compilers.
  4222. # On the NeXT, cc -E runs the code through the compiler's parser,
  4223. # not just through cpp. "Syntax error" is here to catch this case.
  4224. cat >conftest.$ac_ext <<_ACEOF
  4225. /* confdefs.h. */
  4226. _ACEOF
  4227. cat confdefs.h >>conftest.$ac_ext
  4228. cat >>conftest.$ac_ext <<_ACEOF
  4229. /* end confdefs.h. */
  4230. #ifdef __STDC__
  4231. # include <limits.h>
  4232. #else
  4233. # include <assert.h>
  4234. #endif
  4235. Syntax error
  4236. _ACEOF
  4237. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4238. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4239. ac_status=$?
  4240. grep -v '^ *+' conftest.er1 >conftest.err
  4241. rm -f conftest.er1
  4242. cat conftest.err >&5
  4243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4244. (exit $ac_status); } >/dev/null; then
  4245. if test -s conftest.err; then
  4246. ac_cpp_err=$ac_c_preproc_warn_flag
  4247. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4248. else
  4249. ac_cpp_err=
  4250. fi
  4251. else
  4252. ac_cpp_err=yes
  4253. fi
  4254. if test -z "$ac_cpp_err"; then
  4255. :
  4256. else
  4257. echo "$as_me: failed program was:" >&5
  4258. sed 's/^/| /' conftest.$ac_ext >&5
  4259. # Broken: fails on valid input.
  4260. continue
  4261. fi
  4262. rm -f conftest.err conftest.$ac_ext
  4263. # OK, works on sane cases. Now check whether non-existent headers
  4264. # can be detected and how.
  4265. cat >conftest.$ac_ext <<_ACEOF
  4266. /* confdefs.h. */
  4267. _ACEOF
  4268. cat confdefs.h >>conftest.$ac_ext
  4269. cat >>conftest.$ac_ext <<_ACEOF
  4270. /* end confdefs.h. */
  4271. #include <ac_nonexistent.h>
  4272. _ACEOF
  4273. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4274. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4275. ac_status=$?
  4276. grep -v '^ *+' conftest.er1 >conftest.err
  4277. rm -f conftest.er1
  4278. cat conftest.err >&5
  4279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4280. (exit $ac_status); } >/dev/null; then
  4281. if test -s conftest.err; then
  4282. ac_cpp_err=$ac_c_preproc_warn_flag
  4283. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4284. else
  4285. ac_cpp_err=
  4286. fi
  4287. else
  4288. ac_cpp_err=yes
  4289. fi
  4290. if test -z "$ac_cpp_err"; then
  4291. # Broken: success on invalid input.
  4292. continue
  4293. else
  4294. echo "$as_me: failed program was:" >&5
  4295. sed 's/^/| /' conftest.$ac_ext >&5
  4296. # Passes both tests.
  4297. ac_preproc_ok=:
  4298. break
  4299. fi
  4300. rm -f conftest.err conftest.$ac_ext
  4301. done
  4302. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4303. rm -f conftest.err conftest.$ac_ext
  4304. if $ac_preproc_ok; then
  4305. :
  4306. else
  4307. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4308. See \`config.log' for more details." >&5
  4309. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4310. See \`config.log' for more details." >&2;}
  4311. { (exit 1); exit 1; }; }
  4312. fi
  4313. ac_ext=c
  4314. ac_cpp='$CPP $CPPFLAGS'
  4315. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4316. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4317. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4318. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4319. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4320. if test "${ac_cv_header_stdc+set}" = set; then
  4321. echo $ECHO_N "(cached) $ECHO_C" >&6
  4322. else
  4323. cat >conftest.$ac_ext <<_ACEOF
  4324. /* confdefs.h. */
  4325. _ACEOF
  4326. cat confdefs.h >>conftest.$ac_ext
  4327. cat >>conftest.$ac_ext <<_ACEOF
  4328. /* end confdefs.h. */
  4329. #include <stdlib.h>
  4330. #include <stdarg.h>
  4331. #include <string.h>
  4332. #include <float.h>
  4333. int
  4334. main ()
  4335. {
  4336. ;
  4337. return 0;
  4338. }
  4339. _ACEOF
  4340. rm -f conftest.$ac_objext
  4341. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4342. (eval $ac_compile) 2>conftest.er1
  4343. ac_status=$?
  4344. grep -v '^ *+' conftest.er1 >conftest.err
  4345. rm -f conftest.er1
  4346. cat conftest.err >&5
  4347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4348. (exit $ac_status); } &&
  4349. { ac_try='test -z "$ac_c_werror_flag"
  4350. || test ! -s conftest.err'
  4351. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4352. (eval $ac_try) 2>&5
  4353. ac_status=$?
  4354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4355. (exit $ac_status); }; } &&
  4356. { ac_try='test -s conftest.$ac_objext'
  4357. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4358. (eval $ac_try) 2>&5
  4359. ac_status=$?
  4360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4361. (exit $ac_status); }; }; then
  4362. ac_cv_header_stdc=yes
  4363. else
  4364. echo "$as_me: failed program was:" >&5
  4365. sed 's/^/| /' conftest.$ac_ext >&5
  4366. ac_cv_header_stdc=no
  4367. fi
  4368. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4369. if test $ac_cv_header_stdc = yes; then
  4370. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4371. cat >conftest.$ac_ext <<_ACEOF
  4372. /* confdefs.h. */
  4373. _ACEOF
  4374. cat confdefs.h >>conftest.$ac_ext
  4375. cat >>conftest.$ac_ext <<_ACEOF
  4376. /* end confdefs.h. */
  4377. #include <string.h>
  4378. _ACEOF
  4379. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4380. $EGREP "memchr" >/dev/null 2>&1; then
  4381. :
  4382. else
  4383. ac_cv_header_stdc=no
  4384. fi
  4385. rm -f conftest*
  4386. fi
  4387. if test $ac_cv_header_stdc = yes; then
  4388. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4389. cat >conftest.$ac_ext <<_ACEOF
  4390. /* confdefs.h. */
  4391. _ACEOF
  4392. cat confdefs.h >>conftest.$ac_ext
  4393. cat >>conftest.$ac_ext <<_ACEOF
  4394. /* end confdefs.h. */
  4395. #include <stdlib.h>
  4396. _ACEOF
  4397. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4398. $EGREP "free" >/dev/null 2>&1; then
  4399. :
  4400. else
  4401. ac_cv_header_stdc=no
  4402. fi
  4403. rm -f conftest*
  4404. fi
  4405. if test $ac_cv_header_stdc = yes; then
  4406. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4407. if test "$cross_compiling" = yes; then
  4408. :
  4409. else
  4410. cat >conftest.$ac_ext <<_ACEOF
  4411. /* confdefs.h. */
  4412. _ACEOF
  4413. cat confdefs.h >>conftest.$ac_ext
  4414. cat >>conftest.$ac_ext <<_ACEOF
  4415. /* end confdefs.h. */
  4416. #include <ctype.h>
  4417. #if ((' ' & 0x0FF) == 0x020)
  4418. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4419. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4420. #else
  4421. # define ISLOWER(c) \
  4422. (('a' <= (c) && (c) <= 'i') \
  4423. || ('j' <= (c) && (c) <= 'r') \
  4424. || ('s' <= (c) && (c) <= 'z'))
  4425. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4426. #endif
  4427. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4428. int
  4429. main ()
  4430. {
  4431. int i;
  4432. for (i = 0; i < 256; i++)
  4433. if (XOR (islower (i), ISLOWER (i))
  4434. || toupper (i) != TOUPPER (i))
  4435. exit(2);
  4436. exit (0);
  4437. }
  4438. _ACEOF
  4439. rm -f conftest$ac_exeext
  4440. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4441. (eval $ac_link) 2>&5
  4442. ac_status=$?
  4443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4444. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4445. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4446. (eval $ac_try) 2>&5
  4447. ac_status=$?
  4448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4449. (exit $ac_status); }; }; then
  4450. :
  4451. else
  4452. echo "$as_me: program exited with status $ac_status" >&5
  4453. echo "$as_me: failed program was:" >&5
  4454. sed 's/^/| /' conftest.$ac_ext >&5
  4455. ( exit $ac_status )
  4456. ac_cv_header_stdc=no
  4457. fi
  4458. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4459. fi
  4460. fi
  4461. fi
  4462. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4463. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4464. if test $ac_cv_header_stdc = yes; then
  4465. cat >>confdefs.h <<\_ACEOF
  4466. #define STDC_HEADERS 1
  4467. _ACEOF
  4468. fi
  4469. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4470. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4471. inttypes.h stdint.h unistd.h
  4472. do
  4473. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4474. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4475. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4476. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4477. echo $ECHO_N "(cached) $ECHO_C" >&6
  4478. else
  4479. cat >conftest.$ac_ext <<_ACEOF
  4480. /* confdefs.h. */
  4481. _ACEOF
  4482. cat confdefs.h >>conftest.$ac_ext
  4483. cat >>conftest.$ac_ext <<_ACEOF
  4484. /* end confdefs.h. */
  4485. $ac_includes_default
  4486. #include <$ac_header>
  4487. _ACEOF
  4488. rm -f conftest.$ac_objext
  4489. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4490. (eval $ac_compile) 2>conftest.er1
  4491. ac_status=$?
  4492. grep -v '^ *+' conftest.er1 >conftest.err
  4493. rm -f conftest.er1
  4494. cat conftest.err >&5
  4495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4496. (exit $ac_status); } &&
  4497. { ac_try='test -z "$ac_c_werror_flag"
  4498. || test ! -s conftest.err'
  4499. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4500. (eval $ac_try) 2>&5
  4501. ac_status=$?
  4502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4503. (exit $ac_status); }; } &&
  4504. { ac_try='test -s conftest.$ac_objext'
  4505. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4506. (eval $ac_try) 2>&5
  4507. ac_status=$?
  4508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4509. (exit $ac_status); }; }; then
  4510. eval "$as_ac_Header=yes"
  4511. else
  4512. echo "$as_me: failed program was:" >&5
  4513. sed 's/^/| /' conftest.$ac_ext >&5
  4514. eval "$as_ac_Header=no"
  4515. fi
  4516. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4517. fi
  4518. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4519. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4520. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4521. cat >>confdefs.h <<_ACEOF
  4522. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4523. _ACEOF
  4524. fi
  4525. done
  4526. for ac_header in dlfcn.h
  4527. do
  4528. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4529. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4530. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4531. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4532. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4533. echo $ECHO_N "(cached) $ECHO_C" >&6
  4534. fi
  4535. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4536. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4537. else
  4538. # Is the header compilable?
  4539. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4540. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4541. cat >conftest.$ac_ext <<_ACEOF
  4542. /* confdefs.h. */
  4543. _ACEOF
  4544. cat confdefs.h >>conftest.$ac_ext
  4545. cat >>conftest.$ac_ext <<_ACEOF
  4546. /* end confdefs.h. */
  4547. $ac_includes_default
  4548. #include <$ac_header>
  4549. _ACEOF
  4550. rm -f conftest.$ac_objext
  4551. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4552. (eval $ac_compile) 2>conftest.er1
  4553. ac_status=$?
  4554. grep -v '^ *+' conftest.er1 >conftest.err
  4555. rm -f conftest.er1
  4556. cat conftest.err >&5
  4557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4558. (exit $ac_status); } &&
  4559. { ac_try='test -z "$ac_c_werror_flag"
  4560. || test ! -s conftest.err'
  4561. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4562. (eval $ac_try) 2>&5
  4563. ac_status=$?
  4564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4565. (exit $ac_status); }; } &&
  4566. { ac_try='test -s conftest.$ac_objext'
  4567. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4568. (eval $ac_try) 2>&5
  4569. ac_status=$?
  4570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4571. (exit $ac_status); }; }; then
  4572. ac_header_compiler=yes
  4573. else
  4574. echo "$as_me: failed program was:" >&5
  4575. sed 's/^/| /' conftest.$ac_ext >&5
  4576. ac_header_compiler=no
  4577. fi
  4578. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4579. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4580. echo "${ECHO_T}$ac_header_compiler" >&6
  4581. # Is the header present?
  4582. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4583. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4584. cat >conftest.$ac_ext <<_ACEOF
  4585. /* confdefs.h. */
  4586. _ACEOF
  4587. cat confdefs.h >>conftest.$ac_ext
  4588. cat >>conftest.$ac_ext <<_ACEOF
  4589. /* end confdefs.h. */
  4590. #include <$ac_header>
  4591. _ACEOF
  4592. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4593. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4594. ac_status=$?
  4595. grep -v '^ *+' conftest.er1 >conftest.err
  4596. rm -f conftest.er1
  4597. cat conftest.err >&5
  4598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4599. (exit $ac_status); } >/dev/null; then
  4600. if test -s conftest.err; then
  4601. ac_cpp_err=$ac_c_preproc_warn_flag
  4602. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4603. else
  4604. ac_cpp_err=
  4605. fi
  4606. else
  4607. ac_cpp_err=yes
  4608. fi
  4609. if test -z "$ac_cpp_err"; then
  4610. ac_header_preproc=yes
  4611. else
  4612. echo "$as_me: failed program was:" >&5
  4613. sed 's/^/| /' conftest.$ac_ext >&5
  4614. ac_header_preproc=no
  4615. fi
  4616. rm -f conftest.err conftest.$ac_ext
  4617. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4618. echo "${ECHO_T}$ac_header_preproc" >&6
  4619. # So? What about this header?
  4620. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4621. yes:no: )
  4622. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4623. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4624. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4625. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4626. ac_header_preproc=yes
  4627. ;;
  4628. no:yes:* )
  4629. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4630. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4631. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4632. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4633. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4634. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4635. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4636. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4637. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4638. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4639. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4640. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4641. (
  4642. cat <<\_ASBOX
  4643. ## ------------------------------------------ ##
  4644. ## Report this to http://bugzilla.redhat.com/ ##
  4645. ## ------------------------------------------ ##
  4646. _ASBOX
  4647. ) |
  4648. sed "s/^/$as_me: WARNING: /" >&2
  4649. ;;
  4650. esac
  4651. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4652. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4653. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4654. echo $ECHO_N "(cached) $ECHO_C" >&6
  4655. else
  4656. eval "$as_ac_Header=\$ac_header_preproc"
  4657. fi
  4658. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4659. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4660. fi
  4661. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4662. cat >>confdefs.h <<_ACEOF
  4663. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4664. _ACEOF
  4665. fi
  4666. done
  4667. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4668. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4669. (test "X$CXX" != "Xg++"))) ; then
  4670. ac_ext=cc
  4671. ac_cpp='$CXXCPP $CPPFLAGS'
  4672. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4673. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4674. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4675. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4676. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  4677. if test -z "$CXXCPP"; then
  4678. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4679. echo $ECHO_N "(cached) $ECHO_C" >&6
  4680. else
  4681. # Double quotes because CXXCPP needs to be expanded
  4682. for CXXCPP in "$CXX -E" "/lib/cpp"
  4683. do
  4684. ac_preproc_ok=false
  4685. for ac_cxx_preproc_warn_flag in '' yes
  4686. do
  4687. # Use a header file that comes with gcc, so configuring glibc
  4688. # with a fresh cross-compiler works.
  4689. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4690. # <limits.h> exists even on freestanding compilers.
  4691. # On the NeXT, cc -E runs the code through the compiler's parser,
  4692. # not just through cpp. "Syntax error" is here to catch this case.
  4693. cat >conftest.$ac_ext <<_ACEOF
  4694. /* confdefs.h. */
  4695. _ACEOF
  4696. cat confdefs.h >>conftest.$ac_ext
  4697. cat >>conftest.$ac_ext <<_ACEOF
  4698. /* end confdefs.h. */
  4699. #ifdef __STDC__
  4700. # include <limits.h>
  4701. #else
  4702. # include <assert.h>
  4703. #endif
  4704. Syntax error
  4705. _ACEOF
  4706. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4707. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4708. ac_status=$?
  4709. grep -v '^ *+' conftest.er1 >conftest.err
  4710. rm -f conftest.er1
  4711. cat conftest.err >&5
  4712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4713. (exit $ac_status); } >/dev/null; then
  4714. if test -s conftest.err; then
  4715. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4716. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4717. else
  4718. ac_cpp_err=
  4719. fi
  4720. else
  4721. ac_cpp_err=yes
  4722. fi
  4723. if test -z "$ac_cpp_err"; then
  4724. :
  4725. else
  4726. echo "$as_me: failed program was:" >&5
  4727. sed 's/^/| /' conftest.$ac_ext >&5
  4728. # Broken: fails on valid input.
  4729. continue
  4730. fi
  4731. rm -f conftest.err conftest.$ac_ext
  4732. # OK, works on sane cases. Now check whether non-existent headers
  4733. # can be detected and how.
  4734. cat >conftest.$ac_ext <<_ACEOF
  4735. /* confdefs.h. */
  4736. _ACEOF
  4737. cat confdefs.h >>conftest.$ac_ext
  4738. cat >>conftest.$ac_ext <<_ACEOF
  4739. /* end confdefs.h. */
  4740. #include <ac_nonexistent.h>
  4741. _ACEOF
  4742. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4743. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4744. ac_status=$?
  4745. grep -v '^ *+' conftest.er1 >conftest.err
  4746. rm -f conftest.er1
  4747. cat conftest.err >&5
  4748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4749. (exit $ac_status); } >/dev/null; then
  4750. if test -s conftest.err; then
  4751. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4752. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4753. else
  4754. ac_cpp_err=
  4755. fi
  4756. else
  4757. ac_cpp_err=yes
  4758. fi
  4759. if test -z "$ac_cpp_err"; then
  4760. # Broken: success on invalid input.
  4761. continue
  4762. else
  4763. echo "$as_me: failed program was:" >&5
  4764. sed 's/^/| /' conftest.$ac_ext >&5
  4765. # Passes both tests.
  4766. ac_preproc_ok=:
  4767. break
  4768. fi
  4769. rm -f conftest.err conftest.$ac_ext
  4770. done
  4771. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4772. rm -f conftest.err conftest.$ac_ext
  4773. if $ac_preproc_ok; then
  4774. break
  4775. fi
  4776. done
  4777. ac_cv_prog_CXXCPP=$CXXCPP
  4778. fi
  4779. CXXCPP=$ac_cv_prog_CXXCPP
  4780. else
  4781. ac_cv_prog_CXXCPP=$CXXCPP
  4782. fi
  4783. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4784. echo "${ECHO_T}$CXXCPP" >&6
  4785. ac_preproc_ok=false
  4786. for ac_cxx_preproc_warn_flag in '' yes
  4787. do
  4788. # Use a header file that comes with gcc, so configuring glibc
  4789. # with a fresh cross-compiler works.
  4790. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4791. # <limits.h> exists even on freestanding compilers.
  4792. # On the NeXT, cc -E runs the code through the compiler's parser,
  4793. # not just through cpp. "Syntax error" is here to catch this case.
  4794. cat >conftest.$ac_ext <<_ACEOF
  4795. /* confdefs.h. */
  4796. _ACEOF
  4797. cat confdefs.h >>conftest.$ac_ext
  4798. cat >>conftest.$ac_ext <<_ACEOF
  4799. /* end confdefs.h. */
  4800. #ifdef __STDC__
  4801. # include <limits.h>
  4802. #else
  4803. # include <assert.h>
  4804. #endif
  4805. Syntax error
  4806. _ACEOF
  4807. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4808. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4809. ac_status=$?
  4810. grep -v '^ *+' conftest.er1 >conftest.err
  4811. rm -f conftest.er1
  4812. cat conftest.err >&5
  4813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4814. (exit $ac_status); } >/dev/null; then
  4815. if test -s conftest.err; then
  4816. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4817. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4818. else
  4819. ac_cpp_err=
  4820. fi
  4821. else
  4822. ac_cpp_err=yes
  4823. fi
  4824. if test -z "$ac_cpp_err"; then
  4825. :
  4826. else
  4827. echo "$as_me: failed program was:" >&5
  4828. sed 's/^/| /' conftest.$ac_ext >&5
  4829. # Broken: fails on valid input.
  4830. continue
  4831. fi
  4832. rm -f conftest.err conftest.$ac_ext
  4833. # OK, works on sane cases. Now check whether non-existent headers
  4834. # can be detected and how.
  4835. cat >conftest.$ac_ext <<_ACEOF
  4836. /* confdefs.h. */
  4837. _ACEOF
  4838. cat confdefs.h >>conftest.$ac_ext
  4839. cat >>conftest.$ac_ext <<_ACEOF
  4840. /* end confdefs.h. */
  4841. #include <ac_nonexistent.h>
  4842. _ACEOF
  4843. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4844. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4845. ac_status=$?
  4846. grep -v '^ *+' conftest.er1 >conftest.err
  4847. rm -f conftest.er1
  4848. cat conftest.err >&5
  4849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4850. (exit $ac_status); } >/dev/null; then
  4851. if test -s conftest.err; then
  4852. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4853. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4854. else
  4855. ac_cpp_err=
  4856. fi
  4857. else
  4858. ac_cpp_err=yes
  4859. fi
  4860. if test -z "$ac_cpp_err"; then
  4861. # Broken: success on invalid input.
  4862. continue
  4863. else
  4864. echo "$as_me: failed program was:" >&5
  4865. sed 's/^/| /' conftest.$ac_ext >&5
  4866. # Passes both tests.
  4867. ac_preproc_ok=:
  4868. break
  4869. fi
  4870. rm -f conftest.err conftest.$ac_ext
  4871. done
  4872. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4873. rm -f conftest.err conftest.$ac_ext
  4874. if $ac_preproc_ok; then
  4875. :
  4876. else
  4877. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4878. See \`config.log' for more details." >&5
  4879. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4880. See \`config.log' for more details." >&2;}
  4881. { (exit 1); exit 1; }; }
  4882. fi
  4883. ac_ext=cc
  4884. ac_cpp='$CXXCPP $CPPFLAGS'
  4885. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4886. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4887. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4888. fi
  4889. ac_ext=f
  4890. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  4891. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4892. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  4893. if test -n "$ac_tool_prefix"; then
  4894. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4895. do
  4896. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4897. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4898. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4899. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4900. if test "${ac_cv_prog_F77+set}" = set; then
  4901. echo $ECHO_N "(cached) $ECHO_C" >&6
  4902. else
  4903. if test -n "$F77"; then
  4904. ac_cv_prog_F77="$F77" # Let the user override the test.
  4905. else
  4906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4907. for as_dir in $PATH
  4908. do
  4909. IFS=$as_save_IFS
  4910. test -z "$as_dir" && as_dir=.
  4911. for ac_exec_ext in '' $ac_executable_extensions; do
  4912. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4913. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  4914. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4915. break 2
  4916. fi
  4917. done
  4918. done
  4919. fi
  4920. fi
  4921. F77=$ac_cv_prog_F77
  4922. if test -n "$F77"; then
  4923. echo "$as_me:$LINENO: result: $F77" >&5
  4924. echo "${ECHO_T}$F77" >&6
  4925. else
  4926. echo "$as_me:$LINENO: result: no" >&5
  4927. echo "${ECHO_T}no" >&6
  4928. fi
  4929. test -n "$F77" && break
  4930. done
  4931. fi
  4932. if test -z "$F77"; then
  4933. ac_ct_F77=$F77
  4934. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4935. do
  4936. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4937. set dummy $ac_prog; ac_word=$2
  4938. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4939. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4940. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  4941. echo $ECHO_N "(cached) $ECHO_C" >&6
  4942. else
  4943. if test -n "$ac_ct_F77"; then
  4944. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  4945. else
  4946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4947. for as_dir in $PATH
  4948. do
  4949. IFS=$as_save_IFS
  4950. test -z "$as_dir" && as_dir=.
  4951. for ac_exec_ext in '' $ac_executable_extensions; do
  4952. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4953. ac_cv_prog_ac_ct_F77="$ac_prog"
  4954. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4955. break 2
  4956. fi
  4957. done
  4958. done
  4959. fi
  4960. fi
  4961. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  4962. if test -n "$ac_ct_F77"; then
  4963. echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  4964. echo "${ECHO_T}$ac_ct_F77" >&6
  4965. else
  4966. echo "$as_me:$LINENO: result: no" >&5
  4967. echo "${ECHO_T}no" >&6
  4968. fi
  4969. test -n "$ac_ct_F77" && break
  4970. done
  4971. F77=$ac_ct_F77
  4972. fi
  4973. # Provide some information about the compiler.
  4974. echo "$as_me:5490:" \
  4975. "checking for Fortran 77 compiler version" >&5
  4976. ac_compiler=`set X $ac_compile; echo $2`
  4977. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  4978. (eval $ac_compiler --version </dev/null >&5) 2>&5
  4979. ac_status=$?
  4980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4981. (exit $ac_status); }
  4982. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  4983. (eval $ac_compiler -v </dev/null >&5) 2>&5
  4984. ac_status=$?
  4985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4986. (exit $ac_status); }
  4987. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  4988. (eval $ac_compiler -V </dev/null >&5) 2>&5
  4989. ac_status=$?
  4990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4991. (exit $ac_status); }
  4992. rm -f a.out
  4993. # If we don't use `.F' as extension, the preprocessor is not run on the
  4994. # input file. (Note that this only needs to work for GNU compilers.)
  4995. ac_save_ext=$ac_ext
  4996. ac_ext=F
  4997. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  4998. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  4999. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5000. echo $ECHO_N "(cached) $ECHO_C" >&6
  5001. else
  5002. cat >conftest.$ac_ext <<_ACEOF
  5003. program main
  5004. #ifndef __GNUC__
  5005. choke me
  5006. #endif
  5007. end
  5008. _ACEOF
  5009. rm -f conftest.$ac_objext
  5010. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5011. (eval $ac_compile) 2>conftest.er1
  5012. ac_status=$?
  5013. grep -v '^ *+' conftest.er1 >conftest.err
  5014. rm -f conftest.er1
  5015. cat conftest.err >&5
  5016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5017. (exit $ac_status); } &&
  5018. { ac_try='test -z "$ac_f77_werror_flag"
  5019. || test ! -s conftest.err'
  5020. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5021. (eval $ac_try) 2>&5
  5022. ac_status=$?
  5023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5024. (exit $ac_status); }; } &&
  5025. { ac_try='test -s conftest.$ac_objext'
  5026. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5027. (eval $ac_try) 2>&5
  5028. ac_status=$?
  5029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5030. (exit $ac_status); }; }; then
  5031. ac_compiler_gnu=yes
  5032. else
  5033. echo "$as_me: failed program was:" >&5
  5034. sed 's/^/| /' conftest.$ac_ext >&5
  5035. ac_compiler_gnu=no
  5036. fi
  5037. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5038. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5039. fi
  5040. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5041. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  5042. ac_ext=$ac_save_ext
  5043. ac_test_FFLAGS=${FFLAGS+set}
  5044. ac_save_FFLAGS=$FFLAGS
  5045. FFLAGS=
  5046. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5047. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  5048. if test "${ac_cv_prog_f77_g+set}" = set; then
  5049. echo $ECHO_N "(cached) $ECHO_C" >&6
  5050. else
  5051. FFLAGS=-g
  5052. cat >conftest.$ac_ext <<_ACEOF
  5053. program main
  5054. end
  5055. _ACEOF
  5056. rm -f conftest.$ac_objext
  5057. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5058. (eval $ac_compile) 2>conftest.er1
  5059. ac_status=$?
  5060. grep -v '^ *+' conftest.er1 >conftest.err
  5061. rm -f conftest.er1
  5062. cat conftest.err >&5
  5063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5064. (exit $ac_status); } &&
  5065. { ac_try='test -z "$ac_f77_werror_flag"
  5066. || test ! -s conftest.err'
  5067. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5068. (eval $ac_try) 2>&5
  5069. ac_status=$?
  5070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5071. (exit $ac_status); }; } &&
  5072. { ac_try='test -s conftest.$ac_objext'
  5073. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5074. (eval $ac_try) 2>&5
  5075. ac_status=$?
  5076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5077. (exit $ac_status); }; }; then
  5078. ac_cv_prog_f77_g=yes
  5079. else
  5080. echo "$as_me: failed program was:" >&5
  5081. sed 's/^/| /' conftest.$ac_ext >&5
  5082. ac_cv_prog_f77_g=no
  5083. fi
  5084. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5085. fi
  5086. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5087. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  5088. if test "$ac_test_FFLAGS" = set; then
  5089. FFLAGS=$ac_save_FFLAGS
  5090. elif test $ac_cv_prog_f77_g = yes; then
  5091. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5092. FFLAGS="-g -O2"
  5093. else
  5094. FFLAGS="-g"
  5095. fi
  5096. else
  5097. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5098. FFLAGS="-O2"
  5099. else
  5100. FFLAGS=
  5101. fi
  5102. fi
  5103. G77=`test $ac_compiler_gnu = yes && echo yes`
  5104. ac_ext=c
  5105. ac_cpp='$CPP $CPPFLAGS'
  5106. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5107. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5108. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5109. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5110. # find the maximum length of command line arguments
  5111. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5112. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  5113. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5114. echo $ECHO_N "(cached) $ECHO_C" >&6
  5115. else
  5116. i=0
  5117. teststring="ABCD"
  5118. case $build_os in
  5119. msdosdjgpp*)
  5120. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5121. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5122. # during glob expansion). Even if it were fixed, the result of this
  5123. # check would be larger than it should be.
  5124. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5125. ;;
  5126. gnu*)
  5127. # Under GNU Hurd, this test is not required because there is
  5128. # no limit to the length of command line arguments.
  5129. # Libtool will interpret -1 as no limit whatsoever
  5130. lt_cv_sys_max_cmd_len=-1;
  5131. ;;
  5132. cygwin* | mingw*)
  5133. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5134. # about 5 minutes as the teststring grows exponentially.
  5135. # Worse, since 9x/ME are not pre-emptively multitasking,
  5136. # you end up with a "frozen" computer, even though with patience
  5137. # the test eventually succeeds (with a max line length of 256k).
  5138. # Instead, let's just punt: use the minimum linelength reported by
  5139. # all of the supported platforms: 8192 (on NT/2K/XP).
  5140. lt_cv_sys_max_cmd_len=8192;
  5141. ;;
  5142. amigaos*)
  5143. # On AmigaOS with pdksh, this test takes hours, literally.
  5144. # So we just punt and use a minimum line length of 8192.
  5145. lt_cv_sys_max_cmd_len=8192;
  5146. ;;
  5147. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5148. # This has been around since 386BSD, at least. Likely further.
  5149. if test -x /sbin/sysctl; then
  5150. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5151. elif test -x /usr/sbin/sysctl; then
  5152. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5153. else
  5154. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5155. fi
  5156. # And add a safety zone
  5157. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5158. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5159. ;;
  5160. interix*)
  5161. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5162. lt_cv_sys_max_cmd_len=196608
  5163. ;;
  5164. osf*)
  5165. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5166. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5167. # nice to cause kernel panics so lets avoid the loop below.
  5168. # First set a reasonable default.
  5169. lt_cv_sys_max_cmd_len=16384
  5170. #
  5171. if test -x /sbin/sysconfig; then
  5172. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5173. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5174. esac
  5175. fi
  5176. ;;
  5177. sco3.2v5*)
  5178. lt_cv_sys_max_cmd_len=102400
  5179. ;;
  5180. sysv5* | sco5v6* | sysv4.2uw2*)
  5181. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5182. if test -n "$kargmax"; then
  5183. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5184. else
  5185. lt_cv_sys_max_cmd_len=32768
  5186. fi
  5187. ;;
  5188. *)
  5189. # If test is not a shell built-in, we'll probably end up computing a
  5190. # maximum length that is only half of the actual maximum length, but
  5191. # we can't tell.
  5192. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5193. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5194. = "XX$teststring") >/dev/null 2>&1 &&
  5195. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5196. lt_cv_sys_max_cmd_len=$new_result &&
  5197. test $i != 17 # 1/2 MB should be enough
  5198. do
  5199. i=`expr $i + 1`
  5200. teststring=$teststring$teststring
  5201. done
  5202. teststring=
  5203. # Add a significant safety factor because C++ compilers can tack on massive
  5204. # amounts of additional arguments before passing them to the linker.
  5205. # It appears as though 1/2 is a usable value.
  5206. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5207. ;;
  5208. esac
  5209. fi
  5210. if test -n $lt_cv_sys_max_cmd_len ; then
  5211. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5212. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  5213. else
  5214. echo "$as_me:$LINENO: result: none" >&5
  5215. echo "${ECHO_T}none" >&6
  5216. fi
  5217. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5218. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5219. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  5220. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5221. echo $ECHO_N "(cached) $ECHO_C" >&6
  5222. else
  5223. # These are sane defaults that work on at least a few old systems.
  5224. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5225. # Character class describing NM global symbol codes.
  5226. symcode='[BCDEGRST]'
  5227. # Regexp to match symbols that can be accessed directly from C.
  5228. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5229. # Transform an extracted symbol line into a proper C declaration
  5230. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5231. # Transform an extracted symbol line into symbol name and symbol address
  5232. 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'"
  5233. # Define system-specific variables.
  5234. case $host_os in
  5235. aix*)
  5236. symcode='[BCDT]'
  5237. ;;
  5238. cygwin* | mingw* | pw32*)
  5239. symcode='[ABCDGISTW]'
  5240. ;;
  5241. hpux*) # Its linker distinguishes data from code symbols
  5242. if test "$host_cpu" = ia64; then
  5243. symcode='[ABCDEGRST]'
  5244. fi
  5245. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5246. 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'"
  5247. ;;
  5248. linux*)
  5249. if test "$host_cpu" = ia64; then
  5250. symcode='[ABCDGIRSTW]'
  5251. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5252. 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'"
  5253. fi
  5254. ;;
  5255. irix* | nonstopux*)
  5256. symcode='[BCDEGRST]'
  5257. ;;
  5258. osf*)
  5259. symcode='[BCDEGQRST]'
  5260. ;;
  5261. solaris*)
  5262. symcode='[BDRT]'
  5263. ;;
  5264. sco3.2v5*)
  5265. symcode='[DT]'
  5266. ;;
  5267. sysv4.2uw2*)
  5268. symcode='[DT]'
  5269. ;;
  5270. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5271. symcode='[ABDT]'
  5272. ;;
  5273. sysv4)
  5274. symcode='[DFNSTU]'
  5275. ;;
  5276. esac
  5277. # Handle CRLF in mingw tool chain
  5278. opt_cr=
  5279. case $build_os in
  5280. mingw*)
  5281. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5282. ;;
  5283. esac
  5284. # If we're using GNU nm, then use its standard symbol codes.
  5285. case `$NM -V 2>&1` in
  5286. *GNU* | *'with BFD'*)
  5287. symcode='[ABCDGIRSTW]' ;;
  5288. esac
  5289. # Try without a prefix undercore, then with it.
  5290. for ac_symprfx in "" "_"; do
  5291. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5292. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5293. # Write the raw and C identifiers.
  5294. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5295. # Check to see that the pipe works correctly.
  5296. pipe_works=no
  5297. rm -f conftest*
  5298. cat > conftest.$ac_ext <<EOF
  5299. #ifdef __cplusplus
  5300. extern "C" {
  5301. #endif
  5302. char nm_test_var;
  5303. void nm_test_func(){}
  5304. #ifdef __cplusplus
  5305. }
  5306. #endif
  5307. int main(){nm_test_var='a';nm_test_func();return(0);}
  5308. EOF
  5309. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5310. (eval $ac_compile) 2>&5
  5311. ac_status=$?
  5312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5313. (exit $ac_status); }; then
  5314. # Now try to grab the symbols.
  5315. nlist=conftest.nm
  5316. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5317. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5318. ac_status=$?
  5319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5320. (exit $ac_status); } && test -s "$nlist"; then
  5321. # Try sorting and uniquifying the output.
  5322. if sort "$nlist" | uniq > "$nlist"T; then
  5323. mv -f "$nlist"T "$nlist"
  5324. else
  5325. rm -f "$nlist"T
  5326. fi
  5327. # Make sure that we snagged all the symbols we need.
  5328. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5329. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5330. cat <<EOF > conftest.$ac_ext
  5331. #ifdef __cplusplus
  5332. extern "C" {
  5333. #endif
  5334. EOF
  5335. # Now generate the symbol file.
  5336. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5337. cat <<EOF >> conftest.$ac_ext
  5338. #if defined (__STDC__) && __STDC__
  5339. # define lt_ptr_t void *
  5340. #else
  5341. # define lt_ptr_t char *
  5342. # define const
  5343. #endif
  5344. /* The mapping between symbol names and symbols. */
  5345. const struct {
  5346. const char *name;
  5347. lt_ptr_t address;
  5348. }
  5349. lt_preloaded_symbols[] =
  5350. {
  5351. EOF
  5352. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5353. cat <<\EOF >> conftest.$ac_ext
  5354. {0, (lt_ptr_t) 0}
  5355. };
  5356. #ifdef __cplusplus
  5357. }
  5358. #endif
  5359. EOF
  5360. # Now try linking the two files.
  5361. mv conftest.$ac_objext conftstm.$ac_objext
  5362. lt_save_LIBS="$LIBS"
  5363. lt_save_CFLAGS="$CFLAGS"
  5364. LIBS="conftstm.$ac_objext"
  5365. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5366. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5367. (eval $ac_link) 2>&5
  5368. ac_status=$?
  5369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5370. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5371. pipe_works=yes
  5372. fi
  5373. LIBS="$lt_save_LIBS"
  5374. CFLAGS="$lt_save_CFLAGS"
  5375. else
  5376. echo "cannot find nm_test_func in $nlist" >&5
  5377. fi
  5378. else
  5379. echo "cannot find nm_test_var in $nlist" >&5
  5380. fi
  5381. else
  5382. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5383. fi
  5384. else
  5385. echo "$progname: failed program was:" >&5
  5386. cat conftest.$ac_ext >&5
  5387. fi
  5388. rm -f conftest* conftst*
  5389. # Do not use the global_symbol_pipe unless it works.
  5390. if test "$pipe_works" = yes; then
  5391. break
  5392. else
  5393. lt_cv_sys_global_symbol_pipe=
  5394. fi
  5395. done
  5396. fi
  5397. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5398. lt_cv_sys_global_symbol_to_cdecl=
  5399. fi
  5400. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5401. echo "$as_me:$LINENO: result: failed" >&5
  5402. echo "${ECHO_T}failed" >&6
  5403. else
  5404. echo "$as_me:$LINENO: result: ok" >&5
  5405. echo "${ECHO_T}ok" >&6
  5406. fi
  5407. echo "$as_me:$LINENO: checking for objdir" >&5
  5408. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  5409. if test "${lt_cv_objdir+set}" = set; then
  5410. echo $ECHO_N "(cached) $ECHO_C" >&6
  5411. else
  5412. rm -f .libs 2>/dev/null
  5413. mkdir .libs 2>/dev/null
  5414. if test -d .libs; then
  5415. lt_cv_objdir=.libs
  5416. else
  5417. # MS-DOS does not allow filenames that begin with a dot.
  5418. lt_cv_objdir=_libs
  5419. fi
  5420. rmdir .libs 2>/dev/null
  5421. fi
  5422. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5423. echo "${ECHO_T}$lt_cv_objdir" >&6
  5424. objdir=$lt_cv_objdir
  5425. case $host_os in
  5426. aix3*)
  5427. # AIX sometimes has problems with the GCC collect2 program. For some
  5428. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5429. # vanish in a puff of smoke.
  5430. if test "X${COLLECT_NAMES+set}" != Xset; then
  5431. COLLECT_NAMES=
  5432. export COLLECT_NAMES
  5433. fi
  5434. ;;
  5435. esac
  5436. # Sed substitution that helps us do robust quoting. It backslashifies
  5437. # metacharacters that are still active within double-quoted strings.
  5438. Xsed='sed -e 1s/^X//'
  5439. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5440. # Same as above, but do not quote variable references.
  5441. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5442. # Sed substitution to delay expansion of an escaped shell variable in a
  5443. # double_quote_subst'ed string.
  5444. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5445. # Sed substitution to avoid accidental globbing in evaled expressions
  5446. no_glob_subst='s/\*/\\\*/g'
  5447. # Constants:
  5448. rm="rm -f"
  5449. # Global variables:
  5450. default_ofile=libtool
  5451. can_build_shared=yes
  5452. # All known linkers require a `.a' archive for static linking (except MSVC,
  5453. # which needs '.lib').
  5454. libext=a
  5455. ltmain="$ac_aux_dir/ltmain.sh"
  5456. ofile="$default_ofile"
  5457. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5458. if test -n "$ac_tool_prefix"; then
  5459. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5460. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5461. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5462. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5463. if test "${ac_cv_prog_AR+set}" = set; then
  5464. echo $ECHO_N "(cached) $ECHO_C" >&6
  5465. else
  5466. if test -n "$AR"; then
  5467. ac_cv_prog_AR="$AR" # Let the user override the test.
  5468. else
  5469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5470. for as_dir in $PATH
  5471. do
  5472. IFS=$as_save_IFS
  5473. test -z "$as_dir" && as_dir=.
  5474. for ac_exec_ext in '' $ac_executable_extensions; do
  5475. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5476. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5477. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5478. break 2
  5479. fi
  5480. done
  5481. done
  5482. fi
  5483. fi
  5484. AR=$ac_cv_prog_AR
  5485. if test -n "$AR"; then
  5486. echo "$as_me:$LINENO: result: $AR" >&5
  5487. echo "${ECHO_T}$AR" >&6
  5488. else
  5489. echo "$as_me:$LINENO: result: no" >&5
  5490. echo "${ECHO_T}no" >&6
  5491. fi
  5492. fi
  5493. if test -z "$ac_cv_prog_AR"; then
  5494. ac_ct_AR=$AR
  5495. # Extract the first word of "ar", so it can be a program name with args.
  5496. set dummy ar; ac_word=$2
  5497. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5498. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5499. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5500. echo $ECHO_N "(cached) $ECHO_C" >&6
  5501. else
  5502. if test -n "$ac_ct_AR"; then
  5503. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5504. else
  5505. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5506. for as_dir in $PATH
  5507. do
  5508. IFS=$as_save_IFS
  5509. test -z "$as_dir" && as_dir=.
  5510. for ac_exec_ext in '' $ac_executable_extensions; do
  5511. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5512. ac_cv_prog_ac_ct_AR="ar"
  5513. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5514. break 2
  5515. fi
  5516. done
  5517. done
  5518. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  5519. fi
  5520. fi
  5521. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5522. if test -n "$ac_ct_AR"; then
  5523. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5524. echo "${ECHO_T}$ac_ct_AR" >&6
  5525. else
  5526. echo "$as_me:$LINENO: result: no" >&5
  5527. echo "${ECHO_T}no" >&6
  5528. fi
  5529. AR=$ac_ct_AR
  5530. else
  5531. AR="$ac_cv_prog_AR"
  5532. fi
  5533. if test -n "$ac_tool_prefix"; then
  5534. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5535. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5536. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5537. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5538. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5539. echo $ECHO_N "(cached) $ECHO_C" >&6
  5540. else
  5541. if test -n "$RANLIB"; then
  5542. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5543. else
  5544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5545. for as_dir in $PATH
  5546. do
  5547. IFS=$as_save_IFS
  5548. test -z "$as_dir" && as_dir=.
  5549. for ac_exec_ext in '' $ac_executable_extensions; do
  5550. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5551. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5552. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5553. break 2
  5554. fi
  5555. done
  5556. done
  5557. fi
  5558. fi
  5559. RANLIB=$ac_cv_prog_RANLIB
  5560. if test -n "$RANLIB"; then
  5561. echo "$as_me:$LINENO: result: $RANLIB" >&5
  5562. echo "${ECHO_T}$RANLIB" >&6
  5563. else
  5564. echo "$as_me:$LINENO: result: no" >&5
  5565. echo "${ECHO_T}no" >&6
  5566. fi
  5567. fi
  5568. if test -z "$ac_cv_prog_RANLIB"; then
  5569. ac_ct_RANLIB=$RANLIB
  5570. # Extract the first word of "ranlib", so it can be a program name with args.
  5571. set dummy ranlib; ac_word=$2
  5572. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5573. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5574. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5575. echo $ECHO_N "(cached) $ECHO_C" >&6
  5576. else
  5577. if test -n "$ac_ct_RANLIB"; then
  5578. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5579. else
  5580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5581. for as_dir in $PATH
  5582. do
  5583. IFS=$as_save_IFS
  5584. test -z "$as_dir" && as_dir=.
  5585. for ac_exec_ext in '' $ac_executable_extensions; do
  5586. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5587. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5588. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5589. break 2
  5590. fi
  5591. done
  5592. done
  5593. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  5594. fi
  5595. fi
  5596. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5597. if test -n "$ac_ct_RANLIB"; then
  5598. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5599. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  5600. else
  5601. echo "$as_me:$LINENO: result: no" >&5
  5602. echo "${ECHO_T}no" >&6
  5603. fi
  5604. RANLIB=$ac_ct_RANLIB
  5605. else
  5606. RANLIB="$ac_cv_prog_RANLIB"
  5607. fi
  5608. if test -n "$ac_tool_prefix"; then
  5609. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5610. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5611. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5612. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5613. if test "${ac_cv_prog_STRIP+set}" = set; then
  5614. echo $ECHO_N "(cached) $ECHO_C" >&6
  5615. else
  5616. if test -n "$STRIP"; then
  5617. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5618. else
  5619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5620. for as_dir in $PATH
  5621. do
  5622. IFS=$as_save_IFS
  5623. test -z "$as_dir" && as_dir=.
  5624. for ac_exec_ext in '' $ac_executable_extensions; do
  5625. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5626. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5627. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5628. break 2
  5629. fi
  5630. done
  5631. done
  5632. fi
  5633. fi
  5634. STRIP=$ac_cv_prog_STRIP
  5635. if test -n "$STRIP"; then
  5636. echo "$as_me:$LINENO: result: $STRIP" >&5
  5637. echo "${ECHO_T}$STRIP" >&6
  5638. else
  5639. echo "$as_me:$LINENO: result: no" >&5
  5640. echo "${ECHO_T}no" >&6
  5641. fi
  5642. fi
  5643. if test -z "$ac_cv_prog_STRIP"; then
  5644. ac_ct_STRIP=$STRIP
  5645. # Extract the first word of "strip", so it can be a program name with args.
  5646. set dummy strip; ac_word=$2
  5647. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5648. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5649. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5650. echo $ECHO_N "(cached) $ECHO_C" >&6
  5651. else
  5652. if test -n "$ac_ct_STRIP"; then
  5653. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5654. else
  5655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5656. for as_dir in $PATH
  5657. do
  5658. IFS=$as_save_IFS
  5659. test -z "$as_dir" && as_dir=.
  5660. for ac_exec_ext in '' $ac_executable_extensions; do
  5661. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5662. ac_cv_prog_ac_ct_STRIP="strip"
  5663. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5664. break 2
  5665. fi
  5666. done
  5667. done
  5668. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  5669. fi
  5670. fi
  5671. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5672. if test -n "$ac_ct_STRIP"; then
  5673. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5674. echo "${ECHO_T}$ac_ct_STRIP" >&6
  5675. else
  5676. echo "$as_me:$LINENO: result: no" >&5
  5677. echo "${ECHO_T}no" >&6
  5678. fi
  5679. STRIP=$ac_ct_STRIP
  5680. else
  5681. STRIP="$ac_cv_prog_STRIP"
  5682. fi
  5683. old_CC="$CC"
  5684. old_CFLAGS="$CFLAGS"
  5685. # Set sane defaults for various variables
  5686. test -z "$AR" && AR=ar
  5687. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5688. test -z "$AS" && AS=as
  5689. test -z "$CC" && CC=cc
  5690. test -z "$LTCC" && LTCC=$CC
  5691. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  5692. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5693. test -z "$LD" && LD=ld
  5694. test -z "$LN_S" && LN_S="ln -s"
  5695. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5696. test -z "$NM" && NM=nm
  5697. test -z "$SED" && SED=sed
  5698. test -z "$OBJDUMP" && OBJDUMP=objdump
  5699. test -z "$RANLIB" && RANLIB=:
  5700. test -z "$STRIP" && STRIP=:
  5701. test -z "$ac_objext" && ac_objext=o
  5702. # Determine commands to create old-style static archives.
  5703. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  5704. old_postinstall_cmds='chmod 644 $oldlib'
  5705. old_postuninstall_cmds=
  5706. if test -n "$RANLIB"; then
  5707. case $host_os in
  5708. openbsd*)
  5709. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5710. ;;
  5711. *)
  5712. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5713. ;;
  5714. esac
  5715. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5716. fi
  5717. for cc_temp in $compiler""; do
  5718. case $cc_temp in
  5719. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5720. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5721. \-*) ;;
  5722. *) break;;
  5723. esac
  5724. done
  5725. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5726. # Only perform the check for file, if the check method requires it
  5727. case $deplibs_check_method in
  5728. file_magic*)
  5729. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  5730. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  5731. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  5732. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5733. echo $ECHO_N "(cached) $ECHO_C" >&6
  5734. else
  5735. case $MAGIC_CMD in
  5736. [\\/*] | ?:[\\/]*)
  5737. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5738. ;;
  5739. *)
  5740. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5741. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5742. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5743. for ac_dir in $ac_dummy; do
  5744. IFS="$lt_save_ifs"
  5745. test -z "$ac_dir" && ac_dir=.
  5746. if test -f $ac_dir/${ac_tool_prefix}file; then
  5747. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5748. if test -n "$file_magic_test_file"; then
  5749. case $deplibs_check_method in
  5750. "file_magic "*)
  5751. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5752. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5753. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5754. $EGREP "$file_magic_regex" > /dev/null; then
  5755. :
  5756. else
  5757. cat <<EOF 1>&2
  5758. *** Warning: the command libtool uses to detect shared libraries,
  5759. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5760. *** The result is that libtool may fail to recognize shared libraries
  5761. *** as such. This will affect the creation of libtool libraries that
  5762. *** depend on shared libraries, but programs linked with such libtool
  5763. *** libraries will work regardless of this problem. Nevertheless, you
  5764. *** may want to report the problem to your system manager and/or to
  5765. *** [email protected]
  5766. EOF
  5767. fi ;;
  5768. esac
  5769. fi
  5770. break
  5771. fi
  5772. done
  5773. IFS="$lt_save_ifs"
  5774. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5775. ;;
  5776. esac
  5777. fi
  5778. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5779. if test -n "$MAGIC_CMD"; then
  5780. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5781. echo "${ECHO_T}$MAGIC_CMD" >&6
  5782. else
  5783. echo "$as_me:$LINENO: result: no" >&5
  5784. echo "${ECHO_T}no" >&6
  5785. fi
  5786. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5787. if test -n "$ac_tool_prefix"; then
  5788. echo "$as_me:$LINENO: checking for file" >&5
  5789. echo $ECHO_N "checking for file... $ECHO_C" >&6
  5790. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5791. echo $ECHO_N "(cached) $ECHO_C" >&6
  5792. else
  5793. case $MAGIC_CMD in
  5794. [\\/*] | ?:[\\/]*)
  5795. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5796. ;;
  5797. *)
  5798. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5799. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5800. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5801. for ac_dir in $ac_dummy; do
  5802. IFS="$lt_save_ifs"
  5803. test -z "$ac_dir" && ac_dir=.
  5804. if test -f $ac_dir/file; then
  5805. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5806. if test -n "$file_magic_test_file"; then
  5807. case $deplibs_check_method in
  5808. "file_magic "*)
  5809. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5810. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5811. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5812. $EGREP "$file_magic_regex" > /dev/null; then
  5813. :
  5814. else
  5815. cat <<EOF 1>&2
  5816. *** Warning: the command libtool uses to detect shared libraries,
  5817. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5818. *** The result is that libtool may fail to recognize shared libraries
  5819. *** as such. This will affect the creation of libtool libraries that
  5820. *** depend on shared libraries, but programs linked with such libtool
  5821. *** libraries will work regardless of this problem. Nevertheless, you
  5822. *** may want to report the problem to your system manager and/or to
  5823. *** [email protected]
  5824. EOF
  5825. fi ;;
  5826. esac
  5827. fi
  5828. break
  5829. fi
  5830. done
  5831. IFS="$lt_save_ifs"
  5832. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5833. ;;
  5834. esac
  5835. fi
  5836. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5837. if test -n "$MAGIC_CMD"; then
  5838. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5839. echo "${ECHO_T}$MAGIC_CMD" >&6
  5840. else
  5841. echo "$as_me:$LINENO: result: no" >&5
  5842. echo "${ECHO_T}no" >&6
  5843. fi
  5844. else
  5845. MAGIC_CMD=:
  5846. fi
  5847. fi
  5848. fi
  5849. ;;
  5850. esac
  5851. enable_dlopen=no
  5852. enable_win32_dll=no
  5853. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  5854. if test "${enable_libtool_lock+set}" = set; then
  5855. enableval="$enable_libtool_lock"
  5856. fi;
  5857. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5858. # Check whether --with-pic or --without-pic was given.
  5859. if test "${with_pic+set}" = set; then
  5860. withval="$with_pic"
  5861. pic_mode="$withval"
  5862. else
  5863. pic_mode=default
  5864. fi;
  5865. test -z "$pic_mode" && pic_mode=default
  5866. # Use C for the default configuration in the libtool script
  5867. tagname=
  5868. lt_save_CC="$CC"
  5869. ac_ext=c
  5870. ac_cpp='$CPP $CPPFLAGS'
  5871. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5872. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5873. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5874. # Source file extension for C test sources.
  5875. ac_ext=c
  5876. # Object file extension for compiled C test sources.
  5877. objext=o
  5878. objext=$objext
  5879. # Code to be used in simple compile tests
  5880. lt_simple_compile_test_code="int some_variable = 0;\n"
  5881. # Code to be used in simple link tests
  5882. lt_simple_link_test_code='int main(){return(0);}\n'
  5883. # If no C compiler was specified, use CC.
  5884. LTCC=${LTCC-"$CC"}
  5885. # If no C compiler flags were specified, use CFLAGS.
  5886. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5887. # Allow CC to be a program name with arguments.
  5888. compiler=$CC
  5889. # save warnings/boilerplate of simple test code
  5890. ac_outfile=conftest.$ac_objext
  5891. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  5892. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5893. _lt_compiler_boilerplate=`cat conftest.err`
  5894. $rm conftest*
  5895. ac_outfile=conftest.$ac_objext
  5896. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  5897. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5898. _lt_linker_boilerplate=`cat conftest.err`
  5899. $rm conftest*
  5900. lt_prog_compiler_no_builtin_flag=
  5901. if test "$GCC" = yes; then
  5902. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5903. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5904. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  5905. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  5906. echo $ECHO_N "(cached) $ECHO_C" >&6
  5907. else
  5908. lt_cv_prog_compiler_rtti_exceptions=no
  5909. ac_outfile=conftest.$ac_objext
  5910. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5911. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5912. # Insert the option either (1) after the last *FLAGS variable, or
  5913. # (2) before a word containing "conftest.", or (3) at the end.
  5914. # Note that $ac_compile itself does not contain backslashes and begins
  5915. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5916. # The option is referenced via a variable to avoid confusing sed.
  5917. lt_compile=`echo "$ac_compile" | $SED \
  5918. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5919. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5920. -e 's:$: $lt_compiler_flag:'`
  5921. (eval echo "\"\$as_me:6553: $lt_compile\"" >&5)
  5922. (eval "$lt_compile" 2>conftest.err)
  5923. ac_status=$?
  5924. cat conftest.err >&5
  5925. echo "$as_me:6557: \$? = $ac_status" >&5
  5926. if (exit $ac_status) && test -s "$ac_outfile"; then
  5927. # The compiler can only warn and ignore the option if not recognized
  5928. # So say no if there are warnings other than the usual output.
  5929. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5930. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5931. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5932. lt_cv_prog_compiler_rtti_exceptions=yes
  5933. fi
  5934. fi
  5935. $rm conftest*
  5936. fi
  5937. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5938. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  5939. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5940. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5941. else
  5942. :
  5943. fi
  5944. fi
  5945. lt_prog_compiler_wl=
  5946. lt_prog_compiler_pic=
  5947. lt_prog_compiler_static=
  5948. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  5949. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  5950. if test "$GCC" = yes; then
  5951. lt_prog_compiler_wl='-Wl,'
  5952. lt_prog_compiler_static='-static'
  5953. case $host_os in
  5954. aix*)
  5955. # All AIX code is PIC.
  5956. if test "$host_cpu" = ia64; then
  5957. # AIX 5 now supports IA64 processor
  5958. lt_prog_compiler_static='-Bstatic'
  5959. fi
  5960. ;;
  5961. amigaos*)
  5962. # FIXME: we need at least 68020 code to build shared libraries, but
  5963. # adding the `-m68020' flag to GCC prevents building anything better,
  5964. # like `-m68040'.
  5965. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5966. ;;
  5967. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5968. # PIC is the default for these OSes.
  5969. ;;
  5970. mingw* | pw32* | os2*)
  5971. # This hack is so that the source file can tell whether it is being
  5972. # built for inclusion in a dll (and should export symbols for example).
  5973. lt_prog_compiler_pic='-DDLL_EXPORT'
  5974. ;;
  5975. darwin* | rhapsody*)
  5976. # PIC is the default on this platform
  5977. # Common symbols not allowed in MH_DYLIB files
  5978. lt_prog_compiler_pic='-fno-common'
  5979. ;;
  5980. interix3*)
  5981. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5982. # Instead, we relocate shared libraries at runtime.
  5983. ;;
  5984. msdosdjgpp*)
  5985. # Just because we use GCC doesn't mean we suddenly get shared libraries
  5986. # on systems that don't support them.
  5987. lt_prog_compiler_can_build_shared=no
  5988. enable_shared=no
  5989. ;;
  5990. sysv4*MP*)
  5991. if test -d /usr/nec; then
  5992. lt_prog_compiler_pic=-Kconform_pic
  5993. fi
  5994. ;;
  5995. hpux*)
  5996. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5997. # not for PA HP-UX.
  5998. case $host_cpu in
  5999. hppa*64*|ia64*)
  6000. # +Z the default
  6001. ;;
  6002. *)
  6003. lt_prog_compiler_pic='-fPIC'
  6004. ;;
  6005. esac
  6006. ;;
  6007. *)
  6008. lt_prog_compiler_pic='-fPIC'
  6009. ;;
  6010. esac
  6011. else
  6012. # PORTME Check for flag to pass linker flags through the system compiler.
  6013. case $host_os in
  6014. aix*)
  6015. lt_prog_compiler_wl='-Wl,'
  6016. if test "$host_cpu" = ia64; then
  6017. # AIX 5 now supports IA64 processor
  6018. lt_prog_compiler_static='-Bstatic'
  6019. else
  6020. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6021. fi
  6022. ;;
  6023. darwin*)
  6024. # PIC is the default on this platform
  6025. # Common symbols not allowed in MH_DYLIB files
  6026. case $cc_basename in
  6027. xlc*)
  6028. lt_prog_compiler_pic='-qnocommon'
  6029. lt_prog_compiler_wl='-Wl,'
  6030. ;;
  6031. esac
  6032. ;;
  6033. mingw* | pw32* | os2*)
  6034. # This hack is so that the source file can tell whether it is being
  6035. # built for inclusion in a dll (and should export symbols for example).
  6036. lt_prog_compiler_pic='-DDLL_EXPORT'
  6037. ;;
  6038. hpux9* | hpux10* | hpux11*)
  6039. lt_prog_compiler_wl='-Wl,'
  6040. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6041. # not for PA HP-UX.
  6042. case $host_cpu in
  6043. hppa*64*|ia64*)
  6044. # +Z the default
  6045. ;;
  6046. *)
  6047. lt_prog_compiler_pic='+Z'
  6048. ;;
  6049. esac
  6050. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6051. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6052. ;;
  6053. irix5* | irix6* | nonstopux*)
  6054. lt_prog_compiler_wl='-Wl,'
  6055. # PIC (with -KPIC) is the default.
  6056. lt_prog_compiler_static='-non_shared'
  6057. ;;
  6058. newsos6)
  6059. lt_prog_compiler_pic='-KPIC'
  6060. lt_prog_compiler_static='-Bstatic'
  6061. ;;
  6062. linux*)
  6063. case $cc_basename in
  6064. icc* | ecc*)
  6065. lt_prog_compiler_wl='-Wl,'
  6066. lt_prog_compiler_pic='-KPIC'
  6067. lt_prog_compiler_static='-static'
  6068. ;;
  6069. pgcc* | pgf77* | pgf90* | pgf95*)
  6070. # Portland Group compilers (*not* the Pentium gcc compiler,
  6071. # which looks to be a dead project)
  6072. lt_prog_compiler_wl='-Wl,'
  6073. lt_prog_compiler_pic='-fpic'
  6074. lt_prog_compiler_static='-Bstatic'
  6075. ;;
  6076. ccc*)
  6077. lt_prog_compiler_wl='-Wl,'
  6078. # All Alpha code is PIC.
  6079. lt_prog_compiler_static='-non_shared'
  6080. ;;
  6081. esac
  6082. ;;
  6083. osf3* | osf4* | osf5*)
  6084. lt_prog_compiler_wl='-Wl,'
  6085. # All OSF/1 code is PIC.
  6086. lt_prog_compiler_static='-non_shared'
  6087. ;;
  6088. solaris*)
  6089. lt_prog_compiler_pic='-KPIC'
  6090. lt_prog_compiler_static='-Bstatic'
  6091. case $cc_basename in
  6092. f77* | f90* | f95*)
  6093. lt_prog_compiler_wl='-Qoption ld ';;
  6094. *)
  6095. lt_prog_compiler_wl='-Wl,';;
  6096. esac
  6097. ;;
  6098. sunos4*)
  6099. lt_prog_compiler_wl='-Qoption ld '
  6100. lt_prog_compiler_pic='-PIC'
  6101. lt_prog_compiler_static='-Bstatic'
  6102. ;;
  6103. sysv4 | sysv4.2uw2* | sysv4.3*)
  6104. lt_prog_compiler_wl='-Wl,'
  6105. lt_prog_compiler_pic='-KPIC'
  6106. lt_prog_compiler_static='-Bstatic'
  6107. ;;
  6108. sysv4*MP*)
  6109. if test -d /usr/nec ;then
  6110. lt_prog_compiler_pic='-Kconform_pic'
  6111. lt_prog_compiler_static='-Bstatic'
  6112. fi
  6113. ;;
  6114. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6115. lt_prog_compiler_wl='-Wl,'
  6116. lt_prog_compiler_pic='-KPIC'
  6117. lt_prog_compiler_static='-Bstatic'
  6118. ;;
  6119. unicos*)
  6120. lt_prog_compiler_wl='-Wl,'
  6121. lt_prog_compiler_can_build_shared=no
  6122. ;;
  6123. uts4*)
  6124. lt_prog_compiler_pic='-pic'
  6125. lt_prog_compiler_static='-Bstatic'
  6126. ;;
  6127. *)
  6128. lt_prog_compiler_can_build_shared=no
  6129. ;;
  6130. esac
  6131. fi
  6132. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6133. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  6134. #
  6135. # Check to make sure the PIC flag actually works.
  6136. #
  6137. if test -n "$lt_prog_compiler_pic"; then
  6138. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6139. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  6140. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6141. echo $ECHO_N "(cached) $ECHO_C" >&6
  6142. else
  6143. lt_prog_compiler_pic_works=no
  6144. ac_outfile=conftest.$ac_objext
  6145. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6146. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6147. # Insert the option either (1) after the last *FLAGS variable, or
  6148. # (2) before a word containing "conftest.", or (3) at the end.
  6149. # Note that $ac_compile itself does not contain backslashes and begins
  6150. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6151. # The option is referenced via a variable to avoid confusing sed.
  6152. lt_compile=`echo "$ac_compile" | $SED \
  6153. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6154. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6155. -e 's:$: $lt_compiler_flag:'`
  6156. (eval echo "\"\$as_me:6821: $lt_compile\"" >&5)
  6157. (eval "$lt_compile" 2>conftest.err)
  6158. ac_status=$?
  6159. cat conftest.err >&5
  6160. echo "$as_me:6825: \$? = $ac_status" >&5
  6161. if (exit $ac_status) && test -s "$ac_outfile"; then
  6162. # The compiler can only warn and ignore the option if not recognized
  6163. # So say no if there are warnings other than the usual output.
  6164. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6165. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6166. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6167. lt_prog_compiler_pic_works=yes
  6168. fi
  6169. fi
  6170. $rm conftest*
  6171. fi
  6172. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6173. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  6174. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6175. case $lt_prog_compiler_pic in
  6176. "" | " "*) ;;
  6177. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6178. esac
  6179. else
  6180. lt_prog_compiler_pic=
  6181. lt_prog_compiler_can_build_shared=no
  6182. fi
  6183. fi
  6184. case $host_os in
  6185. # For platforms which do not support PIC, -DPIC is meaningless:
  6186. *djgpp*)
  6187. lt_prog_compiler_pic=
  6188. ;;
  6189. *)
  6190. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6191. ;;
  6192. esac
  6193. #
  6194. # Check to make sure the static flag actually works.
  6195. #
  6196. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6197. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6198. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  6199. if test "${lt_prog_compiler_static_works+set}" = set; then
  6200. echo $ECHO_N "(cached) $ECHO_C" >&6
  6201. else
  6202. lt_prog_compiler_static_works=no
  6203. save_LDFLAGS="$LDFLAGS"
  6204. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6205. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  6206. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6207. # The linker can only warn and ignore the option if not recognized
  6208. # So say no if there are warnings
  6209. if test -s conftest.err; then
  6210. # Append any errors to the config.log.
  6211. cat conftest.err 1>&5
  6212. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6213. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6214. if diff conftest.exp conftest.er2 >/dev/null; then
  6215. lt_prog_compiler_static_works=yes
  6216. fi
  6217. else
  6218. lt_prog_compiler_static_works=yes
  6219. fi
  6220. fi
  6221. $rm conftest*
  6222. LDFLAGS="$save_LDFLAGS"
  6223. fi
  6224. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6225. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  6226. if test x"$lt_prog_compiler_static_works" = xyes; then
  6227. :
  6228. else
  6229. lt_prog_compiler_static=
  6230. fi
  6231. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6232. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  6233. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6234. echo $ECHO_N "(cached) $ECHO_C" >&6
  6235. else
  6236. lt_cv_prog_compiler_c_o=no
  6237. $rm -r conftest 2>/dev/null
  6238. mkdir conftest
  6239. cd conftest
  6240. mkdir out
  6241. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6242. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6243. # Insert the option either (1) after the last *FLAGS variable, or
  6244. # (2) before a word containing "conftest.", or (3) at the end.
  6245. # Note that $ac_compile itself does not contain backslashes and begins
  6246. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6247. lt_compile=`echo "$ac_compile" | $SED \
  6248. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6249. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6250. -e 's:$: $lt_compiler_flag:'`
  6251. (eval echo "\"\$as_me:6925: $lt_compile\"" >&5)
  6252. (eval "$lt_compile" 2>out/conftest.err)
  6253. ac_status=$?
  6254. cat out/conftest.err >&5
  6255. echo "$as_me:6929: \$? = $ac_status" >&5
  6256. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6257. then
  6258. # The compiler can only warn and ignore the option if not recognized
  6259. # So say no if there are warnings
  6260. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6261. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6262. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6263. lt_cv_prog_compiler_c_o=yes
  6264. fi
  6265. fi
  6266. chmod u+w . 2>&5
  6267. $rm conftest*
  6268. # SGI C++ compiler will create directory out/ii_files/ for
  6269. # template instantiation
  6270. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6271. $rm out/* && rmdir out
  6272. cd ..
  6273. rmdir conftest
  6274. $rm conftest*
  6275. fi
  6276. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6277. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  6278. hard_links="nottested"
  6279. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6280. # do not overwrite the value of need_locks provided by the user
  6281. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6282. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  6283. hard_links=yes
  6284. $rm conftest*
  6285. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6286. touch conftest.a
  6287. ln conftest.a conftest.b 2>&5 || hard_links=no
  6288. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6289. echo "$as_me:$LINENO: result: $hard_links" >&5
  6290. echo "${ECHO_T}$hard_links" >&6
  6291. if test "$hard_links" = no; then
  6292. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6293. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6294. need_locks=warn
  6295. fi
  6296. else
  6297. need_locks=no
  6298. fi
  6299. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6300. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  6301. runpath_var=
  6302. allow_undefined_flag=
  6303. enable_shared_with_static_runtimes=no
  6304. archive_cmds=
  6305. archive_expsym_cmds=
  6306. old_archive_From_new_cmds=
  6307. old_archive_from_expsyms_cmds=
  6308. export_dynamic_flag_spec=
  6309. whole_archive_flag_spec=
  6310. thread_safe_flag_spec=
  6311. hardcode_libdir_flag_spec=
  6312. hardcode_libdir_flag_spec_ld=
  6313. hardcode_libdir_separator=
  6314. hardcode_direct=no
  6315. hardcode_minus_L=no
  6316. hardcode_shlibpath_var=unsupported
  6317. link_all_deplibs=unknown
  6318. hardcode_automatic=no
  6319. module_cmds=
  6320. module_expsym_cmds=
  6321. always_export_symbols=no
  6322. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6323. # include_expsyms should be a list of space-separated symbols to be *always*
  6324. # included in the symbol list
  6325. include_expsyms=
  6326. # exclude_expsyms can be an extended regexp of symbols to exclude
  6327. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6328. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6329. # as well as any symbol that contains `d'.
  6330. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6331. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6332. # platforms (ab)use it in PIC code, but their linkers get confused if
  6333. # the symbol is explicitly referenced. Since portable code cannot
  6334. # rely on this symbol name, it's probably fine to never include it in
  6335. # preloaded symbol tables.
  6336. extract_expsyms_cmds=
  6337. # Just being paranoid about ensuring that cc_basename is set.
  6338. for cc_temp in $compiler""; do
  6339. case $cc_temp in
  6340. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6341. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6342. \-*) ;;
  6343. *) break;;
  6344. esac
  6345. done
  6346. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6347. case $host_os in
  6348. cygwin* | mingw* | pw32*)
  6349. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6350. # When not using gcc, we currently assume that we are using
  6351. # Microsoft Visual C++.
  6352. if test "$GCC" != yes; then
  6353. with_gnu_ld=no
  6354. fi
  6355. ;;
  6356. interix*)
  6357. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6358. with_gnu_ld=yes
  6359. ;;
  6360. openbsd*)
  6361. with_gnu_ld=no
  6362. ;;
  6363. esac
  6364. ld_shlibs=yes
  6365. if test "$with_gnu_ld" = yes; then
  6366. # If archive_cmds runs LD, not CC, wlarc should be empty
  6367. wlarc='${wl}'
  6368. # Set some defaults for GNU ld with shared library support. These
  6369. # are reset later if shared libraries are not supported. Putting them
  6370. # here allows them to be overridden if necessary.
  6371. runpath_var=LD_RUN_PATH
  6372. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6373. export_dynamic_flag_spec='${wl}--export-dynamic'
  6374. # ancient GNU ld didn't support --whole-archive et. al.
  6375. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6376. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6377. else
  6378. whole_archive_flag_spec=
  6379. fi
  6380. supports_anon_versioning=no
  6381. case `$LD -v 2>/dev/null` in
  6382. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6383. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6384. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6385. *\ 2.11.*) ;; # other 2.11 versions
  6386. *) supports_anon_versioning=yes ;;
  6387. esac
  6388. # See if GNU ld supports shared libraries.
  6389. case $host_os in
  6390. aix3* | aix4* | aix5*)
  6391. # On AIX/PPC, the GNU linker is very broken
  6392. if test "$host_cpu" != ia64; then
  6393. ld_shlibs=no
  6394. cat <<EOF 1>&2
  6395. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6396. *** to be unable to reliably create shared libraries on AIX.
  6397. *** Therefore, libtool is disabling shared libraries support. If you
  6398. *** really care for shared libraries, you may want to modify your PATH
  6399. *** so that a non-GNU linker is found, and then restart.
  6400. EOF
  6401. fi
  6402. ;;
  6403. amigaos*)
  6404. 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)'
  6405. hardcode_libdir_flag_spec='-L$libdir'
  6406. hardcode_minus_L=yes
  6407. # Samuel A. Falvo II <[email protected]> reports
  6408. # that the semantics of dynamic libraries on AmigaOS, at least up
  6409. # to version 4, is to share data among multiple programs linked
  6410. # with the same dynamic library. Since this doesn't match the
  6411. # behavior of shared libraries on other platforms, we can't use
  6412. # them.
  6413. ld_shlibs=no
  6414. ;;
  6415. beos*)
  6416. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6417. allow_undefined_flag=unsupported
  6418. # Joseph Beckenbach <[email protected]> says some releases of gcc
  6419. # support --undefined. This deserves some investigation. FIXME
  6420. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6421. else
  6422. ld_shlibs=no
  6423. fi
  6424. ;;
  6425. cygwin* | mingw* | pw32*)
  6426. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6427. # as there is no search path for DLLs.
  6428. hardcode_libdir_flag_spec='-L$libdir'
  6429. allow_undefined_flag=unsupported
  6430. always_export_symbols=no
  6431. enable_shared_with_static_runtimes=yes
  6432. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  6433. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6434. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6435. # If the export-symbols file already is a .def file (1st line
  6436. # is EXPORTS), use it as is; otherwise, prepend...
  6437. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6438. cp $export_symbols $output_objdir/$soname.def;
  6439. else
  6440. echo EXPORTS > $output_objdir/$soname.def;
  6441. cat $export_symbols >> $output_objdir/$soname.def;
  6442. fi~
  6443. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6444. else
  6445. ld_shlibs=no
  6446. fi
  6447. ;;
  6448. interix3*)
  6449. hardcode_direct=no
  6450. hardcode_shlibpath_var=no
  6451. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6452. export_dynamic_flag_spec='${wl}-E'
  6453. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6454. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6455. # default) and relocated if they conflict, which is a slow very memory
  6456. # consuming and fragmenting process. To avoid this, we pick a random,
  6457. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6458. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6459. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6460. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6461. ;;
  6462. linux*)
  6463. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6464. tmp_addflag=
  6465. case $cc_basename,$host_cpu in
  6466. pgcc*) # Portland Group C compiler
  6467. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  6468. tmp_addflag=' $pic_flag'
  6469. ;;
  6470. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6471. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  6472. tmp_addflag=' $pic_flag -Mnomain' ;;
  6473. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6474. tmp_addflag=' -i_dynamic' ;;
  6475. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6476. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6477. ifc* | ifort*) # Intel Fortran compiler
  6478. tmp_addflag=' -nofor_main' ;;
  6479. esac
  6480. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6481. if test $supports_anon_versioning = yes; then
  6482. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  6483. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6484. $echo "local: *; };" >> $output_objdir/$libname.ver~
  6485. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6486. fi
  6487. else
  6488. ld_shlibs=no
  6489. fi
  6490. ;;
  6491. netbsd*)
  6492. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6493. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6494. wlarc=
  6495. else
  6496. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6497. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6498. fi
  6499. ;;
  6500. solaris*)
  6501. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  6502. ld_shlibs=no
  6503. cat <<EOF 1>&2
  6504. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6505. *** create shared libraries on Solaris systems. Therefore, libtool
  6506. *** is disabling shared libraries support. We urge you to upgrade GNU
  6507. *** binutils to release 2.9.1 or newer. Another option is to modify
  6508. *** your PATH or compiler configuration so that the native linker is
  6509. *** used, and then restart.
  6510. EOF
  6511. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6512. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6513. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6514. else
  6515. ld_shlibs=no
  6516. fi
  6517. ;;
  6518. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  6519. case `$LD -v 2>&1` in
  6520. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  6521. ld_shlibs=no
  6522. cat <<_LT_EOF 1>&2
  6523. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  6524. *** reliably create shared libraries on SCO systems. Therefore, libtool
  6525. *** is disabling shared libraries support. We urge you to upgrade GNU
  6526. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  6527. *** your PATH or compiler configuration so that the native linker is
  6528. *** used, and then restart.
  6529. _LT_EOF
  6530. ;;
  6531. *)
  6532. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6533. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  6534. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  6535. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  6536. else
  6537. ld_shlibs=no
  6538. fi
  6539. ;;
  6540. esac
  6541. ;;
  6542. sunos4*)
  6543. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6544. wlarc=
  6545. hardcode_direct=yes
  6546. hardcode_shlibpath_var=no
  6547. ;;
  6548. *)
  6549. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6550. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6551. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6552. else
  6553. ld_shlibs=no
  6554. fi
  6555. ;;
  6556. esac
  6557. if test "$ld_shlibs" = no; then
  6558. runpath_var=
  6559. hardcode_libdir_flag_spec=
  6560. export_dynamic_flag_spec=
  6561. whole_archive_flag_spec=
  6562. fi
  6563. else
  6564. # PORTME fill in a description of your system's linker (not GNU ld)
  6565. case $host_os in
  6566. aix3*)
  6567. allow_undefined_flag=unsupported
  6568. always_export_symbols=yes
  6569. 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'
  6570. # Note: this linker hardcodes the directories in LIBPATH if there
  6571. # are no directories specified by -L.
  6572. hardcode_minus_L=yes
  6573. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6574. # Neither direct hardcoding nor static linking is supported with a
  6575. # broken collect2.
  6576. hardcode_direct=unsupported
  6577. fi
  6578. ;;
  6579. aix4* | aix5*)
  6580. if test "$host_cpu" = ia64; then
  6581. # On IA64, the linker does run time linking by default, so we don't
  6582. # have to do anything special.
  6583. aix_use_runtimelinking=no
  6584. exp_sym_flag='-Bexport'
  6585. no_entry_flag=""
  6586. else
  6587. # If we're using GNU nm, then we don't want the "-C" option.
  6588. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6589. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  6590. 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'
  6591. else
  6592. 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'
  6593. fi
  6594. aix_use_runtimelinking=no
  6595. # Test if we are trying to use run time linking or normal
  6596. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6597. # need to do runtime linking.
  6598. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  6599. for ld_flag in $LDFLAGS; do
  6600. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6601. aix_use_runtimelinking=yes
  6602. break
  6603. fi
  6604. done
  6605. ;;
  6606. esac
  6607. exp_sym_flag='-bexport'
  6608. no_entry_flag='-bnoentry'
  6609. fi
  6610. # When large executables or shared objects are built, AIX ld can
  6611. # have problems creating the table of contents. If linking a library
  6612. # or program results in "error TOC overflow" add -mminimal-toc to
  6613. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6614. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6615. archive_cmds=''
  6616. hardcode_direct=yes
  6617. hardcode_libdir_separator=':'
  6618. link_all_deplibs=yes
  6619. if test "$GCC" = yes; then
  6620. case $host_os in aix4.[012]|aix4.[012].*)
  6621. # We only want to do this on AIX 4.2 and lower, the check
  6622. # below for broken collect2 doesn't work under 4.3+
  6623. collect2name=`${CC} -print-prog-name=collect2`
  6624. if test -f "$collect2name" && \
  6625. strings "$collect2name" | grep resolve_lib_name >/dev/null
  6626. then
  6627. # We have reworked collect2
  6628. hardcode_direct=yes
  6629. else
  6630. # We have old collect2
  6631. hardcode_direct=unsupported
  6632. # It fails to find uninstalled libraries when the uninstalled
  6633. # path is not listed in the libpath. Setting hardcode_minus_L
  6634. # to unsupported forces relinking
  6635. hardcode_minus_L=yes
  6636. hardcode_libdir_flag_spec='-L$libdir'
  6637. hardcode_libdir_separator=
  6638. fi
  6639. ;;
  6640. esac
  6641. shared_flag='-shared'
  6642. if test "$aix_use_runtimelinking" = yes; then
  6643. shared_flag="$shared_flag "'${wl}-G'
  6644. fi
  6645. else
  6646. # not using gcc
  6647. if test "$host_cpu" = ia64; then
  6648. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6649. # chokes on -Wl,-G. The following line is correct:
  6650. shared_flag='-G'
  6651. else
  6652. if test "$aix_use_runtimelinking" = yes; then
  6653. shared_flag='${wl}-G'
  6654. else
  6655. shared_flag='${wl}-bM:SRE'
  6656. fi
  6657. fi
  6658. fi
  6659. # It seems that -bexpall does not export symbols beginning with
  6660. # underscore (_), so it is better to generate a list of symbols to export.
  6661. always_export_symbols=yes
  6662. if test "$aix_use_runtimelinking" = yes; then
  6663. # Warning - without using the other runtime loading flags (-brtl),
  6664. # -berok will link without error, but may produce a broken library.
  6665. allow_undefined_flag='-berok'
  6666. # Determine the default libpath from the value encoded in an empty executable.
  6667. cat >conftest.$ac_ext <<_ACEOF
  6668. /* confdefs.h. */
  6669. _ACEOF
  6670. cat confdefs.h >>conftest.$ac_ext
  6671. cat >>conftest.$ac_ext <<_ACEOF
  6672. /* end confdefs.h. */
  6673. int
  6674. main ()
  6675. {
  6676. ;
  6677. return 0;
  6678. }
  6679. _ACEOF
  6680. rm -f conftest.$ac_objext conftest$ac_exeext
  6681. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6682. (eval $ac_link) 2>conftest.er1
  6683. ac_status=$?
  6684. grep -v '^ *+' conftest.er1 >conftest.err
  6685. rm -f conftest.er1
  6686. cat conftest.err >&5
  6687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6688. (exit $ac_status); } &&
  6689. { ac_try='test -z "$ac_c_werror_flag"
  6690. || test ! -s conftest.err'
  6691. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6692. (eval $ac_try) 2>&5
  6693. ac_status=$?
  6694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6695. (exit $ac_status); }; } &&
  6696. { ac_try='test -s conftest$ac_exeext'
  6697. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6698. (eval $ac_try) 2>&5
  6699. ac_status=$?
  6700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6701. (exit $ac_status); }; }; then
  6702. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6703. }'`
  6704. # Check for a 64-bit object if we didn't find anything.
  6705. 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; }
  6706. }'`; fi
  6707. else
  6708. echo "$as_me: failed program was:" >&5
  6709. sed 's/^/| /' conftest.$ac_ext >&5
  6710. fi
  6711. rm -f conftest.err conftest.$ac_objext \
  6712. conftest$ac_exeext conftest.$ac_ext
  6713. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6714. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6715. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  6716. else
  6717. if test "$host_cpu" = ia64; then
  6718. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  6719. allow_undefined_flag="-z nodefs"
  6720. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  6721. else
  6722. # Determine the default libpath from the value encoded in an empty executable.
  6723. cat >conftest.$ac_ext <<_ACEOF
  6724. /* confdefs.h. */
  6725. _ACEOF
  6726. cat confdefs.h >>conftest.$ac_ext
  6727. cat >>conftest.$ac_ext <<_ACEOF
  6728. /* end confdefs.h. */
  6729. int
  6730. main ()
  6731. {
  6732. ;
  6733. return 0;
  6734. }
  6735. _ACEOF
  6736. rm -f conftest.$ac_objext conftest$ac_exeext
  6737. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6738. (eval $ac_link) 2>conftest.er1
  6739. ac_status=$?
  6740. grep -v '^ *+' conftest.er1 >conftest.err
  6741. rm -f conftest.er1
  6742. cat conftest.err >&5
  6743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6744. (exit $ac_status); } &&
  6745. { ac_try='test -z "$ac_c_werror_flag"
  6746. || test ! -s conftest.err'
  6747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6748. (eval $ac_try) 2>&5
  6749. ac_status=$?
  6750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6751. (exit $ac_status); }; } &&
  6752. { ac_try='test -s conftest$ac_exeext'
  6753. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6754. (eval $ac_try) 2>&5
  6755. ac_status=$?
  6756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6757. (exit $ac_status); }; }; then
  6758. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6759. }'`
  6760. # Check for a 64-bit object if we didn't find anything.
  6761. 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; }
  6762. }'`; fi
  6763. else
  6764. echo "$as_me: failed program was:" >&5
  6765. sed 's/^/| /' conftest.$ac_ext >&5
  6766. fi
  6767. rm -f conftest.err conftest.$ac_objext \
  6768. conftest$ac_exeext conftest.$ac_ext
  6769. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6770. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6771. # Warning - without using the other run time loading flags,
  6772. # -berok will link without error, but may produce a broken library.
  6773. no_undefined_flag=' ${wl}-bernotok'
  6774. allow_undefined_flag=' ${wl}-berok'
  6775. # Exported symbols can be pulled into shared objects from archives
  6776. whole_archive_flag_spec='$convenience'
  6777. archive_cmds_need_lc=yes
  6778. # This is similar to how AIX traditionally builds its shared libraries.
  6779. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  6780. fi
  6781. fi
  6782. ;;
  6783. amigaos*)
  6784. 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)'
  6785. hardcode_libdir_flag_spec='-L$libdir'
  6786. hardcode_minus_L=yes
  6787. # see comment about different semantics on the GNU ld section
  6788. ld_shlibs=no
  6789. ;;
  6790. bsdi[45]*)
  6791. export_dynamic_flag_spec=-rdynamic
  6792. ;;
  6793. cygwin* | mingw* | pw32*)
  6794. # When not using gcc, we currently assume that we are using
  6795. # Microsoft Visual C++.
  6796. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6797. # no search path for DLLs.
  6798. hardcode_libdir_flag_spec=' '
  6799. allow_undefined_flag=unsupported
  6800. # Tell ltmain to make .lib files, not .a files.
  6801. libext=lib
  6802. # Tell ltmain to make .dll files, not .so files.
  6803. shrext_cmds=".dll"
  6804. # FIXME: Setting linknames here is a bad hack.
  6805. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6806. # The linker will automatically build a .lib file if we build a DLL.
  6807. old_archive_From_new_cmds='true'
  6808. # FIXME: Should let the user specify the lib program.
  6809. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  6810. fix_srcfile_path='`cygpath -w "$srcfile"`'
  6811. enable_shared_with_static_runtimes=yes
  6812. ;;
  6813. darwin* | rhapsody*)
  6814. case $host_os in
  6815. rhapsody* | darwin1.[012])
  6816. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  6817. ;;
  6818. *) # Darwin 1.3 on
  6819. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  6820. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6821. else
  6822. case ${MACOSX_DEPLOYMENT_TARGET} in
  6823. 10.[012])
  6824. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6825. ;;
  6826. 10.*)
  6827. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  6828. ;;
  6829. esac
  6830. fi
  6831. ;;
  6832. esac
  6833. archive_cmds_need_lc=no
  6834. hardcode_direct=no
  6835. hardcode_automatic=yes
  6836. hardcode_shlibpath_var=unsupported
  6837. whole_archive_flag_spec=''
  6838. link_all_deplibs=yes
  6839. if test "$GCC" = yes ; then
  6840. output_verbose_link_cmd='echo'
  6841. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6842. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6843. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6844. 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}'
  6845. 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}'
  6846. else
  6847. case $cc_basename in
  6848. xlc*)
  6849. output_verbose_link_cmd='echo'
  6850. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  6851. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6852. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6853. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6854. 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}'
  6855. ;;
  6856. *)
  6857. ld_shlibs=no
  6858. ;;
  6859. esac
  6860. fi
  6861. ;;
  6862. dgux*)
  6863. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6864. hardcode_libdir_flag_spec='-L$libdir'
  6865. hardcode_shlibpath_var=no
  6866. ;;
  6867. freebsd1*)
  6868. ld_shlibs=no
  6869. ;;
  6870. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6871. # support. Future versions do this automatically, but an explicit c++rt0.o
  6872. # does not break anything, and helps significantly (at the cost of a little
  6873. # extra space).
  6874. freebsd2.2*)
  6875. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6876. hardcode_libdir_flag_spec='-R$libdir'
  6877. hardcode_direct=yes
  6878. hardcode_shlibpath_var=no
  6879. ;;
  6880. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6881. freebsd2*)
  6882. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6883. hardcode_direct=yes
  6884. hardcode_minus_L=yes
  6885. hardcode_shlibpath_var=no
  6886. ;;
  6887. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6888. freebsd* | kfreebsd*-gnu | dragonfly*)
  6889. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6890. hardcode_libdir_flag_spec='-R$libdir'
  6891. hardcode_direct=yes
  6892. hardcode_shlibpath_var=no
  6893. ;;
  6894. hpux9*)
  6895. if test "$GCC" = yes; then
  6896. 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'
  6897. else
  6898. 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'
  6899. fi
  6900. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6901. hardcode_libdir_separator=:
  6902. hardcode_direct=yes
  6903. # hardcode_minus_L: Not really in the search PATH,
  6904. # but as the default location of the library.
  6905. hardcode_minus_L=yes
  6906. export_dynamic_flag_spec='${wl}-E'
  6907. ;;
  6908. hpux10*)
  6909. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6910. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6911. else
  6912. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6913. fi
  6914. if test "$with_gnu_ld" = no; then
  6915. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6916. hardcode_libdir_separator=:
  6917. hardcode_direct=yes
  6918. export_dynamic_flag_spec='${wl}-E'
  6919. # hardcode_minus_L: Not really in the search PATH,
  6920. # but as the default location of the library.
  6921. hardcode_minus_L=yes
  6922. fi
  6923. ;;
  6924. hpux11*)
  6925. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6926. case $host_cpu in
  6927. hppa*64*)
  6928. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6929. ;;
  6930. ia64*)
  6931. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6932. ;;
  6933. *)
  6934. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6935. ;;
  6936. esac
  6937. else
  6938. case $host_cpu in
  6939. hppa*64*)
  6940. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6941. ;;
  6942. ia64*)
  6943. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6944. ;;
  6945. *)
  6946. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6947. ;;
  6948. esac
  6949. fi
  6950. if test "$with_gnu_ld" = no; then
  6951. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6952. hardcode_libdir_separator=:
  6953. case $host_cpu in
  6954. hppa*64*|ia64*)
  6955. hardcode_libdir_flag_spec_ld='+b $libdir'
  6956. hardcode_direct=no
  6957. hardcode_shlibpath_var=no
  6958. ;;
  6959. *)
  6960. hardcode_direct=yes
  6961. export_dynamic_flag_spec='${wl}-E'
  6962. # hardcode_minus_L: Not really in the search PATH,
  6963. # but as the default location of the library.
  6964. hardcode_minus_L=yes
  6965. ;;
  6966. esac
  6967. fi
  6968. ;;
  6969. irix5* | irix6* | nonstopux*)
  6970. if test "$GCC" = yes; then
  6971. 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'
  6972. else
  6973. 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'
  6974. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  6975. fi
  6976. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6977. hardcode_libdir_separator=:
  6978. link_all_deplibs=yes
  6979. ;;
  6980. netbsd*)
  6981. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6982. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6983. else
  6984. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6985. fi
  6986. hardcode_libdir_flag_spec='-R$libdir'
  6987. hardcode_direct=yes
  6988. hardcode_shlibpath_var=no
  6989. ;;
  6990. newsos6)
  6991. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6992. hardcode_direct=yes
  6993. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6994. hardcode_libdir_separator=:
  6995. hardcode_shlibpath_var=no
  6996. ;;
  6997. openbsd*)
  6998. hardcode_direct=yes
  6999. hardcode_shlibpath_var=no
  7000. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7001. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7002. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7003. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7004. export_dynamic_flag_spec='${wl}-E'
  7005. else
  7006. case $host_os in
  7007. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7008. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7009. hardcode_libdir_flag_spec='-R$libdir'
  7010. ;;
  7011. *)
  7012. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7013. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7014. ;;
  7015. esac
  7016. fi
  7017. ;;
  7018. os2*)
  7019. hardcode_libdir_flag_spec='-L$libdir'
  7020. hardcode_minus_L=yes
  7021. allow_undefined_flag=unsupported
  7022. 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'
  7023. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7024. ;;
  7025. osf3*)
  7026. if test "$GCC" = yes; then
  7027. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7028. 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'
  7029. else
  7030. allow_undefined_flag=' -expect_unresolved \*'
  7031. 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'
  7032. fi
  7033. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7034. hardcode_libdir_separator=:
  7035. ;;
  7036. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7037. if test "$GCC" = yes; then
  7038. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7039. 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'
  7040. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7041. else
  7042. allow_undefined_flag=' -expect_unresolved \*'
  7043. 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'
  7044. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7045. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  7046. # Both c and cxx compiler support -rpath directly
  7047. hardcode_libdir_flag_spec='-rpath $libdir'
  7048. fi
  7049. hardcode_libdir_separator=:
  7050. ;;
  7051. solaris*)
  7052. no_undefined_flag=' -z text'
  7053. if test "$GCC" = yes; then
  7054. wlarc='${wl}'
  7055. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7056. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7057. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7058. else
  7059. wlarc=''
  7060. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7061. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7062. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7063. fi
  7064. hardcode_libdir_flag_spec='-R$libdir'
  7065. hardcode_shlibpath_var=no
  7066. case $host_os in
  7067. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7068. *)
  7069. # The compiler driver will combine linker options so we
  7070. # cannot just pass the convience library names through
  7071. # without $wl, iff we do not link with $LD.
  7072. # Luckily, gcc supports the same syntax we need for Sun Studio.
  7073. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7074. case $wlarc in
  7075. '')
  7076. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  7077. *)
  7078. whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  7079. esac ;;
  7080. esac
  7081. link_all_deplibs=yes
  7082. ;;
  7083. sunos4*)
  7084. if test "x$host_vendor" = xsequent; then
  7085. # Use $CC to link under sequent, because it throws in some extra .o
  7086. # files that make .init and .fini sections work.
  7087. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7088. else
  7089. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7090. fi
  7091. hardcode_libdir_flag_spec='-L$libdir'
  7092. hardcode_direct=yes
  7093. hardcode_minus_L=yes
  7094. hardcode_shlibpath_var=no
  7095. ;;
  7096. sysv4)
  7097. case $host_vendor in
  7098. sni)
  7099. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7100. hardcode_direct=yes # is this really true???
  7101. ;;
  7102. siemens)
  7103. ## LD is ld it makes a PLAMLIB
  7104. ## CC just makes a GrossModule.
  7105. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7106. reload_cmds='$CC -r -o $output$reload_objs'
  7107. hardcode_direct=no
  7108. ;;
  7109. motorola)
  7110. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7111. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7112. ;;
  7113. esac
  7114. runpath_var='LD_RUN_PATH'
  7115. hardcode_shlibpath_var=no
  7116. ;;
  7117. sysv4.3*)
  7118. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7119. hardcode_shlibpath_var=no
  7120. export_dynamic_flag_spec='-Bexport'
  7121. ;;
  7122. sysv4*MP*)
  7123. if test -d /usr/nec; then
  7124. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7125. hardcode_shlibpath_var=no
  7126. runpath_var=LD_RUN_PATH
  7127. hardcode_runpath_var=yes
  7128. ld_shlibs=yes
  7129. fi
  7130. ;;
  7131. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  7132. no_undefined_flag='${wl}-z,text'
  7133. archive_cmds_need_lc=no
  7134. hardcode_shlibpath_var=no
  7135. runpath_var='LD_RUN_PATH'
  7136. if test "$GCC" = yes; then
  7137. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7138. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7139. else
  7140. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7141. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7142. fi
  7143. ;;
  7144. sysv5* | sco3.2v5* | sco5v6*)
  7145. # Note: We can NOT use -z defs as we might desire, because we do not
  7146. # link with -lc, and that would cause any symbols used from libc to
  7147. # always be unresolved, which means just about no library would
  7148. # ever link correctly. If we're not using GNU ld we use -z text
  7149. # though, which does catch some bad symbols but isn't as heavy-handed
  7150. # as -z defs.
  7151. no_undefined_flag='${wl}-z,text'
  7152. allow_undefined_flag='${wl}-z,nodefs'
  7153. archive_cmds_need_lc=no
  7154. hardcode_shlibpath_var=no
  7155. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7156. hardcode_libdir_separator=':'
  7157. link_all_deplibs=yes
  7158. export_dynamic_flag_spec='${wl}-Bexport'
  7159. runpath_var='LD_RUN_PATH'
  7160. if test "$GCC" = yes; then
  7161. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7162. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7163. else
  7164. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7165. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7166. fi
  7167. ;;
  7168. uts4*)
  7169. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7170. hardcode_libdir_flag_spec='-L$libdir'
  7171. hardcode_shlibpath_var=no
  7172. ;;
  7173. *)
  7174. ld_shlibs=no
  7175. ;;
  7176. esac
  7177. fi
  7178. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7179. echo "${ECHO_T}$ld_shlibs" >&6
  7180. test "$ld_shlibs" = no && can_build_shared=no
  7181. #
  7182. # Do we need to explicitly link libc?
  7183. #
  7184. case "x$archive_cmds_need_lc" in
  7185. x|xyes)
  7186. # Assume -lc should be added
  7187. archive_cmds_need_lc=yes
  7188. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7189. case $archive_cmds in
  7190. *'~'*)
  7191. # FIXME: we may have to deal with multi-command sequences.
  7192. ;;
  7193. '$CC '*)
  7194. # Test whether the compiler implicitly links with -lc since on some
  7195. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7196. # to ld, don't add -lc before -lgcc.
  7197. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7198. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  7199. $rm conftest*
  7200. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7201. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7202. (eval $ac_compile) 2>&5
  7203. ac_status=$?
  7204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7205. (exit $ac_status); } 2>conftest.err; then
  7206. soname=conftest
  7207. lib=conftest
  7208. libobjs=conftest.$ac_objext
  7209. deplibs=
  7210. wl=$lt_prog_compiler_wl
  7211. pic_flag=$lt_prog_compiler_pic
  7212. compiler_flags=-v
  7213. linker_flags=-v
  7214. verstring=
  7215. output_objdir=.
  7216. libname=conftest
  7217. lt_save_allow_undefined_flag=$allow_undefined_flag
  7218. allow_undefined_flag=
  7219. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7220. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7221. ac_status=$?
  7222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7223. (exit $ac_status); }
  7224. then
  7225. archive_cmds_need_lc=no
  7226. else
  7227. archive_cmds_need_lc=yes
  7228. fi
  7229. allow_undefined_flag=$lt_save_allow_undefined_flag
  7230. else
  7231. cat conftest.err 1>&5
  7232. fi
  7233. $rm conftest*
  7234. echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7235. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  7236. ;;
  7237. esac
  7238. fi
  7239. ;;
  7240. esac
  7241. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7242. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  7243. library_names_spec=
  7244. libname_spec='lib$name'
  7245. soname_spec=
  7246. shrext_cmds=".so"
  7247. postinstall_cmds=
  7248. postuninstall_cmds=
  7249. finish_cmds=
  7250. finish_eval=
  7251. shlibpath_var=
  7252. shlibpath_overrides_runpath=unknown
  7253. version_type=none
  7254. dynamic_linker="$host_os ld.so"
  7255. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7256. if test "$GCC" = yes; then
  7257. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7258. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  7259. # if the path contains ";" then we assume it to be the separator
  7260. # otherwise default to the standard path separator (i.e. ":") - it is
  7261. # assumed that no part of a normal pathname contains ";" but that should
  7262. # okay in the real world where ";" in dirpaths is itself problematic.
  7263. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7264. else
  7265. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7266. fi
  7267. else
  7268. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7269. fi
  7270. need_lib_prefix=unknown
  7271. hardcode_into_libs=no
  7272. # when you set need_version to no, make sure it does not cause -set_version
  7273. # flags to be left without arguments
  7274. need_version=unknown
  7275. case $host_os in
  7276. aix3*)
  7277. version_type=linux
  7278. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7279. shlibpath_var=LIBPATH
  7280. # AIX 3 has no versioning support, so we append a major version to the name.
  7281. soname_spec='${libname}${release}${shared_ext}$major'
  7282. ;;
  7283. aix4* | aix5*)
  7284. version_type=linux
  7285. need_lib_prefix=no
  7286. need_version=no
  7287. hardcode_into_libs=yes
  7288. if test "$host_cpu" = ia64; then
  7289. # AIX 5 supports IA64
  7290. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7291. shlibpath_var=LD_LIBRARY_PATH
  7292. else
  7293. # With GCC up to 2.95.x, collect2 would create an import file
  7294. # for dependence libraries. The import file would start with
  7295. # the line `#! .'. This would cause the generated library to
  7296. # depend on `.', always an invalid library. This was fixed in
  7297. # development snapshots of GCC prior to 3.0.
  7298. case $host_os in
  7299. aix4 | aix4.[01] | aix4.[01].*)
  7300. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7301. echo ' yes '
  7302. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7303. :
  7304. else
  7305. can_build_shared=no
  7306. fi
  7307. ;;
  7308. esac
  7309. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7310. # soname into executable. Probably we can add versioning support to
  7311. # collect2, so additional links can be useful in future.
  7312. if test "$aix_use_runtimelinking" = yes; then
  7313. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7314. # instead of lib<name>.a to let people know that these are not
  7315. # typical AIX shared libraries.
  7316. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7317. else
  7318. # We preserve .a as extension for shared libraries through AIX4.2
  7319. # and later when we are not doing run time linking.
  7320. library_names_spec='${libname}${release}.a $libname.a'
  7321. soname_spec='${libname}${release}${shared_ext}$major'
  7322. fi
  7323. shlibpath_var=LIBPATH
  7324. fi
  7325. ;;
  7326. amigaos*)
  7327. library_names_spec='$libname.ixlibrary $libname.a'
  7328. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7329. 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'
  7330. ;;
  7331. beos*)
  7332. library_names_spec='${libname}${shared_ext}'
  7333. dynamic_linker="$host_os ld.so"
  7334. shlibpath_var=LIBRARY_PATH
  7335. ;;
  7336. bsdi[45]*)
  7337. version_type=linux
  7338. need_version=no
  7339. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7340. soname_spec='${libname}${release}${shared_ext}$major'
  7341. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7342. shlibpath_var=LD_LIBRARY_PATH
  7343. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7344. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7345. # the default ld.so.conf also contains /usr/contrib/lib and
  7346. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7347. # libtool to hard-code these into programs
  7348. ;;
  7349. cygwin* | mingw* | pw32*)
  7350. version_type=windows
  7351. shrext_cmds=".dll"
  7352. need_version=no
  7353. need_lib_prefix=no
  7354. case $GCC,$host_os in
  7355. yes,cygwin* | yes,mingw* | yes,pw32*)
  7356. library_names_spec='$libname.dll.a'
  7357. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7358. postinstall_cmds='base_file=`basename \${file}`~
  7359. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7360. dldir=$destdir/`dirname \$dlpath`~
  7361. test -d \$dldir || mkdir -p \$dldir~
  7362. $install_prog $dir/$dlname \$dldir/$dlname~
  7363. chmod a+x \$dldir/$dlname'
  7364. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7365. dlpath=$dir/\$dldll~
  7366. $rm \$dlpath'
  7367. shlibpath_overrides_runpath=yes
  7368. case $host_os in
  7369. cygwin*)
  7370. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7371. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7372. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7373. ;;
  7374. mingw*)
  7375. # MinGW DLLs use traditional 'lib' prefix
  7376. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7377. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7378. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7379. # It is most probably a Windows format PATH printed by
  7380. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7381. # path with ; separators, and with drive letters. We can handle the
  7382. # drive letters (cygwin fileutils understands them), so leave them,
  7383. # especially as we might pass files found there to a mingw objdump,
  7384. # which wouldn't understand a cygwinified path. Ahh.
  7385. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7386. else
  7387. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7388. fi
  7389. ;;
  7390. pw32*)
  7391. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7392. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7393. ;;
  7394. esac
  7395. ;;
  7396. *)
  7397. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7398. ;;
  7399. esac
  7400. dynamic_linker='Win32 ld.exe'
  7401. # FIXME: first we should search . and the directory the executable is in
  7402. shlibpath_var=PATH
  7403. ;;
  7404. darwin* | rhapsody*)
  7405. dynamic_linker="$host_os dyld"
  7406. version_type=darwin
  7407. need_lib_prefix=no
  7408. need_version=no
  7409. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7410. soname_spec='${libname}${release}${major}$shared_ext'
  7411. shlibpath_overrides_runpath=yes
  7412. shlibpath_var=DYLD_LIBRARY_PATH
  7413. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  7414. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  7415. if test "$GCC" = yes; then
  7416. 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"`
  7417. else
  7418. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  7419. fi
  7420. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7421. ;;
  7422. dgux*)
  7423. version_type=linux
  7424. need_lib_prefix=no
  7425. need_version=no
  7426. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7427. soname_spec='${libname}${release}${shared_ext}$major'
  7428. shlibpath_var=LD_LIBRARY_PATH
  7429. ;;
  7430. freebsd1*)
  7431. dynamic_linker=no
  7432. ;;
  7433. kfreebsd*-gnu)
  7434. version_type=linux
  7435. need_lib_prefix=no
  7436. need_version=no
  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. shlibpath_overrides_runpath=no
  7441. hardcode_into_libs=yes
  7442. dynamic_linker='GNU ld.so'
  7443. ;;
  7444. freebsd* | dragonfly*)
  7445. # DragonFly does not have aout. When/if they implement a new
  7446. # versioning mechanism, adjust this.
  7447. if test -x /usr/bin/objformat; then
  7448. objformat=`/usr/bin/objformat`
  7449. else
  7450. case $host_os in
  7451. freebsd[123]*) objformat=aout ;;
  7452. *) objformat=elf ;;
  7453. esac
  7454. fi
  7455. version_type=freebsd-$objformat
  7456. case $version_type in
  7457. freebsd-elf*)
  7458. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7459. need_version=no
  7460. need_lib_prefix=no
  7461. ;;
  7462. freebsd-*)
  7463. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7464. need_version=yes
  7465. ;;
  7466. esac
  7467. shlibpath_var=LD_LIBRARY_PATH
  7468. case $host_os in
  7469. freebsd2*)
  7470. shlibpath_overrides_runpath=yes
  7471. ;;
  7472. freebsd3.[01]* | freebsdelf3.[01]*)
  7473. shlibpath_overrides_runpath=yes
  7474. hardcode_into_libs=yes
  7475. ;;
  7476. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  7477. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  7478. shlibpath_overrides_runpath=no
  7479. hardcode_into_libs=yes
  7480. ;;
  7481. freebsd*) # from 4.6 on
  7482. shlibpath_overrides_runpath=yes
  7483. hardcode_into_libs=yes
  7484. ;;
  7485. esac
  7486. ;;
  7487. gnu*)
  7488. version_type=linux
  7489. need_lib_prefix=no
  7490. need_version=no
  7491. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7492. soname_spec='${libname}${release}${shared_ext}$major'
  7493. shlibpath_var=LD_LIBRARY_PATH
  7494. hardcode_into_libs=yes
  7495. ;;
  7496. hpux9* | hpux10* | hpux11*)
  7497. # Give a soname corresponding to the major version so that dld.sl refuses to
  7498. # link against other versions.
  7499. version_type=sunos
  7500. need_lib_prefix=no
  7501. need_version=no
  7502. case $host_cpu in
  7503. ia64*)
  7504. shrext_cmds='.so'
  7505. hardcode_into_libs=yes
  7506. dynamic_linker="$host_os dld.so"
  7507. shlibpath_var=LD_LIBRARY_PATH
  7508. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7509. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7510. soname_spec='${libname}${release}${shared_ext}$major'
  7511. if test "X$HPUX_IA64_MODE" = X32; then
  7512. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7513. else
  7514. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7515. fi
  7516. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7517. ;;
  7518. hppa*64*)
  7519. shrext_cmds='.sl'
  7520. hardcode_into_libs=yes
  7521. dynamic_linker="$host_os dld.sl"
  7522. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  7523. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7524. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7525. soname_spec='${libname}${release}${shared_ext}$major'
  7526. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7527. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7528. ;;
  7529. *)
  7530. shrext_cmds='.sl'
  7531. dynamic_linker="$host_os dld.sl"
  7532. shlibpath_var=SHLIB_PATH
  7533. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7534. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7535. soname_spec='${libname}${release}${shared_ext}$major'
  7536. ;;
  7537. esac
  7538. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7539. postinstall_cmds='chmod 555 $lib'
  7540. ;;
  7541. interix3*)
  7542. version_type=linux
  7543. need_lib_prefix=no
  7544. need_version=no
  7545. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7546. soname_spec='${libname}${release}${shared_ext}$major'
  7547. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  7548. shlibpath_var=LD_LIBRARY_PATH
  7549. shlibpath_overrides_runpath=no
  7550. hardcode_into_libs=yes
  7551. ;;
  7552. irix5* | irix6* | nonstopux*)
  7553. case $host_os in
  7554. nonstopux*) version_type=nonstopux ;;
  7555. *)
  7556. if test "$lt_cv_prog_gnu_ld" = yes; then
  7557. version_type=linux
  7558. else
  7559. version_type=irix
  7560. fi ;;
  7561. esac
  7562. need_lib_prefix=no
  7563. need_version=no
  7564. soname_spec='${libname}${release}${shared_ext}$major'
  7565. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7566. case $host_os in
  7567. irix5* | nonstopux*)
  7568. libsuff= shlibsuff=
  7569. ;;
  7570. *)
  7571. case $LD in # libtool.m4 will add one of these switches to LD
  7572. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7573. libsuff= shlibsuff= libmagic=32-bit;;
  7574. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7575. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7576. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7577. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7578. *) libsuff= shlibsuff= libmagic=never-match;;
  7579. esac
  7580. ;;
  7581. esac
  7582. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7583. shlibpath_overrides_runpath=no
  7584. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7585. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7586. hardcode_into_libs=yes
  7587. ;;
  7588. # No shared lib support for Linux oldld, aout, or coff.
  7589. linux*oldld* | linux*aout* | linux*coff*)
  7590. dynamic_linker=no
  7591. ;;
  7592. # This must be Linux ELF.
  7593. linux*)
  7594. version_type=linux
  7595. need_lib_prefix=no
  7596. need_version=no
  7597. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7598. soname_spec='${libname}${release}${shared_ext}$major'
  7599. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  7600. shlibpath_var=LD_LIBRARY_PATH
  7601. shlibpath_overrides_runpath=no
  7602. # This implies no fast_install, which is unacceptable.
  7603. # Some rework will be needed to allow for fast_install
  7604. # before this can be enabled.
  7605. hardcode_into_libs=yes
  7606. # find out which ABI we are using
  7607. libsuff=
  7608. case "$host_cpu" in
  7609. x86_64*|s390x*|powerpc64*)
  7610. echo '#line 8394 "configure"' > conftest.$ac_ext
  7611. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7612. (eval $ac_compile) 2>&5
  7613. ac_status=$?
  7614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7615. (exit $ac_status); }; then
  7616. case `/usr/bin/file conftest.$ac_objext` in
  7617. *64-bit*)
  7618. libsuff=64
  7619. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  7620. ;;
  7621. esac
  7622. fi
  7623. rm -rf conftest*
  7624. ;;
  7625. esac
  7626. # Append ld.so.conf contents to the search path
  7627. if test -f /etc/ld.so.conf; then
  7628. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  7629. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  7630. fi
  7631. # We used to test for /lib/ld.so.1 and disable shared libraries on
  7632. # powerpc, because MkLinux only supported shared libraries with the
  7633. # GNU dynamic linker. Since this was broken with cross compilers,
  7634. # most powerpc-linux boxes support dynamic linking these days and
  7635. # people can always --disable-shared, the test was removed, and we
  7636. # assume the GNU/Linux dynamic linker is in use.
  7637. dynamic_linker='GNU/Linux ld.so'
  7638. ;;
  7639. knetbsd*-gnu)
  7640. version_type=linux
  7641. need_lib_prefix=no
  7642. need_version=no
  7643. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7644. soname_spec='${libname}${release}${shared_ext}$major'
  7645. shlibpath_var=LD_LIBRARY_PATH
  7646. shlibpath_overrides_runpath=no
  7647. hardcode_into_libs=yes
  7648. dynamic_linker='GNU ld.so'
  7649. ;;
  7650. netbsd*)
  7651. version_type=sunos
  7652. need_lib_prefix=no
  7653. need_version=no
  7654. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7655. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7656. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7657. dynamic_linker='NetBSD (a.out) ld.so'
  7658. else
  7659. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7660. soname_spec='${libname}${release}${shared_ext}$major'
  7661. dynamic_linker='NetBSD ld.elf_so'
  7662. fi
  7663. shlibpath_var=LD_LIBRARY_PATH
  7664. shlibpath_overrides_runpath=yes
  7665. hardcode_into_libs=yes
  7666. ;;
  7667. newsos6)
  7668. version_type=linux
  7669. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7670. shlibpath_var=LD_LIBRARY_PATH
  7671. shlibpath_overrides_runpath=yes
  7672. ;;
  7673. nto-qnx*)
  7674. version_type=linux
  7675. need_lib_prefix=no
  7676. need_version=no
  7677. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7678. soname_spec='${libname}${release}${shared_ext}$major'
  7679. shlibpath_var=LD_LIBRARY_PATH
  7680. shlibpath_overrides_runpath=yes
  7681. ;;
  7682. openbsd*)
  7683. version_type=sunos
  7684. sys_lib_dlsearch_path_spec="/usr/lib"
  7685. need_lib_prefix=no
  7686. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  7687. case $host_os in
  7688. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  7689. *) need_version=no ;;
  7690. esac
  7691. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7692. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7693. shlibpath_var=LD_LIBRARY_PATH
  7694. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7695. case $host_os in
  7696. openbsd2.[89] | openbsd2.[89].*)
  7697. shlibpath_overrides_runpath=no
  7698. ;;
  7699. *)
  7700. shlibpath_overrides_runpath=yes
  7701. ;;
  7702. esac
  7703. else
  7704. shlibpath_overrides_runpath=yes
  7705. fi
  7706. ;;
  7707. os2*)
  7708. libname_spec='$name'
  7709. shrext_cmds=".dll"
  7710. need_lib_prefix=no
  7711. library_names_spec='$libname${shared_ext} $libname.a'
  7712. dynamic_linker='OS/2 ld.exe'
  7713. shlibpath_var=LIBPATH
  7714. ;;
  7715. osf3* | osf4* | osf5*)
  7716. version_type=osf
  7717. need_lib_prefix=no
  7718. need_version=no
  7719. soname_spec='${libname}${release}${shared_ext}$major'
  7720. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7721. shlibpath_var=LD_LIBRARY_PATH
  7722. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  7723. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  7724. ;;
  7725. solaris*)
  7726. version_type=linux
  7727. need_lib_prefix=no
  7728. need_version=no
  7729. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7730. soname_spec='${libname}${release}${shared_ext}$major'
  7731. shlibpath_var=LD_LIBRARY_PATH
  7732. shlibpath_overrides_runpath=yes
  7733. hardcode_into_libs=yes
  7734. # ldd complains unless libraries are executable
  7735. postinstall_cmds='chmod +x $lib'
  7736. ;;
  7737. sunos4*)
  7738. version_type=sunos
  7739. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7740. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  7741. shlibpath_var=LD_LIBRARY_PATH
  7742. shlibpath_overrides_runpath=yes
  7743. if test "$with_gnu_ld" = yes; then
  7744. need_lib_prefix=no
  7745. fi
  7746. need_version=yes
  7747. ;;
  7748. sysv4 | sysv4.3*)
  7749. version_type=linux
  7750. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7751. soname_spec='${libname}${release}${shared_ext}$major'
  7752. shlibpath_var=LD_LIBRARY_PATH
  7753. case $host_vendor in
  7754. sni)
  7755. shlibpath_overrides_runpath=no
  7756. need_lib_prefix=no
  7757. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7758. runpath_var=LD_RUN_PATH
  7759. ;;
  7760. siemens)
  7761. need_lib_prefix=no
  7762. ;;
  7763. motorola)
  7764. need_lib_prefix=no
  7765. need_version=no
  7766. shlibpath_overrides_runpath=no
  7767. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  7768. ;;
  7769. esac
  7770. ;;
  7771. sysv4*MP*)
  7772. if test -d /usr/nec ;then
  7773. version_type=linux
  7774. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  7775. soname_spec='$libname${shared_ext}.$major'
  7776. shlibpath_var=LD_LIBRARY_PATH
  7777. fi
  7778. ;;
  7779. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7780. version_type=freebsd-elf
  7781. need_lib_prefix=no
  7782. need_version=no
  7783. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7784. soname_spec='${libname}${release}${shared_ext}$major'
  7785. shlibpath_var=LD_LIBRARY_PATH
  7786. hardcode_into_libs=yes
  7787. if test "$with_gnu_ld" = yes; then
  7788. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  7789. shlibpath_overrides_runpath=no
  7790. else
  7791. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  7792. shlibpath_overrides_runpath=yes
  7793. case $host_os in
  7794. sco3.2v5*)
  7795. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  7796. ;;
  7797. esac
  7798. fi
  7799. sys_lib_dlsearch_path_spec='/usr/lib'
  7800. ;;
  7801. uts4*)
  7802. version_type=linux
  7803. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7804. soname_spec='${libname}${release}${shared_ext}$major'
  7805. shlibpath_var=LD_LIBRARY_PATH
  7806. ;;
  7807. *)
  7808. dynamic_linker=no
  7809. ;;
  7810. esac
  7811. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  7812. echo "${ECHO_T}$dynamic_linker" >&6
  7813. test "$dynamic_linker" = no && can_build_shared=no
  7814. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7815. if test "$GCC" = yes; then
  7816. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7817. fi
  7818. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  7819. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  7820. hardcode_action=
  7821. if test -n "$hardcode_libdir_flag_spec" || \
  7822. test -n "$runpath_var" || \
  7823. test "X$hardcode_automatic" = "Xyes" ; then
  7824. # We can hardcode non-existant directories.
  7825. if test "$hardcode_direct" != no &&
  7826. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  7827. # have to relink, otherwise we might link with an installed library
  7828. # when we should be linking with a yet-to-be-installed one
  7829. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  7830. test "$hardcode_minus_L" != no; then
  7831. # Linking always hardcodes the temporary library directory.
  7832. hardcode_action=relink
  7833. else
  7834. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  7835. hardcode_action=immediate
  7836. fi
  7837. else
  7838. # We cannot hardcode anything, or else we can only hardcode existing
  7839. # directories.
  7840. hardcode_action=unsupported
  7841. fi
  7842. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  7843. echo "${ECHO_T}$hardcode_action" >&6
  7844. if test "$hardcode_action" = relink; then
  7845. # Fast installation is not supported
  7846. enable_fast_install=no
  7847. elif test "$shlibpath_overrides_runpath" = yes ||
  7848. test "$enable_shared" = no; then
  7849. # Fast installation is not necessary
  7850. enable_fast_install=needless
  7851. fi
  7852. striplib=
  7853. old_striplib=
  7854. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  7855. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  7856. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  7857. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  7858. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  7859. echo "$as_me:$LINENO: result: yes" >&5
  7860. echo "${ECHO_T}yes" >&6
  7861. else
  7862. # FIXME - insert some real tests, host_os isn't really good enough
  7863. case $host_os in
  7864. darwin*)
  7865. if test -n "$STRIP" ; then
  7866. striplib="$STRIP -x"
  7867. echo "$as_me:$LINENO: result: yes" >&5
  7868. echo "${ECHO_T}yes" >&6
  7869. else
  7870. echo "$as_me:$LINENO: result: no" >&5
  7871. echo "${ECHO_T}no" >&6
  7872. fi
  7873. ;;
  7874. *)
  7875. echo "$as_me:$LINENO: result: no" >&5
  7876. echo "${ECHO_T}no" >&6
  7877. ;;
  7878. esac
  7879. fi
  7880. if test "x$enable_dlopen" != xyes; then
  7881. enable_dlopen=unknown
  7882. enable_dlopen_self=unknown
  7883. enable_dlopen_self_static=unknown
  7884. else
  7885. lt_cv_dlopen=no
  7886. lt_cv_dlopen_libs=
  7887. case $host_os in
  7888. beos*)
  7889. lt_cv_dlopen="load_add_on"
  7890. lt_cv_dlopen_libs=
  7891. lt_cv_dlopen_self=yes
  7892. ;;
  7893. mingw* | pw32*)
  7894. lt_cv_dlopen="LoadLibrary"
  7895. lt_cv_dlopen_libs=
  7896. ;;
  7897. cygwin*)
  7898. lt_cv_dlopen="dlopen"
  7899. lt_cv_dlopen_libs=
  7900. ;;
  7901. darwin*)
  7902. # if libdl is installed we need to link against it
  7903. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7904. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7905. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7906. echo $ECHO_N "(cached) $ECHO_C" >&6
  7907. else
  7908. ac_check_lib_save_LIBS=$LIBS
  7909. LIBS="-ldl $LIBS"
  7910. cat >conftest.$ac_ext <<_ACEOF
  7911. /* confdefs.h. */
  7912. _ACEOF
  7913. cat confdefs.h >>conftest.$ac_ext
  7914. cat >>conftest.$ac_ext <<_ACEOF
  7915. /* end confdefs.h. */
  7916. /* Override any gcc2 internal prototype to avoid an error. */
  7917. #ifdef __cplusplus
  7918. extern "C"
  7919. #endif
  7920. /* We use char because int might match the return type of a gcc2
  7921. builtin and then its argument prototype would still apply. */
  7922. char dlopen ();
  7923. int
  7924. main ()
  7925. {
  7926. dlopen ();
  7927. ;
  7928. return 0;
  7929. }
  7930. _ACEOF
  7931. rm -f conftest.$ac_objext conftest$ac_exeext
  7932. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7933. (eval $ac_link) 2>conftest.er1
  7934. ac_status=$?
  7935. grep -v '^ *+' conftest.er1 >conftest.err
  7936. rm -f conftest.er1
  7937. cat conftest.err >&5
  7938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7939. (exit $ac_status); } &&
  7940. { ac_try='test -z "$ac_c_werror_flag"
  7941. || test ! -s conftest.err'
  7942. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7943. (eval $ac_try) 2>&5
  7944. ac_status=$?
  7945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7946. (exit $ac_status); }; } &&
  7947. { ac_try='test -s conftest$ac_exeext'
  7948. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7949. (eval $ac_try) 2>&5
  7950. ac_status=$?
  7951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7952. (exit $ac_status); }; }; then
  7953. ac_cv_lib_dl_dlopen=yes
  7954. else
  7955. echo "$as_me: failed program was:" >&5
  7956. sed 's/^/| /' conftest.$ac_ext >&5
  7957. ac_cv_lib_dl_dlopen=no
  7958. fi
  7959. rm -f conftest.err conftest.$ac_objext \
  7960. conftest$ac_exeext conftest.$ac_ext
  7961. LIBS=$ac_check_lib_save_LIBS
  7962. fi
  7963. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7964. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7965. if test $ac_cv_lib_dl_dlopen = yes; then
  7966. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7967. else
  7968. lt_cv_dlopen="dyld"
  7969. lt_cv_dlopen_libs=
  7970. lt_cv_dlopen_self=yes
  7971. fi
  7972. ;;
  7973. *)
  7974. echo "$as_me:$LINENO: checking for shl_load" >&5
  7975. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  7976. if test "${ac_cv_func_shl_load+set}" = set; then
  7977. echo $ECHO_N "(cached) $ECHO_C" >&6
  7978. else
  7979. cat >conftest.$ac_ext <<_ACEOF
  7980. /* confdefs.h. */
  7981. _ACEOF
  7982. cat confdefs.h >>conftest.$ac_ext
  7983. cat >>conftest.$ac_ext <<_ACEOF
  7984. /* end confdefs.h. */
  7985. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  7986. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7987. #define shl_load innocuous_shl_load
  7988. /* System header to define __stub macros and hopefully few prototypes,
  7989. which can conflict with char shl_load (); below.
  7990. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7991. <limits.h> exists even on freestanding compilers. */
  7992. #ifdef __STDC__
  7993. # include <limits.h>
  7994. #else
  7995. # include <assert.h>
  7996. #endif
  7997. #undef shl_load
  7998. /* Override any gcc2 internal prototype to avoid an error. */
  7999. #ifdef __cplusplus
  8000. extern "C"
  8001. {
  8002. #endif
  8003. /* We use char because int might match the return type of a gcc2
  8004. builtin and then its argument prototype would still apply. */
  8005. char shl_load ();
  8006. /* The GNU C library defines this for functions which it implements
  8007. to always fail with ENOSYS. Some functions are actually named
  8008. something starting with __ and the normal name is an alias. */
  8009. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  8010. choke me
  8011. #else
  8012. char (*f) () = shl_load;
  8013. #endif
  8014. #ifdef __cplusplus
  8015. }
  8016. #endif
  8017. int
  8018. main ()
  8019. {
  8020. return f != shl_load;
  8021. ;
  8022. return 0;
  8023. }
  8024. _ACEOF
  8025. rm -f conftest.$ac_objext conftest$ac_exeext
  8026. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8027. (eval $ac_link) 2>conftest.er1
  8028. ac_status=$?
  8029. grep -v '^ *+' conftest.er1 >conftest.err
  8030. rm -f conftest.er1
  8031. cat conftest.err >&5
  8032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8033. (exit $ac_status); } &&
  8034. { ac_try='test -z "$ac_c_werror_flag"
  8035. || test ! -s conftest.err'
  8036. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8037. (eval $ac_try) 2>&5
  8038. ac_status=$?
  8039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8040. (exit $ac_status); }; } &&
  8041. { ac_try='test -s conftest$ac_exeext'
  8042. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8043. (eval $ac_try) 2>&5
  8044. ac_status=$?
  8045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8046. (exit $ac_status); }; }; then
  8047. ac_cv_func_shl_load=yes
  8048. else
  8049. echo "$as_me: failed program was:" >&5
  8050. sed 's/^/| /' conftest.$ac_ext >&5
  8051. ac_cv_func_shl_load=no
  8052. fi
  8053. rm -f conftest.err conftest.$ac_objext \
  8054. conftest$ac_exeext conftest.$ac_ext
  8055. fi
  8056. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8057. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  8058. if test $ac_cv_func_shl_load = yes; then
  8059. lt_cv_dlopen="shl_load"
  8060. else
  8061. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8062. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  8063. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8064. echo $ECHO_N "(cached) $ECHO_C" >&6
  8065. else
  8066. ac_check_lib_save_LIBS=$LIBS
  8067. LIBS="-ldld $LIBS"
  8068. cat >conftest.$ac_ext <<_ACEOF
  8069. /* confdefs.h. */
  8070. _ACEOF
  8071. cat confdefs.h >>conftest.$ac_ext
  8072. cat >>conftest.$ac_ext <<_ACEOF
  8073. /* end confdefs.h. */
  8074. /* Override any gcc2 internal prototype to avoid an error. */
  8075. #ifdef __cplusplus
  8076. extern "C"
  8077. #endif
  8078. /* We use char because int might match the return type of a gcc2
  8079. builtin and then its argument prototype would still apply. */
  8080. char shl_load ();
  8081. int
  8082. main ()
  8083. {
  8084. shl_load ();
  8085. ;
  8086. return 0;
  8087. }
  8088. _ACEOF
  8089. rm -f conftest.$ac_objext conftest$ac_exeext
  8090. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8091. (eval $ac_link) 2>conftest.er1
  8092. ac_status=$?
  8093. grep -v '^ *+' conftest.er1 >conftest.err
  8094. rm -f conftest.er1
  8095. cat conftest.err >&5
  8096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8097. (exit $ac_status); } &&
  8098. { ac_try='test -z "$ac_c_werror_flag"
  8099. || test ! -s conftest.err'
  8100. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8101. (eval $ac_try) 2>&5
  8102. ac_status=$?
  8103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8104. (exit $ac_status); }; } &&
  8105. { ac_try='test -s conftest$ac_exeext'
  8106. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8107. (eval $ac_try) 2>&5
  8108. ac_status=$?
  8109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8110. (exit $ac_status); }; }; then
  8111. ac_cv_lib_dld_shl_load=yes
  8112. else
  8113. echo "$as_me: failed program was:" >&5
  8114. sed 's/^/| /' conftest.$ac_ext >&5
  8115. ac_cv_lib_dld_shl_load=no
  8116. fi
  8117. rm -f conftest.err conftest.$ac_objext \
  8118. conftest$ac_exeext conftest.$ac_ext
  8119. LIBS=$ac_check_lib_save_LIBS
  8120. fi
  8121. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8122. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  8123. if test $ac_cv_lib_dld_shl_load = yes; then
  8124. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8125. else
  8126. echo "$as_me:$LINENO: checking for dlopen" >&5
  8127. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  8128. if test "${ac_cv_func_dlopen+set}" = set; then
  8129. echo $ECHO_N "(cached) $ECHO_C" >&6
  8130. else
  8131. cat >conftest.$ac_ext <<_ACEOF
  8132. /* confdefs.h. */
  8133. _ACEOF
  8134. cat confdefs.h >>conftest.$ac_ext
  8135. cat >>conftest.$ac_ext <<_ACEOF
  8136. /* end confdefs.h. */
  8137. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8138. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8139. #define dlopen innocuous_dlopen
  8140. /* System header to define __stub macros and hopefully few prototypes,
  8141. which can conflict with char dlopen (); below.
  8142. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8143. <limits.h> exists even on freestanding compilers. */
  8144. #ifdef __STDC__
  8145. # include <limits.h>
  8146. #else
  8147. # include <assert.h>
  8148. #endif
  8149. #undef dlopen
  8150. /* Override any gcc2 internal prototype to avoid an error. */
  8151. #ifdef __cplusplus
  8152. extern "C"
  8153. {
  8154. #endif
  8155. /* We use char because int might match the return type of a gcc2
  8156. builtin and then its argument prototype would still apply. */
  8157. char dlopen ();
  8158. /* The GNU C library defines this for functions which it implements
  8159. to always fail with ENOSYS. Some functions are actually named
  8160. something starting with __ and the normal name is an alias. */
  8161. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  8162. choke me
  8163. #else
  8164. char (*f) () = dlopen;
  8165. #endif
  8166. #ifdef __cplusplus
  8167. }
  8168. #endif
  8169. int
  8170. main ()
  8171. {
  8172. return f != dlopen;
  8173. ;
  8174. return 0;
  8175. }
  8176. _ACEOF
  8177. rm -f conftest.$ac_objext conftest$ac_exeext
  8178. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8179. (eval $ac_link) 2>conftest.er1
  8180. ac_status=$?
  8181. grep -v '^ *+' conftest.er1 >conftest.err
  8182. rm -f conftest.er1
  8183. cat conftest.err >&5
  8184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8185. (exit $ac_status); } &&
  8186. { ac_try='test -z "$ac_c_werror_flag"
  8187. || test ! -s conftest.err'
  8188. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8189. (eval $ac_try) 2>&5
  8190. ac_status=$?
  8191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8192. (exit $ac_status); }; } &&
  8193. { ac_try='test -s conftest$ac_exeext'
  8194. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8195. (eval $ac_try) 2>&5
  8196. ac_status=$?
  8197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8198. (exit $ac_status); }; }; then
  8199. ac_cv_func_dlopen=yes
  8200. else
  8201. echo "$as_me: failed program was:" >&5
  8202. sed 's/^/| /' conftest.$ac_ext >&5
  8203. ac_cv_func_dlopen=no
  8204. fi
  8205. rm -f conftest.err conftest.$ac_objext \
  8206. conftest$ac_exeext conftest.$ac_ext
  8207. fi
  8208. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8209. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  8210. if test $ac_cv_func_dlopen = yes; then
  8211. lt_cv_dlopen="dlopen"
  8212. else
  8213. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8214. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  8215. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8216. echo $ECHO_N "(cached) $ECHO_C" >&6
  8217. else
  8218. ac_check_lib_save_LIBS=$LIBS
  8219. LIBS="-ldl $LIBS"
  8220. cat >conftest.$ac_ext <<_ACEOF
  8221. /* confdefs.h. */
  8222. _ACEOF
  8223. cat confdefs.h >>conftest.$ac_ext
  8224. cat >>conftest.$ac_ext <<_ACEOF
  8225. /* end confdefs.h. */
  8226. /* Override any gcc2 internal prototype to avoid an error. */
  8227. #ifdef __cplusplus
  8228. extern "C"
  8229. #endif
  8230. /* We use char because int might match the return type of a gcc2
  8231. builtin and then its argument prototype would still apply. */
  8232. char dlopen ();
  8233. int
  8234. main ()
  8235. {
  8236. dlopen ();
  8237. ;
  8238. return 0;
  8239. }
  8240. _ACEOF
  8241. rm -f conftest.$ac_objext conftest$ac_exeext
  8242. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8243. (eval $ac_link) 2>conftest.er1
  8244. ac_status=$?
  8245. grep -v '^ *+' conftest.er1 >conftest.err
  8246. rm -f conftest.er1
  8247. cat conftest.err >&5
  8248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8249. (exit $ac_status); } &&
  8250. { ac_try='test -z "$ac_c_werror_flag"
  8251. || test ! -s conftest.err'
  8252. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8253. (eval $ac_try) 2>&5
  8254. ac_status=$?
  8255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8256. (exit $ac_status); }; } &&
  8257. { ac_try='test -s conftest$ac_exeext'
  8258. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8259. (eval $ac_try) 2>&5
  8260. ac_status=$?
  8261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8262. (exit $ac_status); }; }; then
  8263. ac_cv_lib_dl_dlopen=yes
  8264. else
  8265. echo "$as_me: failed program was:" >&5
  8266. sed 's/^/| /' conftest.$ac_ext >&5
  8267. ac_cv_lib_dl_dlopen=no
  8268. fi
  8269. rm -f conftest.err conftest.$ac_objext \
  8270. conftest$ac_exeext conftest.$ac_ext
  8271. LIBS=$ac_check_lib_save_LIBS
  8272. fi
  8273. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8274. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  8275. if test $ac_cv_lib_dl_dlopen = yes; then
  8276. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8277. else
  8278. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8279. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  8280. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8281. echo $ECHO_N "(cached) $ECHO_C" >&6
  8282. else
  8283. ac_check_lib_save_LIBS=$LIBS
  8284. LIBS="-lsvld $LIBS"
  8285. cat >conftest.$ac_ext <<_ACEOF
  8286. /* confdefs.h. */
  8287. _ACEOF
  8288. cat confdefs.h >>conftest.$ac_ext
  8289. cat >>conftest.$ac_ext <<_ACEOF
  8290. /* end confdefs.h. */
  8291. /* Override any gcc2 internal prototype to avoid an error. */
  8292. #ifdef __cplusplus
  8293. extern "C"
  8294. #endif
  8295. /* We use char because int might match the return type of a gcc2
  8296. builtin and then its argument prototype would still apply. */
  8297. char dlopen ();
  8298. int
  8299. main ()
  8300. {
  8301. dlopen ();
  8302. ;
  8303. return 0;
  8304. }
  8305. _ACEOF
  8306. rm -f conftest.$ac_objext conftest$ac_exeext
  8307. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8308. (eval $ac_link) 2>conftest.er1
  8309. ac_status=$?
  8310. grep -v '^ *+' conftest.er1 >conftest.err
  8311. rm -f conftest.er1
  8312. cat conftest.err >&5
  8313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8314. (exit $ac_status); } &&
  8315. { ac_try='test -z "$ac_c_werror_flag"
  8316. || test ! -s conftest.err'
  8317. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8318. (eval $ac_try) 2>&5
  8319. ac_status=$?
  8320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8321. (exit $ac_status); }; } &&
  8322. { ac_try='test -s conftest$ac_exeext'
  8323. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8324. (eval $ac_try) 2>&5
  8325. ac_status=$?
  8326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8327. (exit $ac_status); }; }; then
  8328. ac_cv_lib_svld_dlopen=yes
  8329. else
  8330. echo "$as_me: failed program was:" >&5
  8331. sed 's/^/| /' conftest.$ac_ext >&5
  8332. ac_cv_lib_svld_dlopen=no
  8333. fi
  8334. rm -f conftest.err conftest.$ac_objext \
  8335. conftest$ac_exeext conftest.$ac_ext
  8336. LIBS=$ac_check_lib_save_LIBS
  8337. fi
  8338. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8339. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  8340. if test $ac_cv_lib_svld_dlopen = yes; then
  8341. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8342. else
  8343. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8344. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  8345. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8346. echo $ECHO_N "(cached) $ECHO_C" >&6
  8347. else
  8348. ac_check_lib_save_LIBS=$LIBS
  8349. LIBS="-ldld $LIBS"
  8350. cat >conftest.$ac_ext <<_ACEOF
  8351. /* confdefs.h. */
  8352. _ACEOF
  8353. cat confdefs.h >>conftest.$ac_ext
  8354. cat >>conftest.$ac_ext <<_ACEOF
  8355. /* end confdefs.h. */
  8356. /* Override any gcc2 internal prototype to avoid an error. */
  8357. #ifdef __cplusplus
  8358. extern "C"
  8359. #endif
  8360. /* We use char because int might match the return type of a gcc2
  8361. builtin and then its argument prototype would still apply. */
  8362. char dld_link ();
  8363. int
  8364. main ()
  8365. {
  8366. dld_link ();
  8367. ;
  8368. return 0;
  8369. }
  8370. _ACEOF
  8371. rm -f conftest.$ac_objext conftest$ac_exeext
  8372. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8373. (eval $ac_link) 2>conftest.er1
  8374. ac_status=$?
  8375. grep -v '^ *+' conftest.er1 >conftest.err
  8376. rm -f conftest.er1
  8377. cat conftest.err >&5
  8378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8379. (exit $ac_status); } &&
  8380. { ac_try='test -z "$ac_c_werror_flag"
  8381. || test ! -s conftest.err'
  8382. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8383. (eval $ac_try) 2>&5
  8384. ac_status=$?
  8385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8386. (exit $ac_status); }; } &&
  8387. { ac_try='test -s conftest$ac_exeext'
  8388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8389. (eval $ac_try) 2>&5
  8390. ac_status=$?
  8391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8392. (exit $ac_status); }; }; then
  8393. ac_cv_lib_dld_dld_link=yes
  8394. else
  8395. echo "$as_me: failed program was:" >&5
  8396. sed 's/^/| /' conftest.$ac_ext >&5
  8397. ac_cv_lib_dld_dld_link=no
  8398. fi
  8399. rm -f conftest.err conftest.$ac_objext \
  8400. conftest$ac_exeext conftest.$ac_ext
  8401. LIBS=$ac_check_lib_save_LIBS
  8402. fi
  8403. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8404. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  8405. if test $ac_cv_lib_dld_dld_link = yes; then
  8406. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  8407. fi
  8408. fi
  8409. fi
  8410. fi
  8411. fi
  8412. fi
  8413. ;;
  8414. esac
  8415. if test "x$lt_cv_dlopen" != xno; then
  8416. enable_dlopen=yes
  8417. else
  8418. enable_dlopen=no
  8419. fi
  8420. case $lt_cv_dlopen in
  8421. dlopen)
  8422. save_CPPFLAGS="$CPPFLAGS"
  8423. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8424. save_LDFLAGS="$LDFLAGS"
  8425. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8426. save_LIBS="$LIBS"
  8427. LIBS="$lt_cv_dlopen_libs $LIBS"
  8428. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8429. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  8430. if test "${lt_cv_dlopen_self+set}" = set; then
  8431. echo $ECHO_N "(cached) $ECHO_C" >&6
  8432. else
  8433. if test "$cross_compiling" = yes; then :
  8434. lt_cv_dlopen_self=cross
  8435. else
  8436. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8437. lt_status=$lt_dlunknown
  8438. cat > conftest.$ac_ext <<EOF
  8439. #line 9291 "configure"
  8440. #include "confdefs.h"
  8441. #if HAVE_DLFCN_H
  8442. #include <dlfcn.h>
  8443. #endif
  8444. #include <stdio.h>
  8445. #ifdef RTLD_GLOBAL
  8446. # define LT_DLGLOBAL RTLD_GLOBAL
  8447. #else
  8448. # ifdef DL_GLOBAL
  8449. # define LT_DLGLOBAL DL_GLOBAL
  8450. # else
  8451. # define LT_DLGLOBAL 0
  8452. # endif
  8453. #endif
  8454. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8455. find out it does not work in some platform. */
  8456. #ifndef LT_DLLAZY_OR_NOW
  8457. # ifdef RTLD_LAZY
  8458. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8459. # else
  8460. # ifdef DL_LAZY
  8461. # define LT_DLLAZY_OR_NOW DL_LAZY
  8462. # else
  8463. # ifdef RTLD_NOW
  8464. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8465. # else
  8466. # ifdef DL_NOW
  8467. # define LT_DLLAZY_OR_NOW DL_NOW
  8468. # else
  8469. # define LT_DLLAZY_OR_NOW 0
  8470. # endif
  8471. # endif
  8472. # endif
  8473. # endif
  8474. #endif
  8475. #ifdef __cplusplus
  8476. extern "C" void exit (int);
  8477. #endif
  8478. void fnord() { int i=42;}
  8479. int main ()
  8480. {
  8481. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8482. int status = $lt_dlunknown;
  8483. if (self)
  8484. {
  8485. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8486. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8487. /* dlclose (self); */
  8488. }
  8489. else
  8490. puts (dlerror ());
  8491. exit (status);
  8492. }
  8493. EOF
  8494. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8495. (eval $ac_link) 2>&5
  8496. ac_status=$?
  8497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8498. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8499. (./conftest; exit; ) >&5 2>/dev/null
  8500. lt_status=$?
  8501. case x$lt_status in
  8502. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8503. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8504. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  8505. esac
  8506. else :
  8507. # compilation failed
  8508. lt_cv_dlopen_self=no
  8509. fi
  8510. fi
  8511. rm -fr conftest*
  8512. fi
  8513. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8514. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  8515. if test "x$lt_cv_dlopen_self" = xyes; then
  8516. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  8517. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8518. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  8519. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8520. echo $ECHO_N "(cached) $ECHO_C" >&6
  8521. else
  8522. if test "$cross_compiling" = yes; then :
  8523. lt_cv_dlopen_self_static=cross
  8524. else
  8525. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8526. lt_status=$lt_dlunknown
  8527. cat > conftest.$ac_ext <<EOF
  8528. #line 9391 "configure"
  8529. #include "confdefs.h"
  8530. #if HAVE_DLFCN_H
  8531. #include <dlfcn.h>
  8532. #endif
  8533. #include <stdio.h>
  8534. #ifdef RTLD_GLOBAL
  8535. # define LT_DLGLOBAL RTLD_GLOBAL
  8536. #else
  8537. # ifdef DL_GLOBAL
  8538. # define LT_DLGLOBAL DL_GLOBAL
  8539. # else
  8540. # define LT_DLGLOBAL 0
  8541. # endif
  8542. #endif
  8543. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8544. find out it does not work in some platform. */
  8545. #ifndef LT_DLLAZY_OR_NOW
  8546. # ifdef RTLD_LAZY
  8547. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8548. # else
  8549. # ifdef DL_LAZY
  8550. # define LT_DLLAZY_OR_NOW DL_LAZY
  8551. # else
  8552. # ifdef RTLD_NOW
  8553. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8554. # else
  8555. # ifdef DL_NOW
  8556. # define LT_DLLAZY_OR_NOW DL_NOW
  8557. # else
  8558. # define LT_DLLAZY_OR_NOW 0
  8559. # endif
  8560. # endif
  8561. # endif
  8562. # endif
  8563. #endif
  8564. #ifdef __cplusplus
  8565. extern "C" void exit (int);
  8566. #endif
  8567. void fnord() { int i=42;}
  8568. int main ()
  8569. {
  8570. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8571. int status = $lt_dlunknown;
  8572. if (self)
  8573. {
  8574. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8575. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8576. /* dlclose (self); */
  8577. }
  8578. else
  8579. puts (dlerror ());
  8580. exit (status);
  8581. }
  8582. EOF
  8583. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8584. (eval $ac_link) 2>&5
  8585. ac_status=$?
  8586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8587. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8588. (./conftest; exit; ) >&5 2>/dev/null
  8589. lt_status=$?
  8590. case x$lt_status in
  8591. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8592. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8593. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  8594. esac
  8595. else :
  8596. # compilation failed
  8597. lt_cv_dlopen_self_static=no
  8598. fi
  8599. fi
  8600. rm -fr conftest*
  8601. fi
  8602. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  8603. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  8604. fi
  8605. CPPFLAGS="$save_CPPFLAGS"
  8606. LDFLAGS="$save_LDFLAGS"
  8607. LIBS="$save_LIBS"
  8608. ;;
  8609. esac
  8610. case $lt_cv_dlopen_self in
  8611. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8612. *) enable_dlopen_self=unknown ;;
  8613. esac
  8614. case $lt_cv_dlopen_self_static in
  8615. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8616. *) enable_dlopen_self_static=unknown ;;
  8617. esac
  8618. fi
  8619. # Report which library types will actually be built
  8620. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  8621. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  8622. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  8623. echo "${ECHO_T}$can_build_shared" >&6
  8624. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  8625. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  8626. test "$can_build_shared" = "no" && enable_shared=no
  8627. # On AIX, shared libraries and static libraries use the same namespace, and
  8628. # are all built from PIC.
  8629. case $host_os in
  8630. aix3*)
  8631. test "$enable_shared" = yes && enable_static=no
  8632. if test -n "$RANLIB"; then
  8633. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8634. postinstall_cmds='$RANLIB $lib'
  8635. fi
  8636. ;;
  8637. aix4* | aix5*)
  8638. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8639. test "$enable_shared" = yes && enable_static=no
  8640. fi
  8641. ;;
  8642. esac
  8643. echo "$as_me:$LINENO: result: $enable_shared" >&5
  8644. echo "${ECHO_T}$enable_shared" >&6
  8645. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  8646. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  8647. # Make sure either enable_shared or enable_static is yes.
  8648. test "$enable_shared" = yes || enable_static=yes
  8649. echo "$as_me:$LINENO: result: $enable_static" >&5
  8650. echo "${ECHO_T}$enable_static" >&6
  8651. # The else clause should only fire when bootstrapping the
  8652. # libtool distribution, otherwise you forgot to ship ltmain.sh
  8653. # with your package, and you will get complaints that there are
  8654. # no rules to generate ltmain.sh.
  8655. if test -f "$ltmain"; then
  8656. # See if we are running on zsh, and set the options which allow our commands through
  8657. # without removal of \ escapes.
  8658. if test -n "${ZSH_VERSION+set}" ; then
  8659. setopt NO_GLOB_SUBST
  8660. fi
  8661. # Now quote all the things that may contain metacharacters while being
  8662. # careful not to overquote the AC_SUBSTed values. We take copies of the
  8663. # variables and quote the copies for generation of the libtool script.
  8664. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  8665. SED SHELL STRIP \
  8666. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  8667. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  8668. deplibs_check_method reload_flag reload_cmds need_locks \
  8669. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  8670. lt_cv_sys_global_symbol_to_c_name_address \
  8671. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  8672. old_postinstall_cmds old_postuninstall_cmds \
  8673. compiler \
  8674. CC \
  8675. LD \
  8676. lt_prog_compiler_wl \
  8677. lt_prog_compiler_pic \
  8678. lt_prog_compiler_static \
  8679. lt_prog_compiler_no_builtin_flag \
  8680. export_dynamic_flag_spec \
  8681. thread_safe_flag_spec \
  8682. whole_archive_flag_spec \
  8683. enable_shared_with_static_runtimes \
  8684. old_archive_cmds \
  8685. old_archive_from_new_cmds \
  8686. predep_objects \
  8687. postdep_objects \
  8688. predeps \
  8689. postdeps \
  8690. compiler_lib_search_path \
  8691. archive_cmds \
  8692. archive_expsym_cmds \
  8693. postinstall_cmds \
  8694. postuninstall_cmds \
  8695. old_archive_from_expsyms_cmds \
  8696. allow_undefined_flag \
  8697. no_undefined_flag \
  8698. export_symbols_cmds \
  8699. hardcode_libdir_flag_spec \
  8700. hardcode_libdir_flag_spec_ld \
  8701. hardcode_libdir_separator \
  8702. hardcode_automatic \
  8703. module_cmds \
  8704. module_expsym_cmds \
  8705. lt_cv_prog_compiler_c_o \
  8706. exclude_expsyms \
  8707. include_expsyms; do
  8708. case $var in
  8709. old_archive_cmds | \
  8710. old_archive_from_new_cmds | \
  8711. archive_cmds | \
  8712. archive_expsym_cmds | \
  8713. module_cmds | \
  8714. module_expsym_cmds | \
  8715. old_archive_from_expsyms_cmds | \
  8716. export_symbols_cmds | \
  8717. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  8718. postinstall_cmds | postuninstall_cmds | \
  8719. old_postinstall_cmds | old_postuninstall_cmds | \
  8720. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  8721. # Double-quote double-evaled strings.
  8722. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  8723. ;;
  8724. *)
  8725. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  8726. ;;
  8727. esac
  8728. done
  8729. case $lt_echo in
  8730. *'\$0 --fallback-echo"')
  8731. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  8732. ;;
  8733. esac
  8734. cfgfile="${ofile}T"
  8735. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  8736. $rm -f "$cfgfile"
  8737. { echo "$as_me:$LINENO: creating $ofile" >&5
  8738. echo "$as_me: creating $ofile" >&6;}
  8739. cat <<__EOF__ >> "$cfgfile"
  8740. #! $SHELL
  8741. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  8742. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  8743. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  8744. #
  8745. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  8746. # Free Software Foundation, Inc.
  8747. #
  8748. # This file is part of GNU Libtool:
  8749. # Originally by Gordon Matzigkeit <[email protected]>, 1996
  8750. #
  8751. # This program is free software; you can redistribute it and/or modify
  8752. # it under the terms of the GNU General Public License as published by
  8753. # the Free Software Foundation; either version 2 of the License, or
  8754. # (at your option) any later version.
  8755. #
  8756. # This program is distributed in the hope that it will be useful, but
  8757. # WITHOUT ANY WARRANTY; without even the implied warranty of
  8758. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  8759. # General Public License for more details.
  8760. #
  8761. # You should have received a copy of the GNU General Public License
  8762. # along with this program; if not, write to the Free Software
  8763. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  8764. #
  8765. # As a special exception to the GNU General Public License, if you
  8766. # distribute this file as part of a program that contains a
  8767. # configuration script generated by Autoconf, you may include it under
  8768. # the same distribution terms that you use for the rest of that program.
  8769. # A sed program that does not truncate output.
  8770. SED=$lt_SED
  8771. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  8772. Xsed="$SED -e 1s/^X//"
  8773. # The HP-UX ksh and POSIX shell print the target directory to stdout
  8774. # if CDPATH is set.
  8775. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8776. # The names of the tagged configurations supported by this script.
  8777. available_tags=
  8778. # ### BEGIN LIBTOOL CONFIG
  8779. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8780. # Shell to use when invoking shell scripts.
  8781. SHELL=$lt_SHELL
  8782. # Whether or not to build shared libraries.
  8783. build_libtool_libs=$enable_shared
  8784. # Whether or not to build static libraries.
  8785. build_old_libs=$enable_static
  8786. # Whether or not to add -lc for building shared libraries.
  8787. build_libtool_need_lc=$archive_cmds_need_lc
  8788. # Whether or not to disallow shared libs when runtime libs are static
  8789. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  8790. # Whether or not to optimize for fast installation.
  8791. fast_install=$enable_fast_install
  8792. # The host system.
  8793. host_alias=$host_alias
  8794. host=$host
  8795. host_os=$host_os
  8796. # The build system.
  8797. build_alias=$build_alias
  8798. build=$build
  8799. build_os=$build_os
  8800. # An echo program that does not interpret backslashes.
  8801. echo=$lt_echo
  8802. # The archiver.
  8803. AR=$lt_AR
  8804. AR_FLAGS=$lt_AR_FLAGS
  8805. # A C compiler.
  8806. LTCC=$lt_LTCC
  8807. # LTCC compiler flags.
  8808. LTCFLAGS=$lt_LTCFLAGS
  8809. # A language-specific compiler.
  8810. CC=$lt_compiler
  8811. # Is the compiler the GNU C compiler?
  8812. with_gcc=$GCC
  8813. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  8814. gcc_ver=\`gcc -dumpversion\`
  8815. # An ERE matcher.
  8816. EGREP=$lt_EGREP
  8817. # The linker used to build libraries.
  8818. LD=$lt_LD
  8819. # Whether we need hard or soft links.
  8820. LN_S=$lt_LN_S
  8821. # A BSD-compatible nm program.
  8822. NM=$lt_NM
  8823. # A symbol stripping program
  8824. STRIP=$lt_STRIP
  8825. # Used to examine libraries when file_magic_cmd begins "file"
  8826. MAGIC_CMD=$MAGIC_CMD
  8827. # Used on cygwin: DLL creation program.
  8828. DLLTOOL="$DLLTOOL"
  8829. # Used on cygwin: object dumper.
  8830. OBJDUMP="$OBJDUMP"
  8831. # Used on cygwin: assembler.
  8832. AS="$AS"
  8833. # The name of the directory that contains temporary libtool files.
  8834. objdir=$objdir
  8835. # How to create reloadable object files.
  8836. reload_flag=$lt_reload_flag
  8837. reload_cmds=$lt_reload_cmds
  8838. # How to pass a linker flag through the compiler.
  8839. wl=$lt_lt_prog_compiler_wl
  8840. # Object file suffix (normally "o").
  8841. objext="$ac_objext"
  8842. # Old archive suffix (normally "a").
  8843. libext="$libext"
  8844. # Shared library suffix (normally ".so").
  8845. shrext_cmds='$shrext_cmds'
  8846. # Executable file suffix (normally "").
  8847. exeext="$exeext"
  8848. # Additional compiler flags for building library objects.
  8849. pic_flag=$lt_lt_prog_compiler_pic
  8850. pic_mode=$pic_mode
  8851. # What is the maximum length of a command?
  8852. max_cmd_len=$lt_cv_sys_max_cmd_len
  8853. # Does compiler simultaneously support -c and -o options?
  8854. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  8855. # Must we lock files when doing compilation?
  8856. need_locks=$lt_need_locks
  8857. # Do we need the lib prefix for modules?
  8858. need_lib_prefix=$need_lib_prefix
  8859. # Do we need a version for libraries?
  8860. need_version=$need_version
  8861. # Whether dlopen is supported.
  8862. dlopen_support=$enable_dlopen
  8863. # Whether dlopen of programs is supported.
  8864. dlopen_self=$enable_dlopen_self
  8865. # Whether dlopen of statically linked programs is supported.
  8866. dlopen_self_static=$enable_dlopen_self_static
  8867. # Compiler flag to prevent dynamic linking.
  8868. link_static_flag=$lt_lt_prog_compiler_static
  8869. # Compiler flag to turn off builtin functions.
  8870. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  8871. # Compiler flag to allow reflexive dlopens.
  8872. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  8873. # Compiler flag to generate shared objects directly from archives.
  8874. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  8875. # Compiler flag to generate thread-safe objects.
  8876. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  8877. # Library versioning type.
  8878. version_type=$version_type
  8879. # Format of library name prefix.
  8880. libname_spec=$lt_libname_spec
  8881. # List of archive names. First name is the real one, the rest are links.
  8882. # The last name is the one that the linker finds with -lNAME.
  8883. library_names_spec=$lt_library_names_spec
  8884. # The coded name of the library, if different from the real name.
  8885. soname_spec=$lt_soname_spec
  8886. # Commands used to build and install an old-style archive.
  8887. RANLIB=$lt_RANLIB
  8888. old_archive_cmds=$lt_old_archive_cmds
  8889. old_postinstall_cmds=$lt_old_postinstall_cmds
  8890. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8891. # Create an old-style archive from a shared archive.
  8892. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  8893. # Create a temporary old-style archive to link instead of a shared archive.
  8894. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  8895. # Commands used to build and install a shared archive.
  8896. archive_cmds=$lt_archive_cmds
  8897. archive_expsym_cmds=$lt_archive_expsym_cmds
  8898. postinstall_cmds=$lt_postinstall_cmds
  8899. postuninstall_cmds=$lt_postuninstall_cmds
  8900. # Commands used to build a loadable module (assumed same as above if empty)
  8901. module_cmds=$lt_module_cmds
  8902. module_expsym_cmds=$lt_module_expsym_cmds
  8903. # Commands to strip libraries.
  8904. old_striplib=$lt_old_striplib
  8905. striplib=$lt_striplib
  8906. # Dependencies to place before the objects being linked to create a
  8907. # shared library.
  8908. predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  8909. # Dependencies to place after the objects being linked to create a
  8910. # shared library.
  8911. postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  8912. # Dependencies to place before the objects being linked to create a
  8913. # shared library.
  8914. predeps=$lt_predeps
  8915. # Dependencies to place after the objects being linked to create a
  8916. # shared library.
  8917. postdeps=$lt_postdeps
  8918. # The library search path used internally by the compiler when linking
  8919. # a shared library.
  8920. compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  8921. # Method to check whether dependent libraries are shared objects.
  8922. deplibs_check_method=$lt_deplibs_check_method
  8923. # Command to use when deplibs_check_method == file_magic.
  8924. file_magic_cmd=$lt_file_magic_cmd
  8925. # Flag that allows shared libraries with undefined symbols to be built.
  8926. allow_undefined_flag=$lt_allow_undefined_flag
  8927. # Flag that forces no undefined symbols.
  8928. no_undefined_flag=$lt_no_undefined_flag
  8929. # Commands used to finish a libtool library installation in a directory.
  8930. finish_cmds=$lt_finish_cmds
  8931. # Same as above, but a single script fragment to be evaled but not shown.
  8932. finish_eval=$lt_finish_eval
  8933. # Take the output of nm and produce a listing of raw symbols and C names.
  8934. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8935. # Transform the output of nm in a proper C declaration
  8936. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8937. # Transform the output of nm in a C name address pair
  8938. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8939. # This is the shared library runtime path variable.
  8940. runpath_var=$runpath_var
  8941. # This is the shared library path variable.
  8942. shlibpath_var=$shlibpath_var
  8943. # Is shlibpath searched before the hard-coded library search path?
  8944. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8945. # How to hardcode a shared library path into an executable.
  8946. hardcode_action=$hardcode_action
  8947. # Whether we should hardcode library paths into libraries.
  8948. hardcode_into_libs=$hardcode_into_libs
  8949. # Flag to hardcode \$libdir into a binary during linking.
  8950. # This must work even if \$libdir does not exist.
  8951. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  8952. # If ld is used when linking, flag to hardcode \$libdir into
  8953. # a binary during linking. This must work even if \$libdir does
  8954. # not exist.
  8955. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  8956. # Whether we need a single -rpath flag with a separated argument.
  8957. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  8958. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8959. # resulting binary.
  8960. hardcode_direct=$hardcode_direct
  8961. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8962. # resulting binary.
  8963. hardcode_minus_L=$hardcode_minus_L
  8964. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8965. # the resulting binary.
  8966. hardcode_shlibpath_var=$hardcode_shlibpath_var
  8967. # Set to yes if building a shared library automatically hardcodes DIR into the library
  8968. # and all subsequent libraries and executables linked against it.
  8969. hardcode_automatic=$hardcode_automatic
  8970. # Variables whose values should be saved in libtool wrapper scripts and
  8971. # restored at relink time.
  8972. variables_saved_for_relink="$variables_saved_for_relink"
  8973. # Whether libtool must link a program against all its dependency libraries.
  8974. link_all_deplibs=$link_all_deplibs
  8975. # Compile-time system search path for libraries
  8976. sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  8977. # Run-time system search path for libraries
  8978. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8979. # Fix the shell variable \$srcfile for the compiler.
  8980. fix_srcfile_path="$fix_srcfile_path"
  8981. # Set to yes if exported symbols are required.
  8982. always_export_symbols=$always_export_symbols
  8983. # The commands to list exported symbols.
  8984. export_symbols_cmds=$lt_export_symbols_cmds
  8985. # The commands to extract the exported symbol list from a shared archive.
  8986. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8987. # Symbols that should not be listed in the preloaded symbols.
  8988. exclude_expsyms=$lt_exclude_expsyms
  8989. # Symbols that must always be exported.
  8990. include_expsyms=$lt_include_expsyms
  8991. # ### END LIBTOOL CONFIG
  8992. __EOF__
  8993. case $host_os in
  8994. aix3*)
  8995. cat <<\EOF >> "$cfgfile"
  8996. # AIX sometimes has problems with the GCC collect2 program. For some
  8997. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8998. # vanish in a puff of smoke.
  8999. if test "X${COLLECT_NAMES+set}" != Xset; then
  9000. COLLECT_NAMES=
  9001. export COLLECT_NAMES
  9002. fi
  9003. EOF
  9004. ;;
  9005. esac
  9006. # We use sed instead of cat because bash on DJGPP gets confused if
  9007. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9008. # text mode, it properly converts lines to CR/LF. This bash problem
  9009. # is reportedly fixed, but why not run on old versions too?
  9010. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9011. mv -f "$cfgfile" "$ofile" || \
  9012. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9013. chmod +x "$ofile"
  9014. else
  9015. # If there is no Makefile yet, we rely on a make rule to execute
  9016. # `config.status --recheck' to rerun these tests and create the
  9017. # libtool script then.
  9018. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9019. if test -f "$ltmain_in"; then
  9020. test -f Makefile && make "$ltmain"
  9021. fi
  9022. fi
  9023. ac_ext=c
  9024. ac_cpp='$CPP $CPPFLAGS'
  9025. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9026. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9027. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9028. CC="$lt_save_CC"
  9029. # Check whether --with-tags or --without-tags was given.
  9030. if test "${with_tags+set}" = set; then
  9031. withval="$with_tags"
  9032. tagnames="$withval"
  9033. fi;
  9034. if test -f "$ltmain" && test -n "$tagnames"; then
  9035. if test ! -f "${ofile}"; then
  9036. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9037. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9038. fi
  9039. if test -z "$LTCC"; then
  9040. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9041. if test -z "$LTCC"; then
  9042. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9043. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9044. else
  9045. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9046. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9047. fi
  9048. fi
  9049. if test -z "$LTCFLAGS"; then
  9050. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  9051. fi
  9052. # Extract list of available tagged configurations in $ofile.
  9053. # Note that this assumes the entire list is on one line.
  9054. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9055. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9056. for tagname in $tagnames; do
  9057. IFS="$lt_save_ifs"
  9058. # Check whether tagname contains only valid characters
  9059. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9060. "") ;;
  9061. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9062. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9063. { (exit 1); exit 1; }; }
  9064. ;;
  9065. esac
  9066. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9067. then
  9068. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9069. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9070. { (exit 1); exit 1; }; }
  9071. fi
  9072. # Update the list of available tags.
  9073. if test -n "$tagname"; then
  9074. echo appending configuration tag \"$tagname\" to $ofile
  9075. case $tagname in
  9076. CXX)
  9077. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9078. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9079. (test "X$CXX" != "Xg++"))) ; then
  9080. ac_ext=cc
  9081. ac_cpp='$CXXCPP $CPPFLAGS'
  9082. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9083. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9084. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9085. archive_cmds_need_lc_CXX=no
  9086. allow_undefined_flag_CXX=
  9087. always_export_symbols_CXX=no
  9088. archive_expsym_cmds_CXX=
  9089. export_dynamic_flag_spec_CXX=
  9090. hardcode_direct_CXX=no
  9091. hardcode_libdir_flag_spec_CXX=
  9092. hardcode_libdir_flag_spec_ld_CXX=
  9093. hardcode_libdir_separator_CXX=
  9094. hardcode_minus_L_CXX=no
  9095. hardcode_shlibpath_var_CXX=unsupported
  9096. hardcode_automatic_CXX=no
  9097. module_cmds_CXX=
  9098. module_expsym_cmds_CXX=
  9099. link_all_deplibs_CXX=unknown
  9100. old_archive_cmds_CXX=$old_archive_cmds
  9101. no_undefined_flag_CXX=
  9102. whole_archive_flag_spec_CXX=
  9103. enable_shared_with_static_runtimes_CXX=no
  9104. # Dependencies to place before and after the object being linked:
  9105. predep_objects_CXX=
  9106. postdep_objects_CXX=
  9107. predeps_CXX=
  9108. postdeps_CXX=
  9109. compiler_lib_search_path_CXX=
  9110. # Source file extension for C++ test sources.
  9111. ac_ext=cpp
  9112. # Object file extension for compiled C++ test sources.
  9113. objext=o
  9114. objext_CXX=$objext
  9115. # Code to be used in simple compile tests
  9116. lt_simple_compile_test_code="int some_variable = 0;\n"
  9117. # Code to be used in simple link tests
  9118. lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  9119. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9120. # If no C compiler was specified, use CC.
  9121. LTCC=${LTCC-"$CC"}
  9122. # If no C compiler flags were specified, use CFLAGS.
  9123. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9124. # Allow CC to be a program name with arguments.
  9125. compiler=$CC
  9126. # save warnings/boilerplate of simple test code
  9127. ac_outfile=conftest.$ac_objext
  9128. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  9129. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9130. _lt_compiler_boilerplate=`cat conftest.err`
  9131. $rm conftest*
  9132. ac_outfile=conftest.$ac_objext
  9133. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  9134. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9135. _lt_linker_boilerplate=`cat conftest.err`
  9136. $rm conftest*
  9137. # Allow CC to be a program name with arguments.
  9138. lt_save_CC=$CC
  9139. lt_save_LD=$LD
  9140. lt_save_GCC=$GCC
  9141. GCC=$GXX
  9142. lt_save_with_gnu_ld=$with_gnu_ld
  9143. lt_save_path_LD=$lt_cv_path_LD
  9144. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9145. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9146. else
  9147. $as_unset lt_cv_prog_gnu_ld
  9148. fi
  9149. if test -n "${lt_cv_path_LDCXX+set}"; then
  9150. lt_cv_path_LD=$lt_cv_path_LDCXX
  9151. else
  9152. $as_unset lt_cv_path_LD
  9153. fi
  9154. test -z "${LDCXX+set}" || LD=$LDCXX
  9155. CC=${CXX-"c++"}
  9156. compiler=$CC
  9157. compiler_CXX=$CC
  9158. for cc_temp in $compiler""; do
  9159. case $cc_temp in
  9160. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9161. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9162. \-*) ;;
  9163. *) break;;
  9164. esac
  9165. done
  9166. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9167. # We don't want -fno-exception wen compiling C++ code, so set the
  9168. # no_builtin_flag separately
  9169. if test "$GXX" = yes; then
  9170. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9171. else
  9172. lt_prog_compiler_no_builtin_flag_CXX=
  9173. fi
  9174. if test "$GXX" = yes; then
  9175. # Set up default GNU C++ configuration
  9176. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  9177. if test "${with_gnu_ld+set}" = set; then
  9178. withval="$with_gnu_ld"
  9179. test "$withval" = no || with_gnu_ld=yes
  9180. else
  9181. with_gnu_ld=no
  9182. fi;
  9183. ac_prog=ld
  9184. if test "$GCC" = yes; then
  9185. # Check if gcc -print-prog-name=ld gives a path.
  9186. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9187. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  9188. case $host in
  9189. *-*-mingw*)
  9190. # gcc leaves a trailing carriage return which upsets mingw
  9191. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9192. *)
  9193. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9194. esac
  9195. case $ac_prog in
  9196. # Accept absolute paths.
  9197. [\\/]* | ?:[\\/]*)
  9198. re_direlt='/[^/][^/]*/\.\./'
  9199. # Canonicalize the pathname of ld
  9200. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9201. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9202. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9203. done
  9204. test -z "$LD" && LD="$ac_prog"
  9205. ;;
  9206. "")
  9207. # If it fails, then pretend we aren't using GCC.
  9208. ac_prog=ld
  9209. ;;
  9210. *)
  9211. # If it is relative, then search for the first ld in PATH.
  9212. with_gnu_ld=unknown
  9213. ;;
  9214. esac
  9215. elif test "$with_gnu_ld" = yes; then
  9216. echo "$as_me:$LINENO: checking for GNU ld" >&5
  9217. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  9218. else
  9219. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9220. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  9221. fi
  9222. if test "${lt_cv_path_LD+set}" = set; then
  9223. echo $ECHO_N "(cached) $ECHO_C" >&6
  9224. else
  9225. if test -z "$LD"; then
  9226. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9227. for ac_dir in $PATH; do
  9228. IFS="$lt_save_ifs"
  9229. test -z "$ac_dir" && ac_dir=.
  9230. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9231. lt_cv_path_LD="$ac_dir/$ac_prog"
  9232. # Check to see if the program is GNU ld. I'd rather use --version,
  9233. # but apparently some variants of GNU ld only accept -v.
  9234. # Break only if it was the GNU/non-GNU ld that we prefer.
  9235. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9236. *GNU* | *'with BFD'*)
  9237. test "$with_gnu_ld" != no && break
  9238. ;;
  9239. *)
  9240. test "$with_gnu_ld" != yes && break
  9241. ;;
  9242. esac
  9243. fi
  9244. done
  9245. IFS="$lt_save_ifs"
  9246. else
  9247. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9248. fi
  9249. fi
  9250. LD="$lt_cv_path_LD"
  9251. if test -n "$LD"; then
  9252. echo "$as_me:$LINENO: result: $LD" >&5
  9253. echo "${ECHO_T}$LD" >&6
  9254. else
  9255. echo "$as_me:$LINENO: result: no" >&5
  9256. echo "${ECHO_T}no" >&6
  9257. fi
  9258. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9259. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9260. { (exit 1); exit 1; }; }
  9261. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9262. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  9263. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9264. echo $ECHO_N "(cached) $ECHO_C" >&6
  9265. else
  9266. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9267. case `$LD -v 2>&1 </dev/null` in
  9268. *GNU* | *'with BFD'*)
  9269. lt_cv_prog_gnu_ld=yes
  9270. ;;
  9271. *)
  9272. lt_cv_prog_gnu_ld=no
  9273. ;;
  9274. esac
  9275. fi
  9276. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9277. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  9278. with_gnu_ld=$lt_cv_prog_gnu_ld
  9279. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9280. # archiving commands below assume that GNU ld is being used.
  9281. if test "$with_gnu_ld" = yes; then
  9282. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9283. 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'
  9284. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9285. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9286. # If archive_cmds runs LD, not CC, wlarc should be empty
  9287. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9288. # investigate it a little bit more. (MM)
  9289. wlarc='${wl}'
  9290. # ancient GNU ld didn't support --whole-archive et. al.
  9291. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9292. grep 'no-whole-archive' > /dev/null; then
  9293. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9294. else
  9295. whole_archive_flag_spec_CXX=
  9296. fi
  9297. else
  9298. with_gnu_ld=no
  9299. wlarc=
  9300. # A generic and very simple default shared library creation
  9301. # command for GNU C++ for the case where it uses the native
  9302. # linker, instead of GNU ld. If possible, this setting should
  9303. # overridden to take advantage of the native linker features on
  9304. # the platform it is being used on.
  9305. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9306. fi
  9307. # Commands to make compiler produce verbose output that lists
  9308. # what "hidden" libraries, object files and flags are used when
  9309. # linking a shared library.
  9310. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9311. else
  9312. GXX=no
  9313. with_gnu_ld=no
  9314. wlarc=
  9315. fi
  9316. # PORTME: fill in a description of your system's C++ link characteristics
  9317. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9318. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  9319. ld_shlibs_CXX=yes
  9320. case $host_os in
  9321. aix3*)
  9322. # FIXME: insert proper C++ library support
  9323. ld_shlibs_CXX=no
  9324. ;;
  9325. aix4* | aix5*)
  9326. if test "$host_cpu" = ia64; then
  9327. # On IA64, the linker does run time linking by default, so we don't
  9328. # have to do anything special.
  9329. aix_use_runtimelinking=no
  9330. exp_sym_flag='-Bexport'
  9331. no_entry_flag=""
  9332. else
  9333. aix_use_runtimelinking=no
  9334. # Test if we are trying to use run time linking or normal
  9335. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9336. # need to do runtime linking.
  9337. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9338. for ld_flag in $LDFLAGS; do
  9339. case $ld_flag in
  9340. *-brtl*)
  9341. aix_use_runtimelinking=yes
  9342. break
  9343. ;;
  9344. esac
  9345. done
  9346. ;;
  9347. esac
  9348. exp_sym_flag='-bexport'
  9349. no_entry_flag='-bnoentry'
  9350. fi
  9351. # When large executables or shared objects are built, AIX ld can
  9352. # have problems creating the table of contents. If linking a library
  9353. # or program results in "error TOC overflow" add -mminimal-toc to
  9354. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9355. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9356. archive_cmds_CXX=''
  9357. hardcode_direct_CXX=yes
  9358. hardcode_libdir_separator_CXX=':'
  9359. link_all_deplibs_CXX=yes
  9360. if test "$GXX" = yes; then
  9361. case $host_os in aix4.[012]|aix4.[012].*)
  9362. # We only want to do this on AIX 4.2 and lower, the check
  9363. # below for broken collect2 doesn't work under 4.3+
  9364. collect2name=`${CC} -print-prog-name=collect2`
  9365. if test -f "$collect2name" && \
  9366. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9367. then
  9368. # We have reworked collect2
  9369. hardcode_direct_CXX=yes
  9370. else
  9371. # We have old collect2
  9372. hardcode_direct_CXX=unsupported
  9373. # It fails to find uninstalled libraries when the uninstalled
  9374. # path is not listed in the libpath. Setting hardcode_minus_L
  9375. # to unsupported forces relinking
  9376. hardcode_minus_L_CXX=yes
  9377. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9378. hardcode_libdir_separator_CXX=
  9379. fi
  9380. ;;
  9381. esac
  9382. shared_flag='-shared'
  9383. if test "$aix_use_runtimelinking" = yes; then
  9384. shared_flag="$shared_flag "'${wl}-G'
  9385. fi
  9386. else
  9387. # not using gcc
  9388. if test "$host_cpu" = ia64; then
  9389. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9390. # chokes on -Wl,-G. The following line is correct:
  9391. shared_flag='-G'
  9392. else
  9393. if test "$aix_use_runtimelinking" = yes; then
  9394. shared_flag='${wl}-G'
  9395. else
  9396. shared_flag='${wl}-bM:SRE'
  9397. fi
  9398. fi
  9399. fi
  9400. # It seems that -bexpall does not export symbols beginning with
  9401. # underscore (_), so it is better to generate a list of symbols to export.
  9402. always_export_symbols_CXX=yes
  9403. if test "$aix_use_runtimelinking" = yes; then
  9404. # Warning - without using the other runtime loading flags (-brtl),
  9405. # -berok will link without error, but may produce a broken library.
  9406. allow_undefined_flag_CXX='-berok'
  9407. # Determine the default libpath from the value encoded in an empty executable.
  9408. cat >conftest.$ac_ext <<_ACEOF
  9409. /* confdefs.h. */
  9410. _ACEOF
  9411. cat confdefs.h >>conftest.$ac_ext
  9412. cat >>conftest.$ac_ext <<_ACEOF
  9413. /* end confdefs.h. */
  9414. int
  9415. main ()
  9416. {
  9417. ;
  9418. return 0;
  9419. }
  9420. _ACEOF
  9421. rm -f conftest.$ac_objext conftest$ac_exeext
  9422. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9423. (eval $ac_link) 2>conftest.er1
  9424. ac_status=$?
  9425. grep -v '^ *+' conftest.er1 >conftest.err
  9426. rm -f conftest.er1
  9427. cat conftest.err >&5
  9428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9429. (exit $ac_status); } &&
  9430. { ac_try='test -z "$ac_cxx_werror_flag"
  9431. || test ! -s conftest.err'
  9432. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9433. (eval $ac_try) 2>&5
  9434. ac_status=$?
  9435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9436. (exit $ac_status); }; } &&
  9437. { ac_try='test -s conftest$ac_exeext'
  9438. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9439. (eval $ac_try) 2>&5
  9440. ac_status=$?
  9441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9442. (exit $ac_status); }; }; then
  9443. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9444. }'`
  9445. # Check for a 64-bit object if we didn't find anything.
  9446. 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; }
  9447. }'`; fi
  9448. else
  9449. echo "$as_me: failed program was:" >&5
  9450. sed 's/^/| /' conftest.$ac_ext >&5
  9451. fi
  9452. rm -f conftest.err conftest.$ac_objext \
  9453. conftest$ac_exeext conftest.$ac_ext
  9454. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9455. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9456. archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9457. else
  9458. if test "$host_cpu" = ia64; then
  9459. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9460. allow_undefined_flag_CXX="-z nodefs"
  9461. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  9462. else
  9463. # Determine the default libpath from the value encoded in an empty executable.
  9464. cat >conftest.$ac_ext <<_ACEOF
  9465. /* confdefs.h. */
  9466. _ACEOF
  9467. cat confdefs.h >>conftest.$ac_ext
  9468. cat >>conftest.$ac_ext <<_ACEOF
  9469. /* end confdefs.h. */
  9470. int
  9471. main ()
  9472. {
  9473. ;
  9474. return 0;
  9475. }
  9476. _ACEOF
  9477. rm -f conftest.$ac_objext conftest$ac_exeext
  9478. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9479. (eval $ac_link) 2>conftest.er1
  9480. ac_status=$?
  9481. grep -v '^ *+' conftest.er1 >conftest.err
  9482. rm -f conftest.er1
  9483. cat conftest.err >&5
  9484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9485. (exit $ac_status); } &&
  9486. { ac_try='test -z "$ac_cxx_werror_flag"
  9487. || test ! -s conftest.err'
  9488. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9489. (eval $ac_try) 2>&5
  9490. ac_status=$?
  9491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9492. (exit $ac_status); }; } &&
  9493. { ac_try='test -s conftest$ac_exeext'
  9494. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9495. (eval $ac_try) 2>&5
  9496. ac_status=$?
  9497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9498. (exit $ac_status); }; }; then
  9499. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9500. }'`
  9501. # Check for a 64-bit object if we didn't find anything.
  9502. 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; }
  9503. }'`; fi
  9504. else
  9505. echo "$as_me: failed program was:" >&5
  9506. sed 's/^/| /' conftest.$ac_ext >&5
  9507. fi
  9508. rm -f conftest.err conftest.$ac_objext \
  9509. conftest$ac_exeext conftest.$ac_ext
  9510. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9511. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9512. # Warning - without using the other run time loading flags,
  9513. # -berok will link without error, but may produce a broken library.
  9514. no_undefined_flag_CXX=' ${wl}-bernotok'
  9515. allow_undefined_flag_CXX=' ${wl}-berok'
  9516. # Exported symbols can be pulled into shared objects from archives
  9517. whole_archive_flag_spec_CXX='$convenience'
  9518. archive_cmds_need_lc_CXX=yes
  9519. # This is similar to how AIX traditionally builds its shared libraries.
  9520. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  9521. fi
  9522. fi
  9523. ;;
  9524. beos*)
  9525. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9526. allow_undefined_flag_CXX=unsupported
  9527. # Joseph Beckenbach <[email protected]> says some releases of gcc
  9528. # support --undefined. This deserves some investigation. FIXME
  9529. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9530. else
  9531. ld_shlibs_CXX=no
  9532. fi
  9533. ;;
  9534. chorus*)
  9535. case $cc_basename in
  9536. *)
  9537. # FIXME: insert proper C++ library support
  9538. ld_shlibs_CXX=no
  9539. ;;
  9540. esac
  9541. ;;
  9542. cygwin* | mingw* | pw32*)
  9543. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9544. # as there is no search path for DLLs.
  9545. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9546. allow_undefined_flag_CXX=unsupported
  9547. always_export_symbols_CXX=no
  9548. enable_shared_with_static_runtimes_CXX=yes
  9549. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9550. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9551. # If the export-symbols file already is a .def file (1st line
  9552. # is EXPORTS), use it as is; otherwise, prepend...
  9553. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9554. cp $export_symbols $output_objdir/$soname.def;
  9555. else
  9556. echo EXPORTS > $output_objdir/$soname.def;
  9557. cat $export_symbols >> $output_objdir/$soname.def;
  9558. fi~
  9559. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9560. else
  9561. ld_shlibs_CXX=no
  9562. fi
  9563. ;;
  9564. darwin* | rhapsody*)
  9565. case $host_os in
  9566. rhapsody* | darwin1.[012])
  9567. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  9568. ;;
  9569. *) # Darwin 1.3 on
  9570. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9571. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9572. else
  9573. case ${MACOSX_DEPLOYMENT_TARGET} in
  9574. 10.[012])
  9575. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9576. ;;
  9577. 10.*)
  9578. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  9579. ;;
  9580. esac
  9581. fi
  9582. ;;
  9583. esac
  9584. archive_cmds_need_lc_CXX=no
  9585. hardcode_direct_CXX=no
  9586. hardcode_automatic_CXX=yes
  9587. hardcode_shlibpath_var_CXX=unsupported
  9588. whole_archive_flag_spec_CXX=''
  9589. link_all_deplibs_CXX=yes
  9590. if test "$GXX" = yes ; then
  9591. lt_int_apple_cc_single_mod=no
  9592. output_verbose_link_cmd='echo'
  9593. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  9594. lt_int_apple_cc_single_mod=yes
  9595. fi
  9596. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9597. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9598. else
  9599. archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9600. fi
  9601. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9602. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9603. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9604. 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}'
  9605. else
  9606. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9607. fi
  9608. 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}'
  9609. else
  9610. case $cc_basename in
  9611. xlc*)
  9612. output_verbose_link_cmd='echo'
  9613. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  9614. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9615. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9616. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9617. 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}'
  9618. ;;
  9619. *)
  9620. ld_shlibs_CXX=no
  9621. ;;
  9622. esac
  9623. fi
  9624. ;;
  9625. dgux*)
  9626. case $cc_basename in
  9627. ec++*)
  9628. # FIXME: insert proper C++ library support
  9629. ld_shlibs_CXX=no
  9630. ;;
  9631. ghcx*)
  9632. # Green Hills C++ Compiler
  9633. # FIXME: insert proper C++ library support
  9634. ld_shlibs_CXX=no
  9635. ;;
  9636. *)
  9637. # FIXME: insert proper C++ library support
  9638. ld_shlibs_CXX=no
  9639. ;;
  9640. esac
  9641. ;;
  9642. freebsd[12]*)
  9643. # C++ shared libraries reported to be fairly broken before switch to ELF
  9644. ld_shlibs_CXX=no
  9645. ;;
  9646. freebsd-elf*)
  9647. archive_cmds_need_lc_CXX=no
  9648. ;;
  9649. freebsd* | kfreebsd*-gnu | dragonfly*)
  9650. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9651. # conventions
  9652. ld_shlibs_CXX=yes
  9653. ;;
  9654. gnu*)
  9655. ;;
  9656. hpux9*)
  9657. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9658. hardcode_libdir_separator_CXX=:
  9659. export_dynamic_flag_spec_CXX='${wl}-E'
  9660. hardcode_direct_CXX=yes
  9661. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9662. # but as the default
  9663. # location of the library.
  9664. case $cc_basename in
  9665. CC*)
  9666. # FIXME: insert proper C++ library support
  9667. ld_shlibs_CXX=no
  9668. ;;
  9669. aCC*)
  9670. 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'
  9671. # Commands to make compiler produce verbose output that lists
  9672. # what "hidden" libraries, object files and flags are used when
  9673. # linking a shared library.
  9674. #
  9675. # There doesn't appear to be a way to prevent this compiler from
  9676. # explicitly linking system object files so we need to strip them
  9677. # from the output so that they don't get included in the library
  9678. # dependencies.
  9679. 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'
  9680. ;;
  9681. *)
  9682. if test "$GXX" = yes; then
  9683. 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'
  9684. else
  9685. # FIXME: insert proper C++ library support
  9686. ld_shlibs_CXX=no
  9687. fi
  9688. ;;
  9689. esac
  9690. ;;
  9691. hpux10*|hpux11*)
  9692. if test $with_gnu_ld = no; then
  9693. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9694. hardcode_libdir_separator_CXX=:
  9695. case $host_cpu in
  9696. hppa*64*|ia64*)
  9697. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  9698. ;;
  9699. *)
  9700. export_dynamic_flag_spec_CXX='${wl}-E'
  9701. ;;
  9702. esac
  9703. fi
  9704. case $host_cpu in
  9705. hppa*64*|ia64*)
  9706. hardcode_direct_CXX=no
  9707. hardcode_shlibpath_var_CXX=no
  9708. ;;
  9709. *)
  9710. hardcode_direct_CXX=yes
  9711. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9712. # but as the default
  9713. # location of the library.
  9714. ;;
  9715. esac
  9716. case $cc_basename in
  9717. CC*)
  9718. # FIXME: insert proper C++ library support
  9719. ld_shlibs_CXX=no
  9720. ;;
  9721. aCC*)
  9722. case $host_cpu in
  9723. hppa*64*)
  9724. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9725. ;;
  9726. ia64*)
  9727. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9728. ;;
  9729. *)
  9730. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9731. ;;
  9732. esac
  9733. # Commands to make compiler produce verbose output that lists
  9734. # what "hidden" libraries, object files and flags are used when
  9735. # linking a shared library.
  9736. #
  9737. # There doesn't appear to be a way to prevent this compiler from
  9738. # explicitly linking system object files so we need to strip them
  9739. # from the output so that they don't get included in the library
  9740. # dependencies.
  9741. 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'
  9742. ;;
  9743. *)
  9744. if test "$GXX" = yes; then
  9745. if test $with_gnu_ld = no; then
  9746. case $host_cpu in
  9747. hppa*64*)
  9748. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9749. ;;
  9750. ia64*)
  9751. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9752. ;;
  9753. *)
  9754. 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'
  9755. ;;
  9756. esac
  9757. fi
  9758. else
  9759. # FIXME: insert proper C++ library support
  9760. ld_shlibs_CXX=no
  9761. fi
  9762. ;;
  9763. esac
  9764. ;;
  9765. interix3*)
  9766. hardcode_direct_CXX=no
  9767. hardcode_shlibpath_var_CXX=no
  9768. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9769. export_dynamic_flag_spec_CXX='${wl}-E'
  9770. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9771. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9772. # default) and relocated if they conflict, which is a slow very memory
  9773. # consuming and fragmenting process. To avoid this, we pick a random,
  9774. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9775. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9776. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9777. archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9778. ;;
  9779. irix5* | irix6*)
  9780. case $cc_basename in
  9781. CC*)
  9782. # SGI C++
  9783. 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 ${output_objdir}/so_locations -o $lib'
  9784. # Archives containing C++ object files must be created using
  9785. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9786. # necessary to make sure instantiated templates are included
  9787. # in the archive.
  9788. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9789. ;;
  9790. *)
  9791. if test "$GXX" = yes; then
  9792. if test "$with_gnu_ld" = no; then
  9793. 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}${output_objdir}/so_locations -o $lib'
  9794. else
  9795. 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'
  9796. fi
  9797. fi
  9798. link_all_deplibs_CXX=yes
  9799. ;;
  9800. esac
  9801. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9802. hardcode_libdir_separator_CXX=:
  9803. ;;
  9804. linux*)
  9805. case $cc_basename in
  9806. KCC*)
  9807. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9808. # KCC will only create a shared library if the output file
  9809. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9810. # to its proper name (with version) after linking.
  9811. 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'
  9812. 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'
  9813. # Commands to make compiler produce verbose output that lists
  9814. # what "hidden" libraries, object files and flags are used when
  9815. # linking a shared library.
  9816. #
  9817. # There doesn't appear to be a way to prevent this compiler from
  9818. # explicitly linking system object files so we need to strip them
  9819. # from the output so that they don't get included in the library
  9820. # dependencies.
  9821. 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'
  9822. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  9823. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9824. # Archives containing C++ object files must be created using
  9825. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9826. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9827. ;;
  9828. icpc*)
  9829. # Intel C++
  9830. with_gnu_ld=yes
  9831. # version 8.0 and above of icpc choke on multiply defined symbols
  9832. # if we add $predep_objects and $postdep_objects, however 7.1 and
  9833. # earlier do not add the objects themselves.
  9834. case `$CC -V 2>&1` in
  9835. *"Version 7."*)
  9836. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9837. 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'
  9838. ;;
  9839. *) # Version 8.0 or newer
  9840. tmp_idyn=
  9841. case $host_cpu in
  9842. ia64*) tmp_idyn=' -i_dynamic';;
  9843. esac
  9844. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9845. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9846. ;;
  9847. esac
  9848. archive_cmds_need_lc_CXX=no
  9849. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9850. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9851. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9852. ;;
  9853. pgCC*)
  9854. # Portland Group C++ compiler
  9855. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9856. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  9857. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9858. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9859. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  9860. ;;
  9861. cxx*)
  9862. # Compaq C++
  9863. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9864. 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'
  9865. runpath_var=LD_RUN_PATH
  9866. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9867. hardcode_libdir_separator_CXX=:
  9868. # Commands to make compiler produce verbose output that lists
  9869. # what "hidden" libraries, object files and flags are used when
  9870. # linking a shared library.
  9871. #
  9872. # There doesn't appear to be a way to prevent this compiler from
  9873. # explicitly linking system object files so we need to strip them
  9874. # from the output so that they don't get included in the library
  9875. # dependencies.
  9876. 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'
  9877. ;;
  9878. esac
  9879. ;;
  9880. lynxos*)
  9881. # FIXME: insert proper C++ library support
  9882. ld_shlibs_CXX=no
  9883. ;;
  9884. m88k*)
  9885. # FIXME: insert proper C++ library support
  9886. ld_shlibs_CXX=no
  9887. ;;
  9888. mvs*)
  9889. case $cc_basename in
  9890. cxx*)
  9891. # FIXME: insert proper C++ library support
  9892. ld_shlibs_CXX=no
  9893. ;;
  9894. *)
  9895. # FIXME: insert proper C++ library support
  9896. ld_shlibs_CXX=no
  9897. ;;
  9898. esac
  9899. ;;
  9900. netbsd*)
  9901. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9902. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  9903. wlarc=
  9904. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9905. hardcode_direct_CXX=yes
  9906. hardcode_shlibpath_var_CXX=no
  9907. fi
  9908. # Workaround some broken pre-1.5 toolchains
  9909. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  9910. ;;
  9911. openbsd2*)
  9912. # C++ shared libraries are fairly broken
  9913. ld_shlibs_CXX=no
  9914. ;;
  9915. openbsd*)
  9916. hardcode_direct_CXX=yes
  9917. hardcode_shlibpath_var_CXX=no
  9918. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9919. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9920. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9921. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  9922. export_dynamic_flag_spec_CXX='${wl}-E'
  9923. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9924. fi
  9925. output_verbose_link_cmd='echo'
  9926. ;;
  9927. osf3*)
  9928. case $cc_basename in
  9929. KCC*)
  9930. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9931. # KCC will only create a shared library if the output file
  9932. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9933. # to its proper name (with version) after linking.
  9934. 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'
  9935. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9936. hardcode_libdir_separator_CXX=:
  9937. # Archives containing C++ object files must be created using
  9938. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9939. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9940. ;;
  9941. RCC*)
  9942. # Rational C++ 2.4.1
  9943. # FIXME: insert proper C++ library support
  9944. ld_shlibs_CXX=no
  9945. ;;
  9946. cxx*)
  9947. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9948. 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 ${output_objdir}/so_locations -o $lib'
  9949. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9950. hardcode_libdir_separator_CXX=:
  9951. # Commands to make compiler produce verbose output that lists
  9952. # what "hidden" libraries, object files and flags are used when
  9953. # linking a shared library.
  9954. #
  9955. # There doesn't appear to be a way to prevent this compiler from
  9956. # explicitly linking system object files so we need to strip them
  9957. # from the output so that they don't get included in the library
  9958. # dependencies.
  9959. 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'
  9960. ;;
  9961. *)
  9962. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9963. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9964. 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}${output_objdir}/so_locations -o $lib'
  9965. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9966. hardcode_libdir_separator_CXX=:
  9967. # Commands to make compiler produce verbose output that lists
  9968. # what "hidden" libraries, object files and flags are used when
  9969. # linking a shared library.
  9970. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9971. else
  9972. # FIXME: insert proper C++ library support
  9973. ld_shlibs_CXX=no
  9974. fi
  9975. ;;
  9976. esac
  9977. ;;
  9978. osf4* | osf5*)
  9979. case $cc_basename in
  9980. KCC*)
  9981. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9982. # KCC will only create a shared library if the output file
  9983. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9984. # to its proper name (with version) after linking.
  9985. 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'
  9986. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9987. hardcode_libdir_separator_CXX=:
  9988. # Archives containing C++ object files must be created using
  9989. # the KAI C++ compiler.
  9990. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  9991. ;;
  9992. RCC*)
  9993. # Rational C++ 2.4.1
  9994. # FIXME: insert proper C++ library support
  9995. ld_shlibs_CXX=no
  9996. ;;
  9997. cxx*)
  9998. allow_undefined_flag_CXX=' -expect_unresolved \*'
  9999. 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 ${output_objdir}/so_locations -o $lib'
  10000. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10001. echo "-hidden">> $lib.exp~
  10002. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  10003. $rm $lib.exp'
  10004. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10005. hardcode_libdir_separator_CXX=:
  10006. # Commands to make compiler produce verbose output that lists
  10007. # what "hidden" libraries, object files and flags are used when
  10008. # linking a shared library.
  10009. #
  10010. # There doesn't appear to be a way to prevent this compiler from
  10011. # explicitly linking system object files so we need to strip them
  10012. # from the output so that they don't get included in the library
  10013. # dependencies.
  10014. 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'
  10015. ;;
  10016. *)
  10017. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10018. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10019. 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}${output_objdir}/so_locations -o $lib'
  10020. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10021. hardcode_libdir_separator_CXX=:
  10022. # Commands to make compiler produce verbose output that lists
  10023. # what "hidden" libraries, object files and flags are used when
  10024. # linking a shared library.
  10025. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10026. else
  10027. # FIXME: insert proper C++ library support
  10028. ld_shlibs_CXX=no
  10029. fi
  10030. ;;
  10031. esac
  10032. ;;
  10033. psos*)
  10034. # FIXME: insert proper C++ library support
  10035. ld_shlibs_CXX=no
  10036. ;;
  10037. sunos4*)
  10038. case $cc_basename in
  10039. CC*)
  10040. # Sun C++ 4.x
  10041. # FIXME: insert proper C++ library support
  10042. ld_shlibs_CXX=no
  10043. ;;
  10044. lcc*)
  10045. # Lucid
  10046. # FIXME: insert proper C++ library support
  10047. ld_shlibs_CXX=no
  10048. ;;
  10049. *)
  10050. # FIXME: insert proper C++ library support
  10051. ld_shlibs_CXX=no
  10052. ;;
  10053. esac
  10054. ;;
  10055. solaris*)
  10056. case $cc_basename in
  10057. CC*)
  10058. # Sun C++ 4.2, 5.x and Centerline C++
  10059. archive_cmds_need_lc_CXX=yes
  10060. no_undefined_flag_CXX=' -zdefs'
  10061. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10062. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10063. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10064. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10065. hardcode_shlibpath_var_CXX=no
  10066. case $host_os in
  10067. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10068. *)
  10069. # The C++ compiler is used as linker so we must use $wl
  10070. # flag to pass the commands to the underlying system
  10071. # linker. We must also pass each convience library through
  10072. # to the system linker between allextract/defaultextract.
  10073. # The C++ compiler will combine linker options so we
  10074. # cannot just pass the convience library names through
  10075. # without $wl.
  10076. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10077. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  10078. ;;
  10079. esac
  10080. link_all_deplibs_CXX=yes
  10081. output_verbose_link_cmd='echo'
  10082. # Archives containing C++ object files must be created using
  10083. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10084. # necessary to make sure instantiated templates are included
  10085. # in the archive.
  10086. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10087. ;;
  10088. gcx*)
  10089. # Green Hills C++ Compiler
  10090. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10091. # The C++ compiler must be used to create the archive.
  10092. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10093. ;;
  10094. *)
  10095. # GNU C++ compiler with Solaris linker
  10096. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10097. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10098. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10099. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10100. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10101. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10102. # Commands to make compiler produce verbose output that lists
  10103. # what "hidden" libraries, object files and flags are used when
  10104. # linking a shared library.
  10105. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10106. else
  10107. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10108. # platform.
  10109. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10110. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10111. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10112. # Commands to make compiler produce verbose output that lists
  10113. # what "hidden" libraries, object files and flags are used when
  10114. # linking a shared library.
  10115. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10116. fi
  10117. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10118. fi
  10119. ;;
  10120. esac
  10121. ;;
  10122. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10123. no_undefined_flag_CXX='${wl}-z,text'
  10124. archive_cmds_need_lc_CXX=no
  10125. hardcode_shlibpath_var_CXX=no
  10126. runpath_var='LD_RUN_PATH'
  10127. case $cc_basename in
  10128. CC*)
  10129. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10130. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10131. ;;
  10132. *)
  10133. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10134. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10135. ;;
  10136. esac
  10137. ;;
  10138. sysv5* | sco3.2v5* | sco5v6*)
  10139. # Note: We can NOT use -z defs as we might desire, because we do not
  10140. # link with -lc, and that would cause any symbols used from libc to
  10141. # always be unresolved, which means just about no library would
  10142. # ever link correctly. If we're not using GNU ld we use -z text
  10143. # though, which does catch some bad symbols but isn't as heavy-handed
  10144. # as -z defs.
  10145. # For security reasons, it is highly recommended that you always
  10146. # use absolute paths for naming shared libraries, and exclude the
  10147. # DT_RUNPATH tag from executables and libraries. But doing so
  10148. # requires that you compile everything twice, which is a pain.
  10149. # So that behaviour is only enabled if SCOABSPATH is set to a
  10150. # non-empty value in the environment. Most likely only useful for
  10151. # creating official distributions of packages.
  10152. # This is a hack until libtool officially supports absolute path
  10153. # names for shared libraries.
  10154. no_undefined_flag_CXX='${wl}-z,text'
  10155. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10156. archive_cmds_need_lc_CXX=no
  10157. hardcode_shlibpath_var_CXX=no
  10158. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10159. hardcode_libdir_separator_CXX=':'
  10160. link_all_deplibs_CXX=yes
  10161. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10162. runpath_var='LD_RUN_PATH'
  10163. case $cc_basename in
  10164. CC*)
  10165. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10166. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10167. ;;
  10168. *)
  10169. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10170. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10171. ;;
  10172. esac
  10173. ;;
  10174. tandem*)
  10175. case $cc_basename in
  10176. NCC*)
  10177. # NonStop-UX NCC 3.20
  10178. # FIXME: insert proper C++ library support
  10179. ld_shlibs_CXX=no
  10180. ;;
  10181. *)
  10182. # FIXME: insert proper C++ library support
  10183. ld_shlibs_CXX=no
  10184. ;;
  10185. esac
  10186. ;;
  10187. vxworks*)
  10188. # FIXME: insert proper C++ library support
  10189. ld_shlibs_CXX=no
  10190. ;;
  10191. *)
  10192. # FIXME: insert proper C++ library support
  10193. ld_shlibs_CXX=no
  10194. ;;
  10195. esac
  10196. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10197. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10198. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10199. GCC_CXX="$GXX"
  10200. LD_CXX="$LD"
  10201. cat > conftest.$ac_ext <<EOF
  10202. class Foo
  10203. {
  10204. public:
  10205. Foo (void) { a = 0; }
  10206. private:
  10207. int a;
  10208. };
  10209. EOF
  10210. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10211. (eval $ac_compile) 2>&5
  10212. ac_status=$?
  10213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10214. (exit $ac_status); }; then
  10215. # Parse the compiler output and extract the necessary
  10216. # objects, libraries and library flags.
  10217. # Sentinel used to keep track of whether or not we are before
  10218. # the conftest object file.
  10219. pre_test_object_deps_done=no
  10220. # The `*' in the case matches for architectures that use `case' in
  10221. # $output_verbose_cmd can trigger glob expansion during the loop
  10222. # eval without this substitution.
  10223. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  10224. for p in `eval $output_verbose_link_cmd`; do
  10225. case $p in
  10226. -L* | -R* | -l*)
  10227. # Some compilers place space between "-{L,R}" and the path.
  10228. # Remove the space.
  10229. if test $p = "-L" \
  10230. || test $p = "-R"; then
  10231. prev=$p
  10232. continue
  10233. else
  10234. prev=
  10235. fi
  10236. if test "$pre_test_object_deps_done" = no; then
  10237. case $p in
  10238. -L* | -R*)
  10239. # Internal compiler library paths should come after those
  10240. # provided the user. The postdeps already come after the
  10241. # user supplied libs so there is no need to process them.
  10242. if test -z "$compiler_lib_search_path_CXX"; then
  10243. compiler_lib_search_path_CXX="${prev}${p}"
  10244. else
  10245. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10246. fi
  10247. ;;
  10248. # The "-l" case would never come before the object being
  10249. # linked, so don't bother handling this case.
  10250. esac
  10251. else
  10252. if test -z "$postdeps_CXX"; then
  10253. postdeps_CXX="${prev}${p}"
  10254. else
  10255. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10256. fi
  10257. fi
  10258. ;;
  10259. *.$objext)
  10260. # This assumes that the test object file only shows up
  10261. # once in the compiler output.
  10262. if test "$p" = "conftest.$objext"; then
  10263. pre_test_object_deps_done=yes
  10264. continue
  10265. fi
  10266. if test "$pre_test_object_deps_done" = no; then
  10267. if test -z "$predep_objects_CXX"; then
  10268. predep_objects_CXX="$p"
  10269. else
  10270. predep_objects_CXX="$predep_objects_CXX $p"
  10271. fi
  10272. else
  10273. if test -z "$postdep_objects_CXX"; then
  10274. postdep_objects_CXX="$p"
  10275. else
  10276. postdep_objects_CXX="$postdep_objects_CXX $p"
  10277. fi
  10278. fi
  10279. ;;
  10280. *) ;; # Ignore the rest.
  10281. esac
  10282. done
  10283. # Clean up.
  10284. rm -f a.out a.exe
  10285. else
  10286. echo "libtool.m4: error: problem compiling CXX test program"
  10287. fi
  10288. $rm -f confest.$objext
  10289. # PORTME: override above test on systems where it is broken
  10290. case $host_os in
  10291. interix3*)
  10292. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10293. # hack all around it, let's just trust "g++" to DTRT.
  10294. predep_objects_CXX=
  10295. postdep_objects_CXX=
  10296. postdeps_CXX=
  10297. ;;
  10298. solaris*)
  10299. case $cc_basename in
  10300. CC*)
  10301. # Adding this requires a known-good setup of shared libraries for
  10302. # Sun compiler versions before 5.6, else PIC objects from an old
  10303. # archive will be linked into the output, leading to subtle bugs.
  10304. postdeps_CXX='-lCstd -lCrun'
  10305. ;;
  10306. esac
  10307. ;;
  10308. esac
  10309. case " $postdeps_CXX " in
  10310. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10311. esac
  10312. lt_prog_compiler_wl_CXX=
  10313. lt_prog_compiler_pic_CXX=
  10314. lt_prog_compiler_static_CXX=
  10315. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10316. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  10317. # C++ specific cases for pic, static, wl, etc.
  10318. if test "$GXX" = yes; then
  10319. lt_prog_compiler_wl_CXX='-Wl,'
  10320. lt_prog_compiler_static_CXX='-static'
  10321. case $host_os in
  10322. aix*)
  10323. # All AIX code is PIC.
  10324. if test "$host_cpu" = ia64; then
  10325. # AIX 5 now supports IA64 processor
  10326. lt_prog_compiler_static_CXX='-Bstatic'
  10327. fi
  10328. ;;
  10329. amigaos*)
  10330. # FIXME: we need at least 68020 code to build shared libraries, but
  10331. # adding the `-m68020' flag to GCC prevents building anything better,
  10332. # like `-m68040'.
  10333. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10334. ;;
  10335. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10336. # PIC is the default for these OSes.
  10337. ;;
  10338. mingw* | os2* | pw32*)
  10339. # This hack is so that the source file can tell whether it is being
  10340. # built for inclusion in a dll (and should export symbols for example).
  10341. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10342. ;;
  10343. darwin* | rhapsody*)
  10344. # PIC is the default on this platform
  10345. # Common symbols not allowed in MH_DYLIB files
  10346. lt_prog_compiler_pic_CXX='-fno-common'
  10347. ;;
  10348. *djgpp*)
  10349. # DJGPP does not support shared libraries at all
  10350. lt_prog_compiler_pic_CXX=
  10351. ;;
  10352. interix3*)
  10353. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10354. # Instead, we relocate shared libraries at runtime.
  10355. ;;
  10356. sysv4*MP*)
  10357. if test -d /usr/nec; then
  10358. lt_prog_compiler_pic_CXX=-Kconform_pic
  10359. fi
  10360. ;;
  10361. hpux*)
  10362. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10363. # not for PA HP-UX.
  10364. case $host_cpu in
  10365. hppa*64*|ia64*)
  10366. ;;
  10367. *)
  10368. lt_prog_compiler_pic_CXX='-fPIC'
  10369. ;;
  10370. esac
  10371. ;;
  10372. *)
  10373. lt_prog_compiler_pic_CXX='-fPIC'
  10374. ;;
  10375. esac
  10376. else
  10377. case $host_os in
  10378. aix4* | aix5*)
  10379. # All AIX code is PIC.
  10380. if test "$host_cpu" = ia64; then
  10381. # AIX 5 now supports IA64 processor
  10382. lt_prog_compiler_static_CXX='-Bstatic'
  10383. else
  10384. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10385. fi
  10386. ;;
  10387. chorus*)
  10388. case $cc_basename in
  10389. cxch68*)
  10390. # Green Hills C++ Compiler
  10391. # _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"
  10392. ;;
  10393. esac
  10394. ;;
  10395. darwin*)
  10396. # PIC is the default on this platform
  10397. # Common symbols not allowed in MH_DYLIB files
  10398. case $cc_basename in
  10399. xlc*)
  10400. lt_prog_compiler_pic_CXX='-qnocommon'
  10401. lt_prog_compiler_wl_CXX='-Wl,'
  10402. ;;
  10403. esac
  10404. ;;
  10405. dgux*)
  10406. case $cc_basename in
  10407. ec++*)
  10408. lt_prog_compiler_pic_CXX='-KPIC'
  10409. ;;
  10410. ghcx*)
  10411. # Green Hills C++ Compiler
  10412. lt_prog_compiler_pic_CXX='-pic'
  10413. ;;
  10414. *)
  10415. ;;
  10416. esac
  10417. ;;
  10418. freebsd* | kfreebsd*-gnu | dragonfly*)
  10419. # FreeBSD uses GNU C++
  10420. ;;
  10421. hpux9* | hpux10* | hpux11*)
  10422. case $cc_basename in
  10423. CC*)
  10424. lt_prog_compiler_wl_CXX='-Wl,'
  10425. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10426. if test "$host_cpu" != ia64; then
  10427. lt_prog_compiler_pic_CXX='+Z'
  10428. fi
  10429. ;;
  10430. aCC*)
  10431. lt_prog_compiler_wl_CXX='-Wl,'
  10432. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10433. case $host_cpu in
  10434. hppa*64*|ia64*)
  10435. # +Z the default
  10436. ;;
  10437. *)
  10438. lt_prog_compiler_pic_CXX='+Z'
  10439. ;;
  10440. esac
  10441. ;;
  10442. *)
  10443. ;;
  10444. esac
  10445. ;;
  10446. interix*)
  10447. # This is c89, which is MS Visual C++ (no shared libs)
  10448. # Anyone wants to do a port?
  10449. ;;
  10450. irix5* | irix6* | nonstopux*)
  10451. case $cc_basename in
  10452. CC*)
  10453. lt_prog_compiler_wl_CXX='-Wl,'
  10454. lt_prog_compiler_static_CXX='-non_shared'
  10455. # CC pic flag -KPIC is the default.
  10456. ;;
  10457. *)
  10458. ;;
  10459. esac
  10460. ;;
  10461. linux*)
  10462. case $cc_basename in
  10463. KCC*)
  10464. # KAI C++ Compiler
  10465. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10466. lt_prog_compiler_pic_CXX='-fPIC'
  10467. ;;
  10468. icpc* | ecpc*)
  10469. # Intel C++
  10470. lt_prog_compiler_wl_CXX='-Wl,'
  10471. lt_prog_compiler_pic_CXX='-KPIC'
  10472. lt_prog_compiler_static_CXX='-static'
  10473. ;;
  10474. pgCC*)
  10475. # Portland Group C++ compiler.
  10476. lt_prog_compiler_wl_CXX='-Wl,'
  10477. lt_prog_compiler_pic_CXX='-fpic'
  10478. lt_prog_compiler_static_CXX='-Bstatic'
  10479. ;;
  10480. cxx*)
  10481. # Compaq C++
  10482. # Make sure the PIC flag is empty. It appears that all Alpha
  10483. # Linux and Compaq Tru64 Unix objects are PIC.
  10484. lt_prog_compiler_pic_CXX=
  10485. lt_prog_compiler_static_CXX='-non_shared'
  10486. ;;
  10487. *)
  10488. ;;
  10489. esac
  10490. ;;
  10491. lynxos*)
  10492. ;;
  10493. m88k*)
  10494. ;;
  10495. mvs*)
  10496. case $cc_basename in
  10497. cxx*)
  10498. lt_prog_compiler_pic_CXX='-W c,exportall'
  10499. ;;
  10500. *)
  10501. ;;
  10502. esac
  10503. ;;
  10504. netbsd*)
  10505. ;;
  10506. osf3* | osf4* | osf5*)
  10507. case $cc_basename in
  10508. KCC*)
  10509. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10510. ;;
  10511. RCC*)
  10512. # Rational C++ 2.4.1
  10513. lt_prog_compiler_pic_CXX='-pic'
  10514. ;;
  10515. cxx*)
  10516. # Digital/Compaq C++
  10517. lt_prog_compiler_wl_CXX='-Wl,'
  10518. # Make sure the PIC flag is empty. It appears that all Alpha
  10519. # Linux and Compaq Tru64 Unix objects are PIC.
  10520. lt_prog_compiler_pic_CXX=
  10521. lt_prog_compiler_static_CXX='-non_shared'
  10522. ;;
  10523. *)
  10524. ;;
  10525. esac
  10526. ;;
  10527. psos*)
  10528. ;;
  10529. solaris*)
  10530. case $cc_basename in
  10531. CC*)
  10532. # Sun C++ 4.2, 5.x and Centerline C++
  10533. lt_prog_compiler_pic_CXX='-KPIC'
  10534. lt_prog_compiler_static_CXX='-Bstatic'
  10535. lt_prog_compiler_wl_CXX='-Qoption ld '
  10536. ;;
  10537. gcx*)
  10538. # Green Hills C++ Compiler
  10539. lt_prog_compiler_pic_CXX='-PIC'
  10540. ;;
  10541. *)
  10542. ;;
  10543. esac
  10544. ;;
  10545. sunos4*)
  10546. case $cc_basename in
  10547. CC*)
  10548. # Sun C++ 4.x
  10549. lt_prog_compiler_pic_CXX='-pic'
  10550. lt_prog_compiler_static_CXX='-Bstatic'
  10551. ;;
  10552. lcc*)
  10553. # Lucid
  10554. lt_prog_compiler_pic_CXX='-pic'
  10555. ;;
  10556. *)
  10557. ;;
  10558. esac
  10559. ;;
  10560. tandem*)
  10561. case $cc_basename in
  10562. NCC*)
  10563. # NonStop-UX NCC 3.20
  10564. lt_prog_compiler_pic_CXX='-KPIC'
  10565. ;;
  10566. *)
  10567. ;;
  10568. esac
  10569. ;;
  10570. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10571. case $cc_basename in
  10572. CC*)
  10573. lt_prog_compiler_wl_CXX='-Wl,'
  10574. lt_prog_compiler_pic_CXX='-KPIC'
  10575. lt_prog_compiler_static_CXX='-Bstatic'
  10576. ;;
  10577. esac
  10578. ;;
  10579. vxworks*)
  10580. ;;
  10581. *)
  10582. lt_prog_compiler_can_build_shared_CXX=no
  10583. ;;
  10584. esac
  10585. fi
  10586. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  10587. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  10588. #
  10589. # Check to make sure the PIC flag actually works.
  10590. #
  10591. if test -n "$lt_prog_compiler_pic_CXX"; then
  10592. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  10593. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  10594. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  10595. echo $ECHO_N "(cached) $ECHO_C" >&6
  10596. else
  10597. lt_prog_compiler_pic_works_CXX=no
  10598. ac_outfile=conftest.$ac_objext
  10599. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10600. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  10601. # Insert the option either (1) after the last *FLAGS variable, or
  10602. # (2) before a word containing "conftest.", or (3) at the end.
  10603. # Note that $ac_compile itself does not contain backslashes and begins
  10604. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10605. # The option is referenced via a variable to avoid confusing sed.
  10606. lt_compile=`echo "$ac_compile" | $SED \
  10607. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10608. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10609. -e 's:$: $lt_compiler_flag:'`
  10610. (eval echo "\"\$as_me:11734: $lt_compile\"" >&5)
  10611. (eval "$lt_compile" 2>conftest.err)
  10612. ac_status=$?
  10613. cat conftest.err >&5
  10614. echo "$as_me:11738: \$? = $ac_status" >&5
  10615. if (exit $ac_status) && test -s "$ac_outfile"; then
  10616. # The compiler can only warn and ignore the option if not recognized
  10617. # So say no if there are warnings other than the usual output.
  10618. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  10619. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10620. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10621. lt_prog_compiler_pic_works_CXX=yes
  10622. fi
  10623. fi
  10624. $rm conftest*
  10625. fi
  10626. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  10627. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  10628. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  10629. case $lt_prog_compiler_pic_CXX in
  10630. "" | " "*) ;;
  10631. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  10632. esac
  10633. else
  10634. lt_prog_compiler_pic_CXX=
  10635. lt_prog_compiler_can_build_shared_CXX=no
  10636. fi
  10637. fi
  10638. case $host_os in
  10639. # For platforms which do not support PIC, -DPIC is meaningless:
  10640. *djgpp*)
  10641. lt_prog_compiler_pic_CXX=
  10642. ;;
  10643. *)
  10644. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  10645. ;;
  10646. esac
  10647. #
  10648. # Check to make sure the static flag actually works.
  10649. #
  10650. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  10651. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10652. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  10653. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  10654. echo $ECHO_N "(cached) $ECHO_C" >&6
  10655. else
  10656. lt_prog_compiler_static_works_CXX=no
  10657. save_LDFLAGS="$LDFLAGS"
  10658. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10659. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  10660. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10661. # The linker can only warn and ignore the option if not recognized
  10662. # So say no if there are warnings
  10663. if test -s conftest.err; then
  10664. # Append any errors to the config.log.
  10665. cat conftest.err 1>&5
  10666. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  10667. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10668. if diff conftest.exp conftest.er2 >/dev/null; then
  10669. lt_prog_compiler_static_works_CXX=yes
  10670. fi
  10671. else
  10672. lt_prog_compiler_static_works_CXX=yes
  10673. fi
  10674. fi
  10675. $rm conftest*
  10676. LDFLAGS="$save_LDFLAGS"
  10677. fi
  10678. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  10679. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
  10680. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  10681. :
  10682. else
  10683. lt_prog_compiler_static_CXX=
  10684. fi
  10685. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  10686. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  10687. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  10688. echo $ECHO_N "(cached) $ECHO_C" >&6
  10689. else
  10690. lt_cv_prog_compiler_c_o_CXX=no
  10691. $rm -r conftest 2>/dev/null
  10692. mkdir conftest
  10693. cd conftest
  10694. mkdir out
  10695. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10696. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10697. # Insert the option either (1) after the last *FLAGS variable, or
  10698. # (2) before a word containing "conftest.", or (3) at the end.
  10699. # Note that $ac_compile itself does not contain backslashes and begins
  10700. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10701. lt_compile=`echo "$ac_compile" | $SED \
  10702. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10703. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10704. -e 's:$: $lt_compiler_flag:'`
  10705. (eval echo "\"\$as_me:11838: $lt_compile\"" >&5)
  10706. (eval "$lt_compile" 2>out/conftest.err)
  10707. ac_status=$?
  10708. cat out/conftest.err >&5
  10709. echo "$as_me:11842: \$? = $ac_status" >&5
  10710. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10711. then
  10712. # The compiler can only warn and ignore the option if not recognized
  10713. # So say no if there are warnings
  10714. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  10715. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10716. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10717. lt_cv_prog_compiler_c_o_CXX=yes
  10718. fi
  10719. fi
  10720. chmod u+w . 2>&5
  10721. $rm conftest*
  10722. # SGI C++ compiler will create directory out/ii_files/ for
  10723. # template instantiation
  10724. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  10725. $rm out/* && rmdir out
  10726. cd ..
  10727. rmdir conftest
  10728. $rm conftest*
  10729. fi
  10730. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  10731. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  10732. hard_links="nottested"
  10733. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  10734. # do not overwrite the value of need_locks provided by the user
  10735. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  10736. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  10737. hard_links=yes
  10738. $rm conftest*
  10739. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10740. touch conftest.a
  10741. ln conftest.a conftest.b 2>&5 || hard_links=no
  10742. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10743. echo "$as_me:$LINENO: result: $hard_links" >&5
  10744. echo "${ECHO_T}$hard_links" >&6
  10745. if test "$hard_links" = no; then
  10746. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10747. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10748. need_locks=warn
  10749. fi
  10750. else
  10751. need_locks=no
  10752. fi
  10753. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10754. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  10755. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10756. case $host_os in
  10757. aix4* | aix5*)
  10758. # If we're using GNU nm, then we don't want the "-C" option.
  10759. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10760. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  10761. 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'
  10762. else
  10763. 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'
  10764. fi
  10765. ;;
  10766. pw32*)
  10767. export_symbols_cmds_CXX="$ltdll_cmds"
  10768. ;;
  10769. cygwin* | mingw*)
  10770. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  10771. ;;
  10772. *)
  10773. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10774. ;;
  10775. esac
  10776. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10777. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10778. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10779. #
  10780. # Do we need to explicitly link libc?
  10781. #
  10782. case "x$archive_cmds_need_lc_CXX" in
  10783. x|xyes)
  10784. # Assume -lc should be added
  10785. archive_cmds_need_lc_CXX=yes
  10786. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10787. case $archive_cmds_CXX in
  10788. *'~'*)
  10789. # FIXME: we may have to deal with multi-command sequences.
  10790. ;;
  10791. '$CC '*)
  10792. # Test whether the compiler implicitly links with -lc since on some
  10793. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10794. # to ld, don't add -lc before -lgcc.
  10795. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  10796. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  10797. $rm conftest*
  10798. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10799. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10800. (eval $ac_compile) 2>&5
  10801. ac_status=$?
  10802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10803. (exit $ac_status); } 2>conftest.err; then
  10804. soname=conftest
  10805. lib=conftest
  10806. libobjs=conftest.$ac_objext
  10807. deplibs=
  10808. wl=$lt_prog_compiler_wl_CXX
  10809. pic_flag=$lt_prog_compiler_pic_CXX
  10810. compiler_flags=-v
  10811. linker_flags=-v
  10812. verstring=
  10813. output_objdir=.
  10814. libname=conftest
  10815. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  10816. allow_undefined_flag_CXX=
  10817. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  10818. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10819. ac_status=$?
  10820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10821. (exit $ac_status); }
  10822. then
  10823. archive_cmds_need_lc_CXX=no
  10824. else
  10825. archive_cmds_need_lc_CXX=yes
  10826. fi
  10827. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  10828. else
  10829. cat conftest.err 1>&5
  10830. fi
  10831. $rm conftest*
  10832. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  10833. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  10834. ;;
  10835. esac
  10836. fi
  10837. ;;
  10838. esac
  10839. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  10840. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  10841. library_names_spec=
  10842. libname_spec='lib$name'
  10843. soname_spec=
  10844. shrext_cmds=".so"
  10845. postinstall_cmds=
  10846. postuninstall_cmds=
  10847. finish_cmds=
  10848. finish_eval=
  10849. shlibpath_var=
  10850. shlibpath_overrides_runpath=unknown
  10851. version_type=none
  10852. dynamic_linker="$host_os ld.so"
  10853. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10854. if test "$GCC" = yes; then
  10855. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10856. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  10857. # if the path contains ";" then we assume it to be the separator
  10858. # otherwise default to the standard path separator (i.e. ":") - it is
  10859. # assumed that no part of a normal pathname contains ";" but that should
  10860. # okay in the real world where ";" in dirpaths is itself problematic.
  10861. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10862. else
  10863. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10864. fi
  10865. else
  10866. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10867. fi
  10868. need_lib_prefix=unknown
  10869. hardcode_into_libs=no
  10870. # when you set need_version to no, make sure it does not cause -set_version
  10871. # flags to be left without arguments
  10872. need_version=unknown
  10873. case $host_os in
  10874. aix3*)
  10875. version_type=linux
  10876. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10877. shlibpath_var=LIBPATH
  10878. # AIX 3 has no versioning support, so we append a major version to the name.
  10879. soname_spec='${libname}${release}${shared_ext}$major'
  10880. ;;
  10881. aix4* | aix5*)
  10882. version_type=linux
  10883. need_lib_prefix=no
  10884. need_version=no
  10885. hardcode_into_libs=yes
  10886. if test "$host_cpu" = ia64; then
  10887. # AIX 5 supports IA64
  10888. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10889. shlibpath_var=LD_LIBRARY_PATH
  10890. else
  10891. # With GCC up to 2.95.x, collect2 would create an import file
  10892. # for dependence libraries. The import file would start with
  10893. # the line `#! .'. This would cause the generated library to
  10894. # depend on `.', always an invalid library. This was fixed in
  10895. # development snapshots of GCC prior to 3.0.
  10896. case $host_os in
  10897. aix4 | aix4.[01] | aix4.[01].*)
  10898. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10899. echo ' yes '
  10900. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  10901. :
  10902. else
  10903. can_build_shared=no
  10904. fi
  10905. ;;
  10906. esac
  10907. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10908. # soname into executable. Probably we can add versioning support to
  10909. # collect2, so additional links can be useful in future.
  10910. if test "$aix_use_runtimelinking" = yes; then
  10911. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10912. # instead of lib<name>.a to let people know that these are not
  10913. # typical AIX shared libraries.
  10914. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10915. else
  10916. # We preserve .a as extension for shared libraries through AIX4.2
  10917. # and later when we are not doing run time linking.
  10918. library_names_spec='${libname}${release}.a $libname.a'
  10919. soname_spec='${libname}${release}${shared_ext}$major'
  10920. fi
  10921. shlibpath_var=LIBPATH
  10922. fi
  10923. ;;
  10924. amigaos*)
  10925. library_names_spec='$libname.ixlibrary $libname.a'
  10926. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10927. 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'
  10928. ;;
  10929. beos*)
  10930. library_names_spec='${libname}${shared_ext}'
  10931. dynamic_linker="$host_os ld.so"
  10932. shlibpath_var=LIBRARY_PATH
  10933. ;;
  10934. bsdi[45]*)
  10935. version_type=linux
  10936. need_version=no
  10937. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10938. soname_spec='${libname}${release}${shared_ext}$major'
  10939. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10940. shlibpath_var=LD_LIBRARY_PATH
  10941. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10942. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10943. # the default ld.so.conf also contains /usr/contrib/lib and
  10944. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10945. # libtool to hard-code these into programs
  10946. ;;
  10947. cygwin* | mingw* | pw32*)
  10948. version_type=windows
  10949. shrext_cmds=".dll"
  10950. need_version=no
  10951. need_lib_prefix=no
  10952. case $GCC,$host_os in
  10953. yes,cygwin* | yes,mingw* | yes,pw32*)
  10954. library_names_spec='$libname.dll.a'
  10955. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10956. postinstall_cmds='base_file=`basename \${file}`~
  10957. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  10958. dldir=$destdir/`dirname \$dlpath`~
  10959. test -d \$dldir || mkdir -p \$dldir~
  10960. $install_prog $dir/$dlname \$dldir/$dlname~
  10961. chmod a+x \$dldir/$dlname'
  10962. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10963. dlpath=$dir/\$dldll~
  10964. $rm \$dlpath'
  10965. shlibpath_overrides_runpath=yes
  10966. case $host_os in
  10967. cygwin*)
  10968. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10969. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10970. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  10971. ;;
  10972. mingw*)
  10973. # MinGW DLLs use traditional 'lib' prefix
  10974. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10975. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10976. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  10977. # It is most probably a Windows format PATH printed by
  10978. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  10979. # path with ; separators, and with drive letters. We can handle the
  10980. # drive letters (cygwin fileutils understands them), so leave them,
  10981. # especially as we might pass files found there to a mingw objdump,
  10982. # which wouldn't understand a cygwinified path. Ahh.
  10983. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10984. else
  10985. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10986. fi
  10987. ;;
  10988. pw32*)
  10989. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10990. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10991. ;;
  10992. esac
  10993. ;;
  10994. *)
  10995. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10996. ;;
  10997. esac
  10998. dynamic_linker='Win32 ld.exe'
  10999. # FIXME: first we should search . and the directory the executable is in
  11000. shlibpath_var=PATH
  11001. ;;
  11002. darwin* | rhapsody*)
  11003. dynamic_linker="$host_os dyld"
  11004. version_type=darwin
  11005. need_lib_prefix=no
  11006. need_version=no
  11007. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11008. soname_spec='${libname}${release}${major}$shared_ext'
  11009. shlibpath_overrides_runpath=yes
  11010. shlibpath_var=DYLD_LIBRARY_PATH
  11011. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11012. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  11013. if test "$GCC" = yes; then
  11014. 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"`
  11015. else
  11016. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  11017. fi
  11018. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11019. ;;
  11020. dgux*)
  11021. version_type=linux
  11022. need_lib_prefix=no
  11023. need_version=no
  11024. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11025. soname_spec='${libname}${release}${shared_ext}$major'
  11026. shlibpath_var=LD_LIBRARY_PATH
  11027. ;;
  11028. freebsd1*)
  11029. dynamic_linker=no
  11030. ;;
  11031. kfreebsd*-gnu)
  11032. version_type=linux
  11033. need_lib_prefix=no
  11034. need_version=no
  11035. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11036. soname_spec='${libname}${release}${shared_ext}$major'
  11037. shlibpath_var=LD_LIBRARY_PATH
  11038. shlibpath_overrides_runpath=no
  11039. hardcode_into_libs=yes
  11040. dynamic_linker='GNU ld.so'
  11041. ;;
  11042. freebsd* | dragonfly*)
  11043. # DragonFly does not have aout. When/if they implement a new
  11044. # versioning mechanism, adjust this.
  11045. if test -x /usr/bin/objformat; then
  11046. objformat=`/usr/bin/objformat`
  11047. else
  11048. case $host_os in
  11049. freebsd[123]*) objformat=aout ;;
  11050. *) objformat=elf ;;
  11051. esac
  11052. fi
  11053. version_type=freebsd-$objformat
  11054. case $version_type in
  11055. freebsd-elf*)
  11056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11057. need_version=no
  11058. need_lib_prefix=no
  11059. ;;
  11060. freebsd-*)
  11061. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11062. need_version=yes
  11063. ;;
  11064. esac
  11065. shlibpath_var=LD_LIBRARY_PATH
  11066. case $host_os in
  11067. freebsd2*)
  11068. shlibpath_overrides_runpath=yes
  11069. ;;
  11070. freebsd3.[01]* | freebsdelf3.[01]*)
  11071. shlibpath_overrides_runpath=yes
  11072. hardcode_into_libs=yes
  11073. ;;
  11074. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11075. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11076. shlibpath_overrides_runpath=no
  11077. hardcode_into_libs=yes
  11078. ;;
  11079. freebsd*) # from 4.6 on
  11080. shlibpath_overrides_runpath=yes
  11081. hardcode_into_libs=yes
  11082. ;;
  11083. esac
  11084. ;;
  11085. gnu*)
  11086. version_type=linux
  11087. need_lib_prefix=no
  11088. need_version=no
  11089. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11090. soname_spec='${libname}${release}${shared_ext}$major'
  11091. shlibpath_var=LD_LIBRARY_PATH
  11092. hardcode_into_libs=yes
  11093. ;;
  11094. hpux9* | hpux10* | hpux11*)
  11095. # Give a soname corresponding to the major version so that dld.sl refuses to
  11096. # link against other versions.
  11097. version_type=sunos
  11098. need_lib_prefix=no
  11099. need_version=no
  11100. case $host_cpu in
  11101. ia64*)
  11102. shrext_cmds='.so'
  11103. hardcode_into_libs=yes
  11104. dynamic_linker="$host_os dld.so"
  11105. shlibpath_var=LD_LIBRARY_PATH
  11106. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11108. soname_spec='${libname}${release}${shared_ext}$major'
  11109. if test "X$HPUX_IA64_MODE" = X32; then
  11110. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11111. else
  11112. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11113. fi
  11114. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11115. ;;
  11116. hppa*64*)
  11117. shrext_cmds='.sl'
  11118. hardcode_into_libs=yes
  11119. dynamic_linker="$host_os dld.sl"
  11120. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11121. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11122. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11123. soname_spec='${libname}${release}${shared_ext}$major'
  11124. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11125. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11126. ;;
  11127. *)
  11128. shrext_cmds='.sl'
  11129. dynamic_linker="$host_os dld.sl"
  11130. shlibpath_var=SHLIB_PATH
  11131. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11132. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11133. soname_spec='${libname}${release}${shared_ext}$major'
  11134. ;;
  11135. esac
  11136. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11137. postinstall_cmds='chmod 555 $lib'
  11138. ;;
  11139. interix3*)
  11140. version_type=linux
  11141. need_lib_prefix=no
  11142. need_version=no
  11143. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11144. soname_spec='${libname}${release}${shared_ext}$major'
  11145. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11146. shlibpath_var=LD_LIBRARY_PATH
  11147. shlibpath_overrides_runpath=no
  11148. hardcode_into_libs=yes
  11149. ;;
  11150. irix5* | irix6* | nonstopux*)
  11151. case $host_os in
  11152. nonstopux*) version_type=nonstopux ;;
  11153. *)
  11154. if test "$lt_cv_prog_gnu_ld" = yes; then
  11155. version_type=linux
  11156. else
  11157. version_type=irix
  11158. fi ;;
  11159. esac
  11160. need_lib_prefix=no
  11161. need_version=no
  11162. soname_spec='${libname}${release}${shared_ext}$major'
  11163. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11164. case $host_os in
  11165. irix5* | nonstopux*)
  11166. libsuff= shlibsuff=
  11167. ;;
  11168. *)
  11169. case $LD in # libtool.m4 will add one of these switches to LD
  11170. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11171. libsuff= shlibsuff= libmagic=32-bit;;
  11172. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11173. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11174. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11175. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11176. *) libsuff= shlibsuff= libmagic=never-match;;
  11177. esac
  11178. ;;
  11179. esac
  11180. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11181. shlibpath_overrides_runpath=no
  11182. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11183. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11184. hardcode_into_libs=yes
  11185. ;;
  11186. # No shared lib support for Linux oldld, aout, or coff.
  11187. linux*oldld* | linux*aout* | linux*coff*)
  11188. dynamic_linker=no
  11189. ;;
  11190. # This must be Linux ELF.
  11191. linux*)
  11192. version_type=linux
  11193. need_lib_prefix=no
  11194. need_version=no
  11195. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11196. soname_spec='${libname}${release}${shared_ext}$major'
  11197. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11198. shlibpath_var=LD_LIBRARY_PATH
  11199. shlibpath_overrides_runpath=no
  11200. # This implies no fast_install, which is unacceptable.
  11201. # Some rework will be needed to allow for fast_install
  11202. # before this can be enabled.
  11203. hardcode_into_libs=yes
  11204. # find out which ABI we are using
  11205. libsuff=
  11206. case "$host_cpu" in
  11207. x86_64*|s390x*|powerpc64*)
  11208. echo '#line 12374 "configure"' > conftest.$ac_ext
  11209. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11210. (eval $ac_compile) 2>&5
  11211. ac_status=$?
  11212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11213. (exit $ac_status); }; then
  11214. case `/usr/bin/file conftest.$ac_objext` in
  11215. *64-bit*)
  11216. libsuff=64
  11217. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  11218. ;;
  11219. esac
  11220. fi
  11221. rm -rf conftest*
  11222. ;;
  11223. esac
  11224. # Append ld.so.conf contents to the search path
  11225. if test -f /etc/ld.so.conf; then
  11226. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  11227. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  11228. fi
  11229. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11230. # powerpc, because MkLinux only supported shared libraries with the
  11231. # GNU dynamic linker. Since this was broken with cross compilers,
  11232. # most powerpc-linux boxes support dynamic linking these days and
  11233. # people can always --disable-shared, the test was removed, and we
  11234. # assume the GNU/Linux dynamic linker is in use.
  11235. dynamic_linker='GNU/Linux ld.so'
  11236. ;;
  11237. knetbsd*-gnu)
  11238. version_type=linux
  11239. need_lib_prefix=no
  11240. need_version=no
  11241. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11242. soname_spec='${libname}${release}${shared_ext}$major'
  11243. shlibpath_var=LD_LIBRARY_PATH
  11244. shlibpath_overrides_runpath=no
  11245. hardcode_into_libs=yes
  11246. dynamic_linker='GNU ld.so'
  11247. ;;
  11248. netbsd*)
  11249. version_type=sunos
  11250. need_lib_prefix=no
  11251. need_version=no
  11252. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11253. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11254. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11255. dynamic_linker='NetBSD (a.out) ld.so'
  11256. else
  11257. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11258. soname_spec='${libname}${release}${shared_ext}$major'
  11259. dynamic_linker='NetBSD ld.elf_so'
  11260. fi
  11261. shlibpath_var=LD_LIBRARY_PATH
  11262. shlibpath_overrides_runpath=yes
  11263. hardcode_into_libs=yes
  11264. ;;
  11265. newsos6)
  11266. version_type=linux
  11267. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11268. shlibpath_var=LD_LIBRARY_PATH
  11269. shlibpath_overrides_runpath=yes
  11270. ;;
  11271. nto-qnx*)
  11272. version_type=linux
  11273. need_lib_prefix=no
  11274. need_version=no
  11275. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11276. soname_spec='${libname}${release}${shared_ext}$major'
  11277. shlibpath_var=LD_LIBRARY_PATH
  11278. shlibpath_overrides_runpath=yes
  11279. ;;
  11280. openbsd*)
  11281. version_type=sunos
  11282. sys_lib_dlsearch_path_spec="/usr/lib"
  11283. need_lib_prefix=no
  11284. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11285. case $host_os in
  11286. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11287. *) need_version=no ;;
  11288. esac
  11289. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11290. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11291. shlibpath_var=LD_LIBRARY_PATH
  11292. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11293. case $host_os in
  11294. openbsd2.[89] | openbsd2.[89].*)
  11295. shlibpath_overrides_runpath=no
  11296. ;;
  11297. *)
  11298. shlibpath_overrides_runpath=yes
  11299. ;;
  11300. esac
  11301. else
  11302. shlibpath_overrides_runpath=yes
  11303. fi
  11304. ;;
  11305. os2*)
  11306. libname_spec='$name'
  11307. shrext_cmds=".dll"
  11308. need_lib_prefix=no
  11309. library_names_spec='$libname${shared_ext} $libname.a'
  11310. dynamic_linker='OS/2 ld.exe'
  11311. shlibpath_var=LIBPATH
  11312. ;;
  11313. osf3* | osf4* | osf5*)
  11314. version_type=osf
  11315. need_lib_prefix=no
  11316. need_version=no
  11317. soname_spec='${libname}${release}${shared_ext}$major'
  11318. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11319. shlibpath_var=LD_LIBRARY_PATH
  11320. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11321. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11322. ;;
  11323. solaris*)
  11324. version_type=linux
  11325. need_lib_prefix=no
  11326. need_version=no
  11327. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11328. soname_spec='${libname}${release}${shared_ext}$major'
  11329. shlibpath_var=LD_LIBRARY_PATH
  11330. shlibpath_overrides_runpath=yes
  11331. hardcode_into_libs=yes
  11332. # ldd complains unless libraries are executable
  11333. postinstall_cmds='chmod +x $lib'
  11334. ;;
  11335. sunos4*)
  11336. version_type=sunos
  11337. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11338. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11339. shlibpath_var=LD_LIBRARY_PATH
  11340. shlibpath_overrides_runpath=yes
  11341. if test "$with_gnu_ld" = yes; then
  11342. need_lib_prefix=no
  11343. fi
  11344. need_version=yes
  11345. ;;
  11346. sysv4 | sysv4.3*)
  11347. version_type=linux
  11348. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11349. soname_spec='${libname}${release}${shared_ext}$major'
  11350. shlibpath_var=LD_LIBRARY_PATH
  11351. case $host_vendor in
  11352. sni)
  11353. shlibpath_overrides_runpath=no
  11354. need_lib_prefix=no
  11355. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11356. runpath_var=LD_RUN_PATH
  11357. ;;
  11358. siemens)
  11359. need_lib_prefix=no
  11360. ;;
  11361. motorola)
  11362. need_lib_prefix=no
  11363. need_version=no
  11364. shlibpath_overrides_runpath=no
  11365. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11366. ;;
  11367. esac
  11368. ;;
  11369. sysv4*MP*)
  11370. if test -d /usr/nec ;then
  11371. version_type=linux
  11372. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11373. soname_spec='$libname${shared_ext}.$major'
  11374. shlibpath_var=LD_LIBRARY_PATH
  11375. fi
  11376. ;;
  11377. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11378. version_type=freebsd-elf
  11379. need_lib_prefix=no
  11380. need_version=no
  11381. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11382. soname_spec='${libname}${release}${shared_ext}$major'
  11383. shlibpath_var=LD_LIBRARY_PATH
  11384. hardcode_into_libs=yes
  11385. if test "$with_gnu_ld" = yes; then
  11386. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11387. shlibpath_overrides_runpath=no
  11388. else
  11389. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11390. shlibpath_overrides_runpath=yes
  11391. case $host_os in
  11392. sco3.2v5*)
  11393. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11394. ;;
  11395. esac
  11396. fi
  11397. sys_lib_dlsearch_path_spec='/usr/lib'
  11398. ;;
  11399. uts4*)
  11400. version_type=linux
  11401. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11402. soname_spec='${libname}${release}${shared_ext}$major'
  11403. shlibpath_var=LD_LIBRARY_PATH
  11404. ;;
  11405. *)
  11406. dynamic_linker=no
  11407. ;;
  11408. esac
  11409. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11410. echo "${ECHO_T}$dynamic_linker" >&6
  11411. test "$dynamic_linker" = no && can_build_shared=no
  11412. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11413. if test "$GCC" = yes; then
  11414. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11415. fi
  11416. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11417. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  11418. hardcode_action_CXX=
  11419. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11420. test -n "$runpath_var_CXX" || \
  11421. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11422. # We can hardcode non-existant directories.
  11423. if test "$hardcode_direct_CXX" != no &&
  11424. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11425. # have to relink, otherwise we might link with an installed library
  11426. # when we should be linking with a yet-to-be-installed one
  11427. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11428. test "$hardcode_minus_L_CXX" != no; then
  11429. # Linking always hardcodes the temporary library directory.
  11430. hardcode_action_CXX=relink
  11431. else
  11432. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11433. hardcode_action_CXX=immediate
  11434. fi
  11435. else
  11436. # We cannot hardcode anything, or else we can only hardcode existing
  11437. # directories.
  11438. hardcode_action_CXX=unsupported
  11439. fi
  11440. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11441. echo "${ECHO_T}$hardcode_action_CXX" >&6
  11442. if test "$hardcode_action_CXX" = relink; then
  11443. # Fast installation is not supported
  11444. enable_fast_install=no
  11445. elif test "$shlibpath_overrides_runpath" = yes ||
  11446. test "$enable_shared" = no; then
  11447. # Fast installation is not necessary
  11448. enable_fast_install=needless
  11449. fi
  11450. # The else clause should only fire when bootstrapping the
  11451. # libtool distribution, otherwise you forgot to ship ltmain.sh
  11452. # with your package, and you will get complaints that there are
  11453. # no rules to generate ltmain.sh.
  11454. if test -f "$ltmain"; then
  11455. # See if we are running on zsh, and set the options which allow our commands through
  11456. # without removal of \ escapes.
  11457. if test -n "${ZSH_VERSION+set}" ; then
  11458. setopt NO_GLOB_SUBST
  11459. fi
  11460. # Now quote all the things that may contain metacharacters while being
  11461. # careful not to overquote the AC_SUBSTed values. We take copies of the
  11462. # variables and quote the copies for generation of the libtool script.
  11463. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  11464. SED SHELL STRIP \
  11465. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11466. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11467. deplibs_check_method reload_flag reload_cmds need_locks \
  11468. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11469. lt_cv_sys_global_symbol_to_c_name_address \
  11470. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11471. old_postinstall_cmds old_postuninstall_cmds \
  11472. compiler_CXX \
  11473. CC_CXX \
  11474. LD_CXX \
  11475. lt_prog_compiler_wl_CXX \
  11476. lt_prog_compiler_pic_CXX \
  11477. lt_prog_compiler_static_CXX \
  11478. lt_prog_compiler_no_builtin_flag_CXX \
  11479. export_dynamic_flag_spec_CXX \
  11480. thread_safe_flag_spec_CXX \
  11481. whole_archive_flag_spec_CXX \
  11482. enable_shared_with_static_runtimes_CXX \
  11483. old_archive_cmds_CXX \
  11484. old_archive_from_new_cmds_CXX \
  11485. predep_objects_CXX \
  11486. postdep_objects_CXX \
  11487. predeps_CXX \
  11488. postdeps_CXX \
  11489. compiler_lib_search_path_CXX \
  11490. archive_cmds_CXX \
  11491. archive_expsym_cmds_CXX \
  11492. postinstall_cmds_CXX \
  11493. postuninstall_cmds_CXX \
  11494. old_archive_from_expsyms_cmds_CXX \
  11495. allow_undefined_flag_CXX \
  11496. no_undefined_flag_CXX \
  11497. export_symbols_cmds_CXX \
  11498. hardcode_libdir_flag_spec_CXX \
  11499. hardcode_libdir_flag_spec_ld_CXX \
  11500. hardcode_libdir_separator_CXX \
  11501. hardcode_automatic_CXX \
  11502. module_cmds_CXX \
  11503. module_expsym_cmds_CXX \
  11504. lt_cv_prog_compiler_c_o_CXX \
  11505. exclude_expsyms_CXX \
  11506. include_expsyms_CXX; do
  11507. case $var in
  11508. old_archive_cmds_CXX | \
  11509. old_archive_from_new_cmds_CXX | \
  11510. archive_cmds_CXX | \
  11511. archive_expsym_cmds_CXX | \
  11512. module_cmds_CXX | \
  11513. module_expsym_cmds_CXX | \
  11514. old_archive_from_expsyms_cmds_CXX | \
  11515. export_symbols_cmds_CXX | \
  11516. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11517. postinstall_cmds | postuninstall_cmds | \
  11518. old_postinstall_cmds | old_postuninstall_cmds | \
  11519. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11520. # Double-quote double-evaled strings.
  11521. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11522. ;;
  11523. *)
  11524. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11525. ;;
  11526. esac
  11527. done
  11528. case $lt_echo in
  11529. *'\$0 --fallback-echo"')
  11530. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  11531. ;;
  11532. esac
  11533. cfgfile="$ofile"
  11534. cat <<__EOF__ >> "$cfgfile"
  11535. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  11536. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11537. # Shell to use when invoking shell scripts.
  11538. SHELL=$lt_SHELL
  11539. # Whether or not to build shared libraries.
  11540. build_libtool_libs=$enable_shared
  11541. # Whether or not to build static libraries.
  11542. build_old_libs=$enable_static
  11543. # Whether or not to add -lc for building shared libraries.
  11544. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  11545. # Whether or not to disallow shared libs when runtime libs are static
  11546. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  11547. # Whether or not to optimize for fast installation.
  11548. fast_install=$enable_fast_install
  11549. # The host system.
  11550. host_alias=$host_alias
  11551. host=$host
  11552. host_os=$host_os
  11553. # The build system.
  11554. build_alias=$build_alias
  11555. build=$build
  11556. build_os=$build_os
  11557. # An echo program that does not interpret backslashes.
  11558. echo=$lt_echo
  11559. # The archiver.
  11560. AR=$lt_AR
  11561. AR_FLAGS=$lt_AR_FLAGS
  11562. # A C compiler.
  11563. LTCC=$lt_LTCC
  11564. # LTCC compiler flags.
  11565. LTCFLAGS=$lt_LTCFLAGS
  11566. # A language-specific compiler.
  11567. CC=$lt_compiler_CXX
  11568. # Is the compiler the GNU C compiler?
  11569. with_gcc=$GCC_CXX
  11570. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  11571. gcc_ver=\`gcc -dumpversion\`
  11572. # An ERE matcher.
  11573. EGREP=$lt_EGREP
  11574. # The linker used to build libraries.
  11575. LD=$lt_LD_CXX
  11576. # Whether we need hard or soft links.
  11577. LN_S=$lt_LN_S
  11578. # A BSD-compatible nm program.
  11579. NM=$lt_NM
  11580. # A symbol stripping program
  11581. STRIP=$lt_STRIP
  11582. # Used to examine libraries when file_magic_cmd begins "file"
  11583. MAGIC_CMD=$MAGIC_CMD
  11584. # Used on cygwin: DLL creation program.
  11585. DLLTOOL="$DLLTOOL"
  11586. # Used on cygwin: object dumper.
  11587. OBJDUMP="$OBJDUMP"
  11588. # Used on cygwin: assembler.
  11589. AS="$AS"
  11590. # The name of the directory that contains temporary libtool files.
  11591. objdir=$objdir
  11592. # How to create reloadable object files.
  11593. reload_flag=$lt_reload_flag
  11594. reload_cmds=$lt_reload_cmds
  11595. # How to pass a linker flag through the compiler.
  11596. wl=$lt_lt_prog_compiler_wl_CXX
  11597. # Object file suffix (normally "o").
  11598. objext="$ac_objext"
  11599. # Old archive suffix (normally "a").
  11600. libext="$libext"
  11601. # Shared library suffix (normally ".so").
  11602. shrext_cmds='$shrext_cmds'
  11603. # Executable file suffix (normally "").
  11604. exeext="$exeext"
  11605. # Additional compiler flags for building library objects.
  11606. pic_flag=$lt_lt_prog_compiler_pic_CXX
  11607. pic_mode=$pic_mode
  11608. # What is the maximum length of a command?
  11609. max_cmd_len=$lt_cv_sys_max_cmd_len
  11610. # Does compiler simultaneously support -c and -o options?
  11611. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  11612. # Must we lock files when doing compilation?
  11613. need_locks=$lt_need_locks
  11614. # Do we need the lib prefix for modules?
  11615. need_lib_prefix=$need_lib_prefix
  11616. # Do we need a version for libraries?
  11617. need_version=$need_version
  11618. # Whether dlopen is supported.
  11619. dlopen_support=$enable_dlopen
  11620. # Whether dlopen of programs is supported.
  11621. dlopen_self=$enable_dlopen_self
  11622. # Whether dlopen of statically linked programs is supported.
  11623. dlopen_self_static=$enable_dlopen_self_static
  11624. # Compiler flag to prevent dynamic linking.
  11625. link_static_flag=$lt_lt_prog_compiler_static_CXX
  11626. # Compiler flag to turn off builtin functions.
  11627. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  11628. # Compiler flag to allow reflexive dlopens.
  11629. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  11630. # Compiler flag to generate shared objects directly from archives.
  11631. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  11632. # Compiler flag to generate thread-safe objects.
  11633. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  11634. # Library versioning type.
  11635. version_type=$version_type
  11636. # Format of library name prefix.
  11637. libname_spec=$lt_libname_spec
  11638. # List of archive names. First name is the real one, the rest are links.
  11639. # The last name is the one that the linker finds with -lNAME.
  11640. library_names_spec=$lt_library_names_spec
  11641. # The coded name of the library, if different from the real name.
  11642. soname_spec=$lt_soname_spec
  11643. # Commands used to build and install an old-style archive.
  11644. RANLIB=$lt_RANLIB
  11645. old_archive_cmds=$lt_old_archive_cmds_CXX
  11646. old_postinstall_cmds=$lt_old_postinstall_cmds
  11647. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11648. # Create an old-style archive from a shared archive.
  11649. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  11650. # Create a temporary old-style archive to link instead of a shared archive.
  11651. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  11652. # Commands used to build and install a shared archive.
  11653. archive_cmds=$lt_archive_cmds_CXX
  11654. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  11655. postinstall_cmds=$lt_postinstall_cmds
  11656. postuninstall_cmds=$lt_postuninstall_cmds
  11657. # Commands used to build a loadable module (assumed same as above if empty)
  11658. module_cmds=$lt_module_cmds_CXX
  11659. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  11660. # Commands to strip libraries.
  11661. old_striplib=$lt_old_striplib
  11662. striplib=$lt_striplib
  11663. # Dependencies to place before the objects being linked to create a
  11664. # shared library.
  11665. predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  11666. # Dependencies to place after the objects being linked to create a
  11667. # shared library.
  11668. postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  11669. # Dependencies to place before the objects being linked to create a
  11670. # shared library.
  11671. predeps=$lt_predeps_CXX
  11672. # Dependencies to place after the objects being linked to create a
  11673. # shared library.
  11674. postdeps=$lt_postdeps_CXX
  11675. # The library search path used internally by the compiler when linking
  11676. # a shared library.
  11677. compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  11678. # Method to check whether dependent libraries are shared objects.
  11679. deplibs_check_method=$lt_deplibs_check_method
  11680. # Command to use when deplibs_check_method == file_magic.
  11681. file_magic_cmd=$lt_file_magic_cmd
  11682. # Flag that allows shared libraries with undefined symbols to be built.
  11683. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  11684. # Flag that forces no undefined symbols.
  11685. no_undefined_flag=$lt_no_undefined_flag_CXX
  11686. # Commands used to finish a libtool library installation in a directory.
  11687. finish_cmds=$lt_finish_cmds
  11688. # Same as above, but a single script fragment to be evaled but not shown.
  11689. finish_eval=$lt_finish_eval
  11690. # Take the output of nm and produce a listing of raw symbols and C names.
  11691. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11692. # Transform the output of nm in a proper C declaration
  11693. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11694. # Transform the output of nm in a C name address pair
  11695. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11696. # This is the shared library runtime path variable.
  11697. runpath_var=$runpath_var
  11698. # This is the shared library path variable.
  11699. shlibpath_var=$shlibpath_var
  11700. # Is shlibpath searched before the hard-coded library search path?
  11701. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11702. # How to hardcode a shared library path into an executable.
  11703. hardcode_action=$hardcode_action_CXX
  11704. # Whether we should hardcode library paths into libraries.
  11705. hardcode_into_libs=$hardcode_into_libs
  11706. # Flag to hardcode \$libdir into a binary during linking.
  11707. # This must work even if \$libdir does not exist.
  11708. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  11709. # If ld is used when linking, flag to hardcode \$libdir into
  11710. # a binary during linking. This must work even if \$libdir does
  11711. # not exist.
  11712. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  11713. # Whether we need a single -rpath flag with a separated argument.
  11714. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  11715. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  11716. # resulting binary.
  11717. hardcode_direct=$hardcode_direct_CXX
  11718. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  11719. # resulting binary.
  11720. hardcode_minus_L=$hardcode_minus_L_CXX
  11721. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  11722. # the resulting binary.
  11723. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  11724. # Set to yes if building a shared library automatically hardcodes DIR into the library
  11725. # and all subsequent libraries and executables linked against it.
  11726. hardcode_automatic=$hardcode_automatic_CXX
  11727. # Variables whose values should be saved in libtool wrapper scripts and
  11728. # restored at relink time.
  11729. variables_saved_for_relink="$variables_saved_for_relink"
  11730. # Whether libtool must link a program against all its dependency libraries.
  11731. link_all_deplibs=$link_all_deplibs_CXX
  11732. # Compile-time system search path for libraries
  11733. sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  11734. # Run-time system search path for libraries
  11735. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11736. # Fix the shell variable \$srcfile for the compiler.
  11737. fix_srcfile_path="$fix_srcfile_path_CXX"
  11738. # Set to yes if exported symbols are required.
  11739. always_export_symbols=$always_export_symbols_CXX
  11740. # The commands to list exported symbols.
  11741. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  11742. # The commands to extract the exported symbol list from a shared archive.
  11743. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11744. # Symbols that should not be listed in the preloaded symbols.
  11745. exclude_expsyms=$lt_exclude_expsyms_CXX
  11746. # Symbols that must always be exported.
  11747. include_expsyms=$lt_include_expsyms_CXX
  11748. # ### END LIBTOOL TAG CONFIG: $tagname
  11749. __EOF__
  11750. else
  11751. # If there is no Makefile yet, we rely on a make rule to execute
  11752. # `config.status --recheck' to rerun these tests and create the
  11753. # libtool script then.
  11754. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  11755. if test -f "$ltmain_in"; then
  11756. test -f Makefile && make "$ltmain"
  11757. fi
  11758. fi
  11759. ac_ext=c
  11760. ac_cpp='$CPP $CPPFLAGS'
  11761. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11762. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11763. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11764. CC=$lt_save_CC
  11765. LDCXX=$LD
  11766. LD=$lt_save_LD
  11767. GCC=$lt_save_GCC
  11768. with_gnu_ldcxx=$with_gnu_ld
  11769. with_gnu_ld=$lt_save_with_gnu_ld
  11770. lt_cv_path_LDCXX=$lt_cv_path_LD
  11771. lt_cv_path_LD=$lt_save_path_LD
  11772. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  11773. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  11774. else
  11775. tagname=""
  11776. fi
  11777. ;;
  11778. F77)
  11779. if test -n "$F77" && test "X$F77" != "Xno"; then
  11780. ac_ext=f
  11781. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  11782. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11783. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  11784. archive_cmds_need_lc_F77=no
  11785. allow_undefined_flag_F77=
  11786. always_export_symbols_F77=no
  11787. archive_expsym_cmds_F77=
  11788. export_dynamic_flag_spec_F77=
  11789. hardcode_direct_F77=no
  11790. hardcode_libdir_flag_spec_F77=
  11791. hardcode_libdir_flag_spec_ld_F77=
  11792. hardcode_libdir_separator_F77=
  11793. hardcode_minus_L_F77=no
  11794. hardcode_automatic_F77=no
  11795. module_cmds_F77=
  11796. module_expsym_cmds_F77=
  11797. link_all_deplibs_F77=unknown
  11798. old_archive_cmds_F77=$old_archive_cmds
  11799. no_undefined_flag_F77=
  11800. whole_archive_flag_spec_F77=
  11801. enable_shared_with_static_runtimes_F77=no
  11802. # Source file extension for f77 test sources.
  11803. ac_ext=f
  11804. # Object file extension for compiled f77 test sources.
  11805. objext=o
  11806. objext_F77=$objext
  11807. # Code to be used in simple compile tests
  11808. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  11809. # Code to be used in simple link tests
  11810. lt_simple_link_test_code=" program t\n end\n"
  11811. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11812. # If no C compiler was specified, use CC.
  11813. LTCC=${LTCC-"$CC"}
  11814. # If no C compiler flags were specified, use CFLAGS.
  11815. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11816. # Allow CC to be a program name with arguments.
  11817. compiler=$CC
  11818. # save warnings/boilerplate of simple test code
  11819. ac_outfile=conftest.$ac_objext
  11820. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  11821. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11822. _lt_compiler_boilerplate=`cat conftest.err`
  11823. $rm conftest*
  11824. ac_outfile=conftest.$ac_objext
  11825. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  11826. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11827. _lt_linker_boilerplate=`cat conftest.err`
  11828. $rm conftest*
  11829. # Allow CC to be a program name with arguments.
  11830. lt_save_CC="$CC"
  11831. CC=${F77-"f77"}
  11832. compiler=$CC
  11833. compiler_F77=$CC
  11834. for cc_temp in $compiler""; do
  11835. case $cc_temp in
  11836. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11837. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11838. \-*) ;;
  11839. *) break;;
  11840. esac
  11841. done
  11842. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11843. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11844. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  11845. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11846. echo "${ECHO_T}$can_build_shared" >&6
  11847. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11848. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  11849. test "$can_build_shared" = "no" && enable_shared=no
  11850. # On AIX, shared libraries and static libraries use the same namespace, and
  11851. # are all built from PIC.
  11852. case $host_os in
  11853. aix3*)
  11854. test "$enable_shared" = yes && enable_static=no
  11855. if test -n "$RANLIB"; then
  11856. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11857. postinstall_cmds='$RANLIB $lib'
  11858. fi
  11859. ;;
  11860. aix4* | aix5*)
  11861. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11862. test "$enable_shared" = yes && enable_static=no
  11863. fi
  11864. ;;
  11865. esac
  11866. echo "$as_me:$LINENO: result: $enable_shared" >&5
  11867. echo "${ECHO_T}$enable_shared" >&6
  11868. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11869. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  11870. # Make sure either enable_shared or enable_static is yes.
  11871. test "$enable_shared" = yes || enable_static=yes
  11872. echo "$as_me:$LINENO: result: $enable_static" >&5
  11873. echo "${ECHO_T}$enable_static" >&6
  11874. GCC_F77="$G77"
  11875. LD_F77="$LD"
  11876. lt_prog_compiler_wl_F77=
  11877. lt_prog_compiler_pic_F77=
  11878. lt_prog_compiler_static_F77=
  11879. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11880. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  11881. if test "$GCC" = yes; then
  11882. lt_prog_compiler_wl_F77='-Wl,'
  11883. lt_prog_compiler_static_F77='-static'
  11884. case $host_os in
  11885. aix*)
  11886. # All AIX code is PIC.
  11887. if test "$host_cpu" = ia64; then
  11888. # AIX 5 now supports IA64 processor
  11889. lt_prog_compiler_static_F77='-Bstatic'
  11890. fi
  11891. ;;
  11892. amigaos*)
  11893. # FIXME: we need at least 68020 code to build shared libraries, but
  11894. # adding the `-m68020' flag to GCC prevents building anything better,
  11895. # like `-m68040'.
  11896. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  11897. ;;
  11898. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11899. # PIC is the default for these OSes.
  11900. ;;
  11901. mingw* | pw32* | os2*)
  11902. # This hack is so that the source file can tell whether it is being
  11903. # built for inclusion in a dll (and should export symbols for example).
  11904. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11905. ;;
  11906. darwin* | rhapsody*)
  11907. # PIC is the default on this platform
  11908. # Common symbols not allowed in MH_DYLIB files
  11909. lt_prog_compiler_pic_F77='-fno-common'
  11910. ;;
  11911. interix3*)
  11912. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11913. # Instead, we relocate shared libraries at runtime.
  11914. ;;
  11915. msdosdjgpp*)
  11916. # Just because we use GCC doesn't mean we suddenly get shared libraries
  11917. # on systems that don't support them.
  11918. lt_prog_compiler_can_build_shared_F77=no
  11919. enable_shared=no
  11920. ;;
  11921. sysv4*MP*)
  11922. if test -d /usr/nec; then
  11923. lt_prog_compiler_pic_F77=-Kconform_pic
  11924. fi
  11925. ;;
  11926. hpux*)
  11927. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11928. # not for PA HP-UX.
  11929. case $host_cpu in
  11930. hppa*64*|ia64*)
  11931. # +Z the default
  11932. ;;
  11933. *)
  11934. lt_prog_compiler_pic_F77='-fPIC'
  11935. ;;
  11936. esac
  11937. ;;
  11938. *)
  11939. lt_prog_compiler_pic_F77='-fPIC'
  11940. ;;
  11941. esac
  11942. else
  11943. # PORTME Check for flag to pass linker flags through the system compiler.
  11944. case $host_os in
  11945. aix*)
  11946. lt_prog_compiler_wl_F77='-Wl,'
  11947. if test "$host_cpu" = ia64; then
  11948. # AIX 5 now supports IA64 processor
  11949. lt_prog_compiler_static_F77='-Bstatic'
  11950. else
  11951. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  11952. fi
  11953. ;;
  11954. darwin*)
  11955. # PIC is the default on this platform
  11956. # Common symbols not allowed in MH_DYLIB files
  11957. case $cc_basename in
  11958. xlc*)
  11959. lt_prog_compiler_pic_F77='-qnocommon'
  11960. lt_prog_compiler_wl_F77='-Wl,'
  11961. ;;
  11962. esac
  11963. ;;
  11964. mingw* | pw32* | os2*)
  11965. # This hack is so that the source file can tell whether it is being
  11966. # built for inclusion in a dll (and should export symbols for example).
  11967. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11968. ;;
  11969. hpux9* | hpux10* | hpux11*)
  11970. lt_prog_compiler_wl_F77='-Wl,'
  11971. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11972. # not for PA HP-UX.
  11973. case $host_cpu in
  11974. hppa*64*|ia64*)
  11975. # +Z the default
  11976. ;;
  11977. *)
  11978. lt_prog_compiler_pic_F77='+Z'
  11979. ;;
  11980. esac
  11981. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11982. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  11983. ;;
  11984. irix5* | irix6* | nonstopux*)
  11985. lt_prog_compiler_wl_F77='-Wl,'
  11986. # PIC (with -KPIC) is the default.
  11987. lt_prog_compiler_static_F77='-non_shared'
  11988. ;;
  11989. newsos6)
  11990. lt_prog_compiler_pic_F77='-KPIC'
  11991. lt_prog_compiler_static_F77='-Bstatic'
  11992. ;;
  11993. linux*)
  11994. case $cc_basename in
  11995. icc* | ecc*)
  11996. lt_prog_compiler_wl_F77='-Wl,'
  11997. lt_prog_compiler_pic_F77='-KPIC'
  11998. lt_prog_compiler_static_F77='-static'
  11999. ;;
  12000. pgcc* | pgf77* | pgf90* | pgf95*)
  12001. # Portland Group compilers (*not* the Pentium gcc compiler,
  12002. # which looks to be a dead project)
  12003. lt_prog_compiler_wl_F77='-Wl,'
  12004. lt_prog_compiler_pic_F77='-fpic'
  12005. lt_prog_compiler_static_F77='-Bstatic'
  12006. ;;
  12007. ccc*)
  12008. lt_prog_compiler_wl_F77='-Wl,'
  12009. # All Alpha code is PIC.
  12010. lt_prog_compiler_static_F77='-non_shared'
  12011. ;;
  12012. esac
  12013. ;;
  12014. osf3* | osf4* | osf5*)
  12015. lt_prog_compiler_wl_F77='-Wl,'
  12016. # All OSF/1 code is PIC.
  12017. lt_prog_compiler_static_F77='-non_shared'
  12018. ;;
  12019. solaris*)
  12020. lt_prog_compiler_pic_F77='-KPIC'
  12021. lt_prog_compiler_static_F77='-Bstatic'
  12022. case $cc_basename in
  12023. f77* | f90* | f95*)
  12024. lt_prog_compiler_wl_F77='-Qoption ld ';;
  12025. *)
  12026. lt_prog_compiler_wl_F77='-Wl,';;
  12027. esac
  12028. ;;
  12029. sunos4*)
  12030. lt_prog_compiler_wl_F77='-Qoption ld '
  12031. lt_prog_compiler_pic_F77='-PIC'
  12032. lt_prog_compiler_static_F77='-Bstatic'
  12033. ;;
  12034. sysv4 | sysv4.2uw2* | sysv4.3*)
  12035. lt_prog_compiler_wl_F77='-Wl,'
  12036. lt_prog_compiler_pic_F77='-KPIC'
  12037. lt_prog_compiler_static_F77='-Bstatic'
  12038. ;;
  12039. sysv4*MP*)
  12040. if test -d /usr/nec ;then
  12041. lt_prog_compiler_pic_F77='-Kconform_pic'
  12042. lt_prog_compiler_static_F77='-Bstatic'
  12043. fi
  12044. ;;
  12045. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12046. lt_prog_compiler_wl_F77='-Wl,'
  12047. lt_prog_compiler_pic_F77='-KPIC'
  12048. lt_prog_compiler_static_F77='-Bstatic'
  12049. ;;
  12050. unicos*)
  12051. lt_prog_compiler_wl_F77='-Wl,'
  12052. lt_prog_compiler_can_build_shared_F77=no
  12053. ;;
  12054. uts4*)
  12055. lt_prog_compiler_pic_F77='-pic'
  12056. lt_prog_compiler_static_F77='-Bstatic'
  12057. ;;
  12058. *)
  12059. lt_prog_compiler_can_build_shared_F77=no
  12060. ;;
  12061. esac
  12062. fi
  12063. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  12064. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  12065. #
  12066. # Check to make sure the PIC flag actually works.
  12067. #
  12068. if test -n "$lt_prog_compiler_pic_F77"; then
  12069. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  12070. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  12071. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  12072. echo $ECHO_N "(cached) $ECHO_C" >&6
  12073. else
  12074. lt_prog_compiler_pic_works_F77=no
  12075. ac_outfile=conftest.$ac_objext
  12076. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12077. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  12078. # Insert the option either (1) after the last *FLAGS variable, or
  12079. # (2) before a word containing "conftest.", or (3) at the end.
  12080. # Note that $ac_compile itself does not contain backslashes and begins
  12081. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12082. # The option is referenced via a variable to avoid confusing sed.
  12083. lt_compile=`echo "$ac_compile" | $SED \
  12084. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12085. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12086. -e 's:$: $lt_compiler_flag:'`
  12087. (eval echo "\"\$as_me:13432: $lt_compile\"" >&5)
  12088. (eval "$lt_compile" 2>conftest.err)
  12089. ac_status=$?
  12090. cat conftest.err >&5
  12091. echo "$as_me:13436: \$? = $ac_status" >&5
  12092. if (exit $ac_status) && test -s "$ac_outfile"; then
  12093. # The compiler can only warn and ignore the option if not recognized
  12094. # So say no if there are warnings other than the usual output.
  12095. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12096. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12097. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12098. lt_prog_compiler_pic_works_F77=yes
  12099. fi
  12100. fi
  12101. $rm conftest*
  12102. fi
  12103. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12104. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  12105. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12106. case $lt_prog_compiler_pic_F77 in
  12107. "" | " "*) ;;
  12108. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12109. esac
  12110. else
  12111. lt_prog_compiler_pic_F77=
  12112. lt_prog_compiler_can_build_shared_F77=no
  12113. fi
  12114. fi
  12115. case $host_os in
  12116. # For platforms which do not support PIC, -DPIC is meaningless:
  12117. *djgpp*)
  12118. lt_prog_compiler_pic_F77=
  12119. ;;
  12120. *)
  12121. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12122. ;;
  12123. esac
  12124. #
  12125. # Check to make sure the static flag actually works.
  12126. #
  12127. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  12128. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12129. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  12130. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  12131. echo $ECHO_N "(cached) $ECHO_C" >&6
  12132. else
  12133. lt_prog_compiler_static_works_F77=no
  12134. save_LDFLAGS="$LDFLAGS"
  12135. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12136. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  12137. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12138. # The linker can only warn and ignore the option if not recognized
  12139. # So say no if there are warnings
  12140. if test -s conftest.err; then
  12141. # Append any errors to the config.log.
  12142. cat conftest.err 1>&5
  12143. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12144. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12145. if diff conftest.exp conftest.er2 >/dev/null; then
  12146. lt_prog_compiler_static_works_F77=yes
  12147. fi
  12148. else
  12149. lt_prog_compiler_static_works_F77=yes
  12150. fi
  12151. fi
  12152. $rm conftest*
  12153. LDFLAGS="$save_LDFLAGS"
  12154. fi
  12155. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  12156. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
  12157. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  12158. :
  12159. else
  12160. lt_prog_compiler_static_F77=
  12161. fi
  12162. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12163. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  12164. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12165. echo $ECHO_N "(cached) $ECHO_C" >&6
  12166. else
  12167. lt_cv_prog_compiler_c_o_F77=no
  12168. $rm -r conftest 2>/dev/null
  12169. mkdir conftest
  12170. cd conftest
  12171. mkdir out
  12172. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12173. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12174. # Insert the option either (1) after the last *FLAGS variable, or
  12175. # (2) before a word containing "conftest.", or (3) at the end.
  12176. # Note that $ac_compile itself does not contain backslashes and begins
  12177. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12178. lt_compile=`echo "$ac_compile" | $SED \
  12179. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12180. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12181. -e 's:$: $lt_compiler_flag:'`
  12182. (eval echo "\"\$as_me:13536: $lt_compile\"" >&5)
  12183. (eval "$lt_compile" 2>out/conftest.err)
  12184. ac_status=$?
  12185. cat out/conftest.err >&5
  12186. echo "$as_me:13540: \$? = $ac_status" >&5
  12187. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12188. then
  12189. # The compiler can only warn and ignore the option if not recognized
  12190. # So say no if there are warnings
  12191. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12192. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12193. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12194. lt_cv_prog_compiler_c_o_F77=yes
  12195. fi
  12196. fi
  12197. chmod u+w . 2>&5
  12198. $rm conftest*
  12199. # SGI C++ compiler will create directory out/ii_files/ for
  12200. # template instantiation
  12201. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12202. $rm out/* && rmdir out
  12203. cd ..
  12204. rmdir conftest
  12205. $rm conftest*
  12206. fi
  12207. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  12208. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  12209. hard_links="nottested"
  12210. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  12211. # do not overwrite the value of need_locks provided by the user
  12212. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12213. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  12214. hard_links=yes
  12215. $rm conftest*
  12216. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12217. touch conftest.a
  12218. ln conftest.a conftest.b 2>&5 || hard_links=no
  12219. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12220. echo "$as_me:$LINENO: result: $hard_links" >&5
  12221. echo "${ECHO_T}$hard_links" >&6
  12222. if test "$hard_links" = no; then
  12223. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12224. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12225. need_locks=warn
  12226. fi
  12227. else
  12228. need_locks=no
  12229. fi
  12230. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12231. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  12232. runpath_var=
  12233. allow_undefined_flag_F77=
  12234. enable_shared_with_static_runtimes_F77=no
  12235. archive_cmds_F77=
  12236. archive_expsym_cmds_F77=
  12237. old_archive_From_new_cmds_F77=
  12238. old_archive_from_expsyms_cmds_F77=
  12239. export_dynamic_flag_spec_F77=
  12240. whole_archive_flag_spec_F77=
  12241. thread_safe_flag_spec_F77=
  12242. hardcode_libdir_flag_spec_F77=
  12243. hardcode_libdir_flag_spec_ld_F77=
  12244. hardcode_libdir_separator_F77=
  12245. hardcode_direct_F77=no
  12246. hardcode_minus_L_F77=no
  12247. hardcode_shlibpath_var_F77=unsupported
  12248. link_all_deplibs_F77=unknown
  12249. hardcode_automatic_F77=no
  12250. module_cmds_F77=
  12251. module_expsym_cmds_F77=
  12252. always_export_symbols_F77=no
  12253. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12254. # include_expsyms should be a list of space-separated symbols to be *always*
  12255. # included in the symbol list
  12256. include_expsyms_F77=
  12257. # exclude_expsyms can be an extended regexp of symbols to exclude
  12258. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12259. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12260. # as well as any symbol that contains `d'.
  12261. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  12262. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12263. # platforms (ab)use it in PIC code, but their linkers get confused if
  12264. # the symbol is explicitly referenced. Since portable code cannot
  12265. # rely on this symbol name, it's probably fine to never include it in
  12266. # preloaded symbol tables.
  12267. extract_expsyms_cmds=
  12268. # Just being paranoid about ensuring that cc_basename is set.
  12269. for cc_temp in $compiler""; do
  12270. case $cc_temp in
  12271. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12272. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12273. \-*) ;;
  12274. *) break;;
  12275. esac
  12276. done
  12277. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12278. case $host_os in
  12279. cygwin* | mingw* | pw32*)
  12280. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12281. # When not using gcc, we currently assume that we are using
  12282. # Microsoft Visual C++.
  12283. if test "$GCC" != yes; then
  12284. with_gnu_ld=no
  12285. fi
  12286. ;;
  12287. interix*)
  12288. # we just hope/assume this is gcc and not c89 (= MSVC++)
  12289. with_gnu_ld=yes
  12290. ;;
  12291. openbsd*)
  12292. with_gnu_ld=no
  12293. ;;
  12294. esac
  12295. ld_shlibs_F77=yes
  12296. if test "$with_gnu_ld" = yes; then
  12297. # If archive_cmds runs LD, not CC, wlarc should be empty
  12298. wlarc='${wl}'
  12299. # Set some defaults for GNU ld with shared library support. These
  12300. # are reset later if shared libraries are not supported. Putting them
  12301. # here allows them to be overridden if necessary.
  12302. runpath_var=LD_RUN_PATH
  12303. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  12304. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  12305. # ancient GNU ld didn't support --whole-archive et. al.
  12306. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  12307. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12308. else
  12309. whole_archive_flag_spec_F77=
  12310. fi
  12311. supports_anon_versioning=no
  12312. case `$LD -v 2>/dev/null` in
  12313. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12314. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12315. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12316. *\ 2.11.*) ;; # other 2.11 versions
  12317. *) supports_anon_versioning=yes ;;
  12318. esac
  12319. # See if GNU ld supports shared libraries.
  12320. case $host_os in
  12321. aix3* | aix4* | aix5*)
  12322. # On AIX/PPC, the GNU linker is very broken
  12323. if test "$host_cpu" != ia64; then
  12324. ld_shlibs_F77=no
  12325. cat <<EOF 1>&2
  12326. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12327. *** to be unable to reliably create shared libraries on AIX.
  12328. *** Therefore, libtool is disabling shared libraries support. If you
  12329. *** really care for shared libraries, you may want to modify your PATH
  12330. *** so that a non-GNU linker is found, and then restart.
  12331. EOF
  12332. fi
  12333. ;;
  12334. amigaos*)
  12335. 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)'
  12336. hardcode_libdir_flag_spec_F77='-L$libdir'
  12337. hardcode_minus_L_F77=yes
  12338. # Samuel A. Falvo II <[email protected]> reports
  12339. # that the semantics of dynamic libraries on AmigaOS, at least up
  12340. # to version 4, is to share data among multiple programs linked
  12341. # with the same dynamic library. Since this doesn't match the
  12342. # behavior of shared libraries on other platforms, we can't use
  12343. # them.
  12344. ld_shlibs_F77=no
  12345. ;;
  12346. beos*)
  12347. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12348. allow_undefined_flag_F77=unsupported
  12349. # Joseph Beckenbach <[email protected]> says some releases of gcc
  12350. # support --undefined. This deserves some investigation. FIXME
  12351. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12352. else
  12353. ld_shlibs_F77=no
  12354. fi
  12355. ;;
  12356. cygwin* | mingw* | pw32*)
  12357. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  12358. # as there is no search path for DLLs.
  12359. hardcode_libdir_flag_spec_F77='-L$libdir'
  12360. allow_undefined_flag_F77=unsupported
  12361. always_export_symbols_F77=no
  12362. enable_shared_with_static_runtimes_F77=yes
  12363. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  12364. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  12365. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12366. # If the export-symbols file already is a .def file (1st line
  12367. # is EXPORTS), use it as is; otherwise, prepend...
  12368. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12369. cp $export_symbols $output_objdir/$soname.def;
  12370. else
  12371. echo EXPORTS > $output_objdir/$soname.def;
  12372. cat $export_symbols >> $output_objdir/$soname.def;
  12373. fi~
  12374. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12375. else
  12376. ld_shlibs_F77=no
  12377. fi
  12378. ;;
  12379. interix3*)
  12380. hardcode_direct_F77=no
  12381. hardcode_shlibpath_var_F77=no
  12382. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12383. export_dynamic_flag_spec_F77='${wl}-E'
  12384. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12385. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12386. # default) and relocated if they conflict, which is a slow very memory
  12387. # consuming and fragmenting process. To avoid this, we pick a random,
  12388. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12389. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12390. archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12391. archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12392. ;;
  12393. linux*)
  12394. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12395. tmp_addflag=
  12396. case $cc_basename,$host_cpu in
  12397. pgcc*) # Portland Group C compiler
  12398. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  12399. tmp_addflag=' $pic_flag'
  12400. ;;
  12401. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  12402. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  12403. tmp_addflag=' $pic_flag -Mnomain' ;;
  12404. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12405. tmp_addflag=' -i_dynamic' ;;
  12406. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12407. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12408. ifc* | ifort*) # Intel Fortran compiler
  12409. tmp_addflag=' -nofor_main' ;;
  12410. esac
  12411. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12412. if test $supports_anon_versioning = yes; then
  12413. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  12414. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12415. $echo "local: *; };" >> $output_objdir/$libname.ver~
  12416. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12417. fi
  12418. else
  12419. ld_shlibs_F77=no
  12420. fi
  12421. ;;
  12422. netbsd*)
  12423. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12424. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12425. wlarc=
  12426. else
  12427. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12428. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12429. fi
  12430. ;;
  12431. solaris*)
  12432. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12433. ld_shlibs_F77=no
  12434. cat <<EOF 1>&2
  12435. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12436. *** create shared libraries on Solaris systems. Therefore, libtool
  12437. *** is disabling shared libraries support. We urge you to upgrade GNU
  12438. *** binutils to release 2.9.1 or newer. Another option is to modify
  12439. *** your PATH or compiler configuration so that the native linker is
  12440. *** used, and then restart.
  12441. EOF
  12442. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12443. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12444. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12445. else
  12446. ld_shlibs_F77=no
  12447. fi
  12448. ;;
  12449. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  12450. case `$LD -v 2>&1` in
  12451. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  12452. ld_shlibs_F77=no
  12453. cat <<_LT_EOF 1>&2
  12454. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  12455. *** reliably create shared libraries on SCO systems. Therefore, libtool
  12456. *** is disabling shared libraries support. We urge you to upgrade GNU
  12457. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  12458. *** your PATH or compiler configuration so that the native linker is
  12459. *** used, and then restart.
  12460. _LT_EOF
  12461. ;;
  12462. *)
  12463. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12464. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  12465. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  12466. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  12467. else
  12468. ld_shlibs_F77=no
  12469. fi
  12470. ;;
  12471. esac
  12472. ;;
  12473. sunos4*)
  12474. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12475. wlarc=
  12476. hardcode_direct_F77=yes
  12477. hardcode_shlibpath_var_F77=no
  12478. ;;
  12479. *)
  12480. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12481. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12482. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12483. else
  12484. ld_shlibs_F77=no
  12485. fi
  12486. ;;
  12487. esac
  12488. if test "$ld_shlibs_F77" = no; then
  12489. runpath_var=
  12490. hardcode_libdir_flag_spec_F77=
  12491. export_dynamic_flag_spec_F77=
  12492. whole_archive_flag_spec_F77=
  12493. fi
  12494. else
  12495. # PORTME fill in a description of your system's linker (not GNU ld)
  12496. case $host_os in
  12497. aix3*)
  12498. allow_undefined_flag_F77=unsupported
  12499. always_export_symbols_F77=yes
  12500. 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'
  12501. # Note: this linker hardcodes the directories in LIBPATH if there
  12502. # are no directories specified by -L.
  12503. hardcode_minus_L_F77=yes
  12504. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  12505. # Neither direct hardcoding nor static linking is supported with a
  12506. # broken collect2.
  12507. hardcode_direct_F77=unsupported
  12508. fi
  12509. ;;
  12510. aix4* | aix5*)
  12511. if test "$host_cpu" = ia64; then
  12512. # On IA64, the linker does run time linking by default, so we don't
  12513. # have to do anything special.
  12514. aix_use_runtimelinking=no
  12515. exp_sym_flag='-Bexport'
  12516. no_entry_flag=""
  12517. else
  12518. # If we're using GNU nm, then we don't want the "-C" option.
  12519. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12520. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12521. 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'
  12522. else
  12523. 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'
  12524. fi
  12525. aix_use_runtimelinking=no
  12526. # Test if we are trying to use run time linking or normal
  12527. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12528. # need to do runtime linking.
  12529. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  12530. for ld_flag in $LDFLAGS; do
  12531. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12532. aix_use_runtimelinking=yes
  12533. break
  12534. fi
  12535. done
  12536. ;;
  12537. esac
  12538. exp_sym_flag='-bexport'
  12539. no_entry_flag='-bnoentry'
  12540. fi
  12541. # When large executables or shared objects are built, AIX ld can
  12542. # have problems creating the table of contents. If linking a library
  12543. # or program results in "error TOC overflow" add -mminimal-toc to
  12544. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12545. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12546. archive_cmds_F77=''
  12547. hardcode_direct_F77=yes
  12548. hardcode_libdir_separator_F77=':'
  12549. link_all_deplibs_F77=yes
  12550. if test "$GCC" = yes; then
  12551. case $host_os in aix4.[012]|aix4.[012].*)
  12552. # We only want to do this on AIX 4.2 and lower, the check
  12553. # below for broken collect2 doesn't work under 4.3+
  12554. collect2name=`${CC} -print-prog-name=collect2`
  12555. if test -f "$collect2name" && \
  12556. strings "$collect2name" | grep resolve_lib_name >/dev/null
  12557. then
  12558. # We have reworked collect2
  12559. hardcode_direct_F77=yes
  12560. else
  12561. # We have old collect2
  12562. hardcode_direct_F77=unsupported
  12563. # It fails to find uninstalled libraries when the uninstalled
  12564. # path is not listed in the libpath. Setting hardcode_minus_L
  12565. # to unsupported forces relinking
  12566. hardcode_minus_L_F77=yes
  12567. hardcode_libdir_flag_spec_F77='-L$libdir'
  12568. hardcode_libdir_separator_F77=
  12569. fi
  12570. ;;
  12571. esac
  12572. shared_flag='-shared'
  12573. if test "$aix_use_runtimelinking" = yes; then
  12574. shared_flag="$shared_flag "'${wl}-G'
  12575. fi
  12576. else
  12577. # not using gcc
  12578. if test "$host_cpu" = ia64; then
  12579. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12580. # chokes on -Wl,-G. The following line is correct:
  12581. shared_flag='-G'
  12582. else
  12583. if test "$aix_use_runtimelinking" = yes; then
  12584. shared_flag='${wl}-G'
  12585. else
  12586. shared_flag='${wl}-bM:SRE'
  12587. fi
  12588. fi
  12589. fi
  12590. # It seems that -bexpall does not export symbols beginning with
  12591. # underscore (_), so it is better to generate a list of symbols to export.
  12592. always_export_symbols_F77=yes
  12593. if test "$aix_use_runtimelinking" = yes; then
  12594. # Warning - without using the other runtime loading flags (-brtl),
  12595. # -berok will link without error, but may produce a broken library.
  12596. allow_undefined_flag_F77='-berok'
  12597. # Determine the default libpath from the value encoded in an empty executable.
  12598. cat >conftest.$ac_ext <<_ACEOF
  12599. program main
  12600. end
  12601. _ACEOF
  12602. rm -f conftest.$ac_objext conftest$ac_exeext
  12603. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12604. (eval $ac_link) 2>conftest.er1
  12605. ac_status=$?
  12606. grep -v '^ *+' conftest.er1 >conftest.err
  12607. rm -f conftest.er1
  12608. cat conftest.err >&5
  12609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12610. (exit $ac_status); } &&
  12611. { ac_try='test -z "$ac_f77_werror_flag"
  12612. || test ! -s conftest.err'
  12613. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12614. (eval $ac_try) 2>&5
  12615. ac_status=$?
  12616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12617. (exit $ac_status); }; } &&
  12618. { ac_try='test -s conftest$ac_exeext'
  12619. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12620. (eval $ac_try) 2>&5
  12621. ac_status=$?
  12622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12623. (exit $ac_status); }; }; then
  12624. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12625. }'`
  12626. # Check for a 64-bit object if we didn't find anything.
  12627. 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; }
  12628. }'`; fi
  12629. else
  12630. echo "$as_me: failed program was:" >&5
  12631. sed 's/^/| /' conftest.$ac_ext >&5
  12632. fi
  12633. rm -f conftest.err conftest.$ac_objext \
  12634. conftest$ac_exeext conftest.$ac_ext
  12635. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12636. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12637. archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  12638. else
  12639. if test "$host_cpu" = ia64; then
  12640. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  12641. allow_undefined_flag_F77="-z nodefs"
  12642. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  12643. else
  12644. # Determine the default libpath from the value encoded in an empty executable.
  12645. cat >conftest.$ac_ext <<_ACEOF
  12646. program main
  12647. end
  12648. _ACEOF
  12649. rm -f conftest.$ac_objext conftest$ac_exeext
  12650. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12651. (eval $ac_link) 2>conftest.er1
  12652. ac_status=$?
  12653. grep -v '^ *+' conftest.er1 >conftest.err
  12654. rm -f conftest.er1
  12655. cat conftest.err >&5
  12656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12657. (exit $ac_status); } &&
  12658. { ac_try='test -z "$ac_f77_werror_flag"
  12659. || test ! -s conftest.err'
  12660. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12661. (eval $ac_try) 2>&5
  12662. ac_status=$?
  12663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12664. (exit $ac_status); }; } &&
  12665. { ac_try='test -s conftest$ac_exeext'
  12666. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12667. (eval $ac_try) 2>&5
  12668. ac_status=$?
  12669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12670. (exit $ac_status); }; }; then
  12671. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12672. }'`
  12673. # Check for a 64-bit object if we didn't find anything.
  12674. 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; }
  12675. }'`; fi
  12676. else
  12677. echo "$as_me: failed program was:" >&5
  12678. sed 's/^/| /' conftest.$ac_ext >&5
  12679. fi
  12680. rm -f conftest.err conftest.$ac_objext \
  12681. conftest$ac_exeext conftest.$ac_ext
  12682. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12683. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12684. # Warning - without using the other run time loading flags,
  12685. # -berok will link without error, but may produce a broken library.
  12686. no_undefined_flag_F77=' ${wl}-bernotok'
  12687. allow_undefined_flag_F77=' ${wl}-berok'
  12688. # Exported symbols can be pulled into shared objects from archives
  12689. whole_archive_flag_spec_F77='$convenience'
  12690. archive_cmds_need_lc_F77=yes
  12691. # This is similar to how AIX traditionally builds its shared libraries.
  12692. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  12693. fi
  12694. fi
  12695. ;;
  12696. amigaos*)
  12697. 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)'
  12698. hardcode_libdir_flag_spec_F77='-L$libdir'
  12699. hardcode_minus_L_F77=yes
  12700. # see comment about different semantics on the GNU ld section
  12701. ld_shlibs_F77=no
  12702. ;;
  12703. bsdi[45]*)
  12704. export_dynamic_flag_spec_F77=-rdynamic
  12705. ;;
  12706. cygwin* | mingw* | pw32*)
  12707. # When not using gcc, we currently assume that we are using
  12708. # Microsoft Visual C++.
  12709. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12710. # no search path for DLLs.
  12711. hardcode_libdir_flag_spec_F77=' '
  12712. allow_undefined_flag_F77=unsupported
  12713. # Tell ltmain to make .lib files, not .a files.
  12714. libext=lib
  12715. # Tell ltmain to make .dll files, not .so files.
  12716. shrext_cmds=".dll"
  12717. # FIXME: Setting linknames here is a bad hack.
  12718. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12719. # The linker will automatically build a .lib file if we build a DLL.
  12720. old_archive_From_new_cmds_F77='true'
  12721. # FIXME: Should let the user specify the lib program.
  12722. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12723. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  12724. enable_shared_with_static_runtimes_F77=yes
  12725. ;;
  12726. darwin* | rhapsody*)
  12727. case $host_os in
  12728. rhapsody* | darwin1.[012])
  12729. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  12730. ;;
  12731. *) # Darwin 1.3 on
  12732. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12733. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12734. else
  12735. case ${MACOSX_DEPLOYMENT_TARGET} in
  12736. 10.[012])
  12737. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12738. ;;
  12739. 10.*)
  12740. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  12741. ;;
  12742. esac
  12743. fi
  12744. ;;
  12745. esac
  12746. archive_cmds_need_lc_F77=no
  12747. hardcode_direct_F77=no
  12748. hardcode_automatic_F77=yes
  12749. hardcode_shlibpath_var_F77=unsupported
  12750. whole_archive_flag_spec_F77=''
  12751. link_all_deplibs_F77=yes
  12752. if test "$GCC" = yes ; then
  12753. output_verbose_link_cmd='echo'
  12754. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12755. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12756. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12757. archive_expsym_cmds_F77='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}'
  12758. 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}'
  12759. else
  12760. case $cc_basename in
  12761. xlc*)
  12762. output_verbose_link_cmd='echo'
  12763. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  12764. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12765. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12766. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12767. 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}'
  12768. ;;
  12769. *)
  12770. ld_shlibs_F77=no
  12771. ;;
  12772. esac
  12773. fi
  12774. ;;
  12775. dgux*)
  12776. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12777. hardcode_libdir_flag_spec_F77='-L$libdir'
  12778. hardcode_shlibpath_var_F77=no
  12779. ;;
  12780. freebsd1*)
  12781. ld_shlibs_F77=no
  12782. ;;
  12783. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12784. # support. Future versions do this automatically, but an explicit c++rt0.o
  12785. # does not break anything, and helps significantly (at the cost of a little
  12786. # extra space).
  12787. freebsd2.2*)
  12788. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12789. hardcode_libdir_flag_spec_F77='-R$libdir'
  12790. hardcode_direct_F77=yes
  12791. hardcode_shlibpath_var_F77=no
  12792. ;;
  12793. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12794. freebsd2*)
  12795. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12796. hardcode_direct_F77=yes
  12797. hardcode_minus_L_F77=yes
  12798. hardcode_shlibpath_var_F77=no
  12799. ;;
  12800. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12801. freebsd* | kfreebsd*-gnu | dragonfly*)
  12802. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12803. hardcode_libdir_flag_spec_F77='-R$libdir'
  12804. hardcode_direct_F77=yes
  12805. hardcode_shlibpath_var_F77=no
  12806. ;;
  12807. hpux9*)
  12808. if test "$GCC" = yes; then
  12809. 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'
  12810. else
  12811. 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'
  12812. fi
  12813. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12814. hardcode_libdir_separator_F77=:
  12815. hardcode_direct_F77=yes
  12816. # hardcode_minus_L: Not really in the search PATH,
  12817. # but as the default location of the library.
  12818. hardcode_minus_L_F77=yes
  12819. export_dynamic_flag_spec_F77='${wl}-E'
  12820. ;;
  12821. hpux10*)
  12822. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12823. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12824. else
  12825. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12826. fi
  12827. if test "$with_gnu_ld" = no; then
  12828. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12829. hardcode_libdir_separator_F77=:
  12830. hardcode_direct_F77=yes
  12831. export_dynamic_flag_spec_F77='${wl}-E'
  12832. # hardcode_minus_L: Not really in the search PATH,
  12833. # but as the default location of the library.
  12834. hardcode_minus_L_F77=yes
  12835. fi
  12836. ;;
  12837. hpux11*)
  12838. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12839. case $host_cpu in
  12840. hppa*64*)
  12841. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12842. ;;
  12843. ia64*)
  12844. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12845. ;;
  12846. *)
  12847. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12848. ;;
  12849. esac
  12850. else
  12851. case $host_cpu in
  12852. hppa*64*)
  12853. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12854. ;;
  12855. ia64*)
  12856. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12857. ;;
  12858. *)
  12859. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12860. ;;
  12861. esac
  12862. fi
  12863. if test "$with_gnu_ld" = no; then
  12864. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12865. hardcode_libdir_separator_F77=:
  12866. case $host_cpu in
  12867. hppa*64*|ia64*)
  12868. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  12869. hardcode_direct_F77=no
  12870. hardcode_shlibpath_var_F77=no
  12871. ;;
  12872. *)
  12873. hardcode_direct_F77=yes
  12874. export_dynamic_flag_spec_F77='${wl}-E'
  12875. # hardcode_minus_L: Not really in the search PATH,
  12876. # but as the default location of the library.
  12877. hardcode_minus_L_F77=yes
  12878. ;;
  12879. esac
  12880. fi
  12881. ;;
  12882. irix5* | irix6* | nonstopux*)
  12883. if test "$GCC" = yes; then
  12884. 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'
  12885. else
  12886. 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'
  12887. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  12888. fi
  12889. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12890. hardcode_libdir_separator_F77=:
  12891. link_all_deplibs_F77=yes
  12892. ;;
  12893. netbsd*)
  12894. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12895. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12896. else
  12897. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12898. fi
  12899. hardcode_libdir_flag_spec_F77='-R$libdir'
  12900. hardcode_direct_F77=yes
  12901. hardcode_shlibpath_var_F77=no
  12902. ;;
  12903. newsos6)
  12904. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12905. hardcode_direct_F77=yes
  12906. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12907. hardcode_libdir_separator_F77=:
  12908. hardcode_shlibpath_var_F77=no
  12909. ;;
  12910. openbsd*)
  12911. hardcode_direct_F77=yes
  12912. hardcode_shlibpath_var_F77=no
  12913. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12914. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12915. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12916. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12917. export_dynamic_flag_spec_F77='${wl}-E'
  12918. else
  12919. case $host_os in
  12920. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  12921. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12922. hardcode_libdir_flag_spec_F77='-R$libdir'
  12923. ;;
  12924. *)
  12925. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12926. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12927. ;;
  12928. esac
  12929. fi
  12930. ;;
  12931. os2*)
  12932. hardcode_libdir_flag_spec_F77='-L$libdir'
  12933. hardcode_minus_L_F77=yes
  12934. allow_undefined_flag_F77=unsupported
  12935. 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'
  12936. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12937. ;;
  12938. osf3*)
  12939. if test "$GCC" = yes; then
  12940. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12941. 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'
  12942. else
  12943. allow_undefined_flag_F77=' -expect_unresolved \*'
  12944. 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'
  12945. fi
  12946. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12947. hardcode_libdir_separator_F77=:
  12948. ;;
  12949. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12950. if test "$GCC" = yes; then
  12951. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12952. 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'
  12953. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12954. else
  12955. allow_undefined_flag_F77=' -expect_unresolved \*'
  12956. 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'
  12957. 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~
  12958. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  12959. # Both c and cxx compiler support -rpath directly
  12960. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  12961. fi
  12962. hardcode_libdir_separator_F77=:
  12963. ;;
  12964. solaris*)
  12965. no_undefined_flag_F77=' -z text'
  12966. if test "$GCC" = yes; then
  12967. wlarc='${wl}'
  12968. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12969. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12970. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12971. else
  12972. wlarc=''
  12973. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12974. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12975. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12976. fi
  12977. hardcode_libdir_flag_spec_F77='-R$libdir'
  12978. hardcode_shlibpath_var_F77=no
  12979. case $host_os in
  12980. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12981. *)
  12982. # The compiler driver will combine linker options so we
  12983. # cannot just pass the convience library names through
  12984. # without $wl, iff we do not link with $LD.
  12985. # Luckily, gcc supports the same syntax we need for Sun Studio.
  12986. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12987. case $wlarc in
  12988. '')
  12989. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  12990. *)
  12991. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  12992. esac ;;
  12993. esac
  12994. link_all_deplibs_F77=yes
  12995. ;;
  12996. sunos4*)
  12997. if test "x$host_vendor" = xsequent; then
  12998. # Use $CC to link under sequent, because it throws in some extra .o
  12999. # files that make .init and .fini sections work.
  13000. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13001. else
  13002. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13003. fi
  13004. hardcode_libdir_flag_spec_F77='-L$libdir'
  13005. hardcode_direct_F77=yes
  13006. hardcode_minus_L_F77=yes
  13007. hardcode_shlibpath_var_F77=no
  13008. ;;
  13009. sysv4)
  13010. case $host_vendor in
  13011. sni)
  13012. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13013. hardcode_direct_F77=yes # is this really true???
  13014. ;;
  13015. siemens)
  13016. ## LD is ld it makes a PLAMLIB
  13017. ## CC just makes a GrossModule.
  13018. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13019. reload_cmds_F77='$CC -r -o $output$reload_objs'
  13020. hardcode_direct_F77=no
  13021. ;;
  13022. motorola)
  13023. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13024. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13025. ;;
  13026. esac
  13027. runpath_var='LD_RUN_PATH'
  13028. hardcode_shlibpath_var_F77=no
  13029. ;;
  13030. sysv4.3*)
  13031. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13032. hardcode_shlibpath_var_F77=no
  13033. export_dynamic_flag_spec_F77='-Bexport'
  13034. ;;
  13035. sysv4*MP*)
  13036. if test -d /usr/nec; then
  13037. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13038. hardcode_shlibpath_var_F77=no
  13039. runpath_var=LD_RUN_PATH
  13040. hardcode_runpath_var=yes
  13041. ld_shlibs_F77=yes
  13042. fi
  13043. ;;
  13044. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  13045. no_undefined_flag_F77='${wl}-z,text'
  13046. archive_cmds_need_lc_F77=no
  13047. hardcode_shlibpath_var_F77=no
  13048. runpath_var='LD_RUN_PATH'
  13049. if test "$GCC" = yes; then
  13050. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13051. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13052. else
  13053. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13054. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13055. fi
  13056. ;;
  13057. sysv5* | sco3.2v5* | sco5v6*)
  13058. # Note: We can NOT use -z defs as we might desire, because we do not
  13059. # link with -lc, and that would cause any symbols used from libc to
  13060. # always be unresolved, which means just about no library would
  13061. # ever link correctly. If we're not using GNU ld we use -z text
  13062. # though, which does catch some bad symbols but isn't as heavy-handed
  13063. # as -z defs.
  13064. no_undefined_flag_F77='${wl}-z,text'
  13065. allow_undefined_flag_F77='${wl}-z,nodefs'
  13066. archive_cmds_need_lc_F77=no
  13067. hardcode_shlibpath_var_F77=no
  13068. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  13069. hardcode_libdir_separator_F77=':'
  13070. link_all_deplibs_F77=yes
  13071. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13072. runpath_var='LD_RUN_PATH'
  13073. if test "$GCC" = yes; then
  13074. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13075. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13076. else
  13077. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13078. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13079. fi
  13080. ;;
  13081. uts4*)
  13082. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13083. hardcode_libdir_flag_spec_F77='-L$libdir'
  13084. hardcode_shlibpath_var_F77=no
  13085. ;;
  13086. *)
  13087. ld_shlibs_F77=no
  13088. ;;
  13089. esac
  13090. fi
  13091. echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13092. echo "${ECHO_T}$ld_shlibs_F77" >&6
  13093. test "$ld_shlibs_F77" = no && can_build_shared=no
  13094. #
  13095. # Do we need to explicitly link libc?
  13096. #
  13097. case "x$archive_cmds_need_lc_F77" in
  13098. x|xyes)
  13099. # Assume -lc should be added
  13100. archive_cmds_need_lc_F77=yes
  13101. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13102. case $archive_cmds_F77 in
  13103. *'~'*)
  13104. # FIXME: we may have to deal with multi-command sequences.
  13105. ;;
  13106. '$CC '*)
  13107. # Test whether the compiler implicitly links with -lc since on some
  13108. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13109. # to ld, don't add -lc before -lgcc.
  13110. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13111. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  13112. $rm conftest*
  13113. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13114. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13115. (eval $ac_compile) 2>&5
  13116. ac_status=$?
  13117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13118. (exit $ac_status); } 2>conftest.err; then
  13119. soname=conftest
  13120. lib=conftest
  13121. libobjs=conftest.$ac_objext
  13122. deplibs=
  13123. wl=$lt_prog_compiler_wl_F77
  13124. pic_flag=$lt_prog_compiler_pic_F77
  13125. compiler_flags=-v
  13126. linker_flags=-v
  13127. verstring=
  13128. output_objdir=.
  13129. libname=conftest
  13130. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13131. allow_undefined_flag_F77=
  13132. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13133. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13134. ac_status=$?
  13135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13136. (exit $ac_status); }
  13137. then
  13138. archive_cmds_need_lc_F77=no
  13139. else
  13140. archive_cmds_need_lc_F77=yes
  13141. fi
  13142. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  13143. else
  13144. cat conftest.err 1>&5
  13145. fi
  13146. $rm conftest*
  13147. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  13148. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  13149. ;;
  13150. esac
  13151. fi
  13152. ;;
  13153. esac
  13154. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13155. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  13156. library_names_spec=
  13157. libname_spec='lib$name'
  13158. soname_spec=
  13159. shrext_cmds=".so"
  13160. postinstall_cmds=
  13161. postuninstall_cmds=
  13162. finish_cmds=
  13163. finish_eval=
  13164. shlibpath_var=
  13165. shlibpath_overrides_runpath=unknown
  13166. version_type=none
  13167. dynamic_linker="$host_os ld.so"
  13168. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13169. if test "$GCC" = yes; then
  13170. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13171. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  13172. # if the path contains ";" then we assume it to be the separator
  13173. # otherwise default to the standard path separator (i.e. ":") - it is
  13174. # assumed that no part of a normal pathname contains ";" but that should
  13175. # okay in the real world where ";" in dirpaths is itself problematic.
  13176. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13177. else
  13178. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13179. fi
  13180. else
  13181. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13182. fi
  13183. need_lib_prefix=unknown
  13184. hardcode_into_libs=no
  13185. # when you set need_version to no, make sure it does not cause -set_version
  13186. # flags to be left without arguments
  13187. need_version=unknown
  13188. case $host_os in
  13189. aix3*)
  13190. version_type=linux
  13191. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13192. shlibpath_var=LIBPATH
  13193. # AIX 3 has no versioning support, so we append a major version to the name.
  13194. soname_spec='${libname}${release}${shared_ext}$major'
  13195. ;;
  13196. aix4* | aix5*)
  13197. version_type=linux
  13198. need_lib_prefix=no
  13199. need_version=no
  13200. hardcode_into_libs=yes
  13201. if test "$host_cpu" = ia64; then
  13202. # AIX 5 supports IA64
  13203. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13204. shlibpath_var=LD_LIBRARY_PATH
  13205. else
  13206. # With GCC up to 2.95.x, collect2 would create an import file
  13207. # for dependence libraries. The import file would start with
  13208. # the line `#! .'. This would cause the generated library to
  13209. # depend on `.', always an invalid library. This was fixed in
  13210. # development snapshots of GCC prior to 3.0.
  13211. case $host_os in
  13212. aix4 | aix4.[01] | aix4.[01].*)
  13213. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13214. echo ' yes '
  13215. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13216. :
  13217. else
  13218. can_build_shared=no
  13219. fi
  13220. ;;
  13221. esac
  13222. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13223. # soname into executable. Probably we can add versioning support to
  13224. # collect2, so additional links can be useful in future.
  13225. if test "$aix_use_runtimelinking" = yes; then
  13226. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13227. # instead of lib<name>.a to let people know that these are not
  13228. # typical AIX shared libraries.
  13229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13230. else
  13231. # We preserve .a as extension for shared libraries through AIX4.2
  13232. # and later when we are not doing run time linking.
  13233. library_names_spec='${libname}${release}.a $libname.a'
  13234. soname_spec='${libname}${release}${shared_ext}$major'
  13235. fi
  13236. shlibpath_var=LIBPATH
  13237. fi
  13238. ;;
  13239. amigaos*)
  13240. library_names_spec='$libname.ixlibrary $libname.a'
  13241. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13242. 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'
  13243. ;;
  13244. beos*)
  13245. library_names_spec='${libname}${shared_ext}'
  13246. dynamic_linker="$host_os ld.so"
  13247. shlibpath_var=LIBRARY_PATH
  13248. ;;
  13249. bsdi[45]*)
  13250. version_type=linux
  13251. need_version=no
  13252. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13253. soname_spec='${libname}${release}${shared_ext}$major'
  13254. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13255. shlibpath_var=LD_LIBRARY_PATH
  13256. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13257. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13258. # the default ld.so.conf also contains /usr/contrib/lib and
  13259. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13260. # libtool to hard-code these into programs
  13261. ;;
  13262. cygwin* | mingw* | pw32*)
  13263. version_type=windows
  13264. shrext_cmds=".dll"
  13265. need_version=no
  13266. need_lib_prefix=no
  13267. case $GCC,$host_os in
  13268. yes,cygwin* | yes,mingw* | yes,pw32*)
  13269. library_names_spec='$libname.dll.a'
  13270. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13271. postinstall_cmds='base_file=`basename \${file}`~
  13272. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13273. dldir=$destdir/`dirname \$dlpath`~
  13274. test -d \$dldir || mkdir -p \$dldir~
  13275. $install_prog $dir/$dlname \$dldir/$dlname~
  13276. chmod a+x \$dldir/$dlname'
  13277. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13278. dlpath=$dir/\$dldll~
  13279. $rm \$dlpath'
  13280. shlibpath_overrides_runpath=yes
  13281. case $host_os in
  13282. cygwin*)
  13283. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13284. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13285. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13286. ;;
  13287. mingw*)
  13288. # MinGW DLLs use traditional 'lib' prefix
  13289. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13290. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13291. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13292. # It is most probably a Windows format PATH printed by
  13293. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13294. # path with ; separators, and with drive letters. We can handle the
  13295. # drive letters (cygwin fileutils understands them), so leave them,
  13296. # especially as we might pass files found there to a mingw objdump,
  13297. # which wouldn't understand a cygwinified path. Ahh.
  13298. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13299. else
  13300. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13301. fi
  13302. ;;
  13303. pw32*)
  13304. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13305. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13306. ;;
  13307. esac
  13308. ;;
  13309. *)
  13310. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13311. ;;
  13312. esac
  13313. dynamic_linker='Win32 ld.exe'
  13314. # FIXME: first we should search . and the directory the executable is in
  13315. shlibpath_var=PATH
  13316. ;;
  13317. darwin* | rhapsody*)
  13318. dynamic_linker="$host_os dyld"
  13319. version_type=darwin
  13320. need_lib_prefix=no
  13321. need_version=no
  13322. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13323. soname_spec='${libname}${release}${major}$shared_ext'
  13324. shlibpath_overrides_runpath=yes
  13325. shlibpath_var=DYLD_LIBRARY_PATH
  13326. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13327. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  13328. if test "$GCC" = yes; then
  13329. 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"`
  13330. else
  13331. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  13332. fi
  13333. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13334. ;;
  13335. dgux*)
  13336. version_type=linux
  13337. need_lib_prefix=no
  13338. need_version=no
  13339. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13340. soname_spec='${libname}${release}${shared_ext}$major'
  13341. shlibpath_var=LD_LIBRARY_PATH
  13342. ;;
  13343. freebsd1*)
  13344. dynamic_linker=no
  13345. ;;
  13346. kfreebsd*-gnu)
  13347. version_type=linux
  13348. need_lib_prefix=no
  13349. need_version=no
  13350. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13351. soname_spec='${libname}${release}${shared_ext}$major'
  13352. shlibpath_var=LD_LIBRARY_PATH
  13353. shlibpath_overrides_runpath=no
  13354. hardcode_into_libs=yes
  13355. dynamic_linker='GNU ld.so'
  13356. ;;
  13357. freebsd* | dragonfly*)
  13358. # DragonFly does not have aout. When/if they implement a new
  13359. # versioning mechanism, adjust this.
  13360. if test -x /usr/bin/objformat; then
  13361. objformat=`/usr/bin/objformat`
  13362. else
  13363. case $host_os in
  13364. freebsd[123]*) objformat=aout ;;
  13365. *) objformat=elf ;;
  13366. esac
  13367. fi
  13368. version_type=freebsd-$objformat
  13369. case $version_type in
  13370. freebsd-elf*)
  13371. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13372. need_version=no
  13373. need_lib_prefix=no
  13374. ;;
  13375. freebsd-*)
  13376. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13377. need_version=yes
  13378. ;;
  13379. esac
  13380. shlibpath_var=LD_LIBRARY_PATH
  13381. case $host_os in
  13382. freebsd2*)
  13383. shlibpath_overrides_runpath=yes
  13384. ;;
  13385. freebsd3.[01]* | freebsdelf3.[01]*)
  13386. shlibpath_overrides_runpath=yes
  13387. hardcode_into_libs=yes
  13388. ;;
  13389. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13390. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13391. shlibpath_overrides_runpath=no
  13392. hardcode_into_libs=yes
  13393. ;;
  13394. freebsd*) # from 4.6 on
  13395. shlibpath_overrides_runpath=yes
  13396. hardcode_into_libs=yes
  13397. ;;
  13398. esac
  13399. ;;
  13400. gnu*)
  13401. version_type=linux
  13402. need_lib_prefix=no
  13403. need_version=no
  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. shlibpath_var=LD_LIBRARY_PATH
  13407. hardcode_into_libs=yes
  13408. ;;
  13409. hpux9* | hpux10* | hpux11*)
  13410. # Give a soname corresponding to the major version so that dld.sl refuses to
  13411. # link against other versions.
  13412. version_type=sunos
  13413. need_lib_prefix=no
  13414. need_version=no
  13415. case $host_cpu in
  13416. ia64*)
  13417. shrext_cmds='.so'
  13418. hardcode_into_libs=yes
  13419. dynamic_linker="$host_os dld.so"
  13420. shlibpath_var=LD_LIBRARY_PATH
  13421. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13422. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13423. soname_spec='${libname}${release}${shared_ext}$major'
  13424. if test "X$HPUX_IA64_MODE" = X32; then
  13425. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13426. else
  13427. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13428. fi
  13429. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13430. ;;
  13431. hppa*64*)
  13432. shrext_cmds='.sl'
  13433. hardcode_into_libs=yes
  13434. dynamic_linker="$host_os dld.sl"
  13435. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13436. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13437. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13438. soname_spec='${libname}${release}${shared_ext}$major'
  13439. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13440. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13441. ;;
  13442. *)
  13443. shrext_cmds='.sl'
  13444. dynamic_linker="$host_os dld.sl"
  13445. shlibpath_var=SHLIB_PATH
  13446. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13447. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13448. soname_spec='${libname}${release}${shared_ext}$major'
  13449. ;;
  13450. esac
  13451. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13452. postinstall_cmds='chmod 555 $lib'
  13453. ;;
  13454. interix3*)
  13455. version_type=linux
  13456. need_lib_prefix=no
  13457. need_version=no
  13458. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13459. soname_spec='${libname}${release}${shared_ext}$major'
  13460. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13461. shlibpath_var=LD_LIBRARY_PATH
  13462. shlibpath_overrides_runpath=no
  13463. hardcode_into_libs=yes
  13464. ;;
  13465. irix5* | irix6* | nonstopux*)
  13466. case $host_os in
  13467. nonstopux*) version_type=nonstopux ;;
  13468. *)
  13469. if test "$lt_cv_prog_gnu_ld" = yes; then
  13470. version_type=linux
  13471. else
  13472. version_type=irix
  13473. fi ;;
  13474. esac
  13475. need_lib_prefix=no
  13476. need_version=no
  13477. soname_spec='${libname}${release}${shared_ext}$major'
  13478. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13479. case $host_os in
  13480. irix5* | nonstopux*)
  13481. libsuff= shlibsuff=
  13482. ;;
  13483. *)
  13484. case $LD in # libtool.m4 will add one of these switches to LD
  13485. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13486. libsuff= shlibsuff= libmagic=32-bit;;
  13487. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13488. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13489. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13490. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13491. *) libsuff= shlibsuff= libmagic=never-match;;
  13492. esac
  13493. ;;
  13494. esac
  13495. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13496. shlibpath_overrides_runpath=no
  13497. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13498. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13499. hardcode_into_libs=yes
  13500. ;;
  13501. # No shared lib support for Linux oldld, aout, or coff.
  13502. linux*oldld* | linux*aout* | linux*coff*)
  13503. dynamic_linker=no
  13504. ;;
  13505. # This must be Linux ELF.
  13506. linux*)
  13507. version_type=linux
  13508. need_lib_prefix=no
  13509. need_version=no
  13510. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13511. soname_spec='${libname}${release}${shared_ext}$major'
  13512. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13513. shlibpath_var=LD_LIBRARY_PATH
  13514. shlibpath_overrides_runpath=no
  13515. # This implies no fast_install, which is unacceptable.
  13516. # Some rework will be needed to allow for fast_install
  13517. # before this can be enabled.
  13518. hardcode_into_libs=yes
  13519. # find out which ABI we are using
  13520. libsuff=
  13521. case "$host_cpu" in
  13522. x86_64*|s390x*|powerpc64*)
  13523. echo '#line 14985 "configure"' > conftest.$ac_ext
  13524. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13525. (eval $ac_compile) 2>&5
  13526. ac_status=$?
  13527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13528. (exit $ac_status); }; then
  13529. case `/usr/bin/file conftest.$ac_objext` in
  13530. *64-bit*)
  13531. libsuff=64
  13532. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  13533. ;;
  13534. esac
  13535. fi
  13536. rm -rf conftest*
  13537. ;;
  13538. esac
  13539. # Append ld.so.conf contents to the search path
  13540. if test -f /etc/ld.so.conf; then
  13541. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  13542. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  13543. fi
  13544. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13545. # powerpc, because MkLinux only supported shared libraries with the
  13546. # GNU dynamic linker. Since this was broken with cross compilers,
  13547. # most powerpc-linux boxes support dynamic linking these days and
  13548. # people can always --disable-shared, the test was removed, and we
  13549. # assume the GNU/Linux dynamic linker is in use.
  13550. dynamic_linker='GNU/Linux ld.so'
  13551. ;;
  13552. knetbsd*-gnu)
  13553. version_type=linux
  13554. need_lib_prefix=no
  13555. need_version=no
  13556. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13557. soname_spec='${libname}${release}${shared_ext}$major'
  13558. shlibpath_var=LD_LIBRARY_PATH
  13559. shlibpath_overrides_runpath=no
  13560. hardcode_into_libs=yes
  13561. dynamic_linker='GNU ld.so'
  13562. ;;
  13563. netbsd*)
  13564. version_type=sunos
  13565. need_lib_prefix=no
  13566. need_version=no
  13567. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13568. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13569. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13570. dynamic_linker='NetBSD (a.out) ld.so'
  13571. else
  13572. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13573. soname_spec='${libname}${release}${shared_ext}$major'
  13574. dynamic_linker='NetBSD ld.elf_so'
  13575. fi
  13576. shlibpath_var=LD_LIBRARY_PATH
  13577. shlibpath_overrides_runpath=yes
  13578. hardcode_into_libs=yes
  13579. ;;
  13580. newsos6)
  13581. version_type=linux
  13582. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13583. shlibpath_var=LD_LIBRARY_PATH
  13584. shlibpath_overrides_runpath=yes
  13585. ;;
  13586. nto-qnx*)
  13587. version_type=linux
  13588. need_lib_prefix=no
  13589. need_version=no
  13590. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13591. soname_spec='${libname}${release}${shared_ext}$major'
  13592. shlibpath_var=LD_LIBRARY_PATH
  13593. shlibpath_overrides_runpath=yes
  13594. ;;
  13595. openbsd*)
  13596. version_type=sunos
  13597. sys_lib_dlsearch_path_spec="/usr/lib"
  13598. need_lib_prefix=no
  13599. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13600. case $host_os in
  13601. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13602. *) need_version=no ;;
  13603. esac
  13604. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13605. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13606. shlibpath_var=LD_LIBRARY_PATH
  13607. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13608. case $host_os in
  13609. openbsd2.[89] | openbsd2.[89].*)
  13610. shlibpath_overrides_runpath=no
  13611. ;;
  13612. *)
  13613. shlibpath_overrides_runpath=yes
  13614. ;;
  13615. esac
  13616. else
  13617. shlibpath_overrides_runpath=yes
  13618. fi
  13619. ;;
  13620. os2*)
  13621. libname_spec='$name'
  13622. shrext_cmds=".dll"
  13623. need_lib_prefix=no
  13624. library_names_spec='$libname${shared_ext} $libname.a'
  13625. dynamic_linker='OS/2 ld.exe'
  13626. shlibpath_var=LIBPATH
  13627. ;;
  13628. osf3* | osf4* | osf5*)
  13629. version_type=osf
  13630. need_lib_prefix=no
  13631. need_version=no
  13632. soname_spec='${libname}${release}${shared_ext}$major'
  13633. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13634. shlibpath_var=LD_LIBRARY_PATH
  13635. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13636. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13637. ;;
  13638. solaris*)
  13639. version_type=linux
  13640. need_lib_prefix=no
  13641. need_version=no
  13642. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13643. soname_spec='${libname}${release}${shared_ext}$major'
  13644. shlibpath_var=LD_LIBRARY_PATH
  13645. shlibpath_overrides_runpath=yes
  13646. hardcode_into_libs=yes
  13647. # ldd complains unless libraries are executable
  13648. postinstall_cmds='chmod +x $lib'
  13649. ;;
  13650. sunos4*)
  13651. version_type=sunos
  13652. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13653. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13654. shlibpath_var=LD_LIBRARY_PATH
  13655. shlibpath_overrides_runpath=yes
  13656. if test "$with_gnu_ld" = yes; then
  13657. need_lib_prefix=no
  13658. fi
  13659. need_version=yes
  13660. ;;
  13661. sysv4 | sysv4.3*)
  13662. version_type=linux
  13663. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13664. soname_spec='${libname}${release}${shared_ext}$major'
  13665. shlibpath_var=LD_LIBRARY_PATH
  13666. case $host_vendor in
  13667. sni)
  13668. shlibpath_overrides_runpath=no
  13669. need_lib_prefix=no
  13670. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13671. runpath_var=LD_RUN_PATH
  13672. ;;
  13673. siemens)
  13674. need_lib_prefix=no
  13675. ;;
  13676. motorola)
  13677. need_lib_prefix=no
  13678. need_version=no
  13679. shlibpath_overrides_runpath=no
  13680. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13681. ;;
  13682. esac
  13683. ;;
  13684. sysv4*MP*)
  13685. if test -d /usr/nec ;then
  13686. version_type=linux
  13687. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13688. soname_spec='$libname${shared_ext}.$major'
  13689. shlibpath_var=LD_LIBRARY_PATH
  13690. fi
  13691. ;;
  13692. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13693. version_type=freebsd-elf
  13694. need_lib_prefix=no
  13695. need_version=no
  13696. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13697. soname_spec='${libname}${release}${shared_ext}$major'
  13698. shlibpath_var=LD_LIBRARY_PATH
  13699. hardcode_into_libs=yes
  13700. if test "$with_gnu_ld" = yes; then
  13701. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13702. shlibpath_overrides_runpath=no
  13703. else
  13704. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13705. shlibpath_overrides_runpath=yes
  13706. case $host_os in
  13707. sco3.2v5*)
  13708. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13709. ;;
  13710. esac
  13711. fi
  13712. sys_lib_dlsearch_path_spec='/usr/lib'
  13713. ;;
  13714. uts4*)
  13715. version_type=linux
  13716. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13717. soname_spec='${libname}${release}${shared_ext}$major'
  13718. shlibpath_var=LD_LIBRARY_PATH
  13719. ;;
  13720. *)
  13721. dynamic_linker=no
  13722. ;;
  13723. esac
  13724. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13725. echo "${ECHO_T}$dynamic_linker" >&6
  13726. test "$dynamic_linker" = no && can_build_shared=no
  13727. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13728. if test "$GCC" = yes; then
  13729. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13730. fi
  13731. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13732. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  13733. hardcode_action_F77=
  13734. if test -n "$hardcode_libdir_flag_spec_F77" || \
  13735. test -n "$runpath_var_F77" || \
  13736. test "X$hardcode_automatic_F77" = "Xyes" ; then
  13737. # We can hardcode non-existant directories.
  13738. if test "$hardcode_direct_F77" != no &&
  13739. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13740. # have to relink, otherwise we might link with an installed library
  13741. # when we should be linking with a yet-to-be-installed one
  13742. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  13743. test "$hardcode_minus_L_F77" != no; then
  13744. # Linking always hardcodes the temporary library directory.
  13745. hardcode_action_F77=relink
  13746. else
  13747. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13748. hardcode_action_F77=immediate
  13749. fi
  13750. else
  13751. # We cannot hardcode anything, or else we can only hardcode existing
  13752. # directories.
  13753. hardcode_action_F77=unsupported
  13754. fi
  13755. echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  13756. echo "${ECHO_T}$hardcode_action_F77" >&6
  13757. if test "$hardcode_action_F77" = relink; then
  13758. # Fast installation is not supported
  13759. enable_fast_install=no
  13760. elif test "$shlibpath_overrides_runpath" = yes ||
  13761. test "$enable_shared" = no; then
  13762. # Fast installation is not necessary
  13763. enable_fast_install=needless
  13764. fi
  13765. # The else clause should only fire when bootstrapping the
  13766. # libtool distribution, otherwise you forgot to ship ltmain.sh
  13767. # with your package, and you will get complaints that there are
  13768. # no rules to generate ltmain.sh.
  13769. if test -f "$ltmain"; then
  13770. # See if we are running on zsh, and set the options which allow our commands through
  13771. # without removal of \ escapes.
  13772. if test -n "${ZSH_VERSION+set}" ; then
  13773. setopt NO_GLOB_SUBST
  13774. fi
  13775. # Now quote all the things that may contain metacharacters while being
  13776. # careful not to overquote the AC_SUBSTed values. We take copies of the
  13777. # variables and quote the copies for generation of the libtool script.
  13778. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  13779. SED SHELL STRIP \
  13780. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  13781. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  13782. deplibs_check_method reload_flag reload_cmds need_locks \
  13783. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  13784. lt_cv_sys_global_symbol_to_c_name_address \
  13785. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  13786. old_postinstall_cmds old_postuninstall_cmds \
  13787. compiler_F77 \
  13788. CC_F77 \
  13789. LD_F77 \
  13790. lt_prog_compiler_wl_F77 \
  13791. lt_prog_compiler_pic_F77 \
  13792. lt_prog_compiler_static_F77 \
  13793. lt_prog_compiler_no_builtin_flag_F77 \
  13794. export_dynamic_flag_spec_F77 \
  13795. thread_safe_flag_spec_F77 \
  13796. whole_archive_flag_spec_F77 \
  13797. enable_shared_with_static_runtimes_F77 \
  13798. old_archive_cmds_F77 \
  13799. old_archive_from_new_cmds_F77 \
  13800. predep_objects_F77 \
  13801. postdep_objects_F77 \
  13802. predeps_F77 \
  13803. postdeps_F77 \
  13804. compiler_lib_search_path_F77 \
  13805. archive_cmds_F77 \
  13806. archive_expsym_cmds_F77 \
  13807. postinstall_cmds_F77 \
  13808. postuninstall_cmds_F77 \
  13809. old_archive_from_expsyms_cmds_F77 \
  13810. allow_undefined_flag_F77 \
  13811. no_undefined_flag_F77 \
  13812. export_symbols_cmds_F77 \
  13813. hardcode_libdir_flag_spec_F77 \
  13814. hardcode_libdir_flag_spec_ld_F77 \
  13815. hardcode_libdir_separator_F77 \
  13816. hardcode_automatic_F77 \
  13817. module_cmds_F77 \
  13818. module_expsym_cmds_F77 \
  13819. lt_cv_prog_compiler_c_o_F77 \
  13820. exclude_expsyms_F77 \
  13821. include_expsyms_F77; do
  13822. case $var in
  13823. old_archive_cmds_F77 | \
  13824. old_archive_from_new_cmds_F77 | \
  13825. archive_cmds_F77 | \
  13826. archive_expsym_cmds_F77 | \
  13827. module_cmds_F77 | \
  13828. module_expsym_cmds_F77 | \
  13829. old_archive_from_expsyms_cmds_F77 | \
  13830. export_symbols_cmds_F77 | \
  13831. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  13832. postinstall_cmds | postuninstall_cmds | \
  13833. old_postinstall_cmds | old_postuninstall_cmds | \
  13834. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  13835. # Double-quote double-evaled strings.
  13836. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  13837. ;;
  13838. *)
  13839. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  13840. ;;
  13841. esac
  13842. done
  13843. case $lt_echo in
  13844. *'\$0 --fallback-echo"')
  13845. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  13846. ;;
  13847. esac
  13848. cfgfile="$ofile"
  13849. cat <<__EOF__ >> "$cfgfile"
  13850. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  13851. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13852. # Shell to use when invoking shell scripts.
  13853. SHELL=$lt_SHELL
  13854. # Whether or not to build shared libraries.
  13855. build_libtool_libs=$enable_shared
  13856. # Whether or not to build static libraries.
  13857. build_old_libs=$enable_static
  13858. # Whether or not to add -lc for building shared libraries.
  13859. build_libtool_need_lc=$archive_cmds_need_lc_F77
  13860. # Whether or not to disallow shared libs when runtime libs are static
  13861. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  13862. # Whether or not to optimize for fast installation.
  13863. fast_install=$enable_fast_install
  13864. # The host system.
  13865. host_alias=$host_alias
  13866. host=$host
  13867. host_os=$host_os
  13868. # The build system.
  13869. build_alias=$build_alias
  13870. build=$build
  13871. build_os=$build_os
  13872. # An echo program that does not interpret backslashes.
  13873. echo=$lt_echo
  13874. # The archiver.
  13875. AR=$lt_AR
  13876. AR_FLAGS=$lt_AR_FLAGS
  13877. # A C compiler.
  13878. LTCC=$lt_LTCC
  13879. # LTCC compiler flags.
  13880. LTCFLAGS=$lt_LTCFLAGS
  13881. # A language-specific compiler.
  13882. CC=$lt_compiler_F77
  13883. # Is the compiler the GNU C compiler?
  13884. with_gcc=$GCC_F77
  13885. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  13886. gcc_ver=\`gcc -dumpversion\`
  13887. # An ERE matcher.
  13888. EGREP=$lt_EGREP
  13889. # The linker used to build libraries.
  13890. LD=$lt_LD_F77
  13891. # Whether we need hard or soft links.
  13892. LN_S=$lt_LN_S
  13893. # A BSD-compatible nm program.
  13894. NM=$lt_NM
  13895. # A symbol stripping program
  13896. STRIP=$lt_STRIP
  13897. # Used to examine libraries when file_magic_cmd begins "file"
  13898. MAGIC_CMD=$MAGIC_CMD
  13899. # Used on cygwin: DLL creation program.
  13900. DLLTOOL="$DLLTOOL"
  13901. # Used on cygwin: object dumper.
  13902. OBJDUMP="$OBJDUMP"
  13903. # Used on cygwin: assembler.
  13904. AS="$AS"
  13905. # The name of the directory that contains temporary libtool files.
  13906. objdir=$objdir
  13907. # How to create reloadable object files.
  13908. reload_flag=$lt_reload_flag
  13909. reload_cmds=$lt_reload_cmds
  13910. # How to pass a linker flag through the compiler.
  13911. wl=$lt_lt_prog_compiler_wl_F77
  13912. # Object file suffix (normally "o").
  13913. objext="$ac_objext"
  13914. # Old archive suffix (normally "a").
  13915. libext="$libext"
  13916. # Shared library suffix (normally ".so").
  13917. shrext_cmds='$shrext_cmds'
  13918. # Executable file suffix (normally "").
  13919. exeext="$exeext"
  13920. # Additional compiler flags for building library objects.
  13921. pic_flag=$lt_lt_prog_compiler_pic_F77
  13922. pic_mode=$pic_mode
  13923. # What is the maximum length of a command?
  13924. max_cmd_len=$lt_cv_sys_max_cmd_len
  13925. # Does compiler simultaneously support -c and -o options?
  13926. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  13927. # Must we lock files when doing compilation?
  13928. need_locks=$lt_need_locks
  13929. # Do we need the lib prefix for modules?
  13930. need_lib_prefix=$need_lib_prefix
  13931. # Do we need a version for libraries?
  13932. need_version=$need_version
  13933. # Whether dlopen is supported.
  13934. dlopen_support=$enable_dlopen
  13935. # Whether dlopen of programs is supported.
  13936. dlopen_self=$enable_dlopen_self
  13937. # Whether dlopen of statically linked programs is supported.
  13938. dlopen_self_static=$enable_dlopen_self_static
  13939. # Compiler flag to prevent dynamic linking.
  13940. link_static_flag=$lt_lt_prog_compiler_static_F77
  13941. # Compiler flag to turn off builtin functions.
  13942. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  13943. # Compiler flag to allow reflexive dlopens.
  13944. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  13945. # Compiler flag to generate shared objects directly from archives.
  13946. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  13947. # Compiler flag to generate thread-safe objects.
  13948. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  13949. # Library versioning type.
  13950. version_type=$version_type
  13951. # Format of library name prefix.
  13952. libname_spec=$lt_libname_spec
  13953. # List of archive names. First name is the real one, the rest are links.
  13954. # The last name is the one that the linker finds with -lNAME.
  13955. library_names_spec=$lt_library_names_spec
  13956. # The coded name of the library, if different from the real name.
  13957. soname_spec=$lt_soname_spec
  13958. # Commands used to build and install an old-style archive.
  13959. RANLIB=$lt_RANLIB
  13960. old_archive_cmds=$lt_old_archive_cmds_F77
  13961. old_postinstall_cmds=$lt_old_postinstall_cmds
  13962. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13963. # Create an old-style archive from a shared archive.
  13964. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  13965. # Create a temporary old-style archive to link instead of a shared archive.
  13966. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  13967. # Commands used to build and install a shared archive.
  13968. archive_cmds=$lt_archive_cmds_F77
  13969. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  13970. postinstall_cmds=$lt_postinstall_cmds
  13971. postuninstall_cmds=$lt_postuninstall_cmds
  13972. # Commands used to build a loadable module (assumed same as above if empty)
  13973. module_cmds=$lt_module_cmds_F77
  13974. module_expsym_cmds=$lt_module_expsym_cmds_F77
  13975. # Commands to strip libraries.
  13976. old_striplib=$lt_old_striplib
  13977. striplib=$lt_striplib
  13978. # Dependencies to place before the objects being linked to create a
  13979. # shared library.
  13980. predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  13981. # Dependencies to place after the objects being linked to create a
  13982. # shared library.
  13983. postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  13984. # Dependencies to place before the objects being linked to create a
  13985. # shared library.
  13986. predeps=$lt_predeps_F77
  13987. # Dependencies to place after the objects being linked to create a
  13988. # shared library.
  13989. postdeps=$lt_postdeps_F77
  13990. # The library search path used internally by the compiler when linking
  13991. # a shared library.
  13992. compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  13993. # Method to check whether dependent libraries are shared objects.
  13994. deplibs_check_method=$lt_deplibs_check_method
  13995. # Command to use when deplibs_check_method == file_magic.
  13996. file_magic_cmd=$lt_file_magic_cmd
  13997. # Flag that allows shared libraries with undefined symbols to be built.
  13998. allow_undefined_flag=$lt_allow_undefined_flag_F77
  13999. # Flag that forces no undefined symbols.
  14000. no_undefined_flag=$lt_no_undefined_flag_F77
  14001. # Commands used to finish a libtool library installation in a directory.
  14002. finish_cmds=$lt_finish_cmds
  14003. # Same as above, but a single script fragment to be evaled but not shown.
  14004. finish_eval=$lt_finish_eval
  14005. # Take the output of nm and produce a listing of raw symbols and C names.
  14006. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14007. # Transform the output of nm in a proper C declaration
  14008. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14009. # Transform the output of nm in a C name address pair
  14010. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14011. # This is the shared library runtime path variable.
  14012. runpath_var=$runpath_var
  14013. # This is the shared library path variable.
  14014. shlibpath_var=$shlibpath_var
  14015. # Is shlibpath searched before the hard-coded library search path?
  14016. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14017. # How to hardcode a shared library path into an executable.
  14018. hardcode_action=$hardcode_action_F77
  14019. # Whether we should hardcode library paths into libraries.
  14020. hardcode_into_libs=$hardcode_into_libs
  14021. # Flag to hardcode \$libdir into a binary during linking.
  14022. # This must work even if \$libdir does not exist.
  14023. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  14024. # If ld is used when linking, flag to hardcode \$libdir into
  14025. # a binary during linking. This must work even if \$libdir does
  14026. # not exist.
  14027. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  14028. # Whether we need a single -rpath flag with a separated argument.
  14029. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  14030. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14031. # resulting binary.
  14032. hardcode_direct=$hardcode_direct_F77
  14033. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14034. # resulting binary.
  14035. hardcode_minus_L=$hardcode_minus_L_F77
  14036. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14037. # the resulting binary.
  14038. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  14039. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14040. # and all subsequent libraries and executables linked against it.
  14041. hardcode_automatic=$hardcode_automatic_F77
  14042. # Variables whose values should be saved in libtool wrapper scripts and
  14043. # restored at relink time.
  14044. variables_saved_for_relink="$variables_saved_for_relink"
  14045. # Whether libtool must link a program against all its dependency libraries.
  14046. link_all_deplibs=$link_all_deplibs_F77
  14047. # Compile-time system search path for libraries
  14048. sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  14049. # Run-time system search path for libraries
  14050. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14051. # Fix the shell variable \$srcfile for the compiler.
  14052. fix_srcfile_path="$fix_srcfile_path_F77"
  14053. # Set to yes if exported symbols are required.
  14054. always_export_symbols=$always_export_symbols_F77
  14055. # The commands to list exported symbols.
  14056. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14057. # The commands to extract the exported symbol list from a shared archive.
  14058. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14059. # Symbols that should not be listed in the preloaded symbols.
  14060. exclude_expsyms=$lt_exclude_expsyms_F77
  14061. # Symbols that must always be exported.
  14062. include_expsyms=$lt_include_expsyms_F77
  14063. # ### END LIBTOOL TAG CONFIG: $tagname
  14064. __EOF__
  14065. else
  14066. # If there is no Makefile yet, we rely on a make rule to execute
  14067. # `config.status --recheck' to rerun these tests and create the
  14068. # libtool script then.
  14069. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14070. if test -f "$ltmain_in"; then
  14071. test -f Makefile && make "$ltmain"
  14072. fi
  14073. fi
  14074. ac_ext=c
  14075. ac_cpp='$CPP $CPPFLAGS'
  14076. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14077. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14078. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14079. CC="$lt_save_CC"
  14080. else
  14081. tagname=""
  14082. fi
  14083. ;;
  14084. GCJ)
  14085. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14086. # Source file extension for Java test sources.
  14087. ac_ext=java
  14088. # Object file extension for compiled Java test sources.
  14089. objext=o
  14090. objext_GCJ=$objext
  14091. # Code to be used in simple compile tests
  14092. lt_simple_compile_test_code="class foo {}\n"
  14093. # Code to be used in simple link tests
  14094. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  14095. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14096. # If no C compiler was specified, use CC.
  14097. LTCC=${LTCC-"$CC"}
  14098. # If no C compiler flags were specified, use CFLAGS.
  14099. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14100. # Allow CC to be a program name with arguments.
  14101. compiler=$CC
  14102. # save warnings/boilerplate of simple test code
  14103. ac_outfile=conftest.$ac_objext
  14104. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  14105. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14106. _lt_compiler_boilerplate=`cat conftest.err`
  14107. $rm conftest*
  14108. ac_outfile=conftest.$ac_objext
  14109. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  14110. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14111. _lt_linker_boilerplate=`cat conftest.err`
  14112. $rm conftest*
  14113. # Allow CC to be a program name with arguments.
  14114. lt_save_CC="$CC"
  14115. CC=${GCJ-"gcj"}
  14116. compiler=$CC
  14117. compiler_GCJ=$CC
  14118. for cc_temp in $compiler""; do
  14119. case $cc_temp in
  14120. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14121. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14122. \-*) ;;
  14123. *) break;;
  14124. esac
  14125. done
  14126. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14127. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14128. archive_cmds_need_lc_GCJ=no
  14129. old_archive_cmds_GCJ=$old_archive_cmds
  14130. lt_prog_compiler_no_builtin_flag_GCJ=
  14131. if test "$GCC" = yes; then
  14132. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14133. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14134. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  14135. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14136. echo $ECHO_N "(cached) $ECHO_C" >&6
  14137. else
  14138. lt_cv_prog_compiler_rtti_exceptions=no
  14139. ac_outfile=conftest.$ac_objext
  14140. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14141. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14142. # Insert the option either (1) after the last *FLAGS variable, or
  14143. # (2) before a word containing "conftest.", or (3) at the end.
  14144. # Note that $ac_compile itself does not contain backslashes and begins
  14145. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14146. # The option is referenced via a variable to avoid confusing sed.
  14147. lt_compile=`echo "$ac_compile" | $SED \
  14148. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14149. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14150. -e 's:$: $lt_compiler_flag:'`
  14151. (eval echo "\"\$as_me:15763: $lt_compile\"" >&5)
  14152. (eval "$lt_compile" 2>conftest.err)
  14153. ac_status=$?
  14154. cat conftest.err >&5
  14155. echo "$as_me:15767: \$? = $ac_status" >&5
  14156. if (exit $ac_status) && test -s "$ac_outfile"; then
  14157. # The compiler can only warn and ignore the option if not recognized
  14158. # So say no if there are warnings other than the usual output.
  14159. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14160. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14161. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14162. lt_cv_prog_compiler_rtti_exceptions=yes
  14163. fi
  14164. fi
  14165. $rm conftest*
  14166. fi
  14167. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14168. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  14169. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14170. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14171. else
  14172. :
  14173. fi
  14174. fi
  14175. lt_prog_compiler_wl_GCJ=
  14176. lt_prog_compiler_pic_GCJ=
  14177. lt_prog_compiler_static_GCJ=
  14178. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14179. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  14180. if test "$GCC" = yes; then
  14181. lt_prog_compiler_wl_GCJ='-Wl,'
  14182. lt_prog_compiler_static_GCJ='-static'
  14183. case $host_os in
  14184. aix*)
  14185. # All AIX code is PIC.
  14186. if test "$host_cpu" = ia64; then
  14187. # AIX 5 now supports IA64 processor
  14188. lt_prog_compiler_static_GCJ='-Bstatic'
  14189. fi
  14190. ;;
  14191. amigaos*)
  14192. # FIXME: we need at least 68020 code to build shared libraries, but
  14193. # adding the `-m68020' flag to GCC prevents building anything better,
  14194. # like `-m68040'.
  14195. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  14196. ;;
  14197. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14198. # PIC is the default for these OSes.
  14199. ;;
  14200. mingw* | pw32* | os2*)
  14201. # This hack is so that the source file can tell whether it is being
  14202. # built for inclusion in a dll (and should export symbols for example).
  14203. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14204. ;;
  14205. darwin* | rhapsody*)
  14206. # PIC is the default on this platform
  14207. # Common symbols not allowed in MH_DYLIB files
  14208. lt_prog_compiler_pic_GCJ='-fno-common'
  14209. ;;
  14210. interix3*)
  14211. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14212. # Instead, we relocate shared libraries at runtime.
  14213. ;;
  14214. msdosdjgpp*)
  14215. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14216. # on systems that don't support them.
  14217. lt_prog_compiler_can_build_shared_GCJ=no
  14218. enable_shared=no
  14219. ;;
  14220. sysv4*MP*)
  14221. if test -d /usr/nec; then
  14222. lt_prog_compiler_pic_GCJ=-Kconform_pic
  14223. fi
  14224. ;;
  14225. hpux*)
  14226. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14227. # not for PA HP-UX.
  14228. case $host_cpu in
  14229. hppa*64*|ia64*)
  14230. # +Z the default
  14231. ;;
  14232. *)
  14233. lt_prog_compiler_pic_GCJ='-fPIC'
  14234. ;;
  14235. esac
  14236. ;;
  14237. *)
  14238. lt_prog_compiler_pic_GCJ='-fPIC'
  14239. ;;
  14240. esac
  14241. else
  14242. # PORTME Check for flag to pass linker flags through the system compiler.
  14243. case $host_os in
  14244. aix*)
  14245. lt_prog_compiler_wl_GCJ='-Wl,'
  14246. if test "$host_cpu" = ia64; then
  14247. # AIX 5 now supports IA64 processor
  14248. lt_prog_compiler_static_GCJ='-Bstatic'
  14249. else
  14250. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  14251. fi
  14252. ;;
  14253. darwin*)
  14254. # PIC is the default on this platform
  14255. # Common symbols not allowed in MH_DYLIB files
  14256. case $cc_basename in
  14257. xlc*)
  14258. lt_prog_compiler_pic_GCJ='-qnocommon'
  14259. lt_prog_compiler_wl_GCJ='-Wl,'
  14260. ;;
  14261. esac
  14262. ;;
  14263. mingw* | pw32* | os2*)
  14264. # This hack is so that the source file can tell whether it is being
  14265. # built for inclusion in a dll (and should export symbols for example).
  14266. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14267. ;;
  14268. hpux9* | hpux10* | hpux11*)
  14269. lt_prog_compiler_wl_GCJ='-Wl,'
  14270. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14271. # not for PA HP-UX.
  14272. case $host_cpu in
  14273. hppa*64*|ia64*)
  14274. # +Z the default
  14275. ;;
  14276. *)
  14277. lt_prog_compiler_pic_GCJ='+Z'
  14278. ;;
  14279. esac
  14280. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14281. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  14282. ;;
  14283. irix5* | irix6* | nonstopux*)
  14284. lt_prog_compiler_wl_GCJ='-Wl,'
  14285. # PIC (with -KPIC) is the default.
  14286. lt_prog_compiler_static_GCJ='-non_shared'
  14287. ;;
  14288. newsos6)
  14289. lt_prog_compiler_pic_GCJ='-KPIC'
  14290. lt_prog_compiler_static_GCJ='-Bstatic'
  14291. ;;
  14292. linux*)
  14293. case $cc_basename in
  14294. icc* | ecc*)
  14295. lt_prog_compiler_wl_GCJ='-Wl,'
  14296. lt_prog_compiler_pic_GCJ='-KPIC'
  14297. lt_prog_compiler_static_GCJ='-static'
  14298. ;;
  14299. pgcc* | pgf77* | pgf90* | pgf95*)
  14300. # Portland Group compilers (*not* the Pentium gcc compiler,
  14301. # which looks to be a dead project)
  14302. lt_prog_compiler_wl_GCJ='-Wl,'
  14303. lt_prog_compiler_pic_GCJ='-fpic'
  14304. lt_prog_compiler_static_GCJ='-Bstatic'
  14305. ;;
  14306. ccc*)
  14307. lt_prog_compiler_wl_GCJ='-Wl,'
  14308. # All Alpha code is PIC.
  14309. lt_prog_compiler_static_GCJ='-non_shared'
  14310. ;;
  14311. esac
  14312. ;;
  14313. osf3* | osf4* | osf5*)
  14314. lt_prog_compiler_wl_GCJ='-Wl,'
  14315. # All OSF/1 code is PIC.
  14316. lt_prog_compiler_static_GCJ='-non_shared'
  14317. ;;
  14318. solaris*)
  14319. lt_prog_compiler_pic_GCJ='-KPIC'
  14320. lt_prog_compiler_static_GCJ='-Bstatic'
  14321. case $cc_basename in
  14322. f77* | f90* | f95*)
  14323. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  14324. *)
  14325. lt_prog_compiler_wl_GCJ='-Wl,';;
  14326. esac
  14327. ;;
  14328. sunos4*)
  14329. lt_prog_compiler_wl_GCJ='-Qoption ld '
  14330. lt_prog_compiler_pic_GCJ='-PIC'
  14331. lt_prog_compiler_static_GCJ='-Bstatic'
  14332. ;;
  14333. sysv4 | sysv4.2uw2* | sysv4.3*)
  14334. lt_prog_compiler_wl_GCJ='-Wl,'
  14335. lt_prog_compiler_pic_GCJ='-KPIC'
  14336. lt_prog_compiler_static_GCJ='-Bstatic'
  14337. ;;
  14338. sysv4*MP*)
  14339. if test -d /usr/nec ;then
  14340. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  14341. lt_prog_compiler_static_GCJ='-Bstatic'
  14342. fi
  14343. ;;
  14344. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14345. lt_prog_compiler_wl_GCJ='-Wl,'
  14346. lt_prog_compiler_pic_GCJ='-KPIC'
  14347. lt_prog_compiler_static_GCJ='-Bstatic'
  14348. ;;
  14349. unicos*)
  14350. lt_prog_compiler_wl_GCJ='-Wl,'
  14351. lt_prog_compiler_can_build_shared_GCJ=no
  14352. ;;
  14353. uts4*)
  14354. lt_prog_compiler_pic_GCJ='-pic'
  14355. lt_prog_compiler_static_GCJ='-Bstatic'
  14356. ;;
  14357. *)
  14358. lt_prog_compiler_can_build_shared_GCJ=no
  14359. ;;
  14360. esac
  14361. fi
  14362. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  14363. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  14364. #
  14365. # Check to make sure the PIC flag actually works.
  14366. #
  14367. if test -n "$lt_prog_compiler_pic_GCJ"; then
  14368. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  14369. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  14370. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  14371. echo $ECHO_N "(cached) $ECHO_C" >&6
  14372. else
  14373. lt_prog_compiler_pic_works_GCJ=no
  14374. ac_outfile=conftest.$ac_objext
  14375. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14376. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  14377. # Insert the option either (1) after the last *FLAGS variable, or
  14378. # (2) before a word containing "conftest.", or (3) at the end.
  14379. # Note that $ac_compile itself does not contain backslashes and begins
  14380. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14381. # The option is referenced via a variable to avoid confusing sed.
  14382. lt_compile=`echo "$ac_compile" | $SED \
  14383. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14384. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14385. -e 's:$: $lt_compiler_flag:'`
  14386. (eval echo "\"\$as_me:16031: $lt_compile\"" >&5)
  14387. (eval "$lt_compile" 2>conftest.err)
  14388. ac_status=$?
  14389. cat conftest.err >&5
  14390. echo "$as_me:16035: \$? = $ac_status" >&5
  14391. if (exit $ac_status) && test -s "$ac_outfile"; then
  14392. # The compiler can only warn and ignore the option if not recognized
  14393. # So say no if there are warnings other than the usual output.
  14394. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14395. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14396. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14397. lt_prog_compiler_pic_works_GCJ=yes
  14398. fi
  14399. fi
  14400. $rm conftest*
  14401. fi
  14402. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  14403. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  14404. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  14405. case $lt_prog_compiler_pic_GCJ in
  14406. "" | " "*) ;;
  14407. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  14408. esac
  14409. else
  14410. lt_prog_compiler_pic_GCJ=
  14411. lt_prog_compiler_can_build_shared_GCJ=no
  14412. fi
  14413. fi
  14414. case $host_os in
  14415. # For platforms which do not support PIC, -DPIC is meaningless:
  14416. *djgpp*)
  14417. lt_prog_compiler_pic_GCJ=
  14418. ;;
  14419. *)
  14420. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  14421. ;;
  14422. esac
  14423. #
  14424. # Check to make sure the static flag actually works.
  14425. #
  14426. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  14427. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14428. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  14429. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  14430. echo $ECHO_N "(cached) $ECHO_C" >&6
  14431. else
  14432. lt_prog_compiler_static_works_GCJ=no
  14433. save_LDFLAGS="$LDFLAGS"
  14434. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14435. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  14436. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14437. # The linker can only warn and ignore the option if not recognized
  14438. # So say no if there are warnings
  14439. if test -s conftest.err; then
  14440. # Append any errors to the config.log.
  14441. cat conftest.err 1>&5
  14442. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  14443. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14444. if diff conftest.exp conftest.er2 >/dev/null; then
  14445. lt_prog_compiler_static_works_GCJ=yes
  14446. fi
  14447. else
  14448. lt_prog_compiler_static_works_GCJ=yes
  14449. fi
  14450. fi
  14451. $rm conftest*
  14452. LDFLAGS="$save_LDFLAGS"
  14453. fi
  14454. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  14455. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
  14456. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  14457. :
  14458. else
  14459. lt_prog_compiler_static_GCJ=
  14460. fi
  14461. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14462. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  14463. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  14464. echo $ECHO_N "(cached) $ECHO_C" >&6
  14465. else
  14466. lt_cv_prog_compiler_c_o_GCJ=no
  14467. $rm -r conftest 2>/dev/null
  14468. mkdir conftest
  14469. cd conftest
  14470. mkdir out
  14471. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14472. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14473. # Insert the option either (1) after the last *FLAGS variable, or
  14474. # (2) before a word containing "conftest.", or (3) at the end.
  14475. # Note that $ac_compile itself does not contain backslashes and begins
  14476. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14477. lt_compile=`echo "$ac_compile" | $SED \
  14478. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14479. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14480. -e 's:$: $lt_compiler_flag:'`
  14481. (eval echo "\"\$as_me:16135: $lt_compile\"" >&5)
  14482. (eval "$lt_compile" 2>out/conftest.err)
  14483. ac_status=$?
  14484. cat out/conftest.err >&5
  14485. echo "$as_me:16139: \$? = $ac_status" >&5
  14486. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14487. then
  14488. # The compiler can only warn and ignore the option if not recognized
  14489. # So say no if there are warnings
  14490. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  14491. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14492. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14493. lt_cv_prog_compiler_c_o_GCJ=yes
  14494. fi
  14495. fi
  14496. chmod u+w . 2>&5
  14497. $rm conftest*
  14498. # SGI C++ compiler will create directory out/ii_files/ for
  14499. # template instantiation
  14500. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14501. $rm out/* && rmdir out
  14502. cd ..
  14503. rmdir conftest
  14504. $rm conftest*
  14505. fi
  14506. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  14507. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  14508. hard_links="nottested"
  14509. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  14510. # do not overwrite the value of need_locks provided by the user
  14511. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14512. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  14513. hard_links=yes
  14514. $rm conftest*
  14515. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14516. touch conftest.a
  14517. ln conftest.a conftest.b 2>&5 || hard_links=no
  14518. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14519. echo "$as_me:$LINENO: result: $hard_links" >&5
  14520. echo "${ECHO_T}$hard_links" >&6
  14521. if test "$hard_links" = no; then
  14522. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14523. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14524. need_locks=warn
  14525. fi
  14526. else
  14527. need_locks=no
  14528. fi
  14529. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14530. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  14531. runpath_var=
  14532. allow_undefined_flag_GCJ=
  14533. enable_shared_with_static_runtimes_GCJ=no
  14534. archive_cmds_GCJ=
  14535. archive_expsym_cmds_GCJ=
  14536. old_archive_From_new_cmds_GCJ=
  14537. old_archive_from_expsyms_cmds_GCJ=
  14538. export_dynamic_flag_spec_GCJ=
  14539. whole_archive_flag_spec_GCJ=
  14540. thread_safe_flag_spec_GCJ=
  14541. hardcode_libdir_flag_spec_GCJ=
  14542. hardcode_libdir_flag_spec_ld_GCJ=
  14543. hardcode_libdir_separator_GCJ=
  14544. hardcode_direct_GCJ=no
  14545. hardcode_minus_L_GCJ=no
  14546. hardcode_shlibpath_var_GCJ=unsupported
  14547. link_all_deplibs_GCJ=unknown
  14548. hardcode_automatic_GCJ=no
  14549. module_cmds_GCJ=
  14550. module_expsym_cmds_GCJ=
  14551. always_export_symbols_GCJ=no
  14552. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14553. # include_expsyms should be a list of space-separated symbols to be *always*
  14554. # included in the symbol list
  14555. include_expsyms_GCJ=
  14556. # exclude_expsyms can be an extended regexp of symbols to exclude
  14557. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14558. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14559. # as well as any symbol that contains `d'.
  14560. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  14561. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14562. # platforms (ab)use it in PIC code, but their linkers get confused if
  14563. # the symbol is explicitly referenced. Since portable code cannot
  14564. # rely on this symbol name, it's probably fine to never include it in
  14565. # preloaded symbol tables.
  14566. extract_expsyms_cmds=
  14567. # Just being paranoid about ensuring that cc_basename is set.
  14568. for cc_temp in $compiler""; do
  14569. case $cc_temp in
  14570. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14571. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14572. \-*) ;;
  14573. *) break;;
  14574. esac
  14575. done
  14576. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14577. case $host_os in
  14578. cygwin* | mingw* | pw32*)
  14579. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14580. # When not using gcc, we currently assume that we are using
  14581. # Microsoft Visual C++.
  14582. if test "$GCC" != yes; then
  14583. with_gnu_ld=no
  14584. fi
  14585. ;;
  14586. interix*)
  14587. # we just hope/assume this is gcc and not c89 (= MSVC++)
  14588. with_gnu_ld=yes
  14589. ;;
  14590. openbsd*)
  14591. with_gnu_ld=no
  14592. ;;
  14593. esac
  14594. ld_shlibs_GCJ=yes
  14595. if test "$with_gnu_ld" = yes; then
  14596. # If archive_cmds runs LD, not CC, wlarc should be empty
  14597. wlarc='${wl}'
  14598. # Set some defaults for GNU ld with shared library support. These
  14599. # are reset later if shared libraries are not supported. Putting them
  14600. # here allows them to be overridden if necessary.
  14601. runpath_var=LD_RUN_PATH
  14602. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  14603. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  14604. # ancient GNU ld didn't support --whole-archive et. al.
  14605. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  14606. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14607. else
  14608. whole_archive_flag_spec_GCJ=
  14609. fi
  14610. supports_anon_versioning=no
  14611. case `$LD -v 2>/dev/null` in
  14612. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  14613. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  14614. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  14615. *\ 2.11.*) ;; # other 2.11 versions
  14616. *) supports_anon_versioning=yes ;;
  14617. esac
  14618. # See if GNU ld supports shared libraries.
  14619. case $host_os in
  14620. aix3* | aix4* | aix5*)
  14621. # On AIX/PPC, the GNU linker is very broken
  14622. if test "$host_cpu" != ia64; then
  14623. ld_shlibs_GCJ=no
  14624. cat <<EOF 1>&2
  14625. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14626. *** to be unable to reliably create shared libraries on AIX.
  14627. *** Therefore, libtool is disabling shared libraries support. If you
  14628. *** really care for shared libraries, you may want to modify your PATH
  14629. *** so that a non-GNU linker is found, and then restart.
  14630. EOF
  14631. fi
  14632. ;;
  14633. amigaos*)
  14634. 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)'
  14635. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14636. hardcode_minus_L_GCJ=yes
  14637. # Samuel A. Falvo II <[email protected]> reports
  14638. # that the semantics of dynamic libraries on AmigaOS, at least up
  14639. # to version 4, is to share data among multiple programs linked
  14640. # with the same dynamic library. Since this doesn't match the
  14641. # behavior of shared libraries on other platforms, we can't use
  14642. # them.
  14643. ld_shlibs_GCJ=no
  14644. ;;
  14645. beos*)
  14646. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14647. allow_undefined_flag_GCJ=unsupported
  14648. # Joseph Beckenbach <[email protected]> says some releases of gcc
  14649. # support --undefined. This deserves some investigation. FIXME
  14650. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14651. else
  14652. ld_shlibs_GCJ=no
  14653. fi
  14654. ;;
  14655. cygwin* | mingw* | pw32*)
  14656. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  14657. # as there is no search path for DLLs.
  14658. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14659. allow_undefined_flag_GCJ=unsupported
  14660. always_export_symbols_GCJ=no
  14661. enable_shared_with_static_runtimes_GCJ=yes
  14662. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  14663. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  14664. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14665. # If the export-symbols file already is a .def file (1st line
  14666. # is EXPORTS), use it as is; otherwise, prepend...
  14667. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  14668. cp $export_symbols $output_objdir/$soname.def;
  14669. else
  14670. echo EXPORTS > $output_objdir/$soname.def;
  14671. cat $export_symbols >> $output_objdir/$soname.def;
  14672. fi~
  14673. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14674. else
  14675. ld_shlibs_GCJ=no
  14676. fi
  14677. ;;
  14678. interix3*)
  14679. hardcode_direct_GCJ=no
  14680. hardcode_shlibpath_var_GCJ=no
  14681. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14682. export_dynamic_flag_spec_GCJ='${wl}-E'
  14683. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  14684. # Instead, shared libraries are loaded at an image base (0x10000000 by
  14685. # default) and relocated if they conflict, which is a slow very memory
  14686. # consuming and fragmenting process. To avoid this, we pick a random,
  14687. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  14688. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  14689. archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  14690. archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  14691. ;;
  14692. linux*)
  14693. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14694. tmp_addflag=
  14695. case $cc_basename,$host_cpu in
  14696. pgcc*) # Portland Group C compiler
  14697. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  14698. tmp_addflag=' $pic_flag'
  14699. ;;
  14700. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  14701. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  14702. tmp_addflag=' $pic_flag -Mnomain' ;;
  14703. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  14704. tmp_addflag=' -i_dynamic' ;;
  14705. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  14706. tmp_addflag=' -i_dynamic -nofor_main' ;;
  14707. ifc* | ifort*) # Intel Fortran compiler
  14708. tmp_addflag=' -nofor_main' ;;
  14709. esac
  14710. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14711. if test $supports_anon_versioning = yes; then
  14712. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  14713. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14714. $echo "local: *; };" >> $output_objdir/$libname.ver~
  14715. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14716. fi
  14717. else
  14718. ld_shlibs_GCJ=no
  14719. fi
  14720. ;;
  14721. netbsd*)
  14722. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14723. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  14724. wlarc=
  14725. else
  14726. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14727. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14728. fi
  14729. ;;
  14730. solaris*)
  14731. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  14732. ld_shlibs_GCJ=no
  14733. cat <<EOF 1>&2
  14734. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  14735. *** create shared libraries on Solaris systems. Therefore, libtool
  14736. *** is disabling shared libraries support. We urge you to upgrade GNU
  14737. *** binutils to release 2.9.1 or newer. Another option is to modify
  14738. *** your PATH or compiler configuration so that the native linker is
  14739. *** used, and then restart.
  14740. EOF
  14741. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14742. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14743. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14744. else
  14745. ld_shlibs_GCJ=no
  14746. fi
  14747. ;;
  14748. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  14749. case `$LD -v 2>&1` in
  14750. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  14751. ld_shlibs_GCJ=no
  14752. cat <<_LT_EOF 1>&2
  14753. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  14754. *** reliably create shared libraries on SCO systems. Therefore, libtool
  14755. *** is disabling shared libraries support. We urge you to upgrade GNU
  14756. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  14757. *** your PATH or compiler configuration so that the native linker is
  14758. *** used, and then restart.
  14759. _LT_EOF
  14760. ;;
  14761. *)
  14762. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14763. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  14764. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  14765. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  14766. else
  14767. ld_shlibs_GCJ=no
  14768. fi
  14769. ;;
  14770. esac
  14771. ;;
  14772. sunos4*)
  14773. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14774. wlarc=
  14775. hardcode_direct_GCJ=yes
  14776. hardcode_shlibpath_var_GCJ=no
  14777. ;;
  14778. *)
  14779. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14780. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14781. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14782. else
  14783. ld_shlibs_GCJ=no
  14784. fi
  14785. ;;
  14786. esac
  14787. if test "$ld_shlibs_GCJ" = no; then
  14788. runpath_var=
  14789. hardcode_libdir_flag_spec_GCJ=
  14790. export_dynamic_flag_spec_GCJ=
  14791. whole_archive_flag_spec_GCJ=
  14792. fi
  14793. else
  14794. # PORTME fill in a description of your system's linker (not GNU ld)
  14795. case $host_os in
  14796. aix3*)
  14797. allow_undefined_flag_GCJ=unsupported
  14798. always_export_symbols_GCJ=yes
  14799. 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'
  14800. # Note: this linker hardcodes the directories in LIBPATH if there
  14801. # are no directories specified by -L.
  14802. hardcode_minus_L_GCJ=yes
  14803. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  14804. # Neither direct hardcoding nor static linking is supported with a
  14805. # broken collect2.
  14806. hardcode_direct_GCJ=unsupported
  14807. fi
  14808. ;;
  14809. aix4* | aix5*)
  14810. if test "$host_cpu" = ia64; then
  14811. # On IA64, the linker does run time linking by default, so we don't
  14812. # have to do anything special.
  14813. aix_use_runtimelinking=no
  14814. exp_sym_flag='-Bexport'
  14815. no_entry_flag=""
  14816. else
  14817. # If we're using GNU nm, then we don't want the "-C" option.
  14818. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14819. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14820. 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'
  14821. else
  14822. 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'
  14823. fi
  14824. aix_use_runtimelinking=no
  14825. # Test if we are trying to use run time linking or normal
  14826. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14827. # need to do runtime linking.
  14828. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14829. for ld_flag in $LDFLAGS; do
  14830. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14831. aix_use_runtimelinking=yes
  14832. break
  14833. fi
  14834. done
  14835. ;;
  14836. esac
  14837. exp_sym_flag='-bexport'
  14838. no_entry_flag='-bnoentry'
  14839. fi
  14840. # When large executables or shared objects are built, AIX ld can
  14841. # have problems creating the table of contents. If linking a library
  14842. # or program results in "error TOC overflow" add -mminimal-toc to
  14843. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14844. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14845. archive_cmds_GCJ=''
  14846. hardcode_direct_GCJ=yes
  14847. hardcode_libdir_separator_GCJ=':'
  14848. link_all_deplibs_GCJ=yes
  14849. if test "$GCC" = yes; then
  14850. case $host_os in aix4.[012]|aix4.[012].*)
  14851. # We only want to do this on AIX 4.2 and lower, the check
  14852. # below for broken collect2 doesn't work under 4.3+
  14853. collect2name=`${CC} -print-prog-name=collect2`
  14854. if test -f "$collect2name" && \
  14855. strings "$collect2name" | grep resolve_lib_name >/dev/null
  14856. then
  14857. # We have reworked collect2
  14858. hardcode_direct_GCJ=yes
  14859. else
  14860. # We have old collect2
  14861. hardcode_direct_GCJ=unsupported
  14862. # It fails to find uninstalled libraries when the uninstalled
  14863. # path is not listed in the libpath. Setting hardcode_minus_L
  14864. # to unsupported forces relinking
  14865. hardcode_minus_L_GCJ=yes
  14866. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14867. hardcode_libdir_separator_GCJ=
  14868. fi
  14869. ;;
  14870. esac
  14871. shared_flag='-shared'
  14872. if test "$aix_use_runtimelinking" = yes; then
  14873. shared_flag="$shared_flag "'${wl}-G'
  14874. fi
  14875. else
  14876. # not using gcc
  14877. if test "$host_cpu" = ia64; then
  14878. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14879. # chokes on -Wl,-G. The following line is correct:
  14880. shared_flag='-G'
  14881. else
  14882. if test "$aix_use_runtimelinking" = yes; then
  14883. shared_flag='${wl}-G'
  14884. else
  14885. shared_flag='${wl}-bM:SRE'
  14886. fi
  14887. fi
  14888. fi
  14889. # It seems that -bexpall does not export symbols beginning with
  14890. # underscore (_), so it is better to generate a list of symbols to export.
  14891. always_export_symbols_GCJ=yes
  14892. if test "$aix_use_runtimelinking" = yes; then
  14893. # Warning - without using the other runtime loading flags (-brtl),
  14894. # -berok will link without error, but may produce a broken library.
  14895. allow_undefined_flag_GCJ='-berok'
  14896. # Determine the default libpath from the value encoded in an empty executable.
  14897. cat >conftest.$ac_ext <<_ACEOF
  14898. /* confdefs.h. */
  14899. _ACEOF
  14900. cat confdefs.h >>conftest.$ac_ext
  14901. cat >>conftest.$ac_ext <<_ACEOF
  14902. /* end confdefs.h. */
  14903. int
  14904. main ()
  14905. {
  14906. ;
  14907. return 0;
  14908. }
  14909. _ACEOF
  14910. rm -f conftest.$ac_objext conftest$ac_exeext
  14911. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14912. (eval $ac_link) 2>conftest.er1
  14913. ac_status=$?
  14914. grep -v '^ *+' conftest.er1 >conftest.err
  14915. rm -f conftest.er1
  14916. cat conftest.err >&5
  14917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14918. (exit $ac_status); } &&
  14919. { ac_try='test -z "$ac_c_werror_flag"
  14920. || test ! -s conftest.err'
  14921. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14922. (eval $ac_try) 2>&5
  14923. ac_status=$?
  14924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14925. (exit $ac_status); }; } &&
  14926. { ac_try='test -s conftest$ac_exeext'
  14927. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14928. (eval $ac_try) 2>&5
  14929. ac_status=$?
  14930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14931. (exit $ac_status); }; }; then
  14932. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14933. }'`
  14934. # Check for a 64-bit object if we didn't find anything.
  14935. 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; }
  14936. }'`; fi
  14937. else
  14938. echo "$as_me: failed program was:" >&5
  14939. sed 's/^/| /' conftest.$ac_ext >&5
  14940. fi
  14941. rm -f conftest.err conftest.$ac_objext \
  14942. conftest$ac_exeext conftest.$ac_ext
  14943. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14944. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14945. archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  14946. else
  14947. if test "$host_cpu" = ia64; then
  14948. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  14949. allow_undefined_flag_GCJ="-z nodefs"
  14950. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  14951. else
  14952. # Determine the default libpath from the value encoded in an empty executable.
  14953. cat >conftest.$ac_ext <<_ACEOF
  14954. /* confdefs.h. */
  14955. _ACEOF
  14956. cat confdefs.h >>conftest.$ac_ext
  14957. cat >>conftest.$ac_ext <<_ACEOF
  14958. /* end confdefs.h. */
  14959. int
  14960. main ()
  14961. {
  14962. ;
  14963. return 0;
  14964. }
  14965. _ACEOF
  14966. rm -f conftest.$ac_objext conftest$ac_exeext
  14967. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14968. (eval $ac_link) 2>conftest.er1
  14969. ac_status=$?
  14970. grep -v '^ *+' conftest.er1 >conftest.err
  14971. rm -f conftest.er1
  14972. cat conftest.err >&5
  14973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14974. (exit $ac_status); } &&
  14975. { ac_try='test -z "$ac_c_werror_flag"
  14976. || test ! -s conftest.err'
  14977. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14978. (eval $ac_try) 2>&5
  14979. ac_status=$?
  14980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14981. (exit $ac_status); }; } &&
  14982. { ac_try='test -s conftest$ac_exeext'
  14983. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14984. (eval $ac_try) 2>&5
  14985. ac_status=$?
  14986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14987. (exit $ac_status); }; }; then
  14988. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14989. }'`
  14990. # Check for a 64-bit object if we didn't find anything.
  14991. 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; }
  14992. }'`; fi
  14993. else
  14994. echo "$as_me: failed program was:" >&5
  14995. sed 's/^/| /' conftest.$ac_ext >&5
  14996. fi
  14997. rm -f conftest.err conftest.$ac_objext \
  14998. conftest$ac_exeext conftest.$ac_ext
  14999. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15000. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15001. # Warning - without using the other run time loading flags,
  15002. # -berok will link without error, but may produce a broken library.
  15003. no_undefined_flag_GCJ=' ${wl}-bernotok'
  15004. allow_undefined_flag_GCJ=' ${wl}-berok'
  15005. # Exported symbols can be pulled into shared objects from archives
  15006. whole_archive_flag_spec_GCJ='$convenience'
  15007. archive_cmds_need_lc_GCJ=yes
  15008. # This is similar to how AIX traditionally builds its shared libraries.
  15009. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  15010. fi
  15011. fi
  15012. ;;
  15013. amigaos*)
  15014. 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)'
  15015. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15016. hardcode_minus_L_GCJ=yes
  15017. # see comment about different semantics on the GNU ld section
  15018. ld_shlibs_GCJ=no
  15019. ;;
  15020. bsdi[45]*)
  15021. export_dynamic_flag_spec_GCJ=-rdynamic
  15022. ;;
  15023. cygwin* | mingw* | pw32*)
  15024. # When not using gcc, we currently assume that we are using
  15025. # Microsoft Visual C++.
  15026. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15027. # no search path for DLLs.
  15028. hardcode_libdir_flag_spec_GCJ=' '
  15029. allow_undefined_flag_GCJ=unsupported
  15030. # Tell ltmain to make .lib files, not .a files.
  15031. libext=lib
  15032. # Tell ltmain to make .dll files, not .so files.
  15033. shrext_cmds=".dll"
  15034. # FIXME: Setting linknames here is a bad hack.
  15035. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15036. # The linker will automatically build a .lib file if we build a DLL.
  15037. old_archive_From_new_cmds_GCJ='true'
  15038. # FIXME: Should let the user specify the lib program.
  15039. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  15040. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15041. enable_shared_with_static_runtimes_GCJ=yes
  15042. ;;
  15043. darwin* | rhapsody*)
  15044. case $host_os in
  15045. rhapsody* | darwin1.[012])
  15046. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15047. ;;
  15048. *) # Darwin 1.3 on
  15049. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15050. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15051. else
  15052. case ${MACOSX_DEPLOYMENT_TARGET} in
  15053. 10.[012])
  15054. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15055. ;;
  15056. 10.*)
  15057. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15058. ;;
  15059. esac
  15060. fi
  15061. ;;
  15062. esac
  15063. archive_cmds_need_lc_GCJ=no
  15064. hardcode_direct_GCJ=no
  15065. hardcode_automatic_GCJ=yes
  15066. hardcode_shlibpath_var_GCJ=unsupported
  15067. whole_archive_flag_spec_GCJ=''
  15068. link_all_deplibs_GCJ=yes
  15069. if test "$GCC" = yes ; then
  15070. output_verbose_link_cmd='echo'
  15071. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15072. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15073. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15074. archive_expsym_cmds_GCJ='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}'
  15075. 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}'
  15076. else
  15077. case $cc_basename in
  15078. xlc*)
  15079. output_verbose_link_cmd='echo'
  15080. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  15081. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15082. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15083. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15084. 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}'
  15085. ;;
  15086. *)
  15087. ld_shlibs_GCJ=no
  15088. ;;
  15089. esac
  15090. fi
  15091. ;;
  15092. dgux*)
  15093. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15094. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15095. hardcode_shlibpath_var_GCJ=no
  15096. ;;
  15097. freebsd1*)
  15098. ld_shlibs_GCJ=no
  15099. ;;
  15100. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15101. # support. Future versions do this automatically, but an explicit c++rt0.o
  15102. # does not break anything, and helps significantly (at the cost of a little
  15103. # extra space).
  15104. freebsd2.2*)
  15105. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15106. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15107. hardcode_direct_GCJ=yes
  15108. hardcode_shlibpath_var_GCJ=no
  15109. ;;
  15110. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15111. freebsd2*)
  15112. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15113. hardcode_direct_GCJ=yes
  15114. hardcode_minus_L_GCJ=yes
  15115. hardcode_shlibpath_var_GCJ=no
  15116. ;;
  15117. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15118. freebsd* | kfreebsd*-gnu | dragonfly*)
  15119. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15120. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15121. hardcode_direct_GCJ=yes
  15122. hardcode_shlibpath_var_GCJ=no
  15123. ;;
  15124. hpux9*)
  15125. if test "$GCC" = yes; then
  15126. 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'
  15127. else
  15128. 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'
  15129. fi
  15130. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15131. hardcode_libdir_separator_GCJ=:
  15132. hardcode_direct_GCJ=yes
  15133. # hardcode_minus_L: Not really in the search PATH,
  15134. # but as the default location of the library.
  15135. hardcode_minus_L_GCJ=yes
  15136. export_dynamic_flag_spec_GCJ='${wl}-E'
  15137. ;;
  15138. hpux10*)
  15139. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15140. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15141. else
  15142. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15143. fi
  15144. if test "$with_gnu_ld" = no; then
  15145. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15146. hardcode_libdir_separator_GCJ=:
  15147. hardcode_direct_GCJ=yes
  15148. export_dynamic_flag_spec_GCJ='${wl}-E'
  15149. # hardcode_minus_L: Not really in the search PATH,
  15150. # but as the default location of the library.
  15151. hardcode_minus_L_GCJ=yes
  15152. fi
  15153. ;;
  15154. hpux11*)
  15155. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15156. case $host_cpu in
  15157. hppa*64*)
  15158. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15159. ;;
  15160. ia64*)
  15161. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15162. ;;
  15163. *)
  15164. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15165. ;;
  15166. esac
  15167. else
  15168. case $host_cpu in
  15169. hppa*64*)
  15170. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15171. ;;
  15172. ia64*)
  15173. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15174. ;;
  15175. *)
  15176. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15177. ;;
  15178. esac
  15179. fi
  15180. if test "$with_gnu_ld" = no; then
  15181. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15182. hardcode_libdir_separator_GCJ=:
  15183. case $host_cpu in
  15184. hppa*64*|ia64*)
  15185. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  15186. hardcode_direct_GCJ=no
  15187. hardcode_shlibpath_var_GCJ=no
  15188. ;;
  15189. *)
  15190. hardcode_direct_GCJ=yes
  15191. export_dynamic_flag_spec_GCJ='${wl}-E'
  15192. # hardcode_minus_L: Not really in the search PATH,
  15193. # but as the default location of the library.
  15194. hardcode_minus_L_GCJ=yes
  15195. ;;
  15196. esac
  15197. fi
  15198. ;;
  15199. irix5* | irix6* | nonstopux*)
  15200. if test "$GCC" = yes; then
  15201. 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'
  15202. else
  15203. 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'
  15204. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15205. fi
  15206. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15207. hardcode_libdir_separator_GCJ=:
  15208. link_all_deplibs_GCJ=yes
  15209. ;;
  15210. netbsd*)
  15211. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15212. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15213. else
  15214. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15215. fi
  15216. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15217. hardcode_direct_GCJ=yes
  15218. hardcode_shlibpath_var_GCJ=no
  15219. ;;
  15220. newsos6)
  15221. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15222. hardcode_direct_GCJ=yes
  15223. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15224. hardcode_libdir_separator_GCJ=:
  15225. hardcode_shlibpath_var_GCJ=no
  15226. ;;
  15227. openbsd*)
  15228. hardcode_direct_GCJ=yes
  15229. hardcode_shlibpath_var_GCJ=no
  15230. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15231. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15232. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15233. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15234. export_dynamic_flag_spec_GCJ='${wl}-E'
  15235. else
  15236. case $host_os in
  15237. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15238. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15239. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15240. ;;
  15241. *)
  15242. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15243. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15244. ;;
  15245. esac
  15246. fi
  15247. ;;
  15248. os2*)
  15249. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15250. hardcode_minus_L_GCJ=yes
  15251. allow_undefined_flag_GCJ=unsupported
  15252. 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'
  15253. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15254. ;;
  15255. osf3*)
  15256. if test "$GCC" = yes; then
  15257. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15258. 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'
  15259. else
  15260. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15261. 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'
  15262. fi
  15263. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15264. hardcode_libdir_separator_GCJ=:
  15265. ;;
  15266. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15267. if test "$GCC" = yes; then
  15268. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15269. 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'
  15270. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15271. else
  15272. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15273. 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'
  15274. 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~
  15275. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  15276. # Both c and cxx compiler support -rpath directly
  15277. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  15278. fi
  15279. hardcode_libdir_separator_GCJ=:
  15280. ;;
  15281. solaris*)
  15282. no_undefined_flag_GCJ=' -z text'
  15283. if test "$GCC" = yes; then
  15284. wlarc='${wl}'
  15285. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15286. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15287. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15288. else
  15289. wlarc=''
  15290. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15291. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15292. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15293. fi
  15294. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15295. hardcode_shlibpath_var_GCJ=no
  15296. case $host_os in
  15297. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15298. *)
  15299. # The compiler driver will combine linker options so we
  15300. # cannot just pass the convience library names through
  15301. # without $wl, iff we do not link with $LD.
  15302. # Luckily, gcc supports the same syntax we need for Sun Studio.
  15303. # Supported since Solaris 2.6 (maybe 2.5.1?)
  15304. case $wlarc in
  15305. '')
  15306. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  15307. *)
  15308. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  15309. esac ;;
  15310. esac
  15311. link_all_deplibs_GCJ=yes
  15312. ;;
  15313. sunos4*)
  15314. if test "x$host_vendor" = xsequent; then
  15315. # Use $CC to link under sequent, because it throws in some extra .o
  15316. # files that make .init and .fini sections work.
  15317. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15318. else
  15319. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15320. fi
  15321. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15322. hardcode_direct_GCJ=yes
  15323. hardcode_minus_L_GCJ=yes
  15324. hardcode_shlibpath_var_GCJ=no
  15325. ;;
  15326. sysv4)
  15327. case $host_vendor in
  15328. sni)
  15329. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15330. hardcode_direct_GCJ=yes # is this really true???
  15331. ;;
  15332. siemens)
  15333. ## LD is ld it makes a PLAMLIB
  15334. ## CC just makes a GrossModule.
  15335. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15336. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  15337. hardcode_direct_GCJ=no
  15338. ;;
  15339. motorola)
  15340. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15341. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  15342. ;;
  15343. esac
  15344. runpath_var='LD_RUN_PATH'
  15345. hardcode_shlibpath_var_GCJ=no
  15346. ;;
  15347. sysv4.3*)
  15348. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15349. hardcode_shlibpath_var_GCJ=no
  15350. export_dynamic_flag_spec_GCJ='-Bexport'
  15351. ;;
  15352. sysv4*MP*)
  15353. if test -d /usr/nec; then
  15354. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15355. hardcode_shlibpath_var_GCJ=no
  15356. runpath_var=LD_RUN_PATH
  15357. hardcode_runpath_var=yes
  15358. ld_shlibs_GCJ=yes
  15359. fi
  15360. ;;
  15361. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  15362. no_undefined_flag_GCJ='${wl}-z,text'
  15363. archive_cmds_need_lc_GCJ=no
  15364. hardcode_shlibpath_var_GCJ=no
  15365. runpath_var='LD_RUN_PATH'
  15366. if test "$GCC" = yes; then
  15367. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15368. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15369. else
  15370. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15371. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15372. fi
  15373. ;;
  15374. sysv5* | sco3.2v5* | sco5v6*)
  15375. # Note: We can NOT use -z defs as we might desire, because we do not
  15376. # link with -lc, and that would cause any symbols used from libc to
  15377. # always be unresolved, which means just about no library would
  15378. # ever link correctly. If we're not using GNU ld we use -z text
  15379. # though, which does catch some bad symbols but isn't as heavy-handed
  15380. # as -z defs.
  15381. no_undefined_flag_GCJ='${wl}-z,text'
  15382. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  15383. archive_cmds_need_lc_GCJ=no
  15384. hardcode_shlibpath_var_GCJ=no
  15385. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  15386. hardcode_libdir_separator_GCJ=':'
  15387. link_all_deplibs_GCJ=yes
  15388. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  15389. runpath_var='LD_RUN_PATH'
  15390. if test "$GCC" = yes; then
  15391. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15392. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15393. else
  15394. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15395. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15396. fi
  15397. ;;
  15398. uts4*)
  15399. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15400. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15401. hardcode_shlibpath_var_GCJ=no
  15402. ;;
  15403. *)
  15404. ld_shlibs_GCJ=no
  15405. ;;
  15406. esac
  15407. fi
  15408. echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  15409. echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  15410. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  15411. #
  15412. # Do we need to explicitly link libc?
  15413. #
  15414. case "x$archive_cmds_need_lc_GCJ" in
  15415. x|xyes)
  15416. # Assume -lc should be added
  15417. archive_cmds_need_lc_GCJ=yes
  15418. if test "$enable_shared" = yes && test "$GCC" = yes; then
  15419. case $archive_cmds_GCJ in
  15420. *'~'*)
  15421. # FIXME: we may have to deal with multi-command sequences.
  15422. ;;
  15423. '$CC '*)
  15424. # Test whether the compiler implicitly links with -lc since on some
  15425. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15426. # to ld, don't add -lc before -lgcc.
  15427. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  15428. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  15429. $rm conftest*
  15430. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15431. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15432. (eval $ac_compile) 2>&5
  15433. ac_status=$?
  15434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15435. (exit $ac_status); } 2>conftest.err; then
  15436. soname=conftest
  15437. lib=conftest
  15438. libobjs=conftest.$ac_objext
  15439. deplibs=
  15440. wl=$lt_prog_compiler_wl_GCJ
  15441. pic_flag=$lt_prog_compiler_pic_GCJ
  15442. compiler_flags=-v
  15443. linker_flags=-v
  15444. verstring=
  15445. output_objdir=.
  15446. libname=conftest
  15447. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  15448. allow_undefined_flag_GCJ=
  15449. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  15450. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15451. ac_status=$?
  15452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15453. (exit $ac_status); }
  15454. then
  15455. archive_cmds_need_lc_GCJ=no
  15456. else
  15457. archive_cmds_need_lc_GCJ=yes
  15458. fi
  15459. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  15460. else
  15461. cat conftest.err 1>&5
  15462. fi
  15463. $rm conftest*
  15464. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  15465. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  15466. ;;
  15467. esac
  15468. fi
  15469. ;;
  15470. esac
  15471. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  15472. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  15473. library_names_spec=
  15474. libname_spec='lib$name'
  15475. soname_spec=
  15476. shrext_cmds=".so"
  15477. postinstall_cmds=
  15478. postuninstall_cmds=
  15479. finish_cmds=
  15480. finish_eval=
  15481. shlibpath_var=
  15482. shlibpath_overrides_runpath=unknown
  15483. version_type=none
  15484. dynamic_linker="$host_os ld.so"
  15485. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15486. if test "$GCC" = yes; then
  15487. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15488. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  15489. # if the path contains ";" then we assume it to be the separator
  15490. # otherwise default to the standard path separator (i.e. ":") - it is
  15491. # assumed that no part of a normal pathname contains ";" but that should
  15492. # okay in the real world where ";" in dirpaths is itself problematic.
  15493. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15494. else
  15495. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15496. fi
  15497. else
  15498. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15499. fi
  15500. need_lib_prefix=unknown
  15501. hardcode_into_libs=no
  15502. # when you set need_version to no, make sure it does not cause -set_version
  15503. # flags to be left without arguments
  15504. need_version=unknown
  15505. case $host_os in
  15506. aix3*)
  15507. version_type=linux
  15508. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15509. shlibpath_var=LIBPATH
  15510. # AIX 3 has no versioning support, so we append a major version to the name.
  15511. soname_spec='${libname}${release}${shared_ext}$major'
  15512. ;;
  15513. aix4* | aix5*)
  15514. version_type=linux
  15515. need_lib_prefix=no
  15516. need_version=no
  15517. hardcode_into_libs=yes
  15518. if test "$host_cpu" = ia64; then
  15519. # AIX 5 supports IA64
  15520. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15521. shlibpath_var=LD_LIBRARY_PATH
  15522. else
  15523. # With GCC up to 2.95.x, collect2 would create an import file
  15524. # for dependence libraries. The import file would start with
  15525. # the line `#! .'. This would cause the generated library to
  15526. # depend on `.', always an invalid library. This was fixed in
  15527. # development snapshots of GCC prior to 3.0.
  15528. case $host_os in
  15529. aix4 | aix4.[01] | aix4.[01].*)
  15530. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15531. echo ' yes '
  15532. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  15533. :
  15534. else
  15535. can_build_shared=no
  15536. fi
  15537. ;;
  15538. esac
  15539. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15540. # soname into executable. Probably we can add versioning support to
  15541. # collect2, so additional links can be useful in future.
  15542. if test "$aix_use_runtimelinking" = yes; then
  15543. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15544. # instead of lib<name>.a to let people know that these are not
  15545. # typical AIX shared libraries.
  15546. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15547. else
  15548. # We preserve .a as extension for shared libraries through AIX4.2
  15549. # and later when we are not doing run time linking.
  15550. library_names_spec='${libname}${release}.a $libname.a'
  15551. soname_spec='${libname}${release}${shared_ext}$major'
  15552. fi
  15553. shlibpath_var=LIBPATH
  15554. fi
  15555. ;;
  15556. amigaos*)
  15557. library_names_spec='$libname.ixlibrary $libname.a'
  15558. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15559. 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'
  15560. ;;
  15561. beos*)
  15562. library_names_spec='${libname}${shared_ext}'
  15563. dynamic_linker="$host_os ld.so"
  15564. shlibpath_var=LIBRARY_PATH
  15565. ;;
  15566. bsdi[45]*)
  15567. version_type=linux
  15568. need_version=no
  15569. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15570. soname_spec='${libname}${release}${shared_ext}$major'
  15571. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15572. shlibpath_var=LD_LIBRARY_PATH
  15573. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15574. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15575. # the default ld.so.conf also contains /usr/contrib/lib and
  15576. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15577. # libtool to hard-code these into programs
  15578. ;;
  15579. cygwin* | mingw* | pw32*)
  15580. version_type=windows
  15581. shrext_cmds=".dll"
  15582. need_version=no
  15583. need_lib_prefix=no
  15584. case $GCC,$host_os in
  15585. yes,cygwin* | yes,mingw* | yes,pw32*)
  15586. library_names_spec='$libname.dll.a'
  15587. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15588. postinstall_cmds='base_file=`basename \${file}`~
  15589. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  15590. dldir=$destdir/`dirname \$dlpath`~
  15591. test -d \$dldir || mkdir -p \$dldir~
  15592. $install_prog $dir/$dlname \$dldir/$dlname~
  15593. chmod a+x \$dldir/$dlname'
  15594. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15595. dlpath=$dir/\$dldll~
  15596. $rm \$dlpath'
  15597. shlibpath_overrides_runpath=yes
  15598. case $host_os in
  15599. cygwin*)
  15600. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15601. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15602. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  15603. ;;
  15604. mingw*)
  15605. # MinGW DLLs use traditional 'lib' prefix
  15606. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15607. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15608. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  15609. # It is most probably a Windows format PATH printed by
  15610. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  15611. # path with ; separators, and with drive letters. We can handle the
  15612. # drive letters (cygwin fileutils understands them), so leave them,
  15613. # especially as we might pass files found there to a mingw objdump,
  15614. # which wouldn't understand a cygwinified path. Ahh.
  15615. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15616. else
  15617. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15618. fi
  15619. ;;
  15620. pw32*)
  15621. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15622. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15623. ;;
  15624. esac
  15625. ;;
  15626. *)
  15627. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15628. ;;
  15629. esac
  15630. dynamic_linker='Win32 ld.exe'
  15631. # FIXME: first we should search . and the directory the executable is in
  15632. shlibpath_var=PATH
  15633. ;;
  15634. darwin* | rhapsody*)
  15635. dynamic_linker="$host_os dyld"
  15636. version_type=darwin
  15637. need_lib_prefix=no
  15638. need_version=no
  15639. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  15640. soname_spec='${libname}${release}${major}$shared_ext'
  15641. shlibpath_overrides_runpath=yes
  15642. shlibpath_var=DYLD_LIBRARY_PATH
  15643. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  15644. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  15645. if test "$GCC" = yes; then
  15646. 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"`
  15647. else
  15648. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  15649. fi
  15650. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15651. ;;
  15652. dgux*)
  15653. version_type=linux
  15654. need_lib_prefix=no
  15655. need_version=no
  15656. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  15657. soname_spec='${libname}${release}${shared_ext}$major'
  15658. shlibpath_var=LD_LIBRARY_PATH
  15659. ;;
  15660. freebsd1*)
  15661. dynamic_linker=no
  15662. ;;
  15663. kfreebsd*-gnu)
  15664. version_type=linux
  15665. need_lib_prefix=no
  15666. need_version=no
  15667. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15668. soname_spec='${libname}${release}${shared_ext}$major'
  15669. shlibpath_var=LD_LIBRARY_PATH
  15670. shlibpath_overrides_runpath=no
  15671. hardcode_into_libs=yes
  15672. dynamic_linker='GNU ld.so'
  15673. ;;
  15674. freebsd* | dragonfly*)
  15675. # DragonFly does not have aout. When/if they implement a new
  15676. # versioning mechanism, adjust this.
  15677. if test -x /usr/bin/objformat; then
  15678. objformat=`/usr/bin/objformat`
  15679. else
  15680. case $host_os in
  15681. freebsd[123]*) objformat=aout ;;
  15682. *) objformat=elf ;;
  15683. esac
  15684. fi
  15685. version_type=freebsd-$objformat
  15686. case $version_type in
  15687. freebsd-elf*)
  15688. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15689. need_version=no
  15690. need_lib_prefix=no
  15691. ;;
  15692. freebsd-*)
  15693. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15694. need_version=yes
  15695. ;;
  15696. esac
  15697. shlibpath_var=LD_LIBRARY_PATH
  15698. case $host_os in
  15699. freebsd2*)
  15700. shlibpath_overrides_runpath=yes
  15701. ;;
  15702. freebsd3.[01]* | freebsdelf3.[01]*)
  15703. shlibpath_overrides_runpath=yes
  15704. hardcode_into_libs=yes
  15705. ;;
  15706. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15707. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15708. shlibpath_overrides_runpath=no
  15709. hardcode_into_libs=yes
  15710. ;;
  15711. freebsd*) # from 4.6 on
  15712. shlibpath_overrides_runpath=yes
  15713. hardcode_into_libs=yes
  15714. ;;
  15715. esac
  15716. ;;
  15717. gnu*)
  15718. version_type=linux
  15719. need_lib_prefix=no
  15720. need_version=no
  15721. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15722. soname_spec='${libname}${release}${shared_ext}$major'
  15723. shlibpath_var=LD_LIBRARY_PATH
  15724. hardcode_into_libs=yes
  15725. ;;
  15726. hpux9* | hpux10* | hpux11*)
  15727. # Give a soname corresponding to the major version so that dld.sl refuses to
  15728. # link against other versions.
  15729. version_type=sunos
  15730. need_lib_prefix=no
  15731. need_version=no
  15732. case $host_cpu in
  15733. ia64*)
  15734. shrext_cmds='.so'
  15735. hardcode_into_libs=yes
  15736. dynamic_linker="$host_os dld.so"
  15737. shlibpath_var=LD_LIBRARY_PATH
  15738. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15739. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15740. soname_spec='${libname}${release}${shared_ext}$major'
  15741. if test "X$HPUX_IA64_MODE" = X32; then
  15742. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15743. else
  15744. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15745. fi
  15746. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15747. ;;
  15748. hppa*64*)
  15749. shrext_cmds='.sl'
  15750. hardcode_into_libs=yes
  15751. dynamic_linker="$host_os dld.sl"
  15752. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15753. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15754. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15755. soname_spec='${libname}${release}${shared_ext}$major'
  15756. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15757. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15758. ;;
  15759. *)
  15760. shrext_cmds='.sl'
  15761. dynamic_linker="$host_os dld.sl"
  15762. shlibpath_var=SHLIB_PATH
  15763. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15764. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15765. soname_spec='${libname}${release}${shared_ext}$major'
  15766. ;;
  15767. esac
  15768. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15769. postinstall_cmds='chmod 555 $lib'
  15770. ;;
  15771. interix3*)
  15772. version_type=linux
  15773. need_lib_prefix=no
  15774. need_version=no
  15775. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15776. soname_spec='${libname}${release}${shared_ext}$major'
  15777. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15778. shlibpath_var=LD_LIBRARY_PATH
  15779. shlibpath_overrides_runpath=no
  15780. hardcode_into_libs=yes
  15781. ;;
  15782. irix5* | irix6* | nonstopux*)
  15783. case $host_os in
  15784. nonstopux*) version_type=nonstopux ;;
  15785. *)
  15786. if test "$lt_cv_prog_gnu_ld" = yes; then
  15787. version_type=linux
  15788. else
  15789. version_type=irix
  15790. fi ;;
  15791. esac
  15792. need_lib_prefix=no
  15793. need_version=no
  15794. soname_spec='${libname}${release}${shared_ext}$major'
  15795. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15796. case $host_os in
  15797. irix5* | nonstopux*)
  15798. libsuff= shlibsuff=
  15799. ;;
  15800. *)
  15801. case $LD in # libtool.m4 will add one of these switches to LD
  15802. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15803. libsuff= shlibsuff= libmagic=32-bit;;
  15804. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15805. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15806. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15807. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15808. *) libsuff= shlibsuff= libmagic=never-match;;
  15809. esac
  15810. ;;
  15811. esac
  15812. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15813. shlibpath_overrides_runpath=no
  15814. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15815. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15816. hardcode_into_libs=yes
  15817. ;;
  15818. # No shared lib support for Linux oldld, aout, or coff.
  15819. linux*oldld* | linux*aout* | linux*coff*)
  15820. dynamic_linker=no
  15821. ;;
  15822. # This must be Linux ELF.
  15823. linux*)
  15824. version_type=linux
  15825. need_lib_prefix=no
  15826. need_version=no
  15827. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15828. soname_spec='${libname}${release}${shared_ext}$major'
  15829. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15830. shlibpath_var=LD_LIBRARY_PATH
  15831. shlibpath_overrides_runpath=no
  15832. # This implies no fast_install, which is unacceptable.
  15833. # Some rework will be needed to allow for fast_install
  15834. # before this can be enabled.
  15835. hardcode_into_libs=yes
  15836. # find out which ABI we are using
  15837. libsuff=
  15838. case "$host_cpu" in
  15839. x86_64*|s390x*|powerpc64*)
  15840. echo '#line 17604 "configure"' > conftest.$ac_ext
  15841. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15842. (eval $ac_compile) 2>&5
  15843. ac_status=$?
  15844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15845. (exit $ac_status); }; then
  15846. case `/usr/bin/file conftest.$ac_objext` in
  15847. *64-bit*)
  15848. libsuff=64
  15849. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  15850. ;;
  15851. esac
  15852. fi
  15853. rm -rf conftest*
  15854. ;;
  15855. esac
  15856. # Append ld.so.conf contents to the search path
  15857. if test -f /etc/ld.so.conf; then
  15858. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  15859. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  15860. fi
  15861. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15862. # powerpc, because MkLinux only supported shared libraries with the
  15863. # GNU dynamic linker. Since this was broken with cross compilers,
  15864. # most powerpc-linux boxes support dynamic linking these days and
  15865. # people can always --disable-shared, the test was removed, and we
  15866. # assume the GNU/Linux dynamic linker is in use.
  15867. dynamic_linker='GNU/Linux ld.so'
  15868. ;;
  15869. knetbsd*-gnu)
  15870. version_type=linux
  15871. need_lib_prefix=no
  15872. need_version=no
  15873. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15874. soname_spec='${libname}${release}${shared_ext}$major'
  15875. shlibpath_var=LD_LIBRARY_PATH
  15876. shlibpath_overrides_runpath=no
  15877. hardcode_into_libs=yes
  15878. dynamic_linker='GNU ld.so'
  15879. ;;
  15880. netbsd*)
  15881. version_type=sunos
  15882. need_lib_prefix=no
  15883. need_version=no
  15884. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15885. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15886. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15887. dynamic_linker='NetBSD (a.out) ld.so'
  15888. else
  15889. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15890. soname_spec='${libname}${release}${shared_ext}$major'
  15891. dynamic_linker='NetBSD ld.elf_so'
  15892. fi
  15893. shlibpath_var=LD_LIBRARY_PATH
  15894. shlibpath_overrides_runpath=yes
  15895. hardcode_into_libs=yes
  15896. ;;
  15897. newsos6)
  15898. version_type=linux
  15899. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15900. shlibpath_var=LD_LIBRARY_PATH
  15901. shlibpath_overrides_runpath=yes
  15902. ;;
  15903. nto-qnx*)
  15904. version_type=linux
  15905. need_lib_prefix=no
  15906. need_version=no
  15907. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15908. soname_spec='${libname}${release}${shared_ext}$major'
  15909. shlibpath_var=LD_LIBRARY_PATH
  15910. shlibpath_overrides_runpath=yes
  15911. ;;
  15912. openbsd*)
  15913. version_type=sunos
  15914. sys_lib_dlsearch_path_spec="/usr/lib"
  15915. need_lib_prefix=no
  15916. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15917. case $host_os in
  15918. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15919. *) need_version=no ;;
  15920. esac
  15921. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15922. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15923. shlibpath_var=LD_LIBRARY_PATH
  15924. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15925. case $host_os in
  15926. openbsd2.[89] | openbsd2.[89].*)
  15927. shlibpath_overrides_runpath=no
  15928. ;;
  15929. *)
  15930. shlibpath_overrides_runpath=yes
  15931. ;;
  15932. esac
  15933. else
  15934. shlibpath_overrides_runpath=yes
  15935. fi
  15936. ;;
  15937. os2*)
  15938. libname_spec='$name'
  15939. shrext_cmds=".dll"
  15940. need_lib_prefix=no
  15941. library_names_spec='$libname${shared_ext} $libname.a'
  15942. dynamic_linker='OS/2 ld.exe'
  15943. shlibpath_var=LIBPATH
  15944. ;;
  15945. osf3* | osf4* | osf5*)
  15946. version_type=osf
  15947. need_lib_prefix=no
  15948. need_version=no
  15949. soname_spec='${libname}${release}${shared_ext}$major'
  15950. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15951. shlibpath_var=LD_LIBRARY_PATH
  15952. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15953. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15954. ;;
  15955. solaris*)
  15956. version_type=linux
  15957. need_lib_prefix=no
  15958. need_version=no
  15959. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15960. soname_spec='${libname}${release}${shared_ext}$major'
  15961. shlibpath_var=LD_LIBRARY_PATH
  15962. shlibpath_overrides_runpath=yes
  15963. hardcode_into_libs=yes
  15964. # ldd complains unless libraries are executable
  15965. postinstall_cmds='chmod +x $lib'
  15966. ;;
  15967. sunos4*)
  15968. version_type=sunos
  15969. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15970. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15971. shlibpath_var=LD_LIBRARY_PATH
  15972. shlibpath_overrides_runpath=yes
  15973. if test "$with_gnu_ld" = yes; then
  15974. need_lib_prefix=no
  15975. fi
  15976. need_version=yes
  15977. ;;
  15978. sysv4 | sysv4.3*)
  15979. version_type=linux
  15980. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15981. soname_spec='${libname}${release}${shared_ext}$major'
  15982. shlibpath_var=LD_LIBRARY_PATH
  15983. case $host_vendor in
  15984. sni)
  15985. shlibpath_overrides_runpath=no
  15986. need_lib_prefix=no
  15987. export_dynamic_flag_spec='${wl}-Blargedynsym'
  15988. runpath_var=LD_RUN_PATH
  15989. ;;
  15990. siemens)
  15991. need_lib_prefix=no
  15992. ;;
  15993. motorola)
  15994. need_lib_prefix=no
  15995. need_version=no
  15996. shlibpath_overrides_runpath=no
  15997. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15998. ;;
  15999. esac
  16000. ;;
  16001. sysv4*MP*)
  16002. if test -d /usr/nec ;then
  16003. version_type=linux
  16004. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16005. soname_spec='$libname${shared_ext}.$major'
  16006. shlibpath_var=LD_LIBRARY_PATH
  16007. fi
  16008. ;;
  16009. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16010. version_type=freebsd-elf
  16011. need_lib_prefix=no
  16012. need_version=no
  16013. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16014. soname_spec='${libname}${release}${shared_ext}$major'
  16015. shlibpath_var=LD_LIBRARY_PATH
  16016. hardcode_into_libs=yes
  16017. if test "$with_gnu_ld" = yes; then
  16018. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  16019. shlibpath_overrides_runpath=no
  16020. else
  16021. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16022. shlibpath_overrides_runpath=yes
  16023. case $host_os in
  16024. sco3.2v5*)
  16025. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16026. ;;
  16027. esac
  16028. fi
  16029. sys_lib_dlsearch_path_spec='/usr/lib'
  16030. ;;
  16031. uts4*)
  16032. version_type=linux
  16033. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16034. soname_spec='${libname}${release}${shared_ext}$major'
  16035. shlibpath_var=LD_LIBRARY_PATH
  16036. ;;
  16037. *)
  16038. dynamic_linker=no
  16039. ;;
  16040. esac
  16041. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16042. echo "${ECHO_T}$dynamic_linker" >&6
  16043. test "$dynamic_linker" = no && can_build_shared=no
  16044. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16045. if test "$GCC" = yes; then
  16046. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16047. fi
  16048. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16049. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  16050. hardcode_action_GCJ=
  16051. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16052. test -n "$runpath_var_GCJ" || \
  16053. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16054. # We can hardcode non-existant directories.
  16055. if test "$hardcode_direct_GCJ" != no &&
  16056. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16057. # have to relink, otherwise we might link with an installed library
  16058. # when we should be linking with a yet-to-be-installed one
  16059. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16060. test "$hardcode_minus_L_GCJ" != no; then
  16061. # Linking always hardcodes the temporary library directory.
  16062. hardcode_action_GCJ=relink
  16063. else
  16064. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16065. hardcode_action_GCJ=immediate
  16066. fi
  16067. else
  16068. # We cannot hardcode anything, or else we can only hardcode existing
  16069. # directories.
  16070. hardcode_action_GCJ=unsupported
  16071. fi
  16072. echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16073. echo "${ECHO_T}$hardcode_action_GCJ" >&6
  16074. if test "$hardcode_action_GCJ" = relink; then
  16075. # Fast installation is not supported
  16076. enable_fast_install=no
  16077. elif test "$shlibpath_overrides_runpath" = yes ||
  16078. test "$enable_shared" = no; then
  16079. # Fast installation is not necessary
  16080. enable_fast_install=needless
  16081. fi
  16082. # The else clause should only fire when bootstrapping the
  16083. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16084. # with your package, and you will get complaints that there are
  16085. # no rules to generate ltmain.sh.
  16086. if test -f "$ltmain"; then
  16087. # See if we are running on zsh, and set the options which allow our commands through
  16088. # without removal of \ escapes.
  16089. if test -n "${ZSH_VERSION+set}" ; then
  16090. setopt NO_GLOB_SUBST
  16091. fi
  16092. # Now quote all the things that may contain metacharacters while being
  16093. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16094. # variables and quote the copies for generation of the libtool script.
  16095. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16096. SED SHELL STRIP \
  16097. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16098. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16099. deplibs_check_method reload_flag reload_cmds need_locks \
  16100. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16101. lt_cv_sys_global_symbol_to_c_name_address \
  16102. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16103. old_postinstall_cmds old_postuninstall_cmds \
  16104. compiler_GCJ \
  16105. CC_GCJ \
  16106. LD_GCJ \
  16107. lt_prog_compiler_wl_GCJ \
  16108. lt_prog_compiler_pic_GCJ \
  16109. lt_prog_compiler_static_GCJ \
  16110. lt_prog_compiler_no_builtin_flag_GCJ \
  16111. export_dynamic_flag_spec_GCJ \
  16112. thread_safe_flag_spec_GCJ \
  16113. whole_archive_flag_spec_GCJ \
  16114. enable_shared_with_static_runtimes_GCJ \
  16115. old_archive_cmds_GCJ \
  16116. old_archive_from_new_cmds_GCJ \
  16117. predep_objects_GCJ \
  16118. postdep_objects_GCJ \
  16119. predeps_GCJ \
  16120. postdeps_GCJ \
  16121. compiler_lib_search_path_GCJ \
  16122. archive_cmds_GCJ \
  16123. archive_expsym_cmds_GCJ \
  16124. postinstall_cmds_GCJ \
  16125. postuninstall_cmds_GCJ \
  16126. old_archive_from_expsyms_cmds_GCJ \
  16127. allow_undefined_flag_GCJ \
  16128. no_undefined_flag_GCJ \
  16129. export_symbols_cmds_GCJ \
  16130. hardcode_libdir_flag_spec_GCJ \
  16131. hardcode_libdir_flag_spec_ld_GCJ \
  16132. hardcode_libdir_separator_GCJ \
  16133. hardcode_automatic_GCJ \
  16134. module_cmds_GCJ \
  16135. module_expsym_cmds_GCJ \
  16136. lt_cv_prog_compiler_c_o_GCJ \
  16137. exclude_expsyms_GCJ \
  16138. include_expsyms_GCJ; do
  16139. case $var in
  16140. old_archive_cmds_GCJ | \
  16141. old_archive_from_new_cmds_GCJ | \
  16142. archive_cmds_GCJ | \
  16143. archive_expsym_cmds_GCJ | \
  16144. module_cmds_GCJ | \
  16145. module_expsym_cmds_GCJ | \
  16146. old_archive_from_expsyms_cmds_GCJ | \
  16147. export_symbols_cmds_GCJ | \
  16148. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16149. postinstall_cmds | postuninstall_cmds | \
  16150. old_postinstall_cmds | old_postuninstall_cmds | \
  16151. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16152. # Double-quote double-evaled strings.
  16153. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16154. ;;
  16155. *)
  16156. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16157. ;;
  16158. esac
  16159. done
  16160. case $lt_echo in
  16161. *'\$0 --fallback-echo"')
  16162. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16163. ;;
  16164. esac
  16165. cfgfile="$ofile"
  16166. cat <<__EOF__ >> "$cfgfile"
  16167. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16168. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16169. # Shell to use when invoking shell scripts.
  16170. SHELL=$lt_SHELL
  16171. # Whether or not to build shared libraries.
  16172. build_libtool_libs=$enable_shared
  16173. # Whether or not to build static libraries.
  16174. build_old_libs=$enable_static
  16175. # Whether or not to add -lc for building shared libraries.
  16176. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  16177. # Whether or not to disallow shared libs when runtime libs are static
  16178. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  16179. # Whether or not to optimize for fast installation.
  16180. fast_install=$enable_fast_install
  16181. # The host system.
  16182. host_alias=$host_alias
  16183. host=$host
  16184. host_os=$host_os
  16185. # The build system.
  16186. build_alias=$build_alias
  16187. build=$build
  16188. build_os=$build_os
  16189. # An echo program that does not interpret backslashes.
  16190. echo=$lt_echo
  16191. # The archiver.
  16192. AR=$lt_AR
  16193. AR_FLAGS=$lt_AR_FLAGS
  16194. # A C compiler.
  16195. LTCC=$lt_LTCC
  16196. # LTCC compiler flags.
  16197. LTCFLAGS=$lt_LTCFLAGS
  16198. # A language-specific compiler.
  16199. CC=$lt_compiler_GCJ
  16200. # Is the compiler the GNU C compiler?
  16201. with_gcc=$GCC_GCJ
  16202. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  16203. gcc_ver=\`gcc -dumpversion\`
  16204. # An ERE matcher.
  16205. EGREP=$lt_EGREP
  16206. # The linker used to build libraries.
  16207. LD=$lt_LD_GCJ
  16208. # Whether we need hard or soft links.
  16209. LN_S=$lt_LN_S
  16210. # A BSD-compatible nm program.
  16211. NM=$lt_NM
  16212. # A symbol stripping program
  16213. STRIP=$lt_STRIP
  16214. # Used to examine libraries when file_magic_cmd begins "file"
  16215. MAGIC_CMD=$MAGIC_CMD
  16216. # Used on cygwin: DLL creation program.
  16217. DLLTOOL="$DLLTOOL"
  16218. # Used on cygwin: object dumper.
  16219. OBJDUMP="$OBJDUMP"
  16220. # Used on cygwin: assembler.
  16221. AS="$AS"
  16222. # The name of the directory that contains temporary libtool files.
  16223. objdir=$objdir
  16224. # How to create reloadable object files.
  16225. reload_flag=$lt_reload_flag
  16226. reload_cmds=$lt_reload_cmds
  16227. # How to pass a linker flag through the compiler.
  16228. wl=$lt_lt_prog_compiler_wl_GCJ
  16229. # Object file suffix (normally "o").
  16230. objext="$ac_objext"
  16231. # Old archive suffix (normally "a").
  16232. libext="$libext"
  16233. # Shared library suffix (normally ".so").
  16234. shrext_cmds='$shrext_cmds'
  16235. # Executable file suffix (normally "").
  16236. exeext="$exeext"
  16237. # Additional compiler flags for building library objects.
  16238. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  16239. pic_mode=$pic_mode
  16240. # What is the maximum length of a command?
  16241. max_cmd_len=$lt_cv_sys_max_cmd_len
  16242. # Does compiler simultaneously support -c and -o options?
  16243. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  16244. # Must we lock files when doing compilation?
  16245. need_locks=$lt_need_locks
  16246. # Do we need the lib prefix for modules?
  16247. need_lib_prefix=$need_lib_prefix
  16248. # Do we need a version for libraries?
  16249. need_version=$need_version
  16250. # Whether dlopen is supported.
  16251. dlopen_support=$enable_dlopen
  16252. # Whether dlopen of programs is supported.
  16253. dlopen_self=$enable_dlopen_self
  16254. # Whether dlopen of statically linked programs is supported.
  16255. dlopen_self_static=$enable_dlopen_self_static
  16256. # Compiler flag to prevent dynamic linking.
  16257. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  16258. # Compiler flag to turn off builtin functions.
  16259. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  16260. # Compiler flag to allow reflexive dlopens.
  16261. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  16262. # Compiler flag to generate shared objects directly from archives.
  16263. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  16264. # Compiler flag to generate thread-safe objects.
  16265. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  16266. # Library versioning type.
  16267. version_type=$version_type
  16268. # Format of library name prefix.
  16269. libname_spec=$lt_libname_spec
  16270. # List of archive names. First name is the real one, the rest are links.
  16271. # The last name is the one that the linker finds with -lNAME.
  16272. library_names_spec=$lt_library_names_spec
  16273. # The coded name of the library, if different from the real name.
  16274. soname_spec=$lt_soname_spec
  16275. # Commands used to build and install an old-style archive.
  16276. RANLIB=$lt_RANLIB
  16277. old_archive_cmds=$lt_old_archive_cmds_GCJ
  16278. old_postinstall_cmds=$lt_old_postinstall_cmds
  16279. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16280. # Create an old-style archive from a shared archive.
  16281. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  16282. # Create a temporary old-style archive to link instead of a shared archive.
  16283. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  16284. # Commands used to build and install a shared archive.
  16285. archive_cmds=$lt_archive_cmds_GCJ
  16286. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  16287. postinstall_cmds=$lt_postinstall_cmds
  16288. postuninstall_cmds=$lt_postuninstall_cmds
  16289. # Commands used to build a loadable module (assumed same as above if empty)
  16290. module_cmds=$lt_module_cmds_GCJ
  16291. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  16292. # Commands to strip libraries.
  16293. old_striplib=$lt_old_striplib
  16294. striplib=$lt_striplib
  16295. # Dependencies to place before the objects being linked to create a
  16296. # shared library.
  16297. predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16298. # Dependencies to place after the objects being linked to create a
  16299. # shared library.
  16300. postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16301. # Dependencies to place before the objects being linked to create a
  16302. # shared library.
  16303. predeps=$lt_predeps_GCJ
  16304. # Dependencies to place after the objects being linked to create a
  16305. # shared library.
  16306. postdeps=$lt_postdeps_GCJ
  16307. # The library search path used internally by the compiler when linking
  16308. # a shared library.
  16309. compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16310. # Method to check whether dependent libraries are shared objects.
  16311. deplibs_check_method=$lt_deplibs_check_method
  16312. # Command to use when deplibs_check_method == file_magic.
  16313. file_magic_cmd=$lt_file_magic_cmd
  16314. # Flag that allows shared libraries with undefined symbols to be built.
  16315. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  16316. # Flag that forces no undefined symbols.
  16317. no_undefined_flag=$lt_no_undefined_flag_GCJ
  16318. # Commands used to finish a libtool library installation in a directory.
  16319. finish_cmds=$lt_finish_cmds
  16320. # Same as above, but a single script fragment to be evaled but not shown.
  16321. finish_eval=$lt_finish_eval
  16322. # Take the output of nm and produce a listing of raw symbols and C names.
  16323. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16324. # Transform the output of nm in a proper C declaration
  16325. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16326. # Transform the output of nm in a C name address pair
  16327. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16328. # This is the shared library runtime path variable.
  16329. runpath_var=$runpath_var
  16330. # This is the shared library path variable.
  16331. shlibpath_var=$shlibpath_var
  16332. # Is shlibpath searched before the hard-coded library search path?
  16333. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16334. # How to hardcode a shared library path into an executable.
  16335. hardcode_action=$hardcode_action_GCJ
  16336. # Whether we should hardcode library paths into libraries.
  16337. hardcode_into_libs=$hardcode_into_libs
  16338. # Flag to hardcode \$libdir into a binary during linking.
  16339. # This must work even if \$libdir does not exist.
  16340. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  16341. # If ld is used when linking, flag to hardcode \$libdir into
  16342. # a binary during linking. This must work even if \$libdir does
  16343. # not exist.
  16344. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  16345. # Whether we need a single -rpath flag with a separated argument.
  16346. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  16347. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16348. # resulting binary.
  16349. hardcode_direct=$hardcode_direct_GCJ
  16350. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16351. # resulting binary.
  16352. hardcode_minus_L=$hardcode_minus_L_GCJ
  16353. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16354. # the resulting binary.
  16355. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  16356. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16357. # and all subsequent libraries and executables linked against it.
  16358. hardcode_automatic=$hardcode_automatic_GCJ
  16359. # Variables whose values should be saved in libtool wrapper scripts and
  16360. # restored at relink time.
  16361. variables_saved_for_relink="$variables_saved_for_relink"
  16362. # Whether libtool must link a program against all its dependency libraries.
  16363. link_all_deplibs=$link_all_deplibs_GCJ
  16364. # Compile-time system search path for libraries
  16365. sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16366. # Run-time system search path for libraries
  16367. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16368. # Fix the shell variable \$srcfile for the compiler.
  16369. fix_srcfile_path="$fix_srcfile_path_GCJ"
  16370. # Set to yes if exported symbols are required.
  16371. always_export_symbols=$always_export_symbols_GCJ
  16372. # The commands to list exported symbols.
  16373. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  16374. # The commands to extract the exported symbol list from a shared archive.
  16375. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16376. # Symbols that should not be listed in the preloaded symbols.
  16377. exclude_expsyms=$lt_exclude_expsyms_GCJ
  16378. # Symbols that must always be exported.
  16379. include_expsyms=$lt_include_expsyms_GCJ
  16380. # ### END LIBTOOL TAG CONFIG: $tagname
  16381. __EOF__
  16382. else
  16383. # If there is no Makefile yet, we rely on a make rule to execute
  16384. # `config.status --recheck' to rerun these tests and create the
  16385. # libtool script then.
  16386. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16387. if test -f "$ltmain_in"; then
  16388. test -f Makefile && make "$ltmain"
  16389. fi
  16390. fi
  16391. ac_ext=c
  16392. ac_cpp='$CPP $CPPFLAGS'
  16393. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16394. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16395. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16396. CC="$lt_save_CC"
  16397. else
  16398. tagname=""
  16399. fi
  16400. ;;
  16401. RC)
  16402. # Source file extension for RC test sources.
  16403. ac_ext=rc
  16404. # Object file extension for compiled RC test sources.
  16405. objext=o
  16406. objext_RC=$objext
  16407. # Code to be used in simple compile tests
  16408. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  16409. # Code to be used in simple link tests
  16410. lt_simple_link_test_code="$lt_simple_compile_test_code"
  16411. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16412. # If no C compiler was specified, use CC.
  16413. LTCC=${LTCC-"$CC"}
  16414. # If no C compiler flags were specified, use CFLAGS.
  16415. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  16416. # Allow CC to be a program name with arguments.
  16417. compiler=$CC
  16418. # save warnings/boilerplate of simple test code
  16419. ac_outfile=conftest.$ac_objext
  16420. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  16421. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16422. _lt_compiler_boilerplate=`cat conftest.err`
  16423. $rm conftest*
  16424. ac_outfile=conftest.$ac_objext
  16425. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  16426. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16427. _lt_linker_boilerplate=`cat conftest.err`
  16428. $rm conftest*
  16429. # Allow CC to be a program name with arguments.
  16430. lt_save_CC="$CC"
  16431. CC=${RC-"windres"}
  16432. compiler=$CC
  16433. compiler_RC=$CC
  16434. for cc_temp in $compiler""; do
  16435. case $cc_temp in
  16436. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16437. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16438. \-*) ;;
  16439. *) break;;
  16440. esac
  16441. done
  16442. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16443. lt_cv_prog_compiler_c_o_RC=yes
  16444. # The else clause should only fire when bootstrapping the
  16445. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16446. # with your package, and you will get complaints that there are
  16447. # no rules to generate ltmain.sh.
  16448. if test -f "$ltmain"; then
  16449. # See if we are running on zsh, and set the options which allow our commands through
  16450. # without removal of \ escapes.
  16451. if test -n "${ZSH_VERSION+set}" ; then
  16452. setopt NO_GLOB_SUBST
  16453. fi
  16454. # Now quote all the things that may contain metacharacters while being
  16455. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16456. # variables and quote the copies for generation of the libtool script.
  16457. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16458. SED SHELL STRIP \
  16459. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16460. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16461. deplibs_check_method reload_flag reload_cmds need_locks \
  16462. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16463. lt_cv_sys_global_symbol_to_c_name_address \
  16464. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16465. old_postinstall_cmds old_postuninstall_cmds \
  16466. compiler_RC \
  16467. CC_RC \
  16468. LD_RC \
  16469. lt_prog_compiler_wl_RC \
  16470. lt_prog_compiler_pic_RC \
  16471. lt_prog_compiler_static_RC \
  16472. lt_prog_compiler_no_builtin_flag_RC \
  16473. export_dynamic_flag_spec_RC \
  16474. thread_safe_flag_spec_RC \
  16475. whole_archive_flag_spec_RC \
  16476. enable_shared_with_static_runtimes_RC \
  16477. old_archive_cmds_RC \
  16478. old_archive_from_new_cmds_RC \
  16479. predep_objects_RC \
  16480. postdep_objects_RC \
  16481. predeps_RC \
  16482. postdeps_RC \
  16483. compiler_lib_search_path_RC \
  16484. archive_cmds_RC \
  16485. archive_expsym_cmds_RC \
  16486. postinstall_cmds_RC \
  16487. postuninstall_cmds_RC \
  16488. old_archive_from_expsyms_cmds_RC \
  16489. allow_undefined_flag_RC \
  16490. no_undefined_flag_RC \
  16491. export_symbols_cmds_RC \
  16492. hardcode_libdir_flag_spec_RC \
  16493. hardcode_libdir_flag_spec_ld_RC \
  16494. hardcode_libdir_separator_RC \
  16495. hardcode_automatic_RC \
  16496. module_cmds_RC \
  16497. module_expsym_cmds_RC \
  16498. lt_cv_prog_compiler_c_o_RC \
  16499. exclude_expsyms_RC \
  16500. include_expsyms_RC; do
  16501. case $var in
  16502. old_archive_cmds_RC | \
  16503. old_archive_from_new_cmds_RC | \
  16504. archive_cmds_RC | \
  16505. archive_expsym_cmds_RC | \
  16506. module_cmds_RC | \
  16507. module_expsym_cmds_RC | \
  16508. old_archive_from_expsyms_cmds_RC | \
  16509. export_symbols_cmds_RC | \
  16510. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16511. postinstall_cmds | postuninstall_cmds | \
  16512. old_postinstall_cmds | old_postuninstall_cmds | \
  16513. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16514. # Double-quote double-evaled strings.
  16515. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16516. ;;
  16517. *)
  16518. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16519. ;;
  16520. esac
  16521. done
  16522. case $lt_echo in
  16523. *'\$0 --fallback-echo"')
  16524. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16525. ;;
  16526. esac
  16527. cfgfile="$ofile"
  16528. cat <<__EOF__ >> "$cfgfile"
  16529. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16530. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16531. # Shell to use when invoking shell scripts.
  16532. SHELL=$lt_SHELL
  16533. # Whether or not to build shared libraries.
  16534. build_libtool_libs=$enable_shared
  16535. # Whether or not to build static libraries.
  16536. build_old_libs=$enable_static
  16537. # Whether or not to add -lc for building shared libraries.
  16538. build_libtool_need_lc=$archive_cmds_need_lc_RC
  16539. # Whether or not to disallow shared libs when runtime libs are static
  16540. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  16541. # Whether or not to optimize for fast installation.
  16542. fast_install=$enable_fast_install
  16543. # The host system.
  16544. host_alias=$host_alias
  16545. host=$host
  16546. host_os=$host_os
  16547. # The build system.
  16548. build_alias=$build_alias
  16549. build=$build
  16550. build_os=$build_os
  16551. # An echo program that does not interpret backslashes.
  16552. echo=$lt_echo
  16553. # The archiver.
  16554. AR=$lt_AR
  16555. AR_FLAGS=$lt_AR_FLAGS
  16556. # A C compiler.
  16557. LTCC=$lt_LTCC
  16558. # LTCC compiler flags.
  16559. LTCFLAGS=$lt_LTCFLAGS
  16560. # A language-specific compiler.
  16561. CC=$lt_compiler_RC
  16562. # Is the compiler the GNU C compiler?
  16563. with_gcc=$GCC_RC
  16564. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  16565. gcc_ver=\`gcc -dumpversion\`
  16566. # An ERE matcher.
  16567. EGREP=$lt_EGREP
  16568. # The linker used to build libraries.
  16569. LD=$lt_LD_RC
  16570. # Whether we need hard or soft links.
  16571. LN_S=$lt_LN_S
  16572. # A BSD-compatible nm program.
  16573. NM=$lt_NM
  16574. # A symbol stripping program
  16575. STRIP=$lt_STRIP
  16576. # Used to examine libraries when file_magic_cmd begins "file"
  16577. MAGIC_CMD=$MAGIC_CMD
  16578. # Used on cygwin: DLL creation program.
  16579. DLLTOOL="$DLLTOOL"
  16580. # Used on cygwin: object dumper.
  16581. OBJDUMP="$OBJDUMP"
  16582. # Used on cygwin: assembler.
  16583. AS="$AS"
  16584. # The name of the directory that contains temporary libtool files.
  16585. objdir=$objdir
  16586. # How to create reloadable object files.
  16587. reload_flag=$lt_reload_flag
  16588. reload_cmds=$lt_reload_cmds
  16589. # How to pass a linker flag through the compiler.
  16590. wl=$lt_lt_prog_compiler_wl_RC
  16591. # Object file suffix (normally "o").
  16592. objext="$ac_objext"
  16593. # Old archive suffix (normally "a").
  16594. libext="$libext"
  16595. # Shared library suffix (normally ".so").
  16596. shrext_cmds='$shrext_cmds'
  16597. # Executable file suffix (normally "").
  16598. exeext="$exeext"
  16599. # Additional compiler flags for building library objects.
  16600. pic_flag=$lt_lt_prog_compiler_pic_RC
  16601. pic_mode=$pic_mode
  16602. # What is the maximum length of a command?
  16603. max_cmd_len=$lt_cv_sys_max_cmd_len
  16604. # Does compiler simultaneously support -c and -o options?
  16605. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  16606. # Must we lock files when doing compilation?
  16607. need_locks=$lt_need_locks
  16608. # Do we need the lib prefix for modules?
  16609. need_lib_prefix=$need_lib_prefix
  16610. # Do we need a version for libraries?
  16611. need_version=$need_version
  16612. # Whether dlopen is supported.
  16613. dlopen_support=$enable_dlopen
  16614. # Whether dlopen of programs is supported.
  16615. dlopen_self=$enable_dlopen_self
  16616. # Whether dlopen of statically linked programs is supported.
  16617. dlopen_self_static=$enable_dlopen_self_static
  16618. # Compiler flag to prevent dynamic linking.
  16619. link_static_flag=$lt_lt_prog_compiler_static_RC
  16620. # Compiler flag to turn off builtin functions.
  16621. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  16622. # Compiler flag to allow reflexive dlopens.
  16623. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  16624. # Compiler flag to generate shared objects directly from archives.
  16625. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  16626. # Compiler flag to generate thread-safe objects.
  16627. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  16628. # Library versioning type.
  16629. version_type=$version_type
  16630. # Format of library name prefix.
  16631. libname_spec=$lt_libname_spec
  16632. # List of archive names. First name is the real one, the rest are links.
  16633. # The last name is the one that the linker finds with -lNAME.
  16634. library_names_spec=$lt_library_names_spec
  16635. # The coded name of the library, if different from the real name.
  16636. soname_spec=$lt_soname_spec
  16637. # Commands used to build and install an old-style archive.
  16638. RANLIB=$lt_RANLIB
  16639. old_archive_cmds=$lt_old_archive_cmds_RC
  16640. old_postinstall_cmds=$lt_old_postinstall_cmds
  16641. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16642. # Create an old-style archive from a shared archive.
  16643. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  16644. # Create a temporary old-style archive to link instead of a shared archive.
  16645. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  16646. # Commands used to build and install a shared archive.
  16647. archive_cmds=$lt_archive_cmds_RC
  16648. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  16649. postinstall_cmds=$lt_postinstall_cmds
  16650. postuninstall_cmds=$lt_postuninstall_cmds
  16651. # Commands used to build a loadable module (assumed same as above if empty)
  16652. module_cmds=$lt_module_cmds_RC
  16653. module_expsym_cmds=$lt_module_expsym_cmds_RC
  16654. # Commands to strip libraries.
  16655. old_striplib=$lt_old_striplib
  16656. striplib=$lt_striplib
  16657. # Dependencies to place before the objects being linked to create a
  16658. # shared library.
  16659. predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16660. # Dependencies to place after the objects being linked to create a
  16661. # shared library.
  16662. postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16663. # Dependencies to place before the objects being linked to create a
  16664. # shared library.
  16665. predeps=$lt_predeps_RC
  16666. # Dependencies to place after the objects being linked to create a
  16667. # shared library.
  16668. postdeps=$lt_postdeps_RC
  16669. # The library search path used internally by the compiler when linking
  16670. # a shared library.
  16671. compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16672. # Method to check whether dependent libraries are shared objects.
  16673. deplibs_check_method=$lt_deplibs_check_method
  16674. # Command to use when deplibs_check_method == file_magic.
  16675. file_magic_cmd=$lt_file_magic_cmd
  16676. # Flag that allows shared libraries with undefined symbols to be built.
  16677. allow_undefined_flag=$lt_allow_undefined_flag_RC
  16678. # Flag that forces no undefined symbols.
  16679. no_undefined_flag=$lt_no_undefined_flag_RC
  16680. # Commands used to finish a libtool library installation in a directory.
  16681. finish_cmds=$lt_finish_cmds
  16682. # Same as above, but a single script fragment to be evaled but not shown.
  16683. finish_eval=$lt_finish_eval
  16684. # Take the output of nm and produce a listing of raw symbols and C names.
  16685. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16686. # Transform the output of nm in a proper C declaration
  16687. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16688. # Transform the output of nm in a C name address pair
  16689. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16690. # This is the shared library runtime path variable.
  16691. runpath_var=$runpath_var
  16692. # This is the shared library path variable.
  16693. shlibpath_var=$shlibpath_var
  16694. # Is shlibpath searched before the hard-coded library search path?
  16695. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16696. # How to hardcode a shared library path into an executable.
  16697. hardcode_action=$hardcode_action_RC
  16698. # Whether we should hardcode library paths into libraries.
  16699. hardcode_into_libs=$hardcode_into_libs
  16700. # Flag to hardcode \$libdir into a binary during linking.
  16701. # This must work even if \$libdir does not exist.
  16702. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  16703. # If ld is used when linking, flag to hardcode \$libdir into
  16704. # a binary during linking. This must work even if \$libdir does
  16705. # not exist.
  16706. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  16707. # Whether we need a single -rpath flag with a separated argument.
  16708. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  16709. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16710. # resulting binary.
  16711. hardcode_direct=$hardcode_direct_RC
  16712. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16713. # resulting binary.
  16714. hardcode_minus_L=$hardcode_minus_L_RC
  16715. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16716. # the resulting binary.
  16717. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  16718. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16719. # and all subsequent libraries and executables linked against it.
  16720. hardcode_automatic=$hardcode_automatic_RC
  16721. # Variables whose values should be saved in libtool wrapper scripts and
  16722. # restored at relink time.
  16723. variables_saved_for_relink="$variables_saved_for_relink"
  16724. # Whether libtool must link a program against all its dependency libraries.
  16725. link_all_deplibs=$link_all_deplibs_RC
  16726. # Compile-time system search path for libraries
  16727. sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16728. # Run-time system search path for libraries
  16729. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16730. # Fix the shell variable \$srcfile for the compiler.
  16731. fix_srcfile_path="$fix_srcfile_path_RC"
  16732. # Set to yes if exported symbols are required.
  16733. always_export_symbols=$always_export_symbols_RC
  16734. # The commands to list exported symbols.
  16735. export_symbols_cmds=$lt_export_symbols_cmds_RC
  16736. # The commands to extract the exported symbol list from a shared archive.
  16737. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16738. # Symbols that should not be listed in the preloaded symbols.
  16739. exclude_expsyms=$lt_exclude_expsyms_RC
  16740. # Symbols that must always be exported.
  16741. include_expsyms=$lt_include_expsyms_RC
  16742. # ### END LIBTOOL TAG CONFIG: $tagname
  16743. __EOF__
  16744. else
  16745. # If there is no Makefile yet, we rely on a make rule to execute
  16746. # `config.status --recheck' to rerun these tests and create the
  16747. # libtool script then.
  16748. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16749. if test -f "$ltmain_in"; then
  16750. test -f Makefile && make "$ltmain"
  16751. fi
  16752. fi
  16753. ac_ext=c
  16754. ac_cpp='$CPP $CPPFLAGS'
  16755. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16756. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16757. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16758. CC="$lt_save_CC"
  16759. ;;
  16760. *)
  16761. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  16762. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  16763. { (exit 1); exit 1; }; }
  16764. ;;
  16765. esac
  16766. # Append the new tag name to the list of available tags.
  16767. if test -n "$tagname" ; then
  16768. available_tags="$available_tags $tagname"
  16769. fi
  16770. fi
  16771. done
  16772. IFS="$lt_save_ifs"
  16773. # Now substitute the updated list of available tags.
  16774. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  16775. mv "${ofile}T" "$ofile"
  16776. chmod +x "$ofile"
  16777. else
  16778. rm -f "${ofile}T"
  16779. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  16780. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  16781. { (exit 1); exit 1; }; }
  16782. fi
  16783. fi
  16784. # This can be used to rebuild libtool when needed
  16785. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  16786. # Always use our own libtool.
  16787. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  16788. # Prevent multiple expansion
  16789. # Checks for header files.
  16790. ac_header_dirent=no
  16791. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  16792. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  16793. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  16794. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  16795. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  16796. echo $ECHO_N "(cached) $ECHO_C" >&6
  16797. else
  16798. cat >conftest.$ac_ext <<_ACEOF
  16799. /* confdefs.h. */
  16800. _ACEOF
  16801. cat confdefs.h >>conftest.$ac_ext
  16802. cat >>conftest.$ac_ext <<_ACEOF
  16803. /* end confdefs.h. */
  16804. #include <sys/types.h>
  16805. #include <$ac_hdr>
  16806. int
  16807. main ()
  16808. {
  16809. if ((DIR *) 0)
  16810. return 0;
  16811. ;
  16812. return 0;
  16813. }
  16814. _ACEOF
  16815. rm -f conftest.$ac_objext
  16816. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16817. (eval $ac_compile) 2>conftest.er1
  16818. ac_status=$?
  16819. grep -v '^ *+' conftest.er1 >conftest.err
  16820. rm -f conftest.er1
  16821. cat conftest.err >&5
  16822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16823. (exit $ac_status); } &&
  16824. { ac_try='test -z "$ac_c_werror_flag"
  16825. || test ! -s conftest.err'
  16826. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16827. (eval $ac_try) 2>&5
  16828. ac_status=$?
  16829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16830. (exit $ac_status); }; } &&
  16831. { ac_try='test -s conftest.$ac_objext'
  16832. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16833. (eval $ac_try) 2>&5
  16834. ac_status=$?
  16835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16836. (exit $ac_status); }; }; then
  16837. eval "$as_ac_Header=yes"
  16838. else
  16839. echo "$as_me: failed program was:" >&5
  16840. sed 's/^/| /' conftest.$ac_ext >&5
  16841. eval "$as_ac_Header=no"
  16842. fi
  16843. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  16844. fi
  16845. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  16846. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  16847. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16848. cat >>confdefs.h <<_ACEOF
  16849. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  16850. _ACEOF
  16851. ac_header_dirent=$ac_hdr; break
  16852. fi
  16853. done
  16854. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  16855. if test $ac_header_dirent = dirent.h; then
  16856. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  16857. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  16858. if test "${ac_cv_search_opendir+set}" = set; then
  16859. echo $ECHO_N "(cached) $ECHO_C" >&6
  16860. else
  16861. ac_func_search_save_LIBS=$LIBS
  16862. ac_cv_search_opendir=no
  16863. cat >conftest.$ac_ext <<_ACEOF
  16864. /* confdefs.h. */
  16865. _ACEOF
  16866. cat confdefs.h >>conftest.$ac_ext
  16867. cat >>conftest.$ac_ext <<_ACEOF
  16868. /* end confdefs.h. */
  16869. /* Override any gcc2 internal prototype to avoid an error. */
  16870. #ifdef __cplusplus
  16871. extern "C"
  16872. #endif
  16873. /* We use char because int might match the return type of a gcc2
  16874. builtin and then its argument prototype would still apply. */
  16875. char opendir ();
  16876. int
  16877. main ()
  16878. {
  16879. opendir ();
  16880. ;
  16881. return 0;
  16882. }
  16883. _ACEOF
  16884. rm -f conftest.$ac_objext conftest$ac_exeext
  16885. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16886. (eval $ac_link) 2>conftest.er1
  16887. ac_status=$?
  16888. grep -v '^ *+' conftest.er1 >conftest.err
  16889. rm -f conftest.er1
  16890. cat conftest.err >&5
  16891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16892. (exit $ac_status); } &&
  16893. { ac_try='test -z "$ac_c_werror_flag"
  16894. || test ! -s conftest.err'
  16895. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16896. (eval $ac_try) 2>&5
  16897. ac_status=$?
  16898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16899. (exit $ac_status); }; } &&
  16900. { ac_try='test -s conftest$ac_exeext'
  16901. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16902. (eval $ac_try) 2>&5
  16903. ac_status=$?
  16904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16905. (exit $ac_status); }; }; then
  16906. ac_cv_search_opendir="none required"
  16907. else
  16908. echo "$as_me: failed program was:" >&5
  16909. sed 's/^/| /' conftest.$ac_ext >&5
  16910. fi
  16911. rm -f conftest.err conftest.$ac_objext \
  16912. conftest$ac_exeext conftest.$ac_ext
  16913. if test "$ac_cv_search_opendir" = no; then
  16914. for ac_lib in dir; do
  16915. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  16916. cat >conftest.$ac_ext <<_ACEOF
  16917. /* confdefs.h. */
  16918. _ACEOF
  16919. cat confdefs.h >>conftest.$ac_ext
  16920. cat >>conftest.$ac_ext <<_ACEOF
  16921. /* end confdefs.h. */
  16922. /* Override any gcc2 internal prototype to avoid an error. */
  16923. #ifdef __cplusplus
  16924. extern "C"
  16925. #endif
  16926. /* We use char because int might match the return type of a gcc2
  16927. builtin and then its argument prototype would still apply. */
  16928. char opendir ();
  16929. int
  16930. main ()
  16931. {
  16932. opendir ();
  16933. ;
  16934. return 0;
  16935. }
  16936. _ACEOF
  16937. rm -f conftest.$ac_objext conftest$ac_exeext
  16938. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16939. (eval $ac_link) 2>conftest.er1
  16940. ac_status=$?
  16941. grep -v '^ *+' conftest.er1 >conftest.err
  16942. rm -f conftest.er1
  16943. cat conftest.err >&5
  16944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16945. (exit $ac_status); } &&
  16946. { ac_try='test -z "$ac_c_werror_flag"
  16947. || test ! -s conftest.err'
  16948. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16949. (eval $ac_try) 2>&5
  16950. ac_status=$?
  16951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16952. (exit $ac_status); }; } &&
  16953. { ac_try='test -s conftest$ac_exeext'
  16954. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16955. (eval $ac_try) 2>&5
  16956. ac_status=$?
  16957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16958. (exit $ac_status); }; }; then
  16959. ac_cv_search_opendir="-l$ac_lib"
  16960. break
  16961. else
  16962. echo "$as_me: failed program was:" >&5
  16963. sed 's/^/| /' conftest.$ac_ext >&5
  16964. fi
  16965. rm -f conftest.err conftest.$ac_objext \
  16966. conftest$ac_exeext conftest.$ac_ext
  16967. done
  16968. fi
  16969. LIBS=$ac_func_search_save_LIBS
  16970. fi
  16971. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  16972. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  16973. if test "$ac_cv_search_opendir" != no; then
  16974. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  16975. fi
  16976. else
  16977. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  16978. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  16979. if test "${ac_cv_search_opendir+set}" = set; then
  16980. echo $ECHO_N "(cached) $ECHO_C" >&6
  16981. else
  16982. ac_func_search_save_LIBS=$LIBS
  16983. ac_cv_search_opendir=no
  16984. cat >conftest.$ac_ext <<_ACEOF
  16985. /* confdefs.h. */
  16986. _ACEOF
  16987. cat confdefs.h >>conftest.$ac_ext
  16988. cat >>conftest.$ac_ext <<_ACEOF
  16989. /* end confdefs.h. */
  16990. /* Override any gcc2 internal prototype to avoid an error. */
  16991. #ifdef __cplusplus
  16992. extern "C"
  16993. #endif
  16994. /* We use char because int might match the return type of a gcc2
  16995. builtin and then its argument prototype would still apply. */
  16996. char opendir ();
  16997. int
  16998. main ()
  16999. {
  17000. opendir ();
  17001. ;
  17002. return 0;
  17003. }
  17004. _ACEOF
  17005. rm -f conftest.$ac_objext conftest$ac_exeext
  17006. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17007. (eval $ac_link) 2>conftest.er1
  17008. ac_status=$?
  17009. grep -v '^ *+' conftest.er1 >conftest.err
  17010. rm -f conftest.er1
  17011. cat conftest.err >&5
  17012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17013. (exit $ac_status); } &&
  17014. { ac_try='test -z "$ac_c_werror_flag"
  17015. || test ! -s conftest.err'
  17016. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17017. (eval $ac_try) 2>&5
  17018. ac_status=$?
  17019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17020. (exit $ac_status); }; } &&
  17021. { ac_try='test -s conftest$ac_exeext'
  17022. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17023. (eval $ac_try) 2>&5
  17024. ac_status=$?
  17025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17026. (exit $ac_status); }; }; then
  17027. ac_cv_search_opendir="none required"
  17028. else
  17029. echo "$as_me: failed program was:" >&5
  17030. sed 's/^/| /' conftest.$ac_ext >&5
  17031. fi
  17032. rm -f conftest.err conftest.$ac_objext \
  17033. conftest$ac_exeext conftest.$ac_ext
  17034. if test "$ac_cv_search_opendir" = no; then
  17035. for ac_lib in x; do
  17036. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17037. cat >conftest.$ac_ext <<_ACEOF
  17038. /* confdefs.h. */
  17039. _ACEOF
  17040. cat confdefs.h >>conftest.$ac_ext
  17041. cat >>conftest.$ac_ext <<_ACEOF
  17042. /* end confdefs.h. */
  17043. /* Override any gcc2 internal prototype to avoid an error. */
  17044. #ifdef __cplusplus
  17045. extern "C"
  17046. #endif
  17047. /* We use char because int might match the return type of a gcc2
  17048. builtin and then its argument prototype would still apply. */
  17049. char opendir ();
  17050. int
  17051. main ()
  17052. {
  17053. opendir ();
  17054. ;
  17055. return 0;
  17056. }
  17057. _ACEOF
  17058. rm -f conftest.$ac_objext conftest$ac_exeext
  17059. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17060. (eval $ac_link) 2>conftest.er1
  17061. ac_status=$?
  17062. grep -v '^ *+' conftest.er1 >conftest.err
  17063. rm -f conftest.er1
  17064. cat conftest.err >&5
  17065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17066. (exit $ac_status); } &&
  17067. { ac_try='test -z "$ac_c_werror_flag"
  17068. || test ! -s conftest.err'
  17069. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17070. (eval $ac_try) 2>&5
  17071. ac_status=$?
  17072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17073. (exit $ac_status); }; } &&
  17074. { ac_try='test -s conftest$ac_exeext'
  17075. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17076. (eval $ac_try) 2>&5
  17077. ac_status=$?
  17078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17079. (exit $ac_status); }; }; then
  17080. ac_cv_search_opendir="-l$ac_lib"
  17081. break
  17082. else
  17083. echo "$as_me: failed program was:" >&5
  17084. sed 's/^/| /' conftest.$ac_ext >&5
  17085. fi
  17086. rm -f conftest.err conftest.$ac_objext \
  17087. conftest$ac_exeext conftest.$ac_ext
  17088. done
  17089. fi
  17090. LIBS=$ac_func_search_save_LIBS
  17091. fi
  17092. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  17093. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  17094. if test "$ac_cv_search_opendir" != no; then
  17095. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  17096. fi
  17097. fi
  17098. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  17099. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  17100. if test "${ac_cv_header_stdc+set}" = set; then
  17101. echo $ECHO_N "(cached) $ECHO_C" >&6
  17102. else
  17103. cat >conftest.$ac_ext <<_ACEOF
  17104. /* confdefs.h. */
  17105. _ACEOF
  17106. cat confdefs.h >>conftest.$ac_ext
  17107. cat >>conftest.$ac_ext <<_ACEOF
  17108. /* end confdefs.h. */
  17109. #include <stdlib.h>
  17110. #include <stdarg.h>
  17111. #include <string.h>
  17112. #include <float.h>
  17113. int
  17114. main ()
  17115. {
  17116. ;
  17117. return 0;
  17118. }
  17119. _ACEOF
  17120. rm -f conftest.$ac_objext
  17121. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17122. (eval $ac_compile) 2>conftest.er1
  17123. ac_status=$?
  17124. grep -v '^ *+' conftest.er1 >conftest.err
  17125. rm -f conftest.er1
  17126. cat conftest.err >&5
  17127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17128. (exit $ac_status); } &&
  17129. { ac_try='test -z "$ac_c_werror_flag"
  17130. || test ! -s conftest.err'
  17131. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17132. (eval $ac_try) 2>&5
  17133. ac_status=$?
  17134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17135. (exit $ac_status); }; } &&
  17136. { ac_try='test -s conftest.$ac_objext'
  17137. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17138. (eval $ac_try) 2>&5
  17139. ac_status=$?
  17140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17141. (exit $ac_status); }; }; then
  17142. ac_cv_header_stdc=yes
  17143. else
  17144. echo "$as_me: failed program was:" >&5
  17145. sed 's/^/| /' conftest.$ac_ext >&5
  17146. ac_cv_header_stdc=no
  17147. fi
  17148. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17149. if test $ac_cv_header_stdc = yes; then
  17150. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  17151. cat >conftest.$ac_ext <<_ACEOF
  17152. /* confdefs.h. */
  17153. _ACEOF
  17154. cat confdefs.h >>conftest.$ac_ext
  17155. cat >>conftest.$ac_ext <<_ACEOF
  17156. /* end confdefs.h. */
  17157. #include <string.h>
  17158. _ACEOF
  17159. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17160. $EGREP "memchr" >/dev/null 2>&1; then
  17161. :
  17162. else
  17163. ac_cv_header_stdc=no
  17164. fi
  17165. rm -f conftest*
  17166. fi
  17167. if test $ac_cv_header_stdc = yes; then
  17168. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  17169. cat >conftest.$ac_ext <<_ACEOF
  17170. /* confdefs.h. */
  17171. _ACEOF
  17172. cat confdefs.h >>conftest.$ac_ext
  17173. cat >>conftest.$ac_ext <<_ACEOF
  17174. /* end confdefs.h. */
  17175. #include <stdlib.h>
  17176. _ACEOF
  17177. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17178. $EGREP "free" >/dev/null 2>&1; then
  17179. :
  17180. else
  17181. ac_cv_header_stdc=no
  17182. fi
  17183. rm -f conftest*
  17184. fi
  17185. if test $ac_cv_header_stdc = yes; then
  17186. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  17187. if test "$cross_compiling" = yes; then
  17188. :
  17189. else
  17190. cat >conftest.$ac_ext <<_ACEOF
  17191. /* confdefs.h. */
  17192. _ACEOF
  17193. cat confdefs.h >>conftest.$ac_ext
  17194. cat >>conftest.$ac_ext <<_ACEOF
  17195. /* end confdefs.h. */
  17196. #include <ctype.h>
  17197. #if ((' ' & 0x0FF) == 0x020)
  17198. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  17199. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  17200. #else
  17201. # define ISLOWER(c) \
  17202. (('a' <= (c) && (c) <= 'i') \
  17203. || ('j' <= (c) && (c) <= 'r') \
  17204. || ('s' <= (c) && (c) <= 'z'))
  17205. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  17206. #endif
  17207. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  17208. int
  17209. main ()
  17210. {
  17211. int i;
  17212. for (i = 0; i < 256; i++)
  17213. if (XOR (islower (i), ISLOWER (i))
  17214. || toupper (i) != TOUPPER (i))
  17215. exit(2);
  17216. exit (0);
  17217. }
  17218. _ACEOF
  17219. rm -f conftest$ac_exeext
  17220. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17221. (eval $ac_link) 2>&5
  17222. ac_status=$?
  17223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17224. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17225. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17226. (eval $ac_try) 2>&5
  17227. ac_status=$?
  17228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17229. (exit $ac_status); }; }; then
  17230. :
  17231. else
  17232. echo "$as_me: program exited with status $ac_status" >&5
  17233. echo "$as_me: failed program was:" >&5
  17234. sed 's/^/| /' conftest.$ac_ext >&5
  17235. ( exit $ac_status )
  17236. ac_cv_header_stdc=no
  17237. fi
  17238. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17239. fi
  17240. fi
  17241. fi
  17242. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  17243. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  17244. if test $ac_cv_header_stdc = yes; then
  17245. cat >>confdefs.h <<\_ACEOF
  17246. #define STDC_HEADERS 1
  17247. _ACEOF
  17248. fi
  17249. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  17250. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  17251. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  17252. echo $ECHO_N "(cached) $ECHO_C" >&6
  17253. else
  17254. cat >conftest.$ac_ext <<_ACEOF
  17255. /* confdefs.h. */
  17256. _ACEOF
  17257. cat confdefs.h >>conftest.$ac_ext
  17258. cat >>conftest.$ac_ext <<_ACEOF
  17259. /* end confdefs.h. */
  17260. #include <sys/types.h>
  17261. #include <sys/wait.h>
  17262. #ifndef WEXITSTATUS
  17263. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  17264. #endif
  17265. #ifndef WIFEXITED
  17266. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  17267. #endif
  17268. int
  17269. main ()
  17270. {
  17271. int s;
  17272. wait (&s);
  17273. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  17274. ;
  17275. return 0;
  17276. }
  17277. _ACEOF
  17278. rm -f conftest.$ac_objext
  17279. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17280. (eval $ac_compile) 2>conftest.er1
  17281. ac_status=$?
  17282. grep -v '^ *+' conftest.er1 >conftest.err
  17283. rm -f conftest.er1
  17284. cat conftest.err >&5
  17285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17286. (exit $ac_status); } &&
  17287. { ac_try='test -z "$ac_c_werror_flag"
  17288. || test ! -s conftest.err'
  17289. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17290. (eval $ac_try) 2>&5
  17291. ac_status=$?
  17292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17293. (exit $ac_status); }; } &&
  17294. { ac_try='test -s conftest.$ac_objext'
  17295. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17296. (eval $ac_try) 2>&5
  17297. ac_status=$?
  17298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17299. (exit $ac_status); }; }; then
  17300. ac_cv_header_sys_wait_h=yes
  17301. else
  17302. echo "$as_me: failed program was:" >&5
  17303. sed 's/^/| /' conftest.$ac_ext >&5
  17304. ac_cv_header_sys_wait_h=no
  17305. fi
  17306. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17307. fi
  17308. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  17309. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  17310. if test $ac_cv_header_sys_wait_h = yes; then
  17311. cat >>confdefs.h <<\_ACEOF
  17312. #define HAVE_SYS_WAIT_H 1
  17313. _ACEOF
  17314. fi
  17315. 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 inttypes.h
  17316. do
  17317. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17318. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17319. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17320. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17321. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17322. echo $ECHO_N "(cached) $ECHO_C" >&6
  17323. fi
  17324. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17325. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17326. else
  17327. # Is the header compilable?
  17328. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17329. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  17330. cat >conftest.$ac_ext <<_ACEOF
  17331. /* confdefs.h. */
  17332. _ACEOF
  17333. cat confdefs.h >>conftest.$ac_ext
  17334. cat >>conftest.$ac_ext <<_ACEOF
  17335. /* end confdefs.h. */
  17336. $ac_includes_default
  17337. #include <$ac_header>
  17338. _ACEOF
  17339. rm -f conftest.$ac_objext
  17340. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17341. (eval $ac_compile) 2>conftest.er1
  17342. ac_status=$?
  17343. grep -v '^ *+' conftest.er1 >conftest.err
  17344. rm -f conftest.er1
  17345. cat conftest.err >&5
  17346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17347. (exit $ac_status); } &&
  17348. { ac_try='test -z "$ac_c_werror_flag"
  17349. || test ! -s conftest.err'
  17350. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17351. (eval $ac_try) 2>&5
  17352. ac_status=$?
  17353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17354. (exit $ac_status); }; } &&
  17355. { ac_try='test -s conftest.$ac_objext'
  17356. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17357. (eval $ac_try) 2>&5
  17358. ac_status=$?
  17359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17360. (exit $ac_status); }; }; then
  17361. ac_header_compiler=yes
  17362. else
  17363. echo "$as_me: failed program was:" >&5
  17364. sed 's/^/| /' conftest.$ac_ext >&5
  17365. ac_header_compiler=no
  17366. fi
  17367. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17368. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17369. echo "${ECHO_T}$ac_header_compiler" >&6
  17370. # Is the header present?
  17371. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17372. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  17373. cat >conftest.$ac_ext <<_ACEOF
  17374. /* confdefs.h. */
  17375. _ACEOF
  17376. cat confdefs.h >>conftest.$ac_ext
  17377. cat >>conftest.$ac_ext <<_ACEOF
  17378. /* end confdefs.h. */
  17379. #include <$ac_header>
  17380. _ACEOF
  17381. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17382. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17383. ac_status=$?
  17384. grep -v '^ *+' conftest.er1 >conftest.err
  17385. rm -f conftest.er1
  17386. cat conftest.err >&5
  17387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17388. (exit $ac_status); } >/dev/null; then
  17389. if test -s conftest.err; then
  17390. ac_cpp_err=$ac_c_preproc_warn_flag
  17391. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17392. else
  17393. ac_cpp_err=
  17394. fi
  17395. else
  17396. ac_cpp_err=yes
  17397. fi
  17398. if test -z "$ac_cpp_err"; then
  17399. ac_header_preproc=yes
  17400. else
  17401. echo "$as_me: failed program was:" >&5
  17402. sed 's/^/| /' conftest.$ac_ext >&5
  17403. ac_header_preproc=no
  17404. fi
  17405. rm -f conftest.err conftest.$ac_ext
  17406. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17407. echo "${ECHO_T}$ac_header_preproc" >&6
  17408. # So? What about this header?
  17409. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17410. yes:no: )
  17411. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17412. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17413. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17414. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17415. ac_header_preproc=yes
  17416. ;;
  17417. no:yes:* )
  17418. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17419. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17420. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17421. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17422. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17423. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17424. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17425. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17426. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17427. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17428. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17429. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17430. (
  17431. cat <<\_ASBOX
  17432. ## ------------------------------------------ ##
  17433. ## Report this to http://bugzilla.redhat.com/ ##
  17434. ## ------------------------------------------ ##
  17435. _ASBOX
  17436. ) |
  17437. sed "s/^/$as_me: WARNING: /" >&2
  17438. ;;
  17439. esac
  17440. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17441. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17442. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17443. echo $ECHO_N "(cached) $ECHO_C" >&6
  17444. else
  17445. eval "$as_ac_Header=\$ac_header_preproc"
  17446. fi
  17447. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17448. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17449. fi
  17450. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17451. cat >>confdefs.h <<_ACEOF
  17452. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17453. _ACEOF
  17454. fi
  17455. done
  17456. # Checks for typedefs, structures, and compiler characteristics.
  17457. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  17458. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  17459. if test "${ac_cv_header_stat_broken+set}" = set; then
  17460. echo $ECHO_N "(cached) $ECHO_C" >&6
  17461. else
  17462. cat >conftest.$ac_ext <<_ACEOF
  17463. /* confdefs.h. */
  17464. _ACEOF
  17465. cat confdefs.h >>conftest.$ac_ext
  17466. cat >>conftest.$ac_ext <<_ACEOF
  17467. /* end confdefs.h. */
  17468. #include <sys/types.h>
  17469. #include <sys/stat.h>
  17470. #if defined(S_ISBLK) && defined(S_IFDIR)
  17471. # if S_ISBLK (S_IFDIR)
  17472. You lose.
  17473. # endif
  17474. #endif
  17475. #if defined(S_ISBLK) && defined(S_IFCHR)
  17476. # if S_ISBLK (S_IFCHR)
  17477. You lose.
  17478. # endif
  17479. #endif
  17480. #if defined(S_ISLNK) && defined(S_IFREG)
  17481. # if S_ISLNK (S_IFREG)
  17482. You lose.
  17483. # endif
  17484. #endif
  17485. #if defined(S_ISSOCK) && defined(S_IFREG)
  17486. # if S_ISSOCK (S_IFREG)
  17487. You lose.
  17488. # endif
  17489. #endif
  17490. _ACEOF
  17491. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17492. $EGREP "You lose" >/dev/null 2>&1; then
  17493. ac_cv_header_stat_broken=yes
  17494. else
  17495. ac_cv_header_stat_broken=no
  17496. fi
  17497. rm -f conftest*
  17498. fi
  17499. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  17500. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  17501. if test $ac_cv_header_stat_broken = yes; then
  17502. cat >>confdefs.h <<\_ACEOF
  17503. #define STAT_MACROS_BROKEN 1
  17504. _ACEOF
  17505. fi
  17506. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  17507. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  17508. if test "${ac_cv_c_const+set}" = set; then
  17509. echo $ECHO_N "(cached) $ECHO_C" >&6
  17510. else
  17511. cat >conftest.$ac_ext <<_ACEOF
  17512. /* confdefs.h. */
  17513. _ACEOF
  17514. cat confdefs.h >>conftest.$ac_ext
  17515. cat >>conftest.$ac_ext <<_ACEOF
  17516. /* end confdefs.h. */
  17517. int
  17518. main ()
  17519. {
  17520. /* FIXME: Include the comments suggested by Paul. */
  17521. #ifndef __cplusplus
  17522. /* Ultrix mips cc rejects this. */
  17523. typedef int charset[2];
  17524. const charset x;
  17525. /* SunOS 4.1.1 cc rejects this. */
  17526. char const *const *ccp;
  17527. char **p;
  17528. /* NEC SVR4.0.2 mips cc rejects this. */
  17529. struct point {int x, y;};
  17530. static struct point const zero = {0,0};
  17531. /* AIX XL C 1.02.0.0 rejects this.
  17532. It does not let you subtract one const X* pointer from another in
  17533. an arm of an if-expression whose if-part is not a constant
  17534. expression */
  17535. const char *g = "string";
  17536. ccp = &g + (g ? g-g : 0);
  17537. /* HPUX 7.0 cc rejects these. */
  17538. ++ccp;
  17539. p = (char**) ccp;
  17540. ccp = (char const *const *) p;
  17541. { /* SCO 3.2v4 cc rejects this. */
  17542. char *t;
  17543. char const *s = 0 ? (char *) 0 : (char const *) 0;
  17544. *t++ = 0;
  17545. }
  17546. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  17547. int x[] = {25, 17};
  17548. const int *foo = &x[0];
  17549. ++foo;
  17550. }
  17551. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  17552. typedef const int *iptr;
  17553. iptr p = 0;
  17554. ++p;
  17555. }
  17556. { /* AIX XL C 1.02.0.0 rejects this saying
  17557. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  17558. struct s { int j; const int *ap[3]; };
  17559. struct s *b; b->j = 5;
  17560. }
  17561. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  17562. const int foo = 10;
  17563. }
  17564. #endif
  17565. ;
  17566. return 0;
  17567. }
  17568. _ACEOF
  17569. rm -f conftest.$ac_objext
  17570. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17571. (eval $ac_compile) 2>conftest.er1
  17572. ac_status=$?
  17573. grep -v '^ *+' conftest.er1 >conftest.err
  17574. rm -f conftest.er1
  17575. cat conftest.err >&5
  17576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17577. (exit $ac_status); } &&
  17578. { ac_try='test -z "$ac_c_werror_flag"
  17579. || test ! -s conftest.err'
  17580. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17581. (eval $ac_try) 2>&5
  17582. ac_status=$?
  17583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17584. (exit $ac_status); }; } &&
  17585. { ac_try='test -s conftest.$ac_objext'
  17586. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17587. (eval $ac_try) 2>&5
  17588. ac_status=$?
  17589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17590. (exit $ac_status); }; }; then
  17591. ac_cv_c_const=yes
  17592. else
  17593. echo "$as_me: failed program was:" >&5
  17594. sed 's/^/| /' conftest.$ac_ext >&5
  17595. ac_cv_c_const=no
  17596. fi
  17597. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17598. fi
  17599. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  17600. echo "${ECHO_T}$ac_cv_c_const" >&6
  17601. if test $ac_cv_c_const = no; then
  17602. cat >>confdefs.h <<\_ACEOF
  17603. #define const
  17604. _ACEOF
  17605. fi
  17606. echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  17607. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
  17608. if test "${ac_cv_header_stdbool_h+set}" = set; then
  17609. echo $ECHO_N "(cached) $ECHO_C" >&6
  17610. else
  17611. cat >conftest.$ac_ext <<_ACEOF
  17612. /* confdefs.h. */
  17613. _ACEOF
  17614. cat confdefs.h >>conftest.$ac_ext
  17615. cat >>conftest.$ac_ext <<_ACEOF
  17616. /* end confdefs.h. */
  17617. #include <stdbool.h>
  17618. #ifndef bool
  17619. # error bool is not defined
  17620. #endif
  17621. #ifndef false
  17622. # error false is not defined
  17623. #endif
  17624. #if false
  17625. # error false is not 0
  17626. #endif
  17627. #ifndef true
  17628. # error true is not defined
  17629. #endif
  17630. #if true != 1
  17631. # error true is not 1
  17632. #endif
  17633. #ifndef __bool_true_false_are_defined
  17634. # error __bool_true_false_are_defined is not defined
  17635. #endif
  17636. struct s { _Bool s: 1; _Bool t; } s;
  17637. char a[true == 1 ? 1 : -1];
  17638. char b[false == 0 ? 1 : -1];
  17639. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  17640. char d[(bool) -0.5 == true ? 1 : -1];
  17641. bool e = &s;
  17642. char f[(_Bool) -0.0 == false ? 1 : -1];
  17643. char g[true];
  17644. char h[sizeof (_Bool)];
  17645. char i[sizeof s.t];
  17646. int
  17647. main ()
  17648. {
  17649. return !a + !b + !c + !d + !e + !f + !g + !h + !i;
  17650. ;
  17651. return 0;
  17652. }
  17653. _ACEOF
  17654. rm -f conftest.$ac_objext
  17655. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17656. (eval $ac_compile) 2>conftest.er1
  17657. ac_status=$?
  17658. grep -v '^ *+' conftest.er1 >conftest.err
  17659. rm -f conftest.er1
  17660. cat conftest.err >&5
  17661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17662. (exit $ac_status); } &&
  17663. { ac_try='test -z "$ac_c_werror_flag"
  17664. || test ! -s conftest.err'
  17665. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17666. (eval $ac_try) 2>&5
  17667. ac_status=$?
  17668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17669. (exit $ac_status); }; } &&
  17670. { ac_try='test -s conftest.$ac_objext'
  17671. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17672. (eval $ac_try) 2>&5
  17673. ac_status=$?
  17674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17675. (exit $ac_status); }; }; then
  17676. ac_cv_header_stdbool_h=yes
  17677. else
  17678. echo "$as_me: failed program was:" >&5
  17679. sed 's/^/| /' conftest.$ac_ext >&5
  17680. ac_cv_header_stdbool_h=no
  17681. fi
  17682. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17683. fi
  17684. echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  17685. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
  17686. echo "$as_me:$LINENO: checking for _Bool" >&5
  17687. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
  17688. if test "${ac_cv_type__Bool+set}" = set; then
  17689. echo $ECHO_N "(cached) $ECHO_C" >&6
  17690. else
  17691. cat >conftest.$ac_ext <<_ACEOF
  17692. /* confdefs.h. */
  17693. _ACEOF
  17694. cat confdefs.h >>conftest.$ac_ext
  17695. cat >>conftest.$ac_ext <<_ACEOF
  17696. /* end confdefs.h. */
  17697. $ac_includes_default
  17698. int
  17699. main ()
  17700. {
  17701. if ((_Bool *) 0)
  17702. return 0;
  17703. if (sizeof (_Bool))
  17704. return 0;
  17705. ;
  17706. return 0;
  17707. }
  17708. _ACEOF
  17709. rm -f conftest.$ac_objext
  17710. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17711. (eval $ac_compile) 2>conftest.er1
  17712. ac_status=$?
  17713. grep -v '^ *+' conftest.er1 >conftest.err
  17714. rm -f conftest.er1
  17715. cat conftest.err >&5
  17716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17717. (exit $ac_status); } &&
  17718. { ac_try='test -z "$ac_c_werror_flag"
  17719. || test ! -s conftest.err'
  17720. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17721. (eval $ac_try) 2>&5
  17722. ac_status=$?
  17723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17724. (exit $ac_status); }; } &&
  17725. { ac_try='test -s conftest.$ac_objext'
  17726. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17727. (eval $ac_try) 2>&5
  17728. ac_status=$?
  17729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17730. (exit $ac_status); }; }; then
  17731. ac_cv_type__Bool=yes
  17732. else
  17733. echo "$as_me: failed program was:" >&5
  17734. sed 's/^/| /' conftest.$ac_ext >&5
  17735. ac_cv_type__Bool=no
  17736. fi
  17737. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17738. fi
  17739. echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  17740. echo "${ECHO_T}$ac_cv_type__Bool" >&6
  17741. if test $ac_cv_type__Bool = yes; then
  17742. cat >>confdefs.h <<_ACEOF
  17743. #define HAVE__BOOL 1
  17744. _ACEOF
  17745. fi
  17746. if test $ac_cv_header_stdbool_h = yes; then
  17747. cat >>confdefs.h <<\_ACEOF
  17748. #define HAVE_STDBOOL_H 1
  17749. _ACEOF
  17750. fi
  17751. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  17752. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  17753. if test "${ac_cv_type_uid_t+set}" = set; then
  17754. echo $ECHO_N "(cached) $ECHO_C" >&6
  17755. else
  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. #include <sys/types.h>
  17763. _ACEOF
  17764. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17765. $EGREP "uid_t" >/dev/null 2>&1; then
  17766. ac_cv_type_uid_t=yes
  17767. else
  17768. ac_cv_type_uid_t=no
  17769. fi
  17770. rm -f conftest*
  17771. fi
  17772. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  17773. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  17774. if test $ac_cv_type_uid_t = no; then
  17775. cat >>confdefs.h <<\_ACEOF
  17776. #define uid_t int
  17777. _ACEOF
  17778. cat >>confdefs.h <<\_ACEOF
  17779. #define gid_t int
  17780. _ACEOF
  17781. fi
  17782. echo "$as_me:$LINENO: checking for pid_t" >&5
  17783. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  17784. if test "${ac_cv_type_pid_t+set}" = set; then
  17785. echo $ECHO_N "(cached) $ECHO_C" >&6
  17786. else
  17787. cat >conftest.$ac_ext <<_ACEOF
  17788. /* confdefs.h. */
  17789. _ACEOF
  17790. cat confdefs.h >>conftest.$ac_ext
  17791. cat >>conftest.$ac_ext <<_ACEOF
  17792. /* end confdefs.h. */
  17793. $ac_includes_default
  17794. int
  17795. main ()
  17796. {
  17797. if ((pid_t *) 0)
  17798. return 0;
  17799. if (sizeof (pid_t))
  17800. return 0;
  17801. ;
  17802. return 0;
  17803. }
  17804. _ACEOF
  17805. rm -f conftest.$ac_objext
  17806. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17807. (eval $ac_compile) 2>conftest.er1
  17808. ac_status=$?
  17809. grep -v '^ *+' conftest.er1 >conftest.err
  17810. rm -f conftest.er1
  17811. cat conftest.err >&5
  17812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17813. (exit $ac_status); } &&
  17814. { ac_try='test -z "$ac_c_werror_flag"
  17815. || test ! -s conftest.err'
  17816. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17817. (eval $ac_try) 2>&5
  17818. ac_status=$?
  17819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17820. (exit $ac_status); }; } &&
  17821. { ac_try='test -s conftest.$ac_objext'
  17822. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17823. (eval $ac_try) 2>&5
  17824. ac_status=$?
  17825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17826. (exit $ac_status); }; }; then
  17827. ac_cv_type_pid_t=yes
  17828. else
  17829. echo "$as_me: failed program was:" >&5
  17830. sed 's/^/| /' conftest.$ac_ext >&5
  17831. ac_cv_type_pid_t=no
  17832. fi
  17833. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17834. fi
  17835. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  17836. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  17837. if test $ac_cv_type_pid_t = yes; then
  17838. :
  17839. else
  17840. cat >>confdefs.h <<_ACEOF
  17841. #define pid_t int
  17842. _ACEOF
  17843. fi
  17844. echo "$as_me:$LINENO: checking for size_t" >&5
  17845. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  17846. if test "${ac_cv_type_size_t+set}" = set; then
  17847. echo $ECHO_N "(cached) $ECHO_C" >&6
  17848. else
  17849. cat >conftest.$ac_ext <<_ACEOF
  17850. /* confdefs.h. */
  17851. _ACEOF
  17852. cat confdefs.h >>conftest.$ac_ext
  17853. cat >>conftest.$ac_ext <<_ACEOF
  17854. /* end confdefs.h. */
  17855. $ac_includes_default
  17856. int
  17857. main ()
  17858. {
  17859. if ((size_t *) 0)
  17860. return 0;
  17861. if (sizeof (size_t))
  17862. return 0;
  17863. ;
  17864. return 0;
  17865. }
  17866. _ACEOF
  17867. rm -f conftest.$ac_objext
  17868. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17869. (eval $ac_compile) 2>conftest.er1
  17870. ac_status=$?
  17871. grep -v '^ *+' conftest.er1 >conftest.err
  17872. rm -f conftest.er1
  17873. cat conftest.err >&5
  17874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17875. (exit $ac_status); } &&
  17876. { ac_try='test -z "$ac_c_werror_flag"
  17877. || test ! -s conftest.err'
  17878. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17879. (eval $ac_try) 2>&5
  17880. ac_status=$?
  17881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17882. (exit $ac_status); }; } &&
  17883. { ac_try='test -s conftest.$ac_objext'
  17884. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17885. (eval $ac_try) 2>&5
  17886. ac_status=$?
  17887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17888. (exit $ac_status); }; }; then
  17889. ac_cv_type_size_t=yes
  17890. else
  17891. echo "$as_me: failed program was:" >&5
  17892. sed 's/^/| /' conftest.$ac_ext >&5
  17893. ac_cv_type_size_t=no
  17894. fi
  17895. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17896. fi
  17897. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  17898. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  17899. if test $ac_cv_type_size_t = yes; then
  17900. :
  17901. else
  17902. cat >>confdefs.h <<_ACEOF
  17903. #define size_t unsigned
  17904. _ACEOF
  17905. fi
  17906. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  17907. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  17908. if test "${ac_cv_header_time+set}" = set; then
  17909. echo $ECHO_N "(cached) $ECHO_C" >&6
  17910. else
  17911. cat >conftest.$ac_ext <<_ACEOF
  17912. /* confdefs.h. */
  17913. _ACEOF
  17914. cat confdefs.h >>conftest.$ac_ext
  17915. cat >>conftest.$ac_ext <<_ACEOF
  17916. /* end confdefs.h. */
  17917. #include <sys/types.h>
  17918. #include <sys/time.h>
  17919. #include <time.h>
  17920. int
  17921. main ()
  17922. {
  17923. if ((struct tm *) 0)
  17924. return 0;
  17925. ;
  17926. return 0;
  17927. }
  17928. _ACEOF
  17929. rm -f conftest.$ac_objext
  17930. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17931. (eval $ac_compile) 2>conftest.er1
  17932. ac_status=$?
  17933. grep -v '^ *+' conftest.er1 >conftest.err
  17934. rm -f conftest.er1
  17935. cat conftest.err >&5
  17936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17937. (exit $ac_status); } &&
  17938. { ac_try='test -z "$ac_c_werror_flag"
  17939. || test ! -s conftest.err'
  17940. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17941. (eval $ac_try) 2>&5
  17942. ac_status=$?
  17943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17944. (exit $ac_status); }; } &&
  17945. { ac_try='test -s conftest.$ac_objext'
  17946. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17947. (eval $ac_try) 2>&5
  17948. ac_status=$?
  17949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17950. (exit $ac_status); }; }; then
  17951. ac_cv_header_time=yes
  17952. else
  17953. echo "$as_me: failed program was:" >&5
  17954. sed 's/^/| /' conftest.$ac_ext >&5
  17955. ac_cv_header_time=no
  17956. fi
  17957. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17958. fi
  17959. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  17960. echo "${ECHO_T}$ac_cv_header_time" >&6
  17961. if test $ac_cv_header_time = yes; then
  17962. cat >>confdefs.h <<\_ACEOF
  17963. #define TIME_WITH_SYS_TIME 1
  17964. _ACEOF
  17965. fi
  17966. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  17967. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  17968. if test "${ac_cv_struct_tm+set}" = set; then
  17969. echo $ECHO_N "(cached) $ECHO_C" >&6
  17970. else
  17971. cat >conftest.$ac_ext <<_ACEOF
  17972. /* confdefs.h. */
  17973. _ACEOF
  17974. cat confdefs.h >>conftest.$ac_ext
  17975. cat >>conftest.$ac_ext <<_ACEOF
  17976. /* end confdefs.h. */
  17977. #include <sys/types.h>
  17978. #include <time.h>
  17979. int
  17980. main ()
  17981. {
  17982. struct tm *tp; tp->tm_sec;
  17983. ;
  17984. return 0;
  17985. }
  17986. _ACEOF
  17987. rm -f conftest.$ac_objext
  17988. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17989. (eval $ac_compile) 2>conftest.er1
  17990. ac_status=$?
  17991. grep -v '^ *+' conftest.er1 >conftest.err
  17992. rm -f conftest.er1
  17993. cat conftest.err >&5
  17994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17995. (exit $ac_status); } &&
  17996. { ac_try='test -z "$ac_c_werror_flag"
  17997. || test ! -s conftest.err'
  17998. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17999. (eval $ac_try) 2>&5
  18000. ac_status=$?
  18001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18002. (exit $ac_status); }; } &&
  18003. { ac_try='test -s conftest.$ac_objext'
  18004. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18005. (eval $ac_try) 2>&5
  18006. ac_status=$?
  18007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18008. (exit $ac_status); }; }; then
  18009. ac_cv_struct_tm=time.h
  18010. else
  18011. echo "$as_me: failed program was:" >&5
  18012. sed 's/^/| /' conftest.$ac_ext >&5
  18013. ac_cv_struct_tm=sys/time.h
  18014. fi
  18015. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18016. fi
  18017. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  18018. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  18019. if test $ac_cv_struct_tm = sys/time.h; then
  18020. cat >>confdefs.h <<\_ACEOF
  18021. #define TM_IN_SYS_TIME 1
  18022. _ACEOF
  18023. fi
  18024. # Checks for library functions.
  18025. for ac_header in unistd.h
  18026. do
  18027. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18028. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18029. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18030. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18031. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18032. echo $ECHO_N "(cached) $ECHO_C" >&6
  18033. fi
  18034. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18035. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18036. else
  18037. # Is the header compilable?
  18038. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18039. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18040. cat >conftest.$ac_ext <<_ACEOF
  18041. /* confdefs.h. */
  18042. _ACEOF
  18043. cat confdefs.h >>conftest.$ac_ext
  18044. cat >>conftest.$ac_ext <<_ACEOF
  18045. /* end confdefs.h. */
  18046. $ac_includes_default
  18047. #include <$ac_header>
  18048. _ACEOF
  18049. rm -f conftest.$ac_objext
  18050. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18051. (eval $ac_compile) 2>conftest.er1
  18052. ac_status=$?
  18053. grep -v '^ *+' conftest.er1 >conftest.err
  18054. rm -f conftest.er1
  18055. cat conftest.err >&5
  18056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18057. (exit $ac_status); } &&
  18058. { ac_try='test -z "$ac_c_werror_flag"
  18059. || test ! -s conftest.err'
  18060. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18061. (eval $ac_try) 2>&5
  18062. ac_status=$?
  18063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18064. (exit $ac_status); }; } &&
  18065. { ac_try='test -s conftest.$ac_objext'
  18066. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18067. (eval $ac_try) 2>&5
  18068. ac_status=$?
  18069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18070. (exit $ac_status); }; }; then
  18071. ac_header_compiler=yes
  18072. else
  18073. echo "$as_me: failed program was:" >&5
  18074. sed 's/^/| /' conftest.$ac_ext >&5
  18075. ac_header_compiler=no
  18076. fi
  18077. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18078. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18079. echo "${ECHO_T}$ac_header_compiler" >&6
  18080. # Is the header present?
  18081. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18082. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18083. cat >conftest.$ac_ext <<_ACEOF
  18084. /* confdefs.h. */
  18085. _ACEOF
  18086. cat confdefs.h >>conftest.$ac_ext
  18087. cat >>conftest.$ac_ext <<_ACEOF
  18088. /* end confdefs.h. */
  18089. #include <$ac_header>
  18090. _ACEOF
  18091. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18092. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18093. ac_status=$?
  18094. grep -v '^ *+' conftest.er1 >conftest.err
  18095. rm -f conftest.er1
  18096. cat conftest.err >&5
  18097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18098. (exit $ac_status); } >/dev/null; then
  18099. if test -s conftest.err; then
  18100. ac_cpp_err=$ac_c_preproc_warn_flag
  18101. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18102. else
  18103. ac_cpp_err=
  18104. fi
  18105. else
  18106. ac_cpp_err=yes
  18107. fi
  18108. if test -z "$ac_cpp_err"; then
  18109. ac_header_preproc=yes
  18110. else
  18111. echo "$as_me: failed program was:" >&5
  18112. sed 's/^/| /' conftest.$ac_ext >&5
  18113. ac_header_preproc=no
  18114. fi
  18115. rm -f conftest.err conftest.$ac_ext
  18116. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18117. echo "${ECHO_T}$ac_header_preproc" >&6
  18118. # So? What about this header?
  18119. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18120. yes:no: )
  18121. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18122. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18123. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18124. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18125. ac_header_preproc=yes
  18126. ;;
  18127. no:yes:* )
  18128. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18129. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18130. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18131. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18132. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18133. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18134. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18135. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18136. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18137. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18138. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18139. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18140. (
  18141. cat <<\_ASBOX
  18142. ## ------------------------------------------ ##
  18143. ## Report this to http://bugzilla.redhat.com/ ##
  18144. ## ------------------------------------------ ##
  18145. _ASBOX
  18146. ) |
  18147. sed "s/^/$as_me: WARNING: /" >&2
  18148. ;;
  18149. esac
  18150. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18151. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18152. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18153. echo $ECHO_N "(cached) $ECHO_C" >&6
  18154. else
  18155. eval "$as_ac_Header=\$ac_header_preproc"
  18156. fi
  18157. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18158. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18159. fi
  18160. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18161. cat >>confdefs.h <<_ACEOF
  18162. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18163. _ACEOF
  18164. fi
  18165. done
  18166. echo "$as_me:$LINENO: checking for working chown" >&5
  18167. echo $ECHO_N "checking for working chown... $ECHO_C" >&6
  18168. if test "${ac_cv_func_chown_works+set}" = set; then
  18169. echo $ECHO_N "(cached) $ECHO_C" >&6
  18170. else
  18171. if test "$cross_compiling" = yes; then
  18172. ac_cv_func_chown_works=no
  18173. else
  18174. cat >conftest.$ac_ext <<_ACEOF
  18175. /* confdefs.h. */
  18176. _ACEOF
  18177. cat confdefs.h >>conftest.$ac_ext
  18178. cat >>conftest.$ac_ext <<_ACEOF
  18179. /* end confdefs.h. */
  18180. $ac_includes_default
  18181. #include <fcntl.h>
  18182. int
  18183. main ()
  18184. {
  18185. char *f = "conftest.chown";
  18186. struct stat before, after;
  18187. if (creat (f, 0600) < 0)
  18188. exit (1);
  18189. if (stat (f, &before) < 0)
  18190. exit (1);
  18191. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  18192. exit (1);
  18193. if (stat (f, &after) < 0)
  18194. exit (1);
  18195. exit ((before.st_uid == after.st_uid
  18196. && before.st_gid == after.st_gid) ? 0 : 1);
  18197. ;
  18198. return 0;
  18199. }
  18200. _ACEOF
  18201. rm -f conftest$ac_exeext
  18202. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18203. (eval $ac_link) 2>&5
  18204. ac_status=$?
  18205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18206. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18207. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18208. (eval $ac_try) 2>&5
  18209. ac_status=$?
  18210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18211. (exit $ac_status); }; }; then
  18212. ac_cv_func_chown_works=yes
  18213. else
  18214. echo "$as_me: program exited with status $ac_status" >&5
  18215. echo "$as_me: failed program was:" >&5
  18216. sed 's/^/| /' conftest.$ac_ext >&5
  18217. ( exit $ac_status )
  18218. ac_cv_func_chown_works=no
  18219. fi
  18220. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18221. fi
  18222. rm -f conftest.chown
  18223. fi
  18224. echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
  18225. echo "${ECHO_T}$ac_cv_func_chown_works" >&6
  18226. if test $ac_cv_func_chown_works = yes; then
  18227. cat >>confdefs.h <<\_ACEOF
  18228. #define HAVE_CHOWN 1
  18229. _ACEOF
  18230. fi
  18231. echo "$as_me:$LINENO: checking whether closedir returns void" >&5
  18232. echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
  18233. if test "${ac_cv_func_closedir_void+set}" = set; then
  18234. echo $ECHO_N "(cached) $ECHO_C" >&6
  18235. else
  18236. if test "$cross_compiling" = yes; then
  18237. ac_cv_func_closedir_void=yes
  18238. else
  18239. cat >conftest.$ac_ext <<_ACEOF
  18240. /* confdefs.h. */
  18241. _ACEOF
  18242. cat confdefs.h >>conftest.$ac_ext
  18243. cat >>conftest.$ac_ext <<_ACEOF
  18244. /* end confdefs.h. */
  18245. $ac_includes_default
  18246. #include <$ac_header_dirent>
  18247. #ifndef __cplusplus
  18248. int closedir ();
  18249. #endif
  18250. int
  18251. main ()
  18252. {
  18253. exit (closedir (opendir (".")) != 0);
  18254. ;
  18255. return 0;
  18256. }
  18257. _ACEOF
  18258. rm -f conftest$ac_exeext
  18259. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18260. (eval $ac_link) 2>&5
  18261. ac_status=$?
  18262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18263. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18264. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18265. (eval $ac_try) 2>&5
  18266. ac_status=$?
  18267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18268. (exit $ac_status); }; }; then
  18269. ac_cv_func_closedir_void=no
  18270. else
  18271. echo "$as_me: program exited with status $ac_status" >&5
  18272. echo "$as_me: failed program was:" >&5
  18273. sed 's/^/| /' conftest.$ac_ext >&5
  18274. ( exit $ac_status )
  18275. ac_cv_func_closedir_void=yes
  18276. fi
  18277. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18278. fi
  18279. fi
  18280. echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
  18281. echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
  18282. if test $ac_cv_func_closedir_void = yes; then
  18283. cat >>confdefs.h <<\_ACEOF
  18284. #define CLOSEDIR_VOID 1
  18285. _ACEOF
  18286. fi
  18287. echo "$as_me:$LINENO: checking for error_at_line" >&5
  18288. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
  18289. if test "${ac_cv_lib_error_at_line+set}" = set; then
  18290. echo $ECHO_N "(cached) $ECHO_C" >&6
  18291. else
  18292. cat >conftest.$ac_ext <<_ACEOF
  18293. /* confdefs.h. */
  18294. _ACEOF
  18295. cat confdefs.h >>conftest.$ac_ext
  18296. cat >>conftest.$ac_ext <<_ACEOF
  18297. /* end confdefs.h. */
  18298. $ac_includes_default
  18299. int
  18300. main ()
  18301. {
  18302. error_at_line (0, 0, "", 0, "");
  18303. ;
  18304. return 0;
  18305. }
  18306. _ACEOF
  18307. rm -f conftest.$ac_objext conftest$ac_exeext
  18308. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18309. (eval $ac_link) 2>conftest.er1
  18310. ac_status=$?
  18311. grep -v '^ *+' conftest.er1 >conftest.err
  18312. rm -f conftest.er1
  18313. cat conftest.err >&5
  18314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18315. (exit $ac_status); } &&
  18316. { ac_try='test -z "$ac_c_werror_flag"
  18317. || test ! -s conftest.err'
  18318. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18319. (eval $ac_try) 2>&5
  18320. ac_status=$?
  18321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18322. (exit $ac_status); }; } &&
  18323. { ac_try='test -s conftest$ac_exeext'
  18324. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18325. (eval $ac_try) 2>&5
  18326. ac_status=$?
  18327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18328. (exit $ac_status); }; }; then
  18329. ac_cv_lib_error_at_line=yes
  18330. else
  18331. echo "$as_me: failed program was:" >&5
  18332. sed 's/^/| /' conftest.$ac_ext >&5
  18333. ac_cv_lib_error_at_line=no
  18334. fi
  18335. rm -f conftest.err conftest.$ac_objext \
  18336. conftest$ac_exeext conftest.$ac_ext
  18337. fi
  18338. echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  18339. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
  18340. if test $ac_cv_lib_error_at_line = no; then
  18341. case $LIBOBJS in
  18342. "error.$ac_objext" | \
  18343. *" error.$ac_objext" | \
  18344. "error.$ac_objext "* | \
  18345. *" error.$ac_objext "* ) ;;
  18346. *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
  18347. esac
  18348. fi
  18349. for ac_header in unistd.h vfork.h
  18350. do
  18351. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18352. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18353. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18354. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18355. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18356. echo $ECHO_N "(cached) $ECHO_C" >&6
  18357. fi
  18358. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18359. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18360. else
  18361. # Is the header compilable?
  18362. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18363. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18364. cat >conftest.$ac_ext <<_ACEOF
  18365. /* confdefs.h. */
  18366. _ACEOF
  18367. cat confdefs.h >>conftest.$ac_ext
  18368. cat >>conftest.$ac_ext <<_ACEOF
  18369. /* end confdefs.h. */
  18370. $ac_includes_default
  18371. #include <$ac_header>
  18372. _ACEOF
  18373. rm -f conftest.$ac_objext
  18374. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18375. (eval $ac_compile) 2>conftest.er1
  18376. ac_status=$?
  18377. grep -v '^ *+' conftest.er1 >conftest.err
  18378. rm -f conftest.er1
  18379. cat conftest.err >&5
  18380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18381. (exit $ac_status); } &&
  18382. { ac_try='test -z "$ac_c_werror_flag"
  18383. || test ! -s conftest.err'
  18384. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18385. (eval $ac_try) 2>&5
  18386. ac_status=$?
  18387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18388. (exit $ac_status); }; } &&
  18389. { ac_try='test -s conftest.$ac_objext'
  18390. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18391. (eval $ac_try) 2>&5
  18392. ac_status=$?
  18393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18394. (exit $ac_status); }; }; then
  18395. ac_header_compiler=yes
  18396. else
  18397. echo "$as_me: failed program was:" >&5
  18398. sed 's/^/| /' conftest.$ac_ext >&5
  18399. ac_header_compiler=no
  18400. fi
  18401. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18402. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18403. echo "${ECHO_T}$ac_header_compiler" >&6
  18404. # Is the header present?
  18405. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18406. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18407. cat >conftest.$ac_ext <<_ACEOF
  18408. /* confdefs.h. */
  18409. _ACEOF
  18410. cat confdefs.h >>conftest.$ac_ext
  18411. cat >>conftest.$ac_ext <<_ACEOF
  18412. /* end confdefs.h. */
  18413. #include <$ac_header>
  18414. _ACEOF
  18415. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18416. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18417. ac_status=$?
  18418. grep -v '^ *+' conftest.er1 >conftest.err
  18419. rm -f conftest.er1
  18420. cat conftest.err >&5
  18421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18422. (exit $ac_status); } >/dev/null; then
  18423. if test -s conftest.err; then
  18424. ac_cpp_err=$ac_c_preproc_warn_flag
  18425. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18426. else
  18427. ac_cpp_err=
  18428. fi
  18429. else
  18430. ac_cpp_err=yes
  18431. fi
  18432. if test -z "$ac_cpp_err"; then
  18433. ac_header_preproc=yes
  18434. else
  18435. echo "$as_me: failed program was:" >&5
  18436. sed 's/^/| /' conftest.$ac_ext >&5
  18437. ac_header_preproc=no
  18438. fi
  18439. rm -f conftest.err conftest.$ac_ext
  18440. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18441. echo "${ECHO_T}$ac_header_preproc" >&6
  18442. # So? What about this header?
  18443. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18444. yes:no: )
  18445. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18446. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18447. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18448. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18449. ac_header_preproc=yes
  18450. ;;
  18451. no:yes:* )
  18452. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18453. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18454. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18455. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18456. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18457. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18458. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18459. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18460. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18461. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18462. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18463. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18464. (
  18465. cat <<\_ASBOX
  18466. ## ------------------------------------------ ##
  18467. ## Report this to http://bugzilla.redhat.com/ ##
  18468. ## ------------------------------------------ ##
  18469. _ASBOX
  18470. ) |
  18471. sed "s/^/$as_me: WARNING: /" >&2
  18472. ;;
  18473. esac
  18474. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18475. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18476. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18477. echo $ECHO_N "(cached) $ECHO_C" >&6
  18478. else
  18479. eval "$as_ac_Header=\$ac_header_preproc"
  18480. fi
  18481. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18482. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18483. fi
  18484. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18485. cat >>confdefs.h <<_ACEOF
  18486. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18487. _ACEOF
  18488. fi
  18489. done
  18490. for ac_func in fork vfork
  18491. do
  18492. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18493. echo "$as_me:$LINENO: checking for $ac_func" >&5
  18494. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  18495. if eval "test \"\${$as_ac_var+set}\" = set"; then
  18496. echo $ECHO_N "(cached) $ECHO_C" >&6
  18497. else
  18498. cat >conftest.$ac_ext <<_ACEOF
  18499. /* confdefs.h. */
  18500. _ACEOF
  18501. cat confdefs.h >>conftest.$ac_ext
  18502. cat >>conftest.$ac_ext <<_ACEOF
  18503. /* end confdefs.h. */
  18504. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18505. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18506. #define $ac_func innocuous_$ac_func
  18507. /* System header to define __stub macros and hopefully few prototypes,
  18508. which can conflict with char $ac_func (); below.
  18509. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18510. <limits.h> exists even on freestanding compilers. */
  18511. #ifdef __STDC__
  18512. # include <limits.h>
  18513. #else
  18514. # include <assert.h>
  18515. #endif
  18516. #undef $ac_func
  18517. /* Override any gcc2 internal prototype to avoid an error. */
  18518. #ifdef __cplusplus
  18519. extern "C"
  18520. {
  18521. #endif
  18522. /* We use char because int might match the return type of a gcc2
  18523. builtin and then its argument prototype would still apply. */
  18524. char $ac_func ();
  18525. /* The GNU C library defines this for functions which it implements
  18526. to always fail with ENOSYS. Some functions are actually named
  18527. something starting with __ and the normal name is an alias. */
  18528. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  18529. choke me
  18530. #else
  18531. char (*f) () = $ac_func;
  18532. #endif
  18533. #ifdef __cplusplus
  18534. }
  18535. #endif
  18536. int
  18537. main ()
  18538. {
  18539. return f != $ac_func;
  18540. ;
  18541. return 0;
  18542. }
  18543. _ACEOF
  18544. rm -f conftest.$ac_objext conftest$ac_exeext
  18545. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18546. (eval $ac_link) 2>conftest.er1
  18547. ac_status=$?
  18548. grep -v '^ *+' conftest.er1 >conftest.err
  18549. rm -f conftest.er1
  18550. cat conftest.err >&5
  18551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18552. (exit $ac_status); } &&
  18553. { ac_try='test -z "$ac_c_werror_flag"
  18554. || test ! -s conftest.err'
  18555. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18556. (eval $ac_try) 2>&5
  18557. ac_status=$?
  18558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18559. (exit $ac_status); }; } &&
  18560. { ac_try='test -s conftest$ac_exeext'
  18561. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18562. (eval $ac_try) 2>&5
  18563. ac_status=$?
  18564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18565. (exit $ac_status); }; }; then
  18566. eval "$as_ac_var=yes"
  18567. else
  18568. echo "$as_me: failed program was:" >&5
  18569. sed 's/^/| /' conftest.$ac_ext >&5
  18570. eval "$as_ac_var=no"
  18571. fi
  18572. rm -f conftest.err conftest.$ac_objext \
  18573. conftest$ac_exeext conftest.$ac_ext
  18574. fi
  18575. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  18576. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  18577. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18578. cat >>confdefs.h <<_ACEOF
  18579. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18580. _ACEOF
  18581. fi
  18582. done
  18583. if test "x$ac_cv_func_fork" = xyes; then
  18584. echo "$as_me:$LINENO: checking for working fork" >&5
  18585. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  18586. if test "${ac_cv_func_fork_works+set}" = set; then
  18587. echo $ECHO_N "(cached) $ECHO_C" >&6
  18588. else
  18589. if test "$cross_compiling" = yes; then
  18590. ac_cv_func_fork_works=cross
  18591. else
  18592. cat >conftest.$ac_ext <<_ACEOF
  18593. /* By Ruediger Kuhlmann. */
  18594. #include <sys/types.h>
  18595. #if HAVE_UNISTD_H
  18596. # include <unistd.h>
  18597. #endif
  18598. /* Some systems only have a dummy stub for fork() */
  18599. int main ()
  18600. {
  18601. if (fork() < 0)
  18602. exit (1);
  18603. exit (0);
  18604. }
  18605. _ACEOF
  18606. rm -f conftest$ac_exeext
  18607. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18608. (eval $ac_link) 2>&5
  18609. ac_status=$?
  18610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18611. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18612. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18613. (eval $ac_try) 2>&5
  18614. ac_status=$?
  18615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18616. (exit $ac_status); }; }; then
  18617. ac_cv_func_fork_works=yes
  18618. else
  18619. echo "$as_me: program exited with status $ac_status" >&5
  18620. echo "$as_me: failed program was:" >&5
  18621. sed 's/^/| /' conftest.$ac_ext >&5
  18622. ( exit $ac_status )
  18623. ac_cv_func_fork_works=no
  18624. fi
  18625. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18626. fi
  18627. fi
  18628. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  18629. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  18630. else
  18631. ac_cv_func_fork_works=$ac_cv_func_fork
  18632. fi
  18633. if test "x$ac_cv_func_fork_works" = xcross; then
  18634. case $host in
  18635. *-*-amigaos* | *-*-msdosdjgpp*)
  18636. # Override, as these systems have only a dummy fork() stub
  18637. ac_cv_func_fork_works=no
  18638. ;;
  18639. *)
  18640. ac_cv_func_fork_works=yes
  18641. ;;
  18642. esac
  18643. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  18644. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  18645. fi
  18646. ac_cv_func_vfork_works=$ac_cv_func_vfork
  18647. if test "x$ac_cv_func_vfork" = xyes; then
  18648. echo "$as_me:$LINENO: checking for working vfork" >&5
  18649. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  18650. if test "${ac_cv_func_vfork_works+set}" = set; then
  18651. echo $ECHO_N "(cached) $ECHO_C" >&6
  18652. else
  18653. if test "$cross_compiling" = yes; then
  18654. ac_cv_func_vfork_works=cross
  18655. else
  18656. cat >conftest.$ac_ext <<_ACEOF
  18657. /* confdefs.h. */
  18658. _ACEOF
  18659. cat confdefs.h >>conftest.$ac_ext
  18660. cat >>conftest.$ac_ext <<_ACEOF
  18661. /* end confdefs.h. */
  18662. /* Thanks to Paul Eggert for this test. */
  18663. #include <stdio.h>
  18664. #include <stdlib.h>
  18665. #include <sys/types.h>
  18666. #include <sys/stat.h>
  18667. #include <sys/wait.h>
  18668. #if HAVE_UNISTD_H
  18669. # include <unistd.h>
  18670. #endif
  18671. #if HAVE_VFORK_H
  18672. # include <vfork.h>
  18673. #endif
  18674. /* On some sparc systems, changes by the child to local and incoming
  18675. argument registers are propagated back to the parent. The compiler
  18676. is told about this with #include <vfork.h>, but some compilers
  18677. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  18678. static variable whose address is put into a register that is
  18679. clobbered by the vfork. */
  18680. static void
  18681. #ifdef __cplusplus
  18682. sparc_address_test (int arg)
  18683. # else
  18684. sparc_address_test (arg) int arg;
  18685. #endif
  18686. {
  18687. static pid_t child;
  18688. if (!child) {
  18689. child = vfork ();
  18690. if (child < 0) {
  18691. perror ("vfork");
  18692. _exit(2);
  18693. }
  18694. if (!child) {
  18695. arg = getpid();
  18696. write(-1, "", 0);
  18697. _exit (arg);
  18698. }
  18699. }
  18700. }
  18701. int
  18702. main ()
  18703. {
  18704. pid_t parent = getpid ();
  18705. pid_t child;
  18706. sparc_address_test (0);
  18707. child = vfork ();
  18708. if (child == 0) {
  18709. /* Here is another test for sparc vfork register problems. This
  18710. test uses lots of local variables, at least as many local
  18711. variables as main has allocated so far including compiler
  18712. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  18713. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  18714. reuse the register of parent for one of the local variables,
  18715. since it will think that parent can't possibly be used any more
  18716. in this routine. Assigning to the local variable will thus
  18717. munge parent in the parent process. */
  18718. pid_t
  18719. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  18720. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  18721. /* Convince the compiler that p..p7 are live; otherwise, it might
  18722. use the same hardware register for all 8 local variables. */
  18723. if (p != p1 || p != p2 || p != p3 || p != p4
  18724. || p != p5 || p != p6 || p != p7)
  18725. _exit(1);
  18726. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  18727. from child file descriptors. If the child closes a descriptor
  18728. before it execs or exits, this munges the parent's descriptor
  18729. as well. Test for this by closing stdout in the child. */
  18730. _exit(close(fileno(stdout)) != 0);
  18731. } else {
  18732. int status;
  18733. struct stat st;
  18734. while (wait(&status) != child)
  18735. ;
  18736. exit(
  18737. /* Was there some problem with vforking? */
  18738. child < 0
  18739. /* Did the child fail? (This shouldn't happen.) */
  18740. || status
  18741. /* Did the vfork/compiler bug occur? */
  18742. || parent != getpid()
  18743. /* Did the file descriptor bug occur? */
  18744. || fstat(fileno(stdout), &st) != 0
  18745. );
  18746. }
  18747. }
  18748. _ACEOF
  18749. rm -f conftest$ac_exeext
  18750. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18751. (eval $ac_link) 2>&5
  18752. ac_status=$?
  18753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18754. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18755. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18756. (eval $ac_try) 2>&5
  18757. ac_status=$?
  18758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18759. (exit $ac_status); }; }; then
  18760. ac_cv_func_vfork_works=yes
  18761. else
  18762. echo "$as_me: program exited with status $ac_status" >&5
  18763. echo "$as_me: failed program was:" >&5
  18764. sed 's/^/| /' conftest.$ac_ext >&5
  18765. ( exit $ac_status )
  18766. ac_cv_func_vfork_works=no
  18767. fi
  18768. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18769. fi
  18770. fi
  18771. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  18772. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  18773. fi;
  18774. if test "x$ac_cv_func_fork_works" = xcross; then
  18775. ac_cv_func_vfork_works=$ac_cv_func_vfork
  18776. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  18777. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  18778. fi
  18779. if test "x$ac_cv_func_vfork_works" = xyes; then
  18780. cat >>confdefs.h <<\_ACEOF
  18781. #define HAVE_WORKING_VFORK 1
  18782. _ACEOF
  18783. else
  18784. cat >>confdefs.h <<\_ACEOF
  18785. #define vfork fork
  18786. _ACEOF
  18787. fi
  18788. if test "x$ac_cv_func_fork_works" = xyes; then
  18789. cat >>confdefs.h <<\_ACEOF
  18790. #define HAVE_WORKING_FORK 1
  18791. _ACEOF
  18792. fi
  18793. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18794. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  18795. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18796. echo $ECHO_N "(cached) $ECHO_C" >&6
  18797. else
  18798. rm -f conftest.sym conftest.file
  18799. echo >conftest.file
  18800. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18801. if test "$cross_compiling" = yes; then
  18802. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18803. else
  18804. cat >conftest.$ac_ext <<_ACEOF
  18805. /* confdefs.h. */
  18806. _ACEOF
  18807. cat confdefs.h >>conftest.$ac_ext
  18808. cat >>conftest.$ac_ext <<_ACEOF
  18809. /* end confdefs.h. */
  18810. $ac_includes_default
  18811. int
  18812. main ()
  18813. {
  18814. struct stat sbuf;
  18815. /* Linux will dereference the symlink and fail.
  18816. That is better in the sense that it means we will not
  18817. have to compile and use the lstat wrapper. */
  18818. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  18819. ;
  18820. return 0;
  18821. }
  18822. _ACEOF
  18823. rm -f conftest$ac_exeext
  18824. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18825. (eval $ac_link) 2>&5
  18826. ac_status=$?
  18827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18828. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18829. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18830. (eval $ac_try) 2>&5
  18831. ac_status=$?
  18832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18833. (exit $ac_status); }; }; then
  18834. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18835. else
  18836. echo "$as_me: program exited with status $ac_status" >&5
  18837. echo "$as_me: failed program was:" >&5
  18838. sed 's/^/| /' conftest.$ac_ext >&5
  18839. ( exit $ac_status )
  18840. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18841. fi
  18842. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18843. fi
  18844. else
  18845. # If the `ln -s' command failed, then we probably don't even
  18846. # have an lstat function.
  18847. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18848. fi
  18849. rm -f conftest.sym conftest.file
  18850. fi
  18851. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18852. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  18853. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18854. cat >>confdefs.h <<_ACEOF
  18855. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18856. _ACEOF
  18857. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18858. case $LIBOBJS in
  18859. "lstat.$ac_objext" | \
  18860. *" lstat.$ac_objext" | \
  18861. "lstat.$ac_objext "* | \
  18862. *" lstat.$ac_objext "* ) ;;
  18863. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18864. esac
  18865. fi
  18866. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  18867. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  18868. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  18869. echo $ECHO_N "(cached) $ECHO_C" >&6
  18870. else
  18871. if test "$cross_compiling" = yes; then
  18872. ac_cv_func_lstat_empty_string_bug=yes
  18873. else
  18874. cat >conftest.$ac_ext <<_ACEOF
  18875. /* confdefs.h. */
  18876. _ACEOF
  18877. cat confdefs.h >>conftest.$ac_ext
  18878. cat >>conftest.$ac_ext <<_ACEOF
  18879. /* end confdefs.h. */
  18880. $ac_includes_default
  18881. int
  18882. main ()
  18883. {
  18884. struct stat sbuf;
  18885. exit (lstat ("", &sbuf) ? 1 : 0);
  18886. ;
  18887. return 0;
  18888. }
  18889. _ACEOF
  18890. rm -f conftest$ac_exeext
  18891. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18892. (eval $ac_link) 2>&5
  18893. ac_status=$?
  18894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18895. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18896. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18897. (eval $ac_try) 2>&5
  18898. ac_status=$?
  18899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18900. (exit $ac_status); }; }; then
  18901. ac_cv_func_lstat_empty_string_bug=yes
  18902. else
  18903. echo "$as_me: program exited with status $ac_status" >&5
  18904. echo "$as_me: failed program was:" >&5
  18905. sed 's/^/| /' conftest.$ac_ext >&5
  18906. ( exit $ac_status )
  18907. ac_cv_func_lstat_empty_string_bug=no
  18908. fi
  18909. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18910. fi
  18911. fi
  18912. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  18913. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  18914. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  18915. case $LIBOBJS in
  18916. "lstat.$ac_objext" | \
  18917. *" lstat.$ac_objext" | \
  18918. "lstat.$ac_objext "* | \
  18919. *" lstat.$ac_objext "* ) ;;
  18920. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18921. esac
  18922. cat >>confdefs.h <<_ACEOF
  18923. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  18924. _ACEOF
  18925. fi
  18926. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18927. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  18928. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18929. echo $ECHO_N "(cached) $ECHO_C" >&6
  18930. else
  18931. rm -f conftest.sym conftest.file
  18932. echo >conftest.file
  18933. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18934. if test "$cross_compiling" = yes; then
  18935. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18936. else
  18937. cat >conftest.$ac_ext <<_ACEOF
  18938. /* confdefs.h. */
  18939. _ACEOF
  18940. cat confdefs.h >>conftest.$ac_ext
  18941. cat >>conftest.$ac_ext <<_ACEOF
  18942. /* end confdefs.h. */
  18943. $ac_includes_default
  18944. int
  18945. main ()
  18946. {
  18947. struct stat sbuf;
  18948. /* Linux will dereference the symlink and fail.
  18949. That is better in the sense that it means we will not
  18950. have to compile and use the lstat wrapper. */
  18951. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  18952. ;
  18953. return 0;
  18954. }
  18955. _ACEOF
  18956. rm -f conftest$ac_exeext
  18957. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18958. (eval $ac_link) 2>&5
  18959. ac_status=$?
  18960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18961. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18962. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18963. (eval $ac_try) 2>&5
  18964. ac_status=$?
  18965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18966. (exit $ac_status); }; }; then
  18967. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18968. else
  18969. echo "$as_me: program exited with status $ac_status" >&5
  18970. echo "$as_me: failed program was:" >&5
  18971. sed 's/^/| /' conftest.$ac_ext >&5
  18972. ( exit $ac_status )
  18973. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18974. fi
  18975. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18976. fi
  18977. else
  18978. # If the `ln -s' command failed, then we probably don't even
  18979. # have an lstat function.
  18980. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18981. fi
  18982. rm -f conftest.sym conftest.file
  18983. fi
  18984. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18985. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  18986. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18987. cat >>confdefs.h <<_ACEOF
  18988. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18989. _ACEOF
  18990. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18991. case $LIBOBJS in
  18992. "lstat.$ac_objext" | \
  18993. *" lstat.$ac_objext" | \
  18994. "lstat.$ac_objext "* | \
  18995. *" lstat.$ac_objext "* ) ;;
  18996. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18997. esac
  18998. fi
  18999. for ac_header in stdlib.h
  19000. do
  19001. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19002. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19003. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19004. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19005. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19006. echo $ECHO_N "(cached) $ECHO_C" >&6
  19007. fi
  19008. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19009. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19010. else
  19011. # Is the header compilable?
  19012. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19013. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  19014. cat >conftest.$ac_ext <<_ACEOF
  19015. /* confdefs.h. */
  19016. _ACEOF
  19017. cat confdefs.h >>conftest.$ac_ext
  19018. cat >>conftest.$ac_ext <<_ACEOF
  19019. /* end confdefs.h. */
  19020. $ac_includes_default
  19021. #include <$ac_header>
  19022. _ACEOF
  19023. rm -f conftest.$ac_objext
  19024. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19025. (eval $ac_compile) 2>conftest.er1
  19026. ac_status=$?
  19027. grep -v '^ *+' conftest.er1 >conftest.err
  19028. rm -f conftest.er1
  19029. cat conftest.err >&5
  19030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19031. (exit $ac_status); } &&
  19032. { ac_try='test -z "$ac_c_werror_flag"
  19033. || test ! -s conftest.err'
  19034. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19035. (eval $ac_try) 2>&5
  19036. ac_status=$?
  19037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19038. (exit $ac_status); }; } &&
  19039. { ac_try='test -s conftest.$ac_objext'
  19040. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19041. (eval $ac_try) 2>&5
  19042. ac_status=$?
  19043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19044. (exit $ac_status); }; }; then
  19045. ac_header_compiler=yes
  19046. else
  19047. echo "$as_me: failed program was:" >&5
  19048. sed 's/^/| /' conftest.$ac_ext >&5
  19049. ac_header_compiler=no
  19050. fi
  19051. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19052. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19053. echo "${ECHO_T}$ac_header_compiler" >&6
  19054. # Is the header present?
  19055. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19056. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  19057. cat >conftest.$ac_ext <<_ACEOF
  19058. /* confdefs.h. */
  19059. _ACEOF
  19060. cat confdefs.h >>conftest.$ac_ext
  19061. cat >>conftest.$ac_ext <<_ACEOF
  19062. /* end confdefs.h. */
  19063. #include <$ac_header>
  19064. _ACEOF
  19065. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  19066. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  19067. ac_status=$?
  19068. grep -v '^ *+' conftest.er1 >conftest.err
  19069. rm -f conftest.er1
  19070. cat conftest.err >&5
  19071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19072. (exit $ac_status); } >/dev/null; then
  19073. if test -s conftest.err; then
  19074. ac_cpp_err=$ac_c_preproc_warn_flag
  19075. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19076. else
  19077. ac_cpp_err=
  19078. fi
  19079. else
  19080. ac_cpp_err=yes
  19081. fi
  19082. if test -z "$ac_cpp_err"; then
  19083. ac_header_preproc=yes
  19084. else
  19085. echo "$as_me: failed program was:" >&5
  19086. sed 's/^/| /' conftest.$ac_ext >&5
  19087. ac_header_preproc=no
  19088. fi
  19089. rm -f conftest.err conftest.$ac_ext
  19090. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19091. echo "${ECHO_T}$ac_header_preproc" >&6
  19092. # So? What about this header?
  19093. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19094. yes:no: )
  19095. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19096. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19097. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19098. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19099. ac_header_preproc=yes
  19100. ;;
  19101. no:yes:* )
  19102. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19103. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19104. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19105. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19106. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19107. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19108. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19109. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19110. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19111. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19112. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19113. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19114. (
  19115. cat <<\_ASBOX
  19116. ## ------------------------------------------ ##
  19117. ## Report this to http://bugzilla.redhat.com/ ##
  19118. ## ------------------------------------------ ##
  19119. _ASBOX
  19120. ) |
  19121. sed "s/^/$as_me: WARNING: /" >&2
  19122. ;;
  19123. esac
  19124. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19125. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19126. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19127. echo $ECHO_N "(cached) $ECHO_C" >&6
  19128. else
  19129. eval "$as_ac_Header=\$ac_header_preproc"
  19130. fi
  19131. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19132. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19133. fi
  19134. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19135. cat >>confdefs.h <<_ACEOF
  19136. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19137. _ACEOF
  19138. fi
  19139. done
  19140. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  19141. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  19142. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  19143. echo $ECHO_N "(cached) $ECHO_C" >&6
  19144. else
  19145. if test "$cross_compiling" = yes; then
  19146. ac_cv_func_malloc_0_nonnull=no
  19147. else
  19148. cat >conftest.$ac_ext <<_ACEOF
  19149. /* confdefs.h. */
  19150. _ACEOF
  19151. cat confdefs.h >>conftest.$ac_ext
  19152. cat >>conftest.$ac_ext <<_ACEOF
  19153. /* end confdefs.h. */
  19154. #if STDC_HEADERS || HAVE_STDLIB_H
  19155. # include <stdlib.h>
  19156. #else
  19157. char *malloc ();
  19158. #endif
  19159. int
  19160. main ()
  19161. {
  19162. exit (malloc (0) ? 0 : 1);
  19163. ;
  19164. return 0;
  19165. }
  19166. _ACEOF
  19167. rm -f conftest$ac_exeext
  19168. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19169. (eval $ac_link) 2>&5
  19170. ac_status=$?
  19171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19172. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19173. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19174. (eval $ac_try) 2>&5
  19175. ac_status=$?
  19176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19177. (exit $ac_status); }; }; then
  19178. ac_cv_func_malloc_0_nonnull=yes
  19179. else
  19180. echo "$as_me: program exited with status $ac_status" >&5
  19181. echo "$as_me: failed program was:" >&5
  19182. sed 's/^/| /' conftest.$ac_ext >&5
  19183. ( exit $ac_status )
  19184. ac_cv_func_malloc_0_nonnull=no
  19185. fi
  19186. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19187. fi
  19188. fi
  19189. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  19190. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  19191. if test $ac_cv_func_malloc_0_nonnull = yes; then
  19192. cat >>confdefs.h <<\_ACEOF
  19193. #define HAVE_MALLOC 1
  19194. _ACEOF
  19195. else
  19196. cat >>confdefs.h <<\_ACEOF
  19197. #define HAVE_MALLOC 0
  19198. _ACEOF
  19199. case $LIBOBJS in
  19200. "malloc.$ac_objext" | \
  19201. *" malloc.$ac_objext" | \
  19202. "malloc.$ac_objext "* | \
  19203. *" malloc.$ac_objext "* ) ;;
  19204. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  19205. esac
  19206. cat >>confdefs.h <<\_ACEOF
  19207. #define malloc rpl_malloc
  19208. _ACEOF
  19209. fi
  19210. echo "$as_me:$LINENO: checking for working memcmp" >&5
  19211. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  19212. if test "${ac_cv_func_memcmp_working+set}" = set; then
  19213. echo $ECHO_N "(cached) $ECHO_C" >&6
  19214. else
  19215. if test "$cross_compiling" = yes; then
  19216. ac_cv_func_memcmp_working=no
  19217. else
  19218. cat >conftest.$ac_ext <<_ACEOF
  19219. /* confdefs.h. */
  19220. _ACEOF
  19221. cat confdefs.h >>conftest.$ac_ext
  19222. cat >>conftest.$ac_ext <<_ACEOF
  19223. /* end confdefs.h. */
  19224. $ac_includes_default
  19225. int
  19226. main ()
  19227. {
  19228. /* Some versions of memcmp are not 8-bit clean. */
  19229. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  19230. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  19231. exit (1);
  19232. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  19233. or more and with at least one buffer not starting on a 4-byte boundary.
  19234. William Lewis provided this test program. */
  19235. {
  19236. char foo[21];
  19237. char bar[21];
  19238. int i;
  19239. for (i = 0; i < 4; i++)
  19240. {
  19241. char *a = foo + i;
  19242. char *b = bar + i;
  19243. strcpy (a, "--------01111111");
  19244. strcpy (b, "--------10000000");
  19245. if (memcmp (a, b, 16) >= 0)
  19246. exit (1);
  19247. }
  19248. exit (0);
  19249. }
  19250. ;
  19251. return 0;
  19252. }
  19253. _ACEOF
  19254. rm -f conftest$ac_exeext
  19255. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19256. (eval $ac_link) 2>&5
  19257. ac_status=$?
  19258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19259. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19260. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19261. (eval $ac_try) 2>&5
  19262. ac_status=$?
  19263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19264. (exit $ac_status); }; }; then
  19265. ac_cv_func_memcmp_working=yes
  19266. else
  19267. echo "$as_me: program exited with status $ac_status" >&5
  19268. echo "$as_me: failed program was:" >&5
  19269. sed 's/^/| /' conftest.$ac_ext >&5
  19270. ( exit $ac_status )
  19271. ac_cv_func_memcmp_working=no
  19272. fi
  19273. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19274. fi
  19275. fi
  19276. echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  19277. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  19278. test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  19279. "memcmp.$ac_objext" | \
  19280. *" memcmp.$ac_objext" | \
  19281. "memcmp.$ac_objext "* | \
  19282. *" memcmp.$ac_objext "* ) ;;
  19283. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  19284. esac
  19285. for ac_header in stdlib.h unistd.h
  19286. do
  19287. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19288. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19289. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19290. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19291. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19292. echo $ECHO_N "(cached) $ECHO_C" >&6
  19293. fi
  19294. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19295. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19296. else
  19297. # Is the header compilable?
  19298. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19299. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  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. #include <$ac_header>
  19308. _ACEOF
  19309. rm -f conftest.$ac_objext
  19310. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19311. (eval $ac_compile) 2>conftest.er1
  19312. ac_status=$?
  19313. grep -v '^ *+' conftest.er1 >conftest.err
  19314. rm -f conftest.er1
  19315. cat conftest.err >&5
  19316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19317. (exit $ac_status); } &&
  19318. { ac_try='test -z "$ac_c_werror_flag"
  19319. || test ! -s conftest.err'
  19320. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19321. (eval $ac_try) 2>&5
  19322. ac_status=$?
  19323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19324. (exit $ac_status); }; } &&
  19325. { ac_try='test -s conftest.$ac_objext'
  19326. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19327. (eval $ac_try) 2>&5
  19328. ac_status=$?
  19329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19330. (exit $ac_status); }; }; then
  19331. ac_header_compiler=yes
  19332. else
  19333. echo "$as_me: failed program was:" >&5
  19334. sed 's/^/| /' conftest.$ac_ext >&5
  19335. ac_header_compiler=no
  19336. fi
  19337. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19338. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19339. echo "${ECHO_T}$ac_header_compiler" >&6
  19340. # Is the header present?
  19341. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19342. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  19343. cat >conftest.$ac_ext <<_ACEOF
  19344. /* confdefs.h. */
  19345. _ACEOF
  19346. cat confdefs.h >>conftest.$ac_ext
  19347. cat >>conftest.$ac_ext <<_ACEOF
  19348. /* end confdefs.h. */
  19349. #include <$ac_header>
  19350. _ACEOF
  19351. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  19352. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  19353. ac_status=$?
  19354. grep -v '^ *+' conftest.er1 >conftest.err
  19355. rm -f conftest.er1
  19356. cat conftest.err >&5
  19357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19358. (exit $ac_status); } >/dev/null; then
  19359. if test -s conftest.err; then
  19360. ac_cpp_err=$ac_c_preproc_warn_flag
  19361. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19362. else
  19363. ac_cpp_err=
  19364. fi
  19365. else
  19366. ac_cpp_err=yes
  19367. fi
  19368. if test -z "$ac_cpp_err"; then
  19369. ac_header_preproc=yes
  19370. else
  19371. echo "$as_me: failed program was:" >&5
  19372. sed 's/^/| /' conftest.$ac_ext >&5
  19373. ac_header_preproc=no
  19374. fi
  19375. rm -f conftest.err conftest.$ac_ext
  19376. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19377. echo "${ECHO_T}$ac_header_preproc" >&6
  19378. # So? What about this header?
  19379. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19380. yes:no: )
  19381. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19382. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19383. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19384. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19385. ac_header_preproc=yes
  19386. ;;
  19387. no:yes:* )
  19388. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19389. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19390. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19391. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19392. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19393. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19394. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19395. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19396. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19397. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19398. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19399. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19400. (
  19401. cat <<\_ASBOX
  19402. ## ------------------------------------------ ##
  19403. ## Report this to http://bugzilla.redhat.com/ ##
  19404. ## ------------------------------------------ ##
  19405. _ASBOX
  19406. ) |
  19407. sed "s/^/$as_me: WARNING: /" >&2
  19408. ;;
  19409. esac
  19410. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19411. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19412. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19413. echo $ECHO_N "(cached) $ECHO_C" >&6
  19414. else
  19415. eval "$as_ac_Header=\$ac_header_preproc"
  19416. fi
  19417. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19418. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19419. fi
  19420. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19421. cat >>confdefs.h <<_ACEOF
  19422. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19423. _ACEOF
  19424. fi
  19425. done
  19426. for ac_func in getpagesize
  19427. do
  19428. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19429. echo "$as_me:$LINENO: checking for $ac_func" >&5
  19430. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  19431. if eval "test \"\${$as_ac_var+set}\" = set"; then
  19432. echo $ECHO_N "(cached) $ECHO_C" >&6
  19433. else
  19434. cat >conftest.$ac_ext <<_ACEOF
  19435. /* confdefs.h. */
  19436. _ACEOF
  19437. cat confdefs.h >>conftest.$ac_ext
  19438. cat >>conftest.$ac_ext <<_ACEOF
  19439. /* end confdefs.h. */
  19440. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19441. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19442. #define $ac_func innocuous_$ac_func
  19443. /* System header to define __stub macros and hopefully few prototypes,
  19444. which can conflict with char $ac_func (); below.
  19445. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19446. <limits.h> exists even on freestanding compilers. */
  19447. #ifdef __STDC__
  19448. # include <limits.h>
  19449. #else
  19450. # include <assert.h>
  19451. #endif
  19452. #undef $ac_func
  19453. /* Override any gcc2 internal prototype to avoid an error. */
  19454. #ifdef __cplusplus
  19455. extern "C"
  19456. {
  19457. #endif
  19458. /* We use char because int might match the return type of a gcc2
  19459. builtin and then its argument prototype would still apply. */
  19460. char $ac_func ();
  19461. /* The GNU C library defines this for functions which it implements
  19462. to always fail with ENOSYS. Some functions are actually named
  19463. something starting with __ and the normal name is an alias. */
  19464. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19465. choke me
  19466. #else
  19467. char (*f) () = $ac_func;
  19468. #endif
  19469. #ifdef __cplusplus
  19470. }
  19471. #endif
  19472. int
  19473. main ()
  19474. {
  19475. return f != $ac_func;
  19476. ;
  19477. return 0;
  19478. }
  19479. _ACEOF
  19480. rm -f conftest.$ac_objext conftest$ac_exeext
  19481. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19482. (eval $ac_link) 2>conftest.er1
  19483. ac_status=$?
  19484. grep -v '^ *+' conftest.er1 >conftest.err
  19485. rm -f conftest.er1
  19486. cat conftest.err >&5
  19487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19488. (exit $ac_status); } &&
  19489. { ac_try='test -z "$ac_c_werror_flag"
  19490. || test ! -s conftest.err'
  19491. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19492. (eval $ac_try) 2>&5
  19493. ac_status=$?
  19494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19495. (exit $ac_status); }; } &&
  19496. { ac_try='test -s conftest$ac_exeext'
  19497. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19498. (eval $ac_try) 2>&5
  19499. ac_status=$?
  19500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19501. (exit $ac_status); }; }; then
  19502. eval "$as_ac_var=yes"
  19503. else
  19504. echo "$as_me: failed program was:" >&5
  19505. sed 's/^/| /' conftest.$ac_ext >&5
  19506. eval "$as_ac_var=no"
  19507. fi
  19508. rm -f conftest.err conftest.$ac_objext \
  19509. conftest$ac_exeext conftest.$ac_ext
  19510. fi
  19511. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  19512. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  19513. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19514. cat >>confdefs.h <<_ACEOF
  19515. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19516. _ACEOF
  19517. fi
  19518. done
  19519. echo "$as_me:$LINENO: checking for working mmap" >&5
  19520. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  19521. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  19522. echo $ECHO_N "(cached) $ECHO_C" >&6
  19523. else
  19524. if test "$cross_compiling" = yes; then
  19525. ac_cv_func_mmap_fixed_mapped=no
  19526. else
  19527. cat >conftest.$ac_ext <<_ACEOF
  19528. /* confdefs.h. */
  19529. _ACEOF
  19530. cat confdefs.h >>conftest.$ac_ext
  19531. cat >>conftest.$ac_ext <<_ACEOF
  19532. /* end confdefs.h. */
  19533. $ac_includes_default
  19534. /* malloc might have been renamed as rpl_malloc. */
  19535. #undef malloc
  19536. /* Thanks to Mike Haertel and Jim Avera for this test.
  19537. Here is a matrix of mmap possibilities:
  19538. mmap private not fixed
  19539. mmap private fixed at somewhere currently unmapped
  19540. mmap private fixed at somewhere already mapped
  19541. mmap shared not fixed
  19542. mmap shared fixed at somewhere currently unmapped
  19543. mmap shared fixed at somewhere already mapped
  19544. For private mappings, we should verify that changes cannot be read()
  19545. back from the file, nor mmap's back from the file at a different
  19546. address. (There have been systems where private was not correctly
  19547. implemented like the infamous i386 svr4.0, and systems where the
  19548. VM page cache was not coherent with the file system buffer cache
  19549. like early versions of FreeBSD and possibly contemporary NetBSD.)
  19550. For shared mappings, we should conversely verify that changes get
  19551. propagated back to all the places they're supposed to be.
  19552. Grep wants private fixed already mapped.
  19553. The main things grep needs to know about mmap are:
  19554. * does it exist and is it safe to write into the mmap'd area
  19555. * how to use it (BSD variants) */
  19556. #include <fcntl.h>
  19557. #include <sys/mman.h>
  19558. #if !STDC_HEADERS && !HAVE_STDLIB_H
  19559. char *malloc ();
  19560. #endif
  19561. /* This mess was copied from the GNU getpagesize.h. */
  19562. #if !HAVE_GETPAGESIZE
  19563. /* Assume that all systems that can run configure have sys/param.h. */
  19564. # if !HAVE_SYS_PARAM_H
  19565. # define HAVE_SYS_PARAM_H 1
  19566. # endif
  19567. # ifdef _SC_PAGESIZE
  19568. # define getpagesize() sysconf(_SC_PAGESIZE)
  19569. # else /* no _SC_PAGESIZE */
  19570. # if HAVE_SYS_PARAM_H
  19571. # include <sys/param.h>
  19572. # ifdef EXEC_PAGESIZE
  19573. # define getpagesize() EXEC_PAGESIZE
  19574. # else /* no EXEC_PAGESIZE */
  19575. # ifdef NBPG
  19576. # define getpagesize() NBPG * CLSIZE
  19577. # ifndef CLSIZE
  19578. # define CLSIZE 1
  19579. # endif /* no CLSIZE */
  19580. # else /* no NBPG */
  19581. # ifdef NBPC
  19582. # define getpagesize() NBPC
  19583. # else /* no NBPC */
  19584. # ifdef PAGESIZE
  19585. # define getpagesize() PAGESIZE
  19586. # endif /* PAGESIZE */
  19587. # endif /* no NBPC */
  19588. # endif /* no NBPG */
  19589. # endif /* no EXEC_PAGESIZE */
  19590. # else /* no HAVE_SYS_PARAM_H */
  19591. # define getpagesize() 8192 /* punt totally */
  19592. # endif /* no HAVE_SYS_PARAM_H */
  19593. # endif /* no _SC_PAGESIZE */
  19594. #endif /* no HAVE_GETPAGESIZE */
  19595. int
  19596. main ()
  19597. {
  19598. char *data, *data2, *data3;
  19599. int i, pagesize;
  19600. int fd;
  19601. pagesize = getpagesize ();
  19602. /* First, make a file with some known garbage in it. */
  19603. data = (char *) malloc (pagesize);
  19604. if (!data)
  19605. exit (1);
  19606. for (i = 0; i < pagesize; ++i)
  19607. *(data + i) = rand ();
  19608. umask (0);
  19609. fd = creat ("conftest.mmap", 0600);
  19610. if (fd < 0)
  19611. exit (1);
  19612. if (write (fd, data, pagesize) != pagesize)
  19613. exit (1);
  19614. close (fd);
  19615. /* Next, try to mmap the file at a fixed address which already has
  19616. something else allocated at it. If we can, also make sure that
  19617. we see the same garbage. */
  19618. fd = open ("conftest.mmap", O_RDWR);
  19619. if (fd < 0)
  19620. exit (1);
  19621. data2 = (char *) malloc (2 * pagesize);
  19622. if (!data2)
  19623. exit (1);
  19624. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  19625. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  19626. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  19627. exit (1);
  19628. for (i = 0; i < pagesize; ++i)
  19629. if (*(data + i) != *(data2 + i))
  19630. exit (1);
  19631. /* Finally, make sure that changes to the mapped area do not
  19632. percolate back to the file as seen by read(). (This is a bug on
  19633. some variants of i386 svr4.0.) */
  19634. for (i = 0; i < pagesize; ++i)
  19635. *(data2 + i) = *(data2 + i) + 1;
  19636. data3 = (char *) malloc (pagesize);
  19637. if (!data3)
  19638. exit (1);
  19639. if (read (fd, data3, pagesize) != pagesize)
  19640. exit (1);
  19641. for (i = 0; i < pagesize; ++i)
  19642. if (*(data + i) != *(data3 + i))
  19643. exit (1);
  19644. close (fd);
  19645. exit (0);
  19646. }
  19647. _ACEOF
  19648. rm -f conftest$ac_exeext
  19649. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19650. (eval $ac_link) 2>&5
  19651. ac_status=$?
  19652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19653. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19654. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19655. (eval $ac_try) 2>&5
  19656. ac_status=$?
  19657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19658. (exit $ac_status); }; }; then
  19659. ac_cv_func_mmap_fixed_mapped=yes
  19660. else
  19661. echo "$as_me: program exited with status $ac_status" >&5
  19662. echo "$as_me: failed program was:" >&5
  19663. sed 's/^/| /' conftest.$ac_ext >&5
  19664. ( exit $ac_status )
  19665. ac_cv_func_mmap_fixed_mapped=no
  19666. fi
  19667. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19668. fi
  19669. fi
  19670. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  19671. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  19672. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  19673. cat >>confdefs.h <<\_ACEOF
  19674. #define HAVE_MMAP 1
  19675. _ACEOF
  19676. fi
  19677. rm -f conftest.mmap
  19678. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  19679. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  19680. if test "${ac_cv_type_signal+set}" = set; then
  19681. echo $ECHO_N "(cached) $ECHO_C" >&6
  19682. else
  19683. cat >conftest.$ac_ext <<_ACEOF
  19684. /* confdefs.h. */
  19685. _ACEOF
  19686. cat confdefs.h >>conftest.$ac_ext
  19687. cat >>conftest.$ac_ext <<_ACEOF
  19688. /* end confdefs.h. */
  19689. #include <sys/types.h>
  19690. #include <signal.h>
  19691. #ifdef signal
  19692. # undef signal
  19693. #endif
  19694. #ifdef __cplusplus
  19695. extern "C" void (*signal (int, void (*)(int)))(int);
  19696. #else
  19697. void (*signal ()) ();
  19698. #endif
  19699. int
  19700. main ()
  19701. {
  19702. int i;
  19703. ;
  19704. return 0;
  19705. }
  19706. _ACEOF
  19707. rm -f conftest.$ac_objext
  19708. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19709. (eval $ac_compile) 2>conftest.er1
  19710. ac_status=$?
  19711. grep -v '^ *+' conftest.er1 >conftest.err
  19712. rm -f conftest.er1
  19713. cat conftest.err >&5
  19714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19715. (exit $ac_status); } &&
  19716. { ac_try='test -z "$ac_c_werror_flag"
  19717. || test ! -s conftest.err'
  19718. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19719. (eval $ac_try) 2>&5
  19720. ac_status=$?
  19721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19722. (exit $ac_status); }; } &&
  19723. { ac_try='test -s conftest.$ac_objext'
  19724. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19725. (eval $ac_try) 2>&5
  19726. ac_status=$?
  19727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19728. (exit $ac_status); }; }; then
  19729. ac_cv_type_signal=void
  19730. else
  19731. echo "$as_me: failed program was:" >&5
  19732. sed 's/^/| /' conftest.$ac_ext >&5
  19733. ac_cv_type_signal=int
  19734. fi
  19735. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19736. fi
  19737. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  19738. echo "${ECHO_T}$ac_cv_type_signal" >&6
  19739. cat >>confdefs.h <<_ACEOF
  19740. #define RETSIGTYPE $ac_cv_type_signal
  19741. _ACEOF
  19742. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  19743. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  19744. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  19745. echo $ECHO_N "(cached) $ECHO_C" >&6
  19746. else
  19747. if test "$cross_compiling" = yes; then
  19748. ac_cv_func_stat_empty_string_bug=yes
  19749. else
  19750. cat >conftest.$ac_ext <<_ACEOF
  19751. /* confdefs.h. */
  19752. _ACEOF
  19753. cat confdefs.h >>conftest.$ac_ext
  19754. cat >>conftest.$ac_ext <<_ACEOF
  19755. /* end confdefs.h. */
  19756. $ac_includes_default
  19757. int
  19758. main ()
  19759. {
  19760. struct stat sbuf;
  19761. exit (stat ("", &sbuf) ? 1 : 0);
  19762. ;
  19763. return 0;
  19764. }
  19765. _ACEOF
  19766. rm -f conftest$ac_exeext
  19767. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19768. (eval $ac_link) 2>&5
  19769. ac_status=$?
  19770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19771. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19772. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19773. (eval $ac_try) 2>&5
  19774. ac_status=$?
  19775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19776. (exit $ac_status); }; }; then
  19777. ac_cv_func_stat_empty_string_bug=yes
  19778. else
  19779. echo "$as_me: program exited with status $ac_status" >&5
  19780. echo "$as_me: failed program was:" >&5
  19781. sed 's/^/| /' conftest.$ac_ext >&5
  19782. ( exit $ac_status )
  19783. ac_cv_func_stat_empty_string_bug=no
  19784. fi
  19785. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19786. fi
  19787. fi
  19788. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  19789. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  19790. if test $ac_cv_func_stat_empty_string_bug = yes; then
  19791. case $LIBOBJS in
  19792. "stat.$ac_objext" | \
  19793. *" stat.$ac_objext" | \
  19794. "stat.$ac_objext "* | \
  19795. *" stat.$ac_objext "* ) ;;
  19796. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  19797. esac
  19798. cat >>confdefs.h <<_ACEOF
  19799. #define HAVE_STAT_EMPTY_STRING_BUG 1
  19800. _ACEOF
  19801. fi
  19802. echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
  19803. echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
  19804. if test "${ac_cv_have_decl_strerror_r+set}" = set; then
  19805. echo $ECHO_N "(cached) $ECHO_C" >&6
  19806. else
  19807. cat >conftest.$ac_ext <<_ACEOF
  19808. /* confdefs.h. */
  19809. _ACEOF
  19810. cat confdefs.h >>conftest.$ac_ext
  19811. cat >>conftest.$ac_ext <<_ACEOF
  19812. /* end confdefs.h. */
  19813. $ac_includes_default
  19814. int
  19815. main ()
  19816. {
  19817. #ifndef strerror_r
  19818. char *p = (char *) strerror_r;
  19819. #endif
  19820. ;
  19821. return 0;
  19822. }
  19823. _ACEOF
  19824. rm -f conftest.$ac_objext
  19825. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19826. (eval $ac_compile) 2>conftest.er1
  19827. ac_status=$?
  19828. grep -v '^ *+' conftest.er1 >conftest.err
  19829. rm -f conftest.er1
  19830. cat conftest.err >&5
  19831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19832. (exit $ac_status); } &&
  19833. { ac_try='test -z "$ac_c_werror_flag"
  19834. || test ! -s conftest.err'
  19835. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19836. (eval $ac_try) 2>&5
  19837. ac_status=$?
  19838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19839. (exit $ac_status); }; } &&
  19840. { ac_try='test -s conftest.$ac_objext'
  19841. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19842. (eval $ac_try) 2>&5
  19843. ac_status=$?
  19844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19845. (exit $ac_status); }; }; then
  19846. ac_cv_have_decl_strerror_r=yes
  19847. else
  19848. echo "$as_me: failed program was:" >&5
  19849. sed 's/^/| /' conftest.$ac_ext >&5
  19850. ac_cv_have_decl_strerror_r=no
  19851. fi
  19852. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19853. fi
  19854. echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
  19855. echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
  19856. if test $ac_cv_have_decl_strerror_r = yes; then
  19857. cat >>confdefs.h <<_ACEOF
  19858. #define HAVE_DECL_STRERROR_R 1
  19859. _ACEOF
  19860. else
  19861. cat >>confdefs.h <<_ACEOF
  19862. #define HAVE_DECL_STRERROR_R 0
  19863. _ACEOF
  19864. fi
  19865. for ac_func in strerror_r
  19866. do
  19867. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19868. echo "$as_me:$LINENO: checking for $ac_func" >&5
  19869. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  19870. if eval "test \"\${$as_ac_var+set}\" = set"; then
  19871. echo $ECHO_N "(cached) $ECHO_C" >&6
  19872. else
  19873. cat >conftest.$ac_ext <<_ACEOF
  19874. /* confdefs.h. */
  19875. _ACEOF
  19876. cat confdefs.h >>conftest.$ac_ext
  19877. cat >>conftest.$ac_ext <<_ACEOF
  19878. /* end confdefs.h. */
  19879. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19880. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19881. #define $ac_func innocuous_$ac_func
  19882. /* System header to define __stub macros and hopefully few prototypes,
  19883. which can conflict with char $ac_func (); below.
  19884. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19885. <limits.h> exists even on freestanding compilers. */
  19886. #ifdef __STDC__
  19887. # include <limits.h>
  19888. #else
  19889. # include <assert.h>
  19890. #endif
  19891. #undef $ac_func
  19892. /* Override any gcc2 internal prototype to avoid an error. */
  19893. #ifdef __cplusplus
  19894. extern "C"
  19895. {
  19896. #endif
  19897. /* We use char because int might match the return type of a gcc2
  19898. builtin and then its argument prototype would still apply. */
  19899. char $ac_func ();
  19900. /* The GNU C library defines this for functions which it implements
  19901. to always fail with ENOSYS. Some functions are actually named
  19902. something starting with __ and the normal name is an alias. */
  19903. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19904. choke me
  19905. #else
  19906. char (*f) () = $ac_func;
  19907. #endif
  19908. #ifdef __cplusplus
  19909. }
  19910. #endif
  19911. int
  19912. main ()
  19913. {
  19914. return f != $ac_func;
  19915. ;
  19916. return 0;
  19917. }
  19918. _ACEOF
  19919. rm -f conftest.$ac_objext conftest$ac_exeext
  19920. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19921. (eval $ac_link) 2>conftest.er1
  19922. ac_status=$?
  19923. grep -v '^ *+' conftest.er1 >conftest.err
  19924. rm -f conftest.er1
  19925. cat conftest.err >&5
  19926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19927. (exit $ac_status); } &&
  19928. { ac_try='test -z "$ac_c_werror_flag"
  19929. || test ! -s conftest.err'
  19930. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19931. (eval $ac_try) 2>&5
  19932. ac_status=$?
  19933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19934. (exit $ac_status); }; } &&
  19935. { ac_try='test -s conftest$ac_exeext'
  19936. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19937. (eval $ac_try) 2>&5
  19938. ac_status=$?
  19939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19940. (exit $ac_status); }; }; then
  19941. eval "$as_ac_var=yes"
  19942. else
  19943. echo "$as_me: failed program was:" >&5
  19944. sed 's/^/| /' conftest.$ac_ext >&5
  19945. eval "$as_ac_var=no"
  19946. fi
  19947. rm -f conftest.err conftest.$ac_objext \
  19948. conftest$ac_exeext conftest.$ac_ext
  19949. fi
  19950. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  19951. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  19952. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19953. cat >>confdefs.h <<_ACEOF
  19954. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19955. _ACEOF
  19956. fi
  19957. done
  19958. echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
  19959. echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
  19960. if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
  19961. echo $ECHO_N "(cached) $ECHO_C" >&6
  19962. else
  19963. ac_cv_func_strerror_r_char_p=no
  19964. if test $ac_cv_have_decl_strerror_r = yes; then
  19965. cat >conftest.$ac_ext <<_ACEOF
  19966. /* confdefs.h. */
  19967. _ACEOF
  19968. cat confdefs.h >>conftest.$ac_ext
  19969. cat >>conftest.$ac_ext <<_ACEOF
  19970. /* end confdefs.h. */
  19971. $ac_includes_default
  19972. int
  19973. main ()
  19974. {
  19975. char buf[100];
  19976. char x = *strerror_r (0, buf, sizeof buf);
  19977. char *p = strerror_r (0, buf, sizeof buf);
  19978. ;
  19979. return 0;
  19980. }
  19981. _ACEOF
  19982. rm -f conftest.$ac_objext
  19983. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19984. (eval $ac_compile) 2>conftest.er1
  19985. ac_status=$?
  19986. grep -v '^ *+' conftest.er1 >conftest.err
  19987. rm -f conftest.er1
  19988. cat conftest.err >&5
  19989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19990. (exit $ac_status); } &&
  19991. { ac_try='test -z "$ac_c_werror_flag"
  19992. || test ! -s conftest.err'
  19993. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19994. (eval $ac_try) 2>&5
  19995. ac_status=$?
  19996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19997. (exit $ac_status); }; } &&
  19998. { ac_try='test -s conftest.$ac_objext'
  19999. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20000. (eval $ac_try) 2>&5
  20001. ac_status=$?
  20002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20003. (exit $ac_status); }; }; then
  20004. ac_cv_func_strerror_r_char_p=yes
  20005. else
  20006. echo "$as_me: failed program was:" >&5
  20007. sed 's/^/| /' conftest.$ac_ext >&5
  20008. fi
  20009. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20010. else
  20011. # strerror_r is not declared. Choose between
  20012. # systems that have relatively inaccessible declarations for the
  20013. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  20014. # former has a strerror_r that returns char*, while the latter
  20015. # has a strerror_r that returns `int'.
  20016. # This test should segfault on the DEC system.
  20017. if test "$cross_compiling" = yes; then
  20018. :
  20019. else
  20020. cat >conftest.$ac_ext <<_ACEOF
  20021. /* confdefs.h. */
  20022. _ACEOF
  20023. cat confdefs.h >>conftest.$ac_ext
  20024. cat >>conftest.$ac_ext <<_ACEOF
  20025. /* end confdefs.h. */
  20026. $ac_includes_default
  20027. extern char *strerror_r ();
  20028. int
  20029. main ()
  20030. {
  20031. char buf[100];
  20032. char x = *strerror_r (0, buf, sizeof buf);
  20033. exit (!isalpha (x));
  20034. ;
  20035. return 0;
  20036. }
  20037. _ACEOF
  20038. rm -f conftest$ac_exeext
  20039. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20040. (eval $ac_link) 2>&5
  20041. ac_status=$?
  20042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20043. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20044. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20045. (eval $ac_try) 2>&5
  20046. ac_status=$?
  20047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20048. (exit $ac_status); }; }; then
  20049. ac_cv_func_strerror_r_char_p=yes
  20050. else
  20051. echo "$as_me: program exited with status $ac_status" >&5
  20052. echo "$as_me: failed program was:" >&5
  20053. sed 's/^/| /' conftest.$ac_ext >&5
  20054. fi
  20055. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20056. fi
  20057. fi
  20058. fi
  20059. echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
  20060. echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
  20061. if test $ac_cv_func_strerror_r_char_p = yes; then
  20062. cat >>confdefs.h <<\_ACEOF
  20063. #define STRERROR_R_CHAR_P 1
  20064. _ACEOF
  20065. fi
  20066. for ac_func in strftime
  20067. do
  20068. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20069. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20070. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20071. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20072. echo $ECHO_N "(cached) $ECHO_C" >&6
  20073. else
  20074. cat >conftest.$ac_ext <<_ACEOF
  20075. /* confdefs.h. */
  20076. _ACEOF
  20077. cat confdefs.h >>conftest.$ac_ext
  20078. cat >>conftest.$ac_ext <<_ACEOF
  20079. /* end confdefs.h. */
  20080. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20081. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20082. #define $ac_func innocuous_$ac_func
  20083. /* System header to define __stub macros and hopefully few prototypes,
  20084. which can conflict with char $ac_func (); below.
  20085. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20086. <limits.h> exists even on freestanding compilers. */
  20087. #ifdef __STDC__
  20088. # include <limits.h>
  20089. #else
  20090. # include <assert.h>
  20091. #endif
  20092. #undef $ac_func
  20093. /* Override any gcc2 internal prototype to avoid an error. */
  20094. #ifdef __cplusplus
  20095. extern "C"
  20096. {
  20097. #endif
  20098. /* We use char because int might match the return type of a gcc2
  20099. builtin and then its argument prototype would still apply. */
  20100. char $ac_func ();
  20101. /* The GNU C library defines this for functions which it implements
  20102. to always fail with ENOSYS. Some functions are actually named
  20103. something starting with __ and the normal name is an alias. */
  20104. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20105. choke me
  20106. #else
  20107. char (*f) () = $ac_func;
  20108. #endif
  20109. #ifdef __cplusplus
  20110. }
  20111. #endif
  20112. int
  20113. main ()
  20114. {
  20115. return f != $ac_func;
  20116. ;
  20117. return 0;
  20118. }
  20119. _ACEOF
  20120. rm -f conftest.$ac_objext conftest$ac_exeext
  20121. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20122. (eval $ac_link) 2>conftest.er1
  20123. ac_status=$?
  20124. grep -v '^ *+' conftest.er1 >conftest.err
  20125. rm -f conftest.er1
  20126. cat conftest.err >&5
  20127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20128. (exit $ac_status); } &&
  20129. { ac_try='test -z "$ac_c_werror_flag"
  20130. || test ! -s conftest.err'
  20131. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20132. (eval $ac_try) 2>&5
  20133. ac_status=$?
  20134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20135. (exit $ac_status); }; } &&
  20136. { ac_try='test -s conftest$ac_exeext'
  20137. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20138. (eval $ac_try) 2>&5
  20139. ac_status=$?
  20140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20141. (exit $ac_status); }; }; then
  20142. eval "$as_ac_var=yes"
  20143. else
  20144. echo "$as_me: failed program was:" >&5
  20145. sed 's/^/| /' conftest.$ac_ext >&5
  20146. eval "$as_ac_var=no"
  20147. fi
  20148. rm -f conftest.err conftest.$ac_objext \
  20149. conftest$ac_exeext conftest.$ac_ext
  20150. fi
  20151. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20152. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20153. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20154. cat >>confdefs.h <<_ACEOF
  20155. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20156. _ACEOF
  20157. else
  20158. # strftime is in -lintl on SCO UNIX.
  20159. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  20160. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  20161. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  20162. echo $ECHO_N "(cached) $ECHO_C" >&6
  20163. else
  20164. ac_check_lib_save_LIBS=$LIBS
  20165. LIBS="-lintl $LIBS"
  20166. cat >conftest.$ac_ext <<_ACEOF
  20167. /* confdefs.h. */
  20168. _ACEOF
  20169. cat confdefs.h >>conftest.$ac_ext
  20170. cat >>conftest.$ac_ext <<_ACEOF
  20171. /* end confdefs.h. */
  20172. /* Override any gcc2 internal prototype to avoid an error. */
  20173. #ifdef __cplusplus
  20174. extern "C"
  20175. #endif
  20176. /* We use char because int might match the return type of a gcc2
  20177. builtin and then its argument prototype would still apply. */
  20178. char strftime ();
  20179. int
  20180. main ()
  20181. {
  20182. strftime ();
  20183. ;
  20184. return 0;
  20185. }
  20186. _ACEOF
  20187. rm -f conftest.$ac_objext conftest$ac_exeext
  20188. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20189. (eval $ac_link) 2>conftest.er1
  20190. ac_status=$?
  20191. grep -v '^ *+' conftest.er1 >conftest.err
  20192. rm -f conftest.er1
  20193. cat conftest.err >&5
  20194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20195. (exit $ac_status); } &&
  20196. { ac_try='test -z "$ac_c_werror_flag"
  20197. || test ! -s conftest.err'
  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); }; } &&
  20203. { ac_try='test -s conftest$ac_exeext'
  20204. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20205. (eval $ac_try) 2>&5
  20206. ac_status=$?
  20207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20208. (exit $ac_status); }; }; then
  20209. ac_cv_lib_intl_strftime=yes
  20210. else
  20211. echo "$as_me: failed program was:" >&5
  20212. sed 's/^/| /' conftest.$ac_ext >&5
  20213. ac_cv_lib_intl_strftime=no
  20214. fi
  20215. rm -f conftest.err conftest.$ac_objext \
  20216. conftest$ac_exeext conftest.$ac_ext
  20217. LIBS=$ac_check_lib_save_LIBS
  20218. fi
  20219. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  20220. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  20221. if test $ac_cv_lib_intl_strftime = yes; then
  20222. cat >>confdefs.h <<\_ACEOF
  20223. #define HAVE_STRFTIME 1
  20224. _ACEOF
  20225. LIBS="-lintl $LIBS"
  20226. fi
  20227. fi
  20228. done
  20229. for ac_func in vprintf
  20230. do
  20231. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20232. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20233. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20234. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20235. echo $ECHO_N "(cached) $ECHO_C" >&6
  20236. else
  20237. cat >conftest.$ac_ext <<_ACEOF
  20238. /* confdefs.h. */
  20239. _ACEOF
  20240. cat confdefs.h >>conftest.$ac_ext
  20241. cat >>conftest.$ac_ext <<_ACEOF
  20242. /* end confdefs.h. */
  20243. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20244. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20245. #define $ac_func innocuous_$ac_func
  20246. /* System header to define __stub macros and hopefully few prototypes,
  20247. which can conflict with char $ac_func (); below.
  20248. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20249. <limits.h> exists even on freestanding compilers. */
  20250. #ifdef __STDC__
  20251. # include <limits.h>
  20252. #else
  20253. # include <assert.h>
  20254. #endif
  20255. #undef $ac_func
  20256. /* Override any gcc2 internal prototype to avoid an error. */
  20257. #ifdef __cplusplus
  20258. extern "C"
  20259. {
  20260. #endif
  20261. /* We use char because int might match the return type of a gcc2
  20262. builtin and then its argument prototype would still apply. */
  20263. char $ac_func ();
  20264. /* The GNU C library defines this for functions which it implements
  20265. to always fail with ENOSYS. Some functions are actually named
  20266. something starting with __ and the normal name is an alias. */
  20267. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20268. choke me
  20269. #else
  20270. char (*f) () = $ac_func;
  20271. #endif
  20272. #ifdef __cplusplus
  20273. }
  20274. #endif
  20275. int
  20276. main ()
  20277. {
  20278. return f != $ac_func;
  20279. ;
  20280. return 0;
  20281. }
  20282. _ACEOF
  20283. rm -f conftest.$ac_objext conftest$ac_exeext
  20284. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20285. (eval $ac_link) 2>conftest.er1
  20286. ac_status=$?
  20287. grep -v '^ *+' conftest.er1 >conftest.err
  20288. rm -f conftest.er1
  20289. cat conftest.err >&5
  20290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20291. (exit $ac_status); } &&
  20292. { ac_try='test -z "$ac_c_werror_flag"
  20293. || test ! -s conftest.err'
  20294. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20295. (eval $ac_try) 2>&5
  20296. ac_status=$?
  20297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20298. (exit $ac_status); }; } &&
  20299. { ac_try='test -s conftest$ac_exeext'
  20300. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20301. (eval $ac_try) 2>&5
  20302. ac_status=$?
  20303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20304. (exit $ac_status); }; }; then
  20305. eval "$as_ac_var=yes"
  20306. else
  20307. echo "$as_me: failed program was:" >&5
  20308. sed 's/^/| /' conftest.$ac_ext >&5
  20309. eval "$as_ac_var=no"
  20310. fi
  20311. rm -f conftest.err conftest.$ac_objext \
  20312. conftest$ac_exeext conftest.$ac_ext
  20313. fi
  20314. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20315. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20316. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20317. cat >>confdefs.h <<_ACEOF
  20318. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20319. _ACEOF
  20320. echo "$as_me:$LINENO: checking for _doprnt" >&5
  20321. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  20322. if test "${ac_cv_func__doprnt+set}" = set; then
  20323. echo $ECHO_N "(cached) $ECHO_C" >&6
  20324. else
  20325. cat >conftest.$ac_ext <<_ACEOF
  20326. /* confdefs.h. */
  20327. _ACEOF
  20328. cat confdefs.h >>conftest.$ac_ext
  20329. cat >>conftest.$ac_ext <<_ACEOF
  20330. /* end confdefs.h. */
  20331. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  20332. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20333. #define _doprnt innocuous__doprnt
  20334. /* System header to define __stub macros and hopefully few prototypes,
  20335. which can conflict with char _doprnt (); below.
  20336. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20337. <limits.h> exists even on freestanding compilers. */
  20338. #ifdef __STDC__
  20339. # include <limits.h>
  20340. #else
  20341. # include <assert.h>
  20342. #endif
  20343. #undef _doprnt
  20344. /* Override any gcc2 internal prototype to avoid an error. */
  20345. #ifdef __cplusplus
  20346. extern "C"
  20347. {
  20348. #endif
  20349. /* We use char because int might match the return type of a gcc2
  20350. builtin and then its argument prototype would still apply. */
  20351. char _doprnt ();
  20352. /* The GNU C library defines this for functions which it implements
  20353. to always fail with ENOSYS. Some functions are actually named
  20354. something starting with __ and the normal name is an alias. */
  20355. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  20356. choke me
  20357. #else
  20358. char (*f) () = _doprnt;
  20359. #endif
  20360. #ifdef __cplusplus
  20361. }
  20362. #endif
  20363. int
  20364. main ()
  20365. {
  20366. return f != _doprnt;
  20367. ;
  20368. return 0;
  20369. }
  20370. _ACEOF
  20371. rm -f conftest.$ac_objext conftest$ac_exeext
  20372. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20373. (eval $ac_link) 2>conftest.er1
  20374. ac_status=$?
  20375. grep -v '^ *+' conftest.er1 >conftest.err
  20376. rm -f conftest.er1
  20377. cat conftest.err >&5
  20378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20379. (exit $ac_status); } &&
  20380. { ac_try='test -z "$ac_c_werror_flag"
  20381. || test ! -s conftest.err'
  20382. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20383. (eval $ac_try) 2>&5
  20384. ac_status=$?
  20385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20386. (exit $ac_status); }; } &&
  20387. { ac_try='test -s conftest$ac_exeext'
  20388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20389. (eval $ac_try) 2>&5
  20390. ac_status=$?
  20391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20392. (exit $ac_status); }; }; then
  20393. ac_cv_func__doprnt=yes
  20394. else
  20395. echo "$as_me: failed program was:" >&5
  20396. sed 's/^/| /' conftest.$ac_ext >&5
  20397. ac_cv_func__doprnt=no
  20398. fi
  20399. rm -f conftest.err conftest.$ac_objext \
  20400. conftest$ac_exeext conftest.$ac_ext
  20401. fi
  20402. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  20403. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  20404. if test $ac_cv_func__doprnt = yes; then
  20405. cat >>confdefs.h <<\_ACEOF
  20406. #define HAVE_DOPRNT 1
  20407. _ACEOF
  20408. fi
  20409. fi
  20410. done
  20411. 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
  20412. do
  20413. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20414. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20415. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20416. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20417. echo $ECHO_N "(cached) $ECHO_C" >&6
  20418. else
  20419. cat >conftest.$ac_ext <<_ACEOF
  20420. /* confdefs.h. */
  20421. _ACEOF
  20422. cat confdefs.h >>conftest.$ac_ext
  20423. cat >>conftest.$ac_ext <<_ACEOF
  20424. /* end confdefs.h. */
  20425. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20426. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20427. #define $ac_func innocuous_$ac_func
  20428. /* System header to define __stub macros and hopefully few prototypes,
  20429. which can conflict with char $ac_func (); below.
  20430. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20431. <limits.h> exists even on freestanding compilers. */
  20432. #ifdef __STDC__
  20433. # include <limits.h>
  20434. #else
  20435. # include <assert.h>
  20436. #endif
  20437. #undef $ac_func
  20438. /* Override any gcc2 internal prototype to avoid an error. */
  20439. #ifdef __cplusplus
  20440. extern "C"
  20441. {
  20442. #endif
  20443. /* We use char because int might match the return type of a gcc2
  20444. builtin and then its argument prototype would still apply. */
  20445. char $ac_func ();
  20446. /* The GNU C library defines this for functions which it implements
  20447. to always fail with ENOSYS. Some functions are actually named
  20448. something starting with __ and the normal name is an alias. */
  20449. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20450. choke me
  20451. #else
  20452. char (*f) () = $ac_func;
  20453. #endif
  20454. #ifdef __cplusplus
  20455. }
  20456. #endif
  20457. int
  20458. main ()
  20459. {
  20460. return f != $ac_func;
  20461. ;
  20462. return 0;
  20463. }
  20464. _ACEOF
  20465. rm -f conftest.$ac_objext conftest$ac_exeext
  20466. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20467. (eval $ac_link) 2>conftest.er1
  20468. ac_status=$?
  20469. grep -v '^ *+' conftest.er1 >conftest.err
  20470. rm -f conftest.er1
  20471. cat conftest.err >&5
  20472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20473. (exit $ac_status); } &&
  20474. { ac_try='test -z "$ac_c_werror_flag"
  20475. || test ! -s conftest.err'
  20476. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20477. (eval $ac_try) 2>&5
  20478. ac_status=$?
  20479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20480. (exit $ac_status); }; } &&
  20481. { ac_try='test -s conftest$ac_exeext'
  20482. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20483. (eval $ac_try) 2>&5
  20484. ac_status=$?
  20485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20486. (exit $ac_status); }; }; then
  20487. eval "$as_ac_var=yes"
  20488. else
  20489. echo "$as_me: failed program was:" >&5
  20490. sed 's/^/| /' conftest.$ac_ext >&5
  20491. eval "$as_ac_var=no"
  20492. fi
  20493. rm -f conftest.err conftest.$ac_objext \
  20494. conftest$ac_exeext conftest.$ac_ext
  20495. fi
  20496. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20497. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20498. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20499. cat >>confdefs.h <<_ACEOF
  20500. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20501. _ACEOF
  20502. fi
  20503. done
  20504. echo "$as_me:$LINENO: checking for --enable-debug" >&5
  20505. echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6
  20506. # Check whether --enable-debug or --disable-debug was given.
  20507. if test "${enable_debug+set}" = set; then
  20508. enableval="$enable_debug"
  20509. echo "$as_me:$LINENO: result: yes" >&5
  20510. echo "${ECHO_T}yes" >&6
  20511. debug_defs="-DDEBUG -DMCC_DEBUG"
  20512. else
  20513. echo "$as_me:$LINENO: result: no" >&5
  20514. echo "${ECHO_T}no" >&6
  20515. debug_defs=""
  20516. fi;
  20517. # Used for legacy style packaging where we bundle all of the dependencies.
  20518. echo "$as_me:$LINENO: checking for --enable-bundle" >&5
  20519. echo $ECHO_N "checking for --enable-bundle... $ECHO_C" >&6
  20520. # Check whether --enable-bundle or --disable-bundle was given.
  20521. if test "${enable_bundle+set}" = set; then
  20522. enableval="$enable_bundle"
  20523. echo "$as_me:$LINENO: result: yes" >&5
  20524. echo "${ECHO_T}yes" >&6
  20525. bundle="1";
  20526. else
  20527. echo "$as_me:$LINENO: result: no" >&5
  20528. echo "${ECHO_T}no" >&6
  20529. bundle="";
  20530. fi;
  20531. if test "$bundle" = "1"; then
  20532. BUNDLE_TRUE=
  20533. BUNDLE_FALSE='#'
  20534. else
  20535. BUNDLE_TRUE='#'
  20536. BUNDLE_FALSE=
  20537. fi
  20538. # these enables are for optional or experimental features
  20539. if test -z "$enable_pam_passthru" ; then
  20540. enable_pam_passthru=yes # if not set on cmdline, set default
  20541. fi
  20542. echo "$as_me:$LINENO: checking for --enable-pam-passthru" >&5
  20543. echo $ECHO_N "checking for --enable-pam-passthru... $ECHO_C" >&6
  20544. # Check whether --enable-pam-passthru or --disable-pam-passthru was given.
  20545. if test "${enable_pam_passthru+set}" = set; then
  20546. enableval="$enable_pam_passthru"
  20547. fi;
  20548. if test "$enable_pam_passthru" = yes ; then
  20549. echo "$as_me:$LINENO: result: yes" >&5
  20550. echo "${ECHO_T}yes" >&6
  20551. cat >>confdefs.h <<\_ACEOF
  20552. #define ENABLE_PAM_PASSTHRU 1
  20553. _ACEOF
  20554. else
  20555. echo "$as_me:$LINENO: result: no" >&5
  20556. echo "${ECHO_T}no" >&6
  20557. fi
  20558. if test "$enable_pam_passthru" = "yes"; then
  20559. enable_pam_passthru_TRUE=
  20560. enable_pam_passthru_FALSE='#'
  20561. else
  20562. enable_pam_passthru_TRUE='#'
  20563. enable_pam_passthru_FALSE=
  20564. fi
  20565. if test -z "$enable_dna" ; then
  20566. enable_dna=yes # if not set on cmdline, set default
  20567. fi
  20568. echo "$as_me:$LINENO: checking for --enable-dna" >&5
  20569. echo $ECHO_N "checking for --enable-dna... $ECHO_C" >&6
  20570. # Check whether --enable-dna or --disable-dna was given.
  20571. if test "${enable_dna+set}" = set; then
  20572. enableval="$enable_dna"
  20573. fi;
  20574. if test "$enable_dna" = yes ; then
  20575. echo "$as_me:$LINENO: result: yes" >&5
  20576. echo "${ECHO_T}yes" >&6
  20577. cat >>confdefs.h <<\_ACEOF
  20578. #define ENABLE_DNA 1
  20579. _ACEOF
  20580. else
  20581. echo "$as_me:$LINENO: result: no" >&5
  20582. echo "${ECHO_T}no" >&6
  20583. fi
  20584. if test "$enable_dna" = "yes"; then
  20585. enable_dna_TRUE=
  20586. enable_dna_FALSE='#'
  20587. else
  20588. enable_dna_TRUE='#'
  20589. enable_dna_FALSE=
  20590. fi
  20591. if test -z "$enable_ldapi" ; then
  20592. enable_ldapi=yes # if not set on cmdline, set default
  20593. fi
  20594. echo "$as_me:$LINENO: checking for --enable-ldapi" >&5
  20595. echo $ECHO_N "checking for --enable-ldapi... $ECHO_C" >&6
  20596. # Check whether --enable-ldapi or --disable-ldapi was given.
  20597. if test "${enable_ldapi+set}" = set; then
  20598. enableval="$enable_ldapi"
  20599. fi;
  20600. if test "$enable_ldapi" = yes ; then
  20601. echo "$as_me:$LINENO: result: yes" >&5
  20602. echo "${ECHO_T}yes" >&6
  20603. cat >>confdefs.h <<\_ACEOF
  20604. #define ENABLE_LDAPI 1
  20605. _ACEOF
  20606. else
  20607. echo "$as_me:$LINENO: result: no" >&5
  20608. echo "${ECHO_T}no" >&6
  20609. fi
  20610. if test "$enable_ldapi" = "yes"; then
  20611. enable_ldapi_TRUE=
  20612. enable_ldapi_FALSE='#'
  20613. else
  20614. enable_ldapi_TRUE='#'
  20615. enable_ldapi_FALSE=
  20616. fi
  20617. if test -z "$enable_autobind" ; then
  20618. enable_autobind=no # if not set on cmdline, set default
  20619. fi
  20620. echo "$as_me:$LINENO: checking for --enable-autobind" >&5
  20621. echo $ECHO_N "checking for --enable-autobind... $ECHO_C" >&6
  20622. # Check whether --enable-autobind or --disable-autobind was given.
  20623. if test "${enable_autobind+set}" = set; then
  20624. enableval="$enable_autobind"
  20625. fi;
  20626. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  20627. echo "$as_me:$LINENO: result: yes" >&5
  20628. echo "${ECHO_T}yes" >&6
  20629. cat >>confdefs.h <<\_ACEOF
  20630. #define ENABLE_AUTOBIND 1
  20631. _ACEOF
  20632. else
  20633. echo "$as_me:$LINENO: result: no" >&5
  20634. echo "${ECHO_T}no" >&6
  20635. fi
  20636. if test "$enable_autobind" = "yes"; then
  20637. enable_autobind_TRUE=
  20638. enable_autobind_FALSE='#'
  20639. else
  20640. enable_autobind_TRUE='#'
  20641. enable_autobind_FALSE=
  20642. fi
  20643. if test -z "$enable_auto_dn_suffix" ; then
  20644. enable_auto_dn_suffix=no # if not set on cmdline, set default
  20645. fi
  20646. echo "$as_me:$LINENO: checking for --enable-auto-dn-suffix" >&5
  20647. echo $ECHO_N "checking for --enable-auto-dn-suffix... $ECHO_C" >&6
  20648. # Check whether --enable-autobind or --disable-autobind was given.
  20649. if test "${enable_autobind+set}" = set; then
  20650. enableval="$enable_autobind"
  20651. fi;
  20652. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  20653. echo "$as_me:$LINENO: result: yes" >&5
  20654. echo "${ECHO_T}yes" >&6
  20655. cat >>confdefs.h <<\_ACEOF
  20656. #define ENABLE_AUTO_DN_SUFFIX 1
  20657. _ACEOF
  20658. else
  20659. echo "$as_me:$LINENO: result: no" >&5
  20660. echo "${ECHO_T}no" >&6
  20661. fi
  20662. if test "$enable_auto_dn_suffix" = "yes"; then
  20663. enable_auto_dn_suffix_TRUE=
  20664. enable_auto_dn_suffix_FALSE='#'
  20665. else
  20666. enable_auto_dn_suffix_TRUE='#'
  20667. enable_auto_dn_suffix_FALSE=
  20668. fi
  20669. if test -z "$enable_bitwise" ; then
  20670. enable_bitwise=yes # if not set on cmdline, set default
  20671. fi
  20672. echo "$as_me:$LINENO: checking for --enable-bitwise" >&5
  20673. echo $ECHO_N "checking for --enable-bitwise... $ECHO_C" >&6
  20674. # Check whether --enable-bitwise or --disable-bitwise was given.
  20675. if test "${enable_bitwise+set}" = set; then
  20676. enableval="$enable_bitwise"
  20677. fi;
  20678. if test "$enable_bitwise" = yes ; then
  20679. echo "$as_me:$LINENO: result: yes" >&5
  20680. echo "${ECHO_T}yes" >&6
  20681. cat >>confdefs.h <<\_ACEOF
  20682. #define ENABLE_BITWISE 1
  20683. _ACEOF
  20684. else
  20685. echo "$as_me:$LINENO: result: no" >&5
  20686. echo "${ECHO_T}no" >&6
  20687. fi
  20688. if test "$enable_bitwise" = "yes"; then
  20689. enable_bitwise_TRUE=
  20690. enable_bitwise_FALSE='#'
  20691. else
  20692. enable_bitwise_TRUE='#'
  20693. enable_bitwise_FALSE=
  20694. fi
  20695. # the default prefix - override with --prefix or --with-fhs
  20696. brand=fedora
  20697. capbrand=Fedora
  20698. vendor="Fedora Project"
  20699. # BEGIN COPYRIGHT BLOCK
  20700. # Copyright (C) 2006 Red Hat, Inc.
  20701. # All rights reserved.
  20702. #
  20703. # This program is free software; you can redistribute it and/or
  20704. # modify it under the terms of the GNU General Public License
  20705. # as published by the Free Software Foundation; either version 2
  20706. # of the License, or (at your option) any later version.
  20707. #
  20708. # This program is distributed in the hope that it will be useful,
  20709. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20710. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20711. # GNU General Public License for more details.
  20712. #
  20713. # You should have received a copy of the GNU General Public License
  20714. # along with this program; if not, write to the Free Software
  20715. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20716. #
  20717. # END COPYRIGHT BLOCK
  20718. { echo "$as_me:$LINENO: checking for FHS..." >&5
  20719. echo "$as_me: checking for FHS..." >&6;}
  20720. # check for --with-fhs
  20721. echo "$as_me:$LINENO: checking for --with-fhs" >&5
  20722. echo $ECHO_N "checking for --with-fhs... $ECHO_C" >&6
  20723. # Check whether --with-fhs or --without-fhs was given.
  20724. if test "${with_fhs+set}" = set; then
  20725. withval="$with_fhs"
  20726. with_fhs=yes
  20727. echo "$as_me:$LINENO: result: yes" >&5
  20728. echo "${ECHO_T}yes" >&6
  20729. else
  20730. echo "$as_me:$LINENO: result: no" >&5
  20731. echo "${ECHO_T}no" >&6
  20732. fi;
  20733. if test "$with_fhs" = "yes"; then
  20734. cat >>confdefs.h <<\_ACEOF
  20735. #define IS_FHS 1
  20736. _ACEOF
  20737. fi
  20738. # check for --with-fhs-opt
  20739. echo "$as_me:$LINENO: checking for --with-fhs-opt" >&5
  20740. echo $ECHO_N "checking for --with-fhs-opt... $ECHO_C" >&6
  20741. # Check whether --with-fhs-opt or --without-fhs-opt was given.
  20742. if test "${with_fhs_opt+set}" = set; then
  20743. withval="$with_fhs_opt"
  20744. with_fhs_opt=yes
  20745. echo "$as_me:$LINENO: result: yes" >&5
  20746. echo "${ECHO_T}yes" >&6
  20747. else
  20748. echo "$as_me:$LINENO: result: no" >&5
  20749. echo "${ECHO_T}no" >&6
  20750. fi;
  20751. if test "$with_fhs_opt" = "yes"; then
  20752. cat >>confdefs.h <<\_ACEOF
  20753. #define IS_FHS_OPT 1
  20754. _ACEOF
  20755. fi
  20756. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  20757. { { echo "$as_me:$LINENO: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&5
  20758. echo "$as_me: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&2;}
  20759. { (exit 1); exit 1; }; }
  20760. fi
  20761. # installation paths - by default, we store everything
  20762. # under the prefix. The with-fhs option will use /usr,
  20763. # /etc, and /var. The with-fhs-opt option will use the
  20764. # prefix, but it's sysconfdir and localstatedir will be
  20765. # /etc/opt, and /var/opt.
  20766. if test "$with_fhs_opt" = "yes"; then
  20767. # Override sysconfdir and localstatedir if FHS optional
  20768. # package was requested.
  20769. sysconfdir='/etc/opt'
  20770. localstatedir='/var/opt'
  20771. # relative to datadir
  20772. sampledatadir=/data
  20773. # relative to datadir
  20774. scripttemplatedir=/script-templates
  20775. # relative to libdir
  20776. serverdir=
  20777. # relative to libdir
  20778. serverplugindir=/plugins
  20779. # relative to datadir
  20780. infdir=/inf
  20781. # relative to datadir
  20782. mibdir=/mibs
  20783. # location of property/resource files, relative to datadir
  20784. propertydir=/properties
  20785. # relative to libdir
  20786. perldir=/perl
  20787. else
  20788. if test "$with_fhs" = "yes"; then
  20789. ac_default_prefix=/usr
  20790. prefix=$ac_default_prefix
  20791. exec_prefix=$prefix
  20792. sysconfdir='/etc'
  20793. localstatedir='/var'
  20794. fi
  20795. # relative to datadir
  20796. sampledatadir=/$PACKAGE_NAME/data
  20797. # relative to datadir
  20798. scripttemplatedir=/$PACKAGE_NAME/script-templates
  20799. # relative to libdir
  20800. serverdir=/$PACKAGE_NAME
  20801. # relative to libdir
  20802. serverplugindir=/$PACKAGE_NAME/plugins
  20803. # relative to datadir
  20804. infdir=/$PACKAGE_NAME/inf
  20805. # relative to datadir
  20806. mibdir=/$PACKAGE_NAME/mibs
  20807. # location of property/resource files, relative to datadir
  20808. propertydir=/$PACKAGE_NAME/properties
  20809. # relative to libdir
  20810. perldir=/$PACKAGE_NAME/perl
  20811. fi
  20812. # if mandir is the default value, override it
  20813. # otherwise, the user must have set it - just use it
  20814. if test X"$mandir" = X'${prefix}/man' ; then
  20815. mandir='$(datadir)/man'
  20816. fi
  20817. # Shared paths for all layouts
  20818. # relative to sysconfdir
  20819. configdir=/$PACKAGE_NAME/config
  20820. # relative to sysconfdir
  20821. schemadir=/$PACKAGE_NAME/schema
  20822. # default user, group
  20823. defaultuser=nobody
  20824. defaultgroup=nobody
  20825. # check for --with-instconfigdir
  20826. echo "$as_me:$LINENO: checking for --with-instconfigdir" >&5
  20827. echo $ECHO_N "checking for --with-instconfigdir... $ECHO_C" >&6
  20828. # Check whether --with-instconfigdir or --without-instconfigdir was given.
  20829. if test "${with_instconfigdir+set}" = set; then
  20830. withval="$with_instconfigdir"
  20831. if test $withval = yes ; then
  20832. { { echo "$as_me:$LINENO: error: Please specify a full path with --with-instconfigdir" >&5
  20833. echo "$as_me: error: Please specify a full path with --with-instconfigdir" >&2;}
  20834. { (exit 1); exit 1; }; }
  20835. fi
  20836. instconfigdir="$withval"
  20837. echo "$as_me:$LINENO: result: $withval" >&5
  20838. echo "${ECHO_T}$withval" >&6
  20839. else
  20840. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  20841. echo "$as_me:$LINENO: result: no" >&5
  20842. echo "${ECHO_T}no" >&6
  20843. fi;
  20844. # WINNT should be true if building on Windows system not using
  20845. # cygnus, mingw, or the like and using cmd.exe as the shell
  20846. if false; then
  20847. WINNT_TRUE=
  20848. WINNT_FALSE='#'
  20849. else
  20850. WINNT_TRUE='#'
  20851. WINNT_FALSE=
  20852. fi
  20853. # Deal with platform dependent defines
  20854. # relative to sysconfdir
  20855. initdir=/rc.d
  20856. # on most platforms, we will just use perl from PATH
  20857. # On some platforms, we cannot. Why not just use any old
  20858. # perl? Because of perldap. We use a perldap that is
  20859. # compiled to either 32bit or 64bit, so we must use a native
  20860. # perl binary compiled with the same bitsize. On Solaris
  20861. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  20862. # those with our 64 bit compiled product.
  20863. perlexec='/usr/bin/env perl'
  20864. case $host in
  20865. i*86-*-linux*)
  20866. cat >>confdefs.h <<\_ACEOF
  20867. #define XP_UNIX 1
  20868. _ACEOF
  20869. cat >>confdefs.h <<\_ACEOF
  20870. #define Linux 1
  20871. _ACEOF
  20872. cat >>confdefs.h <<\_ACEOF
  20873. #define LINUX 1
  20874. _ACEOF
  20875. cat >>confdefs.h <<\_ACEOF
  20876. #define LINUX2_0 1
  20877. _ACEOF
  20878. cat >>confdefs.h <<\_ACEOF
  20879. #define LINUX2_2 1
  20880. _ACEOF
  20881. cat >>confdefs.h <<\_ACEOF
  20882. #define LINUX2_4 1
  20883. _ACEOF
  20884. cat >>confdefs.h <<\_ACEOF
  20885. #define CPU_x86
  20886. _ACEOF
  20887. cat >>confdefs.h <<\_ACEOF
  20888. #define _GNU_SOURCE 1
  20889. _ACEOF
  20890. cat >>confdefs.h <<\_ACEOF
  20891. #define ATOMIC_64BIT_OPERATIONS 1
  20892. _ACEOF
  20893. echo "$as_me:$LINENO: checking whether __sync_add_and_fetch is declared" >&5
  20894. echo $ECHO_N "checking whether __sync_add_and_fetch is declared... $ECHO_C" >&6
  20895. if test "${ac_cv_have_decl___sync_add_and_fetch+set}" = set; then
  20896. echo $ECHO_N "(cached) $ECHO_C" >&6
  20897. else
  20898. cat >conftest.$ac_ext <<_ACEOF
  20899. /* confdefs.h. */
  20900. _ACEOF
  20901. cat confdefs.h >>conftest.$ac_ext
  20902. cat >>conftest.$ac_ext <<_ACEOF
  20903. /* end confdefs.h. */
  20904. $ac_includes_default
  20905. int
  20906. main ()
  20907. {
  20908. #ifndef __sync_add_and_fetch
  20909. char *p = (char *) __sync_add_and_fetch;
  20910. #endif
  20911. ;
  20912. return 0;
  20913. }
  20914. _ACEOF
  20915. rm -f conftest.$ac_objext
  20916. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20917. (eval $ac_compile) 2>conftest.er1
  20918. ac_status=$?
  20919. grep -v '^ *+' conftest.er1 >conftest.err
  20920. rm -f conftest.er1
  20921. cat conftest.err >&5
  20922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20923. (exit $ac_status); } &&
  20924. { ac_try='test -z "$ac_c_werror_flag"
  20925. || test ! -s conftest.err'
  20926. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20927. (eval $ac_try) 2>&5
  20928. ac_status=$?
  20929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20930. (exit $ac_status); }; } &&
  20931. { ac_try='test -s conftest.$ac_objext'
  20932. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20933. (eval $ac_try) 2>&5
  20934. ac_status=$?
  20935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20936. (exit $ac_status); }; }; then
  20937. ac_cv_have_decl___sync_add_and_fetch=yes
  20938. else
  20939. echo "$as_me: failed program was:" >&5
  20940. sed 's/^/| /' conftest.$ac_ext >&5
  20941. ac_cv_have_decl___sync_add_and_fetch=no
  20942. fi
  20943. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20944. fi
  20945. echo "$as_me:$LINENO: result: $ac_cv_have_decl___sync_add_and_fetch" >&5
  20946. echo "${ECHO_T}$ac_cv_have_decl___sync_add_and_fetch" >&6
  20947. if test $ac_cv_have_decl___sync_add_and_fetch = yes; then
  20948. cat >>confdefs.h <<_ACEOF
  20949. #define HAVE_DECL___SYNC_ADD_AND_FETCH 1
  20950. _ACEOF
  20951. else
  20952. cat >>confdefs.h <<_ACEOF
  20953. #define HAVE_DECL___SYNC_ADD_AND_FETCH 0
  20954. _ACEOF
  20955. fi
  20956. platform="linux"
  20957. # relative to sysconfdir
  20958. initdir=/rc.d/init.d
  20959. ;;
  20960. x86_64-*-linux*)
  20961. cat >>confdefs.h <<\_ACEOF
  20962. #define XP_UNIX 1
  20963. _ACEOF
  20964. cat >>confdefs.h <<\_ACEOF
  20965. #define Linux 1
  20966. _ACEOF
  20967. cat >>confdefs.h <<\_ACEOF
  20968. #define LINUX 1
  20969. _ACEOF
  20970. cat >>confdefs.h <<\_ACEOF
  20971. #define LINUX2_0 1
  20972. _ACEOF
  20973. cat >>confdefs.h <<\_ACEOF
  20974. #define LINUX2_2 1
  20975. _ACEOF
  20976. cat >>confdefs.h <<\_ACEOF
  20977. #define LINUX2_4 1
  20978. _ACEOF
  20979. cat >>confdefs.h <<\_ACEOF
  20980. #define CPU_x86_64
  20981. _ACEOF
  20982. cat >>confdefs.h <<\_ACEOF
  20983. #define _GNU_SOURCE 1
  20984. _ACEOF
  20985. cat >>confdefs.h <<\_ACEOF
  20986. #define ATOMIC_64BIT_OPERATIONS 1
  20987. _ACEOF
  20988. echo "$as_me:$LINENO: checking whether __sync_add_and_fetch is declared" >&5
  20989. echo $ECHO_N "checking whether __sync_add_and_fetch is declared... $ECHO_C" >&6
  20990. if test "${ac_cv_have_decl___sync_add_and_fetch+set}" = set; then
  20991. echo $ECHO_N "(cached) $ECHO_C" >&6
  20992. else
  20993. cat >conftest.$ac_ext <<_ACEOF
  20994. /* confdefs.h. */
  20995. _ACEOF
  20996. cat confdefs.h >>conftest.$ac_ext
  20997. cat >>conftest.$ac_ext <<_ACEOF
  20998. /* end confdefs.h. */
  20999. $ac_includes_default
  21000. int
  21001. main ()
  21002. {
  21003. #ifndef __sync_add_and_fetch
  21004. char *p = (char *) __sync_add_and_fetch;
  21005. #endif
  21006. ;
  21007. return 0;
  21008. }
  21009. _ACEOF
  21010. rm -f conftest.$ac_objext
  21011. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21012. (eval $ac_compile) 2>conftest.er1
  21013. ac_status=$?
  21014. grep -v '^ *+' conftest.er1 >conftest.err
  21015. rm -f conftest.er1
  21016. cat conftest.err >&5
  21017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21018. (exit $ac_status); } &&
  21019. { ac_try='test -z "$ac_c_werror_flag"
  21020. || test ! -s conftest.err'
  21021. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21022. (eval $ac_try) 2>&5
  21023. ac_status=$?
  21024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21025. (exit $ac_status); }; } &&
  21026. { ac_try='test -s conftest.$ac_objext'
  21027. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21028. (eval $ac_try) 2>&5
  21029. ac_status=$?
  21030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21031. (exit $ac_status); }; }; then
  21032. ac_cv_have_decl___sync_add_and_fetch=yes
  21033. else
  21034. echo "$as_me: failed program was:" >&5
  21035. sed 's/^/| /' conftest.$ac_ext >&5
  21036. ac_cv_have_decl___sync_add_and_fetch=no
  21037. fi
  21038. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21039. fi
  21040. echo "$as_me:$LINENO: result: $ac_cv_have_decl___sync_add_and_fetch" >&5
  21041. echo "${ECHO_T}$ac_cv_have_decl___sync_add_and_fetch" >&6
  21042. if test $ac_cv_have_decl___sync_add_and_fetch = yes; then
  21043. cat >>confdefs.h <<_ACEOF
  21044. #define HAVE_DECL___SYNC_ADD_AND_FETCH 1
  21045. _ACEOF
  21046. else
  21047. cat >>confdefs.h <<_ACEOF
  21048. #define HAVE_DECL___SYNC_ADD_AND_FETCH 0
  21049. _ACEOF
  21050. fi
  21051. platform="linux"
  21052. # relative to sysconfdir
  21053. initdir=/rc.d/init.d
  21054. ;;
  21055. ia64-hp-hpux*)
  21056. cat >>confdefs.h <<\_ACEOF
  21057. #define XP_UNIX 1
  21058. _ACEOF
  21059. cat >>confdefs.h <<\_ACEOF
  21060. #define hpux 1
  21061. _ACEOF
  21062. cat >>confdefs.h <<\_ACEOF
  21063. #define HPUX 1
  21064. _ACEOF
  21065. cat >>confdefs.h <<\_ACEOF
  21066. #define HPUX11 1
  21067. _ACEOF
  21068. cat >>confdefs.h <<\_ACEOF
  21069. #define HPUX11_23 1
  21070. _ACEOF
  21071. cat >>confdefs.h <<\_ACEOF
  21072. #define CPU_ia64
  21073. _ACEOF
  21074. cat >>confdefs.h <<\_ACEOF
  21075. #define OS_hpux 1
  21076. _ACEOF
  21077. cat >>confdefs.h <<\_ACEOF
  21078. #define _POSIX_C_SOURCE 199506L
  21079. _ACEOF
  21080. cat >>confdefs.h <<\_ACEOF
  21081. #define _HPUX_SOURCE 1
  21082. _ACEOF
  21083. cat >>confdefs.h <<\_ACEOF
  21084. #define _INCLUDE_STDC__SOURCE_199901 1
  21085. _ACEOF
  21086. cat >>confdefs.h <<\_ACEOF
  21087. #define ATOMIC_64BIT_OPERATIONS 1
  21088. _ACEOF
  21089. # assume 64 bit
  21090. perlexec='/opt/perl_64/bin/perl'
  21091. platform="hpux"
  21092. initconfigdir="/$PACKAGE_NAME/config"
  21093. ;;
  21094. hppa*-hp-hpux*)
  21095. cat >>confdefs.h <<\_ACEOF
  21096. #define XP_UNIX 1
  21097. _ACEOF
  21098. cat >>confdefs.h <<\_ACEOF
  21099. #define hpux 1
  21100. _ACEOF
  21101. cat >>confdefs.h <<\_ACEOF
  21102. #define HPUX 1
  21103. _ACEOF
  21104. cat >>confdefs.h <<\_ACEOF
  21105. #define HPUX11 1
  21106. _ACEOF
  21107. cat >>confdefs.h <<\_ACEOF
  21108. #define HPUX11_11 1
  21109. _ACEOF
  21110. cat >>confdefs.h <<\_ACEOF
  21111. #define CPU_hppa
  21112. _ACEOF
  21113. cat >>confdefs.h <<\_ACEOF
  21114. #define OS_hpux 1
  21115. _ACEOF
  21116. cat >>confdefs.h <<\_ACEOF
  21117. #define _POSIX_C_SOURCE 199506L
  21118. _ACEOF
  21119. cat >>confdefs.h <<\_ACEOF
  21120. #define _HPUX_SOURCE 1
  21121. _ACEOF
  21122. cat >>confdefs.h <<\_ACEOF
  21123. #define _INCLUDE_STDC__SOURCE_199901 1
  21124. _ACEOF
  21125. cat >>confdefs.h <<\_ACEOF
  21126. #define ATOMIC_64BIT_OPERATIONS 1
  21127. _ACEOF
  21128. # assume 64 bit
  21129. initconfigdir="/$PACKAGE_NAME/config"
  21130. perlexec='/opt/perl_64/bin/perl'
  21131. platform="hpux"
  21132. ;;
  21133. sparc-sun-solaris*)
  21134. cat >>confdefs.h <<\_ACEOF
  21135. #define XP_UNIX 1
  21136. _ACEOF
  21137. cat >>confdefs.h <<\_ACEOF
  21138. #define SVR4 1
  21139. _ACEOF
  21140. cat >>confdefs.h <<\_ACEOF
  21141. #define __svr4 1
  21142. _ACEOF
  21143. cat >>confdefs.h <<\_ACEOF
  21144. #define __svr4__ 1
  21145. _ACEOF
  21146. cat >>confdefs.h <<\_ACEOF
  21147. #define _SVID_GETTOD 1
  21148. _ACEOF
  21149. cat >>confdefs.h <<\_ACEOF
  21150. #define SOLARIS 1
  21151. _ACEOF
  21152. cat >>confdefs.h <<\_ACEOF
  21153. #define CPU_sparc
  21154. _ACEOF
  21155. cat >>confdefs.h <<\_ACEOF
  21156. #define OS_solaris 1
  21157. _ACEOF
  21158. cat >>confdefs.h <<\_ACEOF
  21159. #define sunos5 1
  21160. _ACEOF
  21161. cat >>confdefs.h <<\_ACEOF
  21162. #define OSVERSION 509
  21163. _ACEOF
  21164. cat >>confdefs.h <<\_ACEOF
  21165. #define _REENTRANT 1
  21166. _ACEOF
  21167. cat >>confdefs.h <<\_ACEOF
  21168. #define NO_DOMAINNAME 1
  21169. _ACEOF
  21170. cat >>confdefs.h <<\_ACEOF
  21171. #define ATOMIC_64BIT_OPERATIONS 1
  21172. _ACEOF
  21173. LIBSOCKET=-lsocket
  21174. LIBSOCKET=$LIBSOCKET
  21175. LIBNSL=-lnsl
  21176. LIBNSL=$LIBNSL
  21177. LIBDL=-ldl
  21178. LIBDL=$LIBDL
  21179. LIBCSTD=-lCstd
  21180. LIBCSTD=$LIBCSTD
  21181. LIBCRUN=-lCrun
  21182. LIBCRUN=$LIBCRUN
  21183. platform="solaris"
  21184. # assume 64 bit
  21185. perlexec='/opt/perl5x/bin/perl'
  21186. # relative to sysconfdir
  21187. initdir=/init.d
  21188. ;;
  21189. *)
  21190. platform=""
  21191. ;;
  21192. esac
  21193. # set default initconfigdir if not already set
  21194. # value will be set so as to be relative to $(sysconfdir)
  21195. if test -z "$initconfigdir" ; then
  21196. if test -d /etc/sysconfig ; then
  21197. initconfigdir=/sysconfig
  21198. elif test -d /etc/default ; then
  21199. initconfigdir=/default
  21200. else
  21201. initconfigdir="/$PACKAGE_NAME/config"
  21202. fi
  21203. fi
  21204. if test "$platform" = "hpux"; then
  21205. HPUX_TRUE=
  21206. HPUX_FALSE='#'
  21207. else
  21208. HPUX_TRUE='#'
  21209. HPUX_FALSE=
  21210. fi
  21211. if test "$platform" = "solaris"; then
  21212. SOLARIS_TRUE=
  21213. SOLARIS_FALSE='#'
  21214. else
  21215. SOLARIS_TRUE='#'
  21216. SOLARIS_FALSE=
  21217. fi
  21218. # Check for library dependencies
  21219. # BEGIN COPYRIGHT BLOCK
  21220. # Copyright (C) 2007 Red Hat, Inc.
  21221. # All rights reserved.
  21222. #
  21223. # This program is free software; you can redistribute it and/or
  21224. # modify it under the terms of the GNU General Public License
  21225. # as published by the Free Software Foundation; either version 2
  21226. # of the License, or (at your option) any later version.
  21227. #
  21228. # This program is distributed in the hope that it will be useful,
  21229. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21230. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21231. # GNU General Public License for more details.
  21232. #
  21233. # You should have received a copy of the GNU General Public License
  21234. # along with this program; if not, write to the Free Software
  21235. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21236. #
  21237. # END COPYRIGHT BLOCK
  21238. { echo "$as_me:$LINENO: checking for NSPR..." >&5
  21239. echo "$as_me: checking for NSPR..." >&6;}
  21240. # check for --with-nspr
  21241. echo "$as_me:$LINENO: checking for --with-nspr" >&5
  21242. echo $ECHO_N "checking for --with-nspr... $ECHO_C" >&6
  21243. # Check whether --with-nspr or --without-nspr was given.
  21244. if test "${with_nspr+set}" = set; then
  21245. withval="$with_nspr"
  21246. if test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  21247. then
  21248. echo "$as_me:$LINENO: result: using $withval" >&5
  21249. echo "${ECHO_T}using $withval" >&6
  21250. NSPRDIR=$withval
  21251. nspr_inc="-I$NSPRDIR/include"
  21252. nspr_lib="-L$NSPRDIR/lib"
  21253. nspr_libdir="$NSPRDIR/lib"
  21254. else
  21255. echo
  21256. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21257. echo "$as_me: error: $withval not found" >&2;}
  21258. { (exit 1); exit 1; }; }
  21259. fi
  21260. else
  21261. echo "$as_me:$LINENO: result: no" >&5
  21262. echo "${ECHO_T}no" >&6
  21263. fi;
  21264. # check for --with-nspr-inc
  21265. echo "$as_me:$LINENO: checking for --with-nspr-inc" >&5
  21266. echo $ECHO_N "checking for --with-nspr-inc... $ECHO_C" >&6
  21267. # Check whether --with-nspr-inc or --without-nspr-inc was given.
  21268. if test "${with_nspr_inc+set}" = set; then
  21269. withval="$with_nspr_inc"
  21270. if test -e "$withval"/nspr.h
  21271. then
  21272. echo "$as_me:$LINENO: result: using $withval" >&5
  21273. echo "${ECHO_T}using $withval" >&6
  21274. nspr_inc="-I$withval"
  21275. else
  21276. echo
  21277. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21278. echo "$as_me: error: $withval not found" >&2;}
  21279. { (exit 1); exit 1; }; }
  21280. fi
  21281. else
  21282. echo "$as_me:$LINENO: result: no" >&5
  21283. echo "${ECHO_T}no" >&6
  21284. fi;
  21285. # check for --with-nspr-lib
  21286. echo "$as_me:$LINENO: checking for --with-nspr-lib" >&5
  21287. echo $ECHO_N "checking for --with-nspr-lib... $ECHO_C" >&6
  21288. # Check whether --with-nspr-lib or --without-nspr-lib was given.
  21289. if test "${with_nspr_lib+set}" = set; then
  21290. withval="$with_nspr_lib"
  21291. if test -d "$withval"
  21292. then
  21293. echo "$as_me:$LINENO: result: using $withval" >&5
  21294. echo "${ECHO_T}using $withval" >&6
  21295. nspr_lib="-L$withval"
  21296. nspr_libdir="$withval"
  21297. else
  21298. echo
  21299. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21300. echo "$as_me: error: $withval not found" >&2;}
  21301. { (exit 1); exit 1; }; }
  21302. fi
  21303. else
  21304. echo "$as_me:$LINENO: result: no" >&5
  21305. echo "${ECHO_T}no" >&6
  21306. fi;
  21307. # if NSPR is not found yet, try pkg-config
  21308. # last resort
  21309. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  21310. # Extract the first word of "pkg-config", so it can be a program name with args.
  21311. set dummy pkg-config; ac_word=$2
  21312. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21313. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21314. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21315. echo $ECHO_N "(cached) $ECHO_C" >&6
  21316. else
  21317. case $PKG_CONFIG in
  21318. [\\/]* | ?:[\\/]*)
  21319. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21320. ;;
  21321. *)
  21322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21323. for as_dir in $PATH
  21324. do
  21325. IFS=$as_save_IFS
  21326. test -z "$as_dir" && as_dir=.
  21327. for ac_exec_ext in '' $ac_executable_extensions; do
  21328. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21329. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21330. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21331. break 2
  21332. fi
  21333. done
  21334. done
  21335. ;;
  21336. esac
  21337. fi
  21338. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21339. if test -n "$PKG_CONFIG"; then
  21340. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21341. echo "${ECHO_T}$PKG_CONFIG" >&6
  21342. else
  21343. echo "$as_me:$LINENO: result: no" >&5
  21344. echo "${ECHO_T}no" >&6
  21345. fi
  21346. echo "$as_me:$LINENO: checking for nspr with pkg-config" >&5
  21347. echo $ECHO_N "checking for nspr with pkg-config... $ECHO_C" >&6
  21348. if test -n "$PKG_CONFIG"; then
  21349. if $PKG_CONFIG --exists nspr; then
  21350. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  21351. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  21352. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  21353. echo "$as_me:$LINENO: result: using system NSPR" >&5
  21354. echo "${ECHO_T}using system NSPR" >&6
  21355. elif $PKG_CONFIG --exists dirsec-nspr; then
  21356. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  21357. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  21358. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  21359. echo "$as_me:$LINENO: result: using system dirsec NSPR" >&5
  21360. echo "${ECHO_T}using system dirsec NSPR" >&6
  21361. else
  21362. { { echo "$as_me:$LINENO: error: NSPR not found, specify with --with-nspr." >&5
  21363. echo "$as_me: error: NSPR not found, specify with --with-nspr." >&2;}
  21364. { (exit 1); exit 1; }; }
  21365. fi
  21366. fi
  21367. fi
  21368. # BEGIN COPYRIGHT BLOCK
  21369. # Copyright (C) 2007 Red Hat, Inc.
  21370. # All rights reserved.
  21371. #
  21372. # This program is free software; you can redistribute it and/or
  21373. # modify it under the terms of the GNU General Public License
  21374. # as published by the Free Software Foundation; either version 2
  21375. # of the License, or (at your option) any later version.
  21376. #
  21377. # This program is distributed in the hope that it will be useful,
  21378. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21379. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21380. # GNU General Public License for more details.
  21381. #
  21382. # You should have received a copy of the GNU General Public License
  21383. # along with this program; if not, write to the Free Software
  21384. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21385. #
  21386. # END COPYRIGHT BLOCK
  21387. { echo "$as_me:$LINENO: checking for NSS..." >&5
  21388. echo "$as_me: checking for NSS..." >&6;}
  21389. # check for --with-nss
  21390. echo "$as_me:$LINENO: checking for --with-nss" >&5
  21391. echo $ECHO_N "checking for --with-nss... $ECHO_C" >&6
  21392. # Check whether --with-nss or --without-nss was given.
  21393. if test "${with_nss+set}" = set; then
  21394. withval="$with_nss"
  21395. if test -e "$withval"/include/nss.h -a -d "$withval"/lib
  21396. then
  21397. echo "$as_me:$LINENO: result: using $withval" >&5
  21398. echo "${ECHO_T}using $withval" >&6
  21399. NSSDIR=$withval
  21400. nss_inc="-I$NSSDIR/include"
  21401. nss_lib="-L$NSSDIR/lib"
  21402. nss_libdir="$NSSDIR/lib"
  21403. else
  21404. echo
  21405. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21406. echo "$as_me: error: $withval not found" >&2;}
  21407. { (exit 1); exit 1; }; }
  21408. fi
  21409. else
  21410. echo "$as_me:$LINENO: result: no" >&5
  21411. echo "${ECHO_T}no" >&6
  21412. fi;
  21413. # check for --with-nss-inc
  21414. echo "$as_me:$LINENO: checking for --with-nss-inc" >&5
  21415. echo $ECHO_N "checking for --with-nss-inc... $ECHO_C" >&6
  21416. # Check whether --with-nss-inc or --without-nss-inc was given.
  21417. if test "${with_nss_inc+set}" = set; then
  21418. withval="$with_nss_inc"
  21419. if test -e "$withval"/nss.h
  21420. then
  21421. echo "$as_me:$LINENO: result: using $withval" >&5
  21422. echo "${ECHO_T}using $withval" >&6
  21423. nss_inc="-I$withval"
  21424. else
  21425. echo
  21426. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21427. echo "$as_me: error: $withval not found" >&2;}
  21428. { (exit 1); exit 1; }; }
  21429. fi
  21430. else
  21431. echo "$as_me:$LINENO: result: no" >&5
  21432. echo "${ECHO_T}no" >&6
  21433. fi;
  21434. # check for --with-nss-lib
  21435. echo "$as_me:$LINENO: checking for --with-nss-lib" >&5
  21436. echo $ECHO_N "checking for --with-nss-lib... $ECHO_C" >&6
  21437. # Check whether --with-nss-lib or --without-nss-lib was given.
  21438. if test "${with_nss_lib+set}" = set; then
  21439. withval="$with_nss_lib"
  21440. if test -d "$withval"
  21441. then
  21442. echo "$as_me:$LINENO: result: using $withval" >&5
  21443. echo "${ECHO_T}using $withval" >&6
  21444. nss_lib="-L$withval"
  21445. nss_libdir="$withval"
  21446. else
  21447. echo
  21448. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21449. echo "$as_me: error: $withval not found" >&2;}
  21450. { (exit 1); exit 1; }; }
  21451. fi
  21452. else
  21453. echo "$as_me:$LINENO: result: no" >&5
  21454. echo "${ECHO_T}no" >&6
  21455. fi;
  21456. # if NSS is not found yet, try pkg-config
  21457. # last resort
  21458. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  21459. # Extract the first word of "pkg-config", so it can be a program name with args.
  21460. set dummy pkg-config; ac_word=$2
  21461. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21462. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21463. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21464. echo $ECHO_N "(cached) $ECHO_C" >&6
  21465. else
  21466. case $PKG_CONFIG in
  21467. [\\/]* | ?:[\\/]*)
  21468. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21469. ;;
  21470. *)
  21471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21472. for as_dir in $PATH
  21473. do
  21474. IFS=$as_save_IFS
  21475. test -z "$as_dir" && as_dir=.
  21476. for ac_exec_ext in '' $ac_executable_extensions; do
  21477. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21478. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21479. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21480. break 2
  21481. fi
  21482. done
  21483. done
  21484. ;;
  21485. esac
  21486. fi
  21487. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21488. if test -n "$PKG_CONFIG"; then
  21489. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21490. echo "${ECHO_T}$PKG_CONFIG" >&6
  21491. else
  21492. echo "$as_me:$LINENO: result: no" >&5
  21493. echo "${ECHO_T}no" >&6
  21494. fi
  21495. echo "$as_me:$LINENO: checking for nss with pkg-config" >&5
  21496. echo $ECHO_N "checking for nss with pkg-config... $ECHO_C" >&6
  21497. if test -n "$PKG_CONFIG"; then
  21498. if $PKG_CONFIG --exists nss; then
  21499. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  21500. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  21501. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  21502. echo "$as_me:$LINENO: result: using system NSS" >&5
  21503. echo "${ECHO_T}using system NSS" >&6
  21504. elif $PKG_CONFIG --exists dirsec-nss; then
  21505. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  21506. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  21507. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  21508. echo "$as_me:$LINENO: result: using system dirsec NSS" >&5
  21509. echo "${ECHO_T}using system dirsec NSS" >&6
  21510. else
  21511. { { echo "$as_me:$LINENO: error: NSS not found, specify with --with-nss." >&5
  21512. echo "$as_me: error: NSS not found, specify with --with-nss." >&2;}
  21513. { (exit 1); exit 1; }; }
  21514. fi
  21515. fi
  21516. fi
  21517. # BEGIN COPYRIGHT BLOCK
  21518. # Copyright (C) 2007 Red Hat, Inc.
  21519. # All rights reserved.
  21520. #
  21521. # This program is free software; you can redistribute it and/or
  21522. # modify it under the terms of the GNU General Public License
  21523. # as published by the Free Software Foundation; either version 2
  21524. # of the License, or (at your option) any later version.
  21525. #
  21526. # This program is distributed in the hope that it will be useful,
  21527. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21528. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21529. # GNU General Public License for more details.
  21530. #
  21531. # You should have received a copy of the GNU General Public License
  21532. # along with this program; if not, write to the Free Software
  21533. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21534. #
  21535. # END COPYRIGHT BLOCK
  21536. { echo "$as_me:$LINENO: checking for LDAPSDK..." >&5
  21537. echo "$as_me: checking for LDAPSDK..." >&6;}
  21538. # check for --with-ldapsdk
  21539. echo "$as_me:$LINENO: checking for --with-ldapsdk" >&5
  21540. echo $ECHO_N "checking for --with-ldapsdk... $ECHO_C" >&6
  21541. # Check whether --with-ldapsdk or --without-ldapsdk was given.
  21542. if test "${with_ldapsdk+set}" = set; then
  21543. withval="$with_ldapsdk"
  21544. if test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  21545. then
  21546. echo "$as_me:$LINENO: result: using $withval" >&5
  21547. echo "${ECHO_T}using $withval" >&6
  21548. LDAPSDKDIR=$withval
  21549. ldapsdk_inc="-I$LDAPSDKDIR/include"
  21550. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  21551. ldapsdk_libdir="$LDAPSDKDIR/lib"
  21552. ldapsdk_bindir="$LDAPSDKDIR/bin"
  21553. else
  21554. echo
  21555. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21556. echo "$as_me: error: $withval not found" >&2;}
  21557. { (exit 1); exit 1; }; }
  21558. fi
  21559. else
  21560. echo "$as_me:$LINENO: result: no" >&5
  21561. echo "${ECHO_T}no" >&6
  21562. fi;
  21563. # check for --with-ldapsdk-inc
  21564. echo "$as_me:$LINENO: checking for --with-ldapsdk-inc" >&5
  21565. echo $ECHO_N "checking for --with-ldapsdk-inc... $ECHO_C" >&6
  21566. # Check whether --with-ldapsdk-inc or --without-ldapsdk-inc was given.
  21567. if test "${with_ldapsdk_inc+set}" = set; then
  21568. withval="$with_ldapsdk_inc"
  21569. if test -e "$withval"/ldap.h
  21570. then
  21571. echo "$as_me:$LINENO: result: using $withval" >&5
  21572. echo "${ECHO_T}using $withval" >&6
  21573. ldapsdk_inc="-I$withval"
  21574. else
  21575. echo
  21576. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21577. echo "$as_me: error: $withval not found" >&2;}
  21578. { (exit 1); exit 1; }; }
  21579. fi
  21580. else
  21581. echo "$as_me:$LINENO: result: no" >&5
  21582. echo "${ECHO_T}no" >&6
  21583. fi;
  21584. # check for --with-ldapsdk-lib
  21585. echo "$as_me:$LINENO: checking for --with-ldapsdk-lib" >&5
  21586. echo $ECHO_N "checking for --with-ldapsdk-lib... $ECHO_C" >&6
  21587. # Check whether --with-ldapsdk-lib or --without-ldapsdk-lib was given.
  21588. if test "${with_ldapsdk_lib+set}" = set; then
  21589. withval="$with_ldapsdk_lib"
  21590. if test -d "$withval"
  21591. then
  21592. echo "$as_me:$LINENO: result: using $withval" >&5
  21593. echo "${ECHO_T}using $withval" >&6
  21594. ldapsdk_lib="-L$withval"
  21595. ldapsdk_libdir="$withval"
  21596. else
  21597. echo
  21598. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21599. echo "$as_me: error: $withval not found" >&2;}
  21600. { (exit 1); exit 1; }; }
  21601. fi
  21602. else
  21603. echo "$as_me:$LINENO: result: no" >&5
  21604. echo "${ECHO_T}no" >&6
  21605. fi;
  21606. # check for --with-ldapsdk-bin
  21607. echo "$as_me:$LINENO: checking for --with-ldapsdk-bin" >&5
  21608. echo $ECHO_N "checking for --with-ldapsdk-bin... $ECHO_C" >&6
  21609. # Check whether --with-ldapsdk-bin or --without-ldapsdk-bin was given.
  21610. if test "${with_ldapsdk_bin+set}" = set; then
  21611. withval="$with_ldapsdk_bin"
  21612. if test -d "$withval"
  21613. then
  21614. echo "$as_me:$LINENO: result: using $withval" >&5
  21615. echo "${ECHO_T}using $withval" >&6
  21616. ldapsdk_bindir="$withval"
  21617. else
  21618. echo
  21619. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21620. echo "$as_me: error: $withval not found" >&2;}
  21621. { (exit 1); exit 1; }; }
  21622. fi
  21623. else
  21624. echo "$as_me:$LINENO: result: no" >&5
  21625. echo "${ECHO_T}no" >&6
  21626. fi;
  21627. # if LDAPSDK is not found yet, try pkg-config
  21628. # last resort
  21629. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  21630. # Extract the first word of "pkg-config", so it can be a program name with args.
  21631. set dummy pkg-config; ac_word=$2
  21632. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21633. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21634. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21635. echo $ECHO_N "(cached) $ECHO_C" >&6
  21636. else
  21637. case $PKG_CONFIG in
  21638. [\\/]* | ?:[\\/]*)
  21639. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21640. ;;
  21641. *)
  21642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21643. for as_dir in $PATH
  21644. do
  21645. IFS=$as_save_IFS
  21646. test -z "$as_dir" && as_dir=.
  21647. for ac_exec_ext in '' $ac_executable_extensions; do
  21648. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21649. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21650. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21651. break 2
  21652. fi
  21653. done
  21654. done
  21655. ;;
  21656. esac
  21657. fi
  21658. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21659. if test -n "$PKG_CONFIG"; then
  21660. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21661. echo "${ECHO_T}$PKG_CONFIG" >&6
  21662. else
  21663. echo "$as_me:$LINENO: result: no" >&5
  21664. echo "${ECHO_T}no" >&6
  21665. fi
  21666. echo "$as_me:$LINENO: checking for mozldap with pkg-config" >&5
  21667. echo $ECHO_N "checking for mozldap with pkg-config... $ECHO_C" >&6
  21668. if test -n "$PKG_CONFIG"; then
  21669. if $PKG_CONFIG --exists mozldap6; then
  21670. mozldappkg=mozldap6
  21671. elif $PKG_CONFIG --exists mozldap; then
  21672. mozldappkg=mozldap
  21673. else
  21674. { { echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  21675. echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  21676. { (exit 1); exit 1; }; }
  21677. fi
  21678. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  21679. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  21680. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  21681. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  21682. echo "$as_me:$LINENO: result: using system $mozldappkg" >&5
  21683. echo "${ECHO_T}using system $mozldappkg" >&6
  21684. fi
  21685. fi
  21686. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  21687. { { echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  21688. echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  21689. { (exit 1); exit 1; }; }
  21690. fi
  21691. if test -z "$ldapsdk_bindir" ; then
  21692. if -d $libdir/mozldap6 ; then
  21693. ldapsdk_bindir=$libdir/mozldap6
  21694. else
  21695. ldapsdk_bindir=$libdir/mozldap
  21696. fi
  21697. fi
  21698. save_cppflags="$CPPFLAGS"
  21699. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  21700. echo "$as_me:$LINENO: checking for ldap.h" >&5
  21701. echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
  21702. if test "${ac_cv_header_ldap_h+set}" = set; then
  21703. echo $ECHO_N "(cached) $ECHO_C" >&6
  21704. else
  21705. cat >conftest.$ac_ext <<_ACEOF
  21706. /* confdefs.h. */
  21707. _ACEOF
  21708. cat confdefs.h >>conftest.$ac_ext
  21709. cat >>conftest.$ac_ext <<_ACEOF
  21710. /* end confdefs.h. */
  21711. #include <ldap-standard.h>
  21712. #if LDAP_VENDOR_VERSION < 600
  21713. #error The LDAP C SDK version is not supported
  21714. #endif
  21715. #include <ldap.h>
  21716. _ACEOF
  21717. rm -f conftest.$ac_objext
  21718. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21719. (eval $ac_compile) 2>conftest.er1
  21720. ac_status=$?
  21721. grep -v '^ *+' conftest.er1 >conftest.err
  21722. rm -f conftest.er1
  21723. cat conftest.err >&5
  21724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21725. (exit $ac_status); } &&
  21726. { ac_try='test -z "$ac_c_werror_flag"
  21727. || test ! -s conftest.err'
  21728. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21729. (eval $ac_try) 2>&5
  21730. ac_status=$?
  21731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21732. (exit $ac_status); }; } &&
  21733. { ac_try='test -s conftest.$ac_objext'
  21734. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21735. (eval $ac_try) 2>&5
  21736. ac_status=$?
  21737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21738. (exit $ac_status); }; }; then
  21739. ac_cv_header_ldap_h=yes
  21740. else
  21741. echo "$as_me: failed program was:" >&5
  21742. sed 's/^/| /' conftest.$ac_ext >&5
  21743. ac_cv_header_ldap_h=no
  21744. fi
  21745. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21746. fi
  21747. echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
  21748. echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
  21749. if test $ac_cv_header_ldap_h = yes; then
  21750. isversion6=1
  21751. else
  21752. isversion6=
  21753. fi
  21754. CPPFLAGS="$save_cppflags"
  21755. if test -z "$isversion6" ; then
  21756. { { echo "$as_me:$LINENO: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&5
  21757. echo "$as_me: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&2;}
  21758. { (exit 1); exit 1; }; }
  21759. fi
  21760. # BEGIN COPYRIGHT BLOCK
  21761. # Copyright (C) 2007 Red Hat, Inc.
  21762. # All rights reserved.
  21763. #
  21764. # This program is free software; you can redistribute it and/or
  21765. # modify it under the terms of the GNU General Public License
  21766. # as published by the Free Software Foundation; either version 2
  21767. # of the License, or (at your option) any later version.
  21768. #
  21769. # This program is distributed in the hope that it will be useful,
  21770. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21771. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21772. # GNU General Public License for more details.
  21773. #
  21774. # You should have received a copy of the GNU General Public License
  21775. # along with this program; if not, write to the Free Software
  21776. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21777. #
  21778. # END COPYRIGHT BLOCK
  21779. { echo "$as_me:$LINENO: checking for db..." >&5
  21780. echo "$as_me: checking for db..." >&6;}
  21781. echo "$as_me:$LINENO: checking for --with-db" >&5
  21782. echo $ECHO_N "checking for --with-db... $ECHO_C" >&6
  21783. # Check whether --with-db or --without-db was given.
  21784. if test "${with_db+set}" = set; then
  21785. withval="$with_db"
  21786. if test "$withval" = "yes"; then
  21787. echo "$as_me:$LINENO: result: yes" >&5
  21788. echo "${ECHO_T}yes" >&6
  21789. if test -f "/usr/include/db.h"; then
  21790. db_incdir="/usr/include"
  21791. db_inc="-I/usr/include"
  21792. db_lib='-L$(libdir)'
  21793. db_libdir='$(libdir)'
  21794. else
  21795. { { echo "$as_me:$LINENO: error: db.h not found" >&5
  21796. echo "$as_me: error: db.h not found" >&2;}
  21797. { (exit 1); exit 1; }; }
  21798. fi
  21799. elif test -d "$withval"/include -a -d "$withval"/lib; then
  21800. echo "$as_me:$LINENO: result: using $withval" >&5
  21801. echo "${ECHO_T}using $withval" >&6
  21802. DBDIR=$withval
  21803. db_lib="-L$DBDIR/lib"
  21804. db_libdir="$DBDIR/lib"
  21805. db_incdir="$DBDIR/include"
  21806. if ! test -e "$db_incdir/db.h" ; then
  21807. { { echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  21808. echo "$as_me: error: $withval include dir not found" >&2;}
  21809. { (exit 1); exit 1; }; }
  21810. fi
  21811. db_inc="-I$db_incdir"
  21812. else
  21813. echo
  21814. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21815. echo "$as_me: error: $withval not found" >&2;}
  21816. { (exit 1); exit 1; }; }
  21817. fi
  21818. else
  21819. echo "$as_me:$LINENO: result: no" >&5
  21820. echo "${ECHO_T}no" >&6
  21821. fi;
  21822. if test -z "$db_inc"; then
  21823. echo "$as_me:$LINENO: checking for db.h" >&5
  21824. echo $ECHO_N "checking for db.h... $ECHO_C" >&6
  21825. if test -f "/usr/include/db.h"; then
  21826. echo "$as_me:$LINENO: result: using /usr/include/db.h" >&5
  21827. echo "${ECHO_T}using /usr/include/db.h" >&6
  21828. db_incdir="/usr/include"
  21829. db_inc="-I/usr/include"
  21830. db_lib='-L$(libdir)'
  21831. db_libdir='$(libdir)'
  21832. else
  21833. echo "$as_me:$LINENO: result: no" >&5
  21834. echo "${ECHO_T}no" >&6
  21835. { { echo "$as_me:$LINENO: error: db not found, specify with --with-db." >&5
  21836. echo "$as_me: error: db not found, specify with --with-db." >&2;}
  21837. { (exit 1); exit 1; }; }
  21838. fi
  21839. fi
  21840. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  21841. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  21842. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  21843. db_libver=${db_ver_maj}.${db_ver_min}
  21844. save_ldflags="$LDFLAGS"
  21845. LDFLAGS="$db_lib $LDFLAGS"
  21846. as_ac_Lib=`echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  21847. echo "$as_me:$LINENO: checking for db_create in -ldb-$db_libver" >&5
  21848. echo $ECHO_N "checking for db_create in -ldb-$db_libver... $ECHO_C" >&6
  21849. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  21850. echo $ECHO_N "(cached) $ECHO_C" >&6
  21851. else
  21852. ac_check_lib_save_LIBS=$LIBS
  21853. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  21854. cat >conftest.$ac_ext <<_ACEOF
  21855. /* confdefs.h. */
  21856. _ACEOF
  21857. cat confdefs.h >>conftest.$ac_ext
  21858. cat >>conftest.$ac_ext <<_ACEOF
  21859. /* end confdefs.h. */
  21860. /* Override any gcc2 internal prototype to avoid an error. */
  21861. #ifdef __cplusplus
  21862. extern "C"
  21863. #endif
  21864. /* We use char because int might match the return type of a gcc2
  21865. builtin and then its argument prototype would still apply. */
  21866. char db_create ();
  21867. int
  21868. main ()
  21869. {
  21870. db_create ();
  21871. ;
  21872. return 0;
  21873. }
  21874. _ACEOF
  21875. rm -f conftest.$ac_objext conftest$ac_exeext
  21876. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21877. (eval $ac_link) 2>conftest.er1
  21878. ac_status=$?
  21879. grep -v '^ *+' conftest.er1 >conftest.err
  21880. rm -f conftest.er1
  21881. cat conftest.err >&5
  21882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21883. (exit $ac_status); } &&
  21884. { ac_try='test -z "$ac_c_werror_flag"
  21885. || test ! -s conftest.err'
  21886. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21887. (eval $ac_try) 2>&5
  21888. ac_status=$?
  21889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21890. (exit $ac_status); }; } &&
  21891. { ac_try='test -s conftest$ac_exeext'
  21892. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21893. (eval $ac_try) 2>&5
  21894. ac_status=$?
  21895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21896. (exit $ac_status); }; }; then
  21897. eval "$as_ac_Lib=yes"
  21898. else
  21899. echo "$as_me: failed program was:" >&5
  21900. sed 's/^/| /' conftest.$ac_ext >&5
  21901. eval "$as_ac_Lib=no"
  21902. fi
  21903. rm -f conftest.err conftest.$ac_objext \
  21904. conftest$ac_exeext conftest.$ac_ext
  21905. LIBS=$ac_check_lib_save_LIBS
  21906. fi
  21907. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  21908. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  21909. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  21910. true
  21911. else
  21912. { { echo "$as_me:$LINENO: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&5
  21913. echo "$as_me: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&2;}
  21914. { (exit 1); exit 1; }; }
  21915. fi
  21916. LDFLAGS="$save_ldflags"
  21917. # if DB is not found yet, try pkg-config
  21918. # last resort
  21919. # Although the other db_* variables are correctly assigned at this point,
  21920. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  21921. if test -n "$PKG_CONFIG"; then
  21922. if $PKG_CONFIG --exists db; then
  21923. db_bindir=`$PKG_CONFIG --variable=bindir db`
  21924. else
  21925. db_bindir=/usr/bin
  21926. fi
  21927. else
  21928. db_bindir=/usr/bin
  21929. fi
  21930. # BEGIN COPYRIGHT BLOCK
  21931. # Copyright (C) 2007 Red Hat, Inc.
  21932. # All rights reserved.
  21933. #
  21934. # This program is free software; you can redistribute it and/or
  21935. # modify it under the terms of the GNU General Public License
  21936. # as published by the Free Software Foundation; either version 2
  21937. # of the License, or (at your option) any later version.
  21938. #
  21939. # This program is distributed in the hope that it will be useful,
  21940. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21941. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21942. # GNU General Public License for more details.
  21943. #
  21944. # You should have received a copy of the GNU General Public License
  21945. # along with this program; if not, write to the Free Software
  21946. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21947. #
  21948. # END COPYRIGHT BLOCK
  21949. # -*- tab-width: 4; -*-
  21950. # Configure paths for SASL
  21951. { echo "$as_me:$LINENO: checking for sasl..." >&5
  21952. echo "$as_me: checking for sasl..." >&6;}
  21953. echo "$as_me:$LINENO: checking for --with-sasl" >&5
  21954. echo $ECHO_N "checking for --with-sasl... $ECHO_C" >&6
  21955. # Check whether --with-sasl or --without-sasl was given.
  21956. if test "${with_sasl+set}" = set; then
  21957. withval="$with_sasl"
  21958. if test "$withval" = "yes"; then
  21959. echo "$as_me:$LINENO: result: yes" >&5
  21960. echo "${ECHO_T}yes" >&6
  21961. if test -f /usr/include/sasl/sasl.h; then
  21962. sasl_inc="-I/usr/include/sasl"
  21963. elif test -f /usr/include/sasl.h; then
  21964. sasl_inc="-I/usr/include"
  21965. else
  21966. { { echo "$as_me:$LINENO: error: sasl.h not found" >&5
  21967. echo "$as_me: error: sasl.h not found" >&2;}
  21968. { (exit 1); exit 1; }; }
  21969. fi
  21970. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  21971. echo "$as_me:$LINENO: result: using $withval" >&5
  21972. echo "${ECHO_T}using $withval" >&6
  21973. if test -f "$withval/include/sasl/sasl.h"; then
  21974. sasl_inc="-I$withval/include/sasl"
  21975. elif test -f "$withval/include/sasl.h"; then
  21976. sasl_inc="-I$withval/include"
  21977. else
  21978. { { echo "$as_me:$LINENO: error: sasl.h not found" >&5
  21979. echo "$as_me: error: sasl.h not found" >&2;}
  21980. { (exit 1); exit 1; }; }
  21981. fi
  21982. sasl_lib="-L$withval/lib"
  21983. sasl_libdir="$withval/lib"
  21984. else
  21985. echo "$as_me:$LINENO: result: yes" >&5
  21986. echo "${ECHO_T}yes" >&6
  21987. { { echo "$as_me:$LINENO: error: sasl not found in $withval" >&5
  21988. echo "$as_me: error: sasl not found in $withval" >&2;}
  21989. { (exit 1); exit 1; }; }
  21990. fi
  21991. else
  21992. echo "$as_me:$LINENO: result: no" >&5
  21993. echo "${ECHO_T}no" >&6
  21994. fi;
  21995. echo "$as_me:$LINENO: checking for --with-sasl-inc" >&5
  21996. echo $ECHO_N "checking for --with-sasl-inc... $ECHO_C" >&6
  21997. # Check whether --with-sasl-inc or --without-sasl-inc was given.
  21998. if test "${with_sasl_inc+set}" = set; then
  21999. withval="$with_sasl_inc"
  22000. if test -f "$withval"/sasl.h; then
  22001. echo "$as_me:$LINENO: result: using $withval" >&5
  22002. echo "${ECHO_T}using $withval" >&6
  22003. sasl_inc="-I$withval"
  22004. else
  22005. echo
  22006. { { echo "$as_me:$LINENO: error: $withval/sasl.h not found" >&5
  22007. echo "$as_me: error: $withval/sasl.h not found" >&2;}
  22008. { (exit 1); exit 1; }; }
  22009. fi
  22010. else
  22011. echo "$as_me:$LINENO: result: no" >&5
  22012. echo "${ECHO_T}no" >&6
  22013. fi;
  22014. echo "$as_me:$LINENO: checking for --with-sasl-lib" >&5
  22015. echo $ECHO_N "checking for --with-sasl-lib... $ECHO_C" >&6
  22016. # Check whether --with-sasl-lib or --without-sasl-lib was given.
  22017. if test "${with_sasl_lib+set}" = set; then
  22018. withval="$with_sasl_lib"
  22019. if test -d "$withval"; then
  22020. echo "$as_me:$LINENO: result: using $withval" >&5
  22021. echo "${ECHO_T}using $withval" >&6
  22022. sasl_lib="-L$withval"
  22023. sasl_libdir="$withval"
  22024. else
  22025. echo
  22026. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22027. echo "$as_me: error: $withval not found" >&2;}
  22028. { (exit 1); exit 1; }; }
  22029. fi
  22030. else
  22031. echo "$as_me:$LINENO: result: no" >&5
  22032. echo "${ECHO_T}no" >&6
  22033. fi;
  22034. if test -z "$sasl_inc"; then
  22035. echo "$as_me:$LINENO: checking for sasl.h" >&5
  22036. echo $ECHO_N "checking for sasl.h... $ECHO_C" >&6
  22037. if test -f /usr/include/sasl/sasl.h; then
  22038. echo "$as_me:$LINENO: result: using /usr/include/sasl/sasl.h" >&5
  22039. echo "${ECHO_T}using /usr/include/sasl/sasl.h" >&6
  22040. sasl_inc="-I/usr/include/sasl"
  22041. elif test -f /usr/include/sasl.h; then
  22042. echo "$as_me:$LINENO: result: using /usr/include/sasl.h" >&5
  22043. echo "${ECHO_T}using /usr/include/sasl.h" >&6
  22044. sasl_inc="-I/usr/include"
  22045. else
  22046. echo "$as_me:$LINENO: result: no" >&5
  22047. echo "${ECHO_T}no" >&6
  22048. { { echo "$as_me:$LINENO: error: sasl not found, specify with --with-sasl." >&5
  22049. echo "$as_me: error: sasl not found, specify with --with-sasl." >&2;}
  22050. { (exit 1); exit 1; }; }
  22051. fi
  22052. fi
  22053. # BEGIN COPYRIGHT BLOCK
  22054. # Copyright (C) 2007 Red Hat, Inc.
  22055. # All rights reserved.
  22056. #
  22057. # This program is free software; you can redistribute it and/or
  22058. # modify it under the terms of the GNU General Public License
  22059. # as published by the Free Software Foundation; either version 2
  22060. # of the License, or (at your option) any later version.
  22061. #
  22062. # This program is distributed in the hope that it will be useful,
  22063. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22064. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22065. # GNU General Public License for more details.
  22066. #
  22067. # You should have received a copy of the GNU General Public License
  22068. # along with this program; if not, write to the Free Software
  22069. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22070. #
  22071. # END COPYRIGHT BLOCK
  22072. #
  22073. # Configure paths for SVRCORE
  22074. { echo "$as_me:$LINENO: checking for svrcore..." >&5
  22075. echo "$as_me: checking for svrcore..." >&6;}
  22076. echo "$as_me:$LINENO: checking for --with-svrcore" >&5
  22077. echo $ECHO_N "checking for --with-svrcore... $ECHO_C" >&6
  22078. # Check whether --with-svrcore or --without-svrcore was given.
  22079. if test "${with_svrcore+set}" = set; then
  22080. withval="$with_svrcore"
  22081. if test "$withval" = "yes"; then
  22082. echo "$as_me:$LINENO: result: yes" >&5
  22083. echo "${ECHO_T}yes" >&6
  22084. if test -f /usr/include/svrcore.h; then
  22085. svrcore_inc="-I/usr/include"
  22086. else
  22087. { { echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  22088. echo "$as_me: error: svrcore.h not found" >&2;}
  22089. { (exit 1); exit 1; }; }
  22090. fi
  22091. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  22092. echo "$as_me:$LINENO: result: using $withval" >&5
  22093. echo "${ECHO_T}using $withval" >&6
  22094. if test -f "$withval/include/svrcore.h"; then
  22095. svrcore_inc="-I$withval/include"
  22096. else
  22097. { { echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  22098. echo "$as_me: error: svrcore.h not found" >&2;}
  22099. { (exit 1); exit 1; }; }
  22100. fi
  22101. svrcore_lib="-L$withval/lib"
  22102. else
  22103. echo "$as_me:$LINENO: result: yes" >&5
  22104. echo "${ECHO_T}yes" >&6
  22105. { { echo "$as_me:$LINENO: error: svrcore not found in $withval" >&5
  22106. echo "$as_me: error: svrcore not found in $withval" >&2;}
  22107. { (exit 1); exit 1; }; }
  22108. fi
  22109. else
  22110. echo "$as_me:$LINENO: result: no" >&5
  22111. echo "${ECHO_T}no" >&6
  22112. fi;
  22113. echo "$as_me:$LINENO: checking for --with-svrcore-inc" >&5
  22114. echo $ECHO_N "checking for --with-svrcore-inc... $ECHO_C" >&6
  22115. # Check whether --with-svrcore-inc or --without-svrcore-inc was given.
  22116. if test "${with_svrcore_inc+set}" = set; then
  22117. withval="$with_svrcore_inc"
  22118. if test -f "$withval"/svrcore.h; then
  22119. echo "$as_me:$LINENO: result: using $withval" >&5
  22120. echo "${ECHO_T}using $withval" >&6
  22121. svrcore_inc="-I$withval"
  22122. else
  22123. echo
  22124. { { echo "$as_me:$LINENO: error: $withval/svrcore.h not found" >&5
  22125. echo "$as_me: error: $withval/svrcore.h not found" >&2;}
  22126. { (exit 1); exit 1; }; }
  22127. fi
  22128. else
  22129. echo "$as_me:$LINENO: result: no" >&5
  22130. echo "${ECHO_T}no" >&6
  22131. fi;
  22132. echo "$as_me:$LINENO: checking for --with-svrcore-lib" >&5
  22133. echo $ECHO_N "checking for --with-svrcore-lib... $ECHO_C" >&6
  22134. # Check whether --with-svrcore-lib or --without-svrcore-lib was given.
  22135. if test "${with_svrcore_lib+set}" = set; then
  22136. withval="$with_svrcore_lib"
  22137. if test -d "$withval"; then
  22138. echo "$as_me:$LINENO: result: using $withval" >&5
  22139. echo "${ECHO_T}using $withval" >&6
  22140. svrcore_lib="-L$withval"
  22141. else
  22142. echo
  22143. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22144. echo "$as_me: error: $withval not found" >&2;}
  22145. { (exit 1); exit 1; }; }
  22146. fi
  22147. else
  22148. echo "$as_me:$LINENO: result: no" >&5
  22149. echo "${ECHO_T}no" >&6
  22150. fi;
  22151. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  22152. # Extract the first word of "pkg-config", so it can be a program name with args.
  22153. set dummy pkg-config; ac_word=$2
  22154. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22155. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22156. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  22157. echo $ECHO_N "(cached) $ECHO_C" >&6
  22158. else
  22159. case $PKG_CONFIG in
  22160. [\\/]* | ?:[\\/]*)
  22161. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  22162. ;;
  22163. *)
  22164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22165. for as_dir in $PATH
  22166. do
  22167. IFS=$as_save_IFS
  22168. test -z "$as_dir" && as_dir=.
  22169. for ac_exec_ext in '' $ac_executable_extensions; do
  22170. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22171. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22172. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22173. break 2
  22174. fi
  22175. done
  22176. done
  22177. ;;
  22178. esac
  22179. fi
  22180. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  22181. if test -n "$PKG_CONFIG"; then
  22182. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  22183. echo "${ECHO_T}$PKG_CONFIG" >&6
  22184. else
  22185. echo "$as_me:$LINENO: result: no" >&5
  22186. echo "${ECHO_T}no" >&6
  22187. fi
  22188. echo "$as_me:$LINENO: checking for svrcore with pkg-config" >&5
  22189. echo $ECHO_N "checking for svrcore with pkg-config... $ECHO_C" >&6
  22190. if test -n "$PKG_CONFIG"; then
  22191. if $PKG_CONFIG --exists svrcore; then
  22192. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  22193. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  22194. echo "$as_me:$LINENO: result: using system svrcore" >&5
  22195. echo "${ECHO_T}using system svrcore" >&6
  22196. fi
  22197. fi
  22198. fi
  22199. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  22200. echo "$as_me:$LINENO: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  22201. echo $ECHO_N "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... $ECHO_C" >&6
  22202. if test "${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+set}" = set; then
  22203. echo $ECHO_N "(cached) $ECHO_C" >&6
  22204. else
  22205. ac_check_lib_save_LIBS=$LIBS
  22206. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  22207. cat >conftest.$ac_ext <<_ACEOF
  22208. /* confdefs.h. */
  22209. _ACEOF
  22210. cat confdefs.h >>conftest.$ac_ext
  22211. cat >>conftest.$ac_ext <<_ACEOF
  22212. /* end confdefs.h. */
  22213. /* Override any gcc2 internal prototype to avoid an error. */
  22214. #ifdef __cplusplus
  22215. extern "C"
  22216. #endif
  22217. /* We use char because int might match the return type of a gcc2
  22218. builtin and then its argument prototype would still apply. */
  22219. char SVRCORE_GetRegisteredPinObj ();
  22220. int
  22221. main ()
  22222. {
  22223. SVRCORE_GetRegisteredPinObj ();
  22224. ;
  22225. return 0;
  22226. }
  22227. _ACEOF
  22228. rm -f conftest.$ac_objext conftest$ac_exeext
  22229. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22230. (eval $ac_link) 2>conftest.er1
  22231. ac_status=$?
  22232. grep -v '^ *+' conftest.er1 >conftest.err
  22233. rm -f conftest.er1
  22234. cat conftest.err >&5
  22235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22236. (exit $ac_status); } &&
  22237. { ac_try='test -z "$ac_c_werror_flag"
  22238. || test ! -s conftest.err'
  22239. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22240. (eval $ac_try) 2>&5
  22241. ac_status=$?
  22242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22243. (exit $ac_status); }; } &&
  22244. { ac_try='test -s conftest$ac_exeext'
  22245. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22246. (eval $ac_try) 2>&5
  22247. ac_status=$?
  22248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22249. (exit $ac_status); }; }; then
  22250. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  22251. else
  22252. echo "$as_me: failed program was:" >&5
  22253. sed 's/^/| /' conftest.$ac_ext >&5
  22254. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  22255. fi
  22256. rm -f conftest.err conftest.$ac_objext \
  22257. conftest$ac_exeext conftest.$ac_ext
  22258. LIBS=$ac_check_lib_save_LIBS
  22259. fi
  22260. echo "$as_me:$LINENO: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  22261. echo "${ECHO_T}$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6
  22262. if test $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj = yes; then
  22263. havesvrcore=1
  22264. fi
  22265. if test -n "$havesvrcore" ; then
  22266. save_cppflags="$CPPFLAGS"
  22267. CPPFLAGS="$nss_inc $nspr_inc"
  22268. if test "${ac_cv_header_svrcore_h+set}" = set; then
  22269. echo "$as_me:$LINENO: checking for svrcore.h" >&5
  22270. echo $ECHO_N "checking for svrcore.h... $ECHO_C" >&6
  22271. if test "${ac_cv_header_svrcore_h+set}" = set; then
  22272. echo $ECHO_N "(cached) $ECHO_C" >&6
  22273. fi
  22274. echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  22275. echo "${ECHO_T}$ac_cv_header_svrcore_h" >&6
  22276. else
  22277. # Is the header compilable?
  22278. echo "$as_me:$LINENO: checking svrcore.h usability" >&5
  22279. echo $ECHO_N "checking svrcore.h usability... $ECHO_C" >&6
  22280. cat >conftest.$ac_ext <<_ACEOF
  22281. /* confdefs.h. */
  22282. _ACEOF
  22283. cat confdefs.h >>conftest.$ac_ext
  22284. cat >>conftest.$ac_ext <<_ACEOF
  22285. /* end confdefs.h. */
  22286. $ac_includes_default
  22287. #include <svrcore.h>
  22288. _ACEOF
  22289. rm -f conftest.$ac_objext
  22290. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22291. (eval $ac_compile) 2>conftest.er1
  22292. ac_status=$?
  22293. grep -v '^ *+' conftest.er1 >conftest.err
  22294. rm -f conftest.er1
  22295. cat conftest.err >&5
  22296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22297. (exit $ac_status); } &&
  22298. { ac_try='test -z "$ac_c_werror_flag"
  22299. || test ! -s conftest.err'
  22300. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22301. (eval $ac_try) 2>&5
  22302. ac_status=$?
  22303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22304. (exit $ac_status); }; } &&
  22305. { ac_try='test -s conftest.$ac_objext'
  22306. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22307. (eval $ac_try) 2>&5
  22308. ac_status=$?
  22309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22310. (exit $ac_status); }; }; then
  22311. ac_header_compiler=yes
  22312. else
  22313. echo "$as_me: failed program was:" >&5
  22314. sed 's/^/| /' conftest.$ac_ext >&5
  22315. ac_header_compiler=no
  22316. fi
  22317. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22318. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  22319. echo "${ECHO_T}$ac_header_compiler" >&6
  22320. # Is the header present?
  22321. echo "$as_me:$LINENO: checking svrcore.h presence" >&5
  22322. echo $ECHO_N "checking svrcore.h presence... $ECHO_C" >&6
  22323. cat >conftest.$ac_ext <<_ACEOF
  22324. /* confdefs.h. */
  22325. _ACEOF
  22326. cat confdefs.h >>conftest.$ac_ext
  22327. cat >>conftest.$ac_ext <<_ACEOF
  22328. /* end confdefs.h. */
  22329. #include <svrcore.h>
  22330. _ACEOF
  22331. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22332. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22333. ac_status=$?
  22334. grep -v '^ *+' conftest.er1 >conftest.err
  22335. rm -f conftest.er1
  22336. cat conftest.err >&5
  22337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22338. (exit $ac_status); } >/dev/null; then
  22339. if test -s conftest.err; then
  22340. ac_cpp_err=$ac_c_preproc_warn_flag
  22341. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22342. else
  22343. ac_cpp_err=
  22344. fi
  22345. else
  22346. ac_cpp_err=yes
  22347. fi
  22348. if test -z "$ac_cpp_err"; then
  22349. ac_header_preproc=yes
  22350. else
  22351. echo "$as_me: failed program was:" >&5
  22352. sed 's/^/| /' conftest.$ac_ext >&5
  22353. ac_header_preproc=no
  22354. fi
  22355. rm -f conftest.err conftest.$ac_ext
  22356. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  22357. echo "${ECHO_T}$ac_header_preproc" >&6
  22358. # So? What about this header?
  22359. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  22360. yes:no: )
  22361. { echo "$as_me:$LINENO: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&5
  22362. echo "$as_me: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  22363. { echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the compiler's result" >&5
  22364. echo "$as_me: WARNING: svrcore.h: proceeding with the compiler's result" >&2;}
  22365. ac_header_preproc=yes
  22366. ;;
  22367. no:yes:* )
  22368. { echo "$as_me:$LINENO: WARNING: svrcore.h: present but cannot be compiled" >&5
  22369. echo "$as_me: WARNING: svrcore.h: present but cannot be compiled" >&2;}
  22370. { echo "$as_me:$LINENO: WARNING: svrcore.h: check for missing prerequisite headers?" >&5
  22371. echo "$as_me: WARNING: svrcore.h: check for missing prerequisite headers?" >&2;}
  22372. { echo "$as_me:$LINENO: WARNING: svrcore.h: see the Autoconf documentation" >&5
  22373. echo "$as_me: WARNING: svrcore.h: see the Autoconf documentation" >&2;}
  22374. { echo "$as_me:$LINENO: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&5
  22375. echo "$as_me: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&2;}
  22376. { echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the preprocessor's result" >&5
  22377. echo "$as_me: WARNING: svrcore.h: proceeding with the preprocessor's result" >&2;}
  22378. { echo "$as_me:$LINENO: WARNING: svrcore.h: in the future, the compiler will take precedence" >&5
  22379. echo "$as_me: WARNING: svrcore.h: in the future, the compiler will take precedence" >&2;}
  22380. (
  22381. cat <<\_ASBOX
  22382. ## ------------------------------------------ ##
  22383. ## Report this to http://bugzilla.redhat.com/ ##
  22384. ## ------------------------------------------ ##
  22385. _ASBOX
  22386. ) |
  22387. sed "s/^/$as_me: WARNING: /" >&2
  22388. ;;
  22389. esac
  22390. echo "$as_me:$LINENO: checking for svrcore.h" >&5
  22391. echo $ECHO_N "checking for svrcore.h... $ECHO_C" >&6
  22392. if test "${ac_cv_header_svrcore_h+set}" = set; then
  22393. echo $ECHO_N "(cached) $ECHO_C" >&6
  22394. else
  22395. ac_cv_header_svrcore_h=$ac_header_preproc
  22396. fi
  22397. echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  22398. echo "${ECHO_T}$ac_cv_header_svrcore_h" >&6
  22399. fi
  22400. if test $ac_cv_header_svrcore_h = yes; then
  22401. havesvrcore=1
  22402. else
  22403. havesvrcore=
  22404. fi
  22405. CPPFLAGS="$save_cppflags"
  22406. fi
  22407. if test -z "$havesvrcore" ; then
  22408. { { echo "$as_me:$LINENO: error: svrcore not found, specify with --with-svrcore." >&5
  22409. echo "$as_me: error: svrcore not found, specify with --with-svrcore." >&2;}
  22410. { (exit 1); exit 1; }; }
  22411. fi
  22412. fi
  22413. # BEGIN COPYRIGHT BLOCK
  22414. # Copyright (C) 2006 Red Hat, Inc.
  22415. # All rights reserved.
  22416. #
  22417. # This program is free software; you can redistribute it and/or
  22418. # modify it under the terms of the GNU General Public License
  22419. # as published by the Free Software Foundation; either version 2
  22420. # of the License, or (at your option) any later version.
  22421. #
  22422. # This program is distributed in the hope that it will be useful,
  22423. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22424. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22425. # GNU General Public License for more details.
  22426. #
  22427. # You should have received a copy of the GNU General Public License
  22428. # along with this program; if not, write to the Free Software
  22429. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22430. #
  22431. # END COPYRIGHT BLOCK
  22432. { echo "$as_me:$LINENO: checking for LIBICU..." >&5
  22433. echo "$as_me: checking for LIBICU..." >&6;}
  22434. # check for --with-icu
  22435. echo "$as_me:$LINENO: checking for --with-icu" >&5
  22436. echo $ECHO_N "checking for --with-icu... $ECHO_C" >&6
  22437. # Check whether --with-icu or --without-icu was given.
  22438. if test "${with_icu+set}" = set; then
  22439. withval="$with_icu"
  22440. if test -d "$withval"/lib
  22441. then
  22442. echo "$as_me:$LINENO: result: using $withval" >&5
  22443. echo "${ECHO_T}using $withval" >&6
  22444. ICUDIR=$withval
  22445. icu_lib="-L$ICUDIR/lib"
  22446. else
  22447. echo
  22448. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22449. echo "$as_me: error: $withval not found" >&2;}
  22450. { (exit 1); exit 1; }; }
  22451. fi
  22452. icu_inc="-I$withval/include"
  22453. icu_bin="$withval/bin"
  22454. else
  22455. echo "$as_me:$LINENO: result: no" >&5
  22456. echo "${ECHO_T}no" >&6
  22457. fi;
  22458. # check for --with-icu-inc
  22459. echo "$as_me:$LINENO: checking for --with-icu-inc" >&5
  22460. echo $ECHO_N "checking for --with-icu-inc... $ECHO_C" >&6
  22461. # Check whether --with-icu-inc or --without-icu-inc was given.
  22462. if test "${with_icu_inc+set}" = set; then
  22463. withval="$with_icu_inc"
  22464. if test -d "$withval"
  22465. then
  22466. echo "$as_me:$LINENO: result: using $withval" >&5
  22467. echo "${ECHO_T}using $withval" >&6
  22468. icu_inc="-I$withval"
  22469. else
  22470. echo
  22471. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22472. echo "$as_me: error: $withval not found" >&2;}
  22473. { (exit 1); exit 1; }; }
  22474. fi
  22475. else
  22476. echo "$as_me:$LINENO: result: no" >&5
  22477. echo "${ECHO_T}no" >&6
  22478. fi;
  22479. # check for --with-icu-lib
  22480. echo "$as_me:$LINENO: checking for --with-icu-lib" >&5
  22481. echo $ECHO_N "checking for --with-icu-lib... $ECHO_C" >&6
  22482. # Check whether --with-icu-lib or --without-icu-lib was given.
  22483. if test "${with_icu_lib+set}" = set; then
  22484. withval="$with_icu_lib"
  22485. if test -d "$withval"
  22486. then
  22487. echo "$as_me:$LINENO: result: using $withval" >&5
  22488. echo "${ECHO_T}using $withval" >&6
  22489. icu_lib="-L$withval"
  22490. else
  22491. echo
  22492. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22493. echo "$as_me: error: $withval not found" >&2;}
  22494. { (exit 1); exit 1; }; }
  22495. fi
  22496. else
  22497. echo "$as_me:$LINENO: result: no" >&5
  22498. echo "${ECHO_T}no" >&6
  22499. fi;
  22500. # check for --with-icu-bin
  22501. echo "$as_me:$LINENO: checking for --with-icu-bin" >&5
  22502. echo $ECHO_N "checking for --with-icu-bin... $ECHO_C" >&6
  22503. # Check whether --with-icu-bin or --without-icu-bin was given.
  22504. if test "${with_icu_bin+set}" = set; then
  22505. withval="$with_icu_bin"
  22506. if test -d "$withval"
  22507. then
  22508. echo "$as_me:$LINENO: result: using $withval" >&5
  22509. echo "${ECHO_T}using $withval" >&6
  22510. icu_bin="$withval"
  22511. else
  22512. echo
  22513. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22514. echo "$as_me: error: $withval not found" >&2;}
  22515. { (exit 1); exit 1; }; }
  22516. fi
  22517. else
  22518. echo "$as_me:$LINENO: result: no" >&5
  22519. echo "${ECHO_T}no" >&6
  22520. fi;
  22521. # if ICU is not found yet, try pkg-config
  22522. # last resort
  22523. if test -z "$icu_lib"; then
  22524. echo "$as_me:$LINENO: checking for icu with icu-config" >&5
  22525. echo $ECHO_N "checking for icu with icu-config... $ECHO_C" >&6
  22526. # Extract the first word of "icu-config", so it can be a program name with args.
  22527. set dummy icu-config; ac_word=$2
  22528. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22529. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22530. if test "${ac_cv_path_ICU_CONFIG+set}" = set; then
  22531. echo $ECHO_N "(cached) $ECHO_C" >&6
  22532. else
  22533. case $ICU_CONFIG in
  22534. [\\/]* | ?:[\\/]*)
  22535. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  22536. ;;
  22537. *)
  22538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22539. for as_dir in $PATH
  22540. do
  22541. IFS=$as_save_IFS
  22542. test -z "$as_dir" && as_dir=.
  22543. for ac_exec_ext in '' $ac_executable_extensions; do
  22544. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22545. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22546. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22547. break 2
  22548. fi
  22549. done
  22550. done
  22551. ;;
  22552. esac
  22553. fi
  22554. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  22555. if test -n "$ICU_CONFIG"; then
  22556. echo "$as_me:$LINENO: result: $ICU_CONFIG" >&5
  22557. echo "${ECHO_T}$ICU_CONFIG" >&6
  22558. else
  22559. echo "$as_me:$LINENO: result: no" >&5
  22560. echo "${ECHO_T}no" >&6
  22561. fi
  22562. if test -n "$ICU_CONFIG"; then
  22563. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  22564. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  22565. icu_bin=`$ICU_CONFIG --bindir`
  22566. echo "$as_me:$LINENO: result: using system ICU" >&5
  22567. echo "${ECHO_T}using system ICU" >&6
  22568. else
  22569. { { echo "$as_me:$LINENO: error: ICU not found, specify with --with-icu." >&5
  22570. echo "$as_me: error: ICU not found, specify with --with-icu." >&2;}
  22571. { (exit 1); exit 1; }; }
  22572. fi
  22573. fi
  22574. # BEGIN COPYRIGHT BLOCK
  22575. # Copyright (C) 2006 Red Hat, Inc.
  22576. # All rights reserved.
  22577. #
  22578. # This program is free software; you can redistribute it and/or
  22579. # modify it under the terms of the GNU General Public License
  22580. # as published by the Free Software Foundation; either version 2
  22581. # of the License, or (at your option) any later version.
  22582. #
  22583. # This program is distributed in the hope that it will be useful,
  22584. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22585. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22586. # GNU General Public License for more details.
  22587. #
  22588. # You should have received a copy of the GNU General Public License
  22589. # along with this program; if not, write to the Free Software
  22590. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22591. #
  22592. # END COPYRIGHT BLOCK
  22593. { echo "$as_me:$LINENO: checking for Net-SNMP..." >&5
  22594. echo "$as_me: checking for Net-SNMP..." >&6;}
  22595. echo "$as_me:$LINENO: checking for --with-netsnmp" >&5
  22596. echo $ECHO_N "checking for --with-netsnmp... $ECHO_C" >&6
  22597. # Check whether --with-netsnmp or --without-netsnmp was given.
  22598. if test "${with_netsnmp+set}" = set; then
  22599. withval="$with_netsnmp"
  22600. if test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  22601. echo "$as_me:$LINENO: result: using $withval" >&5
  22602. echo "${ECHO_T}using $withval" >&6
  22603. NETSNMPDIR=$withval
  22604. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  22605. netsnmp_inc="-I$withval/include"
  22606. else
  22607. { { echo "$as_me:$LINENO: error: net-snmp-config.h not found" >&5
  22608. echo "$as_me: error: net-snmp-config.h not found" >&2;}
  22609. { (exit 1); exit 1; }; }
  22610. fi
  22611. netsnmp_lib="-L$withval/lib"
  22612. netsnmp_libdir="$withval/lib"
  22613. else
  22614. echo "$as_me:$LINENO: result: yes" >&5
  22615. echo "${ECHO_T}yes" >&6
  22616. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22617. echo "$as_me: error: $withval not found" >&2;}
  22618. { (exit 1); exit 1; }; }
  22619. fi
  22620. else
  22621. echo "$as_me:$LINENO: result: no" >&5
  22622. echo "${ECHO_T}no" >&6
  22623. fi;
  22624. echo "$as_me:$LINENO: checking for --with-netsnmp-inc" >&5
  22625. echo $ECHO_N "checking for --with-netsnmp-inc... $ECHO_C" >&6
  22626. # Check whether --with-netsnmp-inc or --without-netsnmp-inc was given.
  22627. if test "${with_netsnmp_inc+set}" = set; then
  22628. withval="$with_netsnmp_inc"
  22629. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  22630. echo "$as_me:$LINENO: result: using $withval" >&5
  22631. echo "${ECHO_T}using $withval" >&6
  22632. netsnmp_inc="-I$withval"
  22633. else
  22634. echo
  22635. { { echo "$as_me:$LINENO: error: $withval/net-snmp/net-snmp-includes.h not found" >&5
  22636. echo "$as_me: error: $withval/net-snmp/net-snmp-includes.h not found" >&2;}
  22637. { (exit 1); exit 1; }; }
  22638. fi
  22639. else
  22640. echo "$as_me:$LINENO: result: no" >&5
  22641. echo "${ECHO_T}no" >&6
  22642. fi;
  22643. echo "$as_me:$LINENO: checking for --with-netsnmp-lib" >&5
  22644. echo $ECHO_N "checking for --with-netsnmp-lib... $ECHO_C" >&6
  22645. # Check whether --with-netsnmp-lib or --without-netsnmp-lib was given.
  22646. if test "${with_netsnmp_lib+set}" = set; then
  22647. withval="$with_netsnmp_lib"
  22648. if test -d "$withval"
  22649. then
  22650. echo "$as_me:$LINENO: result: using $withval" >&5
  22651. echo "${ECHO_T}using $withval" >&6
  22652. netsnmp_lib="-L$withval"
  22653. netsnmp_libdir="$withval"
  22654. else
  22655. echo
  22656. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22657. echo "$as_me: error: $withval not found" >&2;}
  22658. { (exit 1); exit 1; }; }
  22659. fi
  22660. else
  22661. echo "$as_me:$LINENO: result: no" >&5
  22662. echo "${ECHO_T}no" >&6
  22663. fi;
  22664. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  22665. echo "$as_me:$LINENO: checking for net-snmp-includes.h" >&5
  22666. echo $ECHO_N "checking for net-snmp-includes.h... $ECHO_C" >&6
  22667. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  22668. echo "$as_me:$LINENO: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  22669. echo "${ECHO_T}using /usr/include/net-snmp/net-snmp-includes.h" >&6
  22670. netsnmp_inc="-I/usr/include"
  22671. else
  22672. echo "$as_me:$LINENO: result: no" >&5
  22673. echo "${ECHO_T}no" >&6
  22674. { { echo "$as_me:$LINENO: error: net-snmp not found, specify with --with-netsnmp." >&5
  22675. echo "$as_me: error: net-snmp not found, specify with --with-netsnmp." >&2;}
  22676. { (exit 1); exit 1; }; }
  22677. fi
  22678. fi
  22679. if test -n "$netsnmp_inc"; then
  22680. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  22681. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  22682. else
  22683. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  22684. set dummy net-snmp-config; ac_word=$2
  22685. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22686. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22687. if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
  22688. echo $ECHO_N "(cached) $ECHO_C" >&6
  22689. else
  22690. case $NETSNMP_CONFIG in
  22691. [\\/]* | ?:[\\/]*)
  22692. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  22693. ;;
  22694. *)
  22695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22696. for as_dir in $PATH
  22697. do
  22698. IFS=$as_save_IFS
  22699. test -z "$as_dir" && as_dir=.
  22700. for ac_exec_ext in '' $ac_executable_extensions; do
  22701. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22702. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22703. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22704. break 2
  22705. fi
  22706. done
  22707. done
  22708. ;;
  22709. esac
  22710. fi
  22711. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  22712. if test -n "$NETSNMP_CONFIG"; then
  22713. echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
  22714. echo "${ECHO_T}$NETSNMP_CONFIG" >&6
  22715. else
  22716. echo "$as_me:$LINENO: result: no" >&5
  22717. echo "${ECHO_T}no" >&6
  22718. fi
  22719. fi
  22720. if test -n "$NETSNMP_CONFIG"; then
  22721. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  22722. else
  22723. { { echo "$as_me:$LINENO: error: net-snmp-config not found, specify with --with-netsnmp." >&5
  22724. echo "$as_me: error: net-snmp-config not found, specify with --with-netsnmp." >&2;}
  22725. { (exit 1); exit 1; }; }
  22726. fi
  22727. else
  22728. { { echo "$as_me:$LINENO: error: Net-SNMP not found, specify with --with-netsnmp." >&5
  22729. echo "$as_me: error: Net-SNMP not found, specify with --with-netsnmp." >&2;}
  22730. { (exit 1); exit 1; }; }
  22731. fi
  22732. # BEGIN COPYRIGHT BLOCK
  22733. # Copyright (C) 2008 Red Hat, Inc.
  22734. # All rights reserved.
  22735. #
  22736. # This program is free software; you can redistribute it and/or
  22737. # modify it under the terms of the GNU General Public License
  22738. # as published by the Free Software Foundation; either version 2
  22739. # of the License, or (at your option) any later version.
  22740. #
  22741. # This program is distributed in the hope that it will be useful,
  22742. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22743. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22744. # GNU General Public License for more details.
  22745. #
  22746. # You should have received a copy of the GNU General Public License
  22747. # along with this program; if not, write to the Free Software
  22748. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22749. #
  22750. # END COPYRIGHT BLOCK
  22751. # -*- tab-width: 4; -*-
  22752. # Configure paths for Kerberos
  22753. { echo "$as_me:$LINENO: checking for kerberos..." >&5
  22754. echo "$as_me: checking for kerberos..." >&6;}
  22755. if test -z "$with_kerberos" ; then
  22756. with_kerberos=yes # if not set on cmdline, set default
  22757. fi
  22758. echo "$as_me:$LINENO: checking for --with-kerberos" >&5
  22759. echo $ECHO_N "checking for --with-kerberos... $ECHO_C" >&6
  22760. # Check whether --with-kerberos or --without-kerberos was given.
  22761. if test "${with_kerberos+set}" = set; then
  22762. withval="$with_kerberos"
  22763. if test "x$withval" = "xyes"; then
  22764. echo "$as_me:$LINENO: result: yes" >&5
  22765. echo "${ECHO_T}yes" >&6
  22766. elif test "x$withval" = "xno"; then
  22767. echo "$as_me:$LINENO: result: no" >&5
  22768. echo "${ECHO_T}no" >&6
  22769. with_kerberos=
  22770. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  22771. echo "$as_me:$LINENO: result: using $withval" >&5
  22772. echo "${ECHO_T}using $withval" >&6
  22773. kerberos_incdir="$withval/include"
  22774. kerberos_libdir="$withval/lib"
  22775. else
  22776. echo "$as_me:$LINENO: result: yes" >&5
  22777. echo "${ECHO_T}yes" >&6
  22778. { { echo "$as_me:$LINENO: error: kerberos not found in $withval" >&5
  22779. echo "$as_me: error: kerberos not found in $withval" >&2;}
  22780. { (exit 1); exit 1; }; }
  22781. fi
  22782. else
  22783. echo "$as_me:$LINENO: result: no" >&5
  22784. echo "${ECHO_T}no" >&6
  22785. with_kerberos=
  22786. fi;
  22787. echo "$as_me:$LINENO: checking for --with-kerberos-inc" >&5
  22788. echo $ECHO_N "checking for --with-kerberos-inc... $ECHO_C" >&6
  22789. # Check whether --with-kerberos-inc or --without-kerberos-inc was given.
  22790. if test "${with_kerberos_inc+set}" = set; then
  22791. withval="$with_kerberos_inc"
  22792. if test -f "$withval"/krb5.h; then
  22793. echo "$as_me:$LINENO: result: using $withval" >&5
  22794. echo "${ECHO_T}using $withval" >&6
  22795. kerberos_incdir="$withval"
  22796. with_kerberos=yes # implies use of kerberos
  22797. else
  22798. echo
  22799. { { echo "$as_me:$LINENO: error: $withval/krb5.h not found" >&5
  22800. echo "$as_me: error: $withval/krb5.h not found" >&2;}
  22801. { (exit 1); exit 1; }; }
  22802. fi
  22803. else
  22804. echo "$as_me:$LINENO: result: no" >&5
  22805. echo "${ECHO_T}no" >&6
  22806. fi;
  22807. echo "$as_me:$LINENO: checking for --with-kerberos-lib" >&5
  22808. echo $ECHO_N "checking for --with-kerberos-lib... $ECHO_C" >&6
  22809. # Check whether --with-kerberos-lib or --without-kerberos-lib was given.
  22810. if test "${with_kerberos_lib+set}" = set; then
  22811. withval="$with_kerberos_lib"
  22812. if test -d "$withval"; then
  22813. echo "$as_me:$LINENO: result: using $withval" >&5
  22814. echo "${ECHO_T}using $withval" >&6
  22815. kerberos_libdir="$withval"
  22816. with_kerberos=yes # implies use of kerberos
  22817. else
  22818. echo
  22819. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22820. echo "$as_me: error: $withval not found" >&2;}
  22821. { (exit 1); exit 1; }; }
  22822. fi
  22823. else
  22824. echo "$as_me:$LINENO: result: no" >&5
  22825. echo "${ECHO_T}no" >&6
  22826. fi;
  22827. if test -n "$with_kerberos" ; then
  22828. if test -z "$kerberos_incdir" -o -z "$kerberos_libdir" ; then
  22829. if test -z "$KRB5_CONFIG_BIN" ; then
  22830. # Extract the first word of "krb5-config", so it can be a program name with args.
  22831. set dummy krb5-config; ac_word=$2
  22832. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22833. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22834. if test "${ac_cv_path_KRB5_CONFIG_BIN+set}" = set; then
  22835. echo $ECHO_N "(cached) $ECHO_C" >&6
  22836. else
  22837. case $KRB5_CONFIG_BIN in
  22838. [\\/]* | ?:[\\/]*)
  22839. ac_cv_path_KRB5_CONFIG_BIN="$KRB5_CONFIG_BIN" # Let the user override the test with a path.
  22840. ;;
  22841. *)
  22842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22843. for as_dir in $PATH
  22844. do
  22845. IFS=$as_save_IFS
  22846. test -z "$as_dir" && as_dir=.
  22847. for ac_exec_ext in '' $ac_executable_extensions; do
  22848. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22849. ac_cv_path_KRB5_CONFIG_BIN="$as_dir/$ac_word$ac_exec_ext"
  22850. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22851. break 2
  22852. fi
  22853. done
  22854. done
  22855. ;;
  22856. esac
  22857. fi
  22858. KRB5_CONFIG_BIN=$ac_cv_path_KRB5_CONFIG_BIN
  22859. if test -n "$KRB5_CONFIG_BIN"; then
  22860. echo "$as_me:$LINENO: result: $KRB5_CONFIG_BIN" >&5
  22861. echo "${ECHO_T}$KRB5_CONFIG_BIN" >&6
  22862. else
  22863. echo "$as_me:$LINENO: result: no" >&5
  22864. echo "${ECHO_T}no" >&6
  22865. fi
  22866. fi
  22867. if test -n "$KRB5_CONFIG_BIN" ; then
  22868. echo "$as_me:$LINENO: checking for kerberos with $KRB5_CONFIG_BIN" >&5
  22869. echo $ECHO_N "checking for kerberos with $KRB5_CONFIG_BIN... $ECHO_C" >&6
  22870. if test -z "$kerberos_libdir" ; then
  22871. kerberos_lib=`$KRB5_CONFIG_BIN --libs krb5`
  22872. fi
  22873. if test -z "$kerberos_incdir" ; then
  22874. kerberos_inc=`$KRB5_CONFIG_BIN --cflags krb5`
  22875. fi
  22876. if test -n "$kerberos_lib" ; then
  22877. echo "$as_me:$LINENO: result: using kerberos found with $KRB5_CONFIG_BIN" >&5
  22878. echo "${ECHO_T}using kerberos found with $KRB5_CONFIG_BIN" >&6
  22879. have_krb5=yes
  22880. fi
  22881. fi
  22882. fi
  22883. fi
  22884. if test -n "$with_kerberos" -a -z "$kerberos_lib" ; then
  22885. # save these in order to set them to use the check macros below
  22886. # like AC_CHECK_HEADERS, AC_CHECK_LIB, and AC_CHECK_FUNCS
  22887. save_CPPFLAGS="$CPPFLAGS"
  22888. if test -n "$kerberos_incdir" ; then
  22889. CPPFLAGS="-I$kerberos_incdir $CPPFLAGS"
  22890. fi
  22891. save_LDFLAGS="$LDFLAGS"
  22892. if test -n "$kerberos_libdir" ; then
  22893. LDFLAGS="-L$kerberos_libdir $LDFLAGS"
  22894. fi
  22895. krb5_impl=mit
  22896. for ac_header in heim_err.h
  22897. do
  22898. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  22899. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  22900. echo "$as_me:$LINENO: checking for $ac_header" >&5
  22901. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  22902. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  22903. echo $ECHO_N "(cached) $ECHO_C" >&6
  22904. fi
  22905. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  22906. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  22907. else
  22908. # Is the header compilable?
  22909. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  22910. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  22911. cat >conftest.$ac_ext <<_ACEOF
  22912. /* confdefs.h. */
  22913. _ACEOF
  22914. cat confdefs.h >>conftest.$ac_ext
  22915. cat >>conftest.$ac_ext <<_ACEOF
  22916. /* end confdefs.h. */
  22917. $ac_includes_default
  22918. #include <$ac_header>
  22919. _ACEOF
  22920. rm -f conftest.$ac_objext
  22921. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22922. (eval $ac_compile) 2>conftest.er1
  22923. ac_status=$?
  22924. grep -v '^ *+' conftest.er1 >conftest.err
  22925. rm -f conftest.er1
  22926. cat conftest.err >&5
  22927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22928. (exit $ac_status); } &&
  22929. { ac_try='test -z "$ac_c_werror_flag"
  22930. || test ! -s conftest.err'
  22931. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22932. (eval $ac_try) 2>&5
  22933. ac_status=$?
  22934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22935. (exit $ac_status); }; } &&
  22936. { ac_try='test -s conftest.$ac_objext'
  22937. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22938. (eval $ac_try) 2>&5
  22939. ac_status=$?
  22940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22941. (exit $ac_status); }; }; then
  22942. ac_header_compiler=yes
  22943. else
  22944. echo "$as_me: failed program was:" >&5
  22945. sed 's/^/| /' conftest.$ac_ext >&5
  22946. ac_header_compiler=no
  22947. fi
  22948. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22949. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  22950. echo "${ECHO_T}$ac_header_compiler" >&6
  22951. # Is the header present?
  22952. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  22953. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  22954. cat >conftest.$ac_ext <<_ACEOF
  22955. /* confdefs.h. */
  22956. _ACEOF
  22957. cat confdefs.h >>conftest.$ac_ext
  22958. cat >>conftest.$ac_ext <<_ACEOF
  22959. /* end confdefs.h. */
  22960. #include <$ac_header>
  22961. _ACEOF
  22962. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22963. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22964. ac_status=$?
  22965. grep -v '^ *+' conftest.er1 >conftest.err
  22966. rm -f conftest.er1
  22967. cat conftest.err >&5
  22968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22969. (exit $ac_status); } >/dev/null; then
  22970. if test -s conftest.err; then
  22971. ac_cpp_err=$ac_c_preproc_warn_flag
  22972. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22973. else
  22974. ac_cpp_err=
  22975. fi
  22976. else
  22977. ac_cpp_err=yes
  22978. fi
  22979. if test -z "$ac_cpp_err"; then
  22980. ac_header_preproc=yes
  22981. else
  22982. echo "$as_me: failed program was:" >&5
  22983. sed 's/^/| /' conftest.$ac_ext >&5
  22984. ac_header_preproc=no
  22985. fi
  22986. rm -f conftest.err conftest.$ac_ext
  22987. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  22988. echo "${ECHO_T}$ac_header_preproc" >&6
  22989. # So? What about this header?
  22990. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  22991. yes:no: )
  22992. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  22993. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  22994. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  22995. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  22996. ac_header_preproc=yes
  22997. ;;
  22998. no:yes:* )
  22999. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  23000. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  23001. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  23002. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  23003. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  23004. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  23005. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  23006. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  23007. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  23008. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  23009. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  23010. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  23011. (
  23012. cat <<\_ASBOX
  23013. ## ------------------------------------------ ##
  23014. ## Report this to http://bugzilla.redhat.com/ ##
  23015. ## ------------------------------------------ ##
  23016. _ASBOX
  23017. ) |
  23018. sed "s/^/$as_me: WARNING: /" >&2
  23019. ;;
  23020. esac
  23021. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23022. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23023. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23024. echo $ECHO_N "(cached) $ECHO_C" >&6
  23025. else
  23026. eval "$as_ac_Header=\$ac_header_preproc"
  23027. fi
  23028. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23029. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23030. fi
  23031. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  23032. cat >>confdefs.h <<_ACEOF
  23033. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23034. _ACEOF
  23035. fi
  23036. done
  23037. if test $ac_cv_header_heim_err_h = yes ; then
  23038. krb5_impl=heimdal
  23039. fi
  23040. if test "x$krb5_impl" = "xmit"; then
  23041. echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
  23042. echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
  23043. if test "${ac_cv_lib_k5crypto_main+set}" = set; then
  23044. echo $ECHO_N "(cached) $ECHO_C" >&6
  23045. else
  23046. ac_check_lib_save_LIBS=$LIBS
  23047. LIBS="-lk5crypto $LIBS"
  23048. cat >conftest.$ac_ext <<_ACEOF
  23049. /* confdefs.h. */
  23050. _ACEOF
  23051. cat confdefs.h >>conftest.$ac_ext
  23052. cat >>conftest.$ac_ext <<_ACEOF
  23053. /* end confdefs.h. */
  23054. int
  23055. main ()
  23056. {
  23057. main ();
  23058. ;
  23059. return 0;
  23060. }
  23061. _ACEOF
  23062. rm -f conftest.$ac_objext conftest$ac_exeext
  23063. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23064. (eval $ac_link) 2>conftest.er1
  23065. ac_status=$?
  23066. grep -v '^ *+' conftest.er1 >conftest.err
  23067. rm -f conftest.er1
  23068. cat conftest.err >&5
  23069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23070. (exit $ac_status); } &&
  23071. { ac_try='test -z "$ac_c_werror_flag"
  23072. || test ! -s conftest.err'
  23073. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23074. (eval $ac_try) 2>&5
  23075. ac_status=$?
  23076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23077. (exit $ac_status); }; } &&
  23078. { ac_try='test -s conftest$ac_exeext'
  23079. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23080. (eval $ac_try) 2>&5
  23081. ac_status=$?
  23082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23083. (exit $ac_status); }; }; then
  23084. ac_cv_lib_k5crypto_main=yes
  23085. else
  23086. echo "$as_me: failed program was:" >&5
  23087. sed 's/^/| /' conftest.$ac_ext >&5
  23088. ac_cv_lib_k5crypto_main=no
  23089. fi
  23090. rm -f conftest.err conftest.$ac_objext \
  23091. conftest$ac_exeext conftest.$ac_ext
  23092. LIBS=$ac_check_lib_save_LIBS
  23093. fi
  23094. echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
  23095. echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
  23096. if test $ac_cv_lib_k5crypto_main = yes; then
  23097. krb5crypto=k5crypto
  23098. else
  23099. krb5crypto=crypto
  23100. fi
  23101. echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
  23102. echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
  23103. if test "${ac_cv_lib_krb5_main+set}" = set; then
  23104. echo $ECHO_N "(cached) $ECHO_C" >&6
  23105. else
  23106. ac_check_lib_save_LIBS=$LIBS
  23107. LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
  23108. cat >conftest.$ac_ext <<_ACEOF
  23109. /* confdefs.h. */
  23110. _ACEOF
  23111. cat confdefs.h >>conftest.$ac_ext
  23112. cat >>conftest.$ac_ext <<_ACEOF
  23113. /* end confdefs.h. */
  23114. int
  23115. main ()
  23116. {
  23117. main ();
  23118. ;
  23119. return 0;
  23120. }
  23121. _ACEOF
  23122. rm -f conftest.$ac_objext conftest$ac_exeext
  23123. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23124. (eval $ac_link) 2>conftest.er1
  23125. ac_status=$?
  23126. grep -v '^ *+' conftest.er1 >conftest.err
  23127. rm -f conftest.er1
  23128. cat conftest.err >&5
  23129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23130. (exit $ac_status); } &&
  23131. { ac_try='test -z "$ac_c_werror_flag"
  23132. || test ! -s conftest.err'
  23133. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23134. (eval $ac_try) 2>&5
  23135. ac_status=$?
  23136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23137. (exit $ac_status); }; } &&
  23138. { ac_try='test -s conftest$ac_exeext'
  23139. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23140. (eval $ac_try) 2>&5
  23141. ac_status=$?
  23142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23143. (exit $ac_status); }; }; then
  23144. ac_cv_lib_krb5_main=yes
  23145. else
  23146. echo "$as_me: failed program was:" >&5
  23147. sed 's/^/| /' conftest.$ac_ext >&5
  23148. ac_cv_lib_krb5_main=no
  23149. fi
  23150. rm -f conftest.err conftest.$ac_objext \
  23151. conftest$ac_exeext conftest.$ac_ext
  23152. LIBS=$ac_check_lib_save_LIBS
  23153. fi
  23154. echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
  23155. echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
  23156. if test $ac_cv_lib_krb5_main = yes; then
  23157. have_krb5=yes
  23158. kerberos_lib="-lkrb5 -l$krb5crypto -lcom_err"
  23159. else
  23160. have_krb5=no
  23161. fi
  23162. elif test "x$krb5_impl" = "xheimdal"; then
  23163. echo "$as_me:$LINENO: checking for main in -ldes" >&5
  23164. echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
  23165. if test "${ac_cv_lib_des_main+set}" = set; then
  23166. echo $ECHO_N "(cached) $ECHO_C" >&6
  23167. else
  23168. ac_check_lib_save_LIBS=$LIBS
  23169. LIBS="-ldes $LIBS"
  23170. cat >conftest.$ac_ext <<_ACEOF
  23171. /* confdefs.h. */
  23172. _ACEOF
  23173. cat confdefs.h >>conftest.$ac_ext
  23174. cat >>conftest.$ac_ext <<_ACEOF
  23175. /* end confdefs.h. */
  23176. int
  23177. main ()
  23178. {
  23179. main ();
  23180. ;
  23181. return 0;
  23182. }
  23183. _ACEOF
  23184. rm -f conftest.$ac_objext conftest$ac_exeext
  23185. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23186. (eval $ac_link) 2>conftest.er1
  23187. ac_status=$?
  23188. grep -v '^ *+' conftest.er1 >conftest.err
  23189. rm -f conftest.er1
  23190. cat conftest.err >&5
  23191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23192. (exit $ac_status); } &&
  23193. { ac_try='test -z "$ac_c_werror_flag"
  23194. || test ! -s conftest.err'
  23195. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23196. (eval $ac_try) 2>&5
  23197. ac_status=$?
  23198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23199. (exit $ac_status); }; } &&
  23200. { ac_try='test -s conftest$ac_exeext'
  23201. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23202. (eval $ac_try) 2>&5
  23203. ac_status=$?
  23204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23205. (exit $ac_status); }; }; then
  23206. ac_cv_lib_des_main=yes
  23207. else
  23208. echo "$as_me: failed program was:" >&5
  23209. sed 's/^/| /' conftest.$ac_ext >&5
  23210. ac_cv_lib_des_main=no
  23211. fi
  23212. rm -f conftest.err conftest.$ac_objext \
  23213. conftest$ac_exeext conftest.$ac_ext
  23214. LIBS=$ac_check_lib_save_LIBS
  23215. fi
  23216. echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
  23217. echo "${ECHO_T}$ac_cv_lib_des_main" >&6
  23218. if test $ac_cv_lib_des_main = yes; then
  23219. krb5crypto=des
  23220. else
  23221. krb5crypto=crypto
  23222. fi
  23223. echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
  23224. echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
  23225. if test "${ac_cv_lib_krb5_main+set}" = set; then
  23226. echo $ECHO_N "(cached) $ECHO_C" >&6
  23227. else
  23228. ac_check_lib_save_LIBS=$LIBS
  23229. LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
  23230. cat >conftest.$ac_ext <<_ACEOF
  23231. /* confdefs.h. */
  23232. _ACEOF
  23233. cat confdefs.h >>conftest.$ac_ext
  23234. cat >>conftest.$ac_ext <<_ACEOF
  23235. /* end confdefs.h. */
  23236. int
  23237. main ()
  23238. {
  23239. main ();
  23240. ;
  23241. return 0;
  23242. }
  23243. _ACEOF
  23244. rm -f conftest.$ac_objext conftest$ac_exeext
  23245. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23246. (eval $ac_link) 2>conftest.er1
  23247. ac_status=$?
  23248. grep -v '^ *+' conftest.er1 >conftest.err
  23249. rm -f conftest.er1
  23250. cat conftest.err >&5
  23251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23252. (exit $ac_status); } &&
  23253. { ac_try='test -z "$ac_c_werror_flag"
  23254. || test ! -s conftest.err'
  23255. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23256. (eval $ac_try) 2>&5
  23257. ac_status=$?
  23258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23259. (exit $ac_status); }; } &&
  23260. { ac_try='test -s conftest$ac_exeext'
  23261. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23262. (eval $ac_try) 2>&5
  23263. ac_status=$?
  23264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23265. (exit $ac_status); }; }; then
  23266. ac_cv_lib_krb5_main=yes
  23267. else
  23268. echo "$as_me: failed program was:" >&5
  23269. sed 's/^/| /' conftest.$ac_ext >&5
  23270. ac_cv_lib_krb5_main=no
  23271. fi
  23272. rm -f conftest.err conftest.$ac_objext \
  23273. conftest$ac_exeext conftest.$ac_ext
  23274. LIBS=$ac_check_lib_save_LIBS
  23275. fi
  23276. echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
  23277. echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
  23278. if test $ac_cv_lib_krb5_main = yes; then
  23279. have_krb5=yes
  23280. kerberos_lib="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
  23281. else
  23282. have_krb5=no
  23283. fi
  23284. cat >>confdefs.h <<\_ACEOF
  23285. #define HAVE_HEIMDAL_KERBEROS 1
  23286. _ACEOF
  23287. else
  23288. have_krb5=no
  23289. { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
  23290. echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
  23291. fi
  23292. # reset to original values
  23293. CPPFLAGS="$save_CPPFLAGS"
  23294. LDFLAGS="$save_LDFLAGS"
  23295. if test -n "$kerberos_incdir" ; then
  23296. kerberos_inc="-I$kerberos_incdir"
  23297. fi
  23298. if test -n "$kerberos_libdir" ; then
  23299. kerberos_lib="-L$kerberos_libdir $kerberos_lib"
  23300. fi
  23301. fi
  23302. if test -n "$with_kerberos" ; then
  23303. if test "x$have_krb5" = "xyes" ; then
  23304. cat >>confdefs.h <<\_ACEOF
  23305. #define HAVE_KRB5 1
  23306. _ACEOF
  23307. else
  23308. { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
  23309. echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
  23310. { (exit 1); exit 1; }; }
  23311. fi
  23312. save_LIBS="$LIBS"
  23313. LIBS="$kerberos_lib"
  23314. save_CPPFLAGS="$CPPFLAGS"
  23315. CPPFLAGS="$kerberos_inc $CPPFLAGS"
  23316. for ac_func in krb5_cc_new_unique
  23317. do
  23318. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  23319. echo "$as_me:$LINENO: checking for $ac_func" >&5
  23320. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  23321. if eval "test \"\${$as_ac_var+set}\" = set"; then
  23322. echo $ECHO_N "(cached) $ECHO_C" >&6
  23323. else
  23324. cat >conftest.$ac_ext <<_ACEOF
  23325. /* confdefs.h. */
  23326. _ACEOF
  23327. cat confdefs.h >>conftest.$ac_ext
  23328. cat >>conftest.$ac_ext <<_ACEOF
  23329. /* end confdefs.h. */
  23330. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  23331. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23332. #define $ac_func innocuous_$ac_func
  23333. /* System header to define __stub macros and hopefully few prototypes,
  23334. which can conflict with char $ac_func (); below.
  23335. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23336. <limits.h> exists even on freestanding compilers. */
  23337. #ifdef __STDC__
  23338. # include <limits.h>
  23339. #else
  23340. # include <assert.h>
  23341. #endif
  23342. #undef $ac_func
  23343. /* Override any gcc2 internal prototype to avoid an error. */
  23344. #ifdef __cplusplus
  23345. extern "C"
  23346. {
  23347. #endif
  23348. /* We use char because int might match the return type of a gcc2
  23349. builtin and then its argument prototype would still apply. */
  23350. char $ac_func ();
  23351. /* The GNU C library defines this for functions which it implements
  23352. to always fail with ENOSYS. Some functions are actually named
  23353. something starting with __ and the normal name is an alias. */
  23354. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  23355. choke me
  23356. #else
  23357. char (*f) () = $ac_func;
  23358. #endif
  23359. #ifdef __cplusplus
  23360. }
  23361. #endif
  23362. int
  23363. main ()
  23364. {
  23365. return f != $ac_func;
  23366. ;
  23367. return 0;
  23368. }
  23369. _ACEOF
  23370. rm -f conftest.$ac_objext conftest$ac_exeext
  23371. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23372. (eval $ac_link) 2>conftest.er1
  23373. ac_status=$?
  23374. grep -v '^ *+' conftest.er1 >conftest.err
  23375. rm -f conftest.er1
  23376. cat conftest.err >&5
  23377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23378. (exit $ac_status); } &&
  23379. { ac_try='test -z "$ac_c_werror_flag"
  23380. || test ! -s conftest.err'
  23381. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23382. (eval $ac_try) 2>&5
  23383. ac_status=$?
  23384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23385. (exit $ac_status); }; } &&
  23386. { ac_try='test -s conftest$ac_exeext'
  23387. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23388. (eval $ac_try) 2>&5
  23389. ac_status=$?
  23390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23391. (exit $ac_status); }; }; then
  23392. eval "$as_ac_var=yes"
  23393. else
  23394. echo "$as_me: failed program was:" >&5
  23395. sed 's/^/| /' conftest.$ac_ext >&5
  23396. eval "$as_ac_var=no"
  23397. fi
  23398. rm -f conftest.err conftest.$ac_objext \
  23399. conftest$ac_exeext conftest.$ac_ext
  23400. fi
  23401. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  23402. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  23403. if test `eval echo '${'$as_ac_var'}'` = yes; then
  23404. cat >>confdefs.h <<_ACEOF
  23405. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  23406. _ACEOF
  23407. fi
  23408. done
  23409. LIBS="$save_LIBS"
  23410. CPPFLAGS="$save_CPPFLAGS"
  23411. fi
  23412. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  23413. # set sasl_path for wrapper scripts
  23414. if test -z "$sasl_libdir" ; then
  23415. sasl_path="$libdir/sasl2"
  23416. else
  23417. sasl_path="$sasl_libdir/sasl2"
  23418. fi
  23419. # write out paths for binary components
  23420. cat >>confdefs.h <<\_ACEOF
  23421. #define LDAP_DEBUG 1
  23422. _ACEOF
  23423. cat >>confdefs.h <<\_ACEOF
  23424. #define LDAP_DONT_USE_SMARTHEAP 1
  23425. _ACEOF
  23426. # libtool on fedora/rhel contains some gcc-isms which cause problems
  23427. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  23428. # we remove them here
  23429. if test "$GCC" != yes ; then
  23430. { echo "$as_me:$LINENO: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  23431. echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  23432. cp -p libtool libtool.orig
  23433. cp -p libtool libtool.tmp
  23434. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  23435. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  23436. # perl produced write-only code . . .
  23437. sed -e '/^gcc_dir/ d' \
  23438. -e '/^gcc_ver/ d' \
  23439. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  23440. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  23441. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  23442. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  23443. libtool > libtool.tmp
  23444. cp -p libtool.tmp libtool
  23445. rm -f libtool.tmp
  23446. fi
  23447. ac_config_files="$ac_config_files Makefile"
  23448. cat >confcache <<\_ACEOF
  23449. # This file is a shell script that caches the results of configure
  23450. # tests run on this system so they can be shared between configure
  23451. # scripts and configure runs, see configure's option --config-cache.
  23452. # It is not useful on other systems. If it contains results you don't
  23453. # want to keep, you may remove or edit it.
  23454. #
  23455. # config.status only pays attention to the cache file if you give it
  23456. # the --recheck option to rerun configure.
  23457. #
  23458. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  23459. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  23460. # following values.
  23461. _ACEOF
  23462. # The following way of writing the cache mishandles newlines in values,
  23463. # but we know of no workaround that is simple, portable, and efficient.
  23464. # So, don't put newlines in cache variables' values.
  23465. # Ultrix sh set writes to stderr and can't be redirected directly,
  23466. # and sets the high bit in the cache file unless we assign to the vars.
  23467. {
  23468. (set) 2>&1 |
  23469. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  23470. *ac_space=\ *)
  23471. # `set' does not quote correctly, so add quotes (double-quote
  23472. # substitution turns \\\\ into \\, and sed turns \\ into \).
  23473. sed -n \
  23474. "s/'/'\\\\''/g;
  23475. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  23476. ;;
  23477. *)
  23478. # `set' quotes correctly as required by POSIX, so do not add quotes.
  23479. sed -n \
  23480. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  23481. ;;
  23482. esac;
  23483. } |
  23484. sed '
  23485. t clear
  23486. : clear
  23487. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  23488. t end
  23489. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  23490. : end' >>confcache
  23491. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  23492. if test -w $cache_file; then
  23493. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  23494. cat confcache >$cache_file
  23495. else
  23496. echo "not updating unwritable cache $cache_file"
  23497. fi
  23498. fi
  23499. rm -f confcache
  23500. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  23501. # Let make expand exec_prefix.
  23502. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  23503. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  23504. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  23505. # trailing colons and then remove the whole line if VPATH becomes empty
  23506. # (actually we leave an empty line to preserve line numbers).
  23507. if test "x$srcdir" = x.; then
  23508. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  23509. s/:*\$(srcdir):*/:/;
  23510. s/:*\${srcdir}:*/:/;
  23511. s/:*@srcdir@:*/:/;
  23512. s/^\([^=]*=[ ]*\):*/\1/;
  23513. s/:*$//;
  23514. s/^[^=]*=[ ]*$//;
  23515. }'
  23516. fi
  23517. DEFS=-DHAVE_CONFIG_H
  23518. ac_libobjs=
  23519. ac_ltlibobjs=
  23520. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  23521. # 1. Remove the extension, and $U if already installed.
  23522. ac_i=`echo "$ac_i" |
  23523. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  23524. # 2. Add them.
  23525. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  23526. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  23527. done
  23528. LIBOBJS=$ac_libobjs
  23529. LTLIBOBJS=$ac_ltlibobjs
  23530. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  23531. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  23532. Usually this means the macro was only invoked conditionally." >&5
  23533. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  23534. Usually this means the macro was only invoked conditionally." >&2;}
  23535. { (exit 1); exit 1; }; }
  23536. fi
  23537. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  23538. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  23539. Usually this means the macro was only invoked conditionally." >&5
  23540. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  23541. Usually this means the macro was only invoked conditionally." >&2;}
  23542. { (exit 1); exit 1; }; }
  23543. fi
  23544. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  23545. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  23546. Usually this means the macro was only invoked conditionally." >&5
  23547. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  23548. Usually this means the macro was only invoked conditionally." >&2;}
  23549. { (exit 1); exit 1; }; }
  23550. fi
  23551. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  23552. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  23553. Usually this means the macro was only invoked conditionally." >&5
  23554. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  23555. Usually this means the macro was only invoked conditionally." >&2;}
  23556. { (exit 1); exit 1; }; }
  23557. fi
  23558. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  23559. { { echo "$as_me:$LINENO: error: conditional \"BUNDLE\" was never defined.
  23560. Usually this means the macro was only invoked conditionally." >&5
  23561. echo "$as_me: error: conditional \"BUNDLE\" was never defined.
  23562. Usually this means the macro was only invoked conditionally." >&2;}
  23563. { (exit 1); exit 1; }; }
  23564. fi
  23565. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  23566. { { echo "$as_me:$LINENO: error: conditional \"enable_pam_passthru\" was never defined.
  23567. Usually this means the macro was only invoked conditionally." >&5
  23568. echo "$as_me: error: conditional \"enable_pam_passthru\" was never defined.
  23569. Usually this means the macro was only invoked conditionally." >&2;}
  23570. { (exit 1); exit 1; }; }
  23571. fi
  23572. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  23573. { { echo "$as_me:$LINENO: error: conditional \"enable_dna\" was never defined.
  23574. Usually this means the macro was only invoked conditionally." >&5
  23575. echo "$as_me: error: conditional \"enable_dna\" was never defined.
  23576. Usually this means the macro was only invoked conditionally." >&2;}
  23577. { (exit 1); exit 1; }; }
  23578. fi
  23579. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  23580. { { echo "$as_me:$LINENO: error: conditional \"enable_ldapi\" was never defined.
  23581. Usually this means the macro was only invoked conditionally." >&5
  23582. echo "$as_me: error: conditional \"enable_ldapi\" was never defined.
  23583. Usually this means the macro was only invoked conditionally." >&2;}
  23584. { (exit 1); exit 1; }; }
  23585. fi
  23586. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  23587. { { echo "$as_me:$LINENO: error: conditional \"enable_autobind\" was never defined.
  23588. Usually this means the macro was only invoked conditionally." >&5
  23589. echo "$as_me: error: conditional \"enable_autobind\" was never defined.
  23590. Usually this means the macro was only invoked conditionally." >&2;}
  23591. { (exit 1); exit 1; }; }
  23592. fi
  23593. if test -z "${enable_auto_dn_suffix_TRUE}" && test -z "${enable_auto_dn_suffix_FALSE}"; then
  23594. { { echo "$as_me:$LINENO: error: conditional \"enable_auto_dn_suffix\" was never defined.
  23595. Usually this means the macro was only invoked conditionally." >&5
  23596. echo "$as_me: error: conditional \"enable_auto_dn_suffix\" was never defined.
  23597. Usually this means the macro was only invoked conditionally." >&2;}
  23598. { (exit 1); exit 1; }; }
  23599. fi
  23600. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  23601. { { echo "$as_me:$LINENO: error: conditional \"enable_bitwise\" was never defined.
  23602. Usually this means the macro was only invoked conditionally." >&5
  23603. echo "$as_me: error: conditional \"enable_bitwise\" was never defined.
  23604. Usually this means the macro was only invoked conditionally." >&2;}
  23605. { (exit 1); exit 1; }; }
  23606. fi
  23607. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  23608. { { echo "$as_me:$LINENO: error: conditional \"WINNT\" was never defined.
  23609. Usually this means the macro was only invoked conditionally." >&5
  23610. echo "$as_me: error: conditional \"WINNT\" was never defined.
  23611. Usually this means the macro was only invoked conditionally." >&2;}
  23612. { (exit 1); exit 1; }; }
  23613. fi
  23614. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  23615. { { echo "$as_me:$LINENO: error: conditional \"HPUX\" was never defined.
  23616. Usually this means the macro was only invoked conditionally." >&5
  23617. echo "$as_me: error: conditional \"HPUX\" was never defined.
  23618. Usually this means the macro was only invoked conditionally." >&2;}
  23619. { (exit 1); exit 1; }; }
  23620. fi
  23621. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  23622. { { echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined.
  23623. Usually this means the macro was only invoked conditionally." >&5
  23624. echo "$as_me: error: conditional \"SOLARIS\" was never defined.
  23625. Usually this means the macro was only invoked conditionally." >&2;}
  23626. { (exit 1); exit 1; }; }
  23627. fi
  23628. : ${CONFIG_STATUS=./config.status}
  23629. ac_clean_files_save=$ac_clean_files
  23630. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  23631. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  23632. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  23633. cat >$CONFIG_STATUS <<_ACEOF
  23634. #! $SHELL
  23635. # Generated by $as_me.
  23636. # Run this file to recreate the current configuration.
  23637. # Compiler output produced by configure, useful for debugging
  23638. # configure, is in config.log if it exists.
  23639. debug=false
  23640. ac_cs_recheck=false
  23641. ac_cs_silent=false
  23642. SHELL=\${CONFIG_SHELL-$SHELL}
  23643. _ACEOF
  23644. cat >>$CONFIG_STATUS <<\_ACEOF
  23645. ## --------------------- ##
  23646. ## M4sh Initialization. ##
  23647. ## --------------------- ##
  23648. # Be Bourne compatible
  23649. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  23650. emulate sh
  23651. NULLCMD=:
  23652. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  23653. # is contrary to our usage. Disable this feature.
  23654. alias -g '${1+"$@"}'='"$@"'
  23655. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  23656. set -o posix
  23657. fi
  23658. DUALCASE=1; export DUALCASE # for MKS sh
  23659. # Support unset when possible.
  23660. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  23661. as_unset=unset
  23662. else
  23663. as_unset=false
  23664. fi
  23665. # Work around bugs in pre-3.0 UWIN ksh.
  23666. $as_unset ENV MAIL MAILPATH
  23667. PS1='$ '
  23668. PS2='> '
  23669. PS4='+ '
  23670. # NLS nuisances.
  23671. for as_var in \
  23672. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  23673. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  23674. LC_TELEPHONE LC_TIME
  23675. do
  23676. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  23677. eval $as_var=C; export $as_var
  23678. else
  23679. $as_unset $as_var
  23680. fi
  23681. done
  23682. # Required to use basename.
  23683. if expr a : '\(a\)' >/dev/null 2>&1; then
  23684. as_expr=expr
  23685. else
  23686. as_expr=false
  23687. fi
  23688. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  23689. as_basename=basename
  23690. else
  23691. as_basename=false
  23692. fi
  23693. # Name of the executable.
  23694. as_me=`$as_basename "$0" ||
  23695. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  23696. X"$0" : 'X\(//\)$' \| \
  23697. X"$0" : 'X\(/\)$' \| \
  23698. . : '\(.\)' 2>/dev/null ||
  23699. echo X/"$0" |
  23700. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  23701. /^X\/\(\/\/\)$/{ s//\1/; q; }
  23702. /^X\/\(\/\).*/{ s//\1/; q; }
  23703. s/.*/./; q'`
  23704. # PATH needs CR, and LINENO needs CR and PATH.
  23705. # Avoid depending upon Character Ranges.
  23706. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  23707. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  23708. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  23709. as_cr_digits='0123456789'
  23710. as_cr_alnum=$as_cr_Letters$as_cr_digits
  23711. # The user is always right.
  23712. if test "${PATH_SEPARATOR+set}" != set; then
  23713. echo "#! /bin/sh" >conf$$.sh
  23714. echo "exit 0" >>conf$$.sh
  23715. chmod +x conf$$.sh
  23716. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  23717. PATH_SEPARATOR=';'
  23718. else
  23719. PATH_SEPARATOR=:
  23720. fi
  23721. rm -f conf$$.sh
  23722. fi
  23723. as_lineno_1=$LINENO
  23724. as_lineno_2=$LINENO
  23725. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  23726. test "x$as_lineno_1" != "x$as_lineno_2" &&
  23727. test "x$as_lineno_3" = "x$as_lineno_2" || {
  23728. # Find who we are. Look in the path if we contain no path at all
  23729. # relative or not.
  23730. case $0 in
  23731. *[\\/]* ) as_myself=$0 ;;
  23732. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23733. for as_dir in $PATH
  23734. do
  23735. IFS=$as_save_IFS
  23736. test -z "$as_dir" && as_dir=.
  23737. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  23738. done
  23739. ;;
  23740. esac
  23741. # We did not find ourselves, most probably we were run as `sh COMMAND'
  23742. # in which case we are not to be found in the path.
  23743. if test "x$as_myself" = x; then
  23744. as_myself=$0
  23745. fi
  23746. if test ! -f "$as_myself"; then
  23747. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  23748. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  23749. { (exit 1); exit 1; }; }
  23750. fi
  23751. case $CONFIG_SHELL in
  23752. '')
  23753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23754. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  23755. do
  23756. IFS=$as_save_IFS
  23757. test -z "$as_dir" && as_dir=.
  23758. for as_base in sh bash ksh sh5; do
  23759. case $as_dir in
  23760. /*)
  23761. if ("$as_dir/$as_base" -c '
  23762. as_lineno_1=$LINENO
  23763. as_lineno_2=$LINENO
  23764. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  23765. test "x$as_lineno_1" != "x$as_lineno_2" &&
  23766. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  23767. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  23768. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  23769. CONFIG_SHELL=$as_dir/$as_base
  23770. export CONFIG_SHELL
  23771. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  23772. fi;;
  23773. esac
  23774. done
  23775. done
  23776. ;;
  23777. esac
  23778. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  23779. # uniformly replaced by the line number. The first 'sed' inserts a
  23780. # line-number line before each line; the second 'sed' does the real
  23781. # work. The second script uses 'N' to pair each line-number line
  23782. # with the numbered line, and appends trailing '-' during
  23783. # substitution so that $LINENO is not a special case at line end.
  23784. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  23785. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  23786. sed '=' <$as_myself |
  23787. sed '
  23788. N
  23789. s,$,-,
  23790. : loop
  23791. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  23792. t loop
  23793. s,-$,,
  23794. s,^['$as_cr_digits']*\n,,
  23795. ' >$as_me.lineno &&
  23796. chmod +x $as_me.lineno ||
  23797. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  23798. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  23799. { (exit 1); exit 1; }; }
  23800. # Don't try to exec as it changes $[0], causing all sort of problems
  23801. # (the dirname of $[0] is not the place where we might find the
  23802. # original and so on. Autoconf is especially sensible to this).
  23803. . ./$as_me.lineno
  23804. # Exit status is that of the last command.
  23805. exit
  23806. }
  23807. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  23808. *c*,-n*) ECHO_N= ECHO_C='
  23809. ' ECHO_T=' ' ;;
  23810. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  23811. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  23812. esac
  23813. if expr a : '\(a\)' >/dev/null 2>&1; then
  23814. as_expr=expr
  23815. else
  23816. as_expr=false
  23817. fi
  23818. rm -f conf$$ conf$$.exe conf$$.file
  23819. echo >conf$$.file
  23820. if ln -s conf$$.file conf$$ 2>/dev/null; then
  23821. # We could just check for DJGPP; but this test a) works b) is more generic
  23822. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  23823. if test -f conf$$.exe; then
  23824. # Don't use ln at all; we don't have any links
  23825. as_ln_s='cp -p'
  23826. else
  23827. as_ln_s='ln -s'
  23828. fi
  23829. elif ln conf$$.file conf$$ 2>/dev/null; then
  23830. as_ln_s=ln
  23831. else
  23832. as_ln_s='cp -p'
  23833. fi
  23834. rm -f conf$$ conf$$.exe conf$$.file
  23835. if mkdir -p . 2>/dev/null; then
  23836. as_mkdir_p=:
  23837. else
  23838. test -d ./-p && rmdir ./-p
  23839. as_mkdir_p=false
  23840. fi
  23841. as_executable_p="test -f"
  23842. # Sed expression to map a string onto a valid CPP name.
  23843. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  23844. # Sed expression to map a string onto a valid variable name.
  23845. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  23846. # IFS
  23847. # We need space, tab and new line, in precisely that order.
  23848. as_nl='
  23849. '
  23850. IFS=" $as_nl"
  23851. # CDPATH.
  23852. $as_unset CDPATH
  23853. exec 6>&1
  23854. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  23855. # report actual input values of CONFIG_FILES etc. instead of their
  23856. # values after options handling. Logging --version etc. is OK.
  23857. exec 5>>config.log
  23858. {
  23859. echo
  23860. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  23861. ## Running $as_me. ##
  23862. _ASBOX
  23863. } >&5
  23864. cat >&5 <<_CSEOF
  23865. This file was extended by dirsrv $as_me 1.1.4, which was
  23866. generated by GNU Autoconf 2.59. Invocation command line was
  23867. CONFIG_FILES = $CONFIG_FILES
  23868. CONFIG_HEADERS = $CONFIG_HEADERS
  23869. CONFIG_LINKS = $CONFIG_LINKS
  23870. CONFIG_COMMANDS = $CONFIG_COMMANDS
  23871. $ $0 $@
  23872. _CSEOF
  23873. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  23874. echo >&5
  23875. _ACEOF
  23876. # Files that config.status was made for.
  23877. if test -n "$ac_config_files"; then
  23878. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  23879. fi
  23880. if test -n "$ac_config_headers"; then
  23881. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  23882. fi
  23883. if test -n "$ac_config_links"; then
  23884. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  23885. fi
  23886. if test -n "$ac_config_commands"; then
  23887. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  23888. fi
  23889. cat >>$CONFIG_STATUS <<\_ACEOF
  23890. ac_cs_usage="\
  23891. \`$as_me' instantiates files from templates according to the
  23892. current configuration.
  23893. Usage: $0 [OPTIONS] [FILE]...
  23894. -h, --help print this help, then exit
  23895. -V, --version print version number, then exit
  23896. -q, --quiet do not print progress messages
  23897. -d, --debug don't remove temporary files
  23898. --recheck update $as_me by reconfiguring in the same conditions
  23899. --file=FILE[:TEMPLATE]
  23900. instantiate the configuration file FILE
  23901. --header=FILE[:TEMPLATE]
  23902. instantiate the configuration header FILE
  23903. Configuration files:
  23904. $config_files
  23905. Configuration headers:
  23906. $config_headers
  23907. Configuration commands:
  23908. $config_commands
  23909. Report bugs to <[email protected]>."
  23910. _ACEOF
  23911. cat >>$CONFIG_STATUS <<_ACEOF
  23912. ac_cs_version="\\
  23913. dirsrv config.status 1.1.4
  23914. configured by $0, generated by GNU Autoconf 2.59,
  23915. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  23916. Copyright (C) 2003 Free Software Foundation, Inc.
  23917. This config.status script is free software; the Free Software Foundation
  23918. gives unlimited permission to copy, distribute and modify it."
  23919. srcdir=$srcdir
  23920. INSTALL="$INSTALL"
  23921. _ACEOF
  23922. cat >>$CONFIG_STATUS <<\_ACEOF
  23923. # If no file are specified by the user, then we need to provide default
  23924. # value. By we need to know if files were specified by the user.
  23925. ac_need_defaults=:
  23926. while test $# != 0
  23927. do
  23928. case $1 in
  23929. --*=*)
  23930. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  23931. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  23932. ac_shift=:
  23933. ;;
  23934. -*)
  23935. ac_option=$1
  23936. ac_optarg=$2
  23937. ac_shift=shift
  23938. ;;
  23939. *) # This is not an option, so the user has probably given explicit
  23940. # arguments.
  23941. ac_option=$1
  23942. ac_need_defaults=false;;
  23943. esac
  23944. case $ac_option in
  23945. # Handling of the options.
  23946. _ACEOF
  23947. cat >>$CONFIG_STATUS <<\_ACEOF
  23948. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  23949. ac_cs_recheck=: ;;
  23950. --version | --vers* | -V )
  23951. echo "$ac_cs_version"; exit 0 ;;
  23952. --he | --h)
  23953. # Conflict between --help and --header
  23954. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  23955. Try \`$0 --help' for more information." >&5
  23956. echo "$as_me: error: ambiguous option: $1
  23957. Try \`$0 --help' for more information." >&2;}
  23958. { (exit 1); exit 1; }; };;
  23959. --help | --hel | -h )
  23960. echo "$ac_cs_usage"; exit 0 ;;
  23961. --debug | --d* | -d )
  23962. debug=: ;;
  23963. --file | --fil | --fi | --f )
  23964. $ac_shift
  23965. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  23966. ac_need_defaults=false;;
  23967. --header | --heade | --head | --hea )
  23968. $ac_shift
  23969. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  23970. ac_need_defaults=false;;
  23971. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  23972. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  23973. ac_cs_silent=: ;;
  23974. # This is an error.
  23975. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  23976. Try \`$0 --help' for more information." >&5
  23977. echo "$as_me: error: unrecognized option: $1
  23978. Try \`$0 --help' for more information." >&2;}
  23979. { (exit 1); exit 1; }; } ;;
  23980. *) ac_config_targets="$ac_config_targets $1" ;;
  23981. esac
  23982. shift
  23983. done
  23984. ac_configure_extra_args=
  23985. if $ac_cs_silent; then
  23986. exec 6>/dev/null
  23987. ac_configure_extra_args="$ac_configure_extra_args --silent"
  23988. fi
  23989. _ACEOF
  23990. cat >>$CONFIG_STATUS <<_ACEOF
  23991. if \$ac_cs_recheck; then
  23992. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  23993. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  23994. fi
  23995. _ACEOF
  23996. cat >>$CONFIG_STATUS <<_ACEOF
  23997. #
  23998. # INIT-COMMANDS section.
  23999. #
  24000. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  24001. _ACEOF
  24002. cat >>$CONFIG_STATUS <<\_ACEOF
  24003. for ac_config_target in $ac_config_targets
  24004. do
  24005. case "$ac_config_target" in
  24006. # Handling of arguments.
  24007. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  24008. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  24009. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  24010. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  24011. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  24012. { (exit 1); exit 1; }; };;
  24013. esac
  24014. done
  24015. # If the user did not use the arguments to specify the items to instantiate,
  24016. # then the envvar interface is used. Set only those that are not.
  24017. # We use the long form for the default assignment because of an extremely
  24018. # bizarre bug on SunOS 4.1.3.
  24019. if $ac_need_defaults; then
  24020. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24021. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24022. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24023. fi
  24024. # Have a temporary directory for convenience. Make it in the build tree
  24025. # simply because there is no reason to put it here, and in addition,
  24026. # creating and moving files from /tmp can sometimes cause problems.
  24027. # Create a temporary directory, and hook for its removal unless debugging.
  24028. $debug ||
  24029. {
  24030. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  24031. trap '{ (exit 1); exit 1; }' 1 2 13 15
  24032. }
  24033. # Create a (secure) tmp directory for tmp files.
  24034. {
  24035. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  24036. test -n "$tmp" && test -d "$tmp"
  24037. } ||
  24038. {
  24039. tmp=./confstat$$-$RANDOM
  24040. (umask 077 && mkdir $tmp)
  24041. } ||
  24042. {
  24043. echo "$me: cannot create a temporary directory in ." >&2
  24044. { (exit 1); exit 1; }
  24045. }
  24046. _ACEOF
  24047. cat >>$CONFIG_STATUS <<_ACEOF
  24048. #
  24049. # CONFIG_FILES section.
  24050. #
  24051. # No need to generate the scripts if there are no CONFIG_FILES.
  24052. # This happens for instance when ./config.status config.h
  24053. if test -n "\$CONFIG_FILES"; then
  24054. # Protect against being on the right side of a sed subst in config.status.
  24055. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  24056. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  24057. s,@SHELL@,$SHELL,;t t
  24058. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  24059. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  24060. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  24061. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  24062. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  24063. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  24064. s,@exec_prefix@,$exec_prefix,;t t
  24065. s,@prefix@,$prefix,;t t
  24066. s,@program_transform_name@,$program_transform_name,;t t
  24067. s,@bindir@,$bindir,;t t
  24068. s,@sbindir@,$sbindir,;t t
  24069. s,@libexecdir@,$libexecdir,;t t
  24070. s,@datadir@,$datadir,;t t
  24071. s,@sysconfdir@,$sysconfdir,;t t
  24072. s,@sharedstatedir@,$sharedstatedir,;t t
  24073. s,@localstatedir@,$localstatedir,;t t
  24074. s,@libdir@,$libdir,;t t
  24075. s,@includedir@,$includedir,;t t
  24076. s,@oldincludedir@,$oldincludedir,;t t
  24077. s,@infodir@,$infodir,;t t
  24078. s,@mandir@,$mandir,;t t
  24079. s,@build_alias@,$build_alias,;t t
  24080. s,@host_alias@,$host_alias,;t t
  24081. s,@target_alias@,$target_alias,;t t
  24082. s,@DEFS@,$DEFS,;t t
  24083. s,@ECHO_C@,$ECHO_C,;t t
  24084. s,@ECHO_N@,$ECHO_N,;t t
  24085. s,@ECHO_T@,$ECHO_T,;t t
  24086. s,@LIBS@,$LIBS,;t t
  24087. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  24088. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  24089. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  24090. s,@CYGPATH_W@,$CYGPATH_W,;t t
  24091. s,@PACKAGE@,$PACKAGE,;t t
  24092. s,@VERSION@,$VERSION,;t t
  24093. s,@ACLOCAL@,$ACLOCAL,;t t
  24094. s,@AUTOCONF@,$AUTOCONF,;t t
  24095. s,@AUTOMAKE@,$AUTOMAKE,;t t
  24096. s,@AUTOHEADER@,$AUTOHEADER,;t t
  24097. s,@MAKEINFO@,$MAKEINFO,;t t
  24098. s,@install_sh@,$install_sh,;t t
  24099. s,@STRIP@,$STRIP,;t t
  24100. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  24101. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  24102. s,@mkdir_p@,$mkdir_p,;t t
  24103. s,@AWK@,$AWK,;t t
  24104. s,@SET_MAKE@,$SET_MAKE,;t t
  24105. s,@am__leading_dot@,$am__leading_dot,;t t
  24106. s,@AMTAR@,$AMTAR,;t t
  24107. s,@am__tar@,$am__tar,;t t
  24108. s,@am__untar@,$am__untar,;t t
  24109. s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  24110. s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  24111. s,@MAINT@,$MAINT,;t t
  24112. s,@build@,$build,;t t
  24113. s,@build_cpu@,$build_cpu,;t t
  24114. s,@build_vendor@,$build_vendor,;t t
  24115. s,@build_os@,$build_os,;t t
  24116. s,@host@,$host,;t t
  24117. s,@host_cpu@,$host_cpu,;t t
  24118. s,@host_vendor@,$host_vendor,;t t
  24119. s,@host_os@,$host_os,;t t
  24120. s,@CXX@,$CXX,;t t
  24121. s,@CXXFLAGS@,$CXXFLAGS,;t t
  24122. s,@LDFLAGS@,$LDFLAGS,;t t
  24123. s,@CPPFLAGS@,$CPPFLAGS,;t t
  24124. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  24125. s,@EXEEXT@,$EXEEXT,;t t
  24126. s,@OBJEXT@,$OBJEXT,;t t
  24127. s,@DEPDIR@,$DEPDIR,;t t
  24128. s,@am__include@,$am__include,;t t
  24129. s,@am__quote@,$am__quote,;t t
  24130. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  24131. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  24132. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  24133. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  24134. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  24135. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  24136. s,@CC@,$CC,;t t
  24137. s,@CFLAGS@,$CFLAGS,;t t
  24138. s,@ac_ct_CC@,$ac_ct_CC,;t t
  24139. s,@CCDEPMODE@,$CCDEPMODE,;t t
  24140. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  24141. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  24142. s,@CCAS@,$CCAS,;t t
  24143. s,@CCASFLAGS@,$CCASFLAGS,;t t
  24144. s,@SED@,$SED,;t t
  24145. s,@EGREP@,$EGREP,;t t
  24146. s,@LN_S@,$LN_S,;t t
  24147. s,@ECHO@,$ECHO,;t t
  24148. s,@AR@,$AR,;t t
  24149. s,@ac_ct_AR@,$ac_ct_AR,;t t
  24150. s,@RANLIB@,$RANLIB,;t t
  24151. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  24152. s,@CPP@,$CPP,;t t
  24153. s,@CXXCPP@,$CXXCPP,;t t
  24154. s,@F77@,$F77,;t t
  24155. s,@FFLAGS@,$FFLAGS,;t t
  24156. s,@ac_ct_F77@,$ac_ct_F77,;t t
  24157. s,@LIBTOOL@,$LIBTOOL,;t t
  24158. s,@LIBOBJS@,$LIBOBJS,;t t
  24159. s,@debug_defs@,$debug_defs,;t t
  24160. s,@BUNDLE_TRUE@,$BUNDLE_TRUE,;t t
  24161. s,@BUNDLE_FALSE@,$BUNDLE_FALSE,;t t
  24162. s,@enable_pam_passthru_TRUE@,$enable_pam_passthru_TRUE,;t t
  24163. s,@enable_pam_passthru_FALSE@,$enable_pam_passthru_FALSE,;t t
  24164. s,@enable_dna_TRUE@,$enable_dna_TRUE,;t t
  24165. s,@enable_dna_FALSE@,$enable_dna_FALSE,;t t
  24166. s,@enable_ldapi_TRUE@,$enable_ldapi_TRUE,;t t
  24167. s,@enable_ldapi_FALSE@,$enable_ldapi_FALSE,;t t
  24168. s,@enable_autobind_TRUE@,$enable_autobind_TRUE,;t t
  24169. s,@enable_autobind_FALSE@,$enable_autobind_FALSE,;t t
  24170. s,@enable_auto_dn_suffix_TRUE@,$enable_auto_dn_suffix_TRUE,;t t
  24171. s,@enable_auto_dn_suffix_FALSE@,$enable_auto_dn_suffix_FALSE,;t t
  24172. s,@enable_bitwise_TRUE@,$enable_bitwise_TRUE,;t t
  24173. s,@enable_bitwise_FALSE@,$enable_bitwise_FALSE,;t t
  24174. s,@with_fhs_opt@,$with_fhs_opt,;t t
  24175. s,@configdir@,$configdir,;t t
  24176. s,@sampledatadir@,$sampledatadir,;t t
  24177. s,@propertydir@,$propertydir,;t t
  24178. s,@schemadir@,$schemadir,;t t
  24179. s,@serverdir@,$serverdir,;t t
  24180. s,@serverplugindir@,$serverplugindir,;t t
  24181. s,@scripttemplatedir@,$scripttemplatedir,;t t
  24182. s,@perldir@,$perldir,;t t
  24183. s,@infdir@,$infdir,;t t
  24184. s,@mibdir@,$mibdir,;t t
  24185. s,@defaultuser@,$defaultuser,;t t
  24186. s,@defaultgroup@,$defaultgroup,;t t
  24187. s,@instconfigdir@,$instconfigdir,;t t
  24188. s,@WINNT_TRUE@,$WINNT_TRUE,;t t
  24189. s,@WINNT_FALSE@,$WINNT_FALSE,;t t
  24190. s,@LIBSOCKET@,$LIBSOCKET,;t t
  24191. s,@LIBNSL@,$LIBNSL,;t t
  24192. s,@LIBDL@,$LIBDL,;t t
  24193. s,@LIBCSTD@,$LIBCSTD,;t t
  24194. s,@LIBCRUN@,$LIBCRUN,;t t
  24195. s,@initdir@,$initdir,;t t
  24196. s,@perlexec@,$perlexec,;t t
  24197. s,@initconfigdir@,$initconfigdir,;t t
  24198. s,@HPUX_TRUE@,$HPUX_TRUE,;t t
  24199. s,@HPUX_FALSE@,$HPUX_FALSE,;t t
  24200. s,@SOLARIS_TRUE@,$SOLARIS_TRUE,;t t
  24201. s,@SOLARIS_FALSE@,$SOLARIS_FALSE,;t t
  24202. s,@PKG_CONFIG@,$PKG_CONFIG,;t t
  24203. s,@ICU_CONFIG@,$ICU_CONFIG,;t t
  24204. s,@NETSNMP_CONFIG@,$NETSNMP_CONFIG,;t t
  24205. s,@KRB5_CONFIG_BIN@,$KRB5_CONFIG_BIN,;t t
  24206. s,@kerberos_inc@,$kerberos_inc,;t t
  24207. s,@kerberos_lib@,$kerberos_lib,;t t
  24208. s,@kerberos_libdir@,$kerberos_libdir,;t t
  24209. s,@PACKAGE_BASE_VERSION@,$PACKAGE_BASE_VERSION,;t t
  24210. s,@nspr_inc@,$nspr_inc,;t t
  24211. s,@nspr_lib@,$nspr_lib,;t t
  24212. s,@nspr_libdir@,$nspr_libdir,;t t
  24213. s,@nss_inc@,$nss_inc,;t t
  24214. s,@nss_lib@,$nss_lib,;t t
  24215. s,@nss_libdir@,$nss_libdir,;t t
  24216. s,@ldapsdk_inc@,$ldapsdk_inc,;t t
  24217. s,@ldapsdk_lib@,$ldapsdk_lib,;t t
  24218. s,@ldapsdk_libdir@,$ldapsdk_libdir,;t t
  24219. s,@ldapsdk_bindir@,$ldapsdk_bindir,;t t
  24220. s,@db_inc@,$db_inc,;t t
  24221. s,@db_incdir@,$db_incdir,;t t
  24222. s,@db_lib@,$db_lib,;t t
  24223. s,@db_libdir@,$db_libdir,;t t
  24224. s,@db_bindir@,$db_bindir,;t t
  24225. s,@db_libver@,$db_libver,;t t
  24226. s,@sasl_inc@,$sasl_inc,;t t
  24227. s,@sasl_lib@,$sasl_lib,;t t
  24228. s,@sasl_libdir@,$sasl_libdir,;t t
  24229. s,@sasl_path@,$sasl_path,;t t
  24230. s,@svrcore_inc@,$svrcore_inc,;t t
  24231. s,@svrcore_lib@,$svrcore_lib,;t t
  24232. s,@icu_lib@,$icu_lib,;t t
  24233. s,@icu_inc@,$icu_inc,;t t
  24234. s,@icu_bin@,$icu_bin,;t t
  24235. s,@netsnmp_inc@,$netsnmp_inc,;t t
  24236. s,@netsnmp_lib@,$netsnmp_lib,;t t
  24237. s,@netsnmp_libdir@,$netsnmp_libdir,;t t
  24238. s,@netsnmp_link@,$netsnmp_link,;t t
  24239. s,@brand@,$brand,;t t
  24240. s,@capbrand@,$capbrand,;t t
  24241. s,@vendor@,$vendor,;t t
  24242. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  24243. CEOF
  24244. _ACEOF
  24245. cat >>$CONFIG_STATUS <<\_ACEOF
  24246. # Split the substitutions into bite-sized pieces for seds with
  24247. # small command number limits, like on Digital OSF/1 and HP-UX.
  24248. ac_max_sed_lines=48
  24249. ac_sed_frag=1 # Number of current file.
  24250. ac_beg=1 # First line for current file.
  24251. ac_end=$ac_max_sed_lines # Line after last line for current file.
  24252. ac_more_lines=:
  24253. ac_sed_cmds=
  24254. while $ac_more_lines; do
  24255. if test $ac_beg -gt 1; then
  24256. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  24257. else
  24258. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  24259. fi
  24260. if test ! -s $tmp/subs.frag; then
  24261. ac_more_lines=false
  24262. else
  24263. # The purpose of the label and of the branching condition is to
  24264. # speed up the sed processing (if there are no `@' at all, there
  24265. # is no need to browse any of the substitutions).
  24266. # These are the two extra sed commands mentioned above.
  24267. (echo ':t
  24268. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  24269. if test -z "$ac_sed_cmds"; then
  24270. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  24271. else
  24272. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  24273. fi
  24274. ac_sed_frag=`expr $ac_sed_frag + 1`
  24275. ac_beg=$ac_end
  24276. ac_end=`expr $ac_end + $ac_max_sed_lines`
  24277. fi
  24278. done
  24279. if test -z "$ac_sed_cmds"; then
  24280. ac_sed_cmds=cat
  24281. fi
  24282. fi # test -n "$CONFIG_FILES"
  24283. _ACEOF
  24284. cat >>$CONFIG_STATUS <<\_ACEOF
  24285. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  24286. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  24287. case $ac_file in
  24288. - | *:- | *:-:* ) # input from stdin
  24289. cat >$tmp/stdin
  24290. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  24291. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  24292. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  24293. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  24294. * ) ac_file_in=$ac_file.in ;;
  24295. esac
  24296. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  24297. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  24298. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24299. X"$ac_file" : 'X\(//\)[^/]' \| \
  24300. X"$ac_file" : 'X\(//\)$' \| \
  24301. X"$ac_file" : 'X\(/\)' \| \
  24302. . : '\(.\)' 2>/dev/null ||
  24303. echo X"$ac_file" |
  24304. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  24305. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  24306. /^X\(\/\/\)$/{ s//\1/; q; }
  24307. /^X\(\/\).*/{ s//\1/; q; }
  24308. s/.*/./; q'`
  24309. { if $as_mkdir_p; then
  24310. mkdir -p "$ac_dir"
  24311. else
  24312. as_dir="$ac_dir"
  24313. as_dirs=
  24314. while test ! -d "$as_dir"; do
  24315. as_dirs="$as_dir $as_dirs"
  24316. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  24317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24318. X"$as_dir" : 'X\(//\)[^/]' \| \
  24319. X"$as_dir" : 'X\(//\)$' \| \
  24320. X"$as_dir" : 'X\(/\)' \| \
  24321. . : '\(.\)' 2>/dev/null ||
  24322. echo X"$as_dir" |
  24323. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  24324. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  24325. /^X\(\/\/\)$/{ s//\1/; q; }
  24326. /^X\(\/\).*/{ s//\1/; q; }
  24327. s/.*/./; q'`
  24328. done
  24329. test ! -n "$as_dirs" || mkdir $as_dirs
  24330. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  24331. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  24332. { (exit 1); exit 1; }; }; }
  24333. ac_builddir=.
  24334. if test "$ac_dir" != .; then
  24335. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  24336. # A "../" for each directory in $ac_dir_suffix.
  24337. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  24338. else
  24339. ac_dir_suffix= ac_top_builddir=
  24340. fi
  24341. case $srcdir in
  24342. .) # No --srcdir option. We are building in place.
  24343. ac_srcdir=.
  24344. if test -z "$ac_top_builddir"; then
  24345. ac_top_srcdir=.
  24346. else
  24347. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  24348. fi ;;
  24349. [\\/]* | ?:[\\/]* ) # Absolute path.
  24350. ac_srcdir=$srcdir$ac_dir_suffix;
  24351. ac_top_srcdir=$srcdir ;;
  24352. *) # Relative path.
  24353. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  24354. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  24355. esac
  24356. # Do not use `cd foo && pwd` to compute absolute paths, because
  24357. # the directories may not exist.
  24358. case `pwd` in
  24359. .) ac_abs_builddir="$ac_dir";;
  24360. *)
  24361. case "$ac_dir" in
  24362. .) ac_abs_builddir=`pwd`;;
  24363. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  24364. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  24365. esac;;
  24366. esac
  24367. case $ac_abs_builddir in
  24368. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  24369. *)
  24370. case ${ac_top_builddir}. in
  24371. .) ac_abs_top_builddir=$ac_abs_builddir;;
  24372. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  24373. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  24374. esac;;
  24375. esac
  24376. case $ac_abs_builddir in
  24377. .) ac_abs_srcdir=$ac_srcdir;;
  24378. *)
  24379. case $ac_srcdir in
  24380. .) ac_abs_srcdir=$ac_abs_builddir;;
  24381. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  24382. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  24383. esac;;
  24384. esac
  24385. case $ac_abs_builddir in
  24386. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  24387. *)
  24388. case $ac_top_srcdir in
  24389. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  24390. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  24391. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  24392. esac;;
  24393. esac
  24394. case $INSTALL in
  24395. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  24396. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  24397. esac
  24398. if test x"$ac_file" != x-; then
  24399. { echo "$as_me:$LINENO: creating $ac_file" >&5
  24400. echo "$as_me: creating $ac_file" >&6;}
  24401. rm -f "$ac_file"
  24402. fi
  24403. # Let's still pretend it is `configure' which instantiates (i.e., don't
  24404. # use $as_me), people would be surprised to read:
  24405. # /* config.h. Generated by config.status. */
  24406. if test x"$ac_file" = x-; then
  24407. configure_input=
  24408. else
  24409. configure_input="$ac_file. "
  24410. fi
  24411. configure_input=$configure_input"Generated from `echo $ac_file_in |
  24412. sed 's,.*/,,'` by configure."
  24413. # First look for the input files in the build tree, otherwise in the
  24414. # src tree.
  24415. ac_file_inputs=`IFS=:
  24416. for f in $ac_file_in; do
  24417. case $f in
  24418. -) echo $tmp/stdin ;;
  24419. [\\/$]*)
  24420. # Absolute (can't be DOS-style, as IFS=:)
  24421. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  24422. echo "$as_me: error: cannot find input file: $f" >&2;}
  24423. { (exit 1); exit 1; }; }
  24424. echo "$f";;
  24425. *) # Relative
  24426. if test -f "$f"; then
  24427. # Build tree
  24428. echo "$f"
  24429. elif test -f "$srcdir/$f"; then
  24430. # Source tree
  24431. echo "$srcdir/$f"
  24432. else
  24433. # /dev/null tree
  24434. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  24435. echo "$as_me: error: cannot find input file: $f" >&2;}
  24436. { (exit 1); exit 1; }; }
  24437. fi;;
  24438. esac
  24439. done` || { (exit 1); exit 1; }
  24440. _ACEOF
  24441. cat >>$CONFIG_STATUS <<_ACEOF
  24442. sed "$ac_vpsub
  24443. $extrasub
  24444. _ACEOF
  24445. cat >>$CONFIG_STATUS <<\_ACEOF
  24446. :t
  24447. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  24448. s,@configure_input@,$configure_input,;t t
  24449. s,@srcdir@,$ac_srcdir,;t t
  24450. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  24451. s,@top_srcdir@,$ac_top_srcdir,;t t
  24452. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  24453. s,@builddir@,$ac_builddir,;t t
  24454. s,@abs_builddir@,$ac_abs_builddir,;t t
  24455. s,@top_builddir@,$ac_top_builddir,;t t
  24456. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  24457. s,@INSTALL@,$ac_INSTALL,;t t
  24458. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  24459. rm -f $tmp/stdin
  24460. if test x"$ac_file" != x-; then
  24461. mv $tmp/out $ac_file
  24462. else
  24463. cat $tmp/out
  24464. rm -f $tmp/out
  24465. fi
  24466. done
  24467. _ACEOF
  24468. cat >>$CONFIG_STATUS <<\_ACEOF
  24469. #
  24470. # CONFIG_HEADER section.
  24471. #
  24472. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  24473. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  24474. #
  24475. # ac_d sets the value in "#define NAME VALUE" lines.
  24476. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  24477. ac_dB='[ ].*$,\1#\2'
  24478. ac_dC=' '
  24479. ac_dD=',;t'
  24480. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  24481. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  24482. ac_uB='$,\1#\2define\3'
  24483. ac_uC=' '
  24484. ac_uD=',;t'
  24485. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  24486. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  24487. case $ac_file in
  24488. - | *:- | *:-:* ) # input from stdin
  24489. cat >$tmp/stdin
  24490. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  24491. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  24492. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  24493. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  24494. * ) ac_file_in=$ac_file.in ;;
  24495. esac
  24496. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  24497. echo "$as_me: creating $ac_file" >&6;}
  24498. # First look for the input files in the build tree, otherwise in the
  24499. # src tree.
  24500. ac_file_inputs=`IFS=:
  24501. for f in $ac_file_in; do
  24502. case $f in
  24503. -) echo $tmp/stdin ;;
  24504. [\\/$]*)
  24505. # Absolute (can't be DOS-style, as IFS=:)
  24506. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  24507. echo "$as_me: error: cannot find input file: $f" >&2;}
  24508. { (exit 1); exit 1; }; }
  24509. # Do quote $f, to prevent DOS paths from being IFS'd.
  24510. echo "$f";;
  24511. *) # Relative
  24512. if test -f "$f"; then
  24513. # Build tree
  24514. echo "$f"
  24515. elif test -f "$srcdir/$f"; then
  24516. # Source tree
  24517. echo "$srcdir/$f"
  24518. else
  24519. # /dev/null tree
  24520. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  24521. echo "$as_me: error: cannot find input file: $f" >&2;}
  24522. { (exit 1); exit 1; }; }
  24523. fi;;
  24524. esac
  24525. done` || { (exit 1); exit 1; }
  24526. # Remove the trailing spaces.
  24527. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  24528. _ACEOF
  24529. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  24530. # `conftest.undefs', that substitutes the proper values into
  24531. # config.h.in to produce config.h. The first handles `#define'
  24532. # templates, and the second `#undef' templates.
  24533. # And first: Protect against being on the right side of a sed subst in
  24534. # config.status. Protect against being in an unquoted here document
  24535. # in config.status.
  24536. rm -f conftest.defines conftest.undefs
  24537. # Using a here document instead of a string reduces the quoting nightmare.
  24538. # Putting comments in sed scripts is not portable.
  24539. #
  24540. # `end' is used to avoid that the second main sed command (meant for
  24541. # 0-ary CPP macros) applies to n-ary macro definitions.
  24542. # See the Autoconf documentation for `clear'.
  24543. cat >confdef2sed.sed <<\_ACEOF
  24544. s/[\\&,]/\\&/g
  24545. s,[\\$`],\\&,g
  24546. t clear
  24547. : clear
  24548. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  24549. t end
  24550. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  24551. : end
  24552. _ACEOF
  24553. # If some macros were called several times there might be several times
  24554. # the same #defines, which is useless. Nevertheless, we may not want to
  24555. # sort them, since we want the *last* AC-DEFINE to be honored.
  24556. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  24557. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  24558. rm -f confdef2sed.sed
  24559. # This sed command replaces #undef with comments. This is necessary, for
  24560. # example, in the case of _POSIX_SOURCE, which is predefined and required
  24561. # on some systems where configure will not decide to define it.
  24562. cat >>conftest.undefs <<\_ACEOF
  24563. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  24564. _ACEOF
  24565. # Break up conftest.defines because some shells have a limit on the size
  24566. # of here documents, and old seds have small limits too (100 cmds).
  24567. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  24568. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  24569. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  24570. echo ' :' >>$CONFIG_STATUS
  24571. rm -f conftest.tail
  24572. while grep . conftest.defines >/dev/null
  24573. do
  24574. # Write a limited-size here document to $tmp/defines.sed.
  24575. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  24576. # Speed up: don't consider the non `#define' lines.
  24577. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  24578. # Work around the forget-to-reset-the-flag bug.
  24579. echo 't clr' >>$CONFIG_STATUS
  24580. echo ': clr' >>$CONFIG_STATUS
  24581. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  24582. echo 'CEOF
  24583. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  24584. rm -f $tmp/in
  24585. mv $tmp/out $tmp/in
  24586. ' >>$CONFIG_STATUS
  24587. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  24588. rm -f conftest.defines
  24589. mv conftest.tail conftest.defines
  24590. done
  24591. rm -f conftest.defines
  24592. echo ' fi # grep' >>$CONFIG_STATUS
  24593. echo >>$CONFIG_STATUS
  24594. # Break up conftest.undefs because some shells have a limit on the size
  24595. # of here documents, and old seds have small limits too (100 cmds).
  24596. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  24597. rm -f conftest.tail
  24598. while grep . conftest.undefs >/dev/null
  24599. do
  24600. # Write a limited-size here document to $tmp/undefs.sed.
  24601. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  24602. # Speed up: don't consider the non `#undef'
  24603. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  24604. # Work around the forget-to-reset-the-flag bug.
  24605. echo 't clr' >>$CONFIG_STATUS
  24606. echo ': clr' >>$CONFIG_STATUS
  24607. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  24608. echo 'CEOF
  24609. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  24610. rm -f $tmp/in
  24611. mv $tmp/out $tmp/in
  24612. ' >>$CONFIG_STATUS
  24613. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  24614. rm -f conftest.undefs
  24615. mv conftest.tail conftest.undefs
  24616. done
  24617. rm -f conftest.undefs
  24618. cat >>$CONFIG_STATUS <<\_ACEOF
  24619. # Let's still pretend it is `configure' which instantiates (i.e., don't
  24620. # use $as_me), people would be surprised to read:
  24621. # /* config.h. Generated by config.status. */
  24622. if test x"$ac_file" = x-; then
  24623. echo "/* Generated by configure. */" >$tmp/config.h
  24624. else
  24625. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  24626. fi
  24627. cat $tmp/in >>$tmp/config.h
  24628. rm -f $tmp/in
  24629. if test x"$ac_file" != x-; then
  24630. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  24631. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  24632. echo "$as_me: $ac_file is unchanged" >&6;}
  24633. else
  24634. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  24635. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24636. X"$ac_file" : 'X\(//\)[^/]' \| \
  24637. X"$ac_file" : 'X\(//\)$' \| \
  24638. X"$ac_file" : 'X\(/\)' \| \
  24639. . : '\(.\)' 2>/dev/null ||
  24640. echo X"$ac_file" |
  24641. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  24642. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  24643. /^X\(\/\/\)$/{ s//\1/; q; }
  24644. /^X\(\/\).*/{ s//\1/; q; }
  24645. s/.*/./; q'`
  24646. { if $as_mkdir_p; then
  24647. mkdir -p "$ac_dir"
  24648. else
  24649. as_dir="$ac_dir"
  24650. as_dirs=
  24651. while test ! -d "$as_dir"; do
  24652. as_dirs="$as_dir $as_dirs"
  24653. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  24654. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24655. X"$as_dir" : 'X\(//\)[^/]' \| \
  24656. X"$as_dir" : 'X\(//\)$' \| \
  24657. X"$as_dir" : 'X\(/\)' \| \
  24658. . : '\(.\)' 2>/dev/null ||
  24659. echo X"$as_dir" |
  24660. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  24661. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  24662. /^X\(\/\/\)$/{ s//\1/; q; }
  24663. /^X\(\/\).*/{ s//\1/; q; }
  24664. s/.*/./; q'`
  24665. done
  24666. test ! -n "$as_dirs" || mkdir $as_dirs
  24667. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  24668. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  24669. { (exit 1); exit 1; }; }; }
  24670. rm -f $ac_file
  24671. mv $tmp/config.h $ac_file
  24672. fi
  24673. else
  24674. cat $tmp/config.h
  24675. rm -f $tmp/config.h
  24676. fi
  24677. # Compute $ac_file's index in $config_headers.
  24678. _am_stamp_count=1
  24679. for _am_header in $config_headers :; do
  24680. case $_am_header in
  24681. $ac_file | $ac_file:* )
  24682. break ;;
  24683. * )
  24684. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  24685. esac
  24686. done
  24687. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  24688. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24689. X$ac_file : 'X\(//\)[^/]' \| \
  24690. X$ac_file : 'X\(//\)$' \| \
  24691. X$ac_file : 'X\(/\)' \| \
  24692. . : '\(.\)' 2>/dev/null ||
  24693. echo X$ac_file |
  24694. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  24695. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  24696. /^X\(\/\/\)$/{ s//\1/; q; }
  24697. /^X\(\/\).*/{ s//\1/; q; }
  24698. s/.*/./; q'`/stamp-h$_am_stamp_count
  24699. done
  24700. _ACEOF
  24701. cat >>$CONFIG_STATUS <<\_ACEOF
  24702. #
  24703. # CONFIG_COMMANDS section.
  24704. #
  24705. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  24706. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  24707. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  24708. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  24709. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24710. X"$ac_dest" : 'X\(//\)[^/]' \| \
  24711. X"$ac_dest" : 'X\(//\)$' \| \
  24712. X"$ac_dest" : 'X\(/\)' \| \
  24713. . : '\(.\)' 2>/dev/null ||
  24714. echo X"$ac_dest" |
  24715. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  24716. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  24717. /^X\(\/\/\)$/{ s//\1/; q; }
  24718. /^X\(\/\).*/{ s//\1/; q; }
  24719. s/.*/./; q'`
  24720. { if $as_mkdir_p; then
  24721. mkdir -p "$ac_dir"
  24722. else
  24723. as_dir="$ac_dir"
  24724. as_dirs=
  24725. while test ! -d "$as_dir"; do
  24726. as_dirs="$as_dir $as_dirs"
  24727. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  24728. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24729. X"$as_dir" : 'X\(//\)[^/]' \| \
  24730. X"$as_dir" : 'X\(//\)$' \| \
  24731. X"$as_dir" : 'X\(/\)' \| \
  24732. . : '\(.\)' 2>/dev/null ||
  24733. echo X"$as_dir" |
  24734. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  24735. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  24736. /^X\(\/\/\)$/{ s//\1/; q; }
  24737. /^X\(\/\).*/{ s//\1/; q; }
  24738. s/.*/./; q'`
  24739. done
  24740. test ! -n "$as_dirs" || mkdir $as_dirs
  24741. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  24742. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  24743. { (exit 1); exit 1; }; }; }
  24744. ac_builddir=.
  24745. if test "$ac_dir" != .; then
  24746. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  24747. # A "../" for each directory in $ac_dir_suffix.
  24748. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  24749. else
  24750. ac_dir_suffix= ac_top_builddir=
  24751. fi
  24752. case $srcdir in
  24753. .) # No --srcdir option. We are building in place.
  24754. ac_srcdir=.
  24755. if test -z "$ac_top_builddir"; then
  24756. ac_top_srcdir=.
  24757. else
  24758. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  24759. fi ;;
  24760. [\\/]* | ?:[\\/]* ) # Absolute path.
  24761. ac_srcdir=$srcdir$ac_dir_suffix;
  24762. ac_top_srcdir=$srcdir ;;
  24763. *) # Relative path.
  24764. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  24765. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  24766. esac
  24767. # Do not use `cd foo && pwd` to compute absolute paths, because
  24768. # the directories may not exist.
  24769. case `pwd` in
  24770. .) ac_abs_builddir="$ac_dir";;
  24771. *)
  24772. case "$ac_dir" in
  24773. .) ac_abs_builddir=`pwd`;;
  24774. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  24775. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  24776. esac;;
  24777. esac
  24778. case $ac_abs_builddir in
  24779. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  24780. *)
  24781. case ${ac_top_builddir}. in
  24782. .) ac_abs_top_builddir=$ac_abs_builddir;;
  24783. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  24784. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  24785. esac;;
  24786. esac
  24787. case $ac_abs_builddir in
  24788. .) ac_abs_srcdir=$ac_srcdir;;
  24789. *)
  24790. case $ac_srcdir in
  24791. .) ac_abs_srcdir=$ac_abs_builddir;;
  24792. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  24793. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  24794. esac;;
  24795. esac
  24796. case $ac_abs_builddir in
  24797. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  24798. *)
  24799. case $ac_top_srcdir in
  24800. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  24801. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  24802. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  24803. esac;;
  24804. esac
  24805. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  24806. echo "$as_me: executing $ac_dest commands" >&6;}
  24807. case $ac_dest in
  24808. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  24809. # Strip MF so we end up with the name of the file.
  24810. mf=`echo "$mf" | sed -e 's/:.*$//'`
  24811. # Check whether this is an Automake generated Makefile or not.
  24812. # We used to match only the files named `Makefile.in', but
  24813. # some people rename them; so instead we look at the file content.
  24814. # Grep'ing the first line is not enough: some people post-process
  24815. # each Makefile.in and add a new line on top of each file to say so.
  24816. # So let's grep whole file.
  24817. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  24818. dirpart=`(dirname "$mf") 2>/dev/null ||
  24819. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24820. X"$mf" : 'X\(//\)[^/]' \| \
  24821. X"$mf" : 'X\(//\)$' \| \
  24822. X"$mf" : 'X\(/\)' \| \
  24823. . : '\(.\)' 2>/dev/null ||
  24824. echo X"$mf" |
  24825. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  24826. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  24827. /^X\(\/\/\)$/{ s//\1/; q; }
  24828. /^X\(\/\).*/{ s//\1/; q; }
  24829. s/.*/./; q'`
  24830. else
  24831. continue
  24832. fi
  24833. # Extract the definition of DEPDIR, am__include, and am__quote
  24834. # from the Makefile without running `make'.
  24835. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  24836. test -z "$DEPDIR" && continue
  24837. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  24838. test -z "am__include" && continue
  24839. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  24840. # When using ansi2knr, U may be empty or an underscore; expand it
  24841. U=`sed -n 's/^U = //p' < "$mf"`
  24842. # Find all dependency output files, they are included files with
  24843. # $(DEPDIR) in their names. We invoke sed twice because it is the
  24844. # simplest approach to changing $(DEPDIR) to its actual value in the
  24845. # expansion.
  24846. for file in `sed -n "
  24847. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  24848. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  24849. # Make sure the directory exists.
  24850. test -f "$dirpart/$file" && continue
  24851. fdir=`(dirname "$file") 2>/dev/null ||
  24852. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24853. X"$file" : 'X\(//\)[^/]' \| \
  24854. X"$file" : 'X\(//\)$' \| \
  24855. X"$file" : 'X\(/\)' \| \
  24856. . : '\(.\)' 2>/dev/null ||
  24857. echo X"$file" |
  24858. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  24859. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  24860. /^X\(\/\/\)$/{ s//\1/; q; }
  24861. /^X\(\/\).*/{ s//\1/; q; }
  24862. s/.*/./; q'`
  24863. { if $as_mkdir_p; then
  24864. mkdir -p $dirpart/$fdir
  24865. else
  24866. as_dir=$dirpart/$fdir
  24867. as_dirs=
  24868. while test ! -d "$as_dir"; do
  24869. as_dirs="$as_dir $as_dirs"
  24870. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  24871. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24872. X"$as_dir" : 'X\(//\)[^/]' \| \
  24873. X"$as_dir" : 'X\(//\)$' \| \
  24874. X"$as_dir" : 'X\(/\)' \| \
  24875. . : '\(.\)' 2>/dev/null ||
  24876. echo X"$as_dir" |
  24877. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  24878. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  24879. /^X\(\/\/\)$/{ s//\1/; q; }
  24880. /^X\(\/\).*/{ s//\1/; q; }
  24881. s/.*/./; q'`
  24882. done
  24883. test ! -n "$as_dirs" || mkdir $as_dirs
  24884. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  24885. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  24886. { (exit 1); exit 1; }; }; }
  24887. # echo "creating $dirpart/$file"
  24888. echo '# dummy' > "$dirpart/$file"
  24889. done
  24890. done
  24891. ;;
  24892. esac
  24893. done
  24894. _ACEOF
  24895. cat >>$CONFIG_STATUS <<\_ACEOF
  24896. { (exit 0); exit 0; }
  24897. _ACEOF
  24898. chmod +x $CONFIG_STATUS
  24899. ac_clean_files=$ac_clean_files_save
  24900. # configure is writing to config.log, and then calls config.status.
  24901. # config.status does its own redirection, appending to config.log.
  24902. # Unfortunately, on DOS this fails, as config.log is still kept open
  24903. # by configure, so config.status won't be able to write to it; its
  24904. # output is simply discarded. So we exec the FD to /dev/null,
  24905. # effectively closing config.log, so it can be properly (re)opened and
  24906. # appended to by config.status. When coming back to configure, we
  24907. # need to make the FD available again.
  24908. if test "$no_create" != yes; then
  24909. ac_cs_success=:
  24910. ac_config_status_args=
  24911. test "$silent" = yes &&
  24912. ac_config_status_args="$ac_config_status_args --quiet"
  24913. exec 5>/dev/null
  24914. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24915. exec 5>>config.log
  24916. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24917. # would make configure fail if this is the last instruction.
  24918. $ac_cs_success || { (exit 1); exit 1; }
  24919. fi